/* SayonaraType LP — 見た目は docs/visual-identity.md（VI v0.1）§4・§9、構成は docs/lp-spec-integrated.md §2。
   色・字体・余白は先頭の変数で一括に変える。初版はライトのみ（暗室は「製品の画面」の帯と 404 だけ） */
:root {
  --paper: #FAF8F4;
  --ink: #1C1B19;
  --graphite: #6E6A64;
  --hairline: #E6E1D8;
  --subtitle: #F2C230;
  --rec: #C8452E;
  --darkroom: #141311;
  --darkroom-ink: #EDE9E2;

  --serif: "Instrument Serif", "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --sans: "Instrument Sans", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --mono: "IBM Plex Mono", "Zen Kaku Gothic New", ui-monospace, monospace;

  --maxw: 1200px;
  --measure: 640px;
  --gap-section: 160px;
  --gutter: 24px;
}
@media (max-width: 760px) {
  :root { --gap-section: 96px; --gutter: 16px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.8; }
@media (max-width: 760px) { body { font-size: 16px; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 150ms; }
a:hover { text-decoration-color: var(--subtitle); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.ph { display: inline-block; }

/* 文字の役割 */
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite); margin: 0 0 20px; }
.caption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--graphite); }
.display { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.25; margin: 0; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.4; margin: 0 0 24px; }
@media (max-width: 760px) { .display { font-size: 40px; } .h2 { font-size: 24px; } }
.display, .h2, .why blockquote, .card h3 { word-break: auto-phrase; }

/* 主ボタン: 墨地・白文字・角丸2px・高さ48px。ホバーで反転せず、ラベルに下線 */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; background: var(--ink); color: var(--paper); border: 0; border-radius: 2px; font-family: var(--sans); font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { text-decoration: underline; text-decoration-color: currentColor; }
.btn--light { background: var(--paper); color: var(--ink); }

/* ヘッダー: ヒーローの上では透明・白文字、スクロール後は Paper 地・墨文字（200ms） */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 10; transition: background-color 200ms, color 200ms; color: var(--paper); }
.site-header.is-solid { background: var(--paper); color: var(--ink); }
.site-header .bar { height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-header nav a { font-size: 14px; text-decoration: none; margin-right: 24px; }
.site-header nav a:hover { text-decoration: underline; text-decoration-color: var(--subtitle); }
.wordmark { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: 0.01em; }
.site-header .right { justify-self: end; }
.site-header .btn { height: 40px; padding: 0 20px; font-size: 14px; }
.site-header:not(.is-solid) .btn { background: var(--paper); color: var(--ink); }
.feature-line { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-align: center; padding-bottom: 10px; opacity: 0.85; }
@media (max-width: 760px) {
  .site-header nav { display: none; }
  .site-header .bar { grid-template-columns: auto 1fr; }
  .site-header .center { justify-self: start; }
  .wordmark { font-size: 22px; }
  .feature-line { display: none; }
}

/* ヒーロー（記憶の層）: 全幅・画面の高さ。写真が届くまで暗室色の仮の面。上端15%と下端20%に薄い黒のグラデーション */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--darkroom); color: var(--paper); display: grid; place-items: center; overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; }
.hero .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.hero::before { top: 0; height: 15%; background: linear-gradient(rgba(0,0,0,.35), transparent); }
.hero::after { bottom: 0; height: 20%; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.hero .veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(0,0,0,.25), transparent 65%); }
.hero .inner { position: relative; z-index: 2; text-align: center; padding: 120px var(--gutter) 160px; max-width: 900px; }
.hero .lead { font-size: 18px; margin: 20px 0 32px; }
.hero .req { font-size: 13px; margin: 14px 0 6px; opacity: .9; }
.hero .waitlist-link { font-size: 13px; opacity: .85; }
.mobile-notice { display: none; font-size: 14px; margin-top: 14px; }
html.is-mobile .mobile-notice { display: block; }
.subtitles { position: absolute; left: 0; right: 0; bottom: 8%; z-index: 2; height: 3.6em; text-align: center; padding: 0 var(--gutter); }
.subtitles span { position: absolute; left: 50%; transform: translateX(-50%); width: min(92%, 980px); font-weight: 500; font-size: 28px; line-height: 1.5; text-shadow: 0 1px 2px rgba(0,0,0,.4); opacity: 0; }
.subtitles .spoken { color: #fff; animation: sub-spoken 8.6s linear infinite; }
.subtitles .written { color: var(--subtitle); animation: sub-written 8.6s linear infinite; }
/* 口語（白）3.5秒 → 600msのクロスフェード → 整形文（黄）4.5秒 → ループ */
@keyframes sub-spoken { 0% { opacity: 1; } 40.7% { opacity: 1; } 47.7% { opacity: 0; } 93% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sub-written { 0% { opacity: 0; } 40.7% { opacity: 0; } 47.7% { opacity: 1; } 93% { opacity: 1; } 100% { opacity: 0; } }
.hero .caption { position: absolute; right: var(--gutter); bottom: 16px; z-index: 2; color: rgba(255,255,255,.7); }
@media (max-width: 760px) {
  .hero { min-height: 85vh; min-height: 85svh; }
  .subtitles { bottom: calc(8% + 20px); }
  .subtitles span { font-size: 18px; }
  .hero .caption { bottom: 10px; right: 50%; transform: translateX(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .subtitles .spoken { animation: none; opacity: 0; }
  .subtitles .written { animation: none; opacity: 1; }
}

/* セクションは余白だけで区切る */
section.block { padding: var(--gap-section) 0 0; }
section.block:last-of-type { padding-bottom: var(--gap-section); }
.body { color: var(--ink); margin: 0 0 24px; }

/* 速さ: 横罫線・等幅・右揃え */
.figures { border-top: 1px solid var(--hairline); margin: 32px 0 16px; max-width: var(--measure); }
.figures .row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-family: var(--mono); font-size: 15px; }
.figures .row .v { text-align: right; }

.apps { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--graphite); margin-top: 24px; }

/* 整形の前後 */
.functions { list-style: none; padding: 0; margin: 32px 0; max-width: var(--measure); counter-reset: fn; }
.functions li { counter-increment: fn; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.functions li::before { content: counter(fn) "."; font-family: var(--mono); font-size: 12px; color: var(--graphite); margin-right: 12px; }
.functions .ex { color: var(--graphite); font-size: 15px; margin-left: 8px; }
.tabs { display: flex; gap: 24px; margin: 40px 0 16px; }
.tabs button { background: none; border: 0; padding: 0 0 4px; font-family: var(--sans); font-size: 15px; color: var(--graphite); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.compare { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.compare > div { padding: 24px; }
.compare > div + div { border-left: 1px solid var(--hairline); }
.compare .before { font-family: var(--mono); font-size: 15px; line-height: 2; color: var(--graphite); }
.compare .before .filler { opacity: .4; }
.compare .after { font-size: 17px; }
.mark { background: linear-gradient(transparent 55%, var(--subtitle) 55%); }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--hairline); }
}

/* 製品の画面（暗室の帯・ページで唯一） */
.darkroom { background: var(--darkroom); color: var(--darkroom-ink); margin-top: var(--gap-section); padding: var(--gap-section) 0; }
.darkroom .label, .darkroom .caption { color: #9C978F; }
.darkroom .screen { margin: 40px 0 16px; min-height: 320px; background: #fff; border-radius: 2px; position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px; }
.darkroom .screen .pill { background: rgba(20,19,17,.88); color: #fff; font-family: var(--mono); font-size: 13px; border-radius: 17px; padding: 6px 18px; }
.darkroom .screen .pill .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); margin-right: 8px; vertical-align: 1px; }
.darkroom .screen img { width: 100%; }
.darkroom + section.block { padding-top: var(--gap-section); }

/* 価値カード（3つ並び） */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card .photo { aspect-ratio: 1 / 1; margin-bottom: 12px; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.5; margin: 10px 0 8px; }
.card p { margin: 0; font-size: 16px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; gap: 56px; } }

/* 思想（概念文の形式）・作り手の一言 */
.why { text-align: center; padding-top: calc(var(--gap-section) * 1.5) !important; }
.why blockquote { font-family: var(--serif); font-size: 36px; line-height: 1.6; margin: 0 auto 16px; max-width: 900px; }
.why .h2 { margin-top: 64px; }
.why .body { color: var(--graphite); margin: 0 auto; }
@media (max-width: 760px) { .why blockquote { font-size: 24px; } }
.letter { display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 760px; margin: 96px auto 0; text-align: left; }
.letter.has-photo { grid-template-columns: 240px 1fr; }
.letter .text { font-family: var(--mincho); font-size: 17px; line-height: 2; white-space: pre-line; }
.letter .sig { font-family: var(--mono); font-size: 12px; color: var(--graphite); margin-top: 16px; }
@media (max-width: 760px) { .letter.has-photo { grid-template-columns: 1fr; } }

/* データの扱い（横罫線で3行） */
.lines { border-top: 1px solid var(--hairline); max-width: var(--measure); margin: 24px 0 16px; }
.lines p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.small { font-size: 13px; color: var(--graphite); }

/* 料金（カード1枚・角丸なし・Hairline の枠） */
.price-card { border: 1px solid var(--hairline); padding: 40px; max-width: 520px; }
.price-card .price { font-family: var(--serif); font-size: 48px; line-height: 1.2; }
.price-card .per { font-size: 15px; color: var(--graphite); margin-left: 6px; }
.price-card .line { margin: 8px 0 24px; }
.price-card .free { border-top: 1px solid var(--hairline); padding-top: 20px; margin: 24px 0; }
.price-card .portal { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 12px; }

/* FAQ（開閉は即時・細線の＋） */
.faq details { border-bottom: 1px solid var(--hairline); max-width: 760px; }
.faq details:first-of-type { border-top: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-weight: 300; font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--ink); }

/* 最終 CTA（概念文の形式） */
.final { text-align: center; padding-top: calc(var(--gap-section) * 1.5) !important; }
.final .req { font-size: 13px; color: var(--graphite); margin-top: 14px; }

/* フッター */
.site-footer { border-top: 1px solid var(--hairline); margin-top: var(--gap-section); padding: 40px 0 56px; }
.site-footer .wordmark { font-size: 20px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 24px; font-family: var(--mono); font-size: 12px; }
.site-footer .credits { font-family: var(--mono); font-size: 11px; color: var(--graphite); display: flex; flex-wrap: wrap; gap: 16px; }

/* 白地のページ（表記・ウェイトリスト・404）: ヘッダーは最初から Paper 地 */
.page { padding: 140px 0 0; }
.page .h2 { max-width: 760px; }
.legal { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; }
.legal h2 { font-size: 19px; margin-top: 40px; }
.legal, .legal p, .legal td, .legal th, .legal li { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { border-bottom: 1px solid var(--hairline); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.legal th { white-space: nowrap; font-weight: 500; }

/* ウェイトリスト */
.form { max-width: 520px; margin-top: 32px; }
.form label { display: block; font-size: 14px; margin: 20px 0 6px; }
.form input[type=email], .form input[type=text] { width: 100%; height: 44px; border: 1px solid var(--hairline); border-radius: 2px; background: #fff; padding: 0 12px; font: inherit; }
.form .choices label { display: inline-flex; align-items: center; gap: 6px; margin: 4px 20px 4px 0; font-size: 15px; }
.form .btn { margin-top: 28px; }
.form .msg { margin-top: 20px; }

/* 404 */
.notfound { text-align: center; padding: 200px 0 0; }
