@charset "UTF-8";
@import url("./components/guide-row.css");

/* ========================================
   Product detail
======================================== */

.p-product-detail {
  overflow: hidden;
  background: #efefef;
  color: #111;
}

.p-product-detail__body {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: 55px 0 0;
}

/* Main
---------------------------------------- */

.p-product-detail__main {
  display: grid;
  grid-template-columns: 500px 448px;
  gap: 52px;
  width: min(100vw, 1000px);
  margin-inline: auto;
}

.p-product-detail__media,
.p-product-detail__content {
  min-width: 0;
}

.p-product-detail__media {
  width: 500px;
}

.p-product-detail__content {
  width: 448px;
}

.p-product-detail__main-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  height: 500px;
  margin: 0;
}

.p-product-detail__main-image img {
  display: block;
  width: 464px;
  height: 464px;
  margin: 0;
  object-fit: contain;
  background: #fff;
}

/* Gallery
---------------------------------------- */

.p-product-detail__gallery {
  display: grid;
  grid-template-columns: repeat(4, 114px);
  gap: 14.6667px;
  width: 500px;
  margin-top: 40px;
}

.p-product-detail__gallery-item {
  overflow: hidden;
  width: 114px;
  height: 114px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: #d9d9d9;
  cursor: pointer;
}

.p-product-detail__gallery-item img {
  width: 114px;
  height: 114px;
  object-fit: contain;
  background: #fff;
  font-size: 20px;
}

.p-product-detail__gallery-item.is-active {
  outline: 1px solid #111;
  outline-offset: -1px;
}

/* Product information
---------------------------------------- */

.p-product-detail__header {
  padding-top: 8px;
}

.p-product-detail__series {
  margin: 0;
  font-family: var(--font-ryo-display);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.6;
}

.p-product-detail__name-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}

.p-product-detail__name {
  margin: 0;
  font-family: var(--font-ryo-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
}

.p-product-detail__code {
  flex: 0 0 auto;
  margin: 0 0 3px;
  font-family: var(--font-ryo-gothic);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.p-product-detail__description {
  margin: 22px 0 0;
  font-family: var(--font-ryo-gothic);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
}

.p-product-detail__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #111;
  font-family: var(--font-ryo-display);
}

.p-product-detail__price strong {
  font-family: var(--font-ryo-display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.4;
}

.p-product-detail__price span {
  font-family: var(--font-ryo-display);
  font-size: 18px;
  font-weight: 500;
}

.p-product-detail__store-links {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 12px;
  margin-top: 18px;
}

.p-product-detail__store-links a {
  display: grid;
  place-items: center;
  width: 156px;
  min-height: 44px;
  background: #111;
  color: #fff;
  font-family: var(--font-ryo-gothic);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.p-product-detail__spec-table {
  margin: 20px 0 0;
  background: #fff;
}

.p-product-detail__spec-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 50px;
}

.p-product-detail__spec-row + .p-product-detail__spec-row {
  border-top: 12px solid #efefef;
}

.p-product-detail__spec-row dt,
.p-product-detail__spec-row dd {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-ryo-gothic);
  font-size: 14px;
  line-height: 1.65;
}

.p-product-detail__spec-row dt {
  position: relative;
  border-right: 0;
  font-weight: 500;
}

.p-product-detail__spec-row dt::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 0;
  bottom: 6px;
  width: 1px;
  background: #111;
}

.p-product-detail__spec-row dd {
  font-weight: 400;
}

.p-product-detail__spec-row ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-product-detail__spec-row li::before {
  content: "・";
}

.p-product-detail__view360 {
  margin-top: 56px;
  text-align: center;
}

.p-product-detail__view360 p {
  margin: 0;
  font-family: var(--font-ryo-gothic);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.p-product-detail__view360 a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 20px;
  background: url("../img/product-detail/bg-product-360view.webp") center /
    cover no-repeat;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.25s ease;
}

/* Section heading
---------------------------------------- */

.p-product-detail__section-head {
  position: relative;
  display: flex;
  align-items: center;
}

.p-product-detail__section-deco {
  position: absolute;
  right: calc(100% + 16px);
  width: 70px;
  height: 40px;
}

.p-product-detail__section-deco--blue {
  background: url("../img/product-detail/deco-product-section-blue.webp")
    center / cover no-repeat;
}

.p-product-detail__section-deco--orange {
  background: url("../img/product-detail/deco-product-section-orange.webp")
    center / cover no-repeat;
}

.p-product-detail__section-title {
  margin: 0;
  font-family: "Limelight", sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
}

.p-product-detail__section-title-ja {
  margin: 8px 0 0;
  font-family: var(--font-ryo-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

/* Movie
---------------------------------------- */

.p-product-detail__movie {
  width: min(100vw, 1000px);
  margin: 100px auto 0;
}

.p-product-detail__movie-frame {
  width: 620px;
  aspect-ratio: 16 / 9;
  margin: 42px auto 0;
  background: #d9d9d9;
}

.p-product-detail__movie-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-ryo-gothic);
  font-size: 14px;
}

/* Related
---------------------------------------- */

.p-product-detail__related {
  width: min(100vw, 1000px);
  margin: 110px auto 0;
}

.p-product-detail__related-slider {
  position: relative;
  width: 100vw;
  margin-top: 48px;
  margin-left: calc(50% - 50vw);
}

.p-product-detail__related-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100vw;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.p-product-detail__related-viewport::-webkit-scrollbar {
  display: none;
}

.p-product-detail__related-list {
  display: flex;
  align-items: end;
  gap: 38px;
  width: max-content;
  margin: 0;
  padding: 0 70px 0 var(--related-initial-offset, 0px);
  list-style: none;
}

.p-product-detail__related-item {
  flex: 0 0 auto;
  width: 150px;
  min-width: 0;
}

.p-product-detail__related-item a {
  display: block;
}

.p-product-detail__related-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
  will-change: transform;
}

.p-product-detail__related-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: rgba(239, 239, 239, 0.9);
  cursor: pointer;
  transform: translateY(-50%);
}

/* Hide navigation until JS confirms that the related-products row can scroll. */
.p-product-detail__related-slider:not(.is-scrollable) .p-product-detail__related-arrow {
  display: none;
}

.p-product-detail__related-slider.is-scrollable .p-product-detail__related-arrow {
  display: grid;
}

.p-product-detail__related-arrow--prev {
  left: 18px;
}

.p-product-detail__related-arrow--next {
  right: 18px;
}

.p-product-detail__related-arrow span {
  display: block;
  width: 14px;
  height: 14px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
}

.p-product-detail__related-arrow--prev span {
  transform: translateX(2px) rotate(-135deg);
}

.p-product-detail__related-arrow--next span {
  transform: translateX(-2px) rotate(45deg);
}

.p-product-detail__related-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.p-product-detail__back {
  display: flex;
  justify-content: center;
  margin-top: 46px;
}

.p-product-detail__back a {
  display: grid;
  place-items: center;
  min-width: 190px;
  min-height: 46px;
  padding: 0 22px;
  background: #111;
  color: #fff;
  font-family: var(--font-ryo-gothic);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .p-product-detail__gallery-item:hover,
  .p-product-detail__store-links a:hover,
  .p-product-detail__view360 a:hover,
  .p-product-detail__related-arrow:not(:disabled):hover,
  .p-product-detail__back a:hover {
    opacity: 0.65;
  }

  .p-product-detail__related-item a:hover img {
    transform: scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-product-detail__related-item img {
    transition-duration: 0.01ms;
  }
}

/* ========================================
   Product detail / Responsive
======================================== */

@media (min-width: 768px) and (max-width: 1199px) {
  .p-product-detail__main {
    grid-template-columns:
      minmax(280px, 1fr)
      minmax(360px, 448px);
    gap: clamp(24px, 4vw, 52px);
    width: min(calc(100% - 40px), 1000px);
  }

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

  .p-product-detail__main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-product-detail__main-image img {
    width: calc(100% - 36px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-product-detail__gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.4vw, 14.6667px);
    width: 100%;
  }

  .p-product-detail__gallery-item,
  .p-product-detail__gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

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

  .p-product-detail__movie,
  .p-product-detail__related {
    width: min(calc(100% - 40px), 1000px);
  }

  .p-product-detail__section-head {
    padding-left: 86px;
  }

  .p-product-detail__section-deco {
    top: 6px;
    left: 0;
    right: auto;
  }

  .p-product-detail__movie-frame {
    width: min(100%, 620px);
  }
}

@media (max-width: 767px) {
  .p-product-detail__body {
    width: 100%;
    padding: 30px 20px 0;
  }

  .p-product-detail__main {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  .p-product-detail__media,
  .p-product-detail__content {
    width: 100%;
  }

  .p-product-detail__main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-product-detail__main-image img {
    width: calc(100% - 30px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-product-detail__gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 20px;
  }

  .p-product-detail__gallery-item,
  .p-product-detail__gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-product-detail__series {
    font-size: 14px;
  }

  .p-product-detail__name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .p-product-detail__name {
    font-size: 30px;
  }

  .p-product-detail__code {
    margin: 0;
  }

  .p-product-detail__price {
    margin-top: 30px;
    padding-top: 30px;
  }

  .p-product-detail__store-links {
    width: 100%;
  }

  .p-product-detail__store-links a {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .p-product-detail__spec-row {
    grid-template-columns: minmax(132px, 40%) minmax(0, 1fr);
  }

  .p-product-detail__spec-row dt,
  .p-product-detail__spec-row dd {
    padding-inline: 14px;
  }

  .p-product-detail__spec-row dt {
    white-space: nowrap;
    font-size: 12px;
  }

  .p-product-detail__spec-row dd {
    min-width: 0;
    font-size: 12px;
  }

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

  .p-product-detail__view360 a {
    font-size: 12px;
  }

  .p-product-detail__movie,
  .p-product-detail__related {
    width: 100%;
  }

  .p-product-detail__section-head {
    padding-left: 52px;
  }

  .p-product-detail__section-deco {
    display: block;
    top: 6px;
    left: 0;
    right: auto;
    width: 40px;
    height: 24px;
  }

  .p-product-detail__movie {
    margin: 50px auto 0;
  }

  .p-product-detail__movie-frame {
    width: 100%;
    margin: 24px auto 0;
  }

  .p-product-detail__related {
    margin: 50px auto 0;
  }

  .p-product-detail__related-slider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .p-product-detail__related-list {
    gap: 24px;
    padding-right: 40px;
  }

  .p-product-detail__related-item {
    width: clamp(120px, 33vw, 150px);
  }

  .p-product-detail__related-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-product-detail__related-arrow--prev {
    left: 0;
  }

  .p-product-detail__related-arrow--next {
    right: 0;
  }
}
/* Related products heading: decoration follows the English title only. */
.p-product-detail__related .p-product-detail__section-deco {
  top: 0;
  bottom: auto;
  height: 39px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .p-product-detail__related .p-product-detail__section-deco {
    top: 6px;
  }
}

@media (max-width: 767px) {
  .p-product-detail__related .p-product-detail__section-deco {
    top: 6px;
    height: 24px;
  }
}


/* TENYO FINAL UI POLISH 20260923 */
.p-product-detail__gallery-item { transition: opacity .25s ease; }
.p-product-detail__gallery-item.is-active { cursor: default; }
.p-product-detail__store-links a, .p-product-detail__back a { transition: none; }
.p-product-detail__store-links a > span, .p-product-detail__back a > span { position: relative; display: inline-block; }
.p-product-detail__store-links a > span::after, .p-product-detail__back a > span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform .32s cubic-bezier(.22,1,.36,1);
}
@media (hover:hover) and (pointer:fine) {
  .p-product-detail__gallery-item.is-active:hover, .p-product-detail__store-links a:hover, .p-product-detail__back a:hover { opacity: 1; }
  .p-product-detail__store-links a:hover > span::after, .p-product-detail__store-links a:focus-visible > span::after,
  .p-product-detail__back a:hover > span::after, .p-product-detail__back a:focus-visible > span::after { transform: scaleX(1); }
}
/* Keep related navigation visible; disabled state communicates the scroll limit. */

/* SP related heading line break. common.js splits the heading into per-character spans,
   so force the original space (9th character) to become the line break after splitting. */
.p-product-detail__section-title-break { display: none; }
@media (max-width: 767px) {
  .p-product-detail__related .p-product-detail__section-title .js-heading-reveal-char:nth-child(9) {
    display: block;
    width: 0;
    height: 0;
    overflow: hidden;
  }
}
