:root { color-scheme: light; --blue: #1458b0; --ink: #173452; --muted: #596d80; --line: #d9e3ed; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 1rem/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", Meiryo, sans-serif; }
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.container { width: min(100% - 40px, 1000px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { color: var(--ink); font-size: 1.7rem; font-weight: 800; text-decoration: none; letter-spacing: .06em; }
.brand span { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; letter-spacing: 0; line-height: 1.3; }
.header-note { color: var(--blue); font-size: .875rem; font-weight: 700; }
h1, h2, h3, p { margin: 0; }
.hero { padding: 60px 0 40px; max-width: 800px; }
.eyebrow { color: var(--blue); font-size: .9375rem; font-weight: 700; margin-bottom: 16px; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.5; letter-spacing: .02em; overflow-wrap: anywhere; }
.hero h1 span { display: block; color: var(--blue); }
.hero h1 .hero-question { color: var(--ink); word-break: keep-all; overflow-wrap: normal; }
.hero-description { max-width: 740px; margin-top: 22px; font-size: 1.0625rem; }
.free-label { display: inline-block; margin-top: 20px; padding: 4px 16px; border-radius: 6px; background: #edf5ff; color: var(--blue); font-size: .9375rem; font-weight: 700; }
h2 { font-size: 1.5rem; line-height: 1.6; }
.regions { padding: 28px 0; }
.region-intro p { color: var(--muted); margin-top: 6px; }
.map-scroll { max-width: 100%; overflow-x: auto; padding: 10px; margin-top: 18px; }
.japan-map { display: block; width: 100%; min-width: 580px; max-width: 680px; height: auto; margin-inline: auto; }
.map-region .map-shape { fill: #dce3ea; }
.map-label { fill: var(--ink); font-family: "Yu Gothic", Meiryo, sans-serif; font-size: 7px; text-anchor: middle; pointer-events: none; }
.map-region.is-published { cursor: pointer; }
.map-region.is-published .map-shape { fill: var(--blue); }
.map-region.is-published .map-label { fill: white; font-weight: 700; }
.map-region.is-published:hover .map-shape { fill: #10488f; }
.map-region.is-published:focus-visible { outline: none; }
.map-region.is-published:focus-visible .map-shape { fill: #10488f; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 1; paint-order: stroke fill; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 16px 0 0; padding: 0; font-size: .9375rem; }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.legend-color { width: 18px; height: 18px; border-radius: 3px; flex: 0 0 auto; }
.legend-color.available { background: var(--blue); }
.legend-color.unavailable { background: #dce3ea; }
.map-scroll-hint { display: none; color: var(--muted); font-size: .875rem; margin-top: 12px; }
.region-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 22px 0 0; }
.region-link { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 100px; padding: 20px 24px; border: 2px solid var(--blue); border-radius: 8px; background: var(--blue); color: #fff; text-decoration: none; }
.region-link:hover { background: #10488f; border-color: #10488f; }
.region-link strong { display: block; font-size: 1.5rem; line-height: 1.5; }
.region-action { display: block; font-size: .9375rem; }
.line-icon { flex: 0 0 auto; }
.flow { padding: 44px 0 32px; }
.flow-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 0; margin: 28px 0 0; list-style: none; }
.flow-list li { border-top: 1px solid var(--line); padding-top: 22px; }
.flow-list .line-icon { color: var(--blue); width: 36px; height: 36px; }
.flow-list h3 { margin: 12px 0 8px; font-size: 1.125rem; }
.flow-list p { color: var(--muted); }
.disclaimer { margin-top: 28px; color: var(--muted); font-size: .875rem; }
.usage-guidance { margin: 24px 0 32px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.closure-note { border-top: 1px solid var(--line); padding: 22px 0 34px; }
.closure-note h2 { font-size: .9375rem; margin-bottom: 6px; }
.closure-note p { font-size: .875rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #f6f9fc; padding: 26px 0; }
.footer-brand { text-decoration: none; font-weight: 700; color: var(--ink); }
.site-footer p, .site-footer small { color: var(--muted); font-size: .875rem; }
.site-footer small { display: block; margin-top: 12px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 16px; font-size: .875rem; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; }
.legal-main { padding-block: 40px 48px; }
.legal-content { max-width: 760px; margin-inline: auto; overflow-wrap: anywhere; }
.legal-content h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 28px; }
.legal-content section { margin-top: 32px; }
.legal-content h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-content p + p { margin-top: 16px; }
.legal-content ul { padding-left: 1.5em; margin-block: 12px 16px; }
.legal-content li + li { margin-top: 6px; }
.legal-content .legal-updated { margin-top: 32px; font-size: .875rem; color: var(--muted); }
.skip-link { position: absolute; left: 20px; top: -100px; background: #fff; padding: 8px 16px; z-index: 1; }
.skip-link:focus { top: 12px; }
.closed-main { padding-block: 48px; min-height: 65vh; }
.closed-card { max-width: 760px; margin-inline: auto; }
.closed-card h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 24px; }
.closed-card p + p { margin-top: 16px; }
.closed-card .region-link { margin-top: 28px; }
.text-link { display: inline-block; margin-top: 22px; padding-block: 8px; }
/* トップページだけの青系配色。ポリシー・旧サービス終了ページには適用しない。 */
.home-page { --blue: #1668c7; --ink: #16354a; --muted: #4f677a; --line: #d6e5ed; --sky-blue: #0879ba; }
.home-page .free-label { background: #eaf5ff; }
.home-page .region-link { background: linear-gradient(110deg, #1668c7, #196ac8); color: white; font-weight: 700; }
.home-page .region-link strong { font-weight: 700; }
.home-page .region-link:hover, .home-page .region-link:focus-visible { background: linear-gradient(110deg, #145fb8, #1761b9); border-color: #145fb8; color: white; }
.home-page .map-region.is-published:hover .map-shape, .home-page .map-region.is-published:focus-visible .map-shape { fill: #145fb8; }
.home-page .flow-list .line-icon { color: var(--sky-blue); }
.home-page .usage-guidance { margin-top: 0; }
.home-page .site-footer { background: #f4f9fc; }
@media (max-width: 600px) {
  .map-scroll-hint { display: block; }
  .header-inner { min-height: 80px; gap: 12px; }
  .brand { font-size: 1.5rem; }
  .hero { padding: 36px 0 28px; }
  .hero-description { font-size: 1rem; margin-top: 18px; }
  .eyebrow { font-size: .875rem; }
  .regions { padding: 22px 0; }
  h2 { font-size: 1.3rem; }
  .region-link { padding: 18px 14px; gap: 12px; }
  .region-link strong { font-size: 1.375rem; }
  .region-action { font-size: .875rem; }
  .flow { padding-top: 32px; }
  .flow-list { grid-template-columns: 1fr; gap: 22px; margin-top: 20px; }
  .flow-list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding-top: 18px; }
  .flow-list .line-icon { grid-row: span 2; margin-top: 4px; }
  .flow-list h3 { margin: 0 0 4px; }
  .closed-main { padding-block: 32px; }
}
