:root {
  --paper: #faf6ee;
  --paper-2: #f2ebdd;
  --card: #fffdf8;
  --ink: #23262b;
  --ink-2: #474c54;
  --muted: #6d7178;
  --line: #e4dccb;
  --accent: #b5562e;      /* 柿 */
  --ai: #2e4a7a;          /* 藍 */
  --ai-soft: #e9eef6;
  --ok: #3d7555;
  --ok-soft: #e6f0e8;
  --warn-soft: #fbefd2;
  --radius: 14px;
  --heading: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "palt" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.4; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
.nw { display: inline-block; }
h1, h2 { word-break: keep-all; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand img { width: 132px; }
.header-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.header-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); display: none; }
.header-nav a:not(.btn):hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(35, 38, 43, .18); }
.btn-primary:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
:focus-visible { outline: 3px solid var(--ai); outline-offset: 3px; border-radius: 6px; }

/* ---------- common ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(24px, 5.6vw, 34px); margin-bottom: 28px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .12em; margin-bottom: 10px; }
.eyebrow-light { color: #f0b89c; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.h-small { font-size: 18px !important; margin-bottom: 12px !important; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { font-size: clamp(30px, 7.6vw, 50px); line-height: 1.38; }
.hero h1 .accent { color: var(--accent); }
.lead { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.hero-facts li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* ---------- hero demo (animated mock) ---------- */
.demo { margin: 0; }
.demo-screen {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(60, 45, 20, .12), 0 2px 6px rgba(60, 45, 20, .06);
  overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.demo-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d8cfbd; }
.demo-bar em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 8px; }
.demo-body { padding: 16px; display: grid; gap: 12px; font-size: 14px; line-height: 1.7; }
.d-label { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; }
.d-label-ai { color: var(--ai); }
.d-mail { background: var(--paper); border-radius: 10px; padding: 12px 14px; }
.d-ask { background: var(--ai-soft); border-radius: 10px; padding: 12px 14px; border-left: 3px solid var(--ai); }
.d-ask > p:not(.d-label) { font-weight: 700; }
.d-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.d-choice { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #c9d3e3; }
.d-other { background: transparent; border-color: transparent; text-decoration: underline; color: var(--ai); }
.d-draft { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; }
.tag-you { background: var(--ok-soft); color: var(--ok); }
.tag-faq { background: var(--ai-soft); color: var(--ai); }
.d-toast { display: flex; align-items: center; gap: 10px; background: var(--ok-soft); color: #264a36; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 13px; }
.check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 12px; flex: none; }
.demo figcaption { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* 14秒で一周するループ */
.d-step { opacity: 0; animation: 14s ease-in-out infinite; }
.s1 { animation-name: show1; }
.s2 { animation-name: show2; }
.s3 { animation-name: show3; }
.s4 { animation-name: show4; }
.d-picked { animation: pick 14s ease-in-out infinite; }
@keyframes show1 { 0% { opacity: 0; transform: translateY(8px); } 4%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes show2 { 0%, 13% { opacity: 0; transform: translateY(8px); } 17%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes show3 { 0%, 42% { opacity: 0; transform: translateY(8px); } 46%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes show4 { 0%, 62% { opacity: 0; transform: translateY(8px); } 66%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes pick {
  0%, 30% { background: #fff; color: var(--ink); border-color: #c9d3e3; }
  33%, 90% { background: var(--ai); color: #fff; border-color: var(--ai); }
  97%, 100% { background: #fff; color: var(--ink); border-color: #c9d3e3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d-step { animation: none; opacity: 1; }
  .d-picked { animation: none; background: var(--ai); color: #fff; border-color: var(--ai); }
}

/* ---------- before / after ---------- */
.before-after { background: var(--paper-2); }
.ba-grid { display: grid; gap: 14px; align-items: stretch; }
.ba-card { background: var(--card); border-radius: var(--radius); padding: 22px 22px 18px; border: 1px solid var(--line); }
.ba-title { font-family: var(--heading); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.ba-now .ba-title { color: var(--muted); }
.ba-next { border: 2px solid var(--ink); }
.ba-next .ba-title { color: var(--accent); }
.ba-card ol { margin: 0; padding-left: 1.3em; }
.ba-card li { padding: 3px 0; }
.ba-now li { color: var(--ink-2); }
.ba-arrow { text-align: center; font-size: 24px; color: var(--muted); transform: rotate(90deg); line-height: 1; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: none; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.step-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-family: var(--heading); margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- trust ---------- */
.trust { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; gap: 22px; }
.trust-item { padding-left: 16px; border-left: 3px solid var(--accent); }
.trust-item h3 { font-size: 18px; margin-bottom: 4px; }
.trust-item p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- guest ai ---------- */
.guest-grid { display: grid; gap: 24px; align-items: center; }
.guest-grid p { color: var(--ink-2); max-width: 34em; }
.guest-link {
  display: block; text-decoration: none; background: var(--ai); color: #fff;
  border-radius: var(--radius); padding: 24px;
  transition: transform .15s ease;
}
.guest-link:hover { transform: translateY(-2px); }
.guest-link span { display: block; font-size: 13px; opacity: .8; }
.guest-link strong { font-family: var(--heading); font-size: 19px; }

/* ---------- price ---------- */
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; display: grid; gap: 22px; }
.price-label { font-size: 14px; color: var(--muted); font-weight: 700; }
.price-value { font-family: var(--heading); font-weight: 700; font-size: 48px; line-height: 1.2; }
.price-value span { font-size: 20px; margin-left: 4px; }
.price-sub { font-size: 13px; color: var(--muted); }
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.price-list li { font-size: 15px; color: var(--ink-2); }
.price-list strong { display: block; color: var(--ink); font-size: 15px; }

.early-card { margin-top: 16px; background: var(--warn-soft); border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 6px; }
.early-badge { justify-self: start; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 12px; }
.early-text { font-size: 15.5px; }
.early-text strong { color: var(--accent); }
@media (min-width: 720px) { .early-card { grid-template-columns: auto 1fr; align-items: center; gap: 18px; } }

/* ---------- diagnosis ---------- */
.diagnosis { background: var(--ink); color: #f4efe6; }
.diagnosis h2 { color: #fff; }
.diag-grid { display: grid; gap: 28px; }
.diag-grid > div > p { color: #d9d3c8; max-width: 32em; }
.diag-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.diag-list li::before { content: "✓"; color: #9fd0b0; font-weight: 700; margin-right: 8px; }
.diag-card { background: #2e3238; border-radius: var(--radius); padding: 24px 22px; }
.diag-how { font-weight: 700; color: #fff; margin-bottom: 8px; }
.diag-card ol { margin: 0 0 20px; padding-left: 1.3em; color: #d9d3c8; font-size: 15px; }
.diag-card li { padding: 3px 0; }
.diag-card .btn { width: 100%; }
.diag-fine { font-size: 12.5px; color: #aaa497; margin-top: 12px; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- status / final ---------- */
.status { padding: 40px 0; }
.status p { font-size: 14px; color: var(--muted); }
.final-cta { padding: 56px 0 72px; text-align: center; background: var(--paper-2); }
.final-title { font-family: var(--heading); font-weight: 700; font-size: 24px; margin-bottom: 18px; }

.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-footer p { font-size: 12px; color: var(--muted); }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .header-nav a:not(.btn) { display: inline; }
  .hero-actions .btn { flex: 0 0 auto; }
  .ba-grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .ba-arrow { transform: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card { grid-template-columns: 240px 1fr; align-items: center; padding: 36px; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .section { padding: 96px 0; }
  .guest-grid { grid-template-columns: 1.4fr 1fr; }
  .diag-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px; }
}
