:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --navy: #12324a;
  --navy-2: #1d4058;
  --green: #2f7d62;
  --green-deep: #245f4b;
  --ink: #1b2730;
  --muted: #5e6b73;
  --line: #d9e0dc;
  --shadow: 0 18px 45px rgba(18, 50, 74, 0.1);
  --radius: 8px;
  --content: 1080px;
  --article: 760px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(18, 50, 74, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 50, 74, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 520px);
}

a {
  color: var(--green-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #8bbfa8;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  transform: translateY(-160%);
  z-index: 10;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, var(--article));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  min-width: 13rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.brand-name,
.footer-brand {
  display: block;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.8rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--green);
}

.hero,
.page-hero {
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow,
.category {
  margin: 0 0 0.6rem;
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
}

p {
  margin: 0 0 1.1rem;
}

.lead {
  margin-top: 1.1rem;
  color: #34444e;
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.35;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.hero-panel {
  position: relative;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.route-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.route-line span {
  min-height: 3.2rem;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--navy);
  border-radius: var(--radius);
  font-weight: 800;
}

.mini-card {
  border-left: 4px solid var(--green);
  padding: 0.9rem 1rem;
  background: #fbfcfa;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 0.8rem;
}

.mini-card p {
  margin: 0.25rem 0 0;
}

.mini-card.muted {
  border-left-color: var(--navy-2);
}

.section {
  padding: clamp(2.8rem, 7vw, 5rem) 0;
}

.tone {
  background: #eef4ef;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.compact {
  margin: 0;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.entry-grid a,
.article-card,
.content-panel,
.status-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(18, 50, 74, 0.06);
}

.entry-grid a {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  min-height: 6rem;
  padding: 1rem;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.entry-grid span {
  color: var(--green);
  line-height: 1.8;
}

.card-grid,
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.article-list {
  grid-template-columns: repeat(2, 1fr);
}

.article-card {
  padding: 1.1rem;
}

.article-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.article-card p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.step-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-list span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.step-list p {
  margin: 0.25rem 0 0;
}

.policy-band {
  background: var(--navy);
  color: #edf3ef;
}

.policy-band h2,
.policy-band .eyebrow,
.policy-band a {
  color: #fff;
}

.page-hero {
  background: linear-gradient(180deg, #eef4ef 0%, var(--bg) 100%);
}

.article-header {
  padding: clamp(2.6rem, 6vw, 5rem) 0 2.2rem;
  background: linear-gradient(180deg, #eef4ef 0%, var(--bg) 100%);
}

.date-line {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-body {
  padding-bottom: 4rem;
  font-size: 1rem;
}

.article-body h2 {
  margin-top: 2.4rem;
}

.article-body h3 {
  margin-top: 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
}

.article-body li {
  margin: 0.35rem 0;
}

.note-block,
.related-box,
.sources {
  margin: 1.7rem 0;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-box {
  border-left: 4px solid var(--green);
}

.sources {
  background: #f9fbf8;
}

.sources h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--green);
  border-radius: 3px;
  background: #fff;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: table;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  vertical-align: top;
  text-align: left;
}

th {
  background: #eef4ef;
  color: var(--navy);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.compare-grid > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.info-list {
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.info-list div:first-child {
  padding-top: 0;
}

.info-list dt {
  color: var(--navy);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
}

.content-panel,
.status-box {
  padding: 1.2rem;
}

.caution {
  color: #7a4a10;
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0;
  background: #102b40;
  color: #dce7e1;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem 1rem;
}

.site-footer a,
.site-footer .footer-brand {
  color: #fff;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-footer nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .split,
  .article-list {
    grid-template-columns: 1fr;
  }

  .entry-grid,
  .card-grid,
  .compare-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow {
    width: min(100% - 1.25rem, var(--content));
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    gap: 0.2rem 0.7rem;
    font-size: 0.86rem;
  }

  .hero,
  .page-hero {
    padding: 2.5rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .entry-grid,
  .card-grid,
  .compare-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  th,
  td {
    min-width: 9rem;
  }
}
