/* レイアウト：左寄せの1カラム。見出しの左に英字ラベルを置く、紙の会社案内に近い構成 */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #17242a;
  --muted: #56666c;
  --line: #d8e0de;
  --accent: #1d6b64;
  --accent-soft: #e3efec;
  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-label: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111a1d; --surface: #172327; --ink: #e6eeec; --muted: #9db0b0;
    --line: #2a3a3e; --accent: #6cc4b8; --accent-soft: #1d3234; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111a1d; --surface: #172327; --ink: #e6eeec; --muted: #9db0b0;
  --line: #2a3a3e; --accent: #6cc4b8; --accent-soft: #1d3234; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name strong { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.brand-name span { font-family: var(--font-label); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* hero */
.hero { padding-block: 72px 56px; }
.eyebrow { font-family: var(--font-label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 5vw, 46px); line-height: 1.4; letter-spacing: .02em;
  margin: 0 0 24px; text-wrap: balance;
}
.hero p { max-width: 38em; color: var(--muted); margin: 0; }

/* sections */
.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: 32px; align-items: baseline; }
.section-head .eyebrow { margin: 0; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 0; letter-spacing: .03em; }
.section-body { margin-left: 224px; min-width: 0; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.service-no { font-family: var(--font-label); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.service h3 { font-family: var(--font-display); font-size: 18px; margin: 0; line-height: 1.5; }
.service p { margin: 0; font-size: 15px; color: var(--muted); }
.service ul { margin: 4px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--muted); }

/* profile table */
.profile { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.profile th { width: 9em; font-weight: 500; color: var(--muted); background: var(--accent-soft); white-space: nowrap; }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 0; }
.profile td { min-width: 0; overflow-wrap: anywhere; }

details.purposes { margin-top: 20px; border: 1px solid var(--line); background: var(--surface); }
details.purposes summary { cursor: pointer; padding: 14px 20px; font-size: 14px; color: var(--accent); }
details.purposes ol { margin: 0; padding: 4px 20px 20px 2.6em; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* contact */
.contact-box { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: grid; gap: 18px; }
.contact-row { display: grid; grid-template-columns: 7em 1fr; gap: 12px; align-items: baseline; }
.contact-row dt { color: var(--muted); font-size: 14px; }
.contact-row dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.contact-note { font-size: 13px; color: var(--muted); margin: 0; }

/* plain document pages */
.doc { padding-block: 56px 72px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.doc h2 { font-family: var(--font-display); font-size: 18px; margin: 36px 0 8px; }
.doc p, .doc li { max-width: 40em; font-size: 15px; }
.doc .updated { color: var(--muted); font-size: 13px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding-block: 48px 40px; }
  .section { padding-block: 48px; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .section-body { margin-left: 0; }
  .services { grid-template-columns: 1fr; }
  .profile th, .profile td { display: block; width: 100%; }
  .profile th { padding-bottom: 6px; border-bottom: 0; }
  .profile td { padding-top: 6px; }
  .contact-row { grid-template-columns: 1fr; gap: 2px; }
}
