/* ============================================================
   HumanLog LP — css/lp.css
   準拠: .lp-workspace/04-design.md（設計書）/ 02-effects.md（演出仕様）
   外部ライブラリ・CDN・Webフォント不使用。LP は Light 固定。
   ============================================================ */

/* ---------- トークン（04-design §2） ---------- */
:root{
  color-scheme: light;

  /* 構造色 */
  --ink:        #0a0a0a;
  --ground:     #ffffff;
  --paper:      #F9F6F2;
  --hero-dark:  #0E1114;
  --sub:        #575757;
  --gray:       #9a9a9a;
  --line:       #e1e1e1;
  --inverted:   #ffffff;
  /* 役割色 — 1セクション1色まで */
  --coral:      #B82433;
  --mint:       #147A66;

  /* タイポ */
  --font-sans:  "Avenir Next","Helvetica Neue",Helvetica,
                "Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP",Meiryo,sans-serif;
  --font-serif: "Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;
  --fs-hero:    clamp(30px, 22px + 2.63vw, 60px); /* 375px≒32px / 1440px=60px（04-design §2-2 の注記値に一致させた補正） */
  --fs-display: clamp(26px, 1.6rem + 2.0vw, 52px);
  --fs-lead:    clamp(15px, 0.9rem + 0.2vw, 16px);
  --fs-body:    14px;
  --fs-small:   12px;
  --fs-label:   12px;

  /* レイアウト */
  --inner: 6.4vw;
  --content-max: 1120px;
  --text-max: 38rem;
  --sec-gap: clamp(96px, 12vw, 180px);
  --radius-card: 14px;
  --radius-media: 12px;

  /* モーション（02-effects §0-1） */
  --ease-out-quiet: cubic-bezier(.16,1,.3,1);
  --dur-hero:  1.4s;
  --dur-base:  0.8s;
  --dur-micro: 0.3s;
  --stagger:   0.12s;
  --reveal-y:  24px;

  interpolate-size: allow-keywords; /* FAQ 開閉アニメ（M-4）用。非対応環境は無アニメ開閉 */
}
@media (min-width:768px){ :root{ --inner: 4.1666vw; } }
@media (max-width:767px){ :root{ --stagger: 0.08s; } }

/* ---------- リセット・ベース ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; position:relative; /* scroll_depth sentinel の基準 */
  font-family:var(--font-sans); font-weight:400; font-size:var(--fs-body);
  line-height:1.9; letter-spacing:.02em; color:var(--ink); background:var(--ground);
  font-feature-settings:"palt"; -webkit-font-smoothing:antialiased;
}
h1,h2,h3,p,ul,ol,figure,dl,dd{ margin:0; }
ul,ol{ padding:0; list-style:none; }
img,svg,video{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
#hero :focus-visible, #site-header :focus-visible{ outline-color:#fff; }

.container{ margin-inline:auto; max-width:var(--content-max); padding-inline:var(--inner); }
main > section{ padding-block-start:var(--sec-gap); }
main > #hero{ padding-block-start:0; }

/* 見出しまわり共通 */
.sec-label{
  font-size:var(--fs-label); font-weight:500; line-height:1; letter-spacing:.1em;
  color:var(--gray); margin-bottom:20px;
}
.sec-title{
  font-size:var(--fs-display); font-weight:600; line-height:1.45; letter-spacing:-.01em;
}
.sec-lead{
  font-size:var(--fs-lead); line-height:2; letter-spacing:.02em;
  max-width:var(--text-max); margin-top:24px;
}
.sec-lead + .caption{ margin-top:12px; } /* リード直下の補足1行（改訂1） */
.sec-sub{ font-size:clamp(21px, 1.1rem + .6vw, 26px); font-weight:600; line-height:1.5; letter-spacing:-.01em; }
.caption{ font-size:var(--fs-small); line-height:1.8; color:var(--sub); }
.serif-em{ font-family:var(--font-serif); font-weight:500; }
.nobr{ display:inline-block; } /* 見出しの折り返しを文節単位にする */

/* ---------- 共通リビール（02-effects §2-1・one-shot・no-js は全表示） ---------- */
html.js [data-reveal]{
  opacity:0; transform:translateY(var(--reveal-y));
  transition:opacity var(--dur-base) var(--ease-out-quiet),
             transform var(--dur-base) var(--ease-out-quiet);
  transition-delay:calc(var(--i,0) * var(--stagger));
}
html.js [data-reveal].is-in{ opacity:1; transform:none; }
html.js [data-reveal][data-slow]{ transition-duration:var(--dur-hero); } /* 巨大見出し用 */
html.js [data-reveal][data-fade]{ --reveal-y:0px; } /* 料金など opacity のみ */

/* 二段階リビール: セリフ強調語「あなたのもの」（privacy のみ） */
html.js [data-reveal] .serif-em{ opacity:0; transition:opacity var(--dur-base) var(--ease-out-quiet) 1.7s; }
html.js [data-reveal].is-in .serif-em{ opacity:1; }

/* ============================================================
   固定ヘッダー（04-design §3）
   ============================================================ */
#site-header{
  position:fixed; top:0; inset-inline:0; z-index:100; height:64px;
  color:#fff; transition:color var(--dur-micro) var(--ease-out-quiet);
  pointer-events:none; /* 透明な帯が下のコンテンツへの操作を遮らないように */
}
.header-logo{ pointer-events:auto; } /* pill は自身の表示状態（M-2）で pointer-events を管理 */
body.is-past-hero #site-header{ color:var(--ink); }
#site-header .container{
  height:100%; display:flex; align-items:center; justify-content:space-between;
}
.header-logo{ display:inline-flex; align-items:center; min-height:44px; color:inherit; }
.header-logo svg{ height:20px; width:auto; }
.header-pill{
  position:relative; display:inline-flex; align-items:center; height:40px;
  padding-inline:24px; border-radius:999px; font-size:13px; font-weight:500;
  color:var(--inverted); background:rgba(10,10,10,.86);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  opacity:0; pointer-events:none; transform:translateY(-8px);
  transition:opacity var(--dur-micro) var(--ease-out-quiet),
             transform var(--dur-micro) var(--ease-out-quiet),
             background var(--dur-micro);
}
.header-pill::after{ content:""; position:absolute; inset:-4px; border-radius:inherit; } /* 44px タップ領域確保 */
body.is-past-hero .header-pill,
html:not(.js) .header-pill{ opacity:1; pointer-events:auto; transform:none; }
.header-pill:hover{ background:#2e2e2e; }
.header-pill:active{ transform:scale(.98); }
@media (max-width:767px){
  #site-header{ height:56px; }
  .header-logo svg{ height:18px; }
  .header-pill{ padding-inline:18px; }
}

/* ============================================================
   Hero（04-design §4-1 / §5）
   ============================================================ */
#hero{
  position:relative; overflow:hidden; background:var(--hero-dark); color:#fff;
  min-height:100vh; min-height:100svh; display:grid;
}
.hero__media{ position:absolute; inset:0; }
.hero__media img{ width:100%; height:100%; object-fit:cover; }
.hero__poster{ position:absolute; inset:0; }
.hero__video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .8s var(--ease-out-quiet);
}
.hero__video.is-playing{ opacity:1; }
/* 暗幕: 実測でコントラスト検証済み（.5 では 3.85:1 で不足 → 設計許容上限 .6 を採用。
   16:9 = 5.32:1 / 9:16 = 5.10:1 で 4.5:1 を満たす。04-design §4-1） */
.hero__scrim{
  position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(14,17,20,0) 60%, #0E1114 100%),
    rgba(14,17,20,.6);
}
/* 改訂1: Hero は「コピー（左）× 実機ホーム画面（右）」の2カラム。SP は縦積み（§5） */
.hero__content{
  position:relative; z-index:1; width:100%;
  display:grid; grid-template-columns:minmax(0,1fr) auto;
  column-gap:clamp(32px, 5vw, 72px);
  align-items:center; align-content:center;
  padding-block:110px 88px;
}
.hero__copy{ text-align:left; }
.hero__title{
  font-size:var(--fs-hero); font-weight:600; line-height:1.4; letter-spacing:-.01em;
}
.hero__sub{
  margin-top:28px; font-size:16px; line-height:2.1; letter-spacing:.02em;
  color:rgba(255,255,255,.92);
}
.hero__cta{
  margin-top:44px; display:flex; align-items:center; justify-content:flex-start; gap:32px;
}
.hero__store{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.store-badge{ display:inline-block; }
.store-badge:hover{ opacity:.85; }  /* M-7 */
.store-badge img{ height:52px; width:auto; }
.hero__free{ font-size:13px; line-height:1.8; color:rgba(255,255,255,.85); }
.qr{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.qr__box{ background:#fff; border-radius:8px; padding:8px; }
.qr__box img{ width:96px; height:96px; }
.qr__cap{ font-size:11px; line-height:1.7; color:rgba(255,255,255,.75); max-width:12em; }
/* Hero の実機ホーム画面（framed lp-01-home） */
.hero__phone{ gap:12px; }
.hero__phone img{ width:clamp(240px, 24vw, 352px); max-width:none; }
.hero__phone-cap{ color:rgba(255,255,255,.65); text-align:center; max-width:18em; }
.hero__scroll{
  position:absolute; left:50%; bottom:28px; z-index:1;
  width:1px; height:48px; opacity:.5;
}
.hero__scroll::before{
  content:""; display:block; width:1px; height:100%; background:#fff;
  animation:scroll-line 2.4s var(--ease-out-quiet) infinite;
}
@keyframes scroll-line{
  0%{ transform:scaleY(0); transform-origin:top; }
  45%{ transform:scaleY(1); transform-origin:top; }
  55%{ transform:scaleY(1); transform-origin:bottom; }
  100%{ transform:scaleY(0); transform-origin:bottom; }
}
.hero__sentinel{ position:absolute; top:80%; left:0; width:1px; height:1px; }

/* Hero 出現シーケンス（02-effects §1-2。html.js 限定 = no-js では常時表示） */
@keyframes hero-in{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
html.js [data-hero-seq]{
  animation:hero-in var(--dur-hero) var(--ease-out-quiet) var(--d,0s) both;
}
@media (max-width:767px){
  .hero__content{
    display:flex; flex-direction:column; align-items:center;
    padding-top:12vh; padding-bottom:72px; /* Smart App Banner を考慮して詰める */
  }
  .hero__copy{ text-align:center; }
  .hero__sub{ font-size:14px; }
  .hero__cta{ margin-top:36px; justify-content:center; }
  .hero__store{ align-items:center; }
  .store-badge img{ height:48px; }
  .hero__free{ font-size:12px; }
  .qr{ display:none; } /* SP は QR 非表示（behavioral 確定） */
  .hero__phone{ margin-top:44px; }
  .hero__phone img{ width:min(56vw, 230px); }
}

/* ============================================================
   01 / 使い方 — howto（改訂1: 画像主導の3ステップ）
   ============================================================ */
.howto-grid{ margin-top:56px; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:5%; }
.howto-step{ text-align:center; }
.howto-step__no{
  font-size:18px; font-weight:600; line-height:1; letter-spacing:.05em;
  color:var(--gray); margin-bottom:18px;
}
.howto-step .device-shot img{ max-width:280px; }
.howto-step__title{ margin-top:22px; font-size:16px; font-weight:600; line-height:1.6; }
.howto-step__text{ margin-top:8px; font-size:var(--fs-body); color:var(--sub); max-width:21em; margin-inline:auto; }
.howto-cap{ margin-top:40px; text-align:center; }
@media (max-width:767px){
  .howto-grid{ display:block; margin-top:40px; }
  .howto-step{ margin-top:56px; }
  .howto-step:first-child{ margin-top:0; }
  .howto-step .device-shot img{ max-width:min(64vw, 260px); }
}

/* ============================================================
   02 / なぜ — problem（改訂1: 写真 vs 記録の画像比較）
   ============================================================ */
.compare{
  margin-top:56px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  column-gap:clamp(24px, 5vw, 64px); align-items:center;
}
.compare__item{ margin:0; display:flex; flex-direction:column; align-items:center; gap:14px; }
.compare__item figcaption{ text-align:center; max-width:24em; }
.compare__item:not(.device-shot) img{
  width:100%; max-width:460px; aspect-ratio:3/2; object-fit:cover; border-radius:var(--radius-media);
}
.compare .device-shot img{ max-width:300px; }
.compare__note{ margin-top:32px; }
@media (max-width:767px){
  .compare{ display:block; margin-top:40px; }
  .compare__item + .compare__item{ margin-top:40px; }
  .compare .device-shot img{ max-width:min(64vw, 240px); }
}

/* ============================================================
   02 / 人 — people（04-design §4-3・仕掛け2）
   ============================================================ */
.people__grid{ display:grid; grid-template-columns:52% 40%; gap:8%; align-items:start; margin-top:48px; }
.device-shot{ margin:0; display:flex; flex-direction:column; align-items:center; gap:14px; }
.device-shot img{ width:100%; max-width:340px; }
.device-shot figcaption{ text-align:center; }

/* 仕掛け2: 人物タイムライン */
.ptl{ max-width:420px; margin-top:40px; }
.ptl__head{ display:flex; align-items:center; gap:16px; }
.ptl__avatar{ width:64px; height:64px; flex:none; }
.ptl__avatar img{ width:100%; height:100%; border-radius:50%; object-fit:cover; }
.ptl__name{ font-size:15px; font-weight:500; line-height:1.6; }
.ptl__name small{ font-size:12px; font-weight:400; color:var(--sub); display:block; }
.ptl__body{ position:relative; margin-left:31px; padding:20px 0 8px 33px; }
.ptl__line{
  position:absolute; left:0; top:0; bottom:0; width:1px; background:var(--line);
  transform:scaleY(1); transform-origin:top;
}
.ptl__card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-card);
  padding:14px 18px; display:flex; align-items:center; gap:14px;
}
.ptl__card + .ptl__card{ margin-top:14px; }
.ptl__card-title{ font-size:14px; font-weight:500; line-height:1.6; }
.ptl__card-meta{ font-size:12px; color:var(--sub); line-height:1.6; }
.ptl__thumb{ width:56px; height:56px; flex:none; object-fit:cover; border-radius:8px; }
.ptl__count{ margin-top:18px; display:flex; align-items:center; gap:12px; font-size:13px; color:var(--sub); }
.ptl__count .ptl__avatar{ width:28px; height:28px; }

/* 仕掛け2 シーケンス（02-effects §4-2。html.js 限定・.is-in で駆動） */
html.js .ptl .ptl__avatar,
html.js .ptl .ptl__name{ opacity:0; transition:opacity var(--dur-base) var(--ease-out-quiet); }
html.js .ptl .ptl__line{ transform:scaleY(0); transition:transform var(--dur-base) var(--ease-out-quiet) .3s; }
html.js .ptl .ptl__card{
  opacity:0; transform:translateY(16px);
  transition:opacity var(--dur-base) var(--ease-out-quiet), transform var(--dur-base) var(--ease-out-quiet);
  transition-delay:calc(.9s + var(--i,0) * .15s);
}
html.js .ptl .ptl__count{ opacity:0; transition:opacity .6s var(--ease-out-quiet) 1s; }
html.js .ptl.is-in .ptl__avatar, html.js .ptl.is-in .ptl__name{ opacity:1; }
html.js .ptl.is-in .ptl__line{ transform:scaleY(1); }
html.js .ptl.is-in .ptl__card{ opacity:1; transform:none; }
html.js .ptl.is-in .ptl__count{ opacity:1; }
@media (max-width:767px){
  .people__grid{ display:block; }
  .people__figure{ margin-top:48px; }
  .device-shot img{ max-width:min(75vw, 300px); }
  html.js .ptl .ptl__card{ transition-delay:calc(.9s + var(--i,0) * .1s); }
}

/* ============================================================
   03 / 思い出 — memory（04-design §4-4）
   ============================================================ */
.memory__grid{ display:grid; grid-template-columns:40% 52%; gap:8%; align-items:start; margin-top:48px; }
.feature-list{ margin-top:32px; display:grid; gap:14px; }
.feature-list li{ display:flex; align-items:flex-start; gap:12px; font-size:var(--fs-body); }
.feature-list svg{ width:22px; height:22px; flex:none; margin-top:3px; }
.photo-chips{ margin-top:32px; }
.photo-chips ul{ display:flex; gap:14px; }
.photo-chips img{
  width:120px; height:120px; aspect-ratio:1; object-fit:cover; border-radius:var(--radius-media);
}
.photo-chips .caption{ margin-top:10px; }
@media (max-width:767px){
  .memory__grid{ display:block; }
  .memory__figure{ margin-top:48px; }
  .photo-chips ul{ overflow-x:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:x proximity; padding-bottom:6px; }
  .photo-chips li{ flex:none; scroll-snap-align:start; }
  .photo-chips img{ width:96px; height:96px; }
}

/* ============================================================
   04 / 見返す — review（04-design §4-5・sticky切替 + ウィジェット帯）
   ============================================================ */
.review__grid{ display:grid; grid-template-columns:44% 48%; gap:8%; margin-top:56px; }
.review__sticky{ position:sticky; top:15vh; align-self:start; }
.review__shots{ position:relative; max-width:360px; margin-inline:auto; aspect-ratio:720/1388; }
.review__shots img{
  position:absolute; inset:0; width:100%; height:auto;
  opacity:0; transform:translateY(8px);
  transition:opacity .6s var(--ease-out-quiet), transform .6s var(--ease-out-quiet);
}
.review__shots img.is-active{ opacity:1; transform:none; }
.review__dots{ display:flex; justify-content:center; gap:8px; margin-top:18px; }
.review__dots span{ width:6px; height:6px; border-radius:50%; background:var(--line); transition:background var(--dur-micro); }
.review__dots span.is-active{ background:var(--ink); }
.review__step{ min-height:70vh; display:flex; flex-direction:column; justify-content:center; }
.review__step-head{ display:flex; align-items:center; gap:12px; }
.review__step-head svg{ width:24px; height:24px; flex:none; }
.review__step p{ margin-top:14px; max-width:26em; }
.review__step-shot{ display:none; }
@media (max-width:767px){
  .review__grid{ display:block; }
  .review__sticky{ display:none; } /* SP は sticky 解除・4組縦積み（02-effects §2-2） */
  .review__step{ min-height:0; margin-top:64px; }
  .review__step-shot{ display:block; margin:0 0 24px; }
  .review__step-shot img{ width:min(70vw, 280px); margin-inline:auto; }
}

/* ウィジェット帯（--paper フルブリード） */
.widget-band{ background:var(--paper); margin-top:var(--sec-gap); padding-block:96px; }
.widget-band__head{ display:flex; align-items:center; gap:10px; color:var(--gray); }
.widget-band__head svg{ width:20px; height:20px; }
.widget-band .sec-sub{ margin-top:16px; }
.widget-row{ margin-top:40px; display:flex; align-items:flex-start; gap:28px; flex-wrap:wrap; }
.widget{
  background:#fff; border:1px solid var(--line); border-radius:22px;
  padding:18px; display:flex; flex-direction:column;
}
.widget--small{ width:160px; height:160px; }
.widget--medium{ width:340px; height:160px; max-width:100%; }
.widget__date{
  font-size:11px; font-weight:500; line-height:1; letter-spacing:.07em;
  text-transform:uppercase; color:var(--gray);
}
.widget__title{
  font-family:var(--font-serif); font-weight:500; line-height:1.5; margin-top:10px;
  font-size:15px; letter-spacing:0;
}
.widget--medium .widget__title{ font-size:17px; }
.widget__meta{ margin-top:auto; font-size:12px; color:var(--sub); line-height:1.5; }
.widget-row .caption{ flex-basis:100%; }
@media (max-width:767px){
  .widget-band{ padding-block:72px; }
  .widget--small{ display:none; } /* SP は medium 1枚のみ（04-design §5） */
}

/* ============================================================
   05 / 非公開 — privacy（04-design §4-6・仕掛け1）
   ============================================================ */
.privacy-check{ margin-top:48px; display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.privacy-check li{ display:flex; align-items:flex-start; gap:12px; font-size:var(--fs-body); line-height:1.8; }
.privacy-check svg{ width:24px; height:24px; flex:none; margin-top:4px; color:var(--mint); }
@media (max-width:767px){
  .privacy-check{ grid-template-columns:1fr; gap:18px; }
}

/* 仕掛け1: パターンロック解錠デモ */
.pl-demo{ margin-top:72px; display:grid; grid-template-columns:40% 44%; gap:8%; align-items:center; }
.pl-figure{ display:flex; flex-direction:column; align-items:center; gap:18px; }
.pl-figure .pattern-lock{ width:280px; height:auto; color:var(--ink); }
.pl-figure__label{ display:flex; align-items:center; gap:8px; font-size:12px; color:var(--sub); }
.pl-figure__label svg{ width:14px; height:14px; }
.pl-cardwrap{ position:relative; max-width:480px; }
.pl-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-card);
  overflow:hidden;
}
.pl-card__inner{ display:block; }
.pl-card__inner img{ width:100%; aspect-ratio:3/2; object-fit:cover; }
.pl-card__body{ padding:20px 24px 22px; }
.pl-card__title{ font-size:16px; font-weight:600; line-height:1.6; }
.pl-card__text{ margin-top:8px; font-size:var(--fs-body); }
.pl-card__meta{ margin-top:10px; font-size:12px; color:var(--sub); }
.pl-cover{ position:absolute; inset:0; background:var(--paper); opacity:0; pointer-events:none; border-radius:var(--radius-card); }
.pl-replay{
  margin-top:14px; display:inline-block; font-size:13px; color:var(--sub);
  background:none; border:0; padding:8px 0; cursor:pointer; font-family:inherit;
  text-decoration:underline; text-underline-offset:4px;
}
.pl-notes{ margin-top:40px; display:grid; gap:4px; }
.pl-notes a{ text-decoration:underline; text-underline-offset:3px; }

/* デモの状態遷移（既定 = 解錠済み完成状態。html.js 時のみ「保護→解錠」を再生） */
.pattern-lock .pl-trace{ stroke-dasharray:1; stroke-dashoffset:0; }
.pattern-lock .pl-dot--on{ fill:currentColor; }
html.js .pl-demo:not(.play) .pl-trace{ stroke-dashoffset:1; }
html.js .pl-demo:not(.play) .pl-dot--on{ fill:transparent; }
.pl-demo .pl-dot--on{ transform-box:fill-box; transform-origin:center; }
.pl-demo.play .pl-trace{ stroke-dashoffset:0; transition:stroke-dashoffset 1.6s linear; }
.pl-demo.play .pl-dot--on{
  fill:currentColor; transform:scale(1.15);
  transition:fill .2s, transform .2s var(--ease-out-quiet);
  transition-delay:calc(var(--order,0) * .32s + .1s);
}
@media (min-width:768px){
  html.js .pl-demo:not(.play) .pl-card__inner{ filter:blur(14px); opacity:.55; }
  .pl-demo.play .pl-card__inner{
    filter:none; opacity:1;
    transition:filter .6s var(--ease-out-quiet) 2s, opacity .6s var(--ease-out-quiet) 2s;
  }
}
@media (max-width:767px){
  /* SP は blur を使わず不透明カバー方式（02-effects §4-1） */
  html.js .pl-demo:not(.play) .pl-cover{ opacity:1; }
  .pl-demo.play .pl-cover{ opacity:0; transition:opacity .6s var(--ease-out-quiet) 2s; }
  .pl-demo{ display:block; }
  .pl-figure{ margin-bottom:40px; }
  .pl-figure .pattern-lock{ width:240px; }
  .pl-cardwrap{ margin-inline:auto; }
}
html.js .pl-replay{ opacity:0; pointer-events:none; transition:opacity var(--dur-micro) 2.8s; }
html.js .pl-demo.play .pl-replay{ opacity:1; pointer-events:auto; }
html:not(.js) .pl-replay{ display:none; }

/* パターンロックの実機画面2枚（改訂1: lp-08 / lp-09） */
.pl-shots{
  margin-top:72px; display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
  column-gap:clamp(24px, 4vw, 56px); max-width:760px;
}
.pl-shots .device-shot img{ max-width:260px; }
.pl-shots figcaption{ text-align:center; max-width:22em; }
@media (max-width:767px){
  .pl-shots{ display:block; margin-top:56px; }
  .pl-shots .device-shot + .device-shot{ margin-top:40px; }
  .pl-shots .device-shot img{ max-width:min(60vw, 220px); }
}

.privacy-ai{ margin-top:96px; }
.privacy-ai__head{ display:flex; align-items:center; gap:12px; }
.privacy-ai__head svg{ width:24px; height:24px; flex:none; }
.privacy-ai__note{ margin-top:12px; }

/* ============================================================
   07 / 機能 — features（改訂1: アイコン14点の一覧）
   ============================================================ */
.fgrid{
  margin-top:56px; display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:18px 44px;
}
.fgrid li{
  display:flex; align-items:center; gap:12px; font-size:var(--fs-body); line-height:1.7;
  border-top:1px solid var(--line); padding-top:16px;
}
.fgrid svg{ width:22px; height:22px; flex:none; }
@media (max-width:767px){
  .fgrid{ margin-top:40px; grid-template-columns:1fr 1fr; gap:14px 18px; }
  .fgrid li{ font-size:12px; gap:8px; padding-top:12px; align-items:flex-start; }
  .fgrid svg{ width:18px; height:18px; margin-top:3px; }
}

/* ============================================================
   08 / 料金 — pricing（04-design §4-7・演出は opacity のみ）
   ============================================================ */
.price-grid{ margin-top:56px; display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,4vw,56px); align-items:stretch; }
.price-card{
  border:1px solid var(--line); border-radius:var(--radius-card);
  padding:32px 32px 36px; transition:border-color .4s;  /* M-5 */
}
.price-card:hover{ border-color:var(--ink); }
.price-card--premium{ border-color:var(--coral); }
.price-card--premium:hover{ border-color:var(--coral); }
.price-card__name{ font-size:16px; font-weight:600; }
.price-card__price{ margin-top:6px; font-size:22px; font-weight:600; letter-spacing:.01em; }
.price-card__price small{ font-size:13px; font-weight:400; color:var(--sub); }
.price-card--premium .price-card__price{ color:var(--coral); }
.price-card hr{ border:0; border-top:1px solid var(--line); margin:22px 0; }
.price-card ul{ display:grid; gap:10px; }
.price-card li{ display:flex; align-items:flex-start; gap:10px; font-size:var(--fs-body); }
.price-card li svg{ width:18px; height:18px; flex:none; margin-top:5px; }
.price-card__pre{ font-size:var(--fs-body); margin-bottom:14px; }
.price-card__note{ margin-top:20px; font-size:var(--fs-small); color:var(--sub); }
.price-notes{ margin-top:44px; display:grid; gap:8px; max-width:46rem; }
.price-notes li{ font-size:var(--fs-small); line-height:1.9; color:var(--sub); padding-left:1em; text-indent:-1em; }
.price-notes li::before{ content:"・"; }
.pricing__badge{ margin-top:32px; }
.pricing__badge img{ height:40px; width:auto; }
@media (max-width:767px){
  .price-grid{ grid-template-columns:1fr; } /* 無料 → Premium の縦積み（順序固定） */
  .price-card{ padding:26px 24px 30px; }
}

/* ============================================================
   07 / こんな時に — usecase（04-design §4-8・装飾なし）
   ============================================================ */
.usecase-grid{ margin-top:56px; display:grid; grid-template-columns:repeat(3,1fr); gap:5%; }
.usecase-card{ border-top:1px solid var(--line); padding-top:26px; }
.usecase-card h3{ font-size:16px; font-weight:500; line-height:1.7; }
.usecase-card p{ margin-top:12px; font-size:var(--fs-body); }
@media (max-width:767px){
  .usecase-grid{ grid-template-columns:1fr; gap:0; }
  .usecase-card{ margin-top:32px; }
  .usecase-card:first-child{ margin-top:0; }
}

/* ============================================================
   最終CTA — final（04-design §4-9）
   ============================================================ */
#final{ text-align:center; padding-block:140px 0; }
#final .sec-lead{ margin-inline:auto; }
.final__cta{ margin-top:48px; display:flex; align-items:center; justify-content:center; gap:40px; }
.final__cta .store-badge img{ height:56px; }
.final__cta .qr__box img{ width:112px; height:112px; }
.final__cta .qr__cap{ color:var(--sub); }
.final__env{ margin-top:28px; font-size:var(--fs-small); color:var(--sub); }
@media (max-width:767px){
  #final{ padding-block:96px 0; }
  .final__cta .store-badge img{ height:52px; }
}

/* ============================================================
   FAQ（04-design §4-10・M-4）
   ============================================================ */
#faq .faq__inner{ max-width:720px; margin-inline:auto; }
#faq .sec-title{ text-align:center; }
.faq__list{ margin-top:48px; border-top:1px solid var(--line); }
.faq__list details{ border-bottom:1px solid var(--line); }
.faq__list summary{
  list-style:none; cursor:pointer; position:relative;
  padding:20px 44px 20px 0; font-size:15px; font-weight:500; line-height:1.8;
}
.faq__list summary::-webkit-details-marker{ display:none; }
.faq__icon{ position:absolute; right:4px; top:50%; width:14px; height:14px; margin-top:-7px; transition:transform var(--dur-micro) var(--ease-out-quiet); }
.faq__icon::before,.faq__icon::after{
  content:""; position:absolute; background:var(--ink);
}
.faq__icon::before{ left:0; top:6px; width:14px; height:1.5px; }
.faq__icon::after{ left:6.25px; top:0; width:1.5px; height:14px; }
.faq__list details[open] .faq__icon{ transform:rotate(45deg); }
.faq__list details::details-content{
  height:0; overflow:clip; transition:height var(--dur-micro) var(--ease-out-quiet), content-visibility var(--dur-micro) allow-discrete;
}
.faq__list details[open]::details-content{ height:auto; }
.faq__a{ padding:0 0 24px; font-size:var(--fs-body); color:var(--sub); max-width:40em; }

/* ============================================================
   フッター（04-design §4-11）
   ============================================================ */
#site-footer{ margin-top:var(--sec-gap); border-top:1px solid var(--line); padding-top:56px; overflow:hidden; }
.footer__tagline{ font-size:15px; font-weight:500; }
.footer__grid{ margin-top:40px; display:grid; grid-template-columns:1fr auto; gap:48px; align-items:start; }
.footer__legal{ font-size:var(--fs-small); color:var(--sub); max-width:34rem; }
.footer__legal p + p{ margin-top:10px; }
.footer__links{ display:grid; gap:8px; font-size:var(--fs-body); justify-items:start; }
.footer__links a, .u-link{
  background:linear-gradient(currentColor,currentColor) no-repeat 0 100% / 0 1px;
  transition:background-size var(--dur-micro) var(--ease-out-quiet);
  padding-bottom:2px;
}
.footer__links a:hover, .u-link:hover{ background-size:100% 1px; } /* M-3 */
.footer__copy{ margin-top:48px; font-size:var(--fs-small); color:var(--sub); }
.footer__mark{
  margin-top:40px; font-size:clamp(56px,13vw,190px); font-weight:700; line-height:.82;
  letter-spacing:.01em; color:var(--line); text-align:center; white-space:nowrap;
  transform:translateY(8%); user-select:none;
}
@media (max-width:767px){
  .footer__grid{ grid-template-columns:1fr; gap:32px; }
}

/* ============================================================
   演出拡張（フェーズ5追加要望「粋なJS演出」。実体は js/fx.js）
   ============================================================ */

/* Hero H1 の行リビール（P1 昇格。02-effects §1-2） */
.hero__title .nobr{ overflow:hidden; vertical-align:bottom; }
@keyframes rise{ from{ transform:translateY(112%); } to{ transform:none; } }
html.js .hero__title .rise{
  display:inline-block;
  transform:translateY(112%);
  animation:rise 1.1s var(--ease-out-quiet) calc(.15s + var(--rl,0) * .12s) forwards;
}

/* Hero 背景のカーソル連動ドリフト（PC・fine pointer のみ。JS が transform を更新） */
@media (min-width:768px) and (hover:hover) and (pointer:fine){
  .hero__poster img{ transition:transform 1.2s var(--ease-out-quiet); }
}

/* 実機スクリーンショットのホバーチルト（PC のみ。JS が transform を更新） */
@media (min-width:768px) and (hover:hover) and (pointer:fine){
  .device-shot img, .review__shots{ transition:transform .5s var(--ease-out-quiet); }
}

/* インタラクティブ・パターンロック（なぞって解錠） */
.pattern-lock{ touch-action:none; cursor:pointer; }
.pl-user{ stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.pattern-lock .pl-dot--user{ fill:currentColor; }
.pl-demo.user-mode .pl-trace{ opacity:0; }
.pl-demo.user-mode .pl-dot--on:not(.pl-dot--user){ fill:transparent; }
.pl-demo.user-mode.play .pl-card__inner{ transition-delay:.15s, .15s; } /* なぞり解錠は即時 */
@media (max-width:767px){
  .pl-demo.user-mode.play .pl-cover{ transition-delay:.15s; }
}
html.js .pl-demo.user-mode .pl-replay{ transition-delay:.8s; }
.pl-hint{ font-size:12px; color:var(--gray); }
html:not(.js) .pl-hint{ display:none; }

/* 写真の微ドリフト（P2 昇格。CSS Scroll-driven Animations・非対応環境は静止で完成） */
@media (min-width:768px) and (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    @keyframes drift{ from{ transform:translateY(3.5%); } to{ transform:translateY(-3.5%); } }
    .photo-chips img, .compare__item:not(.device-shot) img{ animation:drift linear both; animation-timeline:view(); }
  }
}

/* フッターワードマークの letter-spacing 収束（P2 昇格・PC のみ） */
@media (min-width:768px){
  html.js .footer__mark[data-reveal]{
    letter-spacing:.06em;
    transition:opacity var(--dur-hero) var(--ease-out-quiet),
               letter-spacing var(--dur-hero) var(--ease-out-quiet);
  }
  html.js .footer__mark[data-reveal].is-in{ letter-spacing:.01em; }
}

/* M-6: アバター hover（P2 昇格・タップ環境では何もしない） */
@media (hover:hover) and (pointer:fine){
  .ptl__avatar img{ transition:transform var(--dur-micro) var(--ease-out-quiet); }
  .ptl__avatar:hover img{ transform:scale(1.04); }
}

/* イースターエッグ: フッターの「今日のしおり」 */
.egg{
  max-width:340px; margin:56px auto -8px; text-align:left;
  background:var(--paper); border:1px solid var(--line); border-radius:22px;
  padding:18px 22px 20px;
  opacity:0; transform:translateY(8px); pointer-events:none;
  transition:opacity .8s var(--ease-out-quiet), transform .8s var(--ease-out-quiet);
}
.egg.show{ opacity:1; transform:none; }
.egg__title{ font-family:var(--font-serif); font-size:17px; font-weight:500; line-height:1.5; margin-top:8px; }
.egg__sub{ font-size:12px; color:var(--sub); margin-top:6px; }
.footer__mark{ cursor:default; }

/* 控えめな選択色（ブランドの暗色） */
::selection{ background:var(--hero-dark); color:#fff; }

/* ============================================================
   reduced-motion: 全演出を無効化し完成状態を表示（02-effects §0-1）
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  html.js [data-reveal],
  html.js [data-hero-seq],
  html.js .ptl .ptl__avatar, html.js .ptl .ptl__name,
  html.js .ptl .ptl__card, html.js .ptl .ptl__count{
    opacity:1 !important; transform:none !important; transition:none !important; animation:none !important;
  }
  html.js [data-reveal] .serif-em{ opacity:1 !important; transition:none !important; }
  html.js .ptl .ptl__line{ transform:scaleY(1) !important; transition:none !important; }
  .hero__scroll::before{ animation:none !important; transform:scaleY(1); }
  /* 仕掛け1は解錠済み静止（パターン完成図） */
  html.js .pl-demo:not(.play) .pl-trace{ stroke-dashoffset:0 !important; }
  html.js .pl-demo:not(.play) .pl-dot--on{ fill:currentColor !important; }
  html.js .pl-demo:not(.play) .pl-card__inner{ filter:none !important; opacity:1 !important; }
  html.js .pl-demo:not(.play) .pl-cover{ opacity:0 !important; }
  .pl-replay{ display:none !important; }
  .review__shots img{ transition:opacity .01s !important; transform:none !important; }
  .faq__list details::details-content{ transition:none !important; }
  .header-pill{ transition:opacity .01s !important; transform:none !important; }
  html.js .hero__title .rise{ animation:none !important; transform:none !important; }
  html.js .footer__mark[data-reveal]{ letter-spacing:.01em !important; transition:none !important; }
  .egg{ transition:none !important; transform:none !important; }
  .ptl__avatar img{ transition:none !important; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   モーション強化（改訂2。実体は js/motion.js — html.motion 配下）
   イントロだけは CSS 単独で完結（JS 失敗時も必ず開く）
   ============================================================ */

/* ---- 改2-1. オープニングシーケンス（ワードマーク→カーテンリフト） ---- */
html:not(.js) .intro{ display:none; }
.intro{
  position:fixed; inset:0; z-index:200; background:var(--hero-dark);
  display:grid; place-items:center; pointer-events:none;
  animation:intro-lift .9s cubic-bezier(.7,0,.18,1) 1.25s forwards;
}
.intro__mark{
  display:flex; overflow:hidden; color:#fff;
  font-family:"Avenir Next","AvenirNext-Bold",Montserrat,"Helvetica Neue",sans-serif;
  font-weight:700; font-size:clamp(30px, 4.2vw, 46px); letter-spacing:.03em; line-height:1.15;
}
.intro__mark span{
  display:inline-block; opacity:0; transform:translateY(110%);
  animation:intro-ch .75s var(--ease-out-quiet) calc(.12s + var(--i,0) * .05s) forwards;
}
@keyframes intro-ch{ to{ opacity:1; transform:none; } }
@keyframes intro-lift{ to{ transform:translateY(-100%); visibility:hidden; } }
/* Hero の出現シーケンスをカーテンが開くタイミングまで待たせる */
html.js{ --intro-offset:1.1s; }
html.js [data-hero-seq]{ animation-delay:calc(var(--d,0s) + var(--intro-offset,0s)); }
html.js .hero__title .rise{ animation-delay:calc(.15s + var(--rl,0) * .12s + var(--intro-offset,0s)); }

/* ---- 改2-2. Hero 実機画面の3D立ち上がり入場 ---- */
@keyframes hero-phone-in{
  from{ opacity:0; transform:perspective(1100px) rotateY(-18deg) rotateX(4deg) translateY(32px); }
  to{ opacity:1; transform:none; }
}
html.motion .hero__phone[data-hero-seq]{ animation-name:hero-phone-in; animation-duration:1.7s; }

/* ---- 改2-3. Hero「夕方の光の粒」canvas（PC・生成/駆動は motion.js） ---- */
.hero-dust{ position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }

/* ---- 改2-4. 見出しのスプリットテキストリビール ---- */
html.motion .sec-title.split{ opacity:1 !important; transform:none !important; }
html.motion .sec-title.split .wd{ display:inline-block; white-space:nowrap; } /* 「、」「。」単位で禁則を維持 */
html.motion .sec-title.split .ch{
  display:inline-block; opacity:0; transform:translateY(.75em);
  transition:opacity .7s var(--ease-out-quiet), transform .9s var(--ease-out-quiet);
  transition-delay:calc(var(--ci,0) * .03s);
}
html.motion .sec-title.split.is-in .ch{ opacity:1; transform:none; }

/* ---- 改2-5. 実機スクショのワイプリビール（下から立ち上がる clip-path） ---- */
html.motion [data-reveal] .device-shot img,
html.motion figure.device-shot[data-reveal] img,
html.motion [data-reveal] .compare__item img{
  clip-path:inset(100% 0 0 0);
  transition:clip-path 1.1s var(--ease-out-quiet), transform .5s var(--ease-out-quiet);
}
html.motion [data-reveal].is-in .device-shot img,
html.motion figure.device-shot[data-reveal].is-in img,
html.motion [data-reveal].is-in .compare__item img{ clip-path:inset(0 0 0 0); }

/* ---- 改2-6. 「使い方3ステップ」sticky 横スクロールストーリーテリング（PC） ---- */
@media (min-width:768px){
  html.motion #howto{ height:340vh; }
  html.motion #howto .container{
    position:sticky; top:0; height:100vh; max-width:none;
    display:flex; flex-direction:column; justify-content:center; overflow:hidden;
  }
  html.motion #howto .sec-label,
  html.motion #howto .sec-title,
  html.motion #howto .howto-cap{ width:100%; max-width:var(--content-max); margin-inline:auto; }
  html.motion #howto .howto-grid{
    display:flex; align-items:flex-start; gap:9vw; width:max-content;
    margin-top:clamp(28px, 4vh, 56px);
    margin-left:max(0px, calc((100vw - var(--content-max)) / 2 - var(--inner)));
    padding-inline-end:16vw;
    will-change:transform;
  }
  /* 広い画面でも横行程が痩せないよう上限を 640px に（2250px 幅で行程 900px 超を確保） */
  html.motion #howto .howto-step{ position:relative; width:clamp(420px, 40vw, 640px); flex:none; }
  html.motion #howto .howto-step .device-shot img{ max-width:340px; width:auto; max-height:52vh; }
  html.motion #howto .howto-step__no{
    position:absolute; top:-.28em; left:-.1em; z-index:-1; margin:0;
    font-size:clamp(96px, 10vw, 150px); line-height:1; letter-spacing:0;
    color:var(--line);
  }
  @supports (-webkit-text-stroke: 1px #000){
    html.motion #howto .howto-step__no{ color:transparent; -webkit-text-stroke:1.5px var(--line); }
  }
  html.motion #howto .howto-cap{ margin-top:clamp(20px, 3vh, 40px); }
}

/* ---- 改2-7. カスタムカーソル + マグネティックCTA（PC・fine pointer） ---- */
@media (min-width:768px) and (hover:hover) and (pointer:fine){
  html.motion.cur-on, html.motion.cur-on *{ cursor:none !important; }
}
/* dot / ring / label は body 直下（blend 孤立を避けるためラッパーなし） */
.cur-dot, .cur-ring, .cur-lab{
  position:fixed; z-index:300; pointer-events:none;
  mix-blend-mode:difference; opacity:0; transition:opacity .3s;
}
.cur-dot.show, .cur-ring.show{ opacity:1; }
.cur-dot{ left:-3px; top:-3px; width:6px; height:6px; border-radius:50%; background:#fff; }
.cur-dot.dim{ opacity:0 !important; } /* ラベル表示中はドットを消して可読性を確保 */
.cur-ring{
  left:-44px; top:-44px; width:88px; height:88px; border-radius:50%;
  border:1.5px solid #fff; transition:opacity .3s, background-color .35s var(--ease-out-quiet);
}
.cur-ring--fill{ background-color:#fff; }
.cur-lab{
  left:-44px; top:-44px; width:88px; height:88px; display:grid; place-items:center;
  font-size:13px; font-weight:500; letter-spacing:.1em; color:#fff; user-select:none;
}
.cur-lab.show-label.show{ opacity:1; }
.mag{ transition:transform .4s var(--ease-out-quiet); }
.header-pill.mag{ transition:opacity var(--dur-micro) var(--ease-out-quiet),
                  transform .35s var(--ease-out-quiet), background var(--dur-micro); }

/* ---- 改2-8. スクロールインクライン（PC・difference で両地色に適応） ---- */
.scroll-ink{
  position:fixed; left:0; top:0; width:2px; height:100%; z-index:150;
  pointer-events:none; background:#fff; mix-blend-mode:difference;
  transform:scaleY(0); transform-origin:top;
}
@media (max-width:767px){ .scroll-ink{ display:none; } }

/* ---- 改2-9. フッターワードマーク: 文字の立ち上がり + カーソル追従リフト ---- */
html.motion .footer__mark span{
  display:inline-block; opacity:0; transform:translateY(60%);
  transition:opacity .9s var(--ease-out-quiet) calc(var(--i,0) * .06s),
             transform 1.1s var(--ease-out-quiet) calc(var(--i,0) * .06s);
}
html.motion .footer__mark.is-in span{ opacity:1; transform:none; }
html.motion .footer__mark.mark-live span{
  transition:transform .5s var(--ease-out-quiet), opacity .9s var(--ease-out-quiet);
}
html.motion .footer__mark{ cursor:default; }

/* ---- 改2-R. reduced-motion: 改訂2の演出は起動自体しないが、CSS 側も防御 ---- */
@media (prefers-reduced-motion: reduce){
  .intro{ display:none !important; }
  html.js{ --intro-offset:0s; }
  .scroll-ink, .cur-dot, .cur-ring, .cur-lab, .hero-dust{ display:none !important; }
}

/* ============================================================
   SP再設計（改訂3。04-design.md「改訂3: SPデザイン再設計」）
   375px を一級市民として構図から再設計。すべて max-width:767px
   配下 — PC(≥768px) のデザイン・演出には一切影響しない。
   ============================================================ */
@media (max-width:767px){

  /* ---- 改3-1. Hero: 9:16 写真を「見せる」構図 ----
     フラット暗幕(0.6)をやめ、上下グラデーションスクリムに。
     上部（テキスト帯・写真は元々ほぼ黒い壁面）は濃く可読性を確保し、
     中央〜下部のコーヒーカップと湯気を見せる。実機画面は右下から
     下端クロップで「のぞかせ」、続きが下にあることを構図で示す */
  .hero__scrim{
    background:linear-gradient(180deg,
      rgba(14,17,20,.84) 0%,
      rgba(14,17,20,.62) 32%,
      rgba(14,17,20,.18) 58%,
      rgba(14,17,20,.06) 74%,
      rgba(14,17,20,.50) 100%);
  }
  .hero__content{
    display:flex; flex-direction:column; align-items:stretch;
    min-height:100svh;
    padding-top:calc(56px + 4svh); padding-bottom:0;
  }
  .hero__copy{ text-align:left; }
  .hero__title{ font-size:clamp(28px, 8.7vw, 40px); line-height:1.38; }
  .hero__sub{ margin-top:18px; font-size:14px; line-height:1.9; }
  .hero__cta{ margin-top:26px; justify-content:flex-start; }
  .hero__store{ align-items:flex-start; }
  .hero__free{ font-size:12px; }
  .hero__phone{
    margin-top:auto; padding-top:20px; gap:10px;
    align-self:flex-end; margin-right:-2px;
    margin-bottom:clamp(-120px, -23vw, -70px); /* 下端クロップ（#hero overflow:hidden） */
  }
  .hero__phone img{ width:min(58vw, 235px); }
  .hero__phone figcaption{ order:-1; } /* キャプション（架空データ開示）はクロップされない位置へ */
  .hero__phone-cap{ text-align:right; max-width:17em; margin-right:2px; }
  .hero__scroll{ display:none; } /* のぞく実機画面自体がスクロールの合図になる */

  /* ---- 改3-2. 使い方: 横スワイプカルーセル（scroll-snap・JS 不要で成立） ---- */
  #howto .howto-grid{
    display:flex; gap:14px; margin-top:36px;
    margin-inline:calc(-1 * var(--inner));  /* コンテナを破ってフルブリード */
    padding-inline:var(--inner);
    padding-block:26px 8px;                 /* 骨格数字のはみ出し分の余白 */
    overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    scroll-padding-inline-start:var(--inner);
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  #howto .howto-grid::-webkit-scrollbar{ display:none; }
  .howto-step{
    position:relative; flex:none; width:min(72vw, 285px); margin-top:0;
    scroll-snap-align:start;                /* 端で次パネルが peek し、スワイプ可能と分かる */
    background:#fff; border:1px solid var(--line); border-radius:20px;
    padding:30px 18px 26px;
  }
  .howto-step__no{
    position:absolute; top:-16px; left:6px; z-index:0; margin:0;
    font-size:clamp(84px, 25vw, 104px); line-height:1; letter-spacing:0;
    color:var(--line);
  }
  @supports (-webkit-text-stroke: 1px #000){
    .howto-step__no{
      color:transparent; -webkit-text-stroke:1.5px var(--line);
      transition:-webkit-text-stroke-color .5s var(--ease-out-quiet);
    }
  }
  .howto-step .device-shot{ position:relative; z-index:1; }
  .howto-step .device-shot img{ max-width:min(56vw, 216px); }
  .howto-step__title{ margin-top:18px; }
  .howto-cap{ margin-top:18px; }
  /* ドット（motion.js が生成。無 JS / reduced-motion では存在しない） */
  .howto-dots{ display:flex; justify-content:center; gap:8px; margin-top:22px; }
  .howto-dots span{
    width:6px; height:6px; border-radius:999px; background:var(--line);
    transition:background .3s, width .3s var(--ease-out-quiet);
  }
  .howto-dots span.is-active{ width:20px; background:var(--ink); }
  /* パネル切替連動（motion.js が .is-cur を付与）: 非アクティブは静かに退く */
  html.motion .howto-step.is-in{ transition-delay:0s; transition-duration:.5s; }
  html.motion .howto-step.is-in:not(.is-cur){ opacity:.55; transform:scale(.96); }
  html.motion .howto-step.is-cur .howto-step__no{ -webkit-text-stroke-color:rgba(10,10,10,.38); }

  /* ---- 改3-3. セクション背景のリズム（白 / 紙色 / ダークの交互） ---- */
  #howto, #people, #features, #usecase{
    background:var(--paper); padding-block:64px 76px;
  }
  #final{
    background:var(--hero-dark); color:#fff;
    padding-block:88px 96px;
  }
  #final .sec-lead{ color:rgba(255,255,255,.88); }
  .final__env{ color:rgba(255,255,255,.6); }
  #final :focus-visible{ outline-color:#fff; }

  /* ---- 改3-4. 実機スクショを幅いっぱい近くまで大きく ---- */
  .people__figure img{ max-width:min(80vw, 330px); }
  .memory__figure img{ max-width:min(80vw, 330px); }
  .review__step-shot img{ width:min(78vw, 320px); }
  .compare .device-shot img{ max-width:min(72vw, 295px); }
  .pl-shots .device-shot img{ max-width:min(64vw, 245px); }
  /* problem: カメラロール写真はフルブリードで「写真」を主役に */
  .compare__item:not(.device-shot){ margin-inline:calc(-1 * var(--inner)); }
  .compare__item:not(.device-shot) img{ max-width:none; width:100%; aspect-ratio:4/3; border-radius:0; }
  .compare__item:not(.device-shot) figcaption{ padding-inline:var(--inner); }
  .compare .device-shot{ margin-top:36px; }

  /* ---- 改3-5. フッター: SP でも巨大ワードマーク + リンク2カラム ---- */
  .footer__links{
    grid-template-columns:1fr 1fr; column-gap:20px; row-gap:0;
    justify-items:stretch; border-top:1px solid var(--line);
  }
  .footer__links a{
    padding:13px 0 12px; border-bottom:1px solid var(--line); font-size:13px;
  }
  .footer__mark{
    font-size:17.5vw; margin-top:56px; letter-spacing:.005em;
    /* SP はドキュメント最下端に張り付くと reveal 用 IO（rootMargin -10%）の
       死角に入るため、下端クロップをやめて 36px 浮かせる */
    margin-bottom:36px; transform:none;
  }
}

/* ---- 改3-6. タップフィードバック（hover のない SP を補う。PC でも害なし） ---- */
@media (prefers-reduced-motion: no-preference){
  .store-badge{ transition:transform .3s var(--ease-out-quiet), opacity var(--dur-micro); }
  .store-badge:active{ transform:scale(.96); }
}

/* ============================================================
   改訂4: 実機スクショのライトボックス（実体は js/fx.js）
   カーソル「見る」ラベルの対象（.device-shot / .review__shots）と
   SP の .review__step-shot をクリック/タップで拡大表示する
   ============================================================ */
.lb{
  position:fixed; inset:0; z-index:240; /* header(100)/intro(200) の上・カスタムカーソル(300) の下 */
  background:rgba(14,17,20,.94);
  display:grid; place-items:center; padding:5vh 6vw;
  opacity:0; pointer-events:none; cursor:zoom-out;
  transition:opacity .4s var(--ease-out-quiet);
}
.lb.show{ opacity:1; pointer-events:auto; }
.lb__fig{ margin:0; display:flex; flex-direction:column; align-items:center; gap:16px; max-width:100%; }
.lb__img{
  max-width:min(88vw, 520px); max-height:76vh; width:auto; height:auto;
  transform:translateY(14px) scale(.97);
  transition:transform .5s var(--ease-out-quiet);
}
.lb.show .lb__img{ transform:none; }
.lb__img--plain{ border-radius:18px; box-shadow:0 32px 80px rgba(0,0,0,.55); } /* 枠なしスクショのみ角丸+影 */
.lb__cap{ font-size:12px; line-height:1.8; color:rgba(255,255,255,.7); text-align:center; max-width:32em; }
.lb__close{
  position:absolute; top:18px; right:18px; width:44px; height:44px;
  background:none; border:0; cursor:pointer; padding:0;
}
.lb__close::before,.lb__close::after{
  content:""; position:absolute; left:50%; top:50%; width:22px; height:1.5px;
  background:#fff; transform-origin:center;
}
.lb__close::before{ transform:translate(-50%,-50%) rotate(45deg); }
.lb__close::after{ transform:translate(-50%,-50%) rotate(-45deg); }
.lb__close:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
html.lb-open{ overflow:hidden; } /* 背景スクロールロック */
/* 「見る」カーソルが出ない環境（reduced-motion の PC 等）でもクリック可能と分かる標準カーソル */
.device-shot img, .review__shots img, .review__step-shot img{ cursor:zoom-in; }
@media (prefers-reduced-motion: reduce){
  .lb, .lb__img{ transition:none !important; }
  .lb__img{ transform:none !important; }
}
