@charset "utf-8";
/* CiPナビ スタイル（単一ファイル・依存なし） */

:root {
  --navy: #0f3d5c;
  --navy-dark: #0a2a40;
  --navy-light: #1b5a83;
  --accent: #c9762b;
  --accent-soft: #fdf3e8;
  --ink: #1c2733;
  --ink-soft: #4a5a68;
  --ink-mute: #6c7b88;
  --line: #dde4ea;
  --line-soft: #eef2f5;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-tint: #eef4f8;
  --radius: 10px;
  --maxw: 1160px;
  --proseW: 760px;
  --shadow-sm: 0 2px 10px rgba(15, 40, 60, .06);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  font-feature-settings: "palt" 1;
}

img { max-width: 100%; height: auto; }

a { color: var(--navy-light); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- テスト環境の赤帯 ---------- */

.envbar {
  background: #b3261e; color: #fff; font-size: 13px; line-height: 1.6;
  padding: 8px 16px; text-align: center;
}
.envbar a { color: #fff; }
.envbar-meta { display: inline-block; opacity: .85; font-size: 12px; }

/* ---------- ヘッダ ---------- */

.site-header {
  background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: none;
  font-weight: 700; letter-spacing: .02em; flex: 0 0 auto;
}
.brand:hover { color: var(--navy); opacity: .82; }
.brand-name { font-size: 20px; }
.brand-tag { font-size: 11px; font-weight: 400; color: var(--ink-mute); border-left: 1px solid var(--line); padding-left: 9px; }
.logo { flex: 0 0 auto; color: var(--accent); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  display: block; color: var(--ink); text-decoration: none; font-size: 13.5px;
  padding: 8px 10px; border-radius: 6px; font-weight: 700;
}
.site-nav a:hover { background: var(--bg-tint); color: var(--navy); }
.nav-extra a { font-weight: 400; color: var(--ink-soft); }
.nav-search a { border: 1px solid var(--line); font-weight: 400; }

/* テーマ別バー（セクションをまたぐ導線） */
.tagbar { background: var(--bg-soft); border-top: 1px solid var(--line-soft); }
.tagbar-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tagbar-inner::-webkit-scrollbar { display: none; }
.tagbar ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; white-space: nowrap; }
.tagbar a {
  display: block; padding: 9px 12px; font-size: 13px; color: var(--ink-soft);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.tagbar a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.tagbar-first a { font-weight: 700; color: var(--navy); }
.tagbar-first { border-right: 1px solid var(--line); margin-right: 8px; padding-right: 8px; }

.navtoggle, .navtoggle-label { display: none; }

@media (max-width: 980px) {
  .header-inner { min-height: 56px; }
  .brand-tag { display: none; }
  .navtoggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 38px; height: 38px; cursor: pointer; padding: 7px;
  }
  .navtoggle-label span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
  .site-nav { display: none; width: 100%; margin: 0; }
  .navtoggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: 10px; }
  .site-nav a { padding: 11px 6px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav-search a { border: none; }
}

/* ---------- ヒーロー ---------- */

.hero { position: relative; background: var(--navy-dark); overflow: hidden; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,42,64,.94) 0%, rgba(10,42,64,.80) 46%, rgba(10,42,64,.52) 100%);
}
.hero-inner { position: relative; padding: 46px 16px 40px; color: #fff; max-width: var(--maxw); }
.hero-eyebrow {
  margin: 0 0 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: none;
  color: #b9d4e6; font-weight: 600;
}
.hero h1 {
  margin: 0; font-size: clamp(23px, 4.1vw, 35px); line-height: 1.45; font-weight: 700;
  letter-spacing: .01em; max-width: 26em;
}
.hero-lead { margin: 14px 0 0; font-size: 15px; line-height: 1.85; color: #dbe8f1; max-width: 46em; }
.hero-meta { margin: 18px 0 0; font-size: 12.5px; color: #a9c6da; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .breadcrumb { margin: 0 0 16px; color: #a9c6da; }
.hero .breadcrumb a { color: #a9c6da; }
.hero .breadcrumb a:hover { color: #fff; }
.hero .breadcrumb li + li::before { color: rgba(255,255,255,.35); }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.hero-chips a {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: #dbe8f1; text-decoration: none;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 3px 12px;
}
.hero-chips a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- レイアウト ---------- */

.layout { padding-bottom: 8px; }
.article { max-width: var(--proseW); margin: 0 auto; padding: 0 0 8px; }

.breadcrumb { margin: 18px 0 8px; font-size: 12.5px; color: var(--ink-mute); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 目次 ---------- */

.toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0 28px;
}
.toc-title { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--navy); }
.toc ol { margin: 0; padding-left: 1.25em; font-size: 14px; }
.toc li { margin: 4px 0; }
.toc .toc-l3 { margin-left: 1em; list-style: circle; color: var(--ink-soft); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- 本文 ---------- */

.prose { font-size: 16px; }
.prose h2 {
  font-size: 21px; line-height: 1.55; margin: 48px 0 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--navy); font-weight: 700;
}
.prose h3 { font-size: 17.5px; margin: 34px 0 12px; font-weight: 700; color: var(--navy-dark); }
.prose h4 { font-size: 16px; margin: 26px 0 10px; font-weight: 700; color: var(--ink-soft); }
.prose p { margin: 0 0 1.3em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 18px; border-left: 3px solid var(--line);
  color: var(--ink-soft);
}
.prose code {
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 1px 5px; font-size: .92em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.prose pre.code {
  background: #11202c; color: #e6eef5; padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; font-size: 13.5px; line-height: 1.7; margin: 1.4em 0;
}
.prose pre.code code { background: none; border: none; padding: 0; color: inherit; }

.pending-link {
  color: var(--ink-mute); border-bottom: 1px dotted var(--ink-mute); cursor: default;
}

/* ---------- 表 ---------- */

.table-wrap { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 460px; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--bg-tint); color: var(--navy-dark); font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) { background: #fafcfd; }
table.spec th { background: var(--bg-tint); width: 9em; white-space: nowrap; }

/* ---------- 独自ブロック ---------- */

.fig {
  margin: 1.8em 0; padding: 18px 20px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.fig > :first-child { margin-top: 0; }
.fig .table-wrap { margin-top: 0; }
.fig figcaption {
  margin-top: 10px; font-size: 13px; color: var(--ink-mute); border-top: 1px dashed var(--line);
  padding-top: 8px;
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 1.8em 0; }
.stat {
  background: var(--accent-soft); border: 1px solid #f0dcc4; border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
}
.stat-value { font-size: 24px; font-weight: 700; color: #97561a; line-height: 1.3; }
.stat-label { font-size: 13.5px; color: var(--ink-soft); }
.stat-note { font-size: 12px; color: var(--ink-mute); }

.faq {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  margin: 14px 0; background: #fff;
}
.faq-q { margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.faq-q::before { content: "Q. "; color: var(--accent); }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a > :first-child { margin-top: 0; }

.sources {
  margin: 44px 0 0; padding: 20px 22px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px;
}
.sources h2 {
  font-size: 15px; margin: 0 0 10px; border: none; padding: 0; color: var(--navy);
}
.sources ul { margin: 0; padding-left: 1.2em; }
.sources li { margin: 7px 0; line-height: 1.7; word-break: break-all; }
.sources .seen { color: var(--ink-mute); }

.callout {
  border-left: 4px solid var(--navy-light); background: var(--bg-tint);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.6em 0;
}
.callout.warn { border-left-color: #b3261e; background: #fdf1f0; }
.callout-title { margin: 0 0 6px; font-weight: 700; }
.callout > :last-child { margin-bottom: 0; }

.cta {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 22px 24px; margin: 2em 0;
}
.cta-title { margin: 0 0 6px; font-weight: 700; font-size: 17px; }
.cta-text { margin: 0 0 14px; font-size: 14px; color: #cfe0ec; }
.cta-btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 22px; border-radius: 6px; font-weight: 700; font-size: 14.5px;
}
.cta-btn:hover { background: #b0651f; color: #fff; }
.cta-block { margin-top: 48px; }

.disclaimer { font-size: 13px; color: var(--ink-mute); margin-top: 2em; }

/* ---------- タグ・前後・関連 ---------- */

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 30px 0 0; }
.tags li {
  font-size: 12.5px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px; color: var(--ink-soft);
}

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 40px 0 0; }
.pn {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.6; background: #fff;
}
.pn:hover { border-color: var(--navy-light); color: var(--navy); }
.pn span { display: block; font-size: 11.5px; color: var(--ink-mute); margin-bottom: 4px; }
.pn.next { text-align: right; }
.pn.empty { border: none; }

.related { margin: 52px 0 0; }
.related h2 { font-size: 18px; margin: 0 0 16px; color: var(--navy); }

/* ---------- カード ---------- */

.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px; margin: 18px 0 40px;
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--navy-light); transform: translateY(-2px); }
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-media { background: var(--bg-tint); aspect-ratio: 16 / 9; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 18px; }
.card-eyebrow { margin: 0 0 6px; font-size: 11.5px; color: var(--accent); font-weight: 700; }
.card-title { margin: 0 0 8px; font-size: 15.5px; line-height: 1.55; font-weight: 700; color: var(--navy-dark); }
.card-desc { margin: 0; font-size: 13px; line-height: 1.75; color: var(--ink-soft); }

.section-count { font-size: 13px; color: var(--ink-mute); margin: 16px 0 0; }
.empty-note { color: var(--ink-mute); }

/* ---------- トップ ---------- */

.home-intro { margin: 34px 0 10px; }
.home-intro p { max-width: 48em; color: var(--ink-soft); }
.home-entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.entry-card {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 14px 16px; color: var(--navy-dark); background: #fff;
  font-weight: 700; font-size: 14.5px; line-height: 1.5;
}
.entry-card:hover { background: var(--accent-soft); color: var(--navy-dark); }
.entry-num {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-size: 13px;
}
.home-featured, .home-section, .home-latest { margin-top: 48px; }
.home-featured h2, .home-latest h2 {
  font-size: 19px; color: var(--navy); border-bottom: 2px solid var(--navy);
  padding-bottom: 8px; margin: 0 0 6px;
}
.home-section-head { border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 6px; }
.home-section-head h2 { font-size: 19px; margin: 0; }
.home-section-head h2 a { color: var(--navy); text-decoration: none; }
.home-section-head h2 a:hover { color: var(--accent); }
.home-section-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-mute); }

.list-plain { list-style: none; padding: 0; margin: 14px 0 0; }
.list-plain li {
  display: flex; justify-content: space-between; gap: 14px; padding: 11px 2px;
  border-bottom: 1px solid var(--line-soft); font-size: 14.5px;
}
.list-plain a { text-decoration: none; color: var(--navy-light); }
.list-plain a:hover { color: var(--accent); text-decoration: underline; }
.list-date { color: var(--ink-mute); font-size: 12.5px; white-space: nowrap; }
.list-meta { color: var(--accent); font-size: 12px; white-space: nowrap; font-weight: 700; }
.list-latest li { align-items: baseline; }

/* ---------- タグ索引 ---------- */

.tag-block { margin: 40px 0 0; }
.tag-block h2 {
  font-size: 18px; color: var(--navy); border-bottom: 2px solid var(--navy);
  padding-bottom: 8px; margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px;
}
.tag-block h2 a { color: var(--navy); text-decoration: none; }
.tag-block h2 a:hover { color: var(--accent); }
.tag-count {
  font-size: 12px; font-weight: 400; color: #fff; background: var(--accent);
  border-radius: 999px; padding: 1px 9px;
}
.tag-desc { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-mute); }
.tag-more { margin: 10px 0 0; font-size: 13.5px; }

.tagcloud { margin: 44px 0 0; border-top: 1px solid var(--line); padding-top: 24px; }
.tagcloud h2 { font-size: 16px; color: var(--navy); margin: 0 0 12px; }
.tagcloud ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tagcloud a {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; text-decoration: none; color: var(--ink-soft);
}
.tagcloud a:hover { border-color: var(--accent); color: var(--accent); }
.tagcloud .tag-count { background: var(--line); color: var(--ink-mute); }

/* ---------- ファセット ---------- */

.facets { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0 8px; }
.facet { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-soft); }
.facet-label { margin: 0 0 8px; font-weight: 700; font-size: 13px; color: var(--navy); }
.facet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facet li a {
  display: inline-block; font-size: 12.5px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px; text-decoration: none; color: var(--ink-soft);
}
.facet li a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 検索 ---------- */

.searchform { margin: 24px 0 8px; }
.searchform label { display: block; font-size: 13px; color: var(--ink-mute); margin-bottom: 6px; }
.searchform input {
  width: 100%; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: inherit;
}
.searchform input:focus { outline: 2px solid var(--navy-light); outline-offset: 1px; }

/* ---------- フォーム ---------- */

.form-row { margin: 0 0 18px; }
.form-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-row .req { color: #b3261e; font-size: 12px; margin-left: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; font-family: inherit; background: #fff;
}
.form-row textarea { min-height: 150px; line-height: 1.7; }
.form-submit {
  background: var(--accent); color: #fff; border: none; border-radius: 6px;
  padding: 12px 30px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.form-submit:hover { background: #b0651f; }
.form-note { font-size: 13px; color: var(--ink-mute); }

/* ---------- フッタ ---------- */

.site-footer {
  margin-top: 64px; background: var(--navy-dark); color: #c5d7e3; padding: 40px 0 26px;
  font-size: 13.5px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 17px; margin: 0 0 10px; }
.footer-desc { margin: 0 0 12px; line-height: 1.8; max-width: 38em; }
.footer-operator { margin: 0; }
.site-footer a { color: #e2edf4; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 9px; }
.copyright { margin: 30px 0 0; font-size: 12px; color: #8fa9bb; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .hero-inner { padding: 34px 16px 30px; }
  .prose h2 { font-size: 19px; margin-top: 40px; }
}

@media print {
  .site-header, .site-footer, .cta, .prevnext, .related, .envbar, .toc { display: none; }
  body { font-size: 11pt; }
}
