/* WhenWhereWhat — アプリの配色（Theme.swift）に合わせる。 */
@font-face {
  font-family: "Cenotaph Titling";
  src: url("/fonts/Cenotaph-Titling.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #F6F4EF;
  --bg2: #ECE7DE;
  --card: #FFFFFF;
  --line: #E2DCD2;
  --text: #1B1A17;
  --text2: #6F685E;
  --text3: #A39C92;
  --accent: #45697A;
  --when: #CB6058;
  --where: #4FA574;
  --what: #8168C4;
  --gold: #C4972B;
  --slate: #5E7A8F;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1A17;
    --bg2: #211F1B;
    --card: #2A2823;
    --line: #3A3630;
    --text: #F6F4EF;
    --text2: #B5AEA4;
    --text3: #7D776E;
    --accent: #6E92A3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
  font-feature-settings: "palt";
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark { font-family: "Cenotaph Titling", "Times New Roman", serif; font-size: 20px; letter-spacing: 0.04em; }
.site-nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 14px; }
.site-nav a { color: var(--text2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 640px) {
  .site-nav .opt { display: none; }
  .wordmark { font-size: 17px; }
}

/* ── ヒーロー ── */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: flex; gap: 10px; font-family: "Cenotaph Titling", serif; font-size: 18px; letter-spacing: 0.06em; margin: 0 0 18px; }
.eyebrow .w1 { color: var(--when); } .eyebrow .w2 { color: var(--where); } .eyebrow .w3 { color: var(--what); }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.3; margin: 0 0 20px; letter-spacing: 0.02em; font-weight: 700; }
.hero p.lead { font-size: 17px; color: var(--text2); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  background: var(--text); color: var(--bg);
}
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn[aria-disabled="true"] { opacity: 0.9; cursor: default; }
.note { font-size: 13px; color: var(--text3); }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ── 端末の枠（スクリーンショット） ── */
.phone {
  border-radius: 44px; padding: 10px; background: #111; max-width: 300px; margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(27, 26, 23, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.phone img { border-radius: 34px; width: 100%; }
.phone.small { max-width: 240px; border-radius: 36px; padding: 8px; }
.phone.small img { border-radius: 28px; }

/* ── 節 ── */
section { padding: 64px 0; }
section.alt { background: var(--bg2); }
.section-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; margin: 0 0 12px; }
.section-lead { color: var(--text2); margin: 0 0 36px; max-width: 40em; }

/* When / Where / What */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trio article { text-align: center; }
.trio h3 { font-family: "Cenotaph Titling", serif; font-size: 26px; letter-spacing: 0.05em; margin: 22px 0 2px; font-weight: 400; }
.trio .sub { font-weight: 600; margin: 0 0 8px; }
.trio p { color: var(--text2); font-size: 15px; margin: 0; text-align: left; }
.t-when { color: var(--when); } .t-where { color: var(--where); } .t-what { color: var(--what); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; gap: 48px; } }

/* 機能の一覧 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.card h3 { font-size: 17px; margin: 10px 0 6px; }
.card p { color: var(--text2); font-size: 14.5px; margin: 0; }
.dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 18px; }
.pro-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--accent); border: 1px solid currentColor; border-radius: 6px; padding: 0 6px; margin-left: 6px; vertical-align: 2px;
}
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* Watch */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split .media img { border-radius: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* プライバシー */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--where);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3C/svg%3E");
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.45em + 4px); width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checks strong { display: block; }
.checks span { color: var(--text2); font-size: 14.5px; }
@media (max-width: 700px) { .checks { grid-template-columns: 1fr; } }

/* Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { color: var(--text2); font-size: 14px; margin: 0 0 14px; }
.plan ul { margin: 0; padding-left: 1.2em; color: var(--text2); font-size: 15px; }
.plan ul li + li { margin-top: 6px; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--text3); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--text2); }
.faq details > div p { margin: 0 0 8px; }

/* お問い合わせ */
.contact-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.contact-box .mail { font-size: 20px; font-weight: 700; word-break: break-all; }
.steps { padding-left: 1.3em; color: var(--text2); }
.steps li + li { margin-top: 4px; }

/* 法務文書 */
.doc { padding: 48px 0 72px; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 6px; }
.doc .date { color: var(--text3); font-size: 14px; margin: 0 0 24px; }
.doc .lead { color: var(--text2); white-space: pre-line; margin: 0 0 32px; }
.doc h2 { font-size: 18px; margin: 32px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc .body { white-space: pre-line; color: var(--text2); margin: 0; }
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 8px; font-size: 14px; }
.doc .toc ol { margin: 6px 0 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.lang-note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--text2); margin-bottom: 24px; }

/* ── フッター ── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--text2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer a { color: var(--text2); }
.site-footer small { color: var(--text3); }

.center { text-align: center; }
.mt0 { margin-top: 0; }

/* 小さな調整（CSP で style 属性を使わないため） */
.bg-when { background: var(--when); } .bg-where { background: var(--where); } .bg-what { background: var(--what); }
.bg-gold { background: var(--gold); } .bg-slate { background: var(--slate); } .bg-accent { background: var(--accent); }
.jc { justify-content: center; }
.mb0 { margin-bottom: 0; } .mb4 { margin-bottom: 4px; } .mb6 { margin-bottom: 6px; }
.mxa { margin-left: auto; margin-right: auto; }
.mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt28 { margin-top: 28px; } .mt40 { margin-top: 40px; }
.nb { display: inline-block; }

/* ヘッダーを狭い画面に収める */
.site-nav a { white-space: nowrap; }
.brand { min-width: 0; flex-shrink: 1; }
.lang-switch .short { display: none; }
@media (max-width: 480px) {
  .site-header .wrap { gap: 12px; padding: 0 16px; }
  .brand { gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .wordmark { font-size: 14px; letter-spacing: 0.02em; }
  .site-nav { gap: 12px; font-size: 13px; }
  .lang-switch { padding: 1px 8px; }
  .lang-switch .long { display: none; }
  .lang-switch .short { display: inline; }
  .contact-box { padding: 22px; }
  .contact-box .mail { font-size: 16px; }
}
