:root {
  --ink: #173b35;
  --muted: #556b66;
  --paper: #fffdf8;
  --soft: #edf7f1;
  --brand: #167b64;
  --brand-dark: #0c5142;
  --accent: #e9a23b;
  --accent-ink: #7a4a00;
  --accent-soft: #fff0d6;
  --line: #d7e5dd;
  --shadow: 0 18px 50px rgba(25, 67, 57, .12);
  --radius: 28px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

body.theme-bonds {
  --ink: #123554;
  --muted: #526476;
  --paper: #fffefa;
  --soft: #f3f5f7;
  --brand: #0d3354;
  --brand-dark: #0d3354;
  --accent: #d5b43f;
  --accent-ink: #75590b;
  --accent-soft: #faf4df;
  --line: #dbe1e6;
  --shadow: 0 18px 50px rgba(13, 51, 84, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin: 0 auto; }

.site-bar {
  padding: 14px 0;
  background: var(--brand-dark);
  color: #fff;
  font-size: 14px;
}
.site-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { font-weight: 800; letter-spacing: .04em; }
.site-kicker { color: #d9eae5; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 92px;
  background:
    radial-gradient(circle at 88% 18%, rgba(233,162,59,.25), transparent 24%),
    linear-gradient(145deg, #fff 0%, var(--soft) 78%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 50%;
  right: -160px;
  bottom: -190px;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 58px; }
.eyebrow { margin: 0 0 16px; color: var(--brand-dark); font-weight: 800; letter-spacing: .08em; font-size: 14px; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.3vw, 56px);
  line-height: 1.3;
  letter-spacing: .025em;
}
.hero__line { display: block; }
.hero h1 em { color: var(--brand); font-style: normal; }
body.theme-bonds .hero h1 em { color: #75590b; }
.hero__line { display: block; }
.hero__lead { margin: 24px 0 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.9; font-weight: 700; }
.hero__note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.hero__visual {
  padding: 30px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 40px 40px 40px 8px;
  box-shadow: var(--shadow);
}
.hero__visual strong { display: block; font-family: var(--serif); font-size: 25px; line-height: 1.55; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.hero__stat { padding: 18px; border-radius: 18px; background: var(--soft); }
.hero__stat b { display: block; color: var(--brand); font-size: 26px; line-height: 1.2; }
.hero__stat span { font-size: 13px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  margin-top: 28px;
  padding: 14px 25px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 28%, transparent);
  transition: transform .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible { background: var(--brand-dark); transform: translateY(-2px); }
body.theme-bonds .hero .button { background: var(--accent); color: var(--brand-dark); }
body.theme-bonds .hero .button:hover,
body.theme-bonds .hero .button:focus-visible { background: #f0d675; color: var(--brand-dark); }

.section { padding: 92px 0; }
.section--soft { background: var(--soft); }
.section-label { margin: 0 0 10px; color: var(--brand); font-weight: 900; font-size: 13px; letter-spacing: .12em; text-align: center; }
.section-title { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.45; text-align: center; }
.section-lead { max-width: 760px; margin: 18px auto 0; color: var(--muted); text-align: center; }

.check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }
.check-card { padding: 25px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; font-weight: 800; text-align: center; }
.check-card span { display: block; margin-bottom: 9px; font-size: 28px; }

.cases { display: grid; gap: 34px; margin-top: 52px; }
.case {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) 1.22fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.case:nth-child(even) { grid-template-columns: 1.22fr minmax(250px, .78fr); }
.case:nth-child(even) .case__photo { order: 2; }
.case__photo { position: relative; min-height: 420px; background: var(--accent-soft); }
.case__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.case__photo--anonymous { display: grid; place-items: center; background: linear-gradient(145deg, var(--accent-soft), var(--soft)); }
.anonymous-mark {
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-family: Georgia, serif;
  font-size: 62px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.case__body { padding: clamp(30px, 5vw, 56px); }
.case__top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.case__no { color: var(--accent-ink); font-weight: 900; letter-spacing: .12em; }
.badge { padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.case h3 { margin: 18px 0 8px; font-family: var(--serif); font-size: clamp(25px, 3vw, 37px); line-height: 1.5; }
.case__name { margin: 0 0 20px; color: var(--muted); font-weight: 700; }
.change { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; gap: 12px; margin: 24px 0; }
.change__box { padding: 18px; border-radius: 16px; background: #f7f7f5; color: #3c4945; }
.change__box--after { background: var(--soft); color: var(--ink); }
.change__box b { display: block; margin-bottom: 6px; color: var(--brand); font-size: 12px; letter-spacing: .08em; }
.change__arrow { align-self: center; color: var(--accent-ink); font-size: 24px; font-weight: 900; text-align: center; }
blockquote { margin: 24px 0 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: var(--accent-soft); font-family: var(--serif); font-size: 18px; font-weight: 700; }

.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.method { position: relative; padding: 32px 25px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.method__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; }
.method h3 { margin: 18px 0 8px; font-size: 20px; }
.method p { margin: 0; color: var(--muted); }

.cta { padding: 84px 0 112px; color: #fff; background: var(--brand-dark); text-align: center; }
.cta .section-label { color: #f4ca7a; }
.cta .section-title { color: #fff; }
.cta p { max-width: 650px; margin: 18px auto 0; color: rgba(255,255,255,.86); }
.cta .button { background: #fff; color: var(--brand-dark); }
.cta .button:hover, .cta .button:focus-visible { background: var(--accent-soft); }
.fineprint { margin-top: 22px !important; color: #d9eae5 !important; font-size: 12px; }
.footer { padding: 25px 0 100px; background: #0b2f28; color: rgba(255,255,255,.8); font-size: 13px; text-align: center; }
body.theme-bonds .footer { background: #071d35; }
.fixed-cta { display: none; }

@media (max-width: 860px) {
  .hero { padding: 54px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__visual { border-radius: 28px 28px 28px 6px; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__photo { order: 0; }
  .case__photo { min-height: 340px; max-height: 460px; }
  .method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; line-height: 1.78; }
  .container, .narrow { width: min(100% - 28px, 1120px); }
  .site-kicker { display: none; }
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 17px; }
  .hero__stats { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .section-title { font-size: 30px; }
  .check-grid { grid-template-columns: 1fr; }
  .case__photo { min-height: 315px; }
  .case__body { padding: 28px 22px 32px; }
  .change { grid-template-columns: 1fr; }
  .change__arrow { transform: rotate(90deg); }
  blockquote { padding: 18px; font-size: 17px; }
  .cta { padding-bottom: 126px; }
  .fixed-cta {
    display: block;
    position: fixed;
    z-index: 50;
    left: 12px;
    right: 12px;
    bottom: 10px;
    padding: 13px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: #18231f;
    text-decoration: none;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
