@charset "UTF-8";

/* ========================================
   Product Detail
======================================== */
.l-page-bg--lineup-detail {
  background-color: #001b3c;
  background-image: url("../img/products/page-bg.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
}

@media screen and (max-width: 1023px) {
  .l-page-bg--lineup-detail {
    background-image: url("../img/products/sp/page-bg.webp");
  }

  .p-lineup__bg {
    background: url("../img/products/sp/page-bg.webp") top center / cover
      no-repeat;
  }
}

.p-product-detail__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
}

.p-product-detail__title {
  width: 570px;
  margin: 0 auto 50px;
}

.p-product-detail__title img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
   Product Main
======================================== */
.p-product-main {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  grid-template-areas:
    "media catch"
    "media title"
    "media price"
    "media description"
    "media links";
  column-gap: 40px;
  row-gap: 0;
  align-items: start;
}

.p-product-main__media,
.p-product-main__catch,
.p-product-main__title,
.p-product-main__price,
.p-product-main__description,
.p-product-main__links {
  min-width: 0;
}

.p-product-main__media {
  grid-area: media;
}

.p-product-main__catch {
  grid-area: catch;
}

.p-product-main__title {
  grid-area: title;
}

.p-product-main__price {
  grid-area: price;
}

.p-product-main__description {
  grid-area: description;
}

.p-product-main__links {
  grid-area: links;
}

/* ========================================
   Gallery
======================================== */
.p-product-main__media {
  display: flex;
  justify-content: center;
}

.p-product-gallery {
  width: 100%;
}

.p-product-gallery__main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.p-product-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}

.p-product-gallery__main img.is-fade {
  opacity: 0;
}

.p-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: min(100%, 440px);
  margin: 24px auto 0;
}

.p-product-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.p-product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.p-product-gallery__thumb:hover img,
.p-product-gallery__thumb.is-active img {
  opacity: 0.5;
}

/* ========================================
   Product Content
======================================== */

/* 暗色背景対応：商品詳細テキストを白に統一 */
.p-product-name,
.p-product-price,
.p-product-description,
.p-product-description p {
  color: #fff;
}
.p-product-catch {
  position: relative;
  display: inline-block;
  margin: 0 0 28px;
  padding: 14px 22px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 6px;
  background: var(--catch-color);
}

.p-product-catch::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -14px;
  width: 0;
  height: 0;
  border-top: 16px solid var(--catch-color);
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  color: inherit;
}

.p-product-catch--orange {
  color: #fff;
  background: #ef7051;
}

.p-product-catch--orange::after {
  border-top-color: #ef7051;
}

.p-product-catch--green {
  color: #fff;
  background: #76b82a;
}

.p-product-catch--green::after {
  border-top-color: #76b82a;
}

.p-product-catch--blue {
  color: #fff;
  background: #4d95d8;
}

.p-product-catch--blue::after {
  border-top-color: #4d95d8;
}

.p-product-catch--pink {
  color: #fff;
  background: #de6ca8;
}

.p-product-catch--pink::after {
  border-top-color: #de6ca8;
}

.p-product-catch--yellow {
  color: #fff;
  background: #e3b72f;
}

.p-product-catch--yellow::after {
  border-top-color: #e3b72f;
}

.p-product-name {
  margin: 0;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
}

.p-product-price {
  margin: 24px 0 0;
  color: #fff;
  line-height: 1.4;
}

.p-product-price__main {
  font-size: 54px;
  font-weight: 700;
}

.p-product-price__sub {
  font-size: 27px;
  font-weight: 700;
}

.p-product-description {
  margin-top: 28px;
}

.p-product-description p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

.p-product-description p + p {
  margin-top: 0.8em;
}

.p-product-links {
  display: flex;
  gap: 18px;
  margin-top: 72px;
}

/* ========================================
   Common Outline Button
======================================== */
.c-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  color: #ef7051;
  text-align: center;
  text-decoration: none;

  background: #fff;
  border: 1px solid #ef7051;

  /* ▼ opacity削除 */
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* ▼ hover（PCのみ） */
@media (hover: hover) and (pointer: fine) {
  .c-outline-button:hover {
    background: #ef7051;
    color: #fff;
    border-color: #ef7051;
  }

  /* ▼ SVG対応 */
  .c-outline-button:hover svg {
    stroke: currentColor;
  }
}

.c-outline-button--product-link {
  width: 268px;
  min-height: 80px;
  padding: 12px 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.c-outline-button--archive {
  width: 410px;
  min-height: 98px;
  padding: 16px 28px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

/* ========================================
   Archive Button Arrow
======================================== */
.c-outline-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-outline-button__icon::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.c-outline-button__text {
  display: inline-block;
}

/* ========================================
   Movie
======================================== */
.p-product-movie {
  margin-top: 200px;
}

.p-product-movie__title {
  width: 340px;
  margin: 0 auto;
}

.p-product-movie__title img {
  display: block;
  width: 100%;
  height: auto;
}

.p-product-movie__embed {
  width: 550px;
  margin: 40px auto 0;
}

.p-product-movie__embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
}

/* ========================================
   Archive Link
======================================== */
.p-product-detail__archive-link {
  display: flex;
  justify-content: center;
  margin-top: 90px;
}

/* ========================================
   Tablet
======================================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .l-page-bg--lineup-detail {
    background-image: url(../img/products/sp/page-bg.webp);
    background-size: cover;
    background-attachment: fixed;
  }

  .p-product-detail__inner {
  }

  .p-product-detail__title {
    width: 360px;
    margin: 0 auto 32px;
  }

  .p-product-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "catch"
      "title"
      "price"
      "media"
      "description"
      "links";
    row-gap: 0;
  }

  .p-product-main__catch {
    margin-bottom: 8px;
  }

  .p-product-catch {
    margin: 0;
    padding: 14px 18px;
    font-size: 26px;
    border-radius: 6px;
  }

  .p-product-catch::after {
    left: 24px;
    bottom: -15px;
    border-top-width: 16px;
    border-right-width: 13px;
    border-left-width: 13px;
  }

  .p-product-main__title {
    margin-top: 18px;
  }

  .p-product-name {
    font-size: 34px;
    line-height: 1.25;
  }

  .p-product-main__price {
    margin-top: 6px;
  }

  .p-product-price {
    margin: 0;
    line-height: 1.3;
  }

  .p-product-price__main {
    font-size: 42px;
  }

  .p-product-price__sub {
    display: inline;
    margin: 0;
    font-size: 26px;
  }

  .p-product-main__media {
    margin-top: 32px;
  }

  .p-product-gallery__main {
    width: min(100%, 420px);
    height: 420px;
    margin: 0 auto;
  }

  .p-product-gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
  }

  .p-product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: min(100%, 380px);
    margin: 20px auto 0;
  }

  .p-product-gallery__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .p-product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .p-product-main__description {
    margin-top: 24px;
  }

  .p-product-description {
    margin-top: 0;
  }

  .p-product-description p {
    font-size: 18px;
    line-height: 1.9;
  }

  .p-product-description p + p {
    margin-top: 0.75em;
  }

  .p-product-main__links {
    margin-top: 50px;
  }

  .p-product-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
    align-items: center;
  }

  .c-outline-button--product-link {
    font-size: 21px;
    line-height: 1;
    width: 410px;
    min-height: 98px;
    padding: 10px 16px;
  }

  .p-product-movie {
    margin-top: 80px;
  }

  .p-product-movie__title {
    width: 331px;
    margin: 0 auto;
  }

  .p-product-movie__embed {
    width: 450px;
    max-width: 100%;
    margin: 24px auto 0;
  }

  .p-product-movie__embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 0;
  }

  .p-product-detail__archive-link {
    margin-top: 42px;
  }

  .c-outline-button--archive {
    font-size: 21px;
    line-height: 1;
    width: 410px;
    min-height: 98px;
    padding: 10px 16px;
  }
}

/* ========================================
   SP
======================================== */
@media screen and (max-width: 767px) {
  .l-page-bg--lineup-detail {
    background-size: cover;
  }

  .p-product-detail__inner {
  }

  .p-product-detail__title {
    width: 243px;
    margin: 0 auto 24px;
  }

  .p-product-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "catch"
      "title"
      "price"
      "media"
      "description"
      "links";
    row-gap: 0;
  }

  .p-product-main__catch {
    margin-bottom: 8px;
  }

  .p-product-catch {
    margin: 0;
    padding: 16px;
    font-size: 24px;
    border-radius: 6px;
  }

  .p-product-catch::after {
    left: 24px;
    bottom: -13px;
    border-top-width: 18px;
    border-right-width: 15px;
    border-left-width: 15px;
  }

  .p-product-main__title {
    margin-top: 18px;
  }

  .p-product-name {
    font-size: 34px;
    line-height: 1.25;
  }

  .p-product-main__price {
    margin-top: 6px;
  }

  .p-product-price {
    margin: 0;
    line-height: 1.3;
  }

  .p-product-price__main {
    font-size: 32px;
  }

  .p-product-price__sub {
    display: inline;
    margin: 0;
    font-size: 20px;
  }

  .p-product-main__media {
    margin-top: 38px;
  }

  .p-product-gallery__main {
    width: min(100%, 334px);
    height: 334px;
    margin: 0 auto;
  }

  .p-product-gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
  }

  .p-product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: min(100%, 334px);
    margin: 20px auto 0;
  }

  .p-product-gallery__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .p-product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .p-product-main__description {
    margin-top: 18px;
  }

  .p-product-description {
    margin-top: 0;
  }

  .p-product-description p {
    font-size: 16px;
    line-height: 1.8;
  }

  .p-product-description p + p {
    margin-top: 0.75em;
  }

  .p-product-main__links {
    margin-top: 40px;
  }

  .p-product-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    align-items: center;
  }

  .c-outline-button--product-link {
    width: 269px;
    min-height: 74px;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }

  .p-product-movie {
    margin-top: 60px;
  }

  .p-product-movie__title {
    width: 226px;
    margin: 0 auto;
  }

  .p-product-movie__embed {
    width: 100%;
    margin: 30px auto 0;
  }

  .p-product-movie__embed iframe {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border: 0;
  }

  .p-product-detail__archive-link {
    margin-top: 50px;
  }

  .c-outline-button--archive {
    width: 100%;
    min-height: 74px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1;
  }

  .c-outline-button__icon {
    gap: 0;
  }

  .c-outline-button__icon::before {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 13px;
  }
}
