/* 西播磨青年会議所 議案ポータル
   見た目はアジェンダシステム（議案システム）に合わせる：
   薄いグレーの地、白いヘッダー、青（#0080CC）の見出しと表の見出しセル、角ばった青いボタン。
   朱は「締切」と「判子（済・確認）」にだけ使う。 */

:root {
  --blue: #0080CC;     /* 見出し・表の見出し・ボタン */
  --blue-dark: #006BAB;
  --navy: #0A5F96;     /* 選択中・強調 */
  --shu: #C8382A;      /* 締切・判子 */
  --paper: #F3F3F3;    /* 地 */
  --white: #fff;
  --ink: #333333;      /* 本文 */
  --sub: #6B6F73;      /* 補足 */
  --rule: #D9DCDF;     /* 罫線 */
  --rule-2: #E9EBED;
  --cell-gap: #F7F8F9; /* 表のセルの区切り */
  --yellow: #EFC11B;   /* ログイン中 */
  --doing: #FFF5D6;    /* 作業中の地 */
  --doing-line: #E0B32A;
  --done: #E8F4EC;
  --done-line: #2F8A57;
  --review: #0080CC;
  --font: "Open Sans", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.45; margin: 0; color: var(--ink); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--paper); padding: 0 .3em; }
.num { font-variant-numeric: tabular-nums; }
.file { font-variant-numeric: tabular-nums; word-break: break-all; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.break { word-break: break-all; }
.c { text-align: center; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid #E8A33D; outline-offset: 2px; }

/* ---------- ヘッダー（アジェンダシステムと同じ作り） ---------- */
.gh { display: flex; align-items: stretch; background: #fff; min-height: 80px; box-shadow: 0 1px 0 var(--rule); position: relative; z-index: 20; }
.gh__brand { display: flex; align-items: center; gap: .6rem; padding: 0 1.25rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.gh__brand:hover { color: var(--ink); }
.gh__logo { display: block; line-height: 0; }
.gh__sys { font-weight: 700; font-size: 17px; color: var(--blue); letter-spacing: .04em; }
.gh__org { font-weight: 700; font-size: 14.5px; margin-left: .4rem; }
.gh__nav { display: flex; align-items: center; gap: 1.4rem; padding: 0 1.4rem; }
.gh__nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; padding: .3rem 0; border-bottom: 3px solid transparent; }
.gh__nav a:hover { color: var(--blue); }
.gh__nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.gh__user { width: 100px; background: var(--yellow); color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1.35; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .4rem; }
.gh__face { font-size: 22px; line-height: 1; margin-bottom: .2rem; }
.gh__logout { display: flex; margin: 0; }
.gh__logout button { width: 100px; border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; }
.gh__logout button span { font-size: 22px; line-height: 1; }
.gh__logout button:hover { background: var(--blue-dark); }

.subbar { background: #fff; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule); }
.subbar__inner { max-width: 1140px; margin: 0 auto; padding: .45rem 1.25rem; display: flex; align-items: center; gap: .6rem 1.2rem; flex-wrap: wrap; font-size: 13.5px; }
.tsel { display: flex; align-items: center; gap: .4rem; }
.tsel span { color: var(--sub); white-space: nowrap; }
.tsel select { font: inherit; font-size: 13.5px; color: var(--ink); background: #fff; border: 1px solid #C4C8CC; padding: .2rem .4rem; max-width: 240px; }
.subbar__role { color: var(--sub); }
.subbar__actions { margin-left: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
.subbar__actions a { background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; padding: .3rem .8rem; }
.subbar__actions a:hover { background: var(--blue-dark); color: #fff; }
.subbar__actions a[aria-current="page"] { background: var(--navy); }

.main { max-width: 1140px; margin: 0 auto; padding: 2.5rem 1.25rem 2rem; min-width: 0; }
.main--board { max-width: 1480px; }
.page-head { text-align: center; margin-bottom: 2.25rem; }
.page-head h1 { font-size: 28px; color: var(--blue); letter-spacing: .02em; }
.page-head h1::after { content: ""; display: block; width: 60px; height: 3px; background: var(--blue); margin: .7rem auto 0; }
.lead { color: var(--sub); margin: .9rem 0 0; font-size: 14px; }
.page-head .btn, .page-head .btn-row { margin-top: 1rem; }
.page-head .btn-row { justify-content: center; }

/* セクション（カードではなく、見出し＋罫線で区切る） */
.card { margin: 0 0 2.5rem; }
.card__title { font-size: 22px; color: var(--blue); margin-bottom: .8rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }

.flash { padding: .7rem 1rem; margin-bottom: 1.5rem; border-left: 4px solid; background: #fff; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash--ok { border-color: var(--done-line); background: var(--done); }
.flash--error { border-color: var(--shu); background: #FBEDEA; color: #7D2618; }
.callout { padding: .6rem .9rem; border-left: 4px solid var(--blue); background: #fff; margin: .75rem 0; }
.callout--over { border-color: var(--shu); background: #FBEDEA; }
.callout--done { border-color: var(--done-line); background: var(--done); }

/* ---------- ボタン（アジェンダシステムと同じ角ばった青） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem 1.1rem;
  border: 1px solid var(--blue); border-radius: 0; background: var(--blue); color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.5;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: #EAF4FB; color: var(--blue-dark); }
.btn--danger { background: #fff; border-color: var(--shu); color: var(--shu); }
.btn--danger:hover { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn--sm { padding: .25rem .8rem; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }
form.inline { display: inline; }

/* ---------- 判子（このサイト唯一の装飾） ---------- */
.stamp {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border: 2px solid var(--shu); border-radius: 50%;
  color: var(--shu); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 0;
  transform: rotate(-12deg); background: transparent;
  box-shadow: inset 0 0 0 1px rgba(191, 63, 44, .25);
}
.stamp--sm { width: 28px; height: 28px; font-size: 12px; }
.stamp--v { writing-mode: vertical-rl; font-size: 11px; line-height: 1.05; width: 38px; height: 38px; }

/* ---------- 集計 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 2.25rem; background: #fff; }
.stats > div { padding: .8rem 1.1rem; }
.stats > div + div { border-left: 1px solid var(--rule); }
.stats dt { font-size: 13px; color: var(--sub); }
.stats dd { margin: 0; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.stats dd small { font-size: 13px; font-weight: 400; margin-left: .2em; color: var(--sub); }
.stats .is-over dd { color: var(--shu); }

/* ---------- 今やること ---------- */
.alerts { list-style: none; margin: 0; padding: 0; }
.alert { padding: .7rem 0 .7rem .9rem; border-bottom: 1px solid var(--rule-2); border-left: 4px solid var(--doing-line); }
.alert--over { border-left-color: var(--shu); }
.alert p { margin: .15rem 0 0; font-size: 14px; }
.alert__head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.alert__badge { font-size: 13px; font-weight: 700; color: #8A6A0B; font-variant-numeric: tabular-nums; }
.alert--over .alert__badge { color: var(--shu); }
.alert__name { font-weight: 700; }
.alert--mine { background: #F6F9FC; }

/* ---------- 使い方（手順なので番号付き） ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; column-gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--rule-2); }
.steps li > * { grid-column: 2; }
.steps__no { grid-column: 1 !important; grid-row: 1 / span 4; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps p { margin: .1rem 0 .45rem; font-size: 14px; color: var(--sub); }
.steps .btn, .steps .btn-row { justify-self: start; }

.notices { list-style: none; margin: 0; padding: 0; }
.notices li { display: flex; gap: .9rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--rule-2); flex-wrap: wrap; }
.tag, .kind { font-size: 12px; color: var(--sub); border: 1px solid var(--rule); padding: 0 .45rem; white-space: nowrap; }
.notices--admin li > span:nth-child(3) { flex: 1; }

/* ---------- 状態表示 ---------- */
.chip { display: inline-block; font-size: 12.5px; padding: 0 .5rem; border: 1px solid var(--rule); color: var(--sub); background: #fff; white-space: nowrap; line-height: 1.75; }
.chip--doing { background: var(--doing); border-color: var(--doing-line); color: #6F5508; }
.chip--done { background: var(--done); border-color: var(--done-line); color: var(--done-line); }
.chip--over { background: #fff; border-color: var(--shu); color: var(--shu); font-weight: 700; }
.chip--submitted { background: #E8F0F8; border-color: var(--blue); color: var(--blue); }
.ok-text { color: var(--done-line); font-weight: 700; }
.sub-text { color: var(--blue); font-weight: 700; }
.over-text { color: var(--shu); font-weight: 700; }
.strong { font-weight: 700; }
.sev { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 0 .45rem; white-space: nowrap; line-height: 1.75; border: 1px solid; }
.sev--must { color: #fff; background: var(--shu); border-color: var(--shu); }
.sev--recommend { color: #6F5508; background: var(--doing); border-color: var(--doing-line); }
.sev--review { color: var(--review); background: #fff; border-color: var(--review); }
.sev--ok { color: var(--done-line); background: #fff; border-color: var(--done-line); }
.check-summary { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: .55rem .7rem; border: 1.6px solid var(--cell-gap); vertical-align: top; }
.table td { background: #fff; }
.table th { font-size: 14.5px; color: #fff; font-weight: 400; background: var(--blue); white-space: nowrap; }
.table thead th { text-align: center; }
.table td.actions { white-space: nowrap; }
.check-table td:nth-child(5) { min-width: 16em; }
.matrix .ok { color: var(--navy); }
.matrix .ng { color: var(--rule); }
.old-row td { background: #FAFBFC; }
.zip-table td { vertical-align: middle; }

/* ---------- フォーム ---------- */
.form { max-width: 760px; }
.form .field { margin-bottom: 1.3rem; border: 0; padding: 0; }
.form label, .form legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: .35rem; color: var(--ink); }
.req { font-style: normal; font-size: 12px; font-weight: 400; color: var(--shu); margin-left: .4rem; }
.form input[type=text], .form input[type=password], .form input[type=date], .form select, .form textarea, .form input[type=file] {
  width: 100%; max-width: 560px; font: inherit; font-size: 15px; padding: .5rem .65rem;
  border: 1px solid #B9C2CC; border-radius: 3px; background: #fff; color: var(--ink);
}
.form textarea { max-width: 720px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(29, 92, 143, .2); }
.form--wide { max-width: none; }
.form .label { display: block; font-weight: 700; font-size: 14px; margin-bottom: .35rem; }
.form .field-row { display: flex; gap: 1rem; flex-wrap: wrap; max-width: 760px; }
.form .field-row .field { min-width: 120px; }
.check.check--inline { display: inline-flex !important; gap: .3rem; margin: 0 .6rem 0 0; padding: .1rem 0; }
.check.check--inline input { margin-top: .2rem; }
.toggle { font: inherit; font-size: 12.5px; font-weight: 700; min-width: 5em; padding: .25rem .6rem; border: 1px solid #B9C2CC; background: #fff; color: var(--sub); cursor: pointer; }
.toggle.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.rules-table tr.is-off td { color: var(--sub); background: #FAFAFA; }
.rules-table tr.is-off a:not(.btn) { color: var(--sub); }
.soumu-edit td { vertical-align: middle; }
.soumu-edit input[type=text] { max-width: none !important; }
.form .soumu-edit input[type=number] { padding: .4rem .3rem !important; text-align: center; width: 3.8em; max-width: none; font: inherit; padding: .35rem; border: 1px solid #B9C2CC; }
.soumu { list-style: none; margin: 0; padding: 0; }
.soumu li { display: flex; align-items: center; gap: .75rem; padding: .6rem .2rem; border-bottom: 1px solid var(--rule-2); }
.soumu li:last-child { border-bottom: 0; }
.soumu__mark { flex: none; width: 22px; height: 22px; border: 2px solid #B9C2CC; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.soumu li.is-done .soumu__mark { background: var(--done-line); border-color: var(--done-line); }
.soumu__text { flex: 1; }
.soumu li.is-done .soumu__text { color: var(--sub); }
.soumu__who { font-size: 12px; color: var(--sub); white-space: nowrap; }
.soumu-count { font-size: 12px; font-weight: 700; padding: 0 .4rem; border: 1px solid var(--rule); color: var(--sub); white-space: nowrap; }
.soumu-count.is-full { border-color: var(--done-line); color: var(--done-line); }
.hint { font-size: 13px; color: var(--sub); margin: .3rem 0 0; }
.radios { display: flex; flex-wrap: wrap; gap: 0; }
.radio { display: inline-flex !important; align-items: center; gap: .35rem; font-weight: 400 !important; color: var(--ink) !important; border: 1px solid #B9C2CC; padding: .35rem .9rem; cursor: pointer; background: #fff; margin: 0 -1px -1px 0 !important; }
.radio:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff !important; position: relative; z-index: 1; }
.radio input { accent-color: #fff; }
.check { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; padding: .3rem 0; cursor: pointer; }
.check input { margin-top: .45rem; width: 17px; height: 17px; flex: none; accent-color: var(--navy); }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.deadline-preview { margin-top: .5rem; font-size: 14px; color: var(--sub); }
.deadline-preview b { color: var(--navy); display: inline-block; min-width: 6em; }
.plan-list { list-style: none; margin: .4rem 0 0; padding: .6rem .9rem; background: #fff; border-left: 4px solid var(--blue); }
.plan-list li { padding: .15rem 0; }
.stage-now { margin-top: .5rem; display: flex; gap: .35rem; flex-wrap: wrap; font-size: 13px; align-items: center; }
.form--compact label { font-weight: 400; font-size: 13px; }
.form--compact .field-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.form--compact .field-row label { flex: 1; min-width: 140px; }
.form--compact textarea, .form--compact input { margin-bottom: .5rem; }
.structure { margin: .5rem 0 1rem; }
.structure summary { cursor: pointer; color: var(--blue); font-size: 14px; }
.structure pre { background: var(--paper); border-left: 3px solid var(--rule); padding: .9rem 1rem; overflow-x: auto; line-height: 1.65; font-family: ui-monospace, Consolas, monospace; }

/* ---------- 保管庫 ---------- */
.tree-year { margin-bottom: 1.5rem; }
.tree-year > summary { display: flex; align-items: baseline; gap: .75rem; cursor: pointer; list-style: none; padding: .4rem 0; border-bottom: 2px solid var(--blue); }
.tree-year > summary::-webkit-details-marker { display: none; }
.tree-year > summary::before { content: "＋"; color: var(--navy); font-weight: 700; }
.tree-year[open] > summary::before { content: "－"; }
.tree-year h2 { font-size: 22px; color: var(--blue); }
.tree-committee { margin-top: 1.1rem; }
.tree-committee h3 { font-size: 14.5px; margin-bottom: .4rem; padding-left: .6rem; border-left: 4px solid var(--blue); }
.tree-project { margin: 0 0 1.25rem .9rem; }
.tree-project__name { margin: 0 0 .3rem; font-weight: 700; }

/* ---------- マニュアル・ひな形 ---------- */
.filelist { list-style: none; margin: 0; padding: 0; }
.filelist li { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--rule-2); flex-wrap: wrap; }
.ext { display: inline-block; font-size: 11px; font-weight: 700; color: var(--sub); border: 1px solid currentColor; padding: 0 .3rem; margin-right: .45rem; line-height: 1.5; vertical-align: 1px; }
.ext--pdf { color: var(--shu); }
.ext--docx, .ext--doc { color: #2B5797; }
.ext--xlsx, .ext--xls { color: #1E7145; }
.toc { margin: 0; padding-left: 1.4rem; }
.toc li { padding: .15rem 0; }
.tpl-list { list-style: none; margin: 0; padding: 0; }
.tpl { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule-2); flex-wrap: wrap; }
.tpl p { margin: 0; }
.tpl__files { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

/* ---------- Q&A ---------- */
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { cursor: pointer; padding: .75rem 1rem; font-weight: 700; color: var(--ink); list-style: none; display: flex; gap: .7rem; background: #fff; }
.faq details { margin-bottom: .5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "問"; color: var(--blue); }
.faq details p { margin: 0; padding: .2rem 1rem .9rem 2.75rem; color: var(--ink); background: #fff; }
.faq details p::before { content: "答　"; color: var(--sub); font-weight: 700; margin-left: -1.75rem; }

/* ---------- オンボーディング表 ---------- */
.notice-line { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; margin: -0.75rem 0 1.25rem; padding: .55rem .9rem; background: #fff; border-left: 4px solid var(--yellow); font-size: 14px; }
.board-toolbar { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.board-toolbar .btn { margin-left: auto; }
.seg { display: inline-flex; }
.seg__btn { font: inherit; font-size: 14px; border: 1px solid #B9C2CC; background: #fff; padding: .3rem .9rem; cursor: pointer; color: var(--ink); margin-right: -1px; }
.seg__btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; position: relative; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: 12.5px; color: var(--sub); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lg-box { width: 18px; height: 11px; border: 1px solid #A9B4BF; background: #fff; display: inline-block; }
.lg-doing { background: var(--doing); border-color: var(--doing-line); }
.lg-done { background: var(--done); border-color: var(--done-line); }
.lg-over { border: 2px solid var(--shu); }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--navy); display: inline-block; }
.lg-dot--sub { background: var(--blue); border-color: var(--blue); }
.lg-dot--meet { background: var(--blue); border-color: var(--blue); }
.lg-dot--done { background: var(--done-line); border-color: var(--done-line); }
.lg-dot--alert { background: var(--shu); border-color: var(--shu); }
.lg-dia--meet { background: var(--navy); width: 8px; height: 8px; }
.lg-dia { width: 9px; height: 9px; transform: rotate(45deg); background: var(--navy); display: inline-block; }

.board { border: 1px solid var(--rule); overflow: hidden; background: #fff; }
.notice-line, .board-toolbar { text-align: left; }
.board__loading, .board__empty { padding: 2.5rem 2rem; text-align: center; position: sticky; left: 0; width: min(100%, 100vw - 3rem); }
.board__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rail { position: relative; --lw: 300px; }

/* 見出し（年度帯・月） */
.rh { display: flex; border-bottom: 1px solid var(--rule); background: #fff; }
.rh__corner { position: sticky; left: 0; z-index: 8; flex: 0 0 var(--lw); width: var(--lw); background: #fff; border-right: 1px solid var(--rule);
  padding: .7rem 1.1rem; font-weight: 700; color: var(--blue); font-size: 16px; display: flex; flex-direction: column; justify-content: center; }
.rh__corner small { font-weight: 400; color: var(--sub); font-size: 12px; }
.rh__track { position: relative; flex: 0 0 auto; }
.rail__years, .rail__months { position: relative; }
.rail__years { height: 34px; }
.rail__months { height: 30px; border-top: 1px solid var(--rule-2); background: #fff; }
.yband { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 .9rem; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.yband--prep { background: #E4E8EC; color: var(--sub); }
.yband--main { background: var(--blue); color: #fff; }
.mcell { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--rule-2); font-size: 12.5px; color: var(--sub); padding: 6px 0 0 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mcell--jan { border-left: 2px solid var(--navy); color: var(--navy); font-weight: 700; }
.today-tag { position: absolute; bottom: 3px; transform: translateX(-50%); background: var(--shu); color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px .45rem; white-space: nowrap; z-index: 3; }

/* 本体と背景罫線 */
.rail__main { position: relative; }
.grid { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.prep-band { position: absolute; top: 0; bottom: 0; background: #F7F8F9; }
.mline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--rule-2); }
.mguide { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dotted rgba(0, 128, 204, .28); }
.mguide--rijikai { border-left-color: rgba(10, 95, 150, .18); }
.fy-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--navy); z-index: 2; }
.today-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--shu); z-index: 4; }

/* 会議日程（上部） */
.sched { position: relative; border-bottom: 3px solid var(--blue); }
.srow { display: flex; min-height: 64px; }
.srow + .srow { border-top: 1px solid var(--rule-2); }
.srow__label { position: sticky; left: 0; z-index: 6; flex: 0 0 var(--lw); width: var(--lw); background: #fff; border-right: 1px solid var(--rule);
  padding: .6rem 1.1rem; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: .6rem; }
.srow__label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex: none; }
.srow--rijikai .srow__label::before { border-radius: 0; background: var(--navy); transform: rotate(45deg) scale(.85); }
.srow__label small { margin-left: auto; font-weight: 400; color: var(--sub); font-size: 12px; }
.srow__track { position: relative; flex: 0 0 auto; }
.srow__empty { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--sub); white-space: nowrap; }
.smk { position: absolute; top: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); z-index: 3; }
.smk i { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--blue); }
.smk--rijikai i { border-radius: 0; background: var(--navy); box-shadow: 0 0 0 1px var(--navy); transform: rotate(45deg) scale(.9); }
.smk span { margin-top: 4px; font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.2; }
.smk span small { font-weight: 400; color: var(--sub); margin-left: 1px; font-size: 10.5px; }
.smk--past { opacity: .45; }
.smk--rinji i { background: #fff; }
.smk:hover span, .smk:focus-visible span { color: var(--blue); text-decoration: underline; }

/* 事業の一覧 */
.plist { position: relative; }
.plist__head { display: flex; }
.plist__hl { position: sticky; left: 0; z-index: 6; width: var(--lw); background: var(--cell-gap); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: .55rem 1.1rem; font-weight: 700; font-size: 14px; color: var(--blue); }
.plist__hl small { display: block; font-weight: 400; font-size: 11.5px; color: var(--sub); }
.brow { position: relative; display: flex; min-height: 148px; border-bottom: 1px solid var(--rule); cursor: pointer; outline: none; }
.brow:last-child { border-bottom: 0; }
.brow__info { position: sticky; left: 0; z-index: 6; flex: 0 0 var(--lw); width: var(--lw); background: #fff; border-right: 1px solid var(--rule);
  border-left: 5px solid #C9D1D9; padding: 1rem 1rem 1rem .95rem; display: flex; flex-direction: column; gap: .3rem; }
.brow--doing .brow__info { border-left-color: var(--yellow); }
.brow--submitted .brow__info { border-left-color: var(--blue); }
.brow--done .brow__info { border-left-color: var(--done-line); }
.brow--over .brow__info { border-left-color: var(--shu); }
.brow:hover .brow__info, .brow:focus-visible .brow__info { background: #F2F8FC; }
.brow:focus-visible { box-shadow: inset 0 0 0 3px #E8A33D; }
.pi__name { font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--blue); }
.brow:hover .pi__name { text-decoration: underline; }
.pi__meta { font-size: 12px; color: var(--sub); line-height: 1.5; }
.pi__meta b { color: var(--ink); }
.pi__dates { display: flex; align-items: baseline; gap: .55rem; font-size: 13px; font-variant-numeric: tabular-nums; }
.pi__k { flex: none; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--navy); padding: 0 .4rem; line-height: 1.6; }
.pd { white-space: nowrap; font-weight: 700; }
.pd small { font-weight: 400; color: var(--sub); font-size: 11px; }
.pd small:first-child { margin-right: .2rem; }
.pd--done { color: var(--done-line); }
.pd--sub { color: var(--blue); }
.pd--alert { color: var(--shu); }
.pd--none { color: var(--sub); font-weight: 400; }
.pi__state { display: flex; align-items: center; gap: .55rem; margin-top: .25rem; flex-wrap: wrap; }
.pi__next { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.brow--over .pi__next { color: var(--shu); font-weight: 700; }
.brow__track { position: relative; flex: 0 0 auto; }
.brow:hover .brow__track { background: rgba(0, 128, 204, .035); }
.brow__lane { position: absolute; top: 50%; height: 3px; margin-top: -1px; background: #C9D1D9; }
.mk { position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.mk__dot { display: block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; }
.mk__dia { display: block; width: 14px; height: 14px; transform: rotate(45deg); border: 2px solid var(--navy); background: #fff; }
.mk--done .mk__dot, .mk--done .mk__dia { background: var(--done-line); border-color: var(--done-line); }
.mk--alert .mk__dot, .mk--alert .mk__dia { background: var(--shu); border-color: var(--shu); }
.mk__label { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; color: var(--sub); font-variant-numeric: tabular-nums; }
.mk__label b { font-weight: 700; margin-right: .2em; color: var(--ink); }
.mk--up .mk__label { bottom: 16px; }
.mk--down .mk__label { top: 16px; }
.mk--event .mk__label { bottom: 18px; }
.mk--alert .mk__label, .mk--alert .mk__label b { color: var(--shu); }
.mk--done .mk__label b { color: var(--done-line); }
.mk--sub .mk__dot { background: var(--blue); border-color: var(--blue); }
.mk--sub .mk__label b { color: var(--blue); }
.mk--est .mk__dot { border-style: dashed; }
.board-note { margin-top: .5rem; }

/* ---------- 事業詳細（モーダル） ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(16, 35, 59, .5); }
.modal__panel { position: relative; background: #fff; width: min(900px, 100%); outline: none; box-shadow: 0 10px 40px rgba(16, 35, 59, .35); }
.modal__close { position: absolute; top: .55rem; right: .6rem; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 15px; cursor: pointer; z-index: 2; }
.modal__close:hover { background: rgba(255,255,255,.15); }
.md-head { background: var(--blue); color: #fff; padding: 1rem 3.5rem 1rem 1.5rem; }
.md-head h2 { font-size: 19px; color: #fff; }
.md-head p { margin: .15rem 0 0; font-size: 13px; opacity: .85; }
.md-body { padding: .5rem 1.5rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); }
.md-sec { min-width: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.md-sec:last-child { border-bottom: 0; }
.md-sec h3 { font-size: 18px; color: var(--blue); margin-bottom: .75rem; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 1rem; padding: 0; counter-reset: st; }
.stepper li { list-style: none; position: relative; text-align: center; font-size: 13.5px; padding-top: 36px; }
.stepper li::before { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--rule); }
.stepper li:first-child::before { left: 50%; }
.stepper li:last-child::before { right: 50%; }
.stepper li::after { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #fff; border: 2px solid #A9B4BF; color: var(--sub); }
.stepper .s-done::after { content: "済"; color: #fff; background: var(--ok, #2E8B57); border-color: var(--ok, #2E8B57); }
.stepper .s-doing::after { background: var(--doing); border-color: var(--doing-line); color: #6F5508; }
.stepper .s-submitted::after { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper--6 { grid-template-columns: repeat(6, 1fr); }
.stepper--6 li { font-size: 12.5px; }
.sched td { vertical-align: middle; }
.sched tr.is-current td { background: #F6F9FC; }
.sched tr.is-current td:first-child { box-shadow: inset 4px 0 0 var(--blue); font-weight: 700; }
.sub__meta { margin: .2rem 0 .3rem; }
.stepper .s-over::after { background: var(--shu); border-color: var(--shu); color: #fff; content: "!"; }
.stepper .is-current { font-weight: 700; color: var(--navy); }
.dcards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); }
.dcard { padding: .55rem .8rem; }
.dcard + .dcard { border-left: 1px solid var(--rule); }
.dcard__label { font-size: 12.5px; color: var(--sub); }
.dcard__date { font-size: 16px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.dcard__left { font-size: 13px; font-weight: 700; color: var(--sub); }
.dcard--over { background: #FBEDEA; }
.dcard--over .dcard__left, .dcard--soon .dcard__left { color: var(--shu); }
.dcard--done .dcard__left { color: var(--done-line); }
.sub { padding: .6rem 0; border-bottom: 1px dashed var(--rule); }
.sub__head { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.sub__tree { margin: .35rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: 12.5px; color: var(--sub); }
.md-empty { color: var(--sub); font-size: 14px; margin: 0; }
.md-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.siryoh { margin-top: .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
.siryoh h4 { margin: 0 0 .25rem; font-size: 13px; }
.siryoh ul { margin: 0; padding-left: 1.1rem; font-size: 13.5px; }
.hist { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hist li { display: grid; grid-template-columns: 6.5em 8.5em 1fr; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--rule-2); }
.hist li:last-child { border-bottom: 0; }

.site-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--sub); }

/* ---------- 会議・議事次第・議案 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search { display: flex; gap: .5rem; align-items: center; margin-top: .8rem; flex-wrap: wrap; }
.search input { font: inherit; font-size: 14px; padding: .35rem .6rem; border: 1px solid #B9C2CC; border-radius: 3px; width: 18rem; max-width: 100%; }
.meeting-table td { vertical-align: middle; }
.meeting-table tr.is-past td { color: var(--sub); }
.crumb { margin: 0 0 .3rem; color: var(--sub); }
.agenda-head .btn-row { margin-top: .8rem; }
.agenda-org { margin: 0 0 .2rem; font-size: 24px; color: var(--blue); font-weight: 400; }
.agenda { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.agenda { background: #fff; padding: 1rem 1.5rem; }
.agenda__item { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .4rem; padding: .35rem 0; }
.agenda__item--section .agenda__title { font-weight: 700; }
.agenda__no { color: var(--sub); text-align: right; padding-right: .4rem; }
.agenda__none { grid-column: 2; }
.agenda__bills { grid-column: 2; width: 100%; border-collapse: collapse; margin-top: .35rem; font-size: 14px; }
.agenda__bills td { padding: .35rem .5rem; vertical-align: middle; }
.agenda__code { width: 4.5em; color: var(--sub); white-space: nowrap; }
.agenda__who { width: 13em; color: var(--sub); }
.agenda__act { width: 12em; text-align: right; white-space: nowrap; }
.agenda__name .stamp { vertical-align: middle; margin-left: .3rem; }
.kv th { width: 8em; background: var(--blue); color: #fff; text-align: left; vertical-align: top; font-weight: 700; }
.sub-h { font-size: 16px; color: var(--blue); margin: 1rem 0 .3rem; }
.filelinks { margin: 0; padding-left: 1.2rem; columns: 2; }
.qa { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.qa__item { padding: .9rem 1.2rem; background: #fff; margin-bottom: .5rem; }
.qa__head { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.qa__del { margin-left: auto; }
.qa__body { margin: .35rem 0; white-space: normal; }
.qa__reply { margin: .4rem 0 0 1.2rem; padding: .4rem .8rem; border-left: 3px solid var(--rule); background: #FAFBFC; }
.qa__reply p { margin: .2rem 0 0; }
.qa__replyform { margin: .4rem 0 0 1.2rem; }
.qa__form { background: #fff; padding: 1.2rem 1.4rem; }
.form-h { font-size: 20px; color: var(--blue); margin: 2rem 0 .8rem; }
.form .field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form .field-row .field { flex: 1; min-width: 150px; }
.form input[type=time], .form input[type=number], .form input[type=datetime-local] { width: 100%; max-width: 260px; font: inherit; font-size: 15px; padding: .5rem .65rem; border: 1px solid #B9C2CC; border-radius: 3px; background: #fff; color: var(--ink); }
.mono-area { font-family: inherit; line-height: 1.7; }

/* ---------- ログイン画面 ---------- */
.login { max-width: 560px; margin: 2.5rem auto 4rem; padding: 2rem 2rem 2.5rem; background: #fff; }
.login__intro { text-align: center; margin-bottom: 1.75rem; }
.login__intro h1 { font-size: 26px; color: var(--blue); }
.login__intro h1::after { content: ""; display: block; width: 60px; height: 3px; background: var(--blue); margin: .6rem auto 0; }
.login__intro p { margin: .4rem 0 0; color: var(--sub); font-size: 14px; }
.login__form .field { margin-bottom: 1.5rem; }
.acct { display: grid; gap: 0; }
.acct__item { display: grid !important; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .7rem .9rem; border: 1px solid #B9C2CC; margin: 0 0 -1px !important; cursor: pointer; font-weight: 400 !important; color: var(--ink) !important; background: #fff; }
.acct__item input { grid-row: 1 / span 2; width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.acct__label { font-weight: 700; color: var(--navy); }
.acct__desc { font-size: 13px; color: var(--sub); }
.acct__item:has(input:checked) { border-color: var(--navy); background: #F2F5F9; box-shadow: inset 4px 0 0 var(--navy); position: relative; z-index: 1; }
.pw { display: flex; max-width: 560px; }
.pw input { flex: 1; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.pw__toggle { font: inherit; font-size: 13px; padding: 0 .9rem; border: 1px solid #B9C2CC; border-left: 0; background: var(--paper); color: var(--ink); cursor: pointer; border-radius: 0 3px 3px 0; }
.login__submit { padding: .6rem 2.5rem; font-size: 15px; }
.login .hint { margin-top: 1.25rem; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 1080px) {
  .gh { flex-wrap: wrap; }
  .gh__brand { padding: .7rem 1rem; }
  .gh__nav { order: 3; width: 100%; padding: 0 1rem; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--rule-2); }
  .gh__nav::-webkit-scrollbar { display: none; }
  .gh__nav a { font-size: 14.5px; padding: .55rem 0; }
  .gh__user, .gh__logout button { width: 76px; font-size: 11.5px; }
}
@media (max-width: 760px) {
  .main { padding: 1.6rem .9rem 2rem; }
  .gh__org { display: none; }
  .subbar__actions { margin-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .tsel { min-width: 0; }
  .tsel select { width: 100%; max-width: none; font-size: 16px; }
  .login { padding-top: 1.75rem; }
  .login__submit { width: 100%; justify-content: center; }
  .page-head h1 { font-size: 22px; }
  .gh__face, .gh__logout button span { display: none; }
  .board-toolbar .btn { margin-left: 0; }
  .dcards { grid-template-columns: 1fr; }
  .dcard + .dcard { border-left: 0; border-top: 1px solid var(--rule); }
  .siryoh { grid-template-columns: 1fr; }
  .md-body { padding: .25rem 1rem 1rem; }
  .md-head { padding: .9rem 3.2rem .9rem 1rem; }
  .hist li { grid-template-columns: 1fr; gap: 0; }
  .stepper li { font-size: 12px; }
  .modal { padding: 0; }
  .modal__panel { min-height: 100%; }
  .form input[type=text], .form input[type=password], .form input[type=date], .form select, .form textarea { font-size: 16px; }
  .check-table thead { display: none; }
  .check-table, .check-table tbody, .check-table tr, .check-table td { display: block; width: 100%; }
  .check-table tr { border-bottom: 1px solid var(--rule); padding: .5rem 0; }
  .check-table td { border: 0; padding: .1rem 0; min-width: 0 !important; }
  .check-table td::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--sub); }
  .check-table td:first-child::before { display: none; }
  .rh__corner, .srow__label, .plist__hl, .brow__info { padding-left: .7rem; padding-right: .6rem; }
  .rh__corner { font-size: 14px; }
  .srow__label { font-size: 13px; }
  .srow__label small, .plist__hl small, .pd small { display: none; }
  .pi__name { font-size: 13.5px; }
  .pi__dates { flex-wrap: wrap; gap: .1rem .4rem; font-size: 12px; }
  .brow { min-height: 170px; }
}

@media (max-width: 760px) {
  .agenda__bills, .agenda__bills tbody, .agenda__bills tr, .agenda__bills td { display: block; width: auto !important; text-align: left !important; }
  .agenda__bills tr { border-top: 1px dashed var(--rule); padding: .4rem 0; }
  .agenda__bills td { border: 0; padding: .1rem 0; }
  .stepper--6 li { font-size: 10.5px; }
  .filelinks { columns: 1; }
}

@media print {
  .gh, .subbar, .site-footer, .no-print, .skip, .flash { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; max-width: none; }
  body { font-size: 11pt; }
  .page-head { border-bottom: 2px solid #000; }
  .agenda__bills td { border-top-color: #bbb; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
