@charset "UTF-8";

:root .ampro-container {
  --color-base: #333;
  --color-red: #d52b1e;
  --color-dark: #141b20;
  --swiper-pagination-color: #cc5249;
}

.ampro-container {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base);
  padding-bottom: 40px;
}

.ampro-container img {
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.ampro-container p + p {
  margin-top: 1em;
}

/* ---------- 見出し(共通) ---------- */
.ampro-container h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-base);
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  font-family: Helvetica, sans-serif;
  letter-spacing: 0.02em;
  margin: 50px 0 15px;
}

.ampro-container h2::before,
.ampro-container h2::after {
  content: "";
  width: 84px;
  height: 4px;
  background: var(--color-red);
}

/* ---------- ヒーロー ---------- */
.ampro-hero img {
  display: block;
  width: 100%;
}

/* ---------- HISTORY ---------- */
.history {
  padding: 0 20px;
}

.history-title {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0em 0 1em;
  text-align: center;
}

.history-list {
  margin-top: 24px;
  border-top: 1px solid #ddd;
}

.history-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.history-date {
  font-family: Helvetica, sans-serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  border-left: 1px solid #999;
  padding-left: 12px;
}

.history-item h4 {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 0.3em;
}

.history-item p {
  color: #555;
}

.history-item .history-date {
  color: var(--color-base);
}

/* ---------- HIGHLIGHT ---------- */
.highlight {
  padding: 0 20px;
}

.highlight-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.highlight-item {
  display: flex;
  background: var(--color-dark);
  color: #fff;
}

.ampro-container .highlight-item img {
  flex: none;
  width: 32%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
}

.highlight-body {
  padding: 14px 16px;
}

.highlight-body h4 {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.7;
  margin-bottom: 0.6em;
  word-break: auto-phrase;
}

.highlight-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
}

.highlight-body li {
  /* padding-left: 1em; */
  /* text-indent: -1em; */
  list-style-type:disc;
  margin-left:1.5em;
}

.highlight-body li + li {
  margin-top:.5em;
}



/* ---------- 全機種共通のこだわり ---------- */
.ampro-common {
  background: var(--color-dark);
  color: #fff;
  margin-top: 50px;
  padding: 30px 20px 35px;
}

.ampro-common h3 {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 30px;
}

.ampro-common-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* max-width: 960px; */
  margin: 0 auto;
}

.ampro-common-list > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px;
  border-left: 1px solid #3a444a;
}

.ampro-common-list > div:first-child {
  border-left: none;
}

.ampro-container .ampro-common-list img {
  width: 110px;
}

.ampro-common-list h4 {
  font-size: 15px;
  font-weight: bold;
  margin: 1em 0 0.6em;
}

.ampro-common-list p {
  font-size: 13px;
  line-height: 1.7;
  color: #ccc;
  text-align: left;
}

/* ---------- LINE UP ---------- */
.line-up {
  padding: 0 20px;
}

.lineup-lead {
  text-align: center;
  margin-bottom: 2em;
}

.lineup-item {
  padding-bottom: 3em;
}

.lineup-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0.8em;
  border-bottom: 1px solid var(--color-red);
  border-left: 12px solid var(--color-red);
  padding-left:15px;
}

.lineup-img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 24px;
}

.lineup-img > div {
  flex: 1 1 0;
  min-width: 60px;
  max-width: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lineup-note {
  font-size: 13px;
  color: #666;
  margin-top: 2em;
  text-align: center;
}

.ampro-button a {
  display: block;
  margin: 2rem auto 0;
  padding: 0.5rem 1rem;
  background-color: var(--color-red);
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
  color: #fff;
  width: 100%;
  max-width: 260px;
  text-align: center;
  box-sizing: border-box;
}

.ampro-button a:hover {
  background-color: var(--swiper-pagination-color);
}

/* ---------- RELATED PAGE ---------- */
.related {
  padding: 0 20px;
}

.ampro-container h2.related-title {
  flex-direction: column;
  gap: 0;
  color: var(--color-red);
  line-height: 1.3;
}

.ampro-container h2.related-title::before {
  display: none;
}

.related-title span {
  font-size: 12px;
  font-weight: normal;
  color: #666;
  font-family: inherit;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  /* max-width: 720px; */
  margin: 0 auto 4em;
}

.related-list a {
  display: block;
  color: inherit;
  text-decoration: none;
  /* aspect-ratio: 4/3; */
  
  img {
    width:100%;
    aspect-ratio: 4/3;
    background: #c8c8c8;
  }
}

.related-list a:hover {
  opacity: 0.8;
}

.related-list p {
  /* font-size: 12px; */
  line-height: 1.5;
  margin-top: 0.5em;
}

/* ---------- スマホ ---------- */
@media (max-width: 650px) {
  .ampro-container {
    font-size: 14px;
  }

  .ampro-container h2 {
    font-size: 24px;
    margin: 40px 0 16px;
    line-height: 1.2;
  }

  .history-title {
    font-size: 18px;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }

  .history-date {
    font-size: 18px;
  }

  .history-item h4 {
    font-size: 16px;
  }

  .highlight-list {
    grid-template-columns: 1fr;
  }

  .ampro-common-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .ampro-common-list > div:nth-child(odd) {
    border-left: none;
    /* padding: 0 10px; */
  }

  .ampro-common-list > div {
    padding: 0 12px;
  }

  .lineup-item h3 {
    font-size: 20px;
    border-left: 9px solid var(--color-red);
    padding-left: 10px;
  }

  .lineup-img {
    gap: 14px 10px;
  }

  .lineup-img > div {
    flex: 0 0 calc(14% - 10px);
    min-width: 0;
    max-width: none;
  }

  .related-list {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }
    .ampro-container h2::before, .ampro-container h2::after {
        width:40px;
        height:2px;
    }

}
