/* ==========================================================================
   ZecurePIN LP
   見た目の考え方：図面・技術資料の言葉づかい（方眼、線画、引き出し線、寸法線、表題欄、図番号）。
   色は、暖色＝ZecurePIN（自社）、寒色＝他社品。強調には旧LPから引き継いだ黄色のマーカー。

   1. トークン
   2. ベース
   3. 部品（方眼・ボタン・見出し・図・表題欄・表）
   4. ヘッダー・フッター
   5. セクション
   ========================================================================== */

/* 1. トークン ------------------------------------------------------------- */
:root {
  --navy: #0f1d33;           /* 濃い面 */
  --cream: #f2ede2;          /* 明るい面（方眼の紙） */
  --paper: #fbf9f4;          /* 図の地 */
  --ink: #14202f;
  --ink-2: #4a5566;
  --ink-3: #5f6775;           /* 補助の文字。クリームの面の上で 4.5:1 以上 */
  --rule: rgba(20, 32, 47, .22);          /* 明るい面の罫線 */
  --rule-dark: rgba(255, 255, 255, .28);  /* 濃い面の罫線 */
  --grid: rgba(20, 32, 47, .07);
  --grid-dark: rgba(255, 255, 255, .055);
  --stage: #eef0f2;          /* 3D ビューアの背景と同じ */

  /* 色の意味：暖色＝ZecurePIN（自社）、寒色＝他社品。動画の枠・グラフ・3D の強調で共通 */
  --ours: #e8531f;           /* 線・面。3D ビューアの accent（e0531f）とほぼ同じ */
  --ours-ink: #b83c0c;       /* 明るい面の上の文字・ボタン（クリームの面の上で 4.5:1 以上） */
  --ours-light: #ff7a45;     /* 濃い面の上の文字 */
  --theirs: #3f6fd1;
  --marker: #f7c548;

  --display: "IBM Plex Sans JP", "Noto Sans JP", sans-serif; /* 大きな見出し（h1・h2）と数字・図番号だけ。最大 700。
                                                                 中くらい以下の見出しや文として読むものは本文と同じ --font にする（「全」などの字形に癖があるため） */
  --font: "Noto Sans JP", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --cell: 28px;              /* 方眼の 1 マス */
}

/* 2. ベース --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  counter-reset: fig video;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ours); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: .6em 1em; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

mark { color: inherit; background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 94%, transparent 94%); padding: 0 .06em; }

/* 3. 部品 ----------------------------------------------------------------- */

/* 方眼 */
.grid-light {
  background-color: var(--cream);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}
.grid-dark {
  background-color: var(--navy);
  background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
}

/* ボタン：角は立てる（図面の箱に合わせる） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: 0 1.6em;
  border: 1.5px solid transparent; border-radius: 2px;
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--ours-ink); border-color: var(--ours-ink); color: #fff; }
.btn--primary:hover { background: #a3360b; border-color: #a3360b; }
.btn--line { border-color: currentColor; color: var(--ink); }
.btn--line:hover { background: rgba(20, 32, 47, .06); }
.grid-dark .btn--line { color: #fff; }
.grid-dark .btn--line:hover { background: rgba(255, 255, 255, .08); }
.btn--lg { min-height: 60px; padding: 0 2em; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 0 1em; font-size: 12.5px; }
.btn__arrow { width: 14px; height: 14px; }

/* セクション */
.section { padding: clamp(80px, 11vw, 136px) 0; scroll-margin-top: 60px; } /* 固定ヘッダーの高さぶん */
.section--dark { color: #fff; }
.section__head { margin-bottom: clamp(36px, 5vw, 60px); }
.section__title { display: flex; align-items: center; gap: 24px; }
.section__title h2 {
  flex: 0 1 auto; margin: 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.3; letter-spacing: .02em;
}
/* 見出しから伸びる引き出し線（端に点） */
.leader { flex: 1 1 0; min-width: 40px; height: 1px; background: var(--ours); position: relative; }
.leader::after { content: ""; position: absolute; right: -1px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ours); }
.section__lead { max-width: 46em; margin: 1.2em 0 0; color: var(--ink-2); }
@media (max-width: 600px) {
  /* スマホ：見出しを詰めないよう、線は見出しの下に回す */
  .section__title { flex-wrap: wrap; gap: 14px; }
  .section__title .leader { flex-basis: 100%; }
}
.section--dark .section__lead { color: rgba(255, 255, 255, .75); }

.subhead { margin: 0 0 1em; font-family: var(--font); font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.note { margin: .9em 0 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }
.prose p { margin: 0 0 1.2em; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose--dark p { color: rgba(255, 255, 255, .8); }
.prose--dark strong { color: #fff; }

/* 一文で言い切る大きな文 */
.statement { margin: clamp(56px, 8vw, 88px) 0 0; font-family: var(--font); font-weight: 700; font-size: clamp(21px, 2.6vw, 32px); line-height: 1.65; }
.statement em { font-style: normal; color: var(--ours-ink); }

/* 図：白い地・角のトンボ・図番号付きのキャプション */
.fig { position: relative; margin: 0; padding: clamp(18px, 2.4vw, 28px); background: var(--paper); counter-increment: fig; }
.fig::before, .fig::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); pointer-events: none; }
.fig::before { left: -1px; top: -1px; border-width: 1.5px 0 0 1.5px; }
.fig::after { right: -1px; bottom: -1px; border-width: 0 1.5px 1.5px 0; }
.fig__art { width: 100%; height: auto; display: block; }
.fig__art--motion .lineart__layer--pin-34-closed { opacity: .2; } /* 閉じた状態は薄く重ねる */
.fig figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em 1em;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink);
}
.fig figcaption b { font-family: var(--font); font-weight: 700; font-size: 16px; }
.fig figcaption b small { margin-left: .6em; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.fig figcaption > span:not(.fig__no):not(.video__no):not(.tag) { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.fig__no { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ours-ink); }
.fig__no::before { content: "図" counter(fig); }
:lang(en) .fig__no::before { content: "Fig. " counter(fig); }
/* 濃い面の上の図：地を透かし、線を白に */
.fig--dark { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--rule-dark); }
.fig--dark .lineart { color: #fff; }
.fig--dark::before, .fig--dark::after { border-color: #fff; }
.fig--dark figcaption { border-top-color: rgba(255, 255, 255, .6); }
.fig--dark figcaption b small { color: rgba(255, 255, 255, .55); }
.fig--dark figcaption > span:not(.fig__no):not(.video__no):not(.tag) { color: rgba(255, 255, 255, .75); }
.fig--dark .fig__no { color: var(--ours-light); }
.fig--accent { background: radial-gradient(90% 70% at 50% 38%, rgba(232, 83, 31, .28), rgba(232, 83, 31, 0) 70%), rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(232, 83, 31, .6); }
.fig--photo { padding: 10px 10px 14px; counter-increment: none; } /* 製品写真は図番号を振らない */
/* タグと名前は横に並べたまま。名前が長いときは、タグの横で折り返す（次の行に落とさない） */
.fig--photo figcaption { margin-top: 12px; padding-top: 10px; flex-wrap: nowrap; align-items: flex-start; gap: .7em; }
.fig--photo figcaption .tag { flex: none; }
.fig--photo figcaption b { flex: 1; min-width: 0; line-height: 22.8px; } /* タグの高さ（12px × 1.9）と同じ行の高さにして、1 行目の中心をそろえる */

/* 線画（images/lineart。3D モデルから書き出したもの）。線の色は currentColor */
.lineart { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.lineart .hidden { stroke: var(--ours); stroke-width: 3; } /* 隠れ線（キャップの中の針先） */
/* 線は塗りの形なので、小さく表示すると細くなりすぎる。--thicken（画面上の px）だけ輪郭を足して太らせる */
.lineart .visible path { stroke: currentColor; stroke-width: var(--thicken, 0); vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hero__drawing { --thicken: .5px; }
.why .fig__art { --thicken: .6px; }

/* 線画の中の注記。座標は線画の viewBox（幅 1200）の単位 */
.callout path { fill: none; stroke: var(--ours); stroke-width: 2.5; }
.callout circle { fill: var(--ours); }
.callout .arc { stroke-width: 3.5; stroke-dasharray: 12 9; }
.callout text { fill: currentColor; font-family: var(--font); font-weight: 700; font-size: 28px; letter-spacing: .06em; }
.callout text.sub { font-family: var(--font); font-weight: 400; font-size: 21px; opacity: .7; }
/* 寸法線（平行投影の図だけに使う） */
.dim path { fill: none; stroke: currentColor; }
.dim__line { stroke-width: 2; }
.dim__ext { stroke-width: 1.2; opacity: .55; }
.dim rect { fill: var(--paper); }
.dim text { fill: currentColor; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .04em; }
@media (max-width: 600px) { .dim text { font-size: 46px; } }

/* 表題欄：罫線で区切った値の箱 */
.titleblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--rule-dark); }
.titleblock div { padding: 14px 18px 16px; border-left: 1px solid var(--rule-dark); }
.titleblock div:first-child { border-left: 0; }
.titleblock dt { font-size: 12px; color: rgba(255, 255, 255, .6); }
.titleblock dd { margin: .25em 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.4; }
.titleblock--light { border-color: var(--ink); background: var(--paper); }
.titleblock--light div { border-color: var(--rule); }
.titleblock--light dt { color: var(--ink-3); }
/* 縦に並べる形（項目名と値を左右に） */
.titleblock--rows { grid-template-columns: minmax(0, 1fr); }
.titleblock--rows div { display: grid; grid-template-columns: 7.5em 1fr; gap: 1em; align-items: baseline; border-left: 0; border-top: 1px solid var(--rule); padding: 12px 18px; }
.titleblock--rows div:first-child { border-top: 0; }
.titleblock--rows dd { margin: 0; font-size: 15px; }

.tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.9em; height: 1.9em; padding: 0 .6em; border-radius: 2px;
  font-family: var(--font); font-size: 12px; font-weight: 700; color: #fff;
}
.tag--ours { background: var(--ours-ink); }
.tag--theirs { background: var(--theirs); }
.badge {
  display: inline-block; vertical-align: middle; padding: .1em .6em; border-radius: 2px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); border: 1px dashed var(--ink-3);
}
.badge span { display: inline-block; white-space: nowrap; } /* 折り返すのは <span> の間だけ */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; background: var(--paper); }
.data-table caption { caption-side: top; text-align: left; margin-bottom: .8em; font-size: 13px; color: var(--ink-3); background: transparent; }
.data-table th, .data-table td { padding: .85em 1em; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.data-table thead th { font-size: 12.5px; font-weight: 700; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.data-table tbody th { font-weight: 700; white-space: nowrap; }

.disclosure { margin-top: 32px; border-top: 1px solid var(--ink); }
.disclosure > summary { display: flex; align-items: center; gap: .6em; padding: 1.1em 0; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.disclosure[open] > summary::before { transform: rotate(45deg); }
.disclosure .data-table td { text-align: right; font-variant-numeric: tabular-nums; }
.disclosure .data-table tbody th { white-space: normal; min-width: 16em; font-weight: 500; }

/* スクロールで現れる（js/reveal.js。JS が動くときだけ隠す） */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* 4. ヘッダー・フッター --------------------------------------------------- */
.suggest-en { background: #0a1426; color: #fff; font-size: 13px; }
.suggest-en__inner { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.suggest-en p { margin: 0; flex: 1; }
.suggest-en a { font-weight: 700; color: var(--ours-light); }
.suggest-en__close { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }

/* ヒーローの上では透明、スクロールしたら背景を付けて上部に固定（.is-stuck は js/header.js が付ける） */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background-color .3s, box-shadow .3s; }
.topbar.is-stuck { background: rgba(15, 29, 51, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--rule-dark); }
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .3s; }
.topbar.is-stuck .topbar__inner { height: 60px; }
.topbar__logo { width: 70px; flex: none; }
.topbar__nav { margin-left: auto; }
.topbar__nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.topbar__nav a { display: block; padding: .5em .8em; font-size: 13px; font-weight: 500; text-decoration: none; opacity: .82; }
.topbar__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--ours); }
.topbar__buy { display: none; }
.topbar.is-stuck .topbar__buy { display: inline-flex; }
.lang { display: flex; font-size: 12px; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--rule-dark); }
.lang a { padding: .35em .7em; text-decoration: none; opacity: .6; }
.lang a + a { border-left: 1px solid var(--rule-dark); }
.lang a:hover { opacity: 1; }
.lang a[aria-current="true"] { opacity: 1; background: rgba(255, 255, 255, .12); }
@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .lang { margin-left: auto; }
  .topbar.is-stuck .topbar__buy { margin-left: auto; }
  .topbar.is-stuck .lang { margin-left: 0; }
}

.footer { padding: 48px 0; background: var(--navy); color: rgba(255, 255, 255, .75); font-size: 13px; border-top: 1px solid var(--rule-dark); }
.footer__inner { display: flex; gap: 32px; align-items: flex-start; }
.footer__logo { width: 70px; flex: none; }
.footer__text p { margin: 0 0 .4em; }
.footer__shop a { color: #fff; font-weight: 700; }
.footer__copy { color: rgba(255, 255, 255, .5); }
@media (max-width: 560px) { .footer__inner { flex-direction: column; gap: 20px; } }

/* 5. セクション ------------------------------------------------------------ */

/* --- ヒーロー --- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 112px 0 72px; }
.hero__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px; min-height: 580px; }
.hero__text { position: relative; z-index: 1; }
.hero__kicker { margin: 0; font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: .12em; color: var(--ours-light); }
.hero h1 { margin: .5em 0 0; font-family: var(--display); font-weight: 700; line-height: 1.28; letter-spacing: .01em; }
.hero__product { display: block; margin-bottom: .45em; font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .78); }
.hero__product sup { font-size: .6em; }
.hero__catch { display: block; font-size: clamp(30px, 3.7vw, 48px); word-break: auto-phrase; }
.hero__catch span, .hero__catch em { display: inline-block; } /* 文節の途中で折り返さない */
.hero__catch em { font-style: normal; color: var(--ours-light); }
.hero__def { margin: 1.4em 0 0; max-width: 31em; font-size: clamp(15px, 1.3vw, 16.5px); line-height: 1.95; color: rgba(255, 255, 255, .84); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }

.hero__visual { position: relative; align-self: stretch; min-height: 420px; }
/* 回る缶バッジ（js/spin360.js）：方眼の上に 1 つだけ置く。線画と注記に重ならないよう、右下に寄せる */
.hero__visual .hero__badge {
  position: absolute; right: -1%; bottom: -6%; width: min(48%, 310px); max-width: none; margin: 0;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .4));
}
/* 回転のコマがないときの静止画（images/badge-face.webp） */
.hero__badge--still { height: auto; border-radius: 50%; transform: rotate(-10deg); }
.hero__drawing { position: absolute; left: -2%; top: 2%; width: 100%; color: #fff; }
@media (max-width: 600px) {
  .hero .callout text { font-size: 40px; }
  .hero .callout text.sub { display: none; }
}

.hero .titleblock { margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero__stage { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* justify-self を書かないと、Safari では幅が 0 になる（aspect-ratio を持つグリッドの子は、幅が中身に合わせて決まるため）。
     幅を列いっぱいに広げ、高さは比率から決める */
  .hero__visual { min-height: 0; aspect-ratio: 540 / 400; justify-self: stretch; align-self: start; order: -1; margin: 0 -2% 8px; }
  .hero__drawing { top: 10%; }
  .hero__visual .hero__badge { right: 0; bottom: -22%; width: 38%; }
  .hero .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .titleblock div:nth-child(3) { border-left: 0; }
  .hero .titleblock div:nth-child(n+3) { border-top: 1px solid var(--rule-dark); }
}

/* --- 安全な缶バッジとは何か --- */
.why__intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 64px); }
.why__intro p { margin: 0; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(44px, 6vw, 64px); }
.why .callout text { font-size: 38px; }
/* 図1・図2：線画の枠を同じ比率にそろえ（線画は枠の中央に収まる）、説明文の位置も下でそろえる */
.figs .fig { display: flex; flex-direction: column; }
.figs .fig__art { aspect-ratio: 1200 / 760; margin-bottom: 18px; }
.figs .fig figcaption { margin-top: auto; }
@media (max-width: 760px) {
  .why__intro, .figs { grid-template-columns: minmax(0, 1fr); }
  .why__intro p + p { margin-top: 1.2em; }
}

/* --- ZecurePINとは --- */
.formula { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: stretch; gap: clamp(10px, 1.6vw, 20px); }
.formula__op { align-self: center; font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; color: rgba(255, 255, 255, .5); }
.formula__pin .fig__img { width: 100%; max-width: 240px; margin: 0 auto; aspect-ratio: 1; object-fit: contain; }
.formula__result { display: flex; flex-direction: column; }
.formula__result .spin360 { flex: 1; width: 100%; }
.formula__result figcaption b { font-size: 20px; }
.formula__result figcaption b sup { font-size: .55em; }
.traits { flex-basis: 100%; margin: .2em 0 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.7; }
.traits li { position: relative; padding-left: 1.5em; color: rgba(255, 255, 255, .82); }
.traits li + li { margin-top: .3em; }
.traits li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.traits .is-good::before { content: "○"; color: #fff; }
.traits .is-bad { color: rgba(255, 255, 255, .55); }
.traits .is-bad::before { content: "△"; }
/* 英語では ○ △ が長所・短所の印として通じにくいので、✓ と – にする */
:lang(en) .traits .is-good::before { content: "✓"; }
:lang(en) .traits .is-bad::before { content: "–"; }
.about__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule-dark); }
.about__lead { margin: 0; font-family: var(--font); font-weight: 700; font-size: clamp(19px, 2vw, 24px); line-height: 1.65; }
@media (max-width: 960px) {
  .formula { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .formula__result { grid-column: 1 / -1; }
  .formula__op:nth-of-type(2) { grid-column: 1 / -1; justify-self: center; }
  .about__text { grid-template-columns: minmax(0, 1fr); }
}

/* 360° 回転（js/spin360.js） */
.spin360 { position: relative; max-width: 380px; margin: 0 auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.spin360:active { cursor: grabbing; }
.spin360 img { width: 100%; aspect-ratio: 1; object-fit: contain; pointer-events: none; }
.spin360__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spin360.is-ready img { visibility: hidden; } /* 全コマがそろったら canvas に切り替える。<img> は枠の大きさを保つために残す */
.spin360__hint {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .5em; padding: .25em .8em;
  font-size: 11px; letter-spacing: .08em; color: rgba(255, 255, 255, .8); border: 1px solid var(--rule-dark);
  transition: opacity .4s; pointer-events: none; white-space: nowrap;
}
.spin360__hint::before { content: "←"; }
.spin360__hint::after { content: "→"; }
.spin360.is-touched .spin360__hint { opacity: 0; }

/* --- 構造を 3D で見る --- */
.structure { background: var(--cream); }
.structure__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.stage {
  position: sticky; top: 84px; /* 固定ヘッダーの下 */
  width: 100%; aspect-ratio: 1 / 1; max-height: calc(100svh - 108px);
  background: var(--stage); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.stage::before, .stage::after { content: ""; position: absolute; z-index: 2; width: 18px; height: 18px; border: 0 solid var(--ink); pointer-events: none; }
.stage::before { left: 0; top: 0; border-width: 1.5px 0 0 1.5px; }
.stage::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; letter-spacing: .1em; color: var(--ink-3); transition: opacity .4s; }
.stage.is-ready .stage__placeholder { opacity: 0; pointer-events: none; }
.stage__hint { position: absolute; left: 16px; bottom: 14px; margin: 0; font-size: 12px; color: var(--ink-3); pointer-events: none; }
.stage.is-loaded .stage__placeholder { opacity: 0; } /* iframe の中に「読み込み中」が出るので、重ならないように消す */
/* タッチ操作の端末：タップするまでは 3D の上に透明なボタンをかぶせ、指を置いてもページをスクロールできるようにする（js/viewer3d.js） */
.stage__unlock { position: absolute; inset: 0; z-index: 3; display: grid; place-items: end start; margin: 0; padding: 12px; border: 0; background: none; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.stage__unlock[hidden] { display: none; }
.stage__unlock span { padding: .55em .9em; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; line-height: 1.4; }
.stage__unlock:focus-visible { outline: 2px solid var(--ours); outline-offset: -2px; }
.stage.is-locked .stage__hint { display: none; }
/* 3D を表示できない環境（WebGL2 がない古いブラウザなど）：3D の代わりに静止画を出す（js/viewer3d.js） */
.stage__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage__note { display: none; position: absolute; left: 16px; right: 16px; bottom: 14px; margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.stage.is-fallback .stage__note { display: block; }
.stage.is-fallback iframe, .stage.is-fallback .stage__placeholder, .stage.is-fallback .stage__hint, .stage.is-fallback .stage__unlock { display: none; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.step { position: relative; padding: 22px 20px 22px 64px; border-bottom: 1px solid var(--rule); transition: background-color .25s; }
.step__num { position: absolute; left: 20px; top: 22px; font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 20px; color: var(--ink-3); transition: color .25s; }
.step__en { display: block; font-size: 11px; line-height: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.step h3 { margin: .2em 0 0; font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 1.5; }
.step h3 button { all: unset; cursor: pointer; }
.step h3 button::after { content: ""; position: absolute; inset: 0; } /* 項目全体を押せるようにする */
.step h3 button:focus-visible::after { outline: 2px solid var(--ours); outline-offset: -2px; }
.step p { margin: .5em 0 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); }
.step em { font-style: normal; font-weight: 700; color: var(--ink); background: linear-gradient(transparent 60%, rgba(247, 197, 72, .7) 60%); }
.step:hover { background: rgba(255, 255, 255, .45); }
.step.is-active { background: var(--paper); }
.step.is-active .step__num { color: var(--ours-ink); }
.step.is-active::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--ours); }
@media (max-width: 860px) {
  .structure__grid { grid-template-columns: minmax(0, 1fr); }
  /* スマホ：3D を画面上部に固定し、その下で項目を読めるようにする */
  .stage { top: 68px; z-index: 1; max-height: 48svh; }
  .step { padding: 18px 16px 18px 52px; }
  .step__num { left: 16px; top: 18px; }
}

/* --- 他社品との違い --- */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.video { margin: 0; }
.video__frame { position: relative; overflow: hidden; background: var(--stage); }
/* 枠の色：寒色＝他社品、暖色＝ZecurePIN（動画の上に重ねる） */
.video__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.video--theirs .video__frame::after { box-shadow: inset 0 0 0 3px var(--theirs); }
.video--ours .video__frame::after { box-shadow: inset 0 0 0 3px var(--ours); }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.video__toggle { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: rgba(15, 29, 51, .7); color: #fff; cursor: pointer; }
.video__toggle svg { width: 20px; height: 20px; fill: currentColor; }
.video__toggle .i-pause { display: none; }
.video__frame.is-playing .i-play { display: none; }
.video__frame.is-playing .i-pause { display: block; }
/* 動画は図と同じ枠に入れるが、番号は「動画1・2」と別に数える */
.video.fig { padding: clamp(12px, 1.6vw, 18px); counter-increment: video; }
.video__no { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ours-ink); }
.video__no::before { content: "動画" counter(video); }
:lang(en) .video__no::before { content: "Video " counter(video); }
.video--theirs { --side: var(--theirs); }
.video--ours { --side: var(--ours); }

/* 時間の定規：動画の長さを 2 本で同じ縮尺の帯にし、再生位置を印で示す（js/video.js が --pos を動かす）。
   --end は動画の終わりの位置。.timeline--open は、操作が終わらないまま動画が終わる方（帯の先を破線で続ける） */
.timeline { margin-top: 14px; }
.timeline .scale { background: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px calc(100% / 14)) left bottom / 100% 5px no-repeat; }
.timeline__bar { position: relative; height: 12px; margin-top: 7px; }
.timeline__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--end); background: var(--side); }
.timeline:not(.timeline--open) .timeline__fill::after { content: ""; position: absolute; right: -1px; top: -4px; bottom: -4px; width: 2px; background: var(--ink); } /* 完了の位置 */
.timeline--open .timeline__bar::after { content: ""; position: absolute; left: var(--end); right: 0; top: 50%; border-top: 2px dashed var(--side); transform: translateY(-1px); }
.timeline__head { position: absolute; left: var(--pos, 0%); top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); }
.timeline__head::before { content: ""; position: absolute; left: 50%; top: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ink); }

.video figcaption { align-items: center; }
.video figcaption h3 { flex-basis: 100%; margin: .15em 0 0; font-family: var(--font); font-size: 18px; font-weight: 700; line-height: 1.5; }
.compare .table-wrap { margin-top: clamp(48px, 7vw, 80px); }
.compare-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; line-height: 1.7; background: var(--paper); border: 1px solid var(--ink); }
.compare-table caption { caption-side: top; text-align: left; margin-bottom: 1em; font-family: var(--font); font-size: 19px; font-weight: 700; }
.compare-table th, .compare-table td { padding: 1em 1.1em; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare-table thead th { font-size: 13px; font-weight: 700; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
.compare-table tbody th { width: 9em; font-weight: 700; white-space: nowrap; }
.compare-table .is-ours { background: #fff3ec; }
.compare-table thead .is-ours { color: var(--ours-ink); border-bottom-color: var(--ours); }
.compare-table td.is-good { font-weight: 700; }
.compare-table td.is-good::before { content: "○ "; color: var(--ours-ink); }
.compare-table td.is-bad { color: var(--ink-3); }
.compare-table td.is-bad::before { content: "△ "; }
:lang(en) .compare-table td.is-good::before { content: "✓ "; }
:lang(en) .compare-table td.is-bad::before { content: "– "; }
@media (max-width: 760px) { .videos { grid-template-columns: minmax(0, 1fr); } }

/* --- ユーザーの評価 --- */
.survey__overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(56px, 8vw, 88px); align-items: start; }
.survey__products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.survey__products .fig__img { width: 100%; background: #000; }
.survey__products figcaption b { font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 12px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend__swatch { width: 12px; height: 12px; }
.seg-0 { background: var(--ours); }
.seg-1 { background: #f4a283; }
.seg-2 { background: #c6cad1; }
.seg-3 { background: #a3bbea; }
.seg-4 { background: var(--theirs); }
.bars { padding: 8px 0 0; }
.bars ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 26px; }
.bar__q { margin: 0 0 .5em; font-size: 15px; font-weight: 700; line-height: 1.6; }
.bar__num { margin-right: .4em; color: var(--ink-3); }
.bar__row { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 6.5em; align-items: center; gap: 14px; }
.bar__lean { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bar__lean small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }
.bar__lean--ours { color: var(--ours-ink); }
.bar__lean--theirs { color: var(--theirs); text-align: right; }
.bar__track { display: flex; height: 20px; background: var(--rule); }
.seg { width: var(--w); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.seg + .seg { box-shadow: inset 1px 0 0 var(--paper); }
.js .bar:not(.is-visible) .seg { width: 0; }
@media (prefers-reduced-motion: reduce) { .seg { transition: none; } .js .bar:not(.is-visible) .seg { width: var(--w); } }
/* 目盛り（定規のように） */
.bar__row--scale { margin-bottom: 14px; }
.scale { position: relative; height: 26px; border-bottom: 1px solid var(--ink); }
.scale span { position: absolute; left: var(--at); bottom: 6px; transform: translateX(-50%); font-family: var(--display); font-size: 11px; font-weight: 700; color: var(--ink-3); }
.scale span::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 1px; height: 6px; background: var(--ink); }
.scale span:first-child { transform: none; }
.scale span:first-child::after { left: 0; }
.scale span:last-child { transform: translateX(-100%); }
.scale span:last-child::after { left: auto; right: 0; }
.survey__summary { margin-top: 40px; padding: 26px 0 0; border-top: 1px solid var(--ink); }
.survey__summary p { font-size: 16px; }
@media (max-width: 760px) {
  .survey__overview { grid-template-columns: minmax(0, 1fr); }
  .bar__row { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .bar__track, .bar__row--scale .scale { grid-column: 1 / -1; grid-row: 2; }
  .bar__row--scale > span { display: none; }
}

/* --- 仕様とサイズ対応表 --- */
.sizes__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fit-table td { min-width: 9em; }
.cell-list { margin: 0; padding: 0; list-style: none; }
.fit-pin { display: inline-grid; place-items: center; vertical-align: middle; width: 2em; height: 2em; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-size: 13px; font-weight: 700; }
.fit-table .is-planned { color: var(--ink-3); }
.fit-table .is-planned .fit-pin { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.sizes__compat { margin: 1.4em 0 0; padding: 1em 1.2em; border: 1px solid var(--rule); background: var(--paper); font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) { .sizes__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  /* スマホでは横スクロールさせず、折り返して収める */
  .fit-table td { min-width: 0; }
  .data-table th, .data-table td { padding: .75em .6em; }
  /* 「開発予定(時期未定)」は丸の下に置き、かっこの前で折り返す（1 列目が広がって、サイズの列が狭くならないように） */
  .fit-table .badge { display: block; width: fit-content; max-width: 8.5em; margin-top: 6px; line-height: 1.5; white-space: normal; }
}

/* --- よくある質問 --- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 8px; top: 28px; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq__q { flex: none; font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 25.6px; color: var(--ours-ink); } /* 質問文 1 行の高さ（16px × 1.6）に合わせる */
.faq__item h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.faq__a { padding: 0 0 22px 28px; }
.faq__a p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

/* --- 開発の背景・購入 --- */
.story__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.story .prose p { font-size: 16px; }
@media (max-width: 860px) { .story__grid { grid-template-columns: minmax(0, 1fr); } }
.cta-band { padding: clamp(48px, 7vw, 80px) 0; color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; line-height: 1.5; }
.cta-band p { margin: .4em 0 0; color: rgba(255, 255, 255, .72); }
