:root {
  --color-text: #1a1a1c;
  --color-text-subtle: #626264;
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-primary: #174b7a;
  --color-primary-hover: #0e365a;
  --color-primary-light: #eaf1f8;
  --color-accent: #9d2638;
  --color-border: #757575;
  --color-border-light: #d8d8d4;
  --color-focus: #ffd43b;
  --content-max: 1200px;
  --reading-max: 76ch;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: #005ea8; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #003e73; text-decoration-thickness: .14em; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 4px solid var(--color-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #1a1a1c;
}
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; color: #fff; background: #1a1a1c; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 80px; display: flex; align-items: center; position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--color-border-light); }
.header-inner { width: min(calc(100% - 64px), var(--content-max)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.logo img { display: block; width: auto; height: 58px; }
.nav { display: flex; align-items: stretch; gap: 8px; font-size: 16px; font-weight: 700; }
.nav a { display: grid; place-items: center; min-height: 48px; padding: 8px 16px; color: var(--color-text); text-decoration: none; border-bottom: 4px solid transparent; }
.nav a:hover { color: var(--color-primary); background: var(--color-primary-light); border-bottom-color: var(--color-primary); }
.nav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.hero, .subhero { position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; text-align: center; }
.hero { min-height: 440px; background: url("images/mv-top.webp") center center / cover no-repeat; }
.subhero { min-height: 264px; background: url("images/mv-sub.webp") center center / cover no-repeat; }
.hero-copy { position: relative; z-index: 1; width: min(calc(100% - 48px), 960px); padding: 64px 0; }
.eyebrow { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.hero h1, .hero-title, .subhero h1 { margin: 0; font-family: inherit; font-weight: 700; letter-spacing: .01em; }
.hero h1, .hero-title { font-size: clamp(40px, 5vw, 64px); line-height: 1.4; }
.subhero h1 { font-size: clamp(28px, 4vw, 45px); line-height: 1.4; }
.hero p { max-width: 44em; margin: 24px auto 0; font-size: 18px; line-height: 1.7; }

.breadcrumbs { width: min(calc(100% - 64px), var(--content-max)); margin: 24px auto 0; font-size: 14px; color: var(--color-text-subtle); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: ">"; margin-left: 8px; color: var(--color-text-subtle); }
.breadcrumbs a { color: #005ea8; }
.page-heading { width: min(calc(100% - 64px), var(--content-max)); margin: 40px auto 0; font-size: clamp(32px, 4vw, 45px); line-height: 1.4; letter-spacing: .01em; }

.layout { width: min(calc(100% - 64px), var(--content-max)); margin: 48px auto 96px; display: grid; grid-template-columns: minmax(0, 9fr) minmax(248px, 3fr); gap: 48px; align-items: start; }
.article { min-width: 0; max-width: 100%; padding: clamp(32px, 5vw, 64px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.article > * { max-width: var(--reading-max); }
.article h1 { margin: 0 0 32px; font-size: clamp(32px, 4vw, 45px); line-height: 1.4; letter-spacing: .01em; }
.article h2 { display: flex; align-items: flex-end; gap: 18px; margin: 72px 0 24px; padding: 0 8px 12px 0; color: var(--color-primary); font-size: clamp(26px, 3vw, 32px); line-height: 1.5; border-bottom: 2px solid var(--color-primary); }
.article h2::before { content: ""; flex: 0 0 96px; width: 96px; height: 104px; margin-top: -48px; background: url("images/h2-illustration.webp") center bottom / contain no-repeat; }
.article > h2:first-child { margin-top: 0; }
.article h3 { margin: 48px 0 16px; padding-bottom: 8px; font-size: 24px; line-height: 1.5; border-bottom: 3px solid var(--color-primary); }
.article h4 { margin: 32px 0 12px; font-size: 20px; line-height: 1.5; color: var(--color-text); }
.company-image { max-width: 100%; margin: 20px 0 32px; }
.company-image img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
.company-image figcaption { margin-top: 8px; color: var(--color-text-subtle); font-size: 14px; line-height: 1.6; }
.company-info-block { margin: 24px 0; padding: 20px 24px; background: #f7f8f7; border: 1px solid var(--color-border-light); border-radius: var(--radius); }
.company-info-block h4 { margin-top: 0; }
.company-info-block > :last-child { margin-bottom: 0; }
.company-info-block ul { margin-top: 12px; }
.company-official-block { background: #fff; border-left: 4px solid var(--color-primary); }
.article-image { max-width: 100%; margin: 32px 0 40px; }
.article-image img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border-light); border-radius: var(--radius); }
.article-image figcaption { margin-top: 8px; color: var(--color-text-subtle); font-size: 14px; line-height: 1.6; }
.article-image figcaption a { font-weight: 700; }
.map-link { margin: 24px 0 32px; }
.map-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; color: #fff; background: var(--color-primary); border: 2px solid var(--color-primary); border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.map-link a::after { content: "↗"; font-size: 18px; }
.map-link a:hover { color: #fff; background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.article p { margin: 0 0 1.35em; }
.article > p:first-of-type { font-size: 18px; }
.article strong { font-weight: 700; background: linear-gradient(transparent 65%, #fff0b8 65%); }
.article ul { margin: 24px 0 32px; padding: 24px 28px 24px 52px; background: #f3f5f3; border-left: 4px solid var(--color-primary); }
.article li + li { margin-top: 8px; }
.official-site-link { overflow-wrap: anywhere; }
.official-site-link::after { content: " ↗"; display: inline-block; color: var(--color-primary); font-weight: 700; text-decoration: none; }
.article hr { display: none; }
.table-wrap { max-width: 100%; margin: 24px 0 40px; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
.article table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.article caption { padding: 12px; font-weight: 700; text-align: left; }
.article th { color: #fff; background: #173f69; }
.article th, .article td { padding: 16px; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.article tr:nth-child(even) td { background: #f4f5f3; }

.sidebar { position: sticky; top: 112px; }
.side-card { margin-bottom: 24px; padding: 24px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.side-title { margin: 0 0 12px; font-size: 20px; line-height: 1.5; }
.side-links { margin: 0; padding: 0; list-style: none; }
.side-links li { border-top: 1px solid var(--color-border-light); }
.side-links a { display: block; min-height: 48px; padding: 12px 4px; color: #005ea8; font-size: 16px; font-weight: 700; line-height: 1.6; text-decoration: underline; text-underline-offset: .2em; }
.side-links a::after { content: " →"; color: var(--color-primary); }
.side-note { margin: 0 0 12px; color: var(--color-text-subtle); font-size: 16px; line-height: 1.7; }
.toc a { font-weight: 400; }
.toc-disclosure { padding: 0; overflow: hidden; }
.toc-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; color: var(--color-text); font-size: 20px; font-weight: 700; line-height: 1.5; list-style: none; }
.toc-disclosure summary::-webkit-details-marker { display: none; }
.toc-disclosure summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--color-primary); border-radius: 50%; font-size: 22px; font-weight: 400; line-height: 1; }
.toc-disclosure[open] summary::after { content: "−"; }
.toc-disclosure summary:hover { background: var(--color-primary-light); }
.toc-disclosure .toc-content { padding: 0 20px 20px; border-top: 1px solid var(--color-border-light); }
.toc-disclosure .toc { padding-top: 8px; }
.mobile-toc { display: none; width: min(calc(100% - 64px), var(--content-max)); margin: 24px auto 0; }

.about-list { display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--color-border); }
.about-list dt, .about-list dd { margin: 0; padding: 20px; border-bottom: 1px solid var(--color-border); }
.about-list dt { font-weight: 700; background: #f1f2ef; }
.article-list-wrap { width: min(calc(100% - 64px), var(--content-max)); margin: 40px auto 96px; padding: clamp(24px, 5vw, 48px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li { border-bottom: 1px solid var(--color-border-light); }
.article-list li:first-child { border-top: 1px solid var(--color-border-light); }
.article-list a { display: flex; align-items: center; min-height: 72px; padding: 18px 8px; color: #005ea8; font-size: 18px; font-weight: 700; line-height: 1.6; }

.footer { padding: 56px 32px 32px; color: #fff; background: #102f52; }
.footer-inner { width: min(100%, var(--content-max)); margin: auto; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.footer .logo, .footer a { color: #fff; }
.footer a { text-underline-offset: .2em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 16px; }
.copyright { margin-top: 40px; padding-top: 24px; color: #dce7f2; text-align: center; font-size: 14px; border-top: 1px solid #496987; }

@media (max-width: 767px) {
  .site-header { position: static; min-height: 72px; }
  .header-inner { width: calc(100% - 32px); flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; }
  .logo img { height: 48px; }
  .nav { width: 100%; gap: 0; overflow-x: auto; }
  .nav a { flex: 1; min-width: max-content; padding-inline: 12px; font-size: 15px; }
  .hero { min-height: 360px; }
  .subhero { min-height: 220px; }
  .hero-copy { width: calc(100% - 32px); padding: 48px 0; }
  .hero h1, .hero-title { font-size: clamp(34px, 10vw, 48px); }
  .hero p { font-size: 17px; }
  .breadcrumbs { width: calc(100% - 32px); margin-top: 16px; }
  .page-heading { width: calc(100% - 32px); margin-top: 32px; font-size: 32px; }
  .mobile-toc { display: block; width: calc(100% - 32px); margin-top: 24px; }
  .sidebar .toc-card { display: none; }
  .layout { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 32px; margin: 32px auto 64px; }
  .article { padding: 32px 20px; }
  .article h2 { align-items: center; gap: 12px; margin: 56px 0 20px; padding-left: 0; font-size: 26px; }
  .article h2::before { flex-basis: 64px; width: 64px; height: 72px; margin-top: -20px; }
  .article h3 { margin-top: 40px; font-size: 22px; }
  .sidebar { position: static; }
  .toc-card { display: block; }
  .about-list { grid-template-columns: 1fr; }
  .about-list dt { padding-bottom: 8px; }
  .about-list dd { padding-top: 8px; }
  .article-list-wrap { width: calc(100% - 32px); margin: 32px auto 64px; padding: 16px 20px; }
  .article-list a { min-height: 64px; padding: 16px 4px; font-size: 17px; }
  .footer { padding-inline: 20px; }
  .footer-inner { display: block; }
  .footer-nav { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.menu-toggle { display: none; }

@media (max-width: 767px) {
  .site-header { position: relative; }
  .header-inner { position: relative; flex-wrap: nowrap; }
  .menu-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-width: 92px; min-height: 48px; padding: 6px 10px; color: var(--color-text); background: #fff; border: 2px solid var(--color-primary); border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .menu-toggle:hover { background: var(--color-primary-light); }
  .menu-toggle-icon { position: relative; display: block; width: 26px; height: 20px; }
  .menu-toggle-icon span { position: absolute; left: 0; display: block; width: 26px; height: 3px; background: var(--color-primary); border-radius: 3px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
  .menu-toggle-icon span:nth-child(1) { top: 1px; }
  .menu-toggle-icon span:nth-child(2) { top: 9px; }
  .menu-toggle-icon span:nth-child(3) { top: 17px; }
  .menu-open .menu-toggle-icon span:nth-child(1) { top: 9px; transform: rotate(45deg); }
  .menu-open .menu-toggle-icon span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle-icon span:nth-child(3) { top: 9px; transform: rotate(-45deg); }
  .site-header.menu-ready .nav { display: none; }
  .site-header.menu-ready.menu-open .nav { position: absolute; z-index: 40; top: 100%; left: 0; display: grid; width: 100%; padding: 8px 16px 16px; gap: 0; overflow: visible; background: #fff; border: 1px solid var(--color-border-light); border-top-color: var(--color-border); border-radius: 0 0 10px 10px; box-shadow: 0 10px 20px rgba(16,47,82,.16); }
  .site-header.menu-ready.menu-open .nav a { display: flex; justify-content: flex-start; min-width: 0; min-height: 56px; padding: 14px 12px; border-bottom: 1px solid var(--color-border-light); font-size: 16px; }
}

.article h2::before{flex:0 0 88px;width:88px;height:88px;margin-top:0;background:url("images/h2-illustration.webp") center bottom / contain no-repeat;border:0;transform:none}
.article-header{width:min(calc(100% - 64px),var(--content-max));margin:40px auto 0}.article-header .page-heading{width:100%;margin:0}.article ol{margin:24px 0 32px;padding:24px 28px 24px 52px;background:#f1f4f7;border-left:4px solid var(--color-primary)}.toc{padding:8px 20px 20px;border-top:1px solid var(--color-border-light)}.toc ol{margin:0;padding-left:24px}.toc li+li{margin-top:8px}.toc-sub{margin-left:12px}.map-link{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;color:#fff;background:var(--color-primary);border-radius:6px;font-weight:700;text-decoration:none}.map-link:hover{color:#fff;background:var(--color-primary-hover)}
@media(max-width:767px){.article-header{width:calc(100% - 32px);margin:32px auto 0}.article-header .mobile-toc{width:100%}.sidebar .toc-disclosure{display:none}.article h2::before{flex-basis:60px;width:60px;height:60px}}
