/* Hallmark · locked system: ../docs/DESIGN.md (webpビューア公式サイト) · genre editorial · hero: 案①（Ledge＝絵を紺の帯の下端に置く）· signature: 動く WebP の見本（桜が舞う浮世絵）をファーストビューで動かす */
/* critique: 主役は「動いたまま」の1つ。押す所は App Store バッジ（最初と最後の2か所・同じ行き先）。夜の紺の帯と和紙色の地の2面。2026-11-21 見直し＝見出しを大きく・画像を増やす・空白を詰める（前田さん「この一覧で進めて」）。 */
/* answered: App Store バッジは Apple 公式の画像（2026-11-21 toolbox.marketingtools.apple.com から取得・改変なし）。 */
/* waive 44a: ファーストビューは Ledge（絵を帯の下端に置き、文字は真ん中）＝前田さんが案①を選んだ形。 */
/* waive 44c: 同上（絵は帯の下端に揃えるので、文字の真ん中とはずれる）。 */
/* waive 44c: 帯の高さは中身に合わせる（1画面いっぱいにすると見出しの上が約240px 空く）＝2026-11-21 前田さんの見直し 2。 */
/* waive 59: 節の間は DESIGN.md の余白の段（最大 96px）に従う。最後の紺の帯の上だけ 48px＋帯の上の余白。 */
/* waive 77: 「このアプリについて」はページの終わりの短い節（アイコン＋文）。量を足すための飾りは入れない。 */
/* waive 49b: 本文中のリンクは文の一部なので折り返してよい。 */
/* accepted 58: ファーストビューの「押す所の前に文の塊が3つ」は、画像だけのバッジのリンクを押す所と数えない検査側の見誤り（見出し・1文・バッジ・注記の並び）。2026-11-21 前田さん「受け入れる」。 */
/* accepted 58: 英語のトップの1画面（困りごと＋できることの冒頭）が約116語（11/21 見直し後は約100語、1.7 の困りごと4つ目を足して約116語に戻った）。困りごとは各1文に削った上で、2026-11-21 前田さん「受け入れる」。 */

:root {
  --paper: #F7F5F0;
  --surface: #FFFEFA;
  --ink: #1A2238;
  --ink-sub: #4A5468;
  --link: #1F56C9;
  --accent: #B8322A;
  --night: #0F1526;
  --night-text: #F3F6FB;
  --night-sub: #C3CBD9;
  --night-link: #8FB0FF;
  --night-accent: #FFD43D;
  --line-part: #7A8394;
  --line-deco: #C9CDD6;
  --focus-ring: #FFD43D;
  --focus-ink: #000000;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-ko: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 48px; --s5: 96px;
  --max: 1120px;
  --measure: 680px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; margin: 0; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
:lang(ko) body, body:lang(ko) { font-family: var(--font-ko); }
body { font-family: var(--font); color: var(--ink); font-size: 17px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .gallery:focus-visible { outline: 3px solid var(--focus-ink); box-shadow: 0 0 0 6px var(--focus-ring); outline-offset: 2px; transition: none; }
.on-night a:focus-visible { outline-color: var(--focus-ring); box-shadow: 0 0 0 6px var(--focus-ink); }
a:active { text-decoration-thickness: 2px; }
h1, h2, h3 { word-break: auto-phrase; overflow-wrap: break-word; min-width: 0; font-weight: 700; margin: 0; text-wrap: balance; }
h2 { font-size: 40px; line-height: 1.35; }
h3 { font-size: 24px; line-height: 1.45; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s3); }

/* ヘッダ（ナビ） */
.nav { display: flex; align-items: center; gap: var(--s3); min-height: 64px; }
.nav .logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav .logo img { height: 22px; width: auto; }
.nav .logo-text { font-weight: 700; font-size: 18px; color: var(--night-text); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.nav ul { display: flex; gap: var(--s3); list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav li a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.nav .lang { display: flex; gap: var(--s1); font-size: 16px; }
.nav .lang b, .nav .lang a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
@media (max-width: 959px) { .nav ul { display: none; } .nav .lang { margin-left: auto; } }
@media (max-width: 400px) { .nav { gap: var(--s2); } .nav .logo img { height: 18px; } .nav .logo-text { font-size: 16px; } }

/* App Store バッジ（Apple 公式の画像・改変しない。周りの余白は高さの1/4以上）と「無料」 */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.badge { display: inline-block; border-radius: var(--radius); }
.badge img { height: 60px; width: auto; }
.free { font-size: 22px; font-weight: 700; line-height: 1.4; }
.free strong { font-size: 30px; color: var(--night-accent); margin-right: 2px; }
.free span { display: block; font-size: 16px; font-weight: 400; color: var(--night-sub); }

/* ファーストビュー（案①）：高さは中身に合わせる */
.hero { background: var(--night); color: var(--night-text); }
.hero a { color: var(--night-link); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s4); align-items: end; padding-top: var(--s3); }
.hero .copy { align-self: center; padding-bottom: var(--s4); }
.hero h1 { font-size: 64px; line-height: 1.2; letter-spacing: -0.01em; }
.hero .lead { color: var(--night-sub); font-size: 19px; margin: var(--s3) 0 var(--s4); max-width: 28em; }
.hero figure { position: relative; margin: 0; max-width: 520px; justify-self: end; }
.hero figure img { border-radius: var(--radius) var(--radius) 0 0; width: 100%; }
.hero figcaption { position: absolute; left: var(--s2); bottom: var(--s2); background: var(--night); color: var(--night-text); font-size: 15px; padding: 4px 8px; border-radius: 4px; }

/* 節 */
.sec { padding-top: var(--s5); }
.sec h2 { margin-bottom: var(--s4); }
.sub { color: var(--ink-sub); }

/* こんな時に：画面＋見出し＋文＋リンク */
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); } /* 1.7 の「JPEG・PNG にして保存」で4つ（11/21） */
.thumb { margin: 0 0 var(--s3); background: var(--night); border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cases h3 { margin-bottom: var(--s1); }
.cases p + p { margin-top: var(--s1); }

/* できること：画面と文を左右交互に */
.rows { display: grid; gap: var(--s5); }
.row { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: center; max-width: 960px; margin: 0 auto; }
.row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.row:nth-child(even) > .phone { order: 2; }
.row .text { max-width: 30em; }
.row h3 { font-size: 32px; line-height: 1.35; margin-bottom: var(--s2); }
.row p { font-size: 18px; }
.phone { margin: 0; border-radius: 28px; overflow: hidden; background: var(--night); box-shadow: 0 0 0 8px var(--night); }
.phone img { width: 100%; }

/* ストアの画像の帯（横に動かす） */
.gallery { list-style: none; margin: 0; padding: var(--s1) max(var(--s3), calc((100vw - var(--max)) / 2 + var(--s3))) var(--s3); display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--s3), calc((100vw - var(--max)) / 2 + var(--s3))); }
.gallery li { flex: 0 0 220px; scroll-snap-align: start; }
.gallery img { border-radius: var(--radius); width: 100%; }

/* 無料と有償版 */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.plan { background: var(--surface); border: 1px solid var(--line-deco); border-radius: var(--radius); padding: var(--s4); }
.plan:last-child { border: 2px solid var(--ink); }
.plan h3 { font-size: 24px; }
.price { font-variant-numeric: tabular-nums; font-size: 56px; font-weight: 700; line-height: 1.2; margin: var(--s1) 0 var(--s2); }
.price span { font-size: 22px; margin-left: var(--s1); }
.price-text { font-variant-numeric: tabular-nums; font-size: 36px; padding: var(--s1) 0; }
.once { font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: var(--s2); }
.plan ul { margin: 0; padding-left: 1.2em; font-size: 18px; }
.plan li + li { margin-top: 4px; }

/* 安心：文と絵を並べる */
.with-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s4); align-items: center; }
.with-art h2 { margin-bottom: var(--s3); }
.art { width: 100%; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.facts li { border-top: 1px solid var(--line-part); padding-top: var(--s2); }
.facts strong { display: block; font-size: 24px; line-height: 1.45; }

/* このアプリについて：2段に並べる */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.app { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.app img { border-radius: 22%; box-shadow: 0 0 0 1px var(--line-deco); }
.app h3 { margin-bottom: var(--s1); }
.about:has(> .app:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* 最後の呼びかけ（紺の帯） */
.cta { background: var(--night); color: var(--night-text); margin-top: var(--s5); }
.cta a { color: var(--night-link); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: var(--s4); align-items: end; padding-top: var(--s4); }
.cta-grid > div { align-self: center; padding: var(--s4) 0; }
.cta h2 { margin-bottom: var(--s4); }

/* フッター */
.foot { padding: var(--s4) 0; color: var(--ink-sub); font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.foot p { margin-top: var(--s2); }

@media (max-width: 1099px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .hero h1 { font-size: 52px; }
  .row { column-gap: var(--s4); grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); }
}

@media (max-width: 767px) {
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding-top: var(--s2); }
  .hero .copy { padding-bottom: 0; align-self: start; }
  .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 17px; margin: var(--s2) 0 var(--s3); }
  .hero figure { justify-self: center; max-width: 420px; }
  .sec { padding-top: var(--s4); }
  .sec h2 { margin-bottom: var(--s3); }
  .cases, .plans, .with-art, .about, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .cases { gap: var(--s4); }
  .thumb { aspect-ratio: 1 / 1; }
  .thumb img { object-position: top; }
  .rows { gap: var(--s4); }
  .row, .row:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .row:nth-child(even) > .phone { order: 0; }
  .row h3 { font-size: 24px; }
  .row p { font-size: 17px; }
  .phone { max-width: 240px; margin: 0 auto; }
  .app { grid-template-columns: 80px minmax(0, 1fr); gap: var(--s2); }
  .gallery li { flex-basis: 180px; }
  .plan { padding: var(--s3); }
  .price:not(.price-text) { font-size: 44px; }
  .price-text { font-size: 30px; }
  .with-art .art { max-width: 220px; margin: 0 auto; }
  .cta-grid .art { max-width: 200px; margin: 0 auto; }
  .cta-grid > div { padding-bottom: 0; }
  .cta h2 br { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .gallery { scroll-behavior: auto; } }
