/* japan.careplans.ai landing: white architectural space, terracotta accents, 1px borders, square corners */
:root {
  --bg: #ffffff; --alt: #FAFAF8; --ink: #1F1C1A; --muted: #6B6660;
  --line: #E8E6E1; --terra: #D9613F; --terra-urgent: #C44827; --sage: #9DAB8E; --sage-soft: #F1F3EE;
  --max: 1080px; --gut: 20px;
  --jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  --en-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --en-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--jp); font-size: 16px; line-height: 1.8; letter-spacing: .03em;
  word-break: auto-phrase; overflow-wrap: anywhere; line-break: strict;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--en-body); line-height: 1.65; letter-spacing: 0; word-break: normal; overflow-wrap: break-word; line-break: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
a { color: var(--ink); text-decoration-color: var(--terra); text-underline-offset: .2em; }
a:hover { color: var(--terra-urgent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 20; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

/* header */
header.top { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand::before { content: ""; width: 10px; height: 10px; background: var(--terra); margin-right: 10px; }
header.top nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
header.top nav a.sec { display: none; color: var(--muted); text-decoration: none; font-size: 14px; padding: 0 10px; min-height: 44px; align-items: center; }
header.top nav a.sec:hover { color: var(--ink); }
@media (min-width: 980px) { header.top nav a.sec { display: inline-flex; } }
a.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); text-decoration: none; font-size: 14px; background: #fff; }
a.pill:hover { border-color: var(--ink); color: var(--ink); }
a.pill[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* hero */
.hero { padding: 56px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 6px 14px; margin: 0 0 28px; font-size: 13px; font-weight: 700; letter-spacing: .18em; line-height: 1.5; color: var(--ink); background: #fff; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.eyebrow .dot { width: 7px; height: 7px; background: var(--terra); flex: none; }
h1 { font-size: clamp(24px, 6.2vw, 46px); line-height: 1.5; margin: 0 0 24px; font-weight: 800; letter-spacing: .02em; max-width: 22em; text-wrap: balance; }
html[lang="en"] h1 { font-family: var(--en-display); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; font-size: clamp(32px, 7vw, 56px); max-width: 17em; }
.key { white-space: nowrap; font-style: normal; color: var(--terra); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: var(--terra); }
html[lang="en"] .key { white-space: normal; font-style: italic; text-decoration: none; }
.lede { font-size: 17px; color: var(--muted); max-width: 40em; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 0; font-weight: 700; text-decoration: none; font-size: 16px; background: var(--ink); color: #fff; border: 1px solid var(--ink); text-align: center; }
.btn:hover { background: var(--terra-urgent); border-color: var(--terra-urgent); color: #fff; }
.btn.alt { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 520px) { .btns .btn { width: 100%; } }
.chips { display: flex; flex-wrap: wrap; gap: 0; margin: 44px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.chips li { flex: 1 1 220px; padding: 14px 18px 14px 34px; font-size: 14px; line-height: 1.6; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; position: relative; background: #fff; }
.chips li::before { content: ""; position: absolute; left: 16px; top: 22px; width: 7px; height: 7px; background: var(--sage); }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 56px; background: var(--bg); }
section:nth-of-type(odd) { background: var(--alt); }
h2 { font-size: clamp(22px, 4.6vw, 30px); line-height: 1.5; margin: 0 0 14px; font-weight: 800; letter-spacing: .02em; text-wrap: balance; }
html[lang="en"] h2 { font-family: var(--en-display); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; font-size: clamp(26px, 5vw, 36px); }
h2::before { content: ""; display: block; width: 36px; height: 2px; background: var(--terra); margin-bottom: 18px; }
h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.6; font-weight: 700; }
.sub { color: var(--muted); max-width: 44em; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); background: #fff; }
.card { padding: 26px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.card:last-child { border-bottom: 0; }
.card p, .card ul { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card { border-bottom: 0; border-right: 1px solid var(--line); }
  .card:last-child { border-right: 0; }
  .grid.stats { grid-template-columns: repeat(2, 1fr); }
}

/* stat tiles */
.stats .card { padding: 36px 28px 30px; }
.stat .n { font-size: clamp(44px, 9vw, 64px); font-weight: 800; color: var(--terra); line-height: 1.1; letter-spacing: -.01em; font-feature-settings: "palt"; }
html[lang="en"] .stat .n { font-family: var(--en-display); font-weight: 400; }
.stat .l { font-size: 16px; line-height: 1.7; margin-top: 14px; color: var(--ink); }
.stat .s { font-size: 12.5px; line-height: 1.7; color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; margin: 0; list-style: none; border: 1px solid var(--line); background: #fff; }
.steps li { counter-increment: s; padding: 24px 24px 24px 76px; position: relative; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: "0" counter(s); position: absolute; left: 24px; top: 22px; font-size: 22px; font-weight: 800; color: var(--terra); letter-spacing: .02em; line-height: 1.6; }
.steps b { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15.5px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 64px 22px 26px; border-bottom: 0; border-right: 1px solid var(--line); }
  .steps li:last-child { border-right: 0; }
  .steps li::before { left: 22px; top: 22px; }
}
.note { font-size: 13.5px; color: var(--muted); max-width: 46em; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); background: transparent; }
section#faq .wrap > h2 + details.faq { border-top: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 4px; font-weight: 700; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; font-size: 18px; line-height: 1; color: var(--terra); background: #fff; }
details.faq[open] summary::after { content: "\2212"; }
details.faq summary:hover { color: var(--terra-urgent); }
details.faq p { margin: 0; padding: 0 48px 22px 4px; color: var(--muted); max-width: 46em; }

/* callouts */
.access { margin-top: 24px; background: var(--sage-soft); border: 1px solid var(--line); border-left: 3px solid var(--sage); padding: 24px 26px; }
.access p { margin: 0 0 10px; }
.access p:last-child { margin: 16px 0 0; }

/* contact */
section#contact { background: var(--bg); }
.contact { background: var(--ink); color: #fff; padding: 40px 28px; border: 1px solid var(--ink); }
.contact h2 { color: #fff; }
.contact p { margin: 0 0 14px; }
.contact a { color: #fff; text-decoration-color: var(--terra); }
.contact a:hover { color: #fff; text-decoration-color: #fff; }
.contact a:focus-visible, .contact .btn:focus-visible { outline-color: #fff; }
.contact .note { color: rgba(255,255,255,.78); }
.contact .btns { margin-top: 24px; }
.contact .btn { background: #fff; color: var(--ink); border-color: #fff; }
.contact .btn:hover { background: var(--terra); border-color: var(--terra); color: var(--ink); }
.contact .btn.alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.contact .btn.alt:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (min-width: 760px) { .contact { padding: 56px 56px; } }

footer { padding: 36px 0 56px; border-top: 1px solid var(--line); background: var(--alt); color: var(--muted); font-size: 13px; line-height: 1.8; }
footer p { margin: 0 0 8px; max-width: 56em; }
footer a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  header.top, .skip, .btns { display: none; }
  body { font-size: 11pt; }
  section { padding: 18pt 0; break-inside: avoid-page; background: #fff !important; }
  .contact { background: #fff; color: #000; border: 1px solid #000; }
  .contact h2, .contact a { color: #000; }
  details.faq > p { display: block; }
  .hero { padding: 12pt 0; }
}
