/* =================================================================
   金運のしるし｜金運転機・個別鑑定 Paid LP — style.css (V2)
   設計方針は OPUS_REDESIGN_DIRECTION.md が正本。
   - 世界は夜。本文・見出しは必ず4種類の面（S1/S2/S3/S4。§6.2）の上にしか置かない。
   - 金は面で使わない。唯一の例外は Primary CTA（BRAND_CANON からの意図的逸脱。Human Gate V2-1）。
   - 写真は Hero / s-authority / s-final の3箇所のみ。あいだはテクスチャ・SVG・紋章・メダリオン。
   - 外部フォント・外部スクリプトを読み込まない（LINEアプリ内ブラウザのLCP優先）。
   ================================================================= */

/* ===== 00 reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, blockquote, dl, dd, figure { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
img, svg, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ===== 01 root tokens（OPUS_REDESIGN_DIRECTION.md §6.1 準拠 / 名称固定 / 素材から抽出） ===== */
:root {
  /* 面（すべて素材の暗部中央値から抽出） */
  --yozora:        #0A0E18;  /* ページ地。01/02/16/12 の暗部と一致 */
  --sumi:          #04060B;  /* 最暗。s-question と footer。13/04 の暗部と一致 */
  --yozora-raised: #0E1422;  /* カード地（テクスチャを敷かない場合） */
  --yozora-line:   #1B2333;  /* 面の段差を示す実線 */

  /* 文字 */
  --on-dark:        #E4DDCC;  /* 本文。--yozora 上で 14.25:1 */
  --on-dark-strong:  #F2ECDE;  /* 見出し・強調。--yozora 上で 16.37:1 */
  --on-dark-muted:  #B9B2A4;  /* 補助。--yozora 上で 9.15:1 */

  /* 金（01/13/14 の実測ゴールドから抽出） */
  --kin-hi:   #F0DFB0;  /* 最明。写真の金のハイライトと一致。14.59:1 */
  --kin:      #D8B96A;  /* 標準。罫・記号・小見出し。10.16:1 */
  --kin-mid:  #C9A227;  /* CTA面の中核。7.97:1 */
  --kin-deep: #9C8446;  /* 3:1が要る非テキストUI用。5.33:1 */
  --kin-line: rgba(216, 185, 106, .22);  /* 装飾ヘアラインのみ */

  --line-green: #06C755;   /* 変更しない（V1の判断を継承） */

  /* スクリム（§6.3。この3種類以外を作らない） */
  --scrim-hero-pc: linear-gradient(90deg,
      rgba(4, 6, 11, .94) 0%, rgba(4, 6, 11, .88) 34%,
      rgba(4, 6, 11, .55) 52%, rgba(4, 6, 11, 0) 72%);
  --scrim-band-fade: linear-gradient(180deg,
      rgba(10, 14, 24, 0) 0%, rgba(10, 14, 24, 0) 62%, var(--yozora) 100%);
  --scrim-flat: rgba(4, 6, 11, .62);

  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --serif: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro",
           "Noto Serif JP", "Shippori Mincho", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
           "Hiragino Sans", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}
/* 禁止色: 紫・ラベンダー・シアン/マゼンタのネオン・虹色グラデ・ベタの派手な黄金色・朱。
   --kin-mid #C9A227 は明度・彩度ともに低い金箔色であり、ギラつく黄金色とは別物。
   V1の明地トークン（生成り・白の面色）は定義ごと削除した。ページに明地の面を残さない。 */

/* ===== 02 base typography（§6.4 長文可読性） ===== */
body {
  background: var(--yozora);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: clamp(15.5px, 0.22vw + 14.7px, 17.5px);
  line-height: 2;
  letter-spacing: .03em;
  font-feature-settings: "palt" 1;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .01em;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
strong { font-weight: 700; color: var(--on-dark-strong); }
.br-sp { display: inline; }
@media (min-width: 700px) { .br-sp { display: none; } }

/* ===== 03 focus ===== */
:focus-visible { outline: 2px solid var(--kin-hi); outline-offset: 3px; border-radius: 2px; }

/* ===== 04 layout utilities ===== */
.wrap { max-width: 1080px; padding-inline: 22px; margin-inline: auto; }
.prose { max-width: 32em; margin-inline: auto; }
.prose p { margin-block: 0 clamp(22px, 2.4vw, 30px); }
.prose p:last-child { margin-bottom: 0; }

/* ===== 05 reveal アニメーション ===== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal-fallback .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ===== 06 セクション外殻 & sec__mark（§8.1。飾り数字01〜13の置き換え） =====
   面の設計（§6.2、この4種類にしか本文・見出しを置かない）:
   S1 単色--yozora / S2 最暗--sumi / S3 カードテクスチャ / S4 写真＋規定スクリム。
   ページ全体は既定でS1（body背景）。s-question とfooterだけS2。 */
.sec { position: relative; padding-block: clamp(56px, 8vw, 104px); overflow: hidden; }

.sec__mark {
  position: relative;
  height: 1px; width: 88px;
  margin: 0 auto clamp(18px, 2.4vw, 28px);
  background: linear-gradient(90deg, transparent, var(--kin-line), transparent);
}
.sec__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -3px 0 0 -3px;
  background: var(--kin); transform: rotate(45deg);
}

.sec__title {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.6;
  color: var(--on-dark-strong);
  margin-bottom: clamp(28px, 3.2vw, 44px);
}

/* s-question / footer だけ S2（最暗）。それ以外は body の S1 を継承 */
.sec--question { background: var(--sumi); }
.sec--question .prose p { color: var(--on-dark-muted); }
.sec--question strong { color: var(--on-dark-strong); }

/* ===== 07 CTA & ボタン =====
   §9.3 BRAND_CANON からの意図的逸脱（Human Gate V2-1・案A採用）。
   ゴーストボタン（暗色地＋金1px縁）は面対背景が1.23〜1.31:1で暗地では実質見えないことを
   OPUS_FINAL_GATE.md で実測済み。§9.2 で面の明度調整でも解決不能と確認済みのため、
   金箔グラデーション面＋暗文字に変更（面対背景 7.97:1、V1比 約6.5倍）。
   規律: 1ビューポートに金の面はPrimary CTA 1つだけ。派手な黄金色は使わない。点滅・グローを付けない。 */
.kn-cta { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 52px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; width: min(100%, 320px);
  padding-inline: clamp(20px, 5vw, 32px);
  border-radius: 3px;
  font-size: clamp(14.5px, 3.6vw, 16px);
  letter-spacing: .04em;
  text-align: center;
  transition: box-shadow 240ms var(--ease), transform 160ms var(--ease);
}
.btn--primary {
  font-family: var(--serif);
  color: var(--yozora);
  background: linear-gradient(160deg, #E8CE8A 0%, #C9A227 52%, #A8842A 100%);
  border: 1px solid #E8CE8A;
  box-shadow: 0 2px 20px -6px rgba(201, 162, 39, .45),
              inset 0 1px 0 rgba(255, 255, 255, .32);
}
.btn--primary:hover { box-shadow: 0 4px 26px -4px rgba(201, 162, 39, .6), inset 0 1px 0 rgba(255, 255, 255, .32); }
.btn--primary:active { transform: translateY(1px); }
@media (min-width: 768px) { .btn { min-height: 60px; } }

.btn--line {
  margin-top: 18px;
  color: #FFF;
  background: var(--line-green);
  border: 1px solid rgba(0, 0, 0, .16);
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(13px, 3.4vw, 14.5px);
  text-shadow: 0 1px 2px rgba(0, 60, 24, .45);
  /* 構造上はPrimaryより下位のSupport導線。第二の購入ボタンに見せない（V1の格差設計を維持。§9.7） */
  width: min(78%, 260px);
  min-height: 46px;
}
.btn--line:hover { background: #05B34C; }

/* ===== 08 プライスブロック ===== */
.kn-price { text-align: center; margin-block: clamp(20px, 2.4vw, 28px); }
.kn-price::before {
  content: ""; display: block; width: 96px; height: 1px;
  margin: 0 auto clamp(14px, 1.8vw, 20px); background: var(--kin-line);
}
.kn-price__brand { font-family: var(--serif); font-size: .82rem; letter-spacing: .12em; margin-bottom: 10px; color: var(--on-dark-muted); }
.kn-price__amount { font-family: var(--serif); }
.kn-price__num { font-size: clamp(32px, 5vw, 46px); font-weight: 600; color: var(--on-dark-strong); }
.kn-price__unit { font-size: .9rem; margin-left: .4em; }
.kn-price--card {
  border: 1px solid var(--kin-deep);
  border-radius: var(--radius);
  padding-block: clamp(24px, 3vw, 32px);
  max-width: 360px; margin-inline: auto;
}
.kn-price--tex { background: linear-gradient(rgba(4,6,11,.35),rgba(4,6,11,.35)), var(--yozora) url("../img/card-texture-1000.webp") center/cover; }
.kn-price--card::before { background: var(--kin); opacity: .7; }
.kn-price-trail { text-align: center; color: var(--on-dark-muted); margin-top: -8px; }

/* ===== 09 HERO（§7。PC=写真に重ねる／SP=分割構成） ===== */
.sec.kn-hero { padding-block: 0; }
.kn-hero { position: relative; background: var(--yozora); overflow: hidden; }

.kn-hero__media {
  position: relative;
  width: 100%;   /* PHASE 4監査 P0-1: widthが無いとaspect-ratioの比制約がmax-height経由で幅にも
                    転写され、帯が横幅の36〜62%まで縮む事故になる（実測済み）。インライン軸を
                    definiteにしてmax-heightが縦だけを詰めるようにする。 */
  aspect-ratio: 1080 / 1350;
  max-height: 36vh;
  overflow: hidden;
  background-color: var(--yozora);
}
.kn-hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--scrim-band-fade);
}
.kn-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 56% 28%;
}
.kn-hero__inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(32px, 5vw, 48px) clamp(40px, 5vw, 56px); }
.kn-hero__fv { max-width: 640px; margin-inline: auto; }
/* PHASE 4監査 P0-2: .kn-hero__moreは写真ブロック（.kn-hero）の外、単色--yozora地（S1）に置く。
   PCで.kn-hero__innerの高さが伸びるほど写真の暗い帯を過ぎて明るい帯に達し、本文コントラストが
   AAを割る事故が実測された（1280pxで3.75:1）。写真の外に出すことで構造的に再発不能にする。 */
.kn-hero-more { position: relative; background: var(--yozora); padding-block: clamp(20px, 3vw, 32px) clamp(56px, 8vw, 96px); }
.kn-hero__brand { font-family: var(--serif); letter-spacing: .28em; text-indent: .28em; font-size: .82rem; color: var(--on-dark-strong); opacity: .92; margin-bottom: clamp(16px, 2.4vw, 22px); }
.kn-hero__product { font-family: var(--serif); font-size: clamp(15px, 2.6vw, 18px); letter-spacing: .1em; color: var(--kin-hi); margin-bottom: clamp(18px, 2.6vw, 26px); }
.kn-hero__title { font-size: clamp(24px, 6vw, 38px); line-height: 1.6; margin-bottom: clamp(22px, 3vw, 32px); color: var(--on-dark-strong); }
.kn-hero__lede { max-width: 30em; margin-inline: auto; margin-bottom: clamp(8px, 1vw, 12px); }
.kn-hero__lede p { color: var(--on-dark); margin-block: 0 .6em; }
.kn-hero__lede p:last-child { margin-bottom: 0; }
.kn-hero__lede strong { color: var(--on-dark-strong); }
.kn-hero__more { text-align: left; }
.kn-hero__more > p { color: var(--on-dark); }
.kn-hero__more strong { color: var(--on-dark-strong); }
.kn-notes { display: flex; flex-direction: column; gap: 12px; margin-top: clamp(20px, 2.4vw, 28px); }
.kn-notes li { position: relative; padding-left: 20px; color: var(--on-dark-muted); font-size: .92rem; }
.kn-notes li::before { content: ""; position: absolute; left: 0; top: .65em; width: 12px; height: 1px; background: var(--kin-line); }

/* 1画面目にCTAまで収まるかは横幅ではなく縦幅で決まる（375×667 / 360×640 など背の低い端末）。
   ベース宣言より後に置いて確実に上書きする（同一詳細度のためソース順で決まる）。 */
@media (max-height: 720px) {
  .kn-hero__media { max-height: 25vh; }
  .kn-hero__inner { padding-block: 20px clamp(56px, 8vw, 96px); }
  .kn-hero__brand { margin-bottom: 10px; }
  .kn-hero__product { margin-bottom: 12px; }
  .kn-hero__title { font-size: 22px; margin-bottom: 14px; }
  .kn-price { margin-block: 14px clamp(20px, 2.4vw, 28px); }
  .kn-cta { margin-top: 24px; }
}

@media (min-width: 768px) {
  .kn-hero { min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center; }
  .kn-hero__media { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; z-index: 0; }
  .kn-hero__media::after { background: var(--scrim-hero-pc); }
  .kn-hero__img { object-position: 72% 50%; }
  .kn-hero__inner { width: 100%; text-align: left; padding-block: 0; }
  .kn-hero__fv { max-width: min(46%, 34rem); margin-inline: 0; }
  .kn-hero__fv .kn-price { text-align: left; }
  .kn-hero__fv .kn-price::before { margin-inline: 0; }
  .kn-hero__fv .kn-cta { justify-content: flex-start; margin-inline: 0; }
  .kn-hero__more { max-width: min(46%, 34rem); margin-inline: 0; text-align: left; }
  .kn-hero__more .kn-notes { align-items: flex-start; }
  .kn-hero__more .kn-notes li { padding-left: 20px; }
  .kn-hero-more { padding-block: clamp(28px, 3.6vw, 44px) clamp(64px, 8vw, 104px); }
}

/* ===== 10 質問セクション（s-question） ===== */
.kn-lines { text-align: center; margin-bottom: clamp(28px, 3.2vw, 40px); }
.kn-lines p { margin-block: 0 .5em; color: var(--on-dark); }
.sec--question > .wrap > p.reveal { text-align: center; margin-bottom: clamp(28px, 3.2vw, 40px); color: var(--on-dark-muted); }

/* ===== 11 カードリスト ===== */
.kn-cardlist {
  display: flex; flex-direction: column; gap: 12px;
  margin-block: clamp(24px, 2.8vw, 34px);
}
.kn-cardlist li {
  position: relative; padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--yozora-line);
}
.kn-cardlist li::before {
  content: ""; position: absolute; left: 0; top: 1.35em;
  width: 12px; height: 1px; background: var(--kin);
}
/* S3: カード地（§5 s-counterの4枚／s-mapの5行）。card-texture画像を敷き、罫は面の縁取りに切替える。
   PHASE 4監査 P1-5: card-textureをボックスごとにcenter/coverで敷くと、素材の明るい領域が拡大されて
   文字の下に来ることがあり、宣言値12.61:1に対し実測5.28〜7.15:1まで下がる箇所があった（AA4.5:1は
   全箇所で満たすが、宣言値と実測値の乖離をなくすため）。rgba(4,6,11,.35)の均一レイヤーを重ねて
   底上げする（opacityで文字を薄くする対処ではないので§6.2-3には抵触しない）。 */
.kn-cardlist--tex {
  border-top: none; gap: 10px;
}
.kn-cardlist--tex li {
  background: linear-gradient(rgba(4,6,11,.35),rgba(4,6,11,.35)), var(--yozora) url("../img/card-texture-1000.webp") center/cover;
  border: 1px solid var(--kin-line);
  border-bottom: 1px solid var(--kin-line);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 18px) clamp(16px, 3vw, 22px) clamp(14px, 2vw, 18px) clamp(30px, 5vw, 36px);
  color: var(--on-dark-strong);
}
.kn-cardlist--tex li::before { left: clamp(14px, 2.4vw, 18px); background: var(--kin-hi); }
@media (min-width: 700px) {
  .sec--counter .kn-cardlist--tex { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
/* 「向いていない人」は警告色にしない。恐怖訴求に見せず、静かな線引きとして扱う */
.kn-cardlist--muted { color: var(--on-dark-muted); }
.kn-cardlist--muted li::before { background: var(--on-dark-muted); }
/* 「向いている人」＝ +、「向いていない人」（--muted）＝ − の細い記号のみ。赤・警告色は使わない */
.kn-cardlist--fit li::before { content: "+"; width: auto; height: auto; background: none; color: var(--kin); font-size: .95em; line-height: 1; top: .9em; }
.kn-cardlist--muted li::before { content: "−"; width: auto; height: auto; background: none; color: var(--on-dark-muted); font-size: .95em; line-height: 1; top: .9em; }

/* ===== 12 強調行（pull quote） ===== */
.kn-pull {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.75;
  text-align: center;
  color: var(--on-dark-strong);
  margin-block: clamp(28px, 3.2vw, 40px) !important;
}
.kn-pull--lg { font-size: clamp(22px, 3.4vw, 30px); }

/* ===== 13 blockquote（無料の役割） ===== */
.kn-quote {
  position: relative;
  max-width: 640px; margin: clamp(28px, 3.2vw, 40px) auto;
  padding: clamp(22px, 2.8vw, 30px) clamp(24px, 4vw, 36px);
  border-left: 2px solid var(--kin);
  background: var(--yozora-raised);
}
.kn-quote p { font-family: var(--serif); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.9; color: var(--on-dark-strong); }

/* ===== 14 図解（§4/§5 無料＝一点／有料＝地図の対。インラインSVG） =====
   価格根拠を背負う中核メタファ。枠は角丸のヘアライン。ラベルはSVG内ではなくHTMLのfigcaptionに置く（§8.2）。 */
.kn-figure {
  max-width: 420px; margin: clamp(28px, 3.2vw, 44px) auto;
}
.kn-figure svg {
  width: 100%; height: auto;
}
.kn-figure__cap {
  display: flex; align-items: baseline; justify-content: center; gap: .6em;
  margin-top: clamp(12px, 1.6vw, 18px);
  font-family: var(--serif);
}
.kn-figure__label { font-size: .85rem; letter-spacing: .2em; color: var(--kin); }
.kn-figure__phrase { font-size: .95rem; color: var(--on-dark-strong); }
.kn-figure__arrow { color: var(--kin-deep); }

/* §4 光点: ごく弱い脈動（4s / opacity .75↔1、1回きりではなく常時。装飾） */
.kn-point__glow { animation: knPulse 4s ease-in-out infinite; transform-origin: 100px 70px; }
@keyframes knPulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* §5 金の道: stroke-dashoffset で「描かれる」演出（1.6s / 1回のみ / IntersectionObserver 発火・main.js）。
   PHASE 4監査 P2-5: 実パス長(338)と旧dasharray(500)がズレ、描画がtransitionの70%で完了していた。
   <path pathLength="100"> をHTML側に付けて実ジオメトリから切り離し、100を使えば常に正確に0→完了になる。 */
.kn-path-svg__line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.kn-path-svg.is-drawn .kn-path-svg__line { stroke-dashoffset: 0; }

/* LPC §6 の```text```図解（鑑定で重ねる4要素）を、文言を変えずに縦積みへ組み替えたもの */
.kn-diagram--mechanism { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 420px; margin: clamp(28px, 3.2vw, 44px) auto; }
.kn-diagram--mechanism li:not(.kn-diagram__op):not(.kn-diagram__arrow):not(.kn-diagram__result) {
  width: 100%; text-align: center; padding: 12px 10px; color: var(--on-dark);
}
.kn-diagram__op { color: var(--kin-deep); font-size: 1rem; padding-block: 2px; }
.kn-diagram__arrow { color: var(--kin-deep); font-size: 1.1rem; line-height: 1; padding-block: 4px; }
.kn-diagram__result {
  width: 100%; text-align: center; margin-top: 6px; padding: clamp(16px, 2.2vw, 22px);
  font-family: var(--serif); font-size: clamp(17px, 2.4vw, 20px);
  color: var(--on-dark-strong); border: 1px solid var(--kin-line); border-radius: var(--radius);
  background: var(--yozora-raised);
}

/* ===== 15 金運転機MAP 7項目（s-seven）── 紋章＋7カード ===== */
.kn-seven {
  display: grid; gap: clamp(18px, 2.2vw, 24px);
  margin-block: clamp(32px, 3.6vw, 48px);
}
.kn-seven__item {
  position: relative;
  padding: clamp(22px, 2.8vw, 28px) clamp(20px, 3vw, 26px) clamp(22px, 2.8vw, 28px) clamp(56px, 8vw, 68px);
  background: linear-gradient(rgba(4,6,11,.35),rgba(4,6,11,.35)), var(--yozora) url("../img/card-texture-1000.webp") center/cover;
  border: 1px solid var(--kin-line);
  border-radius: var(--radius);
}
.kn-seven__no {
  position: absolute; left: clamp(18px, 2.6vw, 24px); top: clamp(22px, 2.8vw, 28px);
  font-family: var(--serif); color: var(--kin); font-size: 1.15rem; line-height: 1;
}
.kn-seven__title { font-size: clamp(16px, 2.2vw, 18.5px); margin-bottom: .5em; color: var(--on-dark-strong); }
.kn-seven__item p { color: var(--on-dark-muted); }
.kn-seven__extra {
  text-align: center; color: var(--on-dark-muted); font-size: .92rem; line-height: 1.9;
  padding-top: clamp(20px, 2.4vw, 28px); border-top: 1px solid var(--kin-line);
}
@media (min-width: 700px) { .kn-seven { grid-template-columns: repeat(2, 1fr); } }

/* 紋章（05）── --yozoraを焼き込み済みの合成画像。置ける面は単色--yozora地のみ（§12-G）。
   テクスチャ・写真・--sumiの上に置くと矩形の縁が見えるため、s-seven（S1のyozora地）以外では使わない。 */
.kn-emblem {
  /* PHASE 4監査 P1-3: 方針書§3.2が自ら実測した可読下限(220px)を、実装のclamp下限(200px)が
     下回っていた（390px幅で42vw=163.8pxとなり下限に張り付く）。下限を220pxに引き上げる。 */
  width: clamp(220px, 46vw, 280px); height: auto;
  margin: 0 auto clamp(24px, 3vw, 34px);
}

/* ===== 16 Integrity ブロック（出生時刻）── 金ヘアライン枠＋S1単色地 ===== */
.kn-integrity {
  max-width: 640px; margin: clamp(36px, 4vw, 52px) auto 0;
  padding: clamp(26px, 3.2vw, 36px);
  border: 1px solid var(--kin-line);
  border-radius: var(--radius);
  background: var(--yozora);
}
.kn-integrity__title { font-size: clamp(17px, 2.2vw, 19px); margin-bottom: .7em; color: var(--on-dark-strong); }
.kn-integrity p { color: var(--on-dark-muted); margin-block: 0 .6em; }
.kn-integrity p:last-child { margin-bottom: 0; }
.kn-integrity strong { color: var(--on-dark-strong); }

/* ===== 16.5 実例インフォグラフィック（s-flow-example）── タカヤ提供の実鑑定抜粋 =====
   原寸1024x1536。文字が細かいため縮小しすぎない上限(640px)で止め、必要ならピンチズームに委ねる
   （viewport meta に user-scalable=no は付けていないので拡大は可能）。 */
.kn-flow-example {
  width: 100%; max-width: 640px; height: auto;
  margin: 0 auto; border-radius: 8px; display: block;
}

/* ===== 17 Mechanism 2カラム（s-mechanism）── 左本文／右 白蛇の正方形写真 ===== */
.kn-mechanism__figure {
  margin-top: clamp(32px, 4vw, 48px);
  position: relative;
  width: 100%;   /* PHASE 4監査 P0-1と同根。widthを明示しないとaspect-ratio+max-heightで幅も縮む */
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 42vh;
  background-color: var(--yozora);
}
.kn-mechanism__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.kn-mechanism__figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--scrim-band-fade);
}
@media (min-width: 900px) {
  .kn-mechanism__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
  .kn-mechanism__figure { margin-top: 0; max-height: none; max-width: 380px; margin-inline: auto; }
  .kn-mechanism__figure::after { display: none; }
}

/* ===== 18 写真ブロック共通機構（§12-E）── s-authority / s-final の土台 =====
   全ての写真ブロックにbackground-color: var(--yozora)を併記する（デコード失敗時の保険）。 */
.kn-photo { position: relative; background-color: var(--yozora); }
.kn-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kn-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.kn-photo > .wrap { position: relative; z-index: 2; }
.kn-photo--flat { min-height: clamp(420px, 60vh, 640px); display: flex; align-items: center; }
.kn-photo--flat::after { background: var(--scrim-flat); }
.kn-photo--flat > img { object-position: 50% 40%; }
/* 背景固定スクロール（iOSで破綻し、スクロール性能も落ちる手法）は使わない */

/* s-authority: ページ中盤で一度だけ「別の部屋」に入る。メダリオンは合成範囲を閉じた円形パッドの上に置く */
.sec--authority .kn-medallion-pad { margin-inline: auto; }

/* ===== 19 メダリオン（08 / 11。§12-F） =====
   mix-blend-mode: screen は --yozora の単色地の上でのみ正しく発光する。
   s-authority は背景写真の上なので、メダリオンだけ isolation:isolate した
   --yozora の円形パッドで包み、合成対象を写真ではなくパッド自身に閉じる。 */
.kn-medallion-pad {
  display: block; width: 72px; height: 72px;
  margin: 0 auto clamp(16px, 2vw, 24px);
  border-radius: 50%;
  background: var(--yozora);
  isolation: isolate;
  overflow: hidden;
}
.kn-medallion {
  width: 100%; height: 100%; display: block;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 78%);
}
@supports not ((mask-image: radial-gradient(#000, #000)) or (-webkit-mask-image: radial-gradient(#000, #000))) {
  .kn-medallion-pad { display: none; }
}

/* ===== 20 s-authority 個別調整 ===== */
.sec--authority .prose p { color: var(--on-dark); }
.sec--authority .kn-cardlist li { color: var(--on-dark); }

/* ===== 21 お申し込み後の流れ（s-flow）── メダリオン＋金の縦レール ===== */
.kn-flow {
  position: relative; display: flex; flex-direction: column;
  gap: clamp(28px, 3.2vw, 40px);
  margin-top: clamp(36px, 4vw, 52px);
  padding-left: 34px;
}
.kn-flow::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--kin-line) 10%, var(--kin-line) 90%, transparent);
}
.kn-flow__item { position: relative; }
.kn-flow__item::before {
  content: ""; position: absolute; left: -28px; top: .3em;
  width: 6px; height: 6px; background: var(--kin); transform: rotate(45deg);
}
.kn-flow__num { font-family: var(--serif); color: var(--kin); font-size: .78rem; letter-spacing: .16em; display: block; margin-bottom: 6px; }
.kn-flow__title { font-size: clamp(16px, 2.2vw, 18px); margin-bottom: .5em; color: var(--on-dark-strong); }
.kn-flow__item p { color: var(--on-dark-muted); }

/* ===== 22 FAQ（s-faq。ネイティブ details/summary） ===== */
.kn-faq { margin-top: clamp(28px, 3.2vw, 40px); }
.kn-faq--tex {
  background: linear-gradient(rgba(4,6,11,.35),rgba(4,6,11,.35)), var(--yozora) url("../img/card-texture-1000.webp") center/cover;
  border: 1px solid var(--kin-line);
  border-radius: var(--radius);
  padding-inline: clamp(18px, 3vw, 28px);
}
.kn-faq__item { border-bottom: 1px solid var(--kin-line); }
.kn-faq__item:last-child { border-bottom: none; }
.kn-faq__q {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  min-height: 44px; padding: clamp(18px, 2.2vw, 22px) 30px clamp(18px, 2.2vw, 22px) 0;
  font-family: var(--serif); font-size: clamp(15px, 2vw, 16.5px);
  line-height: 1.7; color: var(--on-dark-strong); cursor: pointer;
  list-style: none;
}
.kn-faq__q::-webkit-details-marker { display: none; }
.kn-faq__q::before, .kn-faq__q::after {
  content: ""; position: absolute; top: 50%;
  background: var(--kin); transition: transform 220ms var(--ease);
}
/* 横棒(right:4px)と縦棒(right:10.5px)の中心を right:11px に揃える（+の形を保つ） */
.kn-faq__q::before { width: 14px; height: 1px; right: 4px; transform: translateY(-50%); }
.kn-faq__q::after  { width: 1px; height: 14px; right: 10.5px; transform: translateY(-50%); }
.kn-faq__item[open] .kn-faq__q::after { transform: translateY(-50%) rotate(90deg); }
.kn-faq__a { padding: 0 30px clamp(20px, 2.4vw, 26px) 0; }
.kn-faq__a p { color: var(--on-dark-muted); font-size: .95rem; margin-block: 0 .6em; }
.kn-faq__a p:last-child { margin-bottom: 0; }

/* ===== 23 trust row（Finalのprice/CTA後） ===== */
.kn-trust {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 clamp(10px, 1.6vw, 16px);
  margin-top: clamp(28px, 3.2vw, 40px);
  font-size: .82rem; color: var(--on-dark-muted); text-align: center;
}
.kn-trust li { position: relative; padding-block: 4px; }
/* 区切りは前項目の::afterに付ける（折返し時にパイプが次行の先頭へ取り残されるのを防ぐ） */
.kn-trust li:not(:last-child)::after { content: "｜"; color: rgba(228, 221, 204, .3); margin-left: clamp(10px, 1.6vw, 16px); }

/* ===== 24 footer ===== */
.kn-footer { background: var(--sumi); padding-block: clamp(44px, 6vw, 64px); text-align: center; }
.kn-footer__brand { font-family: var(--serif); color: var(--kin-hi); letter-spacing: .2em; font-size: .85rem; margin-bottom: clamp(20px, 2.6vw, 28px); }
.kn-footer__links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(14px, 2vw, 24px); row-gap: 4px; margin-bottom: clamp(16px, 2vw, 22px); }
.kn-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-muted); font-size: .85rem; border-bottom: 1px solid transparent; }
.kn-footer__links a:hover { color: var(--on-dark-strong); border-color: var(--kin-line); }
.kn-footer__copy { color: var(--on-dark-muted); font-size: .78rem; letter-spacing: .05em; }
body.has-sticky .kn-footer { padding-bottom: calc(clamp(44px, 6vw, 64px) + 64px); }

/* ===== 25 sticky CTA（モバイルのみ。§9.6） ===== */
.kn-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: rgba(4, 6, 11, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--kin-line);
  transform: translateY(100%);
  transition: transform 320ms var(--ease);
}
.kn-sticky-cta[hidden] { display: none; }
.kn-sticky-cta.is-on { transform: translateY(0); }
.kn-sticky-cta__btn { width: 100%; max-width: none; min-height: 52px; }
@media (min-width: 768px) { .kn-sticky-cta { display: none; } }

/* ===== 26 s-final「最後に」（§8.2-13。PC=写真にSC1を重ねる／SP=分割構成。Heroと対の構造） ===== */
.sec.kn-final { padding-block: 0; }
.kn-final { position: relative; background: var(--yozora); overflow: hidden; }

.kn-final__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--yozora);
}
.kn-final__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--scrim-band-fade);
}
.kn-final__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;   /* PHASE 4監査 P2-6: SPの16:9帯で72%だと紋章が右に寄りすぎ左半分が空になっていた */
}
.kn-final__body { position: relative; z-index: 2; padding-block: clamp(40px, 6vw, 64px) clamp(56px, 8vw, 104px); }

@media (min-width: 768px) {
  .kn-final { display: flex; align-items: center; min-height: clamp(480px, 58vh, 640px); }
  .kn-final__media { position: absolute; inset: 0; aspect-ratio: auto; z-index: 0; }
  .kn-final__media::after { background: var(--scrim-hero-pc); }
  .kn-final__img { object-position: right center; }
  .kn-final__body { width: 100%; padding-block: clamp(72px, 10vw, 120px); }
  .kn-final__body .sec__title,
  .kn-final__body .prose,
  .kn-final__body .kn-pull,
  .kn-final__body .kn-price,
  .kn-final__body .kn-trust { max-width: min(46%, 34rem); margin-inline: 0; text-align: left; }
  .kn-final__body .kn-price::before { margin-inline: 0; }
  .kn-final__body .kn-cta { justify-content: flex-start; }
  .kn-final__body .kn-trust { justify-content: flex-start; }
}

/* ===== 27 responsive ===== */
@media (min-width: 480px) {
  .kn-price--card { max-width: 400px; }
}
@media (min-width: 1024px) {
  .wrap { padding-inline: 40px; }
}

/* ===== 28 prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .kn-point__glow { animation: none !important; opacity: .9 !important; }
  .kn-path-svg__line { stroke-dashoffset: 0 !important; }
}

/* ===== 29 print（PDF化でCTA等の.revealが消える事故の防止） ===== */
@media print {
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .kn-sticky-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .kn-hero, .kn-photo, .kn-final, .kn-footer { background: none !important; color: #000; }
  .kn-hero__media, .kn-final__media, .kn-photo > img, .kn-medallion-pad, .kn-emblem { display: none !important; }
  .sec__title, .kn-hero__title, .kn-pull, h1, h2, h3, p, li { color: #000 !important; }
  .btn { background: none; color: #000; border: 1px solid #000; box-shadow: none; }
}
