/* ===================== 健康保険の扶養（被扶養者）判定ツール ===================== */
.fc-section { padding-top: 8px; }
.fc-intro {
  background: var(--yellow-tint); border: 1px solid #f0d9de; border-radius: 12px;
  padding: 16px 20px; font-size: 13px; color: var(--text-soft); line-height: 1.85; margin-bottom: 26px;
}
.fc-intro b { color: var(--yellow-dark); }

/* ---- 判定ウィザード ---- */
.fc-wizard { max-width: 720px; margin: 0 auto; }
.fc-step-count { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--yellow-dark); margin-bottom: 10px; }
.fc-q { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; box-shadow: 0 18px 50px -34px rgba(118,133,142,.6); }
.fc-q__title { font-size: 18px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.fc-q__help { font-size: 12.5px; color: var(--text-soft); line-height: 1.8; margin-bottom: 18px; }
.fc-choices { display: flex; flex-direction: column; gap: 10px; }
.fc-choice {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 11px; padding: 14px 16px;
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: all .18s ease;
}
.fc-choice:hover { border-color: var(--yellow); background: var(--yellow-tint); transform: translateY(-1px); }
.fc-choice .fc-choice__sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-soft); margin-top: 3px; line-height: 1.6; }
.fc-choice .fc-arrow { margin-left: auto; flex-shrink: 0; width: 18px; height: 18px; stroke: var(--yellow); fill: none; stroke-width: 2.4; }

/* 収入入力ステップ */
.fc-money { display: flex; align-items: center; gap: 8px; margin: 6px 0 6px; }
.fc-money .cur { font-size: 18px; font-weight: 700; color: var(--text-soft); }
.fc-money input {
  flex: 1; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: 18px; font-weight: 700; text-align: right; background: #fff; color: var(--text);
}
.fc-money input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-tint); }
.fc-money .unit { font-size: 14px; color: var(--text-soft); }
.fc-man { font-size: 12px; color: var(--text-soft); text-align: right; min-height: 18px; }
.fc-submit { margin-top: 14px; }

.fc-back { background: none; border: none; color: var(--text-soft); font-family: inherit; font-size: 13px; cursor: pointer; padding: 12px 4px 0; }
.fc-back:hover { color: var(--yellow-dark); text-decoration: underline; }

/* ---- 結果 ---- */
.fc-result { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px -34px rgba(118,133,142,.6); }
.fc-result__head { padding: 22px 24px; color: #fff; }
.fc-result__head .badge { font-size: 12px; font-weight: 700; letter-spacing: .1em; opacity: .9; }
.fc-result__head .verdict { font-size: 21px; font-weight: 700; margin-top: 6px; line-height: 1.4; }
.fc-result--ok .fc-result__head { background: linear-gradient(135deg, #2e7d52, #1f5f3d); }
.fc-result--ng .fc-result__head { background: linear-gradient(135deg, #8a8f94, #65696e); }
.fc-result--maybe .fc-result__head { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); }
.fc-result__body { padding: 22px 24px; }
.fc-result__body p { font-size: 13.5px; color: var(--text); line-height: 1.9; margin: 0 0 12px; }
.fc-result__body .cond { font-size: 12.5px; color: var(--text-soft); background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; line-height: 1.85; }
.fc-result__cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.fc-restart { display: inline-flex; }

/* ---- 注意書き（3つの見直し） ---- */
.fc-notes { margin-top: 38px; }
.fc-notes h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--yellow); }
.fc-note-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; background: #fff; }
.fc-note-card h3 { font-size: 14.5px; font-weight: 700; color: var(--yellow-dark); margin-bottom: 8px; }
.fc-note-card p { font-size: 13px; color: var(--text-soft); line-height: 1.9; margin: 0; }
.fc-note-card .tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--yellow-soft); color: var(--yellow-dark); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }

/* ===================== 事業主証明書 作成 ===================== */
.shoumei-section { background: var(--bg-alt); }
.shoumei-layout { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .shoumei-layout { grid-template-columns: 1fr; } }
.shoumei-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.shoumei-panel .tool-step { margin-top: 18px; }
.shoumei-panel .tool-step:first-child { margin-top: 0; }
.shoumei-panel label { display: block; font-size: 12.5px; font-weight: 700; margin: 12px 0 6px; }
.shoumei-panel label .hint { font-weight: 400; color: var(--text-soft); font-size: 11px; }
.shoumei-panel input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-family: inherit; font-size: 14px; background: #fff; color: var(--text); }
.shoumei-panel input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-tint); }
.shoumei-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shoumei-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.shoumei-note { font-size: 11.5px; color: var(--text-soft); line-height: 1.7; margin-top: 12px; }

/* 証明書プレビュー（印刷対象） */
.shoumei-doc {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px 32px;
  font-size: 12.5px; line-height: 1.9; color: #111;
}
.shoumei-doc h2 { font-size: 16px; font-weight: 700; text-align: center; margin: 0 0 18px; line-height: 1.5; }
.shoumei-doc .lead { font-size: 12px; margin-bottom: 8px; }
.shoumei-doc .refnote { font-size: 10.5px; color: #555; margin: 2px 0; line-height: 1.7; }
.shoumei-doc .blk-label { font-weight: 700; background: #f0f1f2; padding: 6px 10px; border-radius: 6px; margin: 18px 0 8px; font-size: 12.5px; }
.shoumei-doc table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.shoumei-doc th, .shoumei-doc td { border: 1px solid #999; padding: 7px 10px; font-size: 12px; vertical-align: middle; }
.shoumei-doc th { background: #f7f8f9; text-align: left; font-weight: 700; white-space: nowrap; width: 38%; }
.shoumei-doc .val { font-weight: 700; min-height: 18px; }
.shoumei-doc .fill { color: var(--yellow-dark); }
.shoumei-doc .placeholder { color: #aaa; font-weight: 400; }
.shoumei-doc .foot-notes { margin-top: 14px; font-size: 10px; color: #555; line-height: 1.7; }

@media print {
  body * { visibility: hidden; }
  .shoumei-doc, .shoumei-doc * { visibility: visible; }
  .shoumei-doc { position: absolute; left: 0; top: 0; width: 100%; border: none; border-radius: 0; padding: 0; }
  .no-print { display: none !important; }
  @page { size: A4 portrait; margin: 16mm; }
  .shoumei-doc .fill { color: #000 !important; }
}
