@charset "UTF-8";
/*
 * 商品詳細ページ共通スタイル
 * ATERNA / MOTIVA / TORDERA などのラインナップ詳細ページで共通して使用します。
 * 色は以下のカスタムプロパティ経由で指定しており、各ブランドのCSSで上書きします。
 *   --accent-color        : ブランドのメインアクセント色（スコアバー、マーカー等）
 *   --accent-color-light  : アクセント色の淡色（表ヘッダー、ボーダー等）
 *   --hero-accent-filter  : bg_product-card.svg を着色する filter
 */

/* 横スクロール抑止: .product-hero の bg 装飾が画面幅を超えて広がるため */
.page-lineup {
  overflow-x: hidden;
}

/* ラインナップ詳細ページはコンテンツ幅を 960px（PSD カンプ準拠）に制限 */
.page-lineup .container {
  max-width: 960px;
}

/* ===== ブランド固有の色設定 =====
 * 各ブランドの body クラス配下でカスタムプロパティを上書き。
 * --accent-color         : アクセント主色（スコアバー、マーカー、レンジピル等）
 * --accent-color-light   : アクセント淡色（表ヘッダー、ボーダー、動画枠）
 * --hero-accent-filter   : bg_product-card.svg の SVG filter（色転換用）
 */
.page-aterna {
  --accent-color: #ff8423;
  --accent-color-light: #f7ad73;
  --hero-accent-filter: brightness(0) saturate(100%) invert(63%) sepia(77%) saturate(277%) hue-rotate(341deg) brightness(102%) contrast(94%);
}
.page-motiva {
  --accent-color: #267af2;
  --accent-color-light: #648eca;
  --hero-accent-filter: brightness(0) saturate(100%) invert(55%) sepia(100%) saturate(228%) hue-rotate(176deg) brightness(83%) contrast(91%);
  --hero-logo-sp-width: 95%;
  --hero-logo-pc-width: 520px;
}
.page-tordera {
  --accent-color: #04a865;
  --accent-color-light: #80c5a9;
  --hero-accent-filter: brightness(0) saturate(100%) invert(82%) sepia(16%) saturate(699%) hue-rotate(104deg) brightness(88%) contrast(83%);
  --hero-logo-sp-width: 100%;
  --hero-logo-pc-width: 600px;
  --tech-detail-marker-sp-width: 64vw;
  --tech-detail-marker-pc-width: 300px;
  --tech-detail-marker-768-width: 33vw;
  --tech-detail-marker-sp-right: 70vw;
  --tech-detail-marker-pc-right: 326px;
  --tech-detail-marker-768-right: 35vw;
}

/* ===== Shutter ===== */
.shutter {
  background-color: var(--color-main);
}
.shutter img {
  width: 80%;
  max-width: var(--hero-logo-pc-width, 444px);
}

/* ===== Hero ===== */
.product-hero {
  position: relative;
  background: var(--color-main);
  color: var(--color-text-light);
  padding: 36px 20px 0;
  overflow: hidden;
  text-align: center;
}

/* 背景装飾: bg_product-card.svg をブランドカラーに染めて配置 */
.product-hero::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 0;
  width: 160%;
  height: 100%;
  background: url('../img/bg_product-card.svg') no-repeat center center / contain;
  filter: var(--hero-accent-filter);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.product-hero__inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  z-index: 2;
}

.product-hero__text {
  position: relative;
  z-index: 3;
}

.product-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.product-hero__logo {
  width: var(--hero-logo-sp-width, 82%);
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

.product-hero__subname {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color-light);
  letter-spacing: 0.1em;
}

.product-hero__range {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0 15px;
  margin: 0 auto 14px;
}
.product-hero__range span {
  letter-spacing: 0.08em;
}

.product-hero__catch {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-hero__lead {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: 10px;
}

/* タイヤ画像: SPは中央、下部がヒーロー下辺でクリップされる */
.product-hero__visual {
  position: relative;
  z-index: 2;
  width: 62%;
  max-width: 300px;
  margin: 0 auto;
  margin-bottom: -28%;
}

.product-hero__tire {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== ページ内ナビゲーション =====
 * .nav / .nav__list / .nav__item の基本スタイルは main.css を流用。
 * .nav--page: 詳細ページのインラインナビ（全サイズで表示）
 * .nav--pc  : MENUボタン押下時のオーバーレイ（main.css のスタイルを流用、768px+では非表示）
 * .nav--footer : フッター上のナビ（main.css のスタイルを流用）
 */
.nav--footer {
  margin: 0 auto 40px;
}

/* ===== Features: スコアチャート ===== */
.section--features {
  padding: 56px 0 48px;
}

.features-score {
  max-width: 360px;
  margin: 0 auto 40px;
}

.score-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-item {
  display: grid;
  grid-template-columns: 1fr 22px 100px;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid var(--color-main);
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-main);
  background: #fff;
}

/* 10マスのスコアバー: 各セルは独立した正方形 */
.score-bar {
  display: flex;
  gap: 3px;
  width: 100%;
}

.score-bar__cell {
  flex: 1;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--accent-color);
  background: #fff;
  box-sizing: border-box;
}

.score-bar__cell.filled {
  background: var(--accent-color);
}

.score-value {
  text-align: center;
  font-size: 1rem;
  color: var(--color-main);
}

.score-label {
  text-align: left;
  color: var(--color-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.score-note {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--color-main);
  text-align: center;
}

/* ===== Features: 3つの特長 ===== */
.feature-points {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 780px;
  margin: 0 auto 48px;
}

.feature-point {
  display: flex;
  gap: 18px;
  align-items: center;
}

.feature-point__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
}

.feature-point__body {
  flex: 1;
}

.feature-point__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 6px;
}

.feature-point__text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-main);
}

/* ===== 技術詳細（タイヤクローズアップ） ===== */
.tech-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 48px;
}

.tech-detail__image {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.tech-detail__image img {
  width: 80%;
  height: auto;
  margin-left: 5%;
}

.tech-detail__marker {
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  z-index: 2;
}

/* 引き出し線（マーカー左側に伸びる） */
.tech-detail__marker::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 42px;
  height: 1.5px;
  background: #a4c2c4;
  transform: translateY(-50%);
  z-index: 1;
}

/* 白丸ポイント（線の先端） */
.tech-detail__marker::after {
  content: '';
  position: absolute;
  right: calc(100% + 42px - 5px);
  top: 50%;
  width: 11px;
  height: 11px;
  background: #fff;
  border: 2px solid #a4c2c4;
  border-radius: 50%;
  transform: translateY(-50%);
  box-sizing: border-box;
  z-index: 1;
}

.tech-detail__marker--1 { top: 10%; right: 5%; }
.tech-detail__marker--2 { top: 38%; right: 5%; }
.tech-detail__marker--3 { top: 62%; right: 5%; }

/* マーカーごとに引き出し線の長さと白丸位置を画像上の対応位置まで伸ばす */
.tech-detail__marker--1::before {
  width: 16vw;
}
.tech-detail__marker--2::before {
  width: var(--tech-detail-marker-sp-width, 16vw);
}
.tech-detail__marker--3::before {
  width: 25vw;
}
.tech-detail__marker--1::after {
  right: 20vw;
}
.tech-detail__marker--2::after {
  right: var(--tech-detail-marker-sp-right, 20vw);
}
.tech-detail__marker--3::after {
  right: 29vw;
}

.tech-detail__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tech-detail__item {
  padding-left: 0;
}

.tech-detail__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.tech-detail__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tech-detail__text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-main);
  font-weight: 500;
  padding-left: 0;
}

/* ===== 商品動画 ===== */
.product-movie {
  max-width: 790px;
  margin: 0 auto;
}

.product-movie__frame {
  border: 2px solid var(--accent-color-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

.product-movie__frame > div {
  margin: 0;
}

/* ===== Size line up ===== */
.section--size {
  padding: 40px 0 64px;
}

.size-table-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Scroll ヒント: 縦書き、表に重なる位置、右側に矢印、揺れアニメーション */
.size-table__scroll-hint {
  display: inline-block;
  position: absolute;
  bottom: 10px;
  right: 22%;
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.1em;
  z-index: 3;
  animation: scroll-hint-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50%     { transform: translateY(4px); }
}

/* Scroll の右側に縦線+右斜線1本の下向き矢頭 (SVG) */
.size-table__scroll-hint::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -7px;
  width: 12px;
  height: 140%;
  writing-mode: horizontal-tb;
  background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 12 100'><line x1='4' y1='0' x2='4' y2='99' stroke='%23023b3a' stroke-width='1' vector-effect='non-scaling-stroke'/><line x1='4' y1='99' x2='10' y2='85' stroke='%23023b3a' stroke-width='1' vector-effect='non-scaling-stroke'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* スクロール領域: 高さを固定、thead を固定、全周 border で下部も常に表示。
   スクロールバーはすべてのブラウザで非表示にする */
.size-table-scroll {
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid var(--accent-color-light);
  border-radius: 6px 6px 0 0;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / old Edge */
}
.size-table-scroll::-webkit-scrollbar {
  display: none;                /* Chrome, Safari, Edge */
}

.size-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fffcf5;
  font-size: 0.88rem;
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 700;
}

.size-table thead th,
.size-table tbody td {
  padding: 6px 3px;
  white-space: nowrap;
}

/* tbody: 各セルは右・下のみ border。左borderは付けない（外枠は table が担う） */
.size-table tbody td {
  border-right: 1px solid var(--accent-color-light);
  border-bottom: 1px solid var(--accent-color-light);
  text-align: center;
  color: var(--color-main);
}
.size-table tbody tr td:last-child {
  border-right: none;
  width: 5em;
}

/* thead: アクセント淡色背景、内側の区切りは白、右端の右borderは table 側が担う */
.size-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--accent-color-light);
  color: var(--color-main);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  border-top: 1px solid var(--accent-color-light);
  border-bottom: 1px solid var(--accent-color-light);
  border-right: 1px solid #fff;
}
.size-table thead th:last-child {
  border-right: none;
}

/* タイヤサイズ列は左寄せ + 左余白 */
.size-table tbody td:nth-last-child(2) {
  text-align: left;
  padding-left: 1rem;
}

/* タイヤサイズ見出しの右下のインチレンジ表示 */
.size-table__inch-range {
  position: absolute;
  bottom: 0;
  right: 5px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
}

/* 最終行の下border は wrapper 側で担うため重複させない */
.size-table tbody tr:last-child td {
  border-bottom: none;
}

/* Coming soon表記 */
.size-table .com_sn {
  display: block;
  line-height: 1;
}

/* ===== Media queries: タブレット以上 ===== */
/* 画面幅 466px 以上では画像が max-width で頭打ちになるため、vw から固定値に切り替え */
@media (min-width: 466px) {
  .tech-detail__marker--1::before {
    width: 75px;
  }
  .tech-detail__marker--2::before {
    width: var(--tech-detail-marker-pc-width, 75px);
  }
  .tech-detail__marker--3::before {
    width: 117px;
  }
  .tech-detail__marker--1::after {
    right: 93px;
  }
  .tech-detail__marker--2::after {
    right: var(--tech-detail-marker-pc-right, 93px);
  }
  .tech-detail__marker--3::after {
    right: 135px;
  }
}

@media (min-width: 768px) {
  /* ヒーロー: 768px+ はタブレット用縮小値、1024+ で PSD PC 値に切り替え */
  .product-hero {
    padding: 30px 40px;
    text-align: center;
    overflow: hidden;
  }
  /* オレンジ波: PSD 935x347 @ (743,196) */
  .product-hero::before {
    top: 30px;
    left: auto;
    right: calc(50vw - 1000px);
    transform: none;
    width: 935px;
    aspect-ratio: 1075 / 399;
    opacity: 1;
  }
  .product-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
  .product-hero__text {
    flex: initial;
  }
  .product-hero__title {
    align-items: center;
  }
  /* ロゴ幅: ブランドごとに --hero-logo-pc-width で上書き（ATERNA は fallback 444px） */
  .product-hero__logo {
    width: var(--hero-logo-pc-width, 444px);
    max-width: 100%;
    margin: 0;
  }
  /* 文字サイズ: タブレット用（サブ20px, インチ22px, Ready 20px, 日本語 18px） */
  .product-hero__subname {
    font-size: 1.25rem;
    margin-top: 8px;
  }
  .product-hero__range {
    font-size: 1.375rem;
    padding: 0 20px;
    margin: 0 0 18px 0;
  }
  .product-hero__catch {
    font-size: 1.25rem;
  }
  .product-hero__lead {
    font-size: 1.125rem;
    margin-bottom: 0;
  }
  /* タイヤ画像: 高さ 410px で全ブランド統一（幅は画像の縦横比に依存）
     タブレットでは右端オフセット不要 */
  .product-hero__visual {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    margin: 0;
  }
  .product-hero__tire {
    width: auto;
    height: 410px;
  }

  /* 詳細ページのインラインナビは 768px+ でも横並びで表示を維持。
     font-size は main.css 側で一元管理 */
  .nav--page .nav__list {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
  }
  /* ナビボタン幅: 詳細ページは3ボタン構成のため lineup.css で指定。
     ヘッダーの .nav--page とフッターの .nav--footer 共通で 220px 上限 */
  .nav--page .nav__item,
  .nav--footer .nav__item {
    flex: 1;
    max-width: 220px;
    width: auto;
  }

  /* 詳細ページでは .nav--pc は SP オーバーレイ専用。768px+ ではMENUボタンも非表示なので隠す */
  .nav--pc {
    display: none;
  }

  /* ===== Features: 1024+ から 768+ に集約 ===== */
  /* スコア表 */
  .score-list {
    gap: 5px;
  }
  .score-item {
    grid-template-columns: 1fr 16px 96px;
    gap: 11px;
    font-size: 1.05rem;
  }
  .score-bar {
    gap: 4px;
  }
  .score-bar__cell {
    border-width: 1px;
  }

  /* Features 2カラム: スコア表(左)と特長(右) 横並び、縦中央
     タブレット〜はスコアを 42% 幅、特長は残り幅に追従（gap が広がりすぎないように） */
  .features-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto 80px;
    gap: 40px;
  }
  .features-score {
    margin: 0;
    flex: 0 0 42%;
  }
  .feature-points {
    margin: 0;
    gap: 20px;
  }
  .feature-point {
    gap: 20px;
  }
  .feature-point__icon {
    width: 50px;
    height: 50px;
  }
  /* MOTIVA はアイコンが小さく見えるため gap を詰めてアイコンを拡大 */
  .page-motiva .feature-point {
    gap: 10px;
  }
  .page-motiva .feature-point__icon {
    width: 60px;
  }
  .feature-point__title {
    font-size: 1rem;
  }
  .feature-point__text {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  /* Tech detail */
  .tech-detail {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin: 0 auto 80px;
  }
  .tech-detail__image {
    flex: 0 0 48%;
    margin: 0;
  }
  .tech-detail__image img {
    margin-left: 0;
  }
  .tech-detail__list {
    flex: 1;
    gap: 22px;
  }
  .tech-detail__marker {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 1.125rem;
  }
  .tech-detail__marker::after {
    width: 20px;
    height: 20px;
  }
  /* 画面幅 768px~1024px でTORDERAのみvwに切り替え */
  .tech-detail__marker--2::before {
    width: var(--tech-detail-marker-768-width, 75px);
  }
  .tech-detail__marker--2::after {
    right: var(--tech-detail-marker-768-right, 93px);
  }
  .tech-detail__title {
    font-size: 1.125rem;
  }
  .tech-detail__text {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* 動画枠: 768px+ ではborder-widthと角丸を拡大 */
  .product-movie__frame {
    border-width: 5px;
    border-radius: 15px;
  }

  /* 768px+ ではサイズ表セクション下の余白を拡大 */
  .section--size {
    padding-bottom: 150px;
  }

  /* スクロール領域の上側角丸を拡大 */
  .size-table-scroll {
    border-radius: 10px 10px 0 0;
  }

  .size-table thead th,
  .size-table tbody td {
    padding: 10px 8px;
  }

  /* タイヤサイズ列: 768px+ では列幅を広げ、padding-leftで中央寄りに見せる */
  .size-table tbody td:nth-last-child(2) {
    width: 18em;
    padding-left: 4em;
  }

  .size-table tbody tr td:last-child {
    width: auto;
  }
}

/* ===== Media queries: デスクトップ =====
 * コンテンツ最大幅 960px を前提に、PSD カンプ(1366x502 ヒーロー)の絶対値を適用。
 */
@media (min-width: 1024px) {
  /* ヒーロー: PSD PC 値（タイヤ画像 409px + padding で自然に高さ確保） */
  .product-hero {
    padding: 50px 40px;
  }
  /* 文字サイズ: アテルナ24px, Ready 36px, 日本語 24px */
  .product-hero__subname {
    font-size: 1.5rem;
  }
  .product-hero__catch {
    font-size: 2.25rem;
  }
  .product-hero__lead {
    font-size: 1.5rem;
  }
  /* MOTIVA はキャッチが長いため 1 行におさめるべく 32px へ縮小 */
  .page-motiva .product-hero__catch {
    font-size: 2rem;
  }
  /* タイヤ画像: 右端から 60px 内側にオフセット */
  .product-hero__visual {
    margin-right: 60px;
  }

  .nav--page {
    margin-top: 48px;
  }

  /* Features 2カラム: PC は PSD 値（スコア364/特長478、gap 30、アイコン70） */
  .features-score {
    max-width: 364px;
    flex: 0 0 364px;
  }
  .feature-points {
    max-width: 478px;
    flex: 0 0 478px;
    gap: 30px;
  }
  .feature-point {
    gap: 30px;
  }
  .feature-point__icon {
    width: 70px;
    height: 70px;
  }
  /* MOTIVA はアイコンをさらに拡大 */
  .page-motiva .feature-point {
    gap: 20px;
  }
  .page-motiva .feature-point__icon {
    width: 80px;
  }
  .tech-detail__image {
    flex: 0 0 42%;
  }
  /* 画面幅 1024px以上 でTORDERAのみpxに切り替え */
  .tech-detail__marker--2::before {
    width: var(--tech-detail-marker-pc-width, 75px);
  }
  .tech-detail__marker--2::after {
    right: var(--tech-detail-marker-pc-right, 93px);
  }
}
