:root { --navy:#10294a; --teal:#0b6179; --teal-soft:#e4f3f7; --line:#c9d8e0; --muted:#667784; --bg:#f1f5f8; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--navy); font-family:"Yu Gothic UI","Meiryo",sans-serif; line-height:1.7; }
a { color:inherit; }
.site-header { background:#fff; border-bottom:1px solid var(--line); }
.site-header-inner { max-width:960px; margin:auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; min-height:56px; }
.brand { display:flex; align-items:baseline; gap:10px; text-decoration:none; }
.brand-univ { font-size:13px; }
.brand-logo { font-size:26px; font-weight:800; color:#0a3b5c; letter-spacing:.5px; }
.brand-logo span { color:#16a3b8; }
.brand-sub { font-size:15px; }
.nav { display:flex; align-items:center; gap:22px; font-weight:700; font-size:14px; }
.nav a { text-decoration:none; padding:16px 2px; border-bottom:3px solid transparent; }
.nav a.active { border-bottom-color:var(--teal); }
.badge-sample { background:#e8edf2; color:var(--muted); font-size:12px; font-weight:400; padding:2px 10px; border-radius:6px; }
.page { max-width:960px; margin:0 auto; padding:24px 20px 40px; }
.page-title { font-size:34px; margin:12px 0 6px; padding-bottom:10px; position:relative; }
.page-title::after { content:""; position:absolute; left:0; bottom:0; width:34px; height:3px; background:#16a3b8; }
.lead { margin:10px 0 18px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:6px; padding:20px 24px; margin-bottom:16px; }
.field-label { display:block; font-weight:700; margin:0 0 6px; padding:0; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
.group { margin-top:18px; }
.input { width:100%; height:44px; padding:0 14px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.checks { display:grid; gap:8px 16px; }
.checks.cols-3 { grid-template-columns:repeat(3,1fr); }
.checks.cols-2 { grid-template-columns:repeat(2,1fr); }
.check { display:flex; align-items:center; gap:8px; cursor:pointer; }
input[type=checkbox], input[type=radio] { width:18px; height:18px; accent-color:var(--teal); }
.hint { color:var(--muted); font-size:13px; margin:2px 0 8px; }
.hint.center { text-align:center; margin-top:6px; }
.picker { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.picker-col { border:1px solid var(--line); border-radius:4px; min-width:0; max-height:420px; overflow:auto; }
.picker-head { background:#eef3f6; font-weight:700; padding:6px 12px; font-size:14px; position:sticky; top:0; }
.picker-list { list-style:none; margin:0; padding:0; }
.cat-row { display:flex; align-items:center; gap:8px; padding:0 12px; border-top:1px solid #e3ebf0; }
.cat-row.active { background:#0b4f66; color:#fff; }
.cat-name { flex:1; text-align:left; background:none; border:0; color:inherit; font:inherit; padding:9px 0; cursor:pointer; }
.cat-count { margin-left:4px; }
.field-row, .all-row { padding:8px 12px; border-top:1px solid #e3ebf0; }
.all-row { border-top:0; }
.picker-foot { display:flex; justify-content:space-between; margin-top:8px; font-size:14px; }
.picker-foot strong { color:var(--teal); }
.link-btn { background:none; border:0; color:var(--teal); text-decoration:underline; cursor:pointer; font:inherit; }
.advanced { margin-top:18px; border-top:1px solid var(--line); padding-top:12px; }
.advanced summary { cursor:pointer; font-weight:700; list-style:none; }
.advanced summary small { display:block; font-weight:400; color:var(--muted); margin-top:2px; }
.advanced summary::before { content:"⌄ "; }
.advanced[open] summary::before { content:"⌃ "; }
.advanced .when-open, .advanced[open] .when-closed { display:none; }
.advanced[open] .when-open { display:inline; }
.adv-row { display:grid; grid-template-columns:180px 1fr; gap:12px; padding:12px 0; }
.adv-label { font-weight:700; font-size:14px; }
.radios { display:flex; gap:22px; flex-wrap:wrap; margin-top:8px; }
.actions { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:18px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 18px; border-radius:6px; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; border:2px solid var(--teal); }
.btn-primary { background:var(--teal); color:#fff; }
.btn-outline { background:#fff; color:var(--navy); border-color:#1d4a6b; }
.note, .note-left { color:var(--muted); font-size:13px; }
.note { text-align:center; margin:12px 0 0; }
.count { font-weight:700; margin:8px 0 16px; }
.condition-bar { display:flex; justify-content:space-between; align-items:center; gap:16px; background:var(--teal-soft); border:1px solid #9fd3de; border-radius:6px; padding:16px 20px; margin-bottom:16px; }
.condition-text { font-weight:700; }
.condition-text ul { margin:4px 0 0; padding-left:18px; font-weight:400; font-size:14px; }
.list-meta { display:flex; justify-content:space-between; align-items:center; font-size:14px; margin-bottom:10px; }
.sort-form select { height:36px; margin-left:8px; padding:0 10px; border:1px solid var(--line); border-radius:6px; background:#fff; font:inherit; }
.card { display:grid; grid-template-columns:200px 1fr auto; gap:20px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:6px; padding:16px 20px; margin-bottom:14px; }
.card h2 { margin:0 0 4px; font-size:22px; }
.org, .role { margin:0; font-size:14px; }
.role, .muted { color:var(--muted); }
.card-body { margin:0; padding-left:20px; border-left:1px solid var(--line); min-width:0; }
.card-body .row { display:flex; gap:12px; align-items:baseline; margin:6px 0; }
.card-body dt { flex:0 0 110px; font-weight:700; font-size:14px; }
.card-body .small dt { font-weight:400; font-size:12px; color:var(--muted); }
.card-body dd { margin:0; display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center; }
.card-body .small dd { display:block; font-size:14px; }
.chip { display:inline-block; background:var(--teal-soft); border:1px solid #b9dde6; border-radius:16px; padding:1px 12px; font-size:13px; }
.pager { display:flex; justify-content:center; gap:20px; margin-top:20px; }
.empty { text-align:center; color:var(--muted); }
.crumb { font-size:13px; color:var(--muted); margin:0; }
.back-link { font-size:13px; text-decoration:none; color:var(--teal); }
.profile-head { display:flex; justify-content:space-between; gap:20px; border-left:4px solid var(--teal); }
.profile-head h2 { margin:0; font-size:28px; }
.profile-head p { margin:2px 0; }
.latin { color:var(--muted); }
.cta { max-width:280px; }
.cta .btn { width:100%; }
.section-title { font-size:20px; margin:0 0 12px; padding-left:10px; border-left:4px solid var(--teal); }
table { border-collapse:collapse; width:100%; }
.kv th, .kv td, .grid th, .grid td { border:1px solid #dde7ec; padding:8px 12px; text-align:left; vertical-align:top; }
.kv th, .grid th { background:#f1f6f9; font-size:14px; }
.kv th { width:190px; }
.chip-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; margin-bottom:8px; }
.chip-grid .chip { border-radius:16px; padding:5px 16px; }
.cta-box { display:flex; justify-content:space-between; align-items:center; gap:16px; background:var(--teal-soft); border:1px solid #9fd3de; border-radius:6px; padding:16px 20px; }
.cta-box h2 { margin:0; font-size:18px; }
.cta-box p { margin:2px 0 0; font-size:14px; }
.cta-actions { display:flex; gap:10px; }
.site-footer { text-align:center; color:var(--muted); font-size:13px; padding:0 20px 30px; }
@media (max-width:720px) {
  .checks.cols-3, .checks.cols-2, .picker, .actions, .chip-grid { grid-template-columns:1fr; }
  .adv-row { grid-template-columns:1fr; }
  .card { grid-template-columns:1fr; }
  .card-body { padding-left:0; border-left:0; }
  .card-body .row { flex-direction:column; gap:2px; }
  .profile-head, .cta-box, .condition-bar { flex-direction:column; align-items:stretch; }
  .cta-actions { flex-direction:column; }
  .kv th { width:120px; }
}

.auth-page { max-width:520px; }
.auth-form .field-label { margin-top:14px; }
.auth-form .btn { margin-top:20px; width:100%; }
.auth-links { display:flex; justify-content:space-between; gap:12px; margin:16px 0 0; font-size:14px; }
.form-error { color:#b3261e; background:#fdecea; border-radius:6px; padding:10px 12px; margin:0 0 8px; }
.new-password code { display:block; font-size:24px; letter-spacing:.06em; padding:14px; background:var(--teal-soft); border-radius:6px; text-align:center; user-select:all; }
.logout-form { margin:0; }
.link-button { background:none; border:0; padding:16px 2px; font:inherit; font-weight:700; color:inherit; cursor:pointer; }

.rule-note{margin:0 0 12px}
.mode-tag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;background:#e6f2f5;color:#0b6b80;font-size:12px;font-weight:600;vertical-align:middle}
