/* トップページ（紹介ページ）のスタイル。色・フォントはアプリの theme/tokens.ts とそろえる
   夜（ヒーロー）と昼（本文）の切り替えがデザインの軸なので、ダークモードでも配色は変えない */
:root {
  color-scheme: light;
  --bg: #f4efe6;
  --bg-day: #e9e2d6;
  --night: #17120f;
  --night-2: #221a15;
  --surface: #ffffff;
  --surface-muted: #eae0d0;
  --border: #e4dccd;
  --text: #2b211b;
  --text-2: #4f443a;
  --muted: #6b5e52;
  --on-dark: #f4efe6;
  --on-dark-muted: #d8ccbc;
  --primary: #6b4226;
  --primary-text: #5a3620;
  --accent: #f2b35e;
  --radius: 20px;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-num: "Cormorant Garamond", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.num { font-family: var(--font-num); font-weight: 500; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--font-num); font-weight: 600; font-size: 15px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}
.section { padding: 112px 0; }
.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.45; letter-spacing: 0.02em; margin: 0 0 16px; font-weight: 700; }
.section-head p { color: var(--muted); margin: 0; }
.light .eyebrow { color: var(--primary); }

/* ---- ヘッダー ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  background: rgba(23, 18, 15, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-family: var(--font-num); font-weight: 600; font-size: 24px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: var(--on-dark); }
.header-cta { background: var(--accent); color: var(--night); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 999px; }
@media (max-width: 760px) { .site-nav { display: none; } .header-cta { margin-left: auto; } }

/* ---- ボタン ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; line-height: 1.4; }
.btn-primary { background: var(--accent); color: var(--night); box-shadow: 0 10px 30px rgba(242, 179, 94, 0.25); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border: 1px solid rgba(244, 239, 230, 0.28); color: var(--on-dark-muted); cursor: default; }
.btn small { font-weight: 500; font-size: 12px; opacity: 0.8; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---- ヒーロー（夜のカフェ） ---- */
.hero {
  position: relative; color: var(--on-dark); padding: 136px 0 96px;
  background:
    radial-gradient(60% 70% at 72% 48%, rgba(107, 66, 38, 0.55), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(242, 179, 94, 0.08), transparent 70%),
    var(--night);
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.3; letter-spacing: 0.03em; margin: 0 0 24px; font-weight: 700; }
.hero .lead { color: var(--on-dark-muted); font-size: 17px; margin: 0 0 32px; max-width: 30em; }
.hero .lead strong { color: var(--on-dark); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-facts li { font-size: 13px; color: var(--on-dark-muted); border: 1px solid rgba(244, 239, 230, 0.16); border-radius: 999px; padding: 4px 14px; }
.hero-visual { position: relative; }
.hero-visual > img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.5)); }
.float-timer {
  position: absolute; left: 2%; bottom: 6%;
  background: rgba(23, 18, 15, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 239, 230, 0.12); border-radius: 18px; padding: 12px 20px 14px; min-width: 190px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.float-timer .state { font-size: 12px; color: var(--on-dark-muted); display: flex; align-items: center; gap: 6px; }
.float-timer .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.float-timer .time { font-size: 48px; line-height: 1.1; color: var(--on-dark); }
.float-timer .bar { height: 3px; background: rgba(244, 239, 230, 0.15); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.float-timer .bar span { display: block; height: 100%; width: 62%; background: var(--accent); }
.float-bubble {
  position: absolute; right: 8%; top: 8%;
  background: var(--bg); color: var(--text); font-size: 13px; padding: 8px 14px; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.float-bubble b { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) {
  .hero { padding: 104px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
}

/* ---- Focus Cafe とは（数字） ---- */
.about { background: var(--bg); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { color: var(--text-2); margin: 0 0 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.stat dt { font-size: 13px; color: var(--muted); }
.stat dd { margin: 0; font-size: 15px; color: var(--text-2); }
.stat dd .num { font-size: 52px; line-height: 1.1; color: var(--text); display: inline-block; margin-right: 4px; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* ---- 夜と昼 ---- */
.daynight { background: var(--bg-day); }
.daynight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dn-card { border-radius: 28px; padding: 32px 32px 28px; overflow: hidden; }
.dn-card.night { background: radial-gradient(70% 60% at 50% 45%, rgba(107, 66, 38, 0.5), transparent 75%), var(--night); color: var(--on-dark); }
.dn-card.day { background: radial-gradient(70% 60% at 50% 45%, rgba(255, 255, 255, 0.9), transparent 75%), #efe8dc; color: #2b211b; }
.dn-card img { width: 100%; margin: 0 auto 20px; }
.dn-card h3 { font-size: 22px; margin: 0 0 6px; }
.dn-card h3 .num { font-size: 15px; letter-spacing: 0.2em; margin-right: 10px; color: var(--accent); }
.dn-card.day h3 .num { color: var(--primary); }
.dn-card p { margin: 0; font-size: 15px; opacity: 0.85; }
@media (max-width: 760px) { .daynight-grid { grid-template-columns: 1fr; } .dn-card { padding: 24px 20px; } }

/* ---- 機能（スマホの画面と説明を交互に） ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature.reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature h3 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.5; margin: 0 0 16px; }
.feature p { color: var(--text-2); margin: 0 0 16px; }
.feature ul { padding: 0; margin: 0; list-style: none; }
.feature li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--text-2); font-size: 15px; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-media { order: 0; }
}

/* スマホの枠 */
.phone {
  width: 280px; aspect-ratio: 540 / 1168; border-radius: 44px; padding: 10px;
  background: #2b2522; box-shadow: 0 30px 60px rgba(43, 33, 27, 0.28), inset 0 0 0 2px #463d38;
  position: relative;
}
.phone > .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; }
.phone > .screen > img { width: 100%; height: 100%; object-fit: cover; }

/* 部屋の画面（HTML で再現） */
.room-screen { background: var(--night); color: var(--on-dark); display: flex; flex-direction: column; padding: 44px 16px 18px; }
.room-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--on-dark-muted); }
.room-top b { color: var(--on-dark); font-weight: 500; }
.room-top .badge { background: #a3322a; color: #fff; border-radius: 999px; font-size: 10px; padding: 0 6px; margin-left: 4px; }
.room-screen .cafe { margin: auto -10px; }
.room-screen .label { font-size: 12px; color: var(--on-dark-muted); text-align: center; }
.room-screen .time { font-size: 64px; line-height: 1; text-align: center; margin: 4px 0 14px; }
.room-screen .pause { background: var(--on-dark); color: var(--night); border-radius: 999px; text-align: center; font-size: 13px; font-weight: 700; padding: 10px; }

/* チャットの画面（HTML で再現） */
.chat-screen { background: #f4efe6; color: #2b211b; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.6; }
.chat-title { text-align: center; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg .ava { width: 26px; height: 26px; border-radius: 50%; flex: none; background: #eae0d0; display: grid; place-items: center; font-size: 11px; color: #6b4226; font-weight: 700; }
.msg .name { font-size: 10px; color: #6b5e52; }
.msg .body { background: #fff; border-radius: 4px 14px 14px 14px; padding: 6px 10px; box-shadow: 0 1px 0 #e4dccd; }
.msg.log { justify-content: center; color: #6b5e52; font-size: 10px; }
.chat-input { margin-top: auto; display: flex; gap: 8px; }
.chat-input span { flex: 1; background: #fff; border: 1px solid #d2c7b4; border-radius: 999px; padding: 6px 12px; color: #6b5e52; }
.chat-input b { background: #6b4226; color: #f4efe6; border-radius: 999px; padding: 6px 14px; }

.avatar-stage { width: 300px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, var(--surface-muted)); display: grid; place-items: center; }
.avatar-stage img { width: 78%; transform: translateY(4%); }

/* ---- はじめかた ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps .num { font-size: 44px; line-height: 1; color: var(--accent); display: block; margin-bottom: 12px; }
.steps h3 { font-size: 17px; margin: 0 0 6px; }
.steps p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- くらべる ---- */
.compare { background: var(--bg-day); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: none; }
.compare thead th { font-size: 13px; color: var(--muted); font-weight: 500; background: var(--surface-muted); }
.compare thead th.us { background: var(--primary); color: #f4efe6; font-weight: 700; }
.compare td.us { background: rgba(242, 179, 94, 0.12); font-weight: 500; }
.compare tbody th { font-weight: 700; white-space: nowrap; }
/* 横にスクロールしても項目名が見えるように、左の列を固定する */
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare thead th:first-child { background: var(--surface-muted); }
.compare .note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---- こんな人に ---- */
.persona { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.persona article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.persona h3 { font-size: 17px; margin: 0 0 8px; }
.persona p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }
.persona .icon { font-size: 26px; line-height: 1; margin-bottom: 14px; display: block; }
@media (max-width: 960px) { .persona { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .persona { grid-template-columns: 1fr; } }

/* ---- 料金 ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 32px; }
.plan.plus { background: var(--night); color: var(--on-dark); border-color: var(--night); position: relative; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { margin: 8px 0 20px; font-size: 15px; }
/* 数字は高さのそろった字形にし、補足の行は両方のカードに置いて、下のリストの始まる高さをそろえる */
.plan .price .num { font-size: 56px; line-height: 1; margin-right: 4px; font-variant-numeric: lining-nums; }
.plan .price small { color: var(--muted); display: block; font-size: 13px; margin-top: 8px; }
.plan.plus .price small { color: var(--on-dark-muted); }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.plan li { padding: 10px 0 10px 26px; border-top: 1px solid var(--border); position: relative; }
.plan.plus li { border-color: rgba(244, 239, 230, 0.12); color: var(--on-dark-muted); }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--primary); font-weight: 700; }
.plan.plus li::before { color: var(--accent); }
.plan .tag { position: absolute; top: 28px; right: 28px; background: var(--accent); color: var(--night); font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.plans-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---- よくある質問 ---- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-num); font-size: 28px; color: var(--primary); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: var(--text-2); }

/* ---- 最後の呼びかけ ---- */
.closing { background: radial-gradient(60% 80% at 50% 100%, rgba(107, 66, 38, 0.6), transparent 70%), var(--night); color: var(--on-dark); text-align: center; padding: 112px 0 0; overflow: hidden; }
.closing h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.45; margin: 0 0 16px; }
.closing p { color: var(--on-dark-muted); margin: 0 0 32px; }
.closing .hero-actions { justify-content: center; }
.closing img { width: min(720px, 100%); margin: 40px auto -12%; }

/* ---- フッター ---- */
.site-footer { background: #120e0b; color: var(--on-dark-muted); padding: 48px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .copy { margin-left: auto; font-size: 13px; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .phone { width: 250px; }
  .section-head.center { text-align: left; }
  .float-timer { min-width: 0; padding: 8px 14px 10px; border-radius: 14px; }
  .float-timer .time { font-size: 34px; }
  .float-bubble { font-size: 12px; padding: 6px 10px; }
}

/* ---- 記事のページ ---- */
.article-hero { background: radial-gradient(60% 90% at 80% 30%, rgba(107, 66, 38, 0.5), transparent 70%), var(--night); color: var(--on-dark); padding: 120px 0 56px; }
.article-hero .wrap, .article-body { max-width: 760px; }
.breadcrumb { font-size: 13px; color: var(--on-dark-muted); margin: 0 0 20px; }
.breadcrumb a { color: var(--on-dark-muted); }
.article-hero h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.45; margin: 0 0 16px; letter-spacing: 0.02em; }
.article-hero .meta { font-size: 13px; color: var(--on-dark-muted); margin: 0; }
.article-body { margin: 0 auto; padding: 56px 24px 96px; }
.article-body h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.5; margin: 64px 0 16px; padding-top: 8px; border-top: 2px solid var(--text); }
.article-body h3 { font-size: 18px; margin: 32px 0 8px; }
.article-body p, .article-body li { color: var(--text-2); }
.article-body li { margin: 6px 0; }
.article-body strong { color: var(--text); }
.summary { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 16px; padding: 20px 24px; margin: 0 0 40px; }
.summary p { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.summary ul { margin: 0; padding-left: 20px; }
.toc { background: var(--bg-day); border-radius: 16px; padding: 20px 24px; margin: 0 0 16px; }
.toc p { margin: 0 0 4px; font-weight: 700; font-size: 14px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; margin: 16px 0; background: var(--surface); border-radius: 12px; overflow: hidden; }
.article-body th, .article-body td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.article-body thead th { background: var(--surface-muted); font-size: 13px; }
.article-body .table-wrap { margin: 16px 0; }
.article-body .table-wrap table { margin: 0; min-width: 560px; }
.article-body figure { margin: 32px 0; }
.article-body figure img { border-radius: 20px; background: var(--night); padding: 16px; }
.article-body figure.day img { background: #efe8dc; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.callout { background: var(--night); color: var(--on-dark); border-radius: 24px; padding: 28px; margin: 48px 0; display: grid; grid-template-columns: 1fr 160px; gap: 20px; align-items: center; }
.callout h2, .callout h3 { border: none; margin: 0 0 8px; padding: 0; font-size: 20px; color: var(--on-dark); }
.callout p { color: var(--on-dark-muted); margin: 0 0 16px; font-size: 15px; }
.callout .btn { padding: 10px 20px; font-size: 14px; }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; } .callout img { max-width: 200px; } }
.article-body .faq-list { margin: 0; }
.related { list-style: none; padding: 0; display: grid; gap: 12px; }
.related a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; text-decoration: none; color: var(--text); font-weight: 700; }
.related a span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }

/* ---- トップページの読みもの ---- */
.reads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reads a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); }
.reads a:hover { border-color: var(--primary); }
.reads h3 { font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
.reads p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.8; }
.reads .num { color: var(--accent); font-size: 14px; letter-spacing: 0.2em; display: block; margin-bottom: 8px; }
@media (max-width: 860px) { .reads { grid-template-columns: 1fr; } }
