/* Primal Code — ledger paper, ledger green, brass */
:root {
  --paper: #F1F4F0;
  --paper-2: #E6EBE5;
  --paper-3: #FAFBF9;
  --ink: #12302A;
  --ink-2: #4B5D57;
  --line: #C9D3CC;
  --green: #1D4D43;
  --brass: #9A7426;
  --brass-ink: #7A5A17;
  --line-green: #06A447;

  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --sans: "BIZ UDPGothic", "Hiragino Sans", system-ui, sans-serif;

  --w: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.95; letter-spacing: .02em;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.55; letter-spacing: .04em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; color: var(--green); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .12em; line-height: 1.15; margin: 0; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--sans); font-weight: 400; font-size: .62rem; letter-spacing: .14em; color: var(--ink-2); margin-top: 3px; }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; padding: 0 10px; }
.menu-btn span { display: block; height: 1px; background: var(--ink); transition: transform .3s; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .92rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--brass-ink); }
.nav .nav-cta { padding: 8px 18px; background: var(--line-green); color: #fff; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { background: #058A3C; color: #fff; }
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; left: 0; right: 0; top: 68px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .nav.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--paper-2); font-size: 1rem; }
  .nav.open .nav-cta { margin-top: 16px; width: auto; padding: 10px 22px; border: 0; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(1.6rem, 2.7vw, 2.55rem); line-height: 1.6; letter-spacing: .05em; }
.hero-title span { display: block; }
@media (min-width: 901px) { .hero-title span { white-space: nowrap; } }
.hero-title span + span { color: var(--green); }
.hero-lead { margin-top: 28px; color: var(--ink-2); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero-tel { font-size: 1rem; letter-spacing: .1em; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: min(6.2vw, 2.4rem); }
}

.jcurve { margin: 0; }
.jcurve svg { width: 100%; height: auto; border: 1px solid var(--line); background: var(--paper-3); }
.jcurve figcaption { font-size: .86rem; color: var(--ink-2); margin-top: 14px; line-height: 1.85; }
.j-label { font: 400 12px var(--sans); fill: var(--ink-2); }
.j-note { font: 700 17px var(--serif); fill: var(--ink); letter-spacing: .06em; }
.j-small { font: 400 12px var(--sans); fill: var(--ink-2); }
.j-dim .j-note { fill: var(--brass-ink); }

/* the one orchestrated moment: the line draws itself, then the two answers appear */
.j-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s .3s cubic-bezier(.45,.05,.25,1) forwards; }
.j-area { opacity: 0; animation: fade 1s 1.4s forwards; }
.j-dim { opacity: 0; animation: fade .8s 1.5s forwards; }
.j-pay { opacity: 0; animation: fade .8s 2.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .j-line { animation: none; stroke-dashoffset: 0; }
  .j-area, .j-dim, .j-pay { animation: none; opacity: 1; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px; border: 0;
  background: var(--green); color: #fff; text-decoration: none;
  font: 700 1rem/1 var(--sans); letter-spacing: .06em; cursor: pointer; transition: background .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-line { background: var(--line-green); font-size: 1.05rem; }
.btn-line:hover { background: #058A3C; }

/* sections */
.section { padding: var(--sec) 0; }
.section-alt { background: var(--paper-2); }
.section h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.lead { color: var(--ink-2); margin-top: 20px; }
.narrow { max-width: 38em; }
.note { font-size: .86rem; color: var(--ink-2); line-height: 1.85; margin-top: 16px; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 18px; height: 1px; background: var(--brass); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 2px solid var(--ink); }
.service { padding: 28px 28px 8px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service h3 { font-size: 1.2rem; margin-bottom: 14px; }
.service p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 24px 0 8px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}
.scope { margin-top: 48px; padding: 24px 28px; border: 1px solid var(--brass); background: var(--paper-3); max-width: 48em; }
.scope h3 { font-size: 1.05rem; color: var(--brass-ink); margin-bottom: 8px; }
.scope p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; color: var(--brass); }
.steps b { font-weight: 700; }
.steps span { color: var(--ink-2); font-size: .97rem; }

.case { background: var(--paper-3); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.case-meta { font-size: .86rem; color: var(--ink-2); margin-bottom: 8px; letter-spacing: .06em; }
.case h3 { font-size: 1.3rem; margin-bottom: 20px; }
.case-dl { margin: 0; }
.case-dl > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.case-dl dt { color: var(--ink-2); font-size: .92rem; }
.case-dl dd { margin: 0; }
@media (max-width: 560px) { .case-dl > div { grid-template-columns: 1fr; gap: 2px; } }

.fee { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.fee th, .fee td { padding: 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fee th { width: 14em; font-weight: 700; padding-right: 20px; }
.fee td { color: var(--ink-2); }
@media (max-width: 560px) { .fee th, .fee td { display: block; width: auto; } .fee th { border-bottom: 0; padding-bottom: 0; } }

.message p { font-family: var(--serif); font-size: 1.08rem; line-height: 2.1; max-width: 32em; }
.message p:first-child { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.8; }
.message .sign { font-family: var(--sans); font-size: .92rem; color: var(--ink-2); margin-top: 28px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding: 0 0 22px; margin: 0; max-width: 36em; }

.news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news li { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

.profile { margin: 0; border-top: 2px solid var(--ink); }
.profile > div { display: grid; grid-template-columns: 7em 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile dt { color: var(--ink-2); }
.profile dd { margin: 0; }

.contact { background: var(--green); color: #EEF3EF; }
.contact h2 { color: #fff; }
.contact .lead { color: #C9D8D0; }
.contact .contact-mail a { color: #fff; }
.contact-mail { margin-top: 28px; }
.contact-mail span { display: block; font-size: .9rem; letter-spacing: .12em; opacity: .75; margin-bottom: 6px; }
.contact-mail a { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: .04em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.form { display: grid; gap: 18px; background: var(--paper-3); color: var(--ink); padding: clamp(24px, 4vw, 40px); }
.form-intro { margin: 0; font-weight: 700; }
.field { display: grid; gap: 6px; }
.field span { font-size: .9rem; color: var(--ink-2); }
.field em { font-style: normal; font-size: .78rem; margin-left: 8px; }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: transparent; }
input[type="checkbox"] { accent-color: var(--green); width: 18px; height: 18px; }
.agree { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.form-msg { min-height: 1.5em; margin: 0; font-size: .92rem; color: #A3312B; }
.form-msg.ok { color: var(--green); }
.form .btn { justify-self: start; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--ink-2); }
.copy { color: var(--ink-2); margin: 0; }

.doc { padding: clamp(56px, 8vw, 104px) 0 var(--sec); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 32px; }
.doc h2 { font-size: 1.2rem; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.3em; }
.nav-cta-solo { padding: 8px 18px; background: var(--line-green); color: #fff; border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 700; }
