/* ============================================================
   CONTACT 紹介サイト（スマホ版が基本。幅900px以上の配置は、末尾の「PC版」）
   面・線・文字の色はアプリ（public/tokens.css）と同じ値。別のサイトとして公開するので
   アプリのファイルを読めず、値を写して持つ。アプリ側を変えたら、ここも変える。
   色はここの :root の名前札だけで書き、下の規則に値を直接書かない。文字サイズは下の8段階だけを使う。
   2026-09-16 までは面と線がアプリより一段暗く（カード #101014 など）、見分けにくかったのでそろえた。
   ============================================================ */

:root {
  /* 面 — 役割で4段。地 → カード → カードの中の一段 → 押せる面。値はアプリの --ink／--panel／--panel-2／--panel-3 */
  --ink:       #08080A;
  --panel:     #17171B;  /* カード（背景との差 1.12） */
  --panel-2:   #212128;  /* カードの中の一段 */
  --panel-3:   #2E2E37;
  --ink-2:     #17171B;  /* 交互の帯（LP だけの役割。アプリのカードと同じ色） */
  --strip:     #17171B;
  /* 交互の帯（.section.alt など）の上では、カードを一段ずらして帯と見分ける */
  --panel-alt:   #212128;
  --panel-2-alt: #2E2E37;

  /* 線。値はアプリの --line-soft／--line */
  --rule:      #26262D;  /* 行の区切り（背景との差 1.33） */
  --line-soft: #26262D;
  --line:      #3A3A44;

  /* 文字（背景 --ink に対するコントラスト比） */
  --fg:        #F2EFE9;  /* 見出し・値      17.4:1 */
  --fg-label:  #CBC5BA;  /* 項目名          11.7:1 */
  --fg-dim:    #A8A196;  /* 本文             7.8:1 */
  --fg-note:   #8E887D;  /* 注記・英字見出し 5.6:1（旧 #7E786D 4.6:1 と #5A554E 2.7:1 を置き換え） */

  --amber:      #F0AE4A;
  --amber-deep: #C68C2E;
  --amber-wash: rgba(240, 174, 74, 0.15);
  --amber-tint: rgba(240, 174, 74, 0.05);  /* おすすめの料金プランの地（選択中より薄く） */
  --on-amber:   #08080A;                   /* アンバーの面の上に置く文字 */

  /* 影 */
  --shadow-stack: rgba(0, 0, 0, 0.7);      /* ヒーローの上に重なる本文の、上向きの影 */
  --shadow-cta:   rgba(0, 0, 0, 0.55);     /* 画面下に浮かぶボタンの影 */
  --ring-cta:     rgba(8, 8, 10, 0.6);     /* 同じボタンの細い縁取り */

  /* 文字サイズは8段階（旧：10〜34px の11種類） */
  --fs-eyebrow: 12px;  /* 英字の小見出し・Exifの項目名・STEP */
  --fs-note:    13px;  /* 注記（※）・Exifの値・凡例 */
  --fs-card:    15px;  /* カード内の本文・FAQの回答 */
  --fs-body:    16px;  /* 本文 */
  --fs-lead:    17px;  /* 箇条・質問・補足の見出し */
  --fs-h3:      19px;  /* カードの見出し */
  --fs-h2:      26px;  /* 節の見出し */
  --fs-h1:      30px;  /* ヒーローの見出し */

  --lh-body: 1.85;
  --lh-head: 1.5;

  --pad-x: 24px;
  --header-h: 56px;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --jp:   'IBM Plex Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', system-ui, sans-serif;
}

/* ── 白（2026-09-24 追加）。theme.js が <html data-theme="light"> を付けたときだけ効く。
   値はアプリ（public/tokens.css の :root[data-theme="light"]）と同じ。面と線は iPhone の「設定」アプリに合わせ、
   地は薄い灰色・カードは白。数字は地（--ink）に対するコントラスト比 */
:root[data-theme="light"] {
  color-scheme: light;
  --ink:       #F2F2F7;
  --panel:     #FFFFFF;
  --panel-2:   #EFEFF4;
  --panel-3:   #E5E5EA;
  --ink-2:     #E9E9EE;  /* 交互の帯は、地より一段暗くして区切りを見せる */
  --strip:     #E9E9EE;
  --panel-alt:   #FFFFFF;
  --panel-2-alt: #EFEFF4;

  --rule:      #DCDCE0;
  --line-soft: #DCDCE0;
  --line:      #C6C6C8;

  --fg:        #1A1A1A;  /* 15.6:1 */
  --fg-label:  #3D3D3D;  /*  9.7:1 */
  --fg-dim:    #666666;  /*  5.1:1 */
  --fg-note:   #666666;  /*  5.1:1（帯の上でも 4.7:1）。--fg-dim と同じ値。一段薄くすると帯の上で基準に届かない */

  --amber:      #955806;
  --amber-deep: #7E4C0A;
  --amber-wash: rgba(149, 88, 6, 0.08);
  --amber-tint: rgba(149, 88, 6, 0.04);
  --on-amber:   #FFFFFF;

  --shadow-stack: rgba(0, 0, 0, 0.08);
  --shadow-cta:   rgba(0, 0, 0, 0.18);
  --ring-cta:     rgba(0, 0, 0, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--jp);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.mono { font-family: var(--mono); }

/* スマホ幅の列。幅900px以上では、末尾の「PC版」が幅の上限を外す */
.page { max-width: 480px; margin: 0 auto; background: var(--ink); overflow-x: clip; }

/* ---------- ヘッダー ---------- */
/* スクロールしても画面の上端に残す */
.header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}
.logo { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 0.22em; color: var(--fg); }

/* ロゴの横の札（日本語版は「PUBLIC BETA」、英語版は「COMING SOON」） */
.brand { display: flex; align-items: center; gap: 12px; }
.soon { font-family: var(--mono); font-size: var(--fs-eyebrow); letter-spacing: 0.12em; line-height: 1; color: var(--amber); border: 1px solid var(--amber-deep); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
/* 画面の色（黒⇔白）の切り替え。押すと theme.js が色を入れ替えて覚える。
   margin-left: auto で右に寄せ、メニュー（または「トップへ戻る」）の左隣に置く */
.theme-btn {
  width: 44px; height: 44px; margin-left: auto; margin-right: 4px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--fg-dim);
}
.menu-btn {
  width: 44px; height: 44px; margin-right: -11px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--fg-dim); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--ink); border-bottom: 1px solid var(--line-soft);
  padding: 8px var(--pad-x) 16px;
}
.menu a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: var(--fs-lead); color: var(--fg);
}
.menu a:last-child { border-bottom: 0; }
.menu a .mono { font-size: var(--fs-eyebrow); letter-spacing: 0.16em; color: var(--fg-note); }

/* ---------- 共通の部品 ---------- */
.eyebrow { font-family: var(--mono); font-size: var(--fs-eyebrow); letter-spacing: 0.2em; line-height: 1.4; color: var(--amber-deep); }
.eyebrow.muted { color: var(--fg-note); }
.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-head); color: var(--fg); }
.body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--fg-dim); }
/* 作り手について（特徴03の文の下）。本文より一段控えめにし、線で区切る */
.maker { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: var(--fs-note); line-height: 1.8; color: var(--fg-dim); }
.maker-label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: var(--fs-eyebrow); letter-spacing: 0.2em; color: var(--fg-note); }
.note { font-size: var(--fs-note); line-height: 1.8; color: var(--fg-note); }
.em { color: var(--fg); }

.section { display: flex; flex-direction: column; gap: 20px; padding: 64px var(--pad-x); border-top: 1px solid var(--rule); }
.section.alt { background: var(--ink-2); }
/* 帯の上では、カードを一段明るくして帯と見分ける */
.section.alt, .howto, .footer { --panel: var(--panel-alt); --panel-2: var(--panel-2-alt); }

.strip { background: var(--strip); padding: 8px 0; }
.strip > div { height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 13px, var(--strip) 13px 29px); border-radius: 2px; }

/* ---------- トップの特別扱い ----------
   トップ（.hero-pin）はその場に止め、2ページ目以降（.stack）が上に重なってせり上がる。
   --hero-top は main.js が入れる。トップが画面より高い機種（SE など）では、
   トップの下端が画面の下端に来たところで止まるよう、負の値になる */
.hero-pin { position: sticky; top: var(--hero-top, var(--header-h)); z-index: 1; }
.hero { transform-origin: 50% 0; will-change: transform, opacity; }
.stack {
  position: relative; z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--line-soft);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 40px var(--shadow-stack);
  overflow: hidden;
}
.footer { position: relative; z-index: 2; }

/* ---------- ① ヒーロー ----------
   ツールバーが出ている状態の画面の高さ（svh）からヘッダーと --peek を引いた高さ。
   余った高さはすべて写真に回す。--peek は、下に続くと分かるよう2ページ目の上端を覗かせる高さ。
   浮かせた「使ってみる」はトップでは出さない（main.js）ので、下に空きは取らない（2026-10-14） */
:root { --peek: 26px; }
.hero {
  min-height: calc(100vh - var(--header-h) - var(--peek));
  min-height: calc(100svh - var(--header-h) - var(--peek));
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px var(--pad-x);
}
/* 覗かせた2ページ目の上端に置く「↓」。下へ送り始めたら消す（main.js が .is-gone を付ける） */
.scroll-hint {
  position: absolute; top: 0; left: 50%; z-index: 1;
  width: 40px; height: var(--peek); margin-left: -20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-note); pointer-events: none;
  transition: opacity .2s;
}
.scroll-hint svg { width: 18px; height: 10px; animation: hint-nudge 2.4s ease-in-out infinite; }
.scroll-hint.is-gone { opacity: 0; }
@keyframes hint-nudge { 0%, 60%, 100% { transform: translateY(-1px); } 30% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } }
.hero h1 { font-size: clamp(26px, 7.6vw, var(--fs-h1)); font-weight: 600; line-height: 1.38; letter-spacing: 0.01em; }
.hero .sub { font-size: var(--fs-card); line-height: 1.6; color: var(--fg-dim); }

.hero-card {
  flex: 1 1 auto; margin: 4px 0 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--amber-deep); border-radius: 12px; background: var(--panel); overflow: hidden;
}
.hero-photo { flex: 1 1 auto; min-height: 120px; position: relative; background: var(--ink); border-bottom: 1px solid var(--line-soft); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

.exif-title { font-family: var(--mono); font-size: var(--fs-eyebrow); letter-spacing: 0.06em; line-height: 1.4; color: var(--amber); padding: 10px 14px 0; }
.exif { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; padding: 6px 14px 10px; }
.exif > div { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: baseline; }
.exif > .wide { grid-column: 1 / -1; }
.exif dt { font-family: var(--mono); font-size: var(--fs-eyebrow); color: var(--fg-note); line-height: 1.4; }
.exif dd { font-family: var(--mono); font-size: var(--fs-note); color: var(--fg); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- パブリックβの枠（料金の節） ---------- */
.campaign {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--amber-deep); border-radius: 10px; background: var(--amber-tint);
  padding: 9px 14px;
}
.campaign .label { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: 0.06em; line-height: 1.5; color: var(--amber); }
.campaign .text { font-size: var(--fs-card); font-weight: 500; line-height: 1.5; color: var(--fg); }
.campaign .free { color: var(--amber); }

/* ---------- フィルムとデジタルを繋ぐ ---------- */
.bridge { padding: 40px var(--pad-x) 56px; display: flex; flex-direction: column; gap: 18px; }
.bridge .lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.7; color: var(--fg-label); }
/* 「CONTACTなし／あり」の対比（2026-10-12）。iPhone の写真アプリの詳細に似せた板を2枚並べる。
   板の色はサイトの色ではなく iPhone の色（黒＝ダーク、白＝ライト）。「記録できる項目」の札（.chips）は FAQ へ移して外した */
.ba {
  --ios-card: #1C1C1E; --ios-sep: #38383A; --ios-fg: #FFFFFF; --ios-sub: #98989F;
  --ios-badge: #2C2C2E; --ios-badge-fg: #D1D1D6; --ios-map: #2A2A2C; --ios-road: #3F3F44; --ios-park: #24382A; --ios-water: #1D3345;
  display: flex; flex-direction: column; gap: 14px; margin-top: 6px;
}
:root[data-theme="light"] .ba {
  --ios-card: #FFFFFF; --ios-sep: #DCDCE2; --ios-fg: #000000; --ios-sub: #6E6E73;
  --ios-badge: #E9E9EE; --ios-badge-fg: #3C3C43; --ios-map: #EFEDE6; --ios-road: #FFFFFF; --ios-park: #CFE6C4; --ios-water: #B9DAF0;
}
.ba-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ba-label { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-lead); font-weight: 600; line-height: 1.4; color: var(--fg); }
.ba-label .mono { font-family: var(--mono); font-size: var(--fs-note); font-weight: 500; letter-spacing: 0.16em; color: var(--fg-label); }
.ba-item.after .ba-label, .ba-item.after .ba-label .mono { color: var(--amber); }
.ios { font-family: -apple-system, 'Hiragino Sans', system-ui, sans-serif; color: var(--ios-fg); display: flex; flex-direction: column; gap: 8px; }
.ios-card { border-radius: 14px; background: var(--ios-card); overflow: hidden; }
.ba-item.after .ios-card { box-shadow: 0 0 0 1px var(--amber-deep); }
.ios-row { position: relative; padding: 10px 14px; border-bottom: 1px solid var(--ios-sep); }
.ios-row:last-child { border-bottom: 0; }
.ios-row.ex { padding: 0; }
.ios-row .l1 { font-size: 15px; font-weight: 500; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-row .l2 { font-size: 13px; line-height: 1.5; color: var(--ios-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-item.after .ios-row .l2.val { color: var(--ios-fg); }
.ios-row .badge { position: absolute; right: 14px; top: 11px; font-size: 11px; font-weight: 500; line-height: 1; background: var(--ios-badge); color: var(--ios-badge-fg); padding: 4px 8px; border-radius: 8px; }
.ios-ex { display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 0; }
.ios-ex span { font-size: 12px; line-height: 1.4; color: var(--ios-sub); text-align: center; border-left: 1px solid var(--ios-sep); white-space: nowrap; }
.ios-ex span:first-child { border-left: 0; }
.ba-item.after .ios-ex span { color: var(--ios-fg); }
/* 地図は「あり」の板の最下段に入れる（実際の写真アプリでは別の箱。「なし」の板と形をそろえるため。2026-10-12） */
.ios-map { position: relative; height: 96px; background: var(--ios-map); }
.ios-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ios-map .pin { position: absolute; left: 50%; top: 44%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); background: url(img/hero.jpg) 50% 60% / cover; }
/* 「なし」の板に付ける、困りごとの札。写真アプリの表示（JPEG の印など）と見分けがつくよう、サイトの文字の色で塗りつぶし、
   値の下の行に吹き出しの形で出す（2026-10-12。板の中の表示に見えたため） */
.ios-row .why { position: relative; display: block; width: fit-content; margin: 7px 0 2px; font-family: var(--jp); font-size: 12px; font-weight: 600; line-height: 1; color: var(--ink); background: var(--fg); padding: 6px 9px; border-radius: 6px; }
.ios-row .why::before { content: ""; position: absolute; left: 12px; top: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: var(--fg); }
.ios-row .why b { font-weight: 700; margin-right: 5px; }   /* 「違う・足りない」の印。絵文字の ❌ は色と形が端末で変わるので、記号の文字にする */

/* ---------- ② 使いかた（横スライド） ---------- */
.howto { padding: 64px 0 56px; background: var(--ink-2); display: flex; flex-direction: column; gap: 22px; }
.howto-head { display: flex; flex-direction: column; gap: 14px; padding: 0 var(--pad-x); }

.slider {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--pad-x);
  padding: 4px var(--pad-x);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 min(300px, calc(100% - 64px)); scroll-snap-align: start;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.slide-top { display: flex; align-items: baseline; justify-content: space-between; }
.slide-top .step { font-family: var(--mono); font-size: var(--fs-eyebrow); letter-spacing: 0.16em; color: var(--amber); }
.slide-top .of { font-family: var(--mono); font-size: var(--fs-eyebrow); color: var(--fg-note); }
.slide-shot { display: flex; justify-content: center; background: var(--ink); border-radius: 10px; padding: 18px 0; }
.slide-shot .phone { --sw: 170px; }

/* スマホの枠（自作。公式の端末画像は使わない）。Instagram の使い方リールの枠（business/sns/howto-board.html）と同じ比で、
   --sw（画面の幅）から縁・角・カメラの穴（ダイナミックアイランド）の大きさを決める。リールでは画面の幅 820 に対して
   縁 20・外の角 124・画面の角 104・穴 250×72（上から 24） */
.phone {
  --sw: 200px; --u: calc(var(--sw) / 820);
  position: relative; width: calc(var(--sw) + var(--u) * 40); padding: calc(var(--u) * 20); border-radius: calc(var(--u) * 124);
  background: #111113; box-shadow: 0 0 0 1px #3A3A3F, 0 calc(var(--u) * 30) calc(var(--u) * 80) rgba(60, 50, 30, .28);
}
/* Safari は角を丸めた箱の中の動画をはみ出させることがあるので、mask を付けて確実に切り抜く */
.phone-scr {
  position: relative; overflow: hidden; border-radius: calc(var(--u) * 104); background: var(--ink);
  -webkit-mask-image: -webkit-radial-gradient(white, black); isolation: isolate;
}
.phone-scr img, .phone-scr video { display: block; width: 100%; height: auto; }
.phone-scr::after {
  content: ''; position: absolute; left: 50%; top: calc(var(--u) * 24); width: calc(var(--u) * 250); height: calc(var(--u) * 72);
  margin-left: calc(var(--u) * -125); border-radius: calc(var(--u) * 40); background: #000; pointer-events: none;
}
.slide h3 { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-head); color: var(--fg); }
.slide p { font-size: var(--fs-card); line-height: 1.8; color: var(--fg-dim); }

/* 初めて画面に入ったとき、一度だけ左へ動いて戻る（横にスライドできる合図） */
@keyframes peek { 0% { transform: translateX(0); } 45% { transform: translateX(-56px); } 100% { transform: translateX(0); } }
.slider.peek .slide { animation: peek 1.1s cubic-bezier(.45, 0, .25, 1) 1; }
@media (prefers-reduced-motion: reduce) { .slider.peek .slide { animation: none; } }

.dots { display: flex; justify-content: center; align-items: center; gap: 6px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.dots button[aria-current="true"] { width: 20px; background: var(--amber); }

/* ---------- ③ 特徴 ---------- */
.sheet { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); padding: 18px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font-family: var(--mono); font-size: var(--fs-eyebrow); }
.sheet-head span:first-child { letter-spacing: 0.1em; color: var(--fg-label); }
.sheet-head span:last-child { color: var(--fg-note); }
.frames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 3px; }
.frames i, .legend i { display: block; aspect-ratio: 3 / 2; border-radius: 2px; background: var(--panel-2); border: 1px solid var(--panel-3); }
.frames i.on, .legend i.on { background: var(--amber-wash); border-color: var(--amber); }
.legend { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.legend li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-note); line-height: 1.5; color: var(--fg-label); }
.legend i { width: 18px; flex: 0 0 18px; }

/* アプリの画面の画像と動画は、白用（.for-light）と黒用（.for-dark）を並べ、今の画面の色の方だけ出す（2026-10-24）。
   出さない方は display: none なので、画像（loading="lazy"）も動画（preload="none"）も読み込まれない */
:root:not([data-theme="light"]) .for-light,
:root[data-theme="light"] .for-dark { display: none !important; }

/* 撮影画面の動画 */
.demo { display: flex; justify-content: center; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 24px 0; }
.demo .phone { --sw: 220px; }

/* 03 の Mac の画面（CONTACT LINK）。横長なので、枠の幅いっぱいに出す */
.wide-shot { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: var(--ink); }
.wide-shot img { display: block; width: 100%; height: auto; }

.points { border-top: 1px solid var(--line-soft); }
.points li { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-lead); font-weight: 500; line-height: 1.6; color: var(--fg); }
.points li .mono { font-size: var(--fs-eyebrow); color: var(--amber-deep); }

/* ---------- 価格（左に月額、右に年額） ---------- */
/* 料金の表の見出し。2026-10-04 まで注記の大きさ（13px）で、小さすぎた） */
.plans-title { font-size: var(--fs-lead); font-weight: 600; line-height: 1.6; color: var(--fg); margin-top: 16px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.plan {
  position: relative;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel);
  padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 8px;
}
.plan.featured { border-color: var(--amber-deep); background: var(--amber-tint); }
.plan .badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: var(--fs-eyebrow); font-weight: 500; line-height: 1; color: var(--on-amber); background: var(--amber); padding: 5px 8px; border-radius: 4px;
}
.plan .label { font-family: var(--mono); font-size: var(--fs-eyebrow); letter-spacing: 0.16em; color: var(--fg-note); }
.plan.featured .label { color: var(--amber-deep); }
.price { display: flex; align-items: flex-end; gap: 2px; white-space: nowrap; }
.price .num { font-family: var(--mono); font-size: clamp(24px, 7vw, 28px); font-weight: 500; line-height: 1.1; color: var(--fg); }
.price .per { font-size: var(--fs-note); line-height: 1.2; color: var(--fg-dim); }
/* 金額の横の「予定」。横幅に余裕がないので、／月・／年の上に重ねる */
.price .tbd { display: block; line-height: 1.3; }
.tbd { font-size: var(--fs-eyebrow); font-weight: 500; color: var(--amber-deep); }
.tbd.inline { margin-left: 6px; }
.plan .sub { font-size: var(--fs-note); line-height: 1.6; color: var(--fg-dim); flex: 1 1 auto; }
.btn {
  display: block; text-align: center; margin-top: 4px;
  font-size: var(--fs-card); font-weight: 500; line-height: 1; color: var(--fg);
  border: 1px solid var(--line); padding: 14px 4px; border-radius: 9px;
}
.btn.primary { color: var(--on-amber); background: var(--amber); border-color: var(--amber); font-weight: 600; }
.notes { display: flex; flex-direction: column; gap: 4px; }

/* ---------- ④ お使いになる前に ---------- */
.reqs { border-top: 1px solid var(--line-soft); }
.reqs li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.reqs h3 { font-size: var(--fs-lead); font-weight: 500; line-height: 1.6; color: var(--fg); }
.reqs p { font-size: var(--fs-card); line-height: 1.8; color: var(--fg-dim); }

.aside { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.aside h3 { font-size: var(--fs-lead); font-weight: 600; line-height: 1.6; color: var(--fg-label); }
.aside p { font-size: var(--fs-card); line-height: 1.8; color: var(--fg-dim); }

/* ---------- ⑤ FAQ ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq > div { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.faq dt { display: flex; gap: 12px; align-items: baseline; font-size: var(--fs-lead); font-weight: 500; line-height: 1.6; color: var(--fg); }
.faq dt .mono { font-size: var(--fs-card); font-weight: 600; color: var(--amber); }
.faq dd { font-size: var(--fs-card); line-height: 1.8; color: var(--fg-dim); padding-left: 24px; }

/* ---------- ⑥ フッター ---------- */
.footer { display: flex; flex-direction: column; gap: 20px; padding: 48px var(--pad-x) calc(112px + env(safe-area-inset-bottom, 0px)); background: var(--ink-2); border-top: 1px solid var(--rule); }
.footer .tag { font-size: var(--fs-note); color: var(--fg-note); margin-top: 4px; }
.footer ul { display: flex; flex-direction: column; gap: 4px; }
.footer ul a { display: block; padding: 6px 0; font-size: var(--fs-card); color: var(--fg-dim); }
.footer .legal { font-size: var(--fs-eyebrow); line-height: 1.8; color: var(--fg-note); padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---------- 画面下に浮かせて固定する「使ってみる」 ---------- */
/* 画面の下からの距離は「12px」と「ホームインジケーターの帯の高さ」の大きいほう。
   iOS 26 の Safari は bottom を浮いたバーの上端から測るので、バーから12px上になる。
   ホーム画面から開いたときや、バーが完全に引っ込むブラウザでは、帯のすぐ上になる */
.cta-wrap { position: fixed; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; justify-content: center; pointer-events: none; }
/* 料金の節（英語版はお知らせの節）が見えている間は、同じボタンが2つ並ばないよう隠す（main.js）。
   トップでも隠し、2ページ目がせり上がり始めたら出す（.is-cover。写真の場所を空けるため。2026-10-14） */
.cta-wrap { transition: opacity .2s, transform .2s; }
.cta-wrap.is-hidden, .cta-wrap.is-cover { opacity: 0; transform: translateY(12px); }
.cta-wrap.is-hidden .cta, .cta-wrap.is-cover .cta { pointer-events: none; }
.cta {
  pointer-events: auto;
  font-size: var(--fs-card); font-weight: 600; line-height: 1; color: var(--on-amber); background: var(--amber);
  padding: 16px 36px; border-radius: 999px;
  box-shadow: 0 8px 24px var(--shadow-cta), 0 0 0 1px var(--ring-cta);
}

/* ---------- 法務・お問い合わせのページ（privacy / terms / tokushoho / support） ---------- */
.header .back { font-size: var(--fs-note); color: var(--fg-dim); }
.doc { display: flex; flex-direction: column; gap: 20px; padding: 40px var(--pad-x) 64px; }
.doc .updated { font-size: var(--fs-note); color: var(--fg-note); }
.doc h2 { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-head); color: var(--fg); margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--rule); }
.doc h3 { font-size: var(--fs-lead); font-weight: 500; line-height: 1.6; color: var(--fg-label); margin-top: 4px; }
.doc p, .doc li { font-size: var(--fs-card); line-height: 1.85; color: var(--fg-dim); }
.doc ol, .doc ul { display: flex; flex-direction: column; gap: 6px; padding-left: 1.4em; }
.doc ol { list-style: decimal; }
.doc ul { list-style: disc; }
.doc .draft { font-size: var(--fs-note); line-height: 1.7; color: var(--on-amber); background: var(--amber); border-radius: 8px; padding: 10px 14px; }
.doc .btn { align-self: stretch; }
.doc strong { font-weight: 600; color: var(--fg); }
.doc .guide-answer { border-left: 2px solid var(--amber); padding-left: 14px; }
.doc .guide-table table { width: 100%; border-collapse: collapse; }
.doc .guide-table th, .doc .guide-table td { font-size: var(--fs-card); line-height: 1.7; text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.doc .guide-table th { font-weight: 500; color: var(--fg-label); width: 38%; }
.doc .guide-table td { color: var(--fg-dim); }
/* 特定商取引法に基づく表記の表 */
.spec { border-top: 1px solid var(--line-soft); }
.spec > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-size: var(--fs-note); font-weight: 500; color: var(--fg-label); }
.spec dd { font-size: var(--fs-card); line-height: 1.8; color: var(--fg-dim); }
.page-footer { padding-bottom: 48px; }

/* ---------- 英語版の Cookie の同意（analytics.js が出す。決めごと A6） ---------- */
/* 画面の下に重ねる。出ている間は浮かせたボタンを隠す（同じ場所に重なるため）。
   「Accept」と「Decline」は同じ大きさ・同じ見た目にする（どちらかへ誘導しない） */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: 0 8px 24px var(--shadow-cta);
}
.consent p { font-size: var(--fs-note); line-height: 1.7; color: var(--fg-dim); }
.consent a { color: var(--amber); }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-btns .btn { margin-top: 0; background: none; cursor: pointer; font-family: inherit; }
.consent-open .cta-wrap { opacity: 0; pointer-events: none; }
.consent-open .cta-wrap .cta { pointer-events: none; }
/* フッターの「Cookie settings」。リンクと同じ見た目のボタン */
.footer ul button { display: block; padding: 6px 0; font: inherit; font-size: var(--fs-card); color: var(--fg-dim); background: none; border: 0; cursor: pointer; text-align: left; }

/* ============================================================
   PC版（2026-10-03 追加）
   ページは1枚のまま、幅900px以上のときだけ配置を切り替える。文言は index.html の1か所。
   ・.copy は、PC で左右に分けるための囲み。スマホでは囲みが無いのと同じ扱い（display: contents）
   ・文字サイズは8段階のまま、PC 用の値に入れ替える
   ・--pad-x を「中身の幅が最大1080pxになる左右の余白」に入れ替えるので、各節は幅いっぱいの帯のまま中身だけ中央に寄る
   ・メニューを横に並べるのは幅1120px以上（900〜1119px は並びきらないので、三本線のまま）
   ・画面下に浮かせたボタンは出さず、ヘッダーのボタン（.header-cta）で代える
   ・料金の節は、マウスで操作する端末でだけ、ボタンの代わりに QR コード（.qr）を出す。
     PC でアプリを開くと CONTACT LINK へ移り、撮影記録が無い人は何もできないため（iPad の横向きなど、触って操作する端末はボタンのまま）
   ============================================================ */
.copy { display: contents; }
.header-cta, .qr { display: none; }

.qr { align-items: center; gap: 24px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); padding: 20px; }
.qr img { flex: 0 0 132px; width: 132px; height: 132px; border-radius: 8px; }
.qr .label { font-size: var(--fs-lead); font-weight: 600; line-height: 1.6; color: var(--fg); }
.qr .text { font-size: var(--fs-card); line-height: 1.8; color: var(--fg-dim); }
.qr .url { font-size: var(--fs-note); letter-spacing: 0.04em; color: var(--fg-note); margin-top: 6px; }

@media (min-width: 900px) {
  :root {
    --fs-eyebrow: 13px;
    --fs-note:    14px;
    --fs-card:    16px;
    --fs-body:    17px;
    --fs-lead:    19px;
    --fs-h3:      21px;
    --fs-h2:      34px;
    --fs-h1:      clamp(32px, 3.8vw, 48px);  /* ヒーローの左の列で「フィルムカメラの写真に」（11文字）が折れない大きさ */

    --pad-x:      max(48px, calc((100% - 1080px) / 2));  /* 中身は最大1080px */
    --pad-narrow: max(48px, calc((100% - 760px) / 2));   /* 文章だけの節・規約のページは最大760px */
    --header-h: 64px;
  }

  .page { max-width: none; }

  /* ---------- ヘッダー ---------- */
  .header-cta {
    display: block; order: 3; margin-left: 8px; white-space: nowrap;
    font-size: var(--fs-note); font-weight: 600; line-height: 1; color: var(--on-amber); background: var(--amber);
    padding: 11px 18px; border-radius: 999px;
  }
  .theme-btn { order: 1; }
  .menu-btn { order: 2; margin-right: 0; }
  /* 900〜1119px：三本線で開くメニューは、右寄せの小さな板にする */
  .menu { left: auto; right: var(--pad-x); width: 320px; padding: 8px 20px 12px; border: 1px solid var(--line-soft); border-top: 0; border-radius: 0 0 12px 12px; }

  /* 画面下に浮かせたボタンは出さない（ヘッダーのボタンで代える） */
  .cta-wrap { display: none; }

  /* ---------- ヒーロー：左に見出し、右に写真と Exif ---------- */
  .hero { flex-direction: row; align-items: center; gap: 64px; padding: 48px var(--pad-x); }
  .hero .copy { display: flex; flex-direction: column; gap: 18px; flex: 1.15 1 0; min-width: 0; }
  .hero .sub { font-size: var(--fs-lead); }
  .hero-card { flex: 1 1 0; min-width: 0; margin: 0; }
  .hero-photo { flex: none; min-height: 0; aspect-ratio: 960 / 763; }  /* 写真は切り取らず、元の縦横比で出す */
  .exif-title { padding: 14px 18px 0; }
  .exif { padding: 8px 18px 14px; }

  /* ---------- 左右に分ける節 ---------- */
  .bridge .copy, .split .copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

  .bridge { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; align-items: start; padding: 96px var(--pad-x) 104px; }
  /* 上の段に文章。対比は下の段に、幅いっぱいを使って2枚を横に並べる */
  .bridge .copy { grid-column: 1 / -1; grid-row: 1; max-width: 720px; justify-self: center; text-align: center; }
  .bridge .ba { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; gap: 40px; margin-top: 64px; }
  .ba-item { flex: 0 1 400px; }
  .bridge .ba-close { grid-column: 1 / -1; grid-row: 3; text-align: center; margin-top: 28px; }
  .ios-row .l1 { font-size: 16px; }
  .ios-row .l2 { font-size: 14px; }
  .ios-ex span { font-size: 13px; }
  .ios-row .why { font-size: 13px; }
  .ios-map { height: 120px; }

  .section { padding: 112px var(--pad-narrow); }
  .section.split {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; align-items: center;
    padding-left: var(--pad-x); padding-right: var(--pad-x);
  }
  .section.split.flip .copy { order: 2; }  /* 図を左、文章を右に（1つおきに入れ替える） */
  /* 見出しを左、一覧を右に（お使いになる前に・FAQ） */
  .section.split.head { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }

  .section > .btn { align-self: flex-start; padding: 16px 48px; }
  .demo .phone { --sw: 260px; }

  /* ---------- 使いかた：横スライドをやめ、3枚を並べる ---------- */
  .howto { padding: 104px 0; gap: 40px; }
  .slider { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; padding: 0 var(--pad-x); }
  .slider.peek .slide { animation: none; }
  .slide { padding: 28px; }
  .slide-shot .phone { --sw: 200px; }
  .dots { display: none; }

  /* ---------- 料金 ---------- */
  .plans { gap: 16px; }
  .plan { padding: 24px 20px 20px; }
  .price .num { font-size: var(--fs-h2); }

  /* ---------- フッター ---------- */
  .footer { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 24px 48px; padding: 56px var(--pad-x) 48px; }
  .footer .tag { white-space: nowrap; }
  .footer ul { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 4px 28px; }
  .footer .legal { grid-column: 1 / -1; }

  /* ---------- 規約などのページ・Cookie の同意 ---------- */
  .doc { padding: 64px var(--pad-narrow) 96px; }
  .consent { left: auto; right: 24px; bottom: 24px; width: 400px; }
}

@media (min-width: 1120px) {
  /* メニューを横に並べる。hidden が付いていても出す（main.js はスマホと同じまま） */
  .menu-btn { display: none; }
  .menu, .menu[hidden] {
    display: flex; align-items: center; gap: 26px; position: static; width: auto; margin-left: auto;
    padding: 0; border: 0; border-radius: 0; background: none;
  }
  .menu a { padding: 0; border: 0; font-size: var(--fs-note); color: var(--fg-dim); white-space: nowrap; }
  .menu a .mono { display: none; }
  .theme-btn { margin-left: 14px; }
}

/* マウスで操作する PC：料金の節はボタンの代わりに QR コード */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .btn.for-touch { display: none; }
  .qr { display: flex; }
  .menu a:hover { color: var(--fg); }
  .header-cta:hover, .btn.primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
}
