.pp-product {
  overflow: clip;
}

.pp-container {
  width: min(calc(100% - (var(--container-gutter) * 2)), var(--container-max-width));
  margin: 0 auto;
}

.pp-section {
  padding: var(--space-12) 0;
}

.pp-media-grid {
  display: grid;
  gap: var(--space-5);
}

.pp-media-card {
  position: relative;
  overflow: hidden;
  background: rgb(var(--color-text));
  border-radius: var(--rounded-block);
  box-shadow: var(--shadow-block);
}

/* 隣の画像カードと高さを揃える。16/9 で固定するとカードの下 44% が黒く空いた
   （目視ゲートの指摘 2026-08-26）。カード自体が正方形なので、その高さを埋める。 */
.pp-media-card__facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.pp-media-card__facade img,
.pp-media-card > .media-card__iframe {
  width: 100%;
  object-fit: cover;
}

.pp-media-card__facade img {
  height: 100%;
}

.pp-media-card > .media-card__iframe {
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.pp-media-card__facade svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  padding: 18px;
  transform: translate(-50%, -50%);
  color: rgb(var(--color-background));
  background: rgb(var(--color-text) / 0.72);
  border-radius: 50%;
  fill: currentColor;
}

.pp-media-card__facade:hover svg,
.pp-media-card__facade:focus-visible svg {
  color: rgb(var(--color-text));
  background: rgb(var(--color-accent));
}

.pp-media-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
}

.pp-media-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 本家は `content-over-media` + `place-self-center text-center` で、画像の**中央**に
   キャプションを重ねる。下端に置くと画像内に焼き込まれた英語の文字と衝突して
   両方読めなくなる（目視ゲートの指摘 2026-08-26）。本家の位置に合わせる。 */
.pp-media-card__caption {
  position: absolute;
  top: 50%;
  right: var(--space-6);
  left: var(--space-6);
  padding: var(--space-3) var(--space-4);
  color: rgb(var(--color-background));
  background: rgb(var(--color-text) / 0.55);
  border-radius: var(--rounded);
  font-weight: 700;
  text-align: center;
  transform: translateY(-50%);
}

.pp-review-carousel {
  position: relative;
}

.pp-review-carousel__track {
  display: grid;
  grid-auto-columns: 82%;
  grid-auto-flow: column;
  gap: var(--space-5);
  overflow-x: auto;
  padding: var(--space-4) var(--space-8);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.pp-review-card {
  display: flex;
  min-width: 0;
  padding: var(--space-8);
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  background: rgb(var(--color-header-background));
  border-radius: var(--rounded-block);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  text-align: center;
}

.pp-review-card__stars {
  display: flex;
  gap: var(--space-1);
  color: rgb(var(--color-accent));
}

.pp-review-card__stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.pp-review-card blockquote {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.8;
}

.pp-review-card > img {
  width: min(100%, 350px);
  height: 108px;
  object-fit: contain;
}

.pp-review-card__source {
  font-size: 0.875rem;
}

.pp-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: rgb(var(--color-text));
  background: rgb(var(--color-background));
  border: 1px solid var(--border-color);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transform: translateY(-50%);
}

.pp-carousel-button--prev {
  left: 0;
}

.pp-carousel-button--next {
  right: 0;
}

.pp-carousel-button svg {
  width: 10px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.pp-overlay,
.pp-banner,
.pp-video-frame,
.pp-media-with-text,
.pp-image-text-list {
  overflow: hidden;
  border-radius: var(--rounded-block);
  box-shadow: var(--shadow-block);
}

.pp-overlay {
  position: relative;
  color: rgb(var(--color-background));
  background: rgb(var(--color-text));
}

.pp-overlay::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgb(var(--color-text) / 0.62), rgb(var(--color-text) / 0.08) 70%, transparent);
  content: '';
  pointer-events: none;
}

.pp-overlay picture,
.pp-overlay picture img {
  display: block;
  width: 100%;
}

.pp-overlay picture img {
  height: auto;
}

.pp-overlay__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 7%;
  width: min(55%, 800px);
  transform: translateY(-50%);
  text-align: left;
  text-shadow: 0 2px 12px rgb(var(--color-text) / 0.35);
}

.pp-overlay__content--center {
  right: 7%;
  left: 7%;
  width: auto;
  text-align: center;
}

.pp-overlay__content h1,
.pp-overlay__content h2 {
  margin: 0 0 var(--space-5);
}

.pp-overlay__content p {
  margin: 0;
}

.pp-badge {
  background: #f7931e;
  color: #fff;
  border-radius: 4px;
  padding: 0 0.15em;
}

.pp-banner {
  background: #f2f2f2;
}

.pp-banner picture,
.pp-banner img {
  display: block;
  width: 100%;
}

.pp-banner img {
  height: auto;
}

.pp-rich-text {
  max-width: 900px;
  text-align: center;
}

.pp-rich-text h2 {
  margin: 0 0 var(--space-5);
}

.pp-rich-text p {
  margin: 0 auto;
}

.pp-video-frame {
  background: rgb(var(--color-text));
}

.pp-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 2.4;
  object-fit: cover;
}

.pp-media-with-text {
  display: grid;
  color: rgb(var(--color-background));
  background: rgb(var(--color-text));
}

.pp-media-with-text__media {
  min-width: 0;
}

.pp-media-with-text__media video {
  display: block;
  width: 100%;
  aspect-ratio: 1.775;
  object-fit: cover;
}

.pp-media-with-text__body {
  display: flex;
  min-width: 0;
  padding: var(--space-8);
  flex-direction: column;
  justify-content: center;
}

.pp-media-with-text__body h2 {
  margin: 0 0 var(--space-5);
}

.pp-media-with-text__body p {
  margin: 0;
}

.pp-image-text-list {
  display: grid;
  gap: var(--space-5);
  overflow: visible;
  box-shadow: none;
}

.pp-image-text-list__item {
  overflow: hidden;
  background: rgb(var(--color-background));
  border-radius: var(--rounded-block);
  box-shadow: var(--shadow-block);
}

.pp-image-text-list__item > img {
  width: 100%;
  height: auto;
}

.pp-image-text-list__body {
  padding: var(--space-6);
}

.pp-image-text-list__body h3 {
  margin: 0 0 var(--space-3);
}

.pp-image-text-list__body p {
  margin: 0;
}

.pp-spec {
  max-width: var(--container-narrow-max-width);
}

.pp-spec > h2 {
  margin: 0 0 var(--space-6);
  text-align: center;
}

.pp-spec__tablist-wrap {
  overflow-x: auto;
  border-bottom: 1px solid var(--border-color);
}

.pp-spec__tablist {
  display: flex;
  min-width: max-content;
  gap: var(--space-2);
}

.pp-spec__tablist button {
  padding: var(--space-4) var(--space-6);
  color: rgb(var(--color-text));
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.pp-spec__tablist button[aria-selected='true'] {
  border-bottom-color: rgb(var(--color-accent));
}

.pp-spec__tablist button:focus-visible,
.pp-carousel-button:focus-visible,
.pp-media-card__facade:focus-visible {
  outline: 3px solid rgb(var(--color-accent));
  outline-offset: 3px;
}

.pp-spec__panel {
  overflow-x: auto;
  padding-top: var(--space-8);
}

.pp-spec__list {
  display: grid;
  min-width: 680px;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
}

.pp-spec__row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  border-bottom: 1px solid var(--border-color);
}

.pp-spec__row:last-child {
  border-bottom: 0;
}

.pp-spec__row dt,
.pp-spec__row dd {
  min-width: 0;
  margin: 0;
  padding: var(--space-4);
}

.pp-spec__row dt {
  background: rgb(var(--color-header-background));
}

.pp-spec__row dt h6 {
  margin: 0;
}

.pp-spec__row dd {
  overflow-wrap: anywhere;
}

.pp-spec__values {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: var(--space-5);
  list-style: disc;
}

@media (min-width: 700px) {
  .pp-section {
    padding: var(--space-16) 0;
  }

  .pp-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-review-carousel__track {
    grid-auto-columns: 43vw;
  }

  .pp-media-with-text {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .pp-image-text-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-media-with-text__body {
    padding: var(--space-12);
  }
}

@media (min-width: 1150px) {
  .pp-section {
    padding: var(--space-20) 0;
  }

  .pp-review-carousel__track {
    grid-auto-columns: calc((100% - (var(--space-5) * 3)) / 4);
  }

  .pp-review-card > img {
    height: 120px;
  }
}

@media (max-width: 699px) {
  .pp-overlay__content {
    top: auto;
    right: var(--space-6);
    bottom: var(--space-6);
    left: var(--space-6);
    width: auto;
    transform: none;
  }

  .pp-overlay__content--center {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .pp-overlay__content h1,
  .pp-overlay__content h2 {
    margin-bottom: var(--space-3);
  }

  .pp-overlay__content p {
    font-size: 0.875rem;
  }

  .pp-carousel-button--prev {
    left: var(--space-2);
  }

  .pp-carousel-button--next {
    right: var(--space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-review-carousel__track {
    scroll-behavior: auto;
  }
}

/* X8 */
.pp-x8-overlay-image {
  display: block;
  width: 100%;
  height: auto;
}

.pp-x8-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.pp-x8-grid__item {
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgb(var(--color-text));
  border-radius: var(--rounded-block);
  box-shadow: var(--shadow-block);
}

.pp-x8-grid__item--2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.pp-x8-grid__item--2x1 {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.pp-x8-grid__item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-x8-video--wide {
  aspect-ratio: 2.4 !important;
}

.pp-x8-hotspots {
  max-width: var(--container-max-width);
}

.pp-x8-hotspots__stage {
  position: relative;
  overflow: visible;
  border-radius: var(--rounded-block);
  box-shadow: var(--shadow-block);
}

.pp-x8-hotspots__stage > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.pp-x8-hotspots__list {
  position: absolute;
  inset: 0;
}

.pp-x8-hotspot {
  position: absolute;
}

.pp-x8-hotspot--1 {
  top: 25%;
  left: 37%;
}

.pp-x8-hotspot--2 {
  top: 53%;
  left: 32%;
}

.pp-x8-hotspot--3 {
  top: 34%;
  left: 48%;
}

.pp-x8-hotspot--4 {
  top: 38%;
  left: 55%;
}

.pp-x8-hotspot--5 {
  top: 50%;
  left: 67%;
}

.pp-x8-hotspot__button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: rgb(var(--color-background));
  background: rgb(var(--color-text) / 0.82);
  border: 2px solid rgb(var(--color-background));
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}

.pp-x8-hotspot__button:hover,
.pp-x8-hotspot__button:focus-visible {
  color: rgb(var(--color-text));
  background: rgb(var(--color-accent));
}

.pp-x8-hotspot__button:focus-visible {
  outline: 3px solid rgb(var(--color-accent));
  outline-offset: 3px;
}

.pp-x8-hotspot__popover {
  position: absolute;
  top: 0;
  left: calc(100% + var(--space-3));
  z-index: 3;
  width: min(360px, 30vw);
  padding: var(--space-5);
  color: rgb(var(--color-text));
  background: rgb(var(--color-background));
  border-radius: var(--rounded);
  box-shadow: var(--shadow-block);
}

.pp-x8-hotspot--4 .pp-x8-hotspot__popover,
.pp-x8-hotspot--5 .pp-x8-hotspot__popover {
  right: calc(100% + var(--space-3));
  left: auto;
}

/* 本家はこのタイトルを <p class="h6"> というクラス偽装で書いている（本物の見出しではない）。
   日本語版でも <p> のままにして見出し階層から外しつつ、見た目は本家の見出し様に保つ。 */
.pp-x8-hotspot__popover .pp-x8-hotspot__title {
  margin: 0 0 var(--space-3);
  font-size: 1rem;
  font-weight: 700;
}

.pp-x8-hotspot__popover p {
  margin: 0;
}

.pp-x8-impact {
  display: grid;
  gap: var(--space-5);
  text-align: center;
}

.pp-x8-impact__item {
  padding: var(--space-8);
  /* 本家はカードの箱を持たない（地の色）。数値の緑を白地に載せることで
     コントラスト比 3.33:1 を確保する（--color-header-background の灰では 2.92:1 で不足）。 */
  background: rgb(var(--color-background));
  border-radius: var(--rounded-block);
  box-shadow: var(--shadow-block);
}

.pp-x8-impact__item h2 {
  margin: 0 0 var(--space-2);
  /* 本家 X8 の impact-text の数値色（実測 --text-color: 0 163 65）。 */
  color: rgb(0 163 65);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.pp-x8-impact__item p,
.pp-x8-impact__item h3 {
  margin: 0;
}

.pp-x8-impact__item .pp-x8-impact__label {
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.pp-x8-spec {
  max-width: var(--container-narrow-max-width);
}

.pp-x8-spec > h2 {
  margin: 0 0 var(--space-6);
  text-align: center;
}

.pp-x8-spec__list {
  display: grid;
  min-width: 680px;
  margin: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
}

.pp-x8-spec__row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  border-bottom: 1px solid var(--border-color);
}

.pp-x8-spec__row:last-child {
  border-bottom: 0;
}

.pp-x8-spec__row dt,
.pp-x8-spec__row dd {
  min-width: 0;
  margin: 0;
  padding: var(--space-4);
}

.pp-x8-spec__row dt {
  background: rgb(var(--color-header-background));
  font-weight: 700;
}

.pp-x8-spec__row dd {
  overflow-wrap: anywhere;
}

.pp-x8-spec.is-collapsed .comparison-table__row--additional {
  display: none;
}

.pp-x8-spec > [data-comparison-toggle] {
  display: block;
  margin: var(--space-6) auto 0;
  padding: var(--space-3) var(--space-6);
  color: rgb(var(--color-text));
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded);
  cursor: pointer;
  font-weight: 700;
}

.pp-x8-spec > [data-comparison-toggle]:hover,
.pp-x8-spec > [data-comparison-toggle]:focus-visible {
  border-color: rgb(var(--color-accent));
}

/* 製品概要（品番・価格の一覧。Issue #169・#172）。狭い画面では表を横スクロールさせる */
.pp-x8-overview,
.pp-x9-overview {
  overflow-x: auto;
}

.pp-x8-overview__table,
.pp-x9-overview__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.pp-x8-overview__table caption,
.pp-x9-overview__table caption {
  margin: 0 0 var(--space-6);
  text-align: center;
}

.pp-x8-overview__title,
.pp-x9-overview__title {
  display: block;
  margin: 0 0 var(--space-3);
  font-size: 1.5rem;
  font-weight: 700;
}

.pp-x8-overview__lead,
.pp-x9-overview__lead {
  display: block;
}

.pp-x8-overview__table th,
.pp-x8-overview__table td,
.pp-x9-overview__table th,
.pp-x9-overview__table td {
  padding: var(--space-4);
  border: 1px solid var(--border-color);
  text-align: center;
  vertical-align: middle;
}

.pp-x8-overview__table th,
.pp-x9-overview__table th {
  background: rgb(var(--color-header-background));
  font-weight: 700;
}

.pp-x8-spec > [data-comparison-toggle]:focus-visible {
  outline: 3px solid rgb(var(--color-accent));
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .pp-x8-impact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  /* Frame_311 は左右反転せず、写真の向きと左濃→右淡のグラデーションを保つ。 */
  .pp-overlay--image-right {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    aspect-ratio: 2.8;
  }

  .pp-overlay--image-right picture {
    position: absolute;
    inset: 0 0 0 42%;
    width: auto;
    height: 100%;
  }

  .pp-overlay--image-right picture img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .pp-overlay--image-right .pp-overlay__content {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin-left: 7%;
    /* 右隣の画像との間隔を「インピーダンス検出」(.pp-media-with-text__body) の余白と揃える。 */
    margin-right: var(--space-12);
    width: auto;
    transform: none;
  }
}

@media (max-width: 699px) {
  .pp-x8-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-x8-grid__item--2x2,
  .pp-x8-grid__item--2x1 {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .pp-x8-hotspots__stage {
    box-shadow: none;
  }

  .pp-x8-hotspots__stage > img {
    box-shadow: var(--shadow-block);
  }

  .pp-x8-hotspots__list {
    position: static;
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }

  .pp-x8-hotspot,
  .pp-x8-hotspot--1,
  .pp-x8-hotspot--2,
  .pp-x8-hotspot--3,
  .pp-x8-hotspot--4,
  .pp-x8-hotspot--5 {
    position: static;
  }

  .pp-x8-hotspot__button {
    display: none;
  }

  .pp-x8-hotspot__popover,
  .pp-x8-hotspot--4 .pp-x8-hotspot__popover,
  .pp-x8-hotspot--5 .pp-x8-hotspot__popover {
    position: static;
    display: block !important;
    width: auto;
    padding: var(--space-5);
  }

  .pp-x8-spec__list {
    min-width: 0;
  }

  .pp-x8-spec__row {
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  }
}
