/* こどもデータ連携システム公開サイト（KDRラボ）
   水色（情報を見る・ツールを使う）とオレンジ（相談する・注意の印）を基調にする。
   色は明るい背景だけで設計する（公開サイトは1つの見た目にそろえる） */
:root {
  --primary: #0B76B3;
  --primary-dark: #075A8A;
  --primary-light: #4FB3E0;
  --orange: #F08A24;
  --orange-text: #B4560A;
  --orange-strong: #C2570C;
  --orange-deep: #9C4508;
  --orange-tint: #FFF1E3;
  --orange-ink: #6E3400;
  --sky-tint: #E4F3FB;
  --sky-soft: #EAF6FC;
  --page: #F4F9FC;
  --surface: #FFFFFF;
  --border: #D6E7F0;
  --border-soft: #E5EFF4;
  --chip-border: #C3DEEC;
  --ink: #17303F;
  --ink-2: #36505E;
  --muted: #4A5E6B;
  --field-border: #94ABB8;
  --required: #A33A1F;
  --footer-text: #D3E2EA;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Zen Maru Gothic", "Zen Kaku Gothic New", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--page);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.45; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand-tagline { font-size: 12px; color: var(--muted); }
.global-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; font-weight: 500; }
.global-nav a { text-decoration: none; color: var(--ink); }
.global-nav a[aria-current="page"] { color: var(--primary); font-weight: 700; border-bottom: 2px solid var(--primary); }
.global-nav .nav-contact { color: #FFFFFF; background: var(--orange-strong); padding: 8px 16px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 0; }
.global-nav .nav-contact:hover { color: #FFFFFF; background: var(--orange-deep); }
.global-nav .nav-contact[aria-current="page"] { color: #FFFFFF; background: var(--orange-deep); border-bottom: 0; }

/* ページの見出し */
.page-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-head-inner { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 12px; }
.crumbs { font-size: 14px; color: var(--muted); }
.page-head h1 { font-size: 38px; line-height: 1.4; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 40em; }
.as-of { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .page-head h1 { font-size: 30px; } }

/* 本文の区切り */
.content { padding-block: 48px 72px; display: flex; flex-direction: column; gap: 56px; }
.section { display: flex; flex-direction: column; gap: 16px; }
.section > h2 { font-size: 26px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--primary); letter-spacing: 0.08em; }
.text { max-width: 44em; color: var(--ink-2); }
.small { font-size: 14px; }
.note { font-size: 13px; color: var(--muted); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn svg { flex: none; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-dark); color: #FFFFFF; }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--sky-tint); }
.btn-white { background: #FFFFFF; color: var(--primary); }
.btn-white-orange { background: #FFFFFF; color: var(--orange-strong); }
.btn-disabled, .btn:disabled { background: #C7D6DF; color: var(--muted); border-color: #C7D6DF; cursor: not-allowed; }
.btn-wide { width: 340px; max-width: 100%; padding-inline: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
ul.btn-row { list-style: none; margin: 0; padding: 0; gap: 8px 24px; }
.two-col > .form.main-col { gap: 20px; }

/* カード・格子 */
.grid { display: grid; gap: 12px; }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card p, .card span.desc { font-size: 15px; color: var(--ink-2); }
.card-lg { border-radius: 16px; padding: 28px; gap: 12px; }
.card-accent { border: 2px solid var(--orange); }
.card ul { margin: 0; padding-left: 1.2em; font-size: 15px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.tag { align-self: flex-start; background: var(--sky-tint); color: var(--primary-dark); border-radius: 6px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.card h3 { font-size: 21px; }

/* 手順の並び */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.steps li.accent { border: 2px solid var(--orange); }
.step-no { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 14px; }
.steps li.accent .step-no { color: var(--orange-text); }
.steps .desc { font-size: 14px; color: var(--ink-2); }

.callout { background: var(--orange-tint); border-radius: 10px; padding: 12px 16px; font-size: 15px; color: var(--ink-2); }
.callout-warn { border: 1px solid var(--orange); color: var(--orange-ink); display: flex; gap: 10px; align-items: flex-start; }
.callout-sky { background: var(--sky-tint); border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.callout-sky .title { font-weight: 700; font-size: 18px; color: var(--primary-dark); }
.callout-sky p { color: var(--ink); max-width: 46em; }

/* 帯（相談への導線など） */
.band { border-radius: 20px; padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; color: #FFFFFF; }
.band h2 { font-size: 24px; margin-bottom: 6px; }
.band-blue { background: var(--primary); }
.band-blue p { color: var(--sky-tint); }
.band-orange { background: var(--orange-strong); }
.band-orange p { color: #FFEAD6; }
.band > div { flex: 1 1 420px; min-width: 0; }
@media (max-width: 600px) { .band { padding: 24px; } }

/* トップ */
.hero { background: var(--surface); }
.hero-inner { padding-block: 72px 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: 44px; line-height: 1.35; }
.hero .lead { max-width: 34em; }
@media (max-width: 600px) { .hero-inner { padding-block: 48px; } .hero h1 { font-size: 32px; } }
.flow { flex: 1 1 420px; min-width: 0; background: var(--sky-soft); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--chip-border); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; }
.chips .caption { font-size: 13px; color: var(--muted); align-self: center; }
.flow-arrow { color: var(--primary); font-size: 20px; line-height: 1; padding-left: 24px; }
.flow-step { background: var(--surface); border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; align-items: baseline; }
.flow-step .no { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 18px; }
.flow-step .sub { font-size: 14px; color: var(--muted); }
.flow-step.accent { border: 2px solid var(--orange); }
.flow-step.accent .no { color: var(--orange-text); }
.entry { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-decoration: none; color: var(--ink); }
.entry:hover { border-color: var(--primary-light); color: var(--ink); }
.entry strong { font-size: 19px; }
.entry .desc { font-size: 15px; color: var(--ink-2); }
.entry .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--primary); }
.why-box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 36px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.why-box > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.why-box h2 { font-size: 24px; }
.why-box .btn { flex: 1 1 200px; white-space: nowrap; }
@media (max-width: 600px) { .why-box { padding: 24px; } }
.news { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 20px; }
.news > div { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.news > div:last-child { border-bottom: 0; }
.news dt { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news dd { margin: 0; }

/* 2段組（目次・横の案内） */
.two-col { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-block: 48px 72px; }
.two-col > .main-col { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.two-col > .side-col { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.toc p { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.points { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; max-width: 44em; }
.glossary { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.glossary > div { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.glossary > div:last-child { border-bottom: 0; }
.glossary dt { flex: 0 0 9em; font-weight: 700; }
.glossary dd { flex: 1 1 300px; margin: 0; color: var(--ink-2); }

/* 画面の例 */
.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.shot img { display: block; width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--page); }
.shot figcaption { font-size: 14px; color: var(--ink-2); }
.feature { flex-direction: row; gap: 12px; align-items: flex-start; }
.feature svg { flex: none; }

/* ダウンロード */
.dl-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dl-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.dl-head h2 { font-size: 24px; }
.dl-meta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.summary { margin: 0; padding: 12px 16px 12px 2em; background: var(--page); border-radius: 10px; font-size: 15px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.status-badge { align-self: flex-start; background: var(--orange-tint); color: var(--orange-ink); border: 1px solid var(--orange); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 700; }
.agree { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.agree input { width: 22px; height: 22px; accent-color: var(--primary); }
.hash { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table thead th { border-bottom: 2px solid var(--border); white-space: nowrap; }
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.side-box.orange { background: var(--orange-tint); border: 0; }
.side-box .title { font-weight: 700; margin-bottom: 6px; }
.side-box p, .side-box ol { font-size: 14px; color: var(--ink-2); }
.side-box ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.side-box .link-orange { font-size: 14px; font-weight: 700; color: var(--orange-strong); }

/* フォーム */
.form { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 480px) { .form { padding: 20px; } }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.form legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.radio input { width: 20px; height: 20px; accent-color: var(--primary); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field input, .field textarea { min-height: 44px; padding: 8px 12px; border: 1px solid var(--field-border); border-radius: 8px; font: inherit; font-weight: 400; color: var(--ink); background: #FFFFFF; }
.field textarea { resize: vertical; }
.req { color: var(--required); font-size: 13px; font-weight: 700; }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.confirm-table th { width: 11em; background: var(--page); white-space: nowrap; }
.confirm-table td { white-space: pre-wrap; overflow-wrap: anywhere; }
.errors { border: 2px solid var(--required); background: #FDF1EE; border-radius: 12px; padding: 16px 20px; color: var(--ink); }
.errors ul { margin: 8px 0 0; padding-left: 1.2em; }
.receipt { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--primary-dark); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* 規約・方針などの文書 */
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px 32px 32px; max-width: 46em; }
.doc h2 { font-size: 21px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--border-soft); scroll-margin-top: 16px; }
.doc h2:first-of-type { margin-top: 8px; }
.doc p, .doc ol, .doc ul, .doc table { margin: 10px 0 0; }
.doc ol, .doc ul { padding-left: 1.6em; display: flex; flex-direction: column; gap: 6px; }
.doc ol ul { list-style: none; padding-left: 0.5em; margin-top: 6px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 8px 12px; border: 1px solid var(--border); vertical-align: top; }
.doc thead th { background: var(--sky-tint); white-space: nowrap; }
.doc hr { border: 0; border-top: 1px solid var(--border-soft); margin: 24px 0 0; }
@media (max-width: 600px) { .doc { padding: 4px 20px 24px; } }
.info-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.info-table th { text-align: left; vertical-align: top; padding: 16px 20px; width: 11em; background: var(--page); border-bottom: 1px solid var(--border-soft); }
.info-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.panel { max-width: 52em; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
@media (max-width: 600px) { .info-table th, .info-table td { display: block; width: auto; } .info-table th { border-bottom: 0; padding-bottom: 4px; } }

/* フッター */
.site-footer { background: var(--ink); color: var(--footer-text); font-size: 14px; }
.footer-inner { padding-block: 40px; display: flex; flex-direction: column; gap: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: #FFFFFF; }
.footer-note { padding: 12px 16px; border: 1px solid var(--muted); border-radius: 8px; }
.footer-copy { color: var(--field-border); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
