:root {
  color-scheme: light dark;
  --canvas: #f6f7fb;
  --surface: #fff;
  --text: #17212b;
  --secondary: #596476;
  --line: #d8dce7;
  --accent: #404fbc;
  --wash: #eceefa;
  --focus: #3040aa;
  --draft-bg: #fff0e5;
  --draft-text: #873809;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  color: var(--text);
  background: var(--canvas);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .07em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.35rem); margin: 0 0 20px; }
h2 { font-size: 1.8rem; margin: 0 0 20px; }
h3 { font-size: 1.32rem; margin: 0 0 16px; }
h4 { font-size: 1.08rem; margin: 30px 0 8px; }
p { margin: 0 0 18px; }
section, [id] { scroll-margin-top: 28px; }
.skip-link { position: absolute; left: 20px; top: 12px; padding: 12px 18px; background: var(--surface); transform: translateY(-180%); z-index: 5; }
.skip-link:focus { transform: none; }
.preview-note { padding: 11px 24px; text-align: center; color: var(--draft-text); background: var(--draft-bg); font-size: .88rem; }
.site-header, .site-footer, main { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); font-weight: 700; text-decoration: none; line-height: 1.25; max-width: 360px; }
.brand img { flex: 0 0 52px; border-radius: 12px; }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.site-header nav a, .site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px; }
.site-header nav a { color: var(--secondary); text-decoration: none; font-weight: 600; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.page-heading { padding: 60px 0 48px; max-width: 740px; }
.page-heading p { font-size: 1.15rem; line-height: 1.55; color: var(--secondary); max-width: 52ch; margin-bottom: 0; }
.reading-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 68px; align-items: start; }
.contents { position: sticky; top: 24px; font-size: .88rem; padding-bottom: 16px; }
.contents p { font-weight: 700; margin-bottom: 12px; }
.contents a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; line-height: 1.35; text-decoration: none; color: var(--secondary); }
.contents a:hover { color: var(--accent); text-decoration: underline; }
.reading-column { max-width: 70ch; min-width: 0; }
.reading-column > section { margin-bottom: 48px; }
.reading-column > section:last-child { margin-bottom: 0; }
.contact-block { background: var(--wash); padding: 26px 28px; border-radius: 14px; margin-top: 26px; }
.contact-block h3 { font-size: 1.13rem; margin-bottom: 6px; }
.contact-block p:last-child { font-size: .94rem; margin-bottom: 0; }
.contact-link { font-weight: 650; display: inline-flex; align-items: center; min-height: 44px; }
.draft-contact { font-weight: 600; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 30px 18px 0; min-height: 60px; font-weight: 600; line-height: 1.4; }
summary::marker { color: var(--accent); }
details > div { padding: 0 0 12px 0; }
.policy-opening { border-top: 1px solid var(--line); padding-top: 48px; margin-top: 60px; }
.policy-date { color: var(--secondary); font-size: .88rem; margin-bottom: 24px; }
.policy-contact { padding-top: 28px; border-top: 1px solid var(--line); }
.site-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 72px; font-size: .88rem; }
.site-footer p { margin: 0; font-weight: 650; }
.site-footer p span { font-weight: 400; color: var(--secondary); }
.not-found { padding-block: 80px; min-height: 50vh; }
.button-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; background: var(--accent); color: var(--surface); border-radius: 10px; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  :root { --canvas: #080b16; --surface: #11172a; --text: #f7f9ff; --secondary: #aab4ca; --line: #29324c; --accent: #68e2c7; --wash: #15342f; --focus: #68e2c7; --draft-bg: #3a2b18; --draft-text: #f3bd58; }
}
@media (max-width: 800px) {
  .site-header, .site-footer, main { width: min(700px, calc(100% - 40px)); }
  .site-header { min-height: 0; padding-block: 20px 12px; display: block; }
  .brand { max-width: 100%; font-size: 1rem; }
  .site-header nav { margin: 16px 0 0 -8px; gap: 4px 20px; }
  .page-heading { padding: 36px 0 28px; }
  .page-heading p { font-size: 1.05rem; }
  .reading-layout { display: block; }
  .contents { position: static; padding: 0 0 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
  .contents nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .contents p { width: 100%; margin-bottom: 4px; }
  .contents a { padding: 8px 0; }
  .contact-block { padding: 22px; }
  .site-footer { display: block; margin-top: 48px; }
  .site-footer nav { margin: 16px 0 0 -8px; }
}
@media print {
  :root { color-scheme: light; --canvas: #fff; --surface: #fff; --text: #111; --secondary: #333; --accent: #111; }
  .preview-note, .contents, .site-header nav, .site-footer nav, .skip-link { display: none; }
  .site-header, .site-footer, main { width: 100%; }
  .reading-layout { display: block; }
  .reading-column { max-width: none; }
  .page-heading { padding-block: 28px; }
  section { break-inside: auto; }
  h2, h3, h4 { break-after: avoid; }
}
