/* fonorma.app のトップ（2026-12-01 作り直し・本人が見本 A を選んだ）
   黒を主にする（Instagram と同じ雰囲気）。純粋な黒と白は使わない（暗い地で文字がにじむのを防ぐ）。
   外部の書体・解析の部品は読み込まない（11/15 の決定のまま）。
   作法と理由＝repo `調べたこと/ブランドのサイトの作り直し（12月）.md` */

:root {
  color-scheme: dark;
  --ground: #0B0B0B;       /* 地 */
  --panel: #151515;        /* 一段上の面（質問の囲みなど） */
  --rule: #2A2A2A;         /* 細い線 */
  --text: #E6E6E6;         /* 見出し・強い文字 */
  --body: #D2D2D2;         /* 本文（白より一段落とし、長い文のにじみを防ぐ） */
  --muted: #9A9A9A;        /* 注記（地との明暗比 7:1 以上） */
  --gutter: clamp(20px, 6vw, 96px);
  --measure: 38em;         /* 本文の1行＝およそ35〜40字 */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 2px; }
.nb { display: inline-block; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.mark, .wordmark { display: inline-block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.mark { --src: url(/assets/brand/mark.svg); width: 20px; height: 20px; }
.wordmark { --src: url(/assets/brand/wordmark.svg); width: 104px; height: 12px; }

/* ── 上端（写真の上に重ねる。移動の文字は3つと言語だけ） ── */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 4vw, 48px); }
.brand { display: flex; align-items: center; gap: 10px; color: #F2F2F2; text-decoration: none; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); font-size: 14px; letter-spacing: .08em; color: #CFCFCF; }
.nav a { text-decoration: none; }
.nav a:hover { color: #FFFFFF; }

/* ── 最初の1画面＝全幅の写真で「何者か」を言い切る ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero .ph { position: absolute; inset: 0; background: url(/assets/site/photo/light-grid.jpg) 62% 40% / cover no-repeat; filter: grayscale(1) contrast(1.08) brightness(.82); }
/* 文字の下だけを暗くして読ませる（写真の上半分は残す） */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,11,.92) 0%, rgba(11,11,11,.35) 38%, rgba(11,11,11,0) 60%); }
.hero .in { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(40px, 8vh, 88px); }
.hero h1 { margin: 0; font-weight: 300; font-size: clamp(28px, 5.4vw, 64px); line-height: 1.25; letter-spacing: .06em; color: #F4F4F4; }
.hero .sub { margin: 18px 0 0; max-width: 30em; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.8; color: #BDBDBD; }

/* 押せる物は細い線の枠で角を立てる（重厚感の動きの作法と同じ） */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border: 1px solid #D8D8D8; border-radius: 2px; color: #F2F2F2; text-decoration: none; font-size: 15px; letter-spacing: .08em; transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: #F2F2F2; color: #111111; }
.hero .btn { margin-top: 30px; }

/* ── 語りの画面の文＝見出しではなく「本文より一段大きい」大きさ（長い文を見出しにしない） ── */
.lead { position: relative; overflow: hidden; padding: clamp(104px, 18vh, 200px) var(--gutter); }
.lead .ghost { position: absolute; right: -90px; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; color: #141414; }
.lead p { position: relative; margin: 0; max-width: 20em; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.75; letter-spacing: .04em; color: #EDEDED; }

/* ── 思想の全文＝本文は変えず、問い・現代社会・アンチテーゼの3つに分けて写真で呼吸を作る ── */
.thought { padding: clamp(88px, 14vh, 160px) var(--gutter); }
.thought p { margin: 0 0 1.5em; max-width: var(--measure); color: var(--body); line-height: 2; letter-spacing: .04em; }
.thought p:last-child { margin-bottom: 0; }
.thought .q { color: #F2F2F2; }
.photo { height: 72svh; min-height: 360px; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.1) brightness(.85); }
.photo.mountain { background-image: url(/assets/site/photo/mountain.jpg); background-position: 50% 40%; }
.photo.whale { background-image: url(/assets/site/photo/whale.jpg); background-position: 45% 50%; }
@media (min-width: 1000px) { .thought { padding-left: calc(50% - 26em); } }

/* ── 節の見出し（アプリ・イベント・始め方…） ── */
.sec { padding: clamp(96px, 14vh, 160px) var(--gutter) 0; }
.sec:last-of-type { padding-bottom: clamp(96px, 14vh, 160px); }
.kicker { margin: 0 0 18px; font-size: 13px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; }
.sec h2 { margin: 0; font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.4; letter-spacing: .04em; color: var(--text); }
.sec h3 { margin: 0; font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; letter-spacing: .04em; color: var(--text); }
.sec p, .sec li, .sec dd { color: var(--body); }
.sec p { margin: 16px 0 0; max-width: var(--measure); }
.sec ul, .sec ol { margin: 16px 0 0; padding-left: 1.3em; max-width: var(--measure); }
.sec li { margin: 8px 0 0; }
.sec li::marker { color: var(--muted); }

/* アプリ＝パソコンでは文と端末を左右に並べ、文の幅は広げない */
.feature { display: grid; gap: 48px; align-items: center; padding-top: clamp(72px, 12vh, 140px); }
.feature:first-of-type { padding-top: 48px; }
.feature .text { max-width: 34em; }
.feature .text > :first-child { margin-top: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(48px, 7vw, 120px); }
  .feature.flip { grid-template-columns: 360px minmax(0, 1fr); }
  .feature.flip .media { order: -1; }
  .feature.solo { grid-template-columns: minmax(0, 1fr); }
}
.media { margin: 0; }
.phone { position: relative; max-width: 320px; margin: 0 auto; border: 8px solid #1E1E22; border-radius: 42px; overflow: hidden; background: #0F0F0E; box-shadow: 0 0 0 1px #2E2E33, 0 40px 80px -40px rgba(0,0,0,.9); }
.phone img { display: block; width: 100%; height: auto; }
.phone.cut { max-height: 560px; border-bottom: 0; border-radius: 42px 42px 0 0; }
.phone.cut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: linear-gradient(rgba(11,11,11,0), var(--ground)); }
.card-shot { max-width: 380px; margin: 0 auto; }
.card-shot img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px #2A2A2A; }
.caption { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.note { margin-top: clamp(64px, 10vh, 120px) !important; color: var(--muted) !important; }

/* イベント＝期間を大きな表示の文字で（Instagram の投稿と同じ型） */
.event { padding-top: clamp(120px, 18vh, 200px); }
.dates { margin: 0 0 20px; font-weight: 300; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: .32em; color: var(--muted); }
.event h2 { font-weight: 300; font-size: clamp(36px, 6vw, 84px); line-height: 1.15; letter-spacing: .03em; }

/* 始め方 */
.steps { counter-reset: s; list-style: none; padding: 0 !important; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3em 1fr; padding: 18px 0; margin: 0 !important; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--muted); font-size: 14px; letter-spacing: .1em; padding-top: 3px; }
.sec .btn { margin-top: 36px; }

/* よくある質問 */
.qa { margin: 24px 0 0; max-width: var(--measure); border-top: 1px solid var(--rule); }
.qa dt { padding: 22px 0 0; font-weight: 500; color: var(--text); }
.qa dd { margin: 6px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }

/* 紹介する方へ */
.closing { margin-top: clamp(96px, 14vh, 160px); padding: clamp(40px, 6vw, 64px); background: var(--panel); border-radius: 4px; max-width: 46em; }
.closing h2 { font-size: clamp(20px, 2vw, 24px); }

/* 下端 */
.foot { margin-top: clamp(96px, 14vh, 160px); padding: 48px var(--gutter) 56px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.9; color: var(--muted); }
.foot p { margin: 0; }
.foot .brand { color: var(--text); margin-bottom: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 20px; }
.foot nav a { text-decoration: none; color: var(--body); }
.foot nav a:hover { color: #FFFFFF; }

/* 現れ＝下から 8px・0.9秒・強い減速。動きを減らす設定では動かさない */
.rv { opacity: 0; transform: translateY(8px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
.no-js .rv { opacity: 1; transform: none; }

.top .lang { display: none; font-size: 14px; letter-spacing: .08em; color: #CFCFCF; text-decoration: none; }
@media (max-width: 640px) {
  .nav { order: 3; width: 100%; gap: 22px; font-size: 13px; letter-spacing: .06em; }
  .nav .nav-lang { display: none; }
  .top .lang { display: block; }
  .top { flex-wrap: wrap; row-gap: 10px; }
  .lead .ghost { width: 280px; height: 280px; right: -110px; }
}

/* 英語＝欧文は字間を広げると読みにくくなるので、日本語用の字間を外す */
html[lang="en"] .hero h1 { letter-spacing: .01em; }
html[lang="en"] .lead p, html[lang="en"] .thought p, html[lang="en"] .sec h2, html[lang="en"] .sec h3 { letter-spacing: 0; }
html[lang="en"] .thought p { line-height: 1.8; }
html[lang="en"] .event h2 { letter-spacing: -.01em; }

/* スマホ＝写真の人物と文字が重なるので、文字の下の暗さを強める */
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(to top, rgba(11,11,11,.96) 0%, rgba(11,11,11,.6) 45%, rgba(11,11,11,0) 72%); }
}

/* 12/1 本人が選んだ写真＝「スマホの制限」の横（鎧戸の窓の光）・イベントの前（谷の夜明け） */
.window { aspect-ratio: 3 / 4; max-width: 320px; margin: 0 auto; background: url(/assets/site/photo/window-light.jpg) center / cover no-repeat; filter: grayscale(1) contrast(1.08) brightness(.9); }
.photo.dawn { margin-top: clamp(120px, 18vh, 200px); background-image: url(/assets/site/photo/dawn-valley.jpg); background-position: 50% 60%; }
.photo.dawn + .event { padding-top: clamp(72px, 10vh, 120px); }

/* 上端の文字が写真の明るい所に重なっても読めるように、上だけを暗くする */
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 200px; z-index: 1; background: linear-gradient(rgba(11,11,11,.88), rgba(11,11,11,0)); }
