/* 製品詳細(products/<id>.html)。site.css のトークンと部品の上に重ねる。
   three.js・lenis・映像は読み込まない静的なページなので、動きは控えめにする。 */

.pdx { padding: 112px 0 clamp(72px, 9vw, 120px); color: var(--navy); }

/* パンくず */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: baseline; font-size: var(--t-xs); line-height: 1.7; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin: 0 .7em; color: rgba(0, 34, 74, .4); }
.crumbs a { color: var(--current); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 見出しまわり */
.pdx__head { margin-top: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pdx__name { font-size: var(--t-2xl); font-weight: 400; line-height: 1.28; word-break: auto-phrase; }
.pdx__prov { display: inline-block; margin-left: .5em; font-size: var(--t-s); font-weight: 400; color: var(--ink-soft); vertical-align: .35em; white-space: nowrap; }
.pdx__state { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--t-xs); line-height: 1.7; color: var(--ink-soft); }
.pdx__headline { margin-top: clamp(20px, 3vw, 28px); font-size: var(--t-xl); font-weight: 400; line-height: 1.5; word-break: auto-phrase; }
.pdx__summary { margin-top: 14px; max-width: 34em; color: #1b2f45; }
.pdx__head .cta-row { margin-top: 28px; }
.pdx__media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: var(--radius-m); background: var(--paper-2); }
.pdx__media--screen img { box-shadow: 0 0 0 1px var(--line-light), 0 30px 60px -36px rgba(0, 34, 74, .45); background: #fff; }
.pdx__media figcaption { margin-top: 8px; font-size: var(--t-xs); color: var(--ink-soft); }
.pdx__blank {
  display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--radius-m);
  background: linear-gradient(135deg, var(--paper-2), #cfd9d4); color: var(--ink-soft); font-size: var(--t-s);
}

/* 状況のバッジ。開発中を提供中と見分けられるよう、線の種類と塗りを変える */
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge--available { background: var(--current); color: #fff; }
.badge--upcoming { border: 1px solid var(--current); color: var(--current); }
.badge--developing { border: 1px dashed var(--ink-soft); color: var(--ink-soft); }
.badge--concept { border: 1px dotted var(--ink-soft); color: var(--ink-soft); }
.badge--pending { border: 1px dashed var(--ink-soft); color: var(--ink-soft); font-weight: 500; }

/* このページの内容 */
.pdx__toc { margin-top: clamp(40px, 6vw, 72px); }
.pdx__toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pdx__toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(0, 34, 74, .2); font-size: var(--t-xs); text-decoration: none; transition: border-color .25s;
}
.pdx__toc a:hover { border-color: var(--navy); }

/* 本文の節:左に見出し、右に内容 */
.pdx__sections { margin-top: clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line-light); }
.pdx__sec { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line-light); scroll-margin-top: 88px; }
.pdx__sec > h2 { font-size: var(--t-l); font-weight: 500; line-height: 1.5; }
.pdx__body { min-width: 0; }
.pdx__body > * + * { margin-top: 18px; }
.pdx__body > p { max-width: 40em; }
.pdx__pending { color: var(--ink-soft); font-size: var(--t-s); }
.pdx__note { padding: 12px 16px; border-radius: var(--radius-s); background: var(--paper-2); font-size: var(--t-xs); line-height: 1.8; color: #2a3e54; max-width: 46em; }
.pdx__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pdx__tags li { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, .55); font-size: 12px; line-height: 1.7; color: #2a3e54; }
.pdx__label { font-size: var(--t-xs); color: var(--ink-soft); }

.pdx__issues li { position: relative; padding-left: 24px; max-width: 40em; }
.pdx__issues li + li { margin-top: 10px; }
.pdx__issues li::before { content: ""; position: absolute; left: 0; top: .95em; width: 12px; height: 2px; background: linear-gradient(90deg, var(--current), var(--swoosh)); }

.pdx__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: feat; }
.pdx__features li { padding: 18px 20px 20px; border-top: 2px solid var(--current); background: rgba(255, 255, 255, .55); counter-increment: feat; }
.pdx__features h3 { font-size: var(--t-m); font-weight: 600; line-height: 1.5; }
.pdx__features h3::before { content: counter(feat, decimal-leading-zero); display: block; margin-bottom: 4px; font-family: var(--f-lat); font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--current); }
.pdx__features p { margin-top: 6px; font-size: var(--t-s); line-height: 1.8; color: #2a3e54; }

.pdx__shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; align-items: start; }
.pdx__shots img { width: 100%; height: auto; border-radius: var(--radius-s); background: #fff; box-shadow: 0 0 0 1px var(--line-light); }
.pdx__shots figure.is-tall img { width: min(100%, 240px); }
.pdx__shots figcaption { margin-top: 8px; font-size: var(--t-xs); line-height: 1.7; color: var(--ink-soft); }

.pdx__links h3 { font-size: var(--t-s); font-weight: 600; }
.pdx__links ul { margin-top: 8px; }
.pdx__links li { position: relative; padding-left: 28px; }
.pdx__links li + li { margin-top: 10px; }
.pdx__links li::before { content: ""; position: absolute; left: 0; top: .95em; width: 18px; border-top: 2px solid var(--current); }
.pdx__links li.is-planned::before { border-top-style: dashed; border-color: var(--ink-soft); }
.pdx__links a { color: var(--navy); text-underline-offset: 3px; }
.pdx__links small { display: block; font-size: var(--t-xs); line-height: 1.7; color: var(--ink-soft); }
.pdx__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--t-xs); color: var(--ink-soft); }
.pdx__legend span { display: inline-flex; align-items: center; gap: 8px; }
.pdx__legend span::before { content: ""; width: 18px; border-top: 2px solid var(--current); }
.pdx__legend span.is-planned::before { border-top-style: dashed; border-color: var(--ink-soft); }

.pdx__facts { border-top: 1px solid var(--line-light); max-width: 46em; }
.pdx__facts > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.pdx__facts dt { font-size: var(--t-s); color: var(--ink-soft); }
.pdx__facts dd { margin: 0; }
.pdx__facts dd small { display: block; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.7; }

.pdx__steps { counter-reset: step; display: grid; gap: 12px; max-width: 46em; }
.pdx__steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.pdx__steps li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--current); font-family: var(--f-lat); font-size: 14px; color: var(--current);
}
.pdx__steps h3 { font-size: var(--t-m); font-weight: 600; line-height: 1.5; padding-top: 7px; }
.pdx__steps p { font-size: var(--t-s); line-height: 1.8; color: #2a3e54; }
.pdx__body .cta-row { margin-top: 24px; }

/* 同じ分類の製品 */
.pdx__related { margin-top: clamp(48px, 6vw, 72px); }
.pdx__related h2 { font-size: var(--t-l); font-weight: 500; }
.pdx__related ul { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.pdx__related a {
  display: grid; gap: 4px; height: 100%; padding: 18px 20px 20px; border-top: 2px solid var(--current);
  background: rgba(255, 255, 255, .55); text-decoration: none; transition: background-color .25s;
}
.pdx__related a:hover { background: #fff; }
.pdx__related b { font-size: var(--t-m); font-weight: 600; line-height: 1.5; }
.pdx__related small { font-size: 12px; color: var(--ink-soft); }
.pdx__related span { font-size: var(--t-xs); line-height: 1.75; color: #2a3e54; }
.pdx__more { margin-top: 16px; font-size: var(--t-s); }
.pdx__more a, .pdx__back a { color: var(--current); text-underline-offset: 4px; }
.pdx__back { margin-top: clamp(40px, 5vw, 56px); font-size: var(--t-s); }

@media (max-width: 900px) {
  .pdx { padding-top: 96px; }
  .pdx__head, .pdx__sec { grid-template-columns: 1fr; }
  .pdx__features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pdx__name { font-size: 1.85rem; }
  .pdx__facts > div { grid-template-columns: 1fr; }
  .pdx__shots { grid-template-columns: 1fr; }
}
