:root {
  --ink: #202522;
  --muted: #606863;
  --line: #d7ddd8;
  --paper: #f7f7f3;
  --white: #ffffff;
  --green: #174c46;
  --green-dark: #103c37;
  --gold: #a8813d;
  --max: 1180px;
  --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.85; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,247,243,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(var(--max), calc(100% - 48px)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; letter-spacing: .08em; font-size: 17px; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); font-family: var(--serif); font-size: 14px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 13px; letter-spacing: .04em; }
.nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); border-color: var(--green); }
.nav .nav-cta { padding: 9px 13px; color: var(--white); background: var(--green); border: 1px solid var(--green); }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.menu-button span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-button.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button.is-open span:nth-child(2) { opacity: 0; }
.menu-button.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.container { width: min(var(--max), calc(100% - 48px)); margin: auto; }
.section { padding: 112px 0; }
.section-tight { padding: 72px 0; }
.eyebrow { margin: 0 0 16px; color: var(--green); font-size: 12px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.35; letter-spacing: .05em; }
h1 { font-size: clamp(39px, 5.1vw, 72px); }
h2 { font-size: clamp(29px, 3.3vw, 46px); }
h3 { font-size: 19px; line-height: 1.55; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p:last-child { color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); }
.minor { color: var(--muted); font-size: 14px; }
.rule-title { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.rule-title small { color: var(--green); font: 700 12px/1 var(--sans); letter-spacing: .12em; }

.hero { min-height: min(750px, calc(100vh - 76px)); display: grid; align-items: end; position: relative; overflow: hidden; color: var(--white); background: var(--green-dark); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,60,55,.96) 0%, rgba(16,60,55,.80) 37%, rgba(16,60,55,.16) 72%, rgba(16,60,55,.15) 100%); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner { position: relative; z-index: 1; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 110px 0 90px; }
.hero .eyebrow { color: #d9e8df; }
.hero h1 { max-width: 690px; margin-bottom: 24px; }
.hero-copy { max-width: 555px; margin-bottom: 34px; color: #f3f6f3; font-size: 16px; }
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 20px; border: 1px solid var(--green); background: var(--green); color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: .04em; transition: .2s ease; }
.button:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button-light { background: transparent; border-color: rgba(255,255,255,.72); }
.button-light:hover { background: var(--white); color: var(--green); }
.button-outline { background: transparent; color: var(--green); }
.button-outline:hover { color: var(--white); background: var(--green); }

/* Home only: an editorial story structure keeps the first view calm and human. */
.story-hero { background: var(--white); }
.story-hero-media { height: min(59svh, 620px); margin: 0; overflow: hidden; }
.story-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.story-statement { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: clamp(42px, 6vw, 74px) 0 clamp(56px, 8vw, 104px); text-align: center; }
.story-kicker { margin: 0 0 20px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.story-statement h1 { margin: 0 0 20px; color: var(--green-dark); font-size: clamp(30px, 3.7vw, 48px); }
.story-statement > p:last-child { margin: 0; color: var(--muted); font-family: var(--serif); font-size: clamp(16px, 1.5vw, 19px); letter-spacing: .06em; }
.story-path { border-top: 1px solid var(--line); background: #edf0ec; }
.story-path-inner { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); gap: clamp(38px, 8vw, 126px); align-items: start; }
.story-path-head h2 { margin-bottom: 18px; }
.story-steps { border-top: 1px solid var(--ink); }
.story-step { display: grid; grid-template-columns: 74px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.story-step .number { font-size: 33px; }
.story-step h3 { margin: 0 0 7px; color: var(--green-dark); }
.story-step p { margin: 0; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(38px, 7vw, 104px); align-items: center; }
.photo-frame { position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-frame::before { content: ""; position: absolute; z-index: -1; width: 78%; height: 78%; left: -22px; bottom: -22px; border: 1px solid var(--gold); }
.number-list { border-top: 1px solid var(--line); }
.number-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.number { color: var(--green); font-family: var(--serif); font-size: 28px; line-height: 1.25; }
.number-item p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.concern-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.concern { min-height: 220px; padding: 30px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concern b { display: block; margin-bottom: 22px; color: var(--green); font: 600 15px/1.5 var(--serif); }
.concern p { margin: 0; font-size: 14px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(odd) { padding-right: 42px; }
.service:nth-child(even) { padding-left: 42px; border-left: 1px solid var(--line); }
.service .number { font-size: 36px; }
.service p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.flow-item { padding: 28px 24px 24px 0; border-bottom: 1px solid var(--line); }
.flow-item + .flow-item { padding-left: 24px; border-left: 1px solid var(--line); }
.flow-item .number { display: block; margin-bottom: 26px; }
.flow-item p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.band { background: var(--green-dark); color: var(--white); }
.band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 58px; padding-bottom: 58px; }
.band h2 { max-width: 680px; margin: 0; font-size: clamp(26px, 3vw, 42px); }
.band p { color: #d4e0d8; }
.page-hero { padding: 100px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 650px; margin: 18px 0 0; color: var(--muted); }
.page-hero h1 { margin: 0; color: var(--green-dark); }

.profile { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(38px, 7vw, 100px); align-items: start; }
.profile-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.profile-copy h2 { margin-bottom: 18px; }
.profile-meta { margin: 26px 0; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; }
.profile-meta div { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 6px 0; }
.profile-meta dt { color: var(--muted); }
.profile-meta dd { margin: 0; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding-top: 20px; border-top: 2px solid var(--green); }
.principle p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th, .data-table td { padding: 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { width: 31%; background: #edf0ec; font-weight: 700; }
.notice { padding: 22px; border-left: 3px solid var(--gold); background: #f1f0e9; color: var(--muted); font-size: 14px; }
.case-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.case-nav a { padding: 8px 14px; border: 1px solid var(--line); font-size: 13px; color: var(--green); }
.case-nav a:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.case-list { border-top: 1px solid var(--ink); }
.case-item { display: grid; grid-template-columns: 220px 1fr; gap: 34px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.case-item .tag { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.case-item h3 { margin: 8px 0 0; }
.case-item p { margin: 0; color: var(--muted); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; gap: 15px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--green); font-family: var(--serif); }
.faq details p { padding: 0 0 22px 30px; margin: 0; color: var(--muted); font-size: 14px; }
.side-image { width: 100%; height: 100%; object-fit: cover; min-height: 390px; }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(38px, 6vw, 80px); align-items: start; }
.contact-card { padding: 30px; background: var(--green-dark); color: var(--white); }
.contact-card .eyebrow { color: #cfe3d7; }
.contact-phone { display: block; margin: 14px 0; font: 600 clamp(26px, 3vw, 38px)/1.3 var(--serif); letter-spacing: .06em; }
.contact-card p { color: #d4e0d8; font-size: 14px; }
.contact-form { padding: 34px; border: 1px solid var(--line); background: var(--white); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1px solid #bac4bd; background: #fff; color: var(--ink); border-radius: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.form-message { display: none; margin-top: 18px; padding: 14px; border-left: 3px solid var(--green); background: #edf4ee; color: var(--green-dark); font-size: 14px; }
.form-message.is-visible { display: block; }
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.access-grid > div { padding: 28px; }
.access-grid > div + div { border-left: 1px solid var(--line); }
.access-grid p { margin: 0 0 8px; font-size: 14px; }
.map-placeholder { min-height: 230px; display: grid; place-items: center; border: 1px dashed #92a69c; background: #edf0ec; color: var(--green); text-align: center; font-family: var(--serif); }

.site-footer { padding: 54px 0 24px; background: #18201d; color: #dbe2dc; }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid #435047; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px 20px; font-size: 13px; }
.footer-bottom { padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; font-size: 11px; color: #aebbb1; }
.reveal { opacity: 0; transform: translateY(15px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .header-inner, .container, .hero-inner { width: min(var(--max), calc(100% - 32px)); }
  .header-inner { min-height: 66px; }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 16px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 3px; }
  .nav .nav-cta { margin-top: 8px; padding: 12px; text-align: center; }
  .hero { min-height: 680px; }
  .hero::after { background: linear-gradient(90deg, rgba(16,60,55,.94) 0%, rgba(16,60,55,.78) 62%, rgba(16,60,55,.38) 100%); }
  .section { padding: 80px 0; }
  .split, .profile, .contact-layout { grid-template-columns: 1fr; }
  .concern-grid, .principles { grid-template-columns: 1fr; }
  .service-grid, .flow { grid-template-columns: 1fr; }
  .service:nth-child(odd), .service:nth-child(even) { padding: 28px 0; border-left: 0; }
  .flow-item, .flow-item + .flow-item { padding: 25px 0; border-left: 0; }
  .band .container, .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-nav { justify-content: start; }
  .case-item { grid-template-columns: 1fr; gap: 12px; }
  .access-grid { grid-template-columns: 1fr; }
  .access-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .contact-form { padding: 24px; }
  .story-hero-media { height: min(52svh, 500px); }
  .story-hero-media img { object-position: center 52%; }
  .story-statement { width: min(760px, calc(100% - 32px)); }
  .story-path-inner { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 520px) {
  .brand { font-size: 15px; }
  .hero-inner { padding-bottom: 58px; }
  .hero h1 { font-size: 40px; }
  .hero-actions, .inline-actions { flex-direction: column; }
  .button { width: 100%; }
  .number-item, .service { grid-template-columns: 52px 1fr; }
  .profile-meta div { grid-template-columns: 1fr; gap: 2px; }
  .story-hero-media { height: 285px; }
  .story-statement { padding: 42px 0 62px; }
  .story-statement h1 { font-size: 31px; }
  .story-step { grid-template-columns: 58px 1fr; gap: 14px; }
}
