:root {
  --ink: #102523;
  --deep: #0b2524;
  --deep-2: #13312f;
  --jade: #48c2a0;
  --jade-light: #a7ead7;
  --cream: #f5f1e8;
  --paper: #fbfaf6;
  --muted: #6b7773;
  --line: #d9dfd9;
  --white: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 24px 70px rgba(5, 29, 27, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 80px); color: white; background: var(--deep); border-bottom: 1px solid rgba(255,255,255,.12); position: relative; z-index: 10; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-family: var(--serif); color: var(--jade-light); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.brand small { margin-top: 4px; color: #b8c9c5; font-size: 9px; letter-spacing: .21em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); font-size: 13px; }
nav a { color: #dce7e4; text-decoration: none; }
nav a:hover { color: var(--jade-light); }
.nav-cta { padding: 11px 18px; border: 1px solid rgba(167,234,215,.58); border-radius: 2px; }

.hero { min-height: 690px; padding: 86px clamp(24px, 7vw, 110px) 96px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); align-items: center; gap: clamp(60px, 9vw, 145px); color: white; background: var(--deep); }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 64px 64px; }
.hero::after { content: '法'; position: absolute; right: -2vw; bottom: -20vw; font-family: var(--serif); font-size: min(55vw, 720px); color: rgba(255,255,255,.018); line-height: 1; }
.hero-glow { position: absolute; width: 620px; height: 620px; left: -240px; top: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(72,194,160,.17), transparent 66%); }
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 25px; display: flex; align-items: center; gap: 10px; color: var(--jade-light); font-size: 11px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 1px; background: currentColor; }
.eyebrow.dark { color: #328b73; }
.eyebrow.light { color: var(--jade-light); }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
h1 { max-width: 780px; font-size: clamp(52px, 6.2vw, 92px); }
h1 em { color: var(--jade-light); font-weight: 400; }
.hero-lead { max-width: 650px; margin: 30px 0 34px; color: #c8d7d3; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.button { min-height: 52px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 30px; border: 0; border-radius: 2px; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .015em; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #062b25; background: var(--jade-light); }
.button-primary:hover { background: white; }
.text-link { color: #d9e4e1; font-size: 13px; text-underline-offset: 5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 42px; color: #9fb4af; font-size: 12px; }
.trust-row i { margin-right: 6px; color: var(--jade); font-style: normal; }
.hero-card { padding: 32px; border: 1px solid rgba(167,234,215,.25); background: rgba(20,52,49,.69); backdrop-filter: blur(12px); box-shadow: 0 40px 100px rgba(0,0,0,.2); }
.card-topline { display: flex; justify-content: space-between; color: #9db5af; font-size: 9px; letter-spacing: .14em; }
.status-dot::before { content: ''; width: 6px; height: 6px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px rgba(72,194,160,.12); }
blockquote { margin: 27px 0 32px; color: #e7eeec; font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.mini-process { border-top: 1px solid rgba(255,255,255,.13); }
.mini-process > div { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.mini-process b { color: var(--jade); font-size: 10px; font-weight: 600; }
.mini-process span, .mini-process strong, .mini-process small { display: block; }
.mini-process strong { color: #dfe9e7; font-size: 13px; }
.mini-process small { margin-top: 2px; color: #89a29c; font-size: 11px; }
.response-note { margin: 20px 0 0; color: #90aaa4; font-size: 10px; }

.proof-strip { min-height: 105px; padding: 26px clamp(24px, 7vw, 110px); display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); background: #eef2ec; }
.proof-strip p { color: #84908d; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.proof-strip div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(20px, 4vw, 60px); color: #41514d; font-family: var(--serif); font-size: 15px; }

.section { padding: 115px clamp(24px, 7vw, 110px); }
.section-heading { display: grid; grid-template-columns: 1fr .68fr; align-items: end; gap: 80px; margin-bottom: 62px; }
h2 { font-size: clamp(44px, 5vw, 72px); }
.section-heading > p { max-width: 570px; margin: 0 0 5px; color: var(--muted); line-height: 1.85; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.service-card { min-height: 355px; padding: 33px; display: flex; flex-direction: column; position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transition: background .25s, transform .25s; }
.service-card:hover { z-index: 1; transform: translateY(-5px); background: white; box-shadow: var(--shadow); }
.service-card.featured { color: white; background: var(--deep-2); }
.service-no { position: absolute; right: 28px; top: 26px; color: #9ca8a4; font-size: 10px; }
.service-icon { width: 50px; height: 50px; margin-bottom: 46px; display: grid; place-items: center; border: 1px solid #b9c8c3; border-radius: 50%; color: #398d75; font-family: var(--serif); font-size: 18px; }
.featured .service-icon { border-color: rgba(167,234,215,.35); color: var(--jade-light); }
.service-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.service-card p { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.featured p { color: #a9bdb8; }
.service-card a { margin-top: auto; color: #297d67; font-size: 11px; font-weight: 700; text-underline-offset: 5px; }
.featured a { color: var(--jade-light); }
.service-card a span { float: right; }

.guide-preview { background: #eef2ec; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { min-height: 285px; padding: 30px; display: flex; flex-direction: column; border: 1px solid #d4ddd6; color: var(--ink); background: var(--paper); text-decoration: none; transition: transform .2s, box-shadow .2s, border .2s; }
.guide-card:hover { transform: translateY(-4px); border-color: #78b9a6; box-shadow: var(--shadow); }
.guide-card > span { color: #328b73; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.guide-card h3 { margin: 28px 0 14px; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.22; }
.guide-card p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.guide-card b { margin-top: auto; color: #267a64; font-size: 11px; }
.all-guides { margin-top: 32px; display: inline-block; color: #267a64; font-size: 13px; font-weight: 700; text-underline-offset: 5px; }

.process { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(70px, 10vw, 160px); color: white; background: var(--deep); }
.process-intro { position: sticky; top: 40px; align-self: start; }
.process-intro > p:last-child { max-width: 450px; margin-top: 30px; color: #9db1ac; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 36px 0; display: grid; grid-template-columns: 55px 1fr; gap: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.timeline li:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.timeline > li > span { color: var(--jade); font-size: 11px; }
.timeline h3 { margin: -5px 0 10px; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.timeline p { margin: 0; color: #98ada8; font-size: 13px; line-height: 1.8; }

.intake-section { display: grid; grid-template-columns: .65fr 1.35fr; align-items: start; gap: clamp(55px, 8vw, 120px); background: var(--cream); }
.intake-aside { position: sticky; top: 40px; }
.intake-aside > p { color: var(--muted); }
.aside-note { margin-top: 38px; padding: 22px; border-left: 2px solid #4aa88d; background: rgba(255,255,255,.55); }
.aside-note strong { font-size: 12px; }
.aside-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.direct-email { margin-top: 25px; font-size: 12px; }
.direct-email a { color: #267a64; }
.form-shell { padding: clamp(25px, 4vw, 52px); background: white; box-shadow: 0 20px 60px rgba(50,60,50,.07); }
fieldset { padding: 0 0 40px; margin: 0 0 40px; border: 0; border-bottom: 1px solid #e5e7e2; }
legend { width: 100%; margin-bottom: 25px; color: var(--ink); font-family: var(--serif); font-size: 21px; }
legend span { width: 27px; height: 27px; margin-right: 10px; display: inline-grid; place-items: center; border-radius: 50%; color: #267a64; background: #e6f5ef; font-family: var(--sans); font-size: 10px; vertical-align: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { color: #45534f; font-size: 11px; font-weight: 650; letter-spacing: .025em; }
label.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid #d7ddd8; border-radius: 1px; outline: 0; color: var(--ink); background: #fcfdfb; font-size: 13px; transition: border .2s, box-shadow .2s; }
input, select { min-height: 48px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #4caa90; box-shadow: 0 0 0 3px rgba(76,170,144,.11); }
::placeholder { color: #9da7a4; }
.honeypot { display: none; }
.consents { display: grid; gap: 15px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-weight: 400; line-height: 1.6; }
.check input { width: 16px; min-height: auto; height: 16px; margin: 2px 0 0; accent-color: #287e67; }
.button-submit { width: 100%; margin-top: 28px; justify-content: space-between; color: white; background: var(--deep); }
.button-submit:hover { background: #17423e; }
.button-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.button-arrow { color: var(--jade-light); font-size: 18px; }
.form-status { display: none; margin: 18px 0 0; padding: 15px; font-size: 12px; }
.form-status.success { display: block; color: #155e4b; background: #e7f6f0; border: 1px solid #bce4d6; }
.form-status.error { display: block; color: #8b2923; background: #fff0ee; border: 1px solid #f1cbc7; }

.faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(55px, 8vw, 120px); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary span { color: #31876f; font-family: var(--sans); font-size: 20px; font-weight: 300; }
details p { max-width: 720px; margin: -8px 40px 26px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

footer { padding: 72px clamp(24px, 7vw, 110px) 30px; color: white; background: #071c1b; }
.footer-main { display: grid; grid-template-columns: .8fr 1fr auto; align-items: center; gap: 30px; padding-bottom: 55px; }
.footer-main > p { color: #849b95; font-family: var(--serif); font-size: 18px; }
.footer-main a { color: var(--jade-light); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }

/* Guide and institutional pages */
.subpage { background: var(--paper); }
.subpage .site-header { position: relative; }
.subpage-main { min-height: 70vh; }
.article-hero { padding: 82px clamp(24px, 13vw, 220px) 72px; color: white; background: var(--deep); }
.breadcrumbs { margin-bottom: 34px; color: #94aaa4; font-size: 11px; }
.breadcrumbs a { color: var(--jade-light); text-underline-offset: 4px; }
.article-hero h1 { max-width: 980px; font-size: clamp(45px, 6vw, 78px); }
.article-hero .article-lead { max-width: 800px; margin: 26px 0 0; color: #c5d5d1; font-size: 18px; line-height: 1.75; }
.article-meta { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 12px 25px; color: #88a49d; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.article-layout { max-width: 1180px; margin: 0 auto; padding: 80px 24px 110px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 90px; }
.article-body { max-width: 760px; }
.article-body h2 { margin: 56px 0 18px; font-size: clamp(32px, 4vw, 47px); line-height: 1.08; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 32px 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.article-body p, .article-body li { color: #4d5d59; font-size: 15px; line-height: 1.85; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: 9px 0; }
.quick-answer { margin: 0 0 45px; padding: 28px; border-left: 3px solid var(--jade); background: #eaf4ef; }
.quick-answer strong { display: block; margin-bottom: 8px; color: #267a64; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.quick-answer p { margin: 0; color: #344844; }
.checklist { padding: 24px 28px; border: 1px solid var(--line); background: white; }
.checklist li::marker { color: #3b9b81; }
.article-note { margin: 38px 0; padding: 22px; border: 1px solid #e2d3aa; background: #fff9e9; }
.article-note strong { color: #715b28; }
.article-aside { align-self: start; position: sticky; top: 30px; }
.article-aside-card { padding: 25px; border: 1px solid var(--line); background: white; }
.article-aside-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.article-aside-card p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.article-aside-card .button { width: 100%; margin-top: 8px; color: white; background: var(--deep); }
.article-sources { margin-top: 55px; padding-top: 30px; border-top: 1px solid var(--line); }
.article-sources h2 { font-size: 31px; }
.article-sources a { color: #267a64; text-underline-offset: 4px; }
.related-guides { margin-top: 55px; padding-top: 30px; border-top: 1px solid var(--line); }
.related-guides a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: #267a64; font-family: var(--serif); font-size: 18px; }
.guide-index-hero { padding-bottom: 80px; }
.guide-index { padding-top: 80px; }
.guide-index .guide-grid { margin-top: 45px; }
.institution-page { max-width: 980px; margin: 0 auto; padding: 90px 24px 120px; }
.institution-page h2 { margin: 55px 0 18px; font-size: 45px; }
.institution-page p, .institution-page li { color: #4d5d59; font-size: 15px; line-height: 1.85; }
.footer-bottom { padding-top: 25px; display: flex; justify-content: space-between; gap: 40px; border-top: 1px solid rgba(255,255,255,.12); color: #718a84; font-size: 9px; }
.footer-bottom p:last-child { max-width: 670px; text-align: right; }

@media (max-width: 980px) {
  nav > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 55px; }
  .hero-copy { max-width: 760px; }
  .hero-card { max-width: 620px; }
  .section-heading, .process, .intake-section, .faq { grid-template-columns: 1fr; }
  .section-heading { gap: 28px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 50px; }
  .article-aside { position: static; }
  .process-intro, .intake-aside { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > a { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .site-header { height: 76px; }
  .nav-cta { padding: 9px 11px; font-size: 11px; }
  .brand strong { font-size: 15px; }
  .brand-mark { width: 37px; height: 37px; }
  .hero { min-height: auto; padding-top: 65px; }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .trust-row { flex-direction: column; gap: 9px; }
  .hero-card { padding: 24px; }
  .proof-strip { align-items: flex-start; flex-direction: column; }
  .proof-strip div { justify-content: flex-start; gap: 15px 25px; }
  .section { padding-top: 82px; padding-bottom: 82px; }
  .service-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 320px; }
  .form-shell { margin: 0 -10px; }
  .form-grid { grid-template-columns: 1fr; }
  label.full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main > a { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom p:last-child { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .article-hero { padding-top: 60px; }
}

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