/* Reform Lens 紹介ページ（2026-11-18 作成）。
   作りは Kaitori Base・夜景ドライブナビの紹介ページと同じ（独自の HTML。build.py が title・説明文・OGP・構造化データ・計測を head に足す）。
   配色は、自宅のリフォームを考えている一般の人向けに、全体を明るく。地は App Store の画像と同じ淡い青（#EEF6FF）と白、
   ボタンはアプリと同じ青。フォントは TalkLens・夜景ドライブナビと同じ Apple のヒラギノ角ゴ。小さな字は 14px より小さくしない。
   スマートフォンの幅を先に作り、広い画面で段組みを増やす。外部のライブラリは使わない。 */
:root {
  --blue: #0a7cff;
  --blue-deep: #0062d6;
  --blue-soft: #e3efff;
  --sky: #eef6ff;
  --sky-2: #f6faff;
  --ink: #0e1f3a;
  --ink-2: #44546e;
  --line: #d9e4f2;
  --amber: #b35c00;
  --amber-soft: #fff6e6;
  --amber-line: #f3d9a8;
  --radius: 20px;
  --gutter: 16px;
}

* { 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;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 800; letter-spacing: 0.01em; word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
strong { font-weight: 800; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.sp-only { display: inline; }
@media (min-width: 720px) { .sp-only { display: none; } }

/* ---- ヘッダー（白の帯。下にスクロールしても付いてくる） ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; }
.brand img { border-radius: 8px; }
.header-nav { display: none; gap: 22px; }
.header-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.header-nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .header-nav { display: flex; } }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 800; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(180deg, #2b8fff, var(--blue-deep)); color: #fff; box-shadow: 0 10px 26px rgba(10, 124, 255, 0.3); }
.btn-ghost { background: #fff; color: var(--blue-deep); border: 1px solid #b9d3f5; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 14px; box-shadow: 0 6px 16px rgba(10, 124, 255, 0.25); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.cta-row.center { justify-content: center; }

/* App Store のバッジ（サイト共通の画像 /img/badges/app-store-ja-black.svg） */
.store-badge { display: inline-flex; align-items: center; min-height: 52px; border-radius: 10px; }
.store-badge img { width: 156px; height: 52px; }
.store-badge.large img { width: 180px; height: 60px; }
.store-badge:focus-visible, .zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---- 最初の画面：淡い青の地（App Store の画像と同じ色） ---- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 70% at 85% 10%, #dcebff 0%, rgba(220, 235, 255, 0) 60%), linear-gradient(180deg, var(--sky-2) 0%, var(--sky) 100%);
  padding: 44px 0 56px;
}
.hero-inner { position: relative; display: grid; gap: 36px; align-items: center; }
.eyebrow { color: var(--blue-deep); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(31px, 8.4vw, 54px); line-height: 1.25; }
.hero h1 .blue { color: var(--blue); }
.lead { font-size: clamp(16px, 4.2vw, 18px); color: var(--ink-2); margin-top: 18px; max-width: 34em; font-weight: 500; }
.note { color: var(--ink-2); font-size: 14px; margin-top: 14px; font-weight: 500; }
.hero-flow { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: hf; }
.hero-flow li { counter-increment: hf; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.hero-flow li::before { content: counter(hf); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; }

/* 画面3枚を扇のように重ねる（押すと大きく表示） */
.hero-fan { position: relative; height: clamp(400px, 118vw, 560px); max-width: 520px; width: 100%; margin: 0 auto; }
.hero-fan .fan-card { position: absolute; top: 0; left: 50%; width: 46%; border-radius: 22px; overflow: hidden; box-shadow: 0 26px 60px rgba(14, 31, 58, 0.22); transition: transform 0.35s ease; background: var(--sky); }
.fan-card img { width: 100%; height: auto; }
.fan-c { transform: translateX(-50%); z-index: 3; }
.fan-l { transform: translateX(-108%) translateY(36px) rotate(-7deg); z-index: 1; }
.fan-r { transform: translateX(8%) translateY(36px) rotate(7deg); z-index: 2; }
.fan-card:hover, .fan-card:focus-visible { z-index: 4; }
.fan-c:hover { transform: translateX(-50%) translateY(-6px); }
/* スマホの幅：傾けた左右の画面が横にはみ出さないよう、少し小さく、重なりを深く */
@media (max-width: 599px) {
  .hero-fan { height: clamp(330px, 98vw, 480px); }
  .hero-fan .fan-card { width: 40%; border-radius: 18px; }
  .fan-l { transform: translateX(-104%) translateY(30px) rotate(-7deg); }
  .fan-r { transform: translateX(4%) translateY(30px) rotate(7deg); }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-fan { height: 600px; }
}

/* ---- セクション ---- */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.tint { background: var(--sky); }
.section-title { font-size: clamp(25px, 6.2vw, 38px); text-align: center; margin-bottom: 14px; }
.section-lead { color: var(--ink-2); text-align: center; max-width: 36em; margin: 0 auto 32px; font-weight: 500; }
.grid-2, .grid-3 { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---- カード（白。やわらかい影） ---- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 6px 24px rgba(14, 31, 58, 0.06);
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-weight: 500; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; margin-bottom: 12px; }
.card-icon svg { width: 24px; height: 24px; }

/* ---- 流れ（ひと目で分かる帯） ---- */
.flow { list-style: none; padding: 0; margin: 8px auto 0; display: grid; gap: 10px; max-width: 560px; counter-reset: fl; }
.flow li { counter-increment: fl; position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-weight: 800; font-size: 16px; line-height: 1.5; }
.flow li::before { content: counter(fl); flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 16px; font-weight: 800; }
.flow small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 0; max-width: 980px; }
  .flow li { flex-direction: column; text-align: center; padding: 18px 12px; border-radius: 0; border-left-width: 0; }
  .flow li:first-child { border-left-width: 1px; border-radius: 16px 0 0 16px; }
  .flow li:last-child { border-radius: 0 16px 16px 0; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); z-index: 1; }
}

/* ---- 段階ごとの説明（画面と文） ---- */
.step { display: grid; gap: 22px; align-items: center; margin-top: 56px; }
.step-shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 250px; width: 100%; margin: 0 auto; }
.step-shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; }
.step-shots a { border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px rgba(14, 31, 58, 0.16); border: 1px solid var(--line); background: var(--sky); }
.step-text { padding: 0 4px; }
.step-num { color: var(--blue-deep); font-weight: 800; letter-spacing: 0.12em; font-size: 14px; margin-bottom: 6px; }
.step-text h3 { font-size: 23px; margin-bottom: 10px; }
.step-text p { color: var(--ink-2); font-weight: 500; }
.step-text p + p { margin-top: 10px; }
.step-text .small { font-size: 14px; }
.step-text strong { color: var(--ink); }
@media (min-width: 900px) {
  .step { grid-template-columns: 460px 1fr; gap: 56px; margin-top: 80px; }
  .step.reverse { grid-template-columns: 1fr 460px; }
  .step.reverse .step-shots { order: 2; }
  .step-shots { max-width: 270px; }
  .step-text h3 { font-size: 27px; }
}

/* ---- 金額は目安（注意の枠） ---- */
.caution { background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: var(--radius); padding: 26px 22px; max-width: 820px; margin: 0 auto; }
.caution h2 { font-size: clamp(22px, 5.4vw, 30px); margin-bottom: 12px; }
.caution .label { display: inline-block; color: var(--amber); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; margin-bottom: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); font-weight: 500; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.caution .ticks li::before { background: var(--amber); }
.ticks b { color: var(--ink); font-weight: 800; }

/* ---- 始め方 ---- */
.steps3 { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 .step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; letter-spacing: 0; font-size: 15px; margin-bottom: 12px; }

/* ---- 会社で使う方へ ---- */
.biz { display: grid; gap: 28px; align-items: start; }
.biz .step-shots { max-width: 250px; }
@media (min-width: 900px) { .biz { grid-template-columns: 1fr 280px; gap: 48px; } .biz .step-shots { order: 2; position: sticky; top: 88px; } }
.biz-cards { display: grid; gap: 16px; }

.fine { color: var(--ink-2); font-size: 14px; margin-top: 22px; text-align: center; font-weight: 500; }

/* ---- よくある質問 ---- */
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 48px 18px 20px; font-weight: 800; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--blue-deep); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); font-weight: 500; }

/* ---- 最後の案内 ---- */
.final { background: linear-gradient(180deg, var(--sky) 0%, #dcebff 100%); }
.final-icon { margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 16px 40px rgba(14, 31, 58, 0.25); }

/* ---- 画面の下 ---- */
.site-footer { background: var(--ink); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.9); display: inline-flex; align-items: center; min-height: 44px; }
.copyright { margin-top: 6px; }

/* ---- 押すと大きくなるもの・大きく表示（ライトボックス） ---- */
.zoom { display: block; cursor: zoom-in; position: relative; color: inherit; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 16, 32, 0.94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lb-img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; border-radius: 14px; touch-action: pan-y pinch-zoom; }
.lb-cap { color: #fff; font-size: 15px; font-weight: 600; text-align: center; min-height: 1.4em; }
.lb-close, .lb-prev, .lb-next { appearance: none; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff; border-radius: 999px; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 2; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 600px) { .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 24px; } }
body.lb-open { overflow: hidden; }

/* ---- 控えめな表示のアニメーション（画面に入ったときに少しだけ浮かぶ） ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .fan-card { transition: none; } }
