:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6878;
  --line: #dce3ea;
  --surface: #ffffff;
  --surface-soft: #f4f7fa;
  --brand: #0f4c81;
  --brand-strong: #0a355a;
  --brand-soft: #eaf3fb;
  --accent: #d98b1f;
  --warning-soft: #fff6e7;
  --warning-line: #e6b45f;
  --neutral-soft: #f2f4f7;
  --success-soft: #eef8f2;
  --shadow: 0 14px 40px rgba(23, 32, 51, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --header-height: 68px;
  --bottom-nav-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #f0a33a;
  outline-offset: 3px;
}

.shell {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 227, 234, 0.9);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 12px;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.brand-copy { min-width: 0; display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 15px; letter-spacing: .02em; }
.brand-copy span { margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.desktop-nav { display: none; }
.menu-button, .icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
}

.menu-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(9, 18, 31, 0.45);
}
.mobile-menu {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100dvh;
  padding: 20px;
  background: #fff;
  box-shadow: -18px 0 44px rgba(23, 32, 51, 0.2);
  transform: translateX(102%);
  transition: transform .2s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mobile-menu nav { display: grid; gap: 8px; margin-top: 24px; }
.mobile-menu nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}
.mobile-menu nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.menu-note { margin: 24px 4px 0; color: var(--muted); font-size: 13px; }

.main-content { min-width: 0; }
.view { min-width: 0; }
.view[data-view="home"] { padding-bottom: calc(var(--bottom-nav-height) + 18px); }
.hero-wrap {
  background:
    radial-gradient(circle at 90% 8%, rgba(217, 139, 31, 0.15), transparent 34%),
    linear-gradient(150deg, #eef6fc 0%, #ffffff 62%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { padding-block: 42px 36px; display: grid; gap: 26px; }
.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 7vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.hero-copy h1 { margin-top: 10px; }
.hero-lead, .page-lead { max-width: 720px; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: grid; gap: 10px; margin-top: 24px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-strong); }
.button-secondary { border-color: var(--line); background: #fff; color: var(--brand-strong); }
.authority-card {
  padding: 22px;
  border: 1px solid #cfe1f1;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}
.status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding-inline: 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: #24613d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}
.authority-card h2 { margin: 14px 0 8px; font-size: 1.4rem; }
.authority-card p { margin-bottom: 0; color: var(--muted); }

.section-block { padding-block: 34px; }
.compact-block { padding-top: 0; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.feature-grid { display: grid; gap: 14px; }
.feature-card {
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(23, 32, 51, 0.04);
}
.feature-card:hover { border-color: #b8cfe2; transform: translateY(-1px); }
.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}
.feature-card h3 { margin: 1px 0 6px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-arrow { align-self: center; color: var(--brand); font-size: 20px; }

.notice {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.notice + .notice { margin-top: 10px; }
.notice span { color: var(--muted); }
.notice-info { border-color: #cfe1f1; background: var(--brand-soft); }
.notice-warning { border-color: var(--warning-line); background: var(--warning-soft); }
.notice-neutral { background: var(--neutral-soft); }

.page-shell { padding-block: 36px 104px; }
.page-shell h1 { margin-top: 8px; font-size: clamp(2rem, 7vw, 3.1rem); }
.placeholder-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  margin-top: 26px;
  padding: 22px;
  border: 1px dashed #afbecd;
  border-radius: var(--radius-md);
  background: #fff;
}
.placeholder-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
}
.placeholder-panel h2 { margin-bottom: 6px; font-size: 1.1rem; }
.placeholder-panel p { margin-bottom: 0; color: var(--muted); }
.help-grid { display: grid; gap: 12px; margin-top: 26px; }
.help-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.help-card > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}
.help-card h2 { margin-bottom: 5px; font-size: 1rem; }
.help-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.bottom-nav {
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}
.bottom-nav a {
  min-width: 0;
  min-height: 54px;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 4px 2px;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.bottom-nav a > span:first-child { font-size: 19px; line-height: 1; }
.bottom-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
.site-footer { display: none; }

@media (min-width: 520px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .button { min-width: 150px; }
  .feature-grid, .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  :root { --header-height: 76px; }
  .shell { width: min(100% - 48px, 1120px); }
  .menu-button, .mobile-menu, .menu-backdrop, .bottom-nav { display: none !important; }
  body.menu-open { overflow: auto; }
  .desktop-nav { display: flex; align-items: center; gap: 4px; }
  .desktop-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
  }
  .desktop-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); }
  .view[data-view="home"] { padding-bottom: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); align-items: center; padding-block: 70px 62px; }
  .hero-copy h1 { font-size: clamp(3rem, 5.2vw, 4.2rem); }
  .section-block { padding-block: 52px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-card { grid-template-columns: 48px minmax(0, 1fr); min-height: 190px; }
  .feature-icon { width: 48px; height: 48px; }
  .card-arrow { grid-column: 2; justify-self: end; }
  .page-shell { padding-block: 58px 72px; }
  .help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { display: block; border-top: 1px solid var(--line); background: #fff; }
  .footer-inner { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; }
  .footer-inner span:first-child { color: var(--ink); font-weight: 800; }
}

@media (min-width: 1080px) {
  .desktop-nav { gap: 8px; }
  .desktop-nav a { padding-inline: 15px; }
}

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