/* 商品ページ（LP）の共通スタイル。talkscore（手書き・最良）の作りを部品にしたもの（2026-10-22）。
   生成器 legal/build.mjs の appLanding() が使う。色はアプリごとに apps/<slug>.json の lp.theme で
   :root の変数を上書きする（ここに書いた値は talkscore の色＝既定）。 */
:root {
  --canvas: #fef5ee; --paper: #fffaf6; --panel: #fff;
  --ink: #3c302b; --ink-strong: #4c3f3a; --ink-soft: #6e6058; --ink-hint: #887669; --ink-faint: #918279;
  --accent: #e88e8e; --accent-text: #b14e4e; --accent-deep: #9c4343; --accent-tint: #ffdfda; --accent-warm: #ffe4df; --accent-border: #f2d7d4;
  --accent-shadow: rgba(232,142,142,.35);
  --cool: #38618a; --cool-tint: #deedfe; --line: #efd9d3;
  --shadow: 0 2px 6px rgba(40,40,40,.05), 0 18px 48px rgba(40,40,40,.10);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans KR", "Apple SD Gothic Neo", "PingFang SC", "PingFang TC", "Microsoft YaHei", sans-serif;
}
/* 言語ごとの字形（中国語・韓国語のページで日本語の句読点や字形が出ないように） */
:root:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
:root:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
:root:lang(zh-Hant) { --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
:root:lang(en) { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); line-height: 1.85; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -.01em; color: var(--ink-strong); }
/* 日本語の見出し・リードを文節で折り返す（「ん。」だけが次の行に落ちない） */
h1, h2, h3, .lead, .q, .kicker, .chip, .callout, .fact p, .how li, .use { word-break: auto-phrase; text-wrap: pretty; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h2 em, h1 em { font-style: normal; color: var(--accent-text); }
.kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 38em; }
.note { font-size: 12px; color: var(--ink-faint); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-weight: 700; padding: 15px 26px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 28px var(--accent-shadow); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: #fff; color: var(--accent-text); box-shadow: 0 6px 20px rgba(40,40,40,.08); }
.btn .arrow { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.28); display: inline-grid; place-items: center; font-size: 14px; }
.btn.ghost .arrow { background: var(--accent-tint); }
.chip { display: inline-block; background: #fff; border: 1px solid var(--accent-border); padding: 8px 15px; border-radius: 999px; font-size: 13.5px; color: var(--ink-soft); }
.chip b { color: var(--ink-strong); }

.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); background: color-mix(in srgb, var(--canvas) 86%, transparent); border-bottom: 1px solid rgba(40,40,40,.06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; max-width: 1120px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--ink-strong); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.top .btn { padding: 10px 18px; font-size: 14px; white-space: nowrap; }

/* hero: 1 行の約束 → 本物の画面 */
.hero { padding: 88px 0 56px; text-align: center; }
.hero .kicker { margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.hero .lead { margin: 22px auto 0; }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .chips { margin-top: 26px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero .visual { margin: 56px auto 0; display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); align-items: center; gap: 28px; max-width: 900px; text-align: left; }
.paper { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 26px 26px 22px; font-size: 12.5px; color: #2b2b2b; line-height: 1.6; position: relative; }
.paper .file { position: absolute; top: -13px; left: 18px; background: var(--ink-strong); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; letter-spacing: .02em; }
.paper .ttl { text-align: center; font-size: 17px; font-weight: 800; letter-spacing: .3em; margin: 2px 0 10px; }
.paper .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: #555; margin-bottom: 12px; flex-wrap: wrap; }
.paper table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.paper th, .paper td { border-bottom: 1px solid #e6e6e6; padding: 4px 6px; text-align: left; white-space: nowrap; }
.paper th { border-bottom: 1.5px solid #999; font-weight: 700; }
.paper td.n, .paper th.n { text-align: right; }
.paper tr.sum td { border-bottom: none; border-top: 1.5px solid #999; font-weight: 800; }
.hero .arrow-big { display: grid; place-items: center; gap: 6px; color: var(--accent-text); font-weight: 800; font-size: 13px; text-align: center; }
.hero .arrow-big span { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 24px; box-shadow: 0 10px 28px var(--accent-shadow); }
.phone img, .phone-sm img { border-radius: 34px; border: 7px solid #232826; box-shadow: 0 30px 80px rgba(30,40,35,.22); background: #fff; }
.hero .phone { width: min(300px, 100%); justify-self: center; }

/* demo: 1 件を最初から最後まで追う（縦のレール） */
.story { padding: 40px 0 80px; position: relative; }
.story .head { margin-bottom: 28px; }
.story .body { position: relative; }
.rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: var(--line); transform: translateX(-50%); border-radius: 2px; }
.rail .fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--accent); border-radius: 2px; transition: height .25s linear; }
.reading { position: relative; display: grid; grid-template-columns: 1fr 88px 1fr; gap: 0; align-items: start; padding: 42px 0; }
.reading .when { text-align: right; padding-right: 34px; padding-top: 6px; }
.reading .when .n { font-size: 12px; letter-spacing: .2em; color: var(--accent-text); font-weight: 800; }
.reading .when .d { font-size: 22px; font-weight: 800; color: var(--ink-strong); margin-top: 2px; }
.reading .when .since { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.reading .when .phone-sm { width: 230px; margin: 22px 0 0 auto; }
.reading .dot { position: relative; height: 100%; }
.reading .dot .b { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--accent-deep); box-shadow: 0 8px 24px var(--accent-shadow); transition: transform .5s cubic-bezier(.2,.9,.3,1.3); }
.reading .card { background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 26px 28px; margin-left: 34px; }
.reading .card h3 { font-size: 20px; }
.reading .card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }
.reading.flip .when { grid-column: 3; text-align: left; padding-left: 34px; padding-right: 0; }
.reading.flip .when .phone-sm { margin: 22px auto 0 0; }
.reading.flip .dot { grid-column: 2; grid-row: 1; }
.reading.flip .card { grid-column: 1; grid-row: 1; margin-left: 0; margin-right: 34px; }
.callout { margin-top: 18px; border-radius: 16px; padding: 14px 16px; font-size: 14.5px; background: var(--paper); border: 1px solid var(--accent-border); }
.callout.warm { background: var(--accent-warm); border-color: transparent; }
.callout .lab { display: block; font-size: 11px; letter-spacing: .18em; font-weight: 800; color: var(--accent-text); margin-bottom: 4px; }
.between { text-align: center; padding: 4px 0; color: var(--ink-hint); font-size: 14px; position: relative; }
.between span { background: var(--canvas); padding: 0 14px; position: relative; }
.story .note { text-align: center; margin-top: 18px; }

/* proof: 書き方 → 書き出した値の対照表 */
.proof { padding: 80px 0; background: var(--panel); }
.proof .grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.proof .lead { margin-top: 18px; }
.ba { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 26px; font-variant-numeric: tabular-nums; }
.ba th { font-size: 11.5px; letter-spacing: .16em; color: var(--ink-hint); font-weight: 700; text-align: left; padding: 0 16px; }
.ba td { background: var(--canvas); padding: 12px 16px; font-size: 15.5px; }
.ba td:first-child { border-radius: 14px 0 0 14px; font-weight: 700; color: var(--ink-strong); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.ba td.to { color: var(--ink-faint); width: 30px; padding: 12px 0; text-align: center; }
.ba td:last-child { border-radius: 0 14px 14px 0; color: var(--accent-deep); font-weight: 700; }
.ba td:last-child small { color: var(--ink-hint); font-weight: 400; margin-left: 6px; }
.proof .phone { width: min(290px, 100%); justify-self: center; }
.proof .note { margin-top: 10px; }

/* uses: こんなときに */
.uses { padding: 80px 0 40px; }
.uses .cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.uses .use { background: #fff; border-radius: 18px; padding: 18px 20px 18px 54px; box-shadow: 0 1px 3px rgba(40,40,40,.05); position: relative; font-size: 15px; color: var(--ink-strong); }
.uses .use::before { content: "✓"; position: absolute; left: 18px; top: 17px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-deep); display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* thesis */
.thesis { padding: 90px 0; background: linear-gradient(180deg, var(--accent-warm), var(--canvas)); text-align: center; }
.thesis h2 { font-size: clamp(28px, 4vw, 44px); }
.thesis .q { font-size: clamp(20px, 2.6vw, 26px); color: var(--ink-strong); margin-top: 18px; font-weight: 700; }
.thesis .q em { font-style: normal; color: var(--accent-text); }
.thesis .lead { margin: 22px auto 0; }

/* promises: 短い 3 列 */
.facts { padding: 80px 0; }
.facts .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.fact { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 26px 24px; }
.fact .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; font-size: 18px; }
.fact h3 { font-size: 18px; margin-top: 16px; }
.fact p { font-size: 14.5px; color: var(--ink-soft); margin: 8px 0 0; }
.facts .limits { margin: 28px auto 0; max-width: 760px; background: var(--paper); border: 1px dashed var(--accent-border); border-radius: 16px; padding: 14px 18px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.facts .limits b { color: var(--ink-strong); }

/* how + faq + final */
.how { padding: 20px 0 80px; }
.how ol { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how li { background: var(--paper); border: 1px solid var(--accent-border); border-radius: 18px; padding: 20px 20px 22px; font-size: 14.5px; color: var(--ink-soft); }
.how li::before { counter-increment: s; content: "STEP 0" counter(s); display: block; font-size: 11px; letter-spacing: .2em; color: var(--accent-text); font-weight: 800; }
.how li b { display: block; color: var(--ink-strong); font-size: 16px; margin: 6px 0 6px; }
.faq { padding: 20px 0 80px; }
.faq details { background: #fff; border-radius: 16px; padding: 2px 20px; box-shadow: 0 1px 3px rgba(40,40,40,.05); margin-top: 8px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-strong); font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14.5px; }
.final { padding: 90px 0 80px; text-align: center; }
.final h2 { font-size: clamp(28px, 4vw, 44px); }
.final .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer { padding: 30px 0 46px; font-size: 13px; color: var(--ink-hint); border-top: 1px solid rgba(40,40,40,.08); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1120px; }
footer a { color: var(--ink-soft); text-decoration: none; margin-right: 16px; }
footer .langs { width: 100%; }
footer .langs a, footer .langs strong { margin-right: 14px; }

/* JS があるときだけ、入ってきた順に見せる（JS が無い・AI クローラでも全文が見える） */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
.js .reading .dot .b { transform: translateX(-50%) scale(.6); }
.js .reading.in .dot .b { transform: translateX(-50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .js .reading .dot .b { transform: translateX(-50%) scale(1); transition: none; } }

@media (max-width: 820px) {
  .hero { padding: 56px 0 36px; }
  .top nav { display: none; }
  .hero .visual { grid-template-columns: 1fr; gap: 18px; }
  .hero .arrow-big span { transform: rotate(90deg); }
  .paper { font-size: 11.5px; padding: 22px 14px 16px; overflow-x: auto; }
  .rail { left: 22px; }
  .reading, .reading.flip { grid-template-columns: 52px 1fr; padding: 30px 0; }
  .reading .when, .reading.flip .when { grid-column: 2; grid-row: 1; text-align: left; padding: 0 0 8px 12px; }
  .reading .when .phone-sm, .reading.flip .when .phone-sm { display: none; }
  .reading .dot, .reading.flip .dot { grid-column: 1; grid-row: 1 / span 2; }
  .reading .dot .b { width: 46px; height: 46px; font-size: 17px; left: 22px; top: 2px; }
  .reading .card, .reading.flip .card { grid-column: 2; grid-row: 2; margin: 0 0 0 12px; padding: 20px 20px; }
  .reading .card .phone-sm { display: block !important; width: min(240px, 100%); margin: 18px auto 0; }
  .between span { margin-left: 44px; }
  .proof .grid { grid-template-columns: 1fr; gap: 28px; }
  .uses .cols, .facts .cols, .how ol { grid-template-columns: 1fr; }
  .ba td { padding: 10px 10px; font-size: 14px; }
}
.reading .card .phone-sm { display: none; }
/* 狭い画面では上部のボタンを出さない（アプリ名に重なる。同じボタンがヒーローにある） */
@media (max-width: 560px) { .top .btn { display: none; } }
