/* =========================================================
   運営情報のページ（硬いページ）用
   ・白地、飾りなし、文字と表が中心の「資料」のような見た目
   ・公的機関のページに見えないよう、どのページの最上部にも「個人・非公式」を明記する
   ・ロゴや紋章のようなものは使わない
   「このbotの紹介」側（style.css）とは別のファイルです
   ========================================================= */

:root {
  --text: #1a1a1a;
  --sub: #555;
  --line: #c9c9c9;
  --line-soft: #e5e5e5;
  --bg-soft: #f4f4f4;
  --link: #1d4fa3;      /* リンクの青（白地でコントラスト4.5:1以上） */
  --visited: #6b3fa0;
  --mark: #b5372a;      /* 「下書き」「未」などの印 */
  --font: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.8; letter-spacing: 0.02em;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; background: #fff3a8; color: var(--text); }

.skip { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 8px 16px; background: var(--text); color: #fff; }
.skip:focus { top: 8px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- 最上部の「非公式」の帯 ---------- */
.unofficial { background: var(--text); color: #fff; font-size: 14px; line-height: 1.6; }
.unofficial .wrap { padding-top: 8px; padding-bottom: 8px; }

/* ---------- ヘッダー ---------- */
.f-head { border-bottom: 3px solid var(--text); }
.f-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 12px; }
.f-head__name { color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.4; }
.f-head__name:visited { color: var(--text); }
.f-head__name span { display: block; font-size: 14px; font-weight: 400; color: var(--sub); }
.f-head__back { font-size: 15px; }

.f-nav { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.f-nav ul { display: flex; flex-wrap: wrap; list-style: none; }
.f-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--text); font-size: 15px; text-decoration: none; }
.f-nav a:visited { color: var(--text); }
.f-nav a:hover { text-decoration: underline; }
.f-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -4px 0 var(--text); background: #fff; }

/* ---------- パンくず ---------- */
.f-crumbs { padding: 16px 0 0; font-size: 14px; }
.f-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; }
.f-crumbs li + li::before { content: "＞"; margin: 0 8px; color: var(--sub); }

/* ---------- 本文 ---------- */
main { padding-bottom: 72px; }
.f-title { margin-top: 24px; font-size: 30px; font-weight: 700; line-height: 1.4; letter-spacing: 0.02em; }
.f-meta { margin-top: 8px; font-size: 15px; color: var(--sub); }
.f-lead { margin-top: 24px; }

.f-toc { margin-top: 32px; padding: 16px 20px; border: 1px solid var(--line); }
.f-toc h2 { font-size: 16px; font-weight: 700; }
.f-toc ol { margin-top: 8px; padding-left: 1.6em; }
.f-toc li + li { margin-top: 2px; }

main h2 { margin-top: 56px; padding-bottom: 6px; border-bottom: 2px solid var(--text); font-size: 23px; font-weight: 700; line-height: 1.5; }
main h3 { margin-top: 32px; font-size: 19px; font-weight: 700; line-height: 1.5; }
main p { margin-top: 16px; }
main ul, main ol { margin-top: 16px; padding-left: 1.6em; }
main li + li { margin-top: 6px; }
main .f-toc h2 { margin-top: 0; border: 0; padding: 0; }

/* 定義の表（名称・内容など） */
.f-dl { margin-top: 20px; border-top: 1px solid var(--line); }
.f-dl div { display: grid; grid-template-columns: 11em 1fr; border-bottom: 1px solid var(--line); }
.f-dl dt { padding: 12px 14px; background: var(--bg-soft); font-weight: 700; }
.f-dl dd { padding: 12px 14px; }
@media (max-width: 599px) { .f-dl div { grid-template-columns: 1fr; } }

/* 一般の表 */
.table-wrap { margin-top: 20px; overflow-x: auto; }
.table-wrap:focus-visible { outline: 3px solid var(--text); }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
caption { padding: 0 0 8px; text-align: left; font-weight: 700; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--bg-soft); white-space: nowrap; }
tbody th { white-space: nowrap; font-weight: 700; }
.res { text-align: center; font-weight: 700; white-space: nowrap; }

/* 印 */
.draft { margin-top: 24px; padding: 12px 16px; border: 2px solid var(--mark); }
.draft b { color: var(--mark); }
.tag { display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--mark); color: var(--mark); font-size: 14px; font-weight: 700; line-height: 1.7; vertical-align: 3px; }
.note { font-size: 15px; color: var(--sub); }

/* 運営情報のトップ：ページの一覧 */
.f-index { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.f-index li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.f-index a { display: block; padding: 16px 4px; font-size: 19px; font-weight: 700; }
.f-index p { margin: -8px 0 0; padding: 0 4px 16px; color: var(--sub); font-size: 15px; }

/* ---------- フッター ---------- */
.f-foot { border-top: 3px solid var(--text); background: var(--bg-soft); font-size: 15px; }
.f-foot .wrap { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.f-foot__cols { display: grid; gap: 24px; }
.f-foot h2 { font-size: 16px; font-weight: 700; }
.f-foot ul { list-style: none; margin-top: 8px; }
.f-foot li a { display: inline-flex; align-items: center; min-height: 36px; }
.f-foot__note { color: var(--sub); }
@media (min-width: 700px) { .f-foot__cols { grid-template-columns: 1fr 1fr; } }

/* 印刷したときは資料として読みやすく */
@media print {
  .unofficial { background: none; color: #000; border: 1px solid #000; }
  .f-nav, .skip, .f-foot__cols { display: none; }
  a { color: #000; }
}

/* (1)(2)… の番号を文字で書く箇条書き（2行目以降は番号の分だけ字下げ） */
main ol.paren { list-style: none; padding-left: 0; }
main ol.paren li { padding-left: 2.2em; text-indent: -2.2em; }
