:root {
  --brand-primary: #185FA5;
  --brand-accent:  #BA7517;
  --bg:            #ffffff;
  --fg:            #1a1a1a;
  --muted:         #6b7280;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

.site-header {
  background: var(--brand-primary);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
  color: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .nav-cta {
  background: var(--brand-accent);
  padding: .4rem .9rem;
  border-radius: 4px;
}
.site-nav .nav-cta:hover { text-decoration: none; background: #9d6213; }
.site-nav .inline-form { display: inline; margin: 0; }
.site-nav .btn-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: .95rem;
}

.brand-mark {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  background: #fff;
  color: var(--brand-primary);
  border-radius: 4px;
  font-weight: 700;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-romaji {
  color: rgba(255, 255, 255, .75);
  letter-spacing: .1em;
}

.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero {
  border-left: 4px solid var(--brand-accent);
  padding-left: 1rem;
}

.hero h1 {
  color: var(--brand-primary);
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

/* ============== 共通 UI ============== */
.btn {
  display: inline-block;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}
.btn-primary:hover:not(:disabled) { background: #134d85; border-color: #134d85; }
.btn-secondary {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}
.btn-secondary:hover:not(:disabled) { background: #9d6213; border-color: #9d6213; }
.btn-link {
  background: transparent;
  color: var(--brand-primary);
  border: none;
  padding: .25rem 0;
  text-decoration: underline;
}

.alert {
  padding: .75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.alert-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
}

.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ============== 等級シミュレーター ============== */
.simulator { max-width: 1100px; margin: 0 auto; }
.simulator-header h1 { color: var(--brand-primary); margin-bottom: .25rem; }
.simulator-header .lead { font-size: 1.05rem; color: var(--fg); }

.simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) {
  .simulator-layout { grid-template-columns: 1fr; }
}

.simulator-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}
.simulator-form .field { margin-bottom: 1rem; }
.simulator-form label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--fg);
}
.input {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
}
.input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, .15);
}
.hint { color: var(--muted); display: block; margin-top: .25rem; }
.error { color: #b91c1c; display: block; margin-top: .25rem; }

.simulator-result { min-height: 200px; }
.result-placeholder {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.result-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 6px solid var(--brand-primary);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.result-card.grade-a { border-top-color: #059669; }
.result-card.grade-b { border-top-color: var(--brand-primary); }
.result-card.grade-c { border-top-color: var(--brand-accent); }
.result-card.grade-d { border-top-color: #6b7280; }

.result-label {
  margin: 0;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.result-grade {
  font-size: 4rem;
  font-weight: 700;
  margin: .25rem 0;
  line-height: 1;
  color: var(--brand-primary);
}
.result-card.grade-a .result-grade { color: #059669; }
.result-card.grade-c .result-grade { color: var(--brand-accent); }
.result-card.grade-d .result-grade { color: #4b5563; }
.result-score { margin: 0 0 1rem; font-size: 1.1rem; }

.breakdown {
  width: 100%;
  border-collapse: collapse;
  margin: .5rem 0 1rem;
}
.breakdown th,
.breakdown td {
  padding: .4rem .25rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.breakdown td { text-align: right; font-variant-numeric: tabular-nums; }

.bid-range {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin: .25rem 0 1rem;
}
.next-grade { color: var(--muted); }
.result-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.result-card h3 {
  margin: 1rem 0 .25rem;
  font-size: .95rem;
  color: var(--brand-primary);
}

/* ============== Flash messages ============== */
.flash-area { margin-top: 1rem; }
.alert { padding: .75rem 1rem; border-radius: 6px; margin: .5rem 0; }
.alert-success {
  background: #d1fae5;
  border: 1px solid #059669;
  color: #064e3b;
}
.alert-info {
  background: #dbeafe;
  border: 1px solid #2563eb;
  color: #1e3a8a;
}
.alert-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
}
.alert-error,
.alert-danger {
  background: #fee2e2;
  border: 1px solid #dc2626;
  color: #7f1d1d;
}

/* ============== 認証カード ============== */
.auth-card {
  max-width: 480px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.auth-card h1 {
  color: var(--brand-primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.auth-switch a { color: var(--brand-primary); }

/* ============== フォーム共通 ============== */
.form-stack .field { margin-bottom: 1rem; }
.form-stack label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--fg);
}
.btn-block { display: block; width: 100%; }
.radio-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 400;
  cursor: pointer;
}
.radio-item input { margin: 0; }
.checkbox-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-row input { margin: 0; }
fieldset.field {
  border: none;
  padding: 0;
  margin-bottom: 1rem;
}
fieldset.field legend {
  font-weight: 600;
  margin-bottom: .35rem;
  padding: 0;
}

/* ============== マイページ ============== */
.dashboard { max-width: 1100px; margin: 0 auto; }
.dashboard-header h1 {
  color: var(--brand-primary);
  margin-bottom: .25rem;
}
.dashboard-header .welcome {
  font-size: 1.05rem;
  color: var(--fg);
  margin-top: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.card h2 {
  font-size: 1rem;
  color: var(--brand-primary);
  margin: 0 0 .75rem;
}
.action-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.action-list li {
  padding: .35rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.action-list li:last-child { border-bottom: none; }
.action-list a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 500;
}
.action-list a:hover { text-decoration: underline; }
.empty-state .btn { margin-top: .75rem; }

/* ============== プロフィール ============== */
.profile { max-width: 600px; margin: 0 auto; }
.profile h1 {
  color: var(--brand-primary);
  margin-bottom: .25rem;
}
.profile-form { margin-top: 1.5rem; }
.static-row {
  display: flex;
  justify-content: space-between;
  padding: .65rem 0;
  border-top: 1px solid #f1f5f9;
  font-size: .95rem;
}
.static-row .label { color: var(--muted); font-weight: 600; }
.static-row .value { color: var(--fg); }

/* ============== 申込フォーム ============== */
.apply-entry { max-width: 720px; margin: 0 auto; }
.apply-entry h1 { color: var(--brand-primary); }
.apply-entry-form { margin-top: 1.5rem; }
.resume-card {
  margin: 1rem 0 1.5rem;
  border-left: 4px solid var(--brand-accent);
}

.apply-step { max-width: 980px; margin: 0 auto; }
.apply-step h1 { color: var(--brand-primary); margin-top: .5rem; }

/* ステップインジケーター */
.step-progress {
  display: flex;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}
.step-progress__item {
  flex: 1 1 90px;
  min-width: 90px;
  padding: .65rem .5rem;
  border-radius: 6px;
  background: #f1f5f9;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  border: 2px solid transparent;
}
.step-progress__num {
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
}
.step-progress__label { font-size: .75rem; color: var(--muted); }
.step-progress__item.is-current {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.step-progress__item.is-current .step-progress__num,
.step-progress__item.is-current .step-progress__label { color: #fff; }
.step-progress__item.is-done {
  background: #d1fae5;
  border-color: #059669;
}
.step-progress__item.is-done .step-progress__num,
.step-progress__item.is-done .step-progress__label { color: #064e3b; }

/* ステップ間ナビ */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.step-nav.center { justify-content: center; }

/* 横並びチェック・ラジオ（縦スタック版） */
.radio-stack,
.checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.radio-item-block,
.checkbox-item-block {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .5rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  font-weight: 400;
}
.radio-item-block input,
.checkbox-item-block input { margin-top: .15rem; }

.textarea {
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
}

/* STEP 3 等級プレビュー */
.apply-grade-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (max-width: 760px) {
  .apply-grade-layout { grid-template-columns: 1fr; }
}
.apply-grade-result { min-height: 200px; }

/* STEP 4 オプションリスト */
.option-list { list-style: none; padding: 0; margin: 0; }
.option-item {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0;
  margin-bottom: .65rem;
  background: #fff;
}
.option-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1rem;
  cursor: pointer;
  font-weight: 400;
}
.option-info { display: flex; flex-direction: column; gap: .15rem; }
.option-name { font-weight: 600; color: var(--fg); }
.option-price { color: var(--brand-primary); font-weight: 600; }
.option-desc { line-height: 1.4; }
.option-qty .input-narrow {
  width: 5rem;
  display: inline-block;
  vertical-align: middle;
  margin-left: .25rem;
}

/* STEP 5 見積テーブル */
.estimate-card { margin-top: 1rem; }
.estimate-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.estimate-table th,
.estimate-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.estimate-table th.num,
.estimate-table td.num { text-align: right; }
.estimate-table thead th { color: var(--muted); font-weight: 600; }
.estimate-table tfoot th,
.estimate-table tfoot td { background: #f8fafc; }
.estimate-total td,
.estimate-total th {
  background: var(--brand-primary) !important;
  color: #fff;
}

/* STEP 7 委任状本文 */
.delegation-doc {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  max-height: 360px;
  overflow-y: auto;
}
.delegation-doc pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: .92rem;
  line-height: 1.7;
}

/* 完了画面 */
.apply-complete { max-width: 720px; margin: 0 auto; text-align: center; }
.apply-complete h1 { color: var(--brand-primary); }
.apply-complete .card { text-align: left; }
.complete-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #059669;
  color: #fff;
  font-size: 3rem;
  line-height: 80px;
  text-align: center;
  margin: 1rem auto;
}
.kv-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 0;
}
.kv-list dt { color: var(--muted); font-weight: 600; }
.kv-list dd { margin: 0; color: var(--fg); }

/* 支払ステータスバッジ */
.payment-badge {
  display: inline-block;
  padding: .35rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  margin: .5rem 0 1rem;
  letter-spacing: .05em;
}
.payment-badge--pending     { background: #fef3c7; color: #78350f; border: 1px solid #f59e0b; }
.payment-badge--processing  { background: #dbeafe; color: #1e3a8a; border: 1px solid #2563eb; }
.payment-badge--succeeded   { background: #d1fae5; color: #064e3b; border: 1px solid #059669; }
.payment-badge--failed,
.payment-badge--cancelled   { background: #fee2e2; color: #7f1d1d; border: 1px solid #dc2626; }
.payment-badge--refunded    { background: #f1f5f9; color: #475569; border: 1px solid #94a3b8; }

/* 銀行振込先カード */
.bank-info {
  border-left: 4px solid var(--brand-accent);
  margin-top: 1rem;
  text-align: left;
}
.bank-info h2 { color: var(--brand-accent); }

/* ============== 案件詳細・案件一覧 ============== */
.case-detail { max-width: 1100px; margin: 0 auto; }
.case-detail-header h1 { color: var(--brand-primary); margin: .25rem 0; }
.case-detail-header .muted a { color: var(--brand-primary); }

/* 6 段階ステータスバー */
.case-status-bar {
  display: flex;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}
.case-status-bar__item {
  flex: 1 1 100px;
  min-width: 100px;
  padding: .55rem .35rem;
  border-radius: 4px;
  background: #f1f5f9;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  border: 2px solid transparent;
}
.case-status-bar__num {
  font-weight: 700;
  font-size: .9rem;
  color: var(--muted);
}
.case-status-bar__label { font-size: .75rem; color: var(--muted); }
.case-status-bar__item.is-current {
  background: var(--brand-primary); border-color: var(--brand-primary);
}
.case-status-bar__item.is-current .case-status-bar__num,
.case-status-bar__item.is-current .case-status-bar__label { color: #fff; }
.case-status-bar__item.is-done {
  background: #d1fae5; border-color: #059669;
}
.case-status-bar__item.is-done .case-status-bar__num,
.case-status-bar__item.is-done .case-status-bar__label { color: #064e3b; }
.case-status-bar__item.is-cancelled {
  background: #fee2e2; border-color: #dc2626;
}

/* タブ：CSS のみ・JS なしでアンカージャンプで切替 */
.tabbar {
  display: flex;
  gap: .5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: .25rem;
}
.tabbar__tab {
  padding: .5rem 1rem;
  border-radius: 6px 6px 0 0;
  background: #f1f5f9;
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-bottom: none;
}
.tabbar__tab:hover { background: #e2e8f0; }

.case-tab {
  margin: 1rem 0;
  scroll-margin-top: 1rem;
}
.case-tab h2 { color: var(--brand-primary); margin-top: 0; }
.case-tab h3 { color: var(--brand-primary); font-size: .95rem; margin-top: 1.25rem; }

/* 書類アップロード */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 760px) {
  .upload-grid { grid-template-columns: 1fr; }
}
.upload-grid .upload-file { grid-column: 1 / -1; }

.document-table,
.case-table {
  width: 100%;
  border-collapse: collapse;
  margin: .75rem 0;
  font-size: .92rem;
}
.document-table th,
.document-table td,
.case-table th,
.case-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.document-table thead th,
.case-table thead th {
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}

/* バッジ */
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.badge-info     { background: #dbeafe; color: #1e3a8a; border-color: #2563eb; }
.badge-success  { background: #d1fae5; color: #064e3b; border-color: #059669; }
.badge-warning  { background: #fef3c7; color: #78350f; border-color: #f59e0b; }
.badge-danger   { background: #fee2e2; color: #7f1d1d; border-color: #dc2626; }

/* 委任状スナップショット */
.delegation-snapshot {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1rem;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.6;
  max-height: 360px;
  overflow-y: auto;
}

/* ============== 管理画面 ============== */
.admin-body { background: #f1f5f9; }
.admin-header {
  background: #1e3a8a;  /* 顧客側より濃い紺で誤操作防止 */
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-header .brand-mark { color: #1e3a8a; }
.staff-badge {
  background: #BA7517;
  color: #fff;
  padding: .25rem .65rem;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.admin-main { padding-top: 1rem; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.kpi {
  text-align: center;
  border-top: 4px solid var(--brand-primary);
  padding: 1rem;
}
.kpi-warning { border-top-color: #dc2626; background: #fff7ed; }
.kpi-label { color: var(--muted); font-size: .85rem; margin: 0; }
.kpi-value { font-size: 2.4rem; font-weight: 700; color: var(--brand-primary); margin: .25rem 0 0; }
.kpi-warning .kpi-value { color: #dc2626; }

.needs-attention { margin-top: 1rem; border-left: 4px solid #dc2626; }

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
  margin-top: 1rem;
}
@media (max-width: 980px) {
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kanban-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .5rem;
}
.kanban-col h3 {
  font-size: .85rem;
  color: var(--brand-primary);
  margin: .25rem 0 .5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: .25rem;
}
.kanban-list { list-style: none; padding: 0; margin: 0; }
.kanban-list li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: .35rem .5rem;
  margin-bottom: .35rem;
  font-size: .85rem;
}
.kanban-list a { color: var(--brand-primary); font-weight: 600; }
.kanban-list small { display: block; color: var(--muted); }

.status-filter {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.status-filter a {
  padding: .35rem .75rem;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--fg);
  text-decoration: none;
  font-size: .85rem;
}
.status-filter a.is-active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.admin-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

/* 更新リマインダーカード */
.reminder-card { border-left: 4px solid var(--brand-primary); }
.reminder-card.reminder-warning { border-left-color: var(--brand-accent); background: #fffbeb; }
.reminder-card.reminder-urgent { border-left-color: #dc2626; background: #fef2f2; }
.reminder-countdown { font-size: 1.05rem; }
.reminder-countdown .big {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0 .25rem;
}
.reminder-card.reminder-urgent .reminder-countdown .big { color: #dc2626; }
.reminder-card.reminder-warning .reminder-countdown .big { color: var(--brand-accent); }

/* GEPS 転記サポート */
.geps-transcribe { max-width: 760px; margin: 0 auto; }
.geps-group { margin-top: 1rem; }
.geps-items { list-style: none; padding: 0; margin: 0; }
.geps-item {
  display: grid;
  grid-template-columns: auto 140px 1fr 90px;
  gap: .65rem;
  align-items: center;
  padding: .55rem .25rem;
  border-bottom: 1px dashed #e2e8f0;
}
@media (max-width: 760px) {
  .geps-item { grid-template-columns: auto 1fr 90px; }
  .geps-item .geps-label { grid-column: 1 / -1; }
}
.geps-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.geps-value {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: .92rem;
  color: var(--fg);
  word-break: break-all;
  background: #f8fafc;
  padding: .35rem .5rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
.btn-copy.is-copied { background: #059669; border-color: #059669; }
.geps-check { width: 1.1rem; height: 1.1rem; }

/* 法人番号自動入力 */
.houjin-row {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}
.houjin-row .input { flex: 1 1 240px; min-width: 200px; }
.houjin-flash { margin: .5rem 0 1rem; }

/* タイムライン */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 3px solid #e2e8f0;
}
.timeline li {
  position: relative;
  padding: .25rem 0 1rem 1rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  top: .55rem;
  left: -.5rem;
  width: .75rem;
  height: .75rem;
  background: var(--brand-primary);
  border-radius: 50%;
  border: 2px solid #fff;
}
.timeline time {
  font-size: .8rem;
  color: var(--muted);
  display: block;
}
.timeline__transition {
  font-weight: 600;
  color: var(--fg);
}
.timeline__note {
  margin: .25rem 0 0;
  font-size: .9rem;
  color: var(--fg);
}
