/* 株式会社Abrax Japan  電子議決権行使システム  共通スタイル */

:root {
  --ink:        #1b1b1d;
  --ink-soft:   #4a4a50;
  --muted:      #7a7a83;
  --line:       #dcd8d2;
  --line-soft:  #ebe8e3;
  --bg:         #f4f2ef;
  --card:       #ffffff;
  --accent:     #b3121b;
  --accent-dk:  #8c0e15;
  --ok:         #17603a;
  --ok-bg:      #e8f3ec;
  --no:         #8a3d10;
  --no-bg:      #fbeee5;
  --warn-bg:    #fdf6e3;
  --warn-line:  #e6d5a8;
  --radius:     4px;
  --gothic: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
            "Yu Gothic Medium", "Meiryo", sans-serif;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS Mincho", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 80px; }
.wrap-wide { max-width: 1180px; }

/* ---------- ヘッダー ---------- */
.masthead {
  background: #fff;
  border-bottom: 3px solid var(--accent);
  padding: 22px 20px 18px;
  margin-bottom: 28px;
}
.masthead-inner { max-width: 860px; margin: 0 auto; }
.wrap-wide ~ * .masthead-inner, .masthead-inner.wide { max-width: 1180px; }
.brand { font-size: 12px; letter-spacing: .22em; color: var(--accent); font-weight: 700; }
.masthead h1 { font-family: var(--mincho); font-size: 22px; margin: 8px 0 2px; font-weight: 600; line-height: 1.5; }
.masthead .en { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* ---------- カード ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 20px;
}
.card > h2 {
  font-family: var(--mincho);
  font-size: 17px; font-weight: 600;
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.card > h2 .en { display: block; font-family: var(--gothic); font-size: 11.5px; color: var(--muted); font-weight: 400; letter-spacing: .02em; margin-top: 2px; }

.lead { color: var(--ink-soft); font-size: 14px; margin: 14px 0; }
.lead-en { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin: 6px 0 0; }

/* ---------- メタ情報 ---------- */
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px; font-size: 13.5px; margin: 0; }
.meta dt { color: var(--muted); font-size: 12.5px; }
.meta dd { margin: 0; }

/* ---------- フォーム ---------- */
.field { margin-bottom: 22px; }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
label.lbl .en { font-weight: 400; color: var(--muted); font-size: 12px; }
.req { color: var(--accent); font-size: 12px; margin-left: 4px; }
.hint { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }

input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 9px 11px;
  border: 1px solid #c6c2bc;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(179,18,27,.35);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { line-height: 1.6; font-family: var(--mono); font-size: 13px; resize: vertical; }
input[readonly] { background: #f6f5f3; color: var(--muted); }

/* ---------- 議案ブロック ---------- */
.proposal { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.proposal > header { background: #faf9f7; border-bottom: 1px solid var(--line-soft); padding: 14px 20px; }
.proposal h3 { font-family: var(--mincho); font-size: 16px; margin: 0; font-weight: 600; }
.proposal h3 .en { display: block; font-family: var(--gothic); font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.proposal .body { padding: 16px 20px 4px; font-size: 13.5px; color: var(--ink-soft); }
.proposal .body .en { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.proposal .choices { padding: 4px 20px 18px; }
.badge-req { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 2px; margin-left: 8px; vertical-align: 2px; font-weight: 600; letter-spacing: .04em; }
.badge-ordinary { background: #eef1f6; color: #3d4f6b; }
.badge-special  { background: #f7edf3; color: #7a3060; }

/* ---------- 選択肢 ---------- */
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-top: 8px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  background: #fff;
}
.choice:hover { border-color: #b8b3ac; background: #fcfbfa; }
.choice input { margin: 5px 0 0; accent-color: var(--accent); flex: none; width: 16px; height: 16px; }
.choice .txt { font-size: 14px; }
.choice .txt .en { color: var(--muted); font-size: 12px; }
.choice.sel { border-color: var(--accent); background: #fdf5f5; box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- ボタン ---------- */
.btn {
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 11px 30px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent); color: #fff;
  cursor: pointer;
  transition: background .12s;
}
.btn:hover:not(:disabled) { background: var(--accent-dk); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #c6c2bc; }
.btn-ghost:hover:not(:disabled) { background: #f4f2ef; }
.btn-sm { font-size: 12.5px; padding: 5px 12px; font-weight: 500; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- 通知 ---------- */
.note { border-radius: var(--radius); padding: 13px 16px; font-size: 13.5px; margin: 16px 0; border: 1px solid; }
.note-info  { background: #eef2f7; border-color: #ccd8e6; color: #2c3e56; }
.note-warn  { background: var(--warn-bg); border-color: var(--warn-line); color: #6b5411; }
.note-error { background: #fdeceb; border-color: #f0c2bf; color: #8c1c14; }
.note-ok    { background: var(--ok-bg); border-color: #bcdcc9; color: #14532b; }
.note > strong:first-child { display: block; margin-bottom: 2px; }
.note .en { display: block; font-size: 12px; opacity: .8; margin-top: 4px; }

/* ---------- 表 ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
table.tbl thead th { background: #f6f4f1; font-weight: 600; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl tbody tr:hover { background: #fbfaf9; }
table.tbl tr.is-void td { color: #a9a5a0; text-decoration: line-through; background: #faf9f8; }
.scroll-x { overflow-x: auto; }

/* ---------- 集計結果 ---------- */
.result { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.result > header { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.result > header h3 { font-family: var(--mincho); font-size: 16px; margin: 0; font-weight: 600; }
.verdict { font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 2px; letter-spacing: .08em; white-space: nowrap; }
.verdict-pass { background: var(--ok-bg); color: var(--ok); border: 1px solid #bcdcc9; }
.verdict-fail { background: var(--no-bg); color: var(--no); border: 1px solid #eccdb4; }
.verdict-pend { background: #eef1f4; color: #55606e; border: 1px solid #d3d9e0; }

.bar { display: flex; height: 26px; border-radius: 2px; overflow: hidden; background: #eceae7; margin: 0 0 10px; }
.bar span { display: block; font-size: 11px; color: #fff; line-height: 26px; text-align: center; overflow: hidden; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar .b-yes { background: #2f7d52; }
.bar .b-no  { background: #b1592a; }
.bar .b-abs { background: #8d8d95; }

.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); }
.fig { background: #fff; padding: 12px 16px; }
.fig .k { font-size: 11.5px; color: var(--muted); }
.fig .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.35; }
.fig .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }

/* ---------- タブ ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 13.5px; padding: 9px 18px; border: 1px solid transparent; border-bottom: none; background: none; cursor: pointer; color: var(--muted); border-radius: var(--radius) var(--radius) 0 0; }
.tab:hover { color: var(--ink); }
.tab.active { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; margin-bottom: -1px; }

/* ---------- 汎用 ---------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.right { text-align: right; }
.center { text-align: center; }
.hr { border: none; border-top: 1px solid var(--line-soft); margin: 22px 0; }
.pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #eee; color: #555; }
.pill-online { background: #eef2f7; color: #35506e; }
.pill-onsite { background: #f0f3ec; color: #4a6135; }
.pill-paper  { background: #f7f0e8; color: #6d5433; }
.pill-proxy  { background: #f2eef7; color: #55407a; }
.pill-void   { background: #f6e6e5; color: #8c3630; }
.yes { color: var(--ok); font-weight: 600; }
.no  { color: var(--no); font-weight: 600; }
.abs { color: var(--muted); font-weight: 600; }
.loading { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 14px; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 14px; }
.footer { text-align: center; font-size: 11.5px; color: var(--muted); padding: 30px 20px 0; line-height: 1.9; }

/* ---------- 印刷 ---------- */
@media print {
  :root { --bg: #fff; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.65; }
  .no-print { display: none !important; }
  .wrap, .wrap-wide { max-width: none; padding: 0; }
  .card, .result, .proposal { border-color: #999; break-inside: avoid; box-shadow: none; }
  .masthead { border-bottom-width: 2px; border-bottom-color: #000; margin-bottom: 16px; padding: 0 0 10px; }
  table.tbl { font-size: 9pt; }
  table.tbl th, table.tbl td { border-color: #999; padding: 4px 6px; }
  table.tbl thead { display: table-header-group; }
  table.tbl tr { break-inside: avoid; }
  .figs { border-color: #999; }
  .fig { border: 1px solid #ccc; }
  .bar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .verdict, .pill, .bar, .badge-req { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; color: inherit; }
  .page-break { break-before: page; margin-top: 0; }
}
@page { size: A4 portrait; margin: 16mm 14mm; }

@media (max-width: 640px) {
  .card { padding: 20px 16px; }
  .wrap { padding: 0 12px 60px; }
}
