:root {
  --paper: #f2eee5;
  --paper-2: #fbf9f5;
  --card: #ffffff;
  --ink: #191814;
  --ink-2: #514d43;
  --ink-3: #8a8478;
  --line: #dcd6c8;
  --line-2: #ebe6da;
  --forest: #1d5a4a;
  --forest-2: #144136;
  --forest-ink: #f3faf6;
  --ember: #bc4218;
  --sand: #f4dcae;
  --dark: #14201c;
  --dark-2: #1c2b26;
  --dark-ink: #e7e3d8;

  --measure: 1180px;
  --radius: 4px;
  --shadow: 0 1px 0 var(--line), 0 18px 40px -32px rgba(25, 24, 20, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}

/* 罫線の方眼を全面に薄く敷き、紙の上に組んだ誌面という基調を作る */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(25, 24, 20, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 24, 20, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.latin {
  font-family: "Bricolage Grotesque", "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--ember);
  flex: none;
}

/* ── header ───────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 238, 229, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 66px;
}
.brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand .mark {
  width: 22px;
  height: 22px;
  flex: none;
}
nav.top {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}
nav.top a:hover { color: var(--ember); }
.top-cta { display: flex; align-items: center; gap: 1rem; }
.top-cta.solo { margin-left: auto; }

/* ── buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--forest-ink);
  box-shadow: 0 10px 24px -14px rgba(29, 90, 74, 0.9);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(29, 90, 74, 0.95); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper-2); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.86rem; }
.btn-light {
  background: var(--paper-2);
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(243, 250, 246, 0.45); color: var(--forest-ink); }
.btn-outline-light:hover { background: rgba(243, 250, 246, 0.12); }
.link-quiet { font-size: 0.88rem; font-weight: 500; color: var(--ink-2); }
.link-quiet:hover { color: var(--ember); }

/* ── hero ─────────────────────────────────────────── */
section.hero { padding: 5.5rem 0 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}
h1.hero-title {
  font-size: clamp(2.45rem, 5.2vw, 3.9rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}
h1.hero-title .accent {
  position: relative;
  white-space: nowrap;
}
/* 見出しの芯になる語だけ橙の下線で殴り書きの強さを出す */
h1.hero-title .accent::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.06em;
  height: 0.22em;
  background: var(--sand);
  z-index: -1;
  transform: skewX(-8deg);
}
p.lede {
  font-size: 1.09rem;
  color: var(--ink-2);
  margin: 0 0 2rem;
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note {
  margin: 1.6rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}
.hero-note b { color: var(--forest); font-weight: 700; }

.hero-figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.1rem;
}
.hero-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  border-top: 1px dashed var(--line);
  padding-top: 0.7rem;
}

/* ── section shell ────────────────────────────────── */
section.band { padding: 5rem 0; border-top: 1px solid var(--line); }
section.band.plain { border-top: none; }
.section-head { max-width: 40em; margin-bottom: 3rem; }
h2.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }

/* ── problems ─────────────────────────────────────── */
.problems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.problem {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2.4rem 1.5rem 1.6rem;
  overflow: hidden;
}
.problem .num {
  position: absolute;
  top: -0.55rem;
  right: 0.6rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--line-2);
  pointer-events: none;
}
.problem h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  position: relative;
}
.problem p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
.problem .voice {
  display: block;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-size: 0.86rem;
  color: var(--ember);
  font-weight: 500;
}

/* ── steps ────────────────────────────────────────── */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { border-top: 3px solid var(--forest); padding-top: 1.1rem; }
.step .step-n {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--forest);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.16rem; font-weight: 700; margin: 0 0 0.55rem; }
.step p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }
.step code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.84em;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 0.05em 0.35em;
}

/* ── dark figure block ────────────────────────────── */
.dark-block {
  margin-top: 3rem;
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: 12px;
  padding: 2.4rem 2rem 1.8rem;
  position: relative;
  overflow: hidden;
}
.dark-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(231, 227, 216, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(231, 227, 216, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.dark-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 700;
  position: relative;
}
.dark-block > p {
  margin: 0 0 1.8rem;
  font-size: 0.92rem;
  color: rgba(231, 227, 216, 0.68);
  position: relative;
  max-width: 46em;
}
.dark-block figure { margin: 0; position: relative; }

/* ── features ─────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
}
.feature {
  padding: 1.9rem 1.6rem;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.feature:nth-child(3n) { border-right: none; }
.feature:nth-last-child(-n+3) { border-bottom: none; }
.feature .ficon {
  width: 30px;
  height: 30px;
  color: var(--forest);
  margin-bottom: 0.9rem;
}
.feature h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.5rem; }
.feature p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.feature .tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── comparison ───────────────────────────────────── */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.93rem; }
table.compare th, table.compare td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
table.compare thead th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 700;
  background: var(--paper-2);
}
table.compare tbody th { font-weight: 700; white-space: nowrap; }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }
table.compare tr.mine { background: rgba(29, 90, 74, 0.06); }
table.compare tr.mine th { color: var(--forest); }
table.compare td.muted { color: var(--ink-3); }

/* ── trust list ───────────────────────────────────── */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.trust > div {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.trust > div > div { min-width: 0; }
.trust > div > svg { flex: none; width: 20px; height: 20px; color: var(--forest); margin-top: 0.35rem; }
.trust h3 { margin: 0 0 0.2rem; font-size: 0.99rem; font-weight: 700; }
.trust p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }

/* ── plans ────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.plan.featured {
  border: 2px solid var(--forest);
  box-shadow: var(--shadow);
}
.plan-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.plan-name .pill {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--forest);
  color: var(--forest-ink);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.plan .plan-lede {
  margin: 0;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-2);
  font-size: 1rem;
  color: var(--ink-2);
}
.plan .price { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.3; }
.plan .price small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; font-size: 0.92rem; color: var(--ink-2); }
.plan ul li { display: flex; gap: 0.55rem; }
.plan ul li::before { content: "—"; color: var(--forest); flex: none; }
.plan .btn { margin-top: auto; justify-content: center; }
.price-note {
  margin: 1.5rem 0 0;
  max-width: 46em;
  font-size: 0.86rem;
  color: var(--ink-3);
  border-left: 3px solid var(--sand);
  padding-left: 0.9rem;
}

/* ── faq ──────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-weight: 700;
  font-size: 1.01rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 1.1rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem;
  color: var(--ember);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; font-size: 0.94rem; color: var(--ink-2); max-width: 52em; }

/* ── closing cta ──────────────────────────────────── */
section.closing {
  background: var(--forest);
  color: var(--forest-ink);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
section.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(243, 250, 246, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243, 250, 246, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
section.closing .wrap { text-align: center; }
section.closing h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 1rem;
}
section.closing p { margin: 0 auto 2.2rem; max-width: 34em; color: rgba(243, 250, 246, 0.78); }
section.closing .hero-actions { justify-content: center; }

/* ── footer ───────────────────────────────────────── */
footer.site {
  background: var(--dark);
  color: rgba(231, 227, 216, 0.75);
  padding: 3rem 0 2.2rem;
  font-size: 0.88rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
footer.site .brand { color: var(--dark-ink); margin-bottom: 0.5rem; }
footer.site nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
footer.site a:hover { color: #fff; }
footer.site .small { font-size: 0.8rem; color: rgba(231, 227, 216, 0.45); }

/* 立ち上がりだけ丁寧に見せる。以降のスクロールでは邪魔をしない */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .reveal:nth-child(2) { animation-delay: 0.08s; }
  .reveal:nth-child(3) { animation-delay: 0.16s; }
  .d1 { animation-delay: 0.06s; }
  .d2 { animation-delay: 0.14s; }
  .d3 { animation-delay: 0.22s; }
  .d4 { animation-delay: 0.3s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .problems, .steps, .features, .plans { grid-template-columns: 1fr; }
  .features { border-radius: 10px; }
  .feature { border-right: none; }
  .feature:not(:last-child) { border-bottom: 1px solid var(--line-2); }
  .trust { grid-template-columns: 1fr; }
  nav.top { display: none; }
}
@media (max-width: 620px) {
  section.hero { padding: 3.2rem 0 2.5rem; }
  section.band { padding: 3.4rem 0; }
  .wrap { padding: 0 18px; }
  header.site .wrap { gap: 0.75rem; min-height: 58px; }
  .brand { font-size: 1rem; }
  .top-cta .link-quiet { display: none; }
}

/* 横長の流れ図は縮めると文字が読めなくなるので、縮小せず枠内で流す */
.fig-scroll { overflow-x: auto; margin: 0; }
.fig-scroll svg { min-width: 680px; display: block; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .code {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--line);
}
.notfound h1 { font-size: 1.5rem; font-weight: 900; margin: 0.5rem 0 0.8rem; }
.notfound p { color: var(--ink-2); margin: 0 0 1.8rem; }

/* ヒーローの図は、狭い画面で縮めると文字が読めなくなるので縦積みの版に差し替える */
.fig-narrow { display: none; }
@media (max-width: 620px) {
  .fig-wide { display: none; }
  .fig-narrow { display: block; }
  .hero-figure { padding: 1.1rem 1rem 0.9rem; }
}

/* ── legal (privacy) ─────────────────────────────── */
.legal { max-width: 48em; padding: 3.4rem 24px 4.5rem; }
.legal h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; margin: 0 0 0.5rem; }
.legal .updated { color: var(--ink-3); font-size: 0.85rem; margin: 0 0 2.4rem; }
.legal h2 {
  font-size: 1.1rem; font-weight: 700; margin: 2.4rem 0 0.8rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--ink-2); font-size: 0.96rem; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--forest); text-decoration: underline; }
.legal .back { display: inline-block; margin-top: 2rem; font-weight: 700; text-decoration: none; }
