:root {
  --bg: #f6f8fa;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #5c6370;
  --accent: #1e5a8a;
  --accent-soft: #e8f2fa;
  --border: #d8dee4;
  --banner-bg: #e8f2fa;
  --warn: #c45c26;
  --warn-bg: #fff8f3;
  --ok: #2a7f4c;
  --ok-bg: #f3faf6;
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 4px 14px rgba(26, 26, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 6.5rem;
}

header h1 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  color: var(--accent);
}

header p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-tagline {
  margin-bottom: 0.35rem;
}

.app-what-is {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  line-height: 1.5;
}

.flow-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.65rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.72rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .flow-stepper {
    display: none;
  }
  .journey-hooks {
    margin-bottom: 0.75rem;
  }
  .app-what-is {
    display: none;
  }
  .app-tagline {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
  }
  .step-subtitle {
    font-size: 0.86rem;
  }
  .btn-with-hint .btn-hint {
    display: none;
  }
  #sticky-primary-hint {
    display: none !important;
  }
  .field-note-short {
    font-size: 0.78rem;
  }
  body {
    font-size: 1rem;
  }
  .phase-table {
    font-size: 0.92rem;
  }
  .phase-table th,
  .phase-table td {
    padding: 0.65rem 0.5rem;
  }
  .hospital-local-actions {
    flex-direction: column;
  }
  .hospital-local-actions .secondary {
    width: 100%;
  }
}

.flow-step {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: var(--muted);
  background: #f0f4f8;
  white-space: nowrap;
}

.flow-step.is-done {
  color: var(--accent);
  background: #e8f2fa;
}

.flow-step.is-current {
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.flow-step.optional {
  border: 1px dashed #c5d9ea;
  background: transparent;
}

.flow-step.optional.is-current {
  border-color: var(--accent);
  background: var(--accent);
}

button.flow-step {
  font: inherit;
  border: none;
  cursor: default;
}

button.flow-step--clickable {
  cursor: pointer;
}

button.flow-step--clickable:hover,
button.flow-step--clickable:focus-visible {
  filter: brightness(0.96);
  outline: 2px solid rgba(30, 90, 138, 0.35);
  outline-offset: 1px;
}

.flow-nav-hint {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.app-flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.35rem;
  margin: 0.45rem 0 0.65rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #f8fbfd;
  font-size: 0.72rem;
}

.flow-diagram-step {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.flow-diagram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #e8f2f8;
  color: #2c5282;
  font-weight: 700;
  font-size: 0.68rem;
}

.flow-diagram-label {
  color: #4a5568;
}

.flow-diagram-arrow {
  color: #a0aec0;
  font-size: 0.7rem;
}

.income-picker-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.income-picker-display {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent, #2b6cb0);
  margin: 0 0 0.35rem;
}

.income-picker-hint {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
}

.income-picker-gross-note {
  background: #f4f8fb;
  border-left: 3px solid #7ba7c9;
  padding: 0.45rem 0.65rem;
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}

.income-picker-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.4rem;
  align-items: stretch;
}

.income-picker-step {
  min-width: 2.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.income-scroll-picker {
  max-height: 9rem;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0.15rem;
}

.income-scroll-option {
  display: block;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  text-align: center;
  font-size: 0.82rem;
  cursor: pointer;
  scroll-snap-align: center;
}

.income-scroll-option.is-selected {
  background: #e8f2f8;
  font-weight: 700;
  color: #2b6cb0;
}

.s5-summary-card {
  margin: 0.65rem 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #c5d9ea;
  border-radius: 10px;
  background: #f0f7fb;
}

.s5-summary-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
}

.s5-summary-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.s5-primary-results {
  margin: 0.65rem 0 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 2px solid #7eb8e8;
  border-radius: 10px;
  background: #f8fcff;
}

.s5-primary-results > h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #1a4d7a;
}

.s5-primary-days {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.s5-primary-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.s5-primary-hero-card h4,
.s5-primary-ineligible h4 {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
}

.s5-primary-ineligible {
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .s5-primary-hero-grid {
    grid-template-columns: 1fr;
  }
}

.s5-details-fold {
  margin: 0.5rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: #fff;
}

.s5-details-fold summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.s6-summary-compact {
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.journey-hooks .tool-cross-links-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4a6275;
}
a.journey-hook--cross {
  text-decoration: none;
  color: inherit;
}
.journey-hooks {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: linear-gradient(180deg, #f8fbfd 0%, #f3f8fc 100%);
  border: 1px solid #d8e8f4;
  border-radius: 8px;
  font-size: 0.72rem;
  box-shadow: var(--shadow-sm);
}

.journey-hook {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.5rem;
  align-items: start;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
}

.journey-hook--ranked {
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
}

.journey-hook-rank,
.journey-hook-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  flex-shrink: 0;
}

.journey-hook-body,
.journey-hook-text {
  min-width: 0;
}

.journey-hook-short {
  display: block;
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--accent);
  line-height: 1.3;
}

.journey-hook-label {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 0;
}

.journey-hook-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #e8f4fc;
  color: #1a5f8a;
  white-space: nowrap;
  font-weight: 600;
}

.journey-hook.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(30, 90, 138, 0.15);
}

.journey-hook.is-current .journey-hook-rank,
.journey-hook.is-current .journey-hook-index {
  color: #fff;
  background: var(--accent);
}

.journey-hook.is-current .journey-hook-label {
  font-weight: 600;
  color: var(--text);
}

.journey-hook.is-current .journey-hook-badge {
  background: #d4e9f7;
  color: var(--accent);
}

.journey-hook.is-done {
  border-color: #9fd4b5;
  background: var(--ok-bg);
}

.journey-hook.is-done .journey-hook-rank,
.journey-hook.is-done .journey-hook-index {
  color: var(--ok);
  background: #dff3e8;
}

.journey-hook.is-done .journey-hook-index::after {
  content: "";
}

button.journey-hook {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: default;
}

button.journey-hook--clickable {
  cursor: pointer;
}

button.journey-hook--clickable:hover,
button.journey-hook--clickable:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.step-top-actions {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.sticky-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sticky-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sticky-progress-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  min-width: 2.6rem;
}

.sticky-progress-track {
  flex: 1;
  height: 4px;
  background: #e8eef3;
  border-radius: 999px;
  overflow: hidden;
}

.sticky-progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 14%;
  transition: width 0.25s ease;
}

.sticky-actions .btn-with-hint {
  width: 100%;
}

@media (min-width: 721px) {
  .sticky-actions {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 720px;
    border-radius: 10px 10px 0 0;
  }
}

@media (max-width: 480px) {
  .app-what-is {
    font-size: 0.78rem;
    padding: 0.45rem 0.6rem;
  }
  .field-grid--single {
    max-width: 100%;
  }
  .hero-stat-value {
    font-size: 1.4rem;
  }
}


.field-note {
  margin: -0.25rem 0 1rem;
  font-size: 0.8rem;
}

.btn-with-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
  line-height: 1.35;
}

.btn-with-hint .btn-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-with-hint .btn-hint {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.88;
}

.actions .btn-with-hint {
  min-width: 9.5rem;
}

.bridge-btn-with-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
  padding: 0.6rem 1rem;
}

.bridge-btn-with-hint .btn-hint {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.92;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.step.step-enter {
  animation: stepEnter 0.18s ease-out;
}

@keyframes stepEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step h2 {
  margin-top: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.35;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  flex-shrink: 0;
}

.step-subtitle {
  margin: -0.2rem 0 0.85rem;
  padding-left: 0.65rem;
  border-left: 3px solid #c5d9ea;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.banner {
  background: var(--banner-bg);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.consent label {
  display: block;
  margin: 0.75rem 0;
}

.consent .note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.field-grid {
  display: grid;
  gap: 0.75rem;
}

.field-grid--single {
  max-width: 50%;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group-title {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e4edf4;
}

.kenshin-optional-fields {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed #c5d9e8;
  border-radius: 8px;
  background: #f8fbfd;
}

.kenshin-optional-fields summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
}

.kenshin-optional-fields .optional-lead {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.82rem;
}

.s2-ocr-optional {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8e8f4;
  border-radius: 8px;
  background: #fff;
}

.s2-ocr-lead {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.s2-ocr-consent {
  margin-bottom: 0.5rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 rgba(15, 50, 80, 0.2);
}

button.primary:disabled {
  opacity: 0.55;
  box-shadow: none;
}

@media (max-width: 640px) {
  button,
  .bridge-btn,
  .sticky-actions .btn-with-hint {
    min-height: 2.75rem;
  }
  .actions .primary,
  .step-top-actions .primary,
  .sticky-actions .primary {
    flex: 1 1 100%;
  }
  .ocr-source-actions {
    grid-template-columns: 1fr;
  }
}

button.secondary {
  background: #eef1f4;
  color: var(--text);
}

.stub {
  background: #fff8e6;
  border: 1px dashed #e6c200;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.comparison-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.comparison-card {
  position: relative;
  border: 1px solid var(--border);
  border-left: 4px solid #c9a227;
  border-radius: 8px;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  background: #fffdf8;
}

.comparison-card.over,
.comparison-card--over {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}

.comparison-card.within,
.comparison-card--within {
  border-left-color: var(--ok);
  background: var(--ok-bg);
}

.comparison-card.borderline,
.comparison-card--borderline {
  border-left-color: #c9a227;
  background: #fffdf8;
}

.comparison-card.reference,
.comparison-card--reference {
  border-left-color: #8aa0b4;
  background: #f7f9fb;
}

.comparison-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.comparison-badge.over,
.comparison-badge--over {
  color: #8a3b12;
  background: #fde8d8;
}

.comparison-badge.within,
.comparison-badge--within {
  color: var(--ok);
  background: #dff3e8;
}

.comparison-badge.borderline,
.comparison-badge--borderline {
  color: #7a5d00;
  background: #fff3c4;
}

.comparison-badge.reference,
.comparison-badge--reference {
  color: #4a6070;
  background: #e8eef2;
}

.comparison-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.comparison-compare,
.comparison-zone,
.comparison-next {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.comparison-zone {
  color: var(--text);
  font-weight: 500;
}

.comparison-next {
  padding-left: 0.5rem;
  border-left: 2px solid #e6c200;
}

.comparison-gender-note,
.comparison-section-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.comparison-next-fold {
  margin-top: 0.35rem;
}

.comparison-next-fold > summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
}

.comparison-next-fold > summary::-webkit-details-marker {
  display: none;
}

.comparison-next-fold > summary::before {
  content: "▸ ";
}

.comparison-next-fold[open] > summary::before {
  content: "▾ ";
}

.comparison-next-body {
  margin-top: 0.25rem;
}

.risk-insights-section {
  margin: 1.25rem 0;
}

.risk-insights-section h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.risk-insights-disc {
  margin: 0 0 0.75rem;
}

.risk-accordion {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  background: #f8fbfd;
}

.risk-accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.risk-accordion-title {
  flex: 1;
  min-width: 0;
}

.risk-accordion--over {
  border-left-color: var(--warn);
  background: var(--warn-bg);
}

.risk-accordion--within {
  border-left-color: var(--ok);
  background: var(--ok-bg);
}

.risk-accordion--borderline {
  border-left-color: #c9a227;
  background: #fffdf8;
}

.risk-accordion--reference {
  border-left-color: #8aa0b4;
  background: #f7f9fb;
}

.risk-accordion summary::-webkit-details-marker {
  display: none;
}

.risk-accordion summary::before {
  content: "▸ ";
  color: var(--accent);
}

.risk-accordion[open] summary::before {
  content: "▾ ";
}

.risk-diseases {
  margin: 0.65rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.risk-diseases strong,
.risk-phase-body strong,
.risk-cost-hint strong,
.risk-bridge strong {
  color: var(--accent);
  font-weight: 700;
}

.risk-phases {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.risk-phase {
  margin-bottom: 0.9rem;
}

.risk-phase-label {
  margin: 0 0 0.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.risk-phase-body {
  margin: 0.15rem 0 0.25rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.risk-days-hint {
  position: relative;
  margin: 0.35rem 0 0.35rem;
  padding: 0.45rem 0.55rem 0.45rem 2.1rem;
  font-size: 0.84rem;
  color: #2a5f7a;
  background: #eef6fb;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
}

.risk-days-hint::before {
  content: "日";
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}

.risk-days-main {
  display: block;
  font-weight: 600;
}

.risk-days-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.risk-days-hint strong {
  color: var(--accent);
}

.risk-phase-fold {
  list-style: none;
  margin-bottom: 0.5rem;
}

.risk-phase-details {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  background: #fff;
}

.risk-phase-details > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  list-style: none;
}

.risk-phase-details > summary::-webkit-details-marker {
  display: none;
}

.risk-phase-details > summary::before {
  content: "▸ ";
  color: var(--accent);
}

.risk-phase-details[open] > summary::before {
  content: "▾ ";
}

.risk-phase-inner {
  margin-top: 0.35rem;
}

.risk-cost-hint {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  background: #f4f8fb;
  border-radius: 4px;
  line-height: 1.45;
}

.risk-bridge {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
  line-height: 1.5;
}

.risk-phase-bridge {
  list-style: none;
  margin: 0.5rem 0 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-left: 3px solid #c5d9ea;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text);
}

.risk-phase-bridge strong {
  color: var(--accent);
}

.step-bridge {
  margin: 1rem 0 0.5rem;
  padding: 0.75rem 0.85rem;
  background: #f0f6fb;
  border: 1px solid #c5d9ea;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.step-bridge strong {
  color: var(--accent);
}

.step-bridge[hidden] {
  display: none;
}

.flow-bridge {
  margin: 1rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-left: 3px solid var(--accent);
  font-size: 0.88rem;
  line-height: 1.55;
}

.flow-bridge-muted {
  border-left-color: #c5d9ea;
  color: var(--muted);
  font-size: 0.85rem;
}

.cv-panel {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #eef6fc 0%, #f8fbfd 100%);
  border: 1px solid #b8d4ea;
  border-radius: 10px;
  text-align: center;
}

.cv-lead {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.cv-microcopy {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.cv-microcopy li::before {
  content: "✓ ";
  color: #2a8f5c;
}

.cv-btn {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.cv-btn-line {
  display: block;
  margin-top: 0.65rem;
  text-align: center;
  text-decoration: none;
}

/* LINE保存バナー */
.line-save-banner {
  margin-top: 1.5rem;
  background: #f0faf5;
  border: 1.5px solid #06c755;
  border-radius: 12px;
  padding: 1rem 1rem 0.85rem;
}
.line-save-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.line-save-lead {
  font-size: 0.82rem;
  color: #3a5a47;
  margin-bottom: 0.75rem;
}
.line-save-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.line-save-btn-add {
  display: block;
  background: #06c755;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
}
.line-save-btn-copy {
  background: #fff;
  border: 1.5px solid #06c755;
  color: #06a046;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}
.line-save-copied {
  font-size: 0.8rem;
  color: #06a046;
  margin-top: 0.4rem;
  text-align: center;
}

.cv-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.cv-stub-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
}

.result-list {
  padding-left: 1.25rem;
}

.result-list li {
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

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

.cost-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cost-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.phase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0.75rem 0;
}

.phase-table th,
.phase-table td {
  border: 1px solid var(--border);
  padding: 0.5rem;
  vertical-align: top;
}

.phase-table th {
  background: #f0f4f8;
  text-align: left;
}

.phase-cost-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0;
}

.phase-cost-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #f8fbfd;
}

.phase-cost-label {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.phase-cost-extra {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.phase-cost-amount {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin: 0.15rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  white-space: nowrap;
}

.phase-cost-lo,
.phase-cost-hi {
  font-variant-numeric: tabular-nums;
}

.phase-cost-sep {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.phase-cost-sources-fold {
  margin-top: 0.25rem;
}

.phase-cost-sources-fold > summary {
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--muted);
  list-style: none;
}

.phase-cost-sources-fold > summary::-webkit-details-marker {
  display: none;
}

.phase-cost-sources-fold > summary::before {
  content: "▸ ";
  color: var(--accent);
}

.phase-cost-sources-fold[open] > summary::before {
  content: "▾ ";
}

.phase-cost-sources {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.72rem;
}

.phase-cost-sources a {
  color: var(--accent);
  word-break: break-word;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.75rem 0;
}

.legal-doc {
  margin-bottom: 0.65rem;
}

.legal-summary {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.legal-details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafcfd;
}

.legal-details summary {
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.legal-body {
  padding: 0 0.85rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.legal-body p {
  margin: 0.45rem 0;
}

.hospital-unavailable {
  padding: 0.65rem 0.75rem;
  background: #f5f7f9;
  border-radius: 8px;
  border-left: 3px solid #9ab;
}

.sources a {
  color: var(--accent);
  font-size: 0.8rem;
}

.cost-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
}

.hero-stat-wrap {
  margin: 0.85rem 0 0.35rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f8fbfd 100%);
  border: 1px solid #b8d4ea;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.hero-stat-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}

.hero-stat-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stat--cost .hero-stat-icon {
  background: #1e5a8a;
}

.hero-stat--income .hero-stat-icon {
  background: #2a7f4c;
}

.hero-stat--loss .hero-stat-icon {
  background: #c45c26;
}

.hero-stat--total {
  background: linear-gradient(135deg, #fff8f3 0%, #f8fbfd 100%);
  border-color: #e8c9b0;
}

.hero-stat--total .hero-stat-icon {
  background: #c45c26;
}

.hero-stat--total .hero-stat-value {
  color: #a34a1c;
}

.cost-hero-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.cost-hero-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.total {
  font-weight: 600;
  margin: 0.5rem 0 0;
}

.kogaku-highlight {
  background: #e8f6ee;
  border: 1px solid #9fd4b5;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cta-s5 {
  background: #e8f2fa;
  border: 1px solid #b8d4ea;
  font-weight: 500;
}

.cta {
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: #f0f4f8;
  border-radius: 6px;
  text-align: center;
}

.bridge-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.bridge-panel label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.bridge-panel input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.hospital-bridge-cta {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.bridge-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
}

.bridge-btn:hover {
  opacity: 0.92;
}

.bridge-hint {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.ocr-upload-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.ocr-lead {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ocr-details {
  margin: 0.5rem 0 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.ocr-details summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.ocr-details .muted {
  margin: 0;
  padding: 0 0.75rem 0.55rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.ocr-source-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.ocr-source-actions .btn-with-hint {
  width: 100%;
  min-height: 2.75rem;
}

@media (max-width: 640px) {
  .ocr-source-actions {
    grid-template-columns: 1fr;
  }
}

.app-footer {
  max-width: 720px;
  margin: 0 auto 5rem;
  padding: 0 0.25rem;
}

.app-disclaimer-fold {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafcfd;
}

.app-disclaimer-fold summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.app-disclaimer-body {
  margin: 0;
  padding: 0 0.75rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.step-disclaimer-fold {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafcfd;
}

.step-disclaimer-fold summary {
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.step-disclaimer-body {
  padding: 0 0.75rem 0.65rem;
  font-size: 0.82rem;
}

.ocr-consent {
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ocr-file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ocr-file-chosen {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--accent);
  word-break: break-all;
}

.ocr-file-chosen.hidden {
  display: none;
}

#kenshin-photo {
  width: 100%;
  margin-bottom: 0.35rem;
}

.ocr-proxy-warn {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #fff8e6;
  border: 1px solid #e6c200;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6a5a00;
}

.ocr-proxy-warn.hidden {
  display: none;
}

.ocr-status {
  min-height: 1.25rem;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.ocr-status.is-loading { color: var(--accent); }
.ocr-status.is-ok { color: #1a7f4c; }
.ocr-status.is-warn { color: #9a6700; }
.ocr-status.is-error { color: #b00020; }

.ocr-actions {
  margin-top: 0.75rem;
}

.ocr-add-actions {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
}

.ocr-add-actions.hidden {
  display: none !important;
}

.ocr-add-lead {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
}

.ocr-add-source-actions {
  margin-top: 0;
}

.ocr-confirm-banner {
  background: #fff8e6;
  border: 1px solid #e6c200;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hidden {
  display: none !important;
}

.error {
  padding: 2rem;
  color: #b00020;
}

.s4-actions {
  flex-wrap: wrap;
}

.income-card,
.gap-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.income-card h3,
.gap-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.gap-card {
  background: linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
  border-color: #b8d4ea;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.gap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.gap-table th,
.gap-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.gap-table th {
  background: #f0f4f8;
  width: 42%;
  font-weight: 600;
}

.gap-table tr.gap-total td,
.gap-table tr.gap-total th {
  background: var(--accent-soft);
  font-size: 0.95rem;
}

.gap-excludes-longterm {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}

.long-term-risk-card {
  border: 1px solid #d4b896;
  border-radius: 10px;
  padding: 1rem;
  margin: 1.25rem 0;
  background: linear-gradient(180deg, #fffaf3 0%, #fff 100%);
  box-shadow: var(--shadow-sm);
}

.long-term-badge {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a5a12;
}

.long-term-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.long-term-body h4 {
  margin: 1rem 0 0.35rem;
  font-size: 0.9rem;
}

.long-term-stats,
.long-term-risks {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
}

.long-term-stats li,
.long-term-risks li {
  margin: 0.35rem 0;
}

.stat-source {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.disability-bridge-note {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #f0f6fc;
  border-left: 3px solid var(--accent);
  font-size: 0.86rem;
}

.long-term-guide-link a {
  font-size: 0.88rem;
}

.s6-bridge-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.syobyo-cap-note,
.public-limit-note {
  font-size: 0.82rem;
}

.situation-lead {
  font-size: 0.84rem;
  margin: 0 0 0.5rem;
}

.situation-section-heading {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #2c5282;
}

.situation-swipe-hint {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.situation-carousel-wrap,
.ui-carousel-wrap {
  position: relative;
  margin: 0 -0.25rem 0.5rem;
}

.ui-carousel-viewport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.15rem;
  align-items: center;
}

.ui-carousel-nav {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid #c5d9ea;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.ui-carousel-nav:hover:not(:disabled),
.ui-carousel-nav:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.ui-carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 640px) {
  .ui-carousel-nav {
    display: none;
  }

  .ui-carousel-viewport {
    grid-template-columns: minmax(0, 1fr);
  }

  .ui-carousel-hint--desktop-only {
    display: none;
  }
}

.situation-carousel,
.ui-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0.25rem 0.65rem;
}

.situation-carousel::-webkit-scrollbar,
.ui-carousel::-webkit-scrollbar {
  display: none;
}

.situation-carousel-slide,
.ui-carousel-slide {
  flex: 0 0 88%;
  max-width: 340px;
  scroll-snap-align: center;
  border: 1px solid #e2d4c0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: linear-gradient(165deg, #fff 0%, #fffbf5 100%);
  box-shadow: 0 2px 8px rgba(44, 82, 130, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.situation-carousel-slide.is-active,
.ui-carousel-slide.is-active {
  transform: scale(1.01);
  box-shadow: 0 4px 14px rgba(44, 82, 130, 0.12);
  border-color: #c9a227;
}

.situation-carousel-section--acute .situation-carousel-slide {
  border-color: #b8d4ea;
  background: linear-gradient(165deg, #fff 0%, #f8fbfd 100%);
}

.situation-pattern-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.situation-carousel-section--long .situation-pattern-badge {
  background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
}

.situation-scenario-card h5 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: #2d3748;
  line-height: 1.35;
}

.situation-body {
  font-size: 0.8rem;
  margin: 0 0 0.35rem;
}

.situation-stat-ref {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.situation-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.situation-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  background: #f7fafc;
  font-size: 0.82rem;
}

.situation-metric-row--loss {
  background: #fffaf0;
}

.situation-metric-row--total {
  background: linear-gradient(90deg, #ebf8ff 0%, #e6fffa 100%);
  border: 1px solid #bee3f8;
}

.situation-metric-label {
  color: var(--muted);
  font-size: 0.76rem;
  flex-shrink: 0;
}

.situation-metric-value {
  font-size: 0.95rem;
  color: #1a365d;
  text-align: right;
}

.situation-metric-row--total .situation-metric-value {
  color: #2b6cb0;
  font-size: 1rem;
}

.situation-carousel-dots,
.ui-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.5rem;
}

.situation-carousel-dot,
.ui-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #cbd5e0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.situation-carousel-dot.is-active,
.ui-carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.situation-compare-bars,
.ui-compare-bars {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.situation-compare-title,
.ui-compare-title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.situation-compare-row,
.ui-compare-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0;
  font-size: 0.78rem;
}

.situation-compare-label,
.ui-compare-label {
  font-weight: 700;
  color: #4a5568;
}

.situation-compare-track,
.ui-compare-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.situation-compare-fill,
.ui-compare-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #63b3ed 0%, #3182ce 100%);
  border-radius: 4px;
  min-width: 4px;
}

.situation-carousel-section--long .situation-compare-fill {
  background: linear-gradient(90deg, #f6ad55 0%, #dd6b20 100%);
}

.situation-compare-amount,
.ui-compare-amount {
  font-weight: 600;
  color: #2d3748;
  white-space: nowrap;
  font-size: 0.72rem;
}

.ui-carousel-section {
  margin: 0.5rem 0 0.75rem;
}

.ui-carousel-heading {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #2d3748;
}

.ui-carousel-hint {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.ui-carousel-section--comparison .comparison-carousel-card {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
  max-width: none;
  flex-basis: 92%;
}

.ui-carousel-section--comparison .ui-carousel-slide.is-active {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

.ui-carousel-section--comparison .comparison-carousel-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #fff;
}

.ui-carousel-section--comparison .comparison-card--over {
  border-color: #f6ad55;
  background: linear-gradient(165deg, #fff 0%, #fffaf0 100%);
}

.ui-carousel-section--phase .phase-carousel-card {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0.5rem 0;
  text-align: center;
}

.ui-carousel-section--phase .phase-carousel-num {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.ui-carousel-section--journey .journey-hook-slide {
  border: 1px solid #e2d4c0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  flex-basis: 78%;
  max-width: 280px;
}

.ui-carousel-section--journey .ui-carousel-slide.is-active {
  border-color: #c9a227;
}

.ui-carousel-section--progression .risk-phase-slide {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0.25rem 0;
}

@media (min-width: 641px) {
  .ui-carousel-wrap--multi .ui-carousel {
    gap: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .ui-carousel-wrap--multi .ui-carousel-slide {
    flex: 0 0 100%;
    max-width: none;
    scroll-snap-align: center;
    box-sizing: border-box;
  }

  .ui-carousel-wrap--multi .ui-carousel-nav {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.45rem;
  }

  .ui-carousel-section--progression .ui-carousel-slide {
    padding: 1.05rem 1.2rem;
    min-height: 7.5rem;
  }

  .ui-carousel-section--progression .risk-phase-label {
    font-size: 0.96rem;
  }

  .ui-carousel-section--progression .risk-phase-body {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .ui-carousel-wrap--multi .ui-carousel-section--comparison .comparison-carousel-card {
    flex: 0 0 100%;
    max-width: none;
    padding: 0.95rem 1.1rem;
  }

  .ui-carousel-section--phase .ui-carousel-slide {
    flex: 0 0 100%;
    max-width: none;
  }

  .ui-carousel-hint--mobile-only {
    display: none;
  }
}

.ui-carousel--timeline {
  gap: 10px;
}

.ui-carousel--timeline .timeline-step {
  flex: 0 0 85%;
  max-width: 300px;
  scroll-snap-align: center;
  min-width: auto;
}

.ui-carousel-wrap--timeline .timeline-step:not(:last-child)::after {
  display: none;
}

.situation-cap {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
}

.s5-acute-scenarios-block {
  margin: 0.5rem 0 0.25rem;
}

.s5-income-fold {
  margin: 0.75rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem 0.5rem;
  background: #fafbfc;
}

.s5-income-fold summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0;
}

.s5-income-fold-body .income-card {
  margin: 0.5rem 0;
}

.s5-takeaway-card {
  border: 1px solid #90cdf4;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #ebf8ff 0%, #fff 55%);
  box-shadow: 0 2px 10px rgba(49, 130, 206, 0.1);
}

.s5-takeaway-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: #2c5282;
}

.s5-takeaway-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.55;
}

.s5-takeaway-list li {
  margin: 0.3rem 0;
}

.s5-takeaway-list li:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.long-term-evidence-fold {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
}

.long-term-evidence-fold summary {
  cursor: pointer;
  color: var(--muted);
}

.situation-range-fold {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.86rem;
}

.situation-range-fold summary {
  cursor: pointer;
  color: var(--muted);
}

.long-term-range-body {
  margin-top: 0.5rem;
}

.monthly-income-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.88rem;
}

.monthly-income-table th,
.monthly-income-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.monthly-income-table th {
  width: 42%;
  background: #f8fafc;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}

.monthly-income-table td small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.monthly-income-table .monthly-loss-row th,
.monthly-income-table .monthly-loss-row td {
  background: #fff8f3;
}

.monthly-income-table .monthly-loss-row td strong {
  color: #a34a1c;
  font-size: 1.05rem;
}

.income-monthly-card {
  margin-bottom: 1rem;
}

.income-period-heading {
  margin: 1rem 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e4edf4;
}

.income-absence-longterm {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #744210;
  background: #fffaf0;
  border-left: 3px solid #ed8936;
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
}

.hospital-return-link {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed #d8e8f4;
  font-size: 0.82rem;
}

.recap-adjust-links {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed #d8e8f4;
  font-size: 0.82rem;
}

.recap-adjust-lead {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: #4a5568;
  font-weight: 600;
}

.recap-adjust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.recap-adjust-list a,
.recap-adjust-btn {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.45;
}

.recap-adjust-list a:hover,
.recap-adjust-btn:hover {
  text-decoration: underline;
}

.hospital-return-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.hospital-return-link a:hover {
  text-decoration: underline;
}

.income-note {
  margin: 0.35rem 0;
}

.entry-bridge-banner {
  background: linear-gradient(180deg, #fff8e6 0%, #fffdf5 100%);
  border: 1px solid #e6c200;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.entry-bridge-title,
.entry-recap-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

.entry-recap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-recap-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px dashed #e8e0c8;
  font-size: 0.84rem;
  line-height: 1.45;
}

.entry-recap-list li:last-child {
  border-bottom: none;
}

.entry-recap-label,
.context-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 4.5rem;
}

.entry-bridge-next {
  margin: 0.55rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid #e6d9a8;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hospital-entry-recap {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(180deg, #eef6fc 0%, #f8fbfd 100%);
  border: 1px solid #b8d4ea;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.hospital-entry-recap .entry-recap-list li {
  border-bottom-color: #d8e8f4;
}

.entry-context-note {
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.hospital-local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.bridge-note-local {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border);
}

.step-now-line {
  background: #fff8e6;
  border-left: 3px solid #e6a817;
  padding: 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.step-why-line {
  background: #f4f8fb;
  border-left: 3px solid #7ba7c9;
  padding: 0.45rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #334155;
}

.step-next-line {
  background: #f0faf4;
  border-left: 3px solid #3d9a6a;
  padding: 0.45rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #1e4d32;
  font-weight: 600;
}

.gap-hero-card {
  border: 2px solid #7ba7c9;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0.5rem 0 1rem;
  background: linear-gradient(180deg, #eef6fc 0%, #fff 100%);
  box-shadow: var(--shadow-sm);
}

.gap-hero-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #1e3a52;
}

.gap-hero-lead {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.gap-personal-summary {
  font-size: 0.82rem;
  color: #5a6a77;
  background: #f0f4f8;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.gap-hero-table tr.gap-total td,
.gap-hero-table tr.gap-total th {
  font-size: 1rem;
}

.longterm-teaser-card {
  margin: 1rem 0 0.5rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 2px solid #c9a227;
  background: linear-gradient(180deg, #fffbf0 0%, #fff 100%);
  box-shadow: var(--shadow-sm);
}

.longterm-teaser-card--result {
  margin-top: 0.75rem;
  border-color: #d4c4a0;
  background: #fffdf8;
}

.longterm-teaser-card--s6 {
  border-color: #e6a817;
  margin-top: 1.25rem;
}

.longterm-teaser-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  color: #5c4a12;
}

.longterm-teaser-lead {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #334155;
}

.longterm-teaser-preview {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: #fff8e6;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4a3d10;
  font-weight: 600;
}

.longterm-teaser-btn {
  width: 100%;
  margin-top: 0.15rem;
}

.s5-acute-scope-note {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #f4f8fb;
  border-left: 3px solid #7ba7c9;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #334155;
}

.entry-path-gate {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.entry-path-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
}

.entry-path-btn-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.entry-path-btn-note {
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.88;
  line-height: 1.45;
}

.entry-path-btn.secondary .entry-path-btn-note {
  opacity: 0.75;
}

/* s3 ゲージパネル */
.s3-gauge-panel {
  margin-bottom: 1.25rem;
}
.s3-gauge-heading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.s3-gauge-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.s3-gauge-all-ok {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.75rem;
  background: #f5f6f7;
  border-radius: 8px;
}
.s3-gauge-item {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}
.s3-gauge-item--over {
  border-left: 4px solid #e05a2b;
}
.s3-gauge-item--borderline {
  border-left: 4px solid #d4a017;
}
.s3-gauge-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}
.s3-gauge-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.s3-gauge-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}
.s3-gauge-bar-wrap {
  margin-bottom: 0.35rem;
}
.s3-gauge-bar {
  position: relative;
  height: 10px;
  background: linear-gradient(
    to right,
    #c8e6c9 0%,
    #fff9c4 50%,
    #ffccbc 100%
  );
  border-radius: 5px;
  margin-bottom: 0.2rem;
}
.s3-gauge-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.s3-gauge-marker--user {
  background: #1a7fc1;
  z-index: 2;
}
.s3-gauge-marker--threshold {
  background: #e05a2b;
  width: 3px;
  height: 18px;
  border-radius: 2px;
  border: none;
  z-index: 1;
}
.s3-gauge-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.s3-gauge-axis-threshold {
  text-align: center;
}
.s3-gauge-desc {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.s3-gauge-kenta {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem;
}

.s3-gauge-fold {
  margin-top: 0.5rem;
}
.s3-gauge-fold-summary {
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
}
.s3-gauge-fold-summary:hover {
  color: var(--text);
}

.s3-quick-panel {
  background: #e8f2fa;
  border: 1px solid #b8d4ea;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
}

.s3-quick-title {
  margin: 0 0 0.4rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.s3-quick-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.s3-quick-list li {
  margin-bottom: 0.25rem;
}

.s3-quick-hook {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.s3-days-panel {
  background: #f0f7ef;
  border: 1px solid #c5dcc0;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  margin: 0.75rem 0 0.65rem;
}

.s3-days-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.s3-days-context {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #2d5a2d;
}

.s3-days-lead {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
}

.s3-days-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.35rem 0 0.5rem;
}

.s3-days-summary-cell {
  background: #fff;
  border: 1px solid #b8d4b0;
  border-radius: 6px;
  padding: 0.5rem 0.35rem;
  text-align: center;
}

.s3-days-summary-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: #2d6a2d;
  margin-bottom: 0.25rem;
}

.s3-days-summary-value {
  display: block;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #333;
}

.s3-days-more-note {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}

.s3-days-disclaimer {
  margin: 0;
  font-size: 0.75rem;
  color: #666;
}

.s3-days-highlight {
  margin: 0.45rem 0 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.45;
}

.s3-days-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.s3-days-cta {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}

.s4-situation-block {
  background: #f0f7ef;
  border: 1px solid #c5dcc0;
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
  margin: 0.65rem 0 0.85rem;
}

.s4-situation-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.s4-situation-scenario {
  margin: 0.55rem 0 0.2rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.s4-situation-days {
  margin: 0.2rem 0 0.55rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.s4-region-zip {
  margin-bottom: 0.5rem;
}

.s4-cost-section-heading {
  margin: 0.25rem 0 0.65rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.s4-situation-block .hospital-bridge-cta {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
}

.s3-fold {
  margin: 0.65rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}

.s3-fold > summary {
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  list-style: none;
}

.s3-fold > summary::-webkit-details-marker {
  display: none;
}

.s3-fold > summary::before {
  content: "＋ ";
  color: var(--accent);
}

.s3-fold[open] > summary::before {
  content: "－ ";
}

.s3-fold-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px dashed var(--border);
}

.s3-fold-body h3 {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.s3-comparison-section {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}

.s3-comparison-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.s3-comparison-subheading {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.s3-comparison-lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.entry-context-note {
  margin: 0.5rem 0 0.75rem;
}

.harm-perspective-block {
  display: grid;
  gap: 0.5rem;
  margin: 0.85rem 0;
}

@media (min-width: 520px) {
  .harm-perspective-block {
    grid-template-columns: 1fr 1fr;
  }
}

.harm-card {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.harm-card--ambition {
  border-color: #d4e4f4;
  background: linear-gradient(165deg, #fff 0%, #f8fbfd 100%);
}

.harm-card--relation {
  border-color: #e8dfd4;
  background: linear-gradient(165deg, #fff 0%, #fffbf7 100%);
}

.harm-card-tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.harm-card-body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #4a5568;
}

.motivation-subheading {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #2d3748;
}

.pasona-block {
  margin: 1rem 0 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #d8e4f0;
  border-radius: 10px;
  background: linear-gradient(165deg, #fff 0%, #f8fbfd 100%);
}

.pasona-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.pasona-step {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8eef4;
}

.pasona-step-tag {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2b6cb0;
  background: #ebf4ff;
  border-radius: 4px;
}

.pasona-step-body {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #4a5568;
}

.s7-consult-tip {
  margin: 0.5rem 0 0.75rem;
}

.coverage-check-section {
  margin: 0.85rem 0 0.5rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #d8e4f0;
  border-radius: 10px;
  background: #f9fbfd;
}

.coverage-check-section h3 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.coverage-check-lead {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
}

.coverage-check-themes {
  margin: 0 0 0.65rem;
}

.coverage-check-theme-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #2d3748;
}

.coverage-check-form {
  border: none;
  margin: 0;
  padding: 0;
}

.coverage-check-form legend {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.4rem;
}

.coverage-check-opt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  margin: 0.35rem 0;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.82rem;
}

.coverage-check-opt:has(input:checked) {
  border-color: var(--accent);
  background: #f0f8fc;
}

.coverage-check-opt-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.coverage-check-opt-text small {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.coverage-check-sync {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.coverage-check-disc,
.coverage-check-consult {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
}

.policy-ocr-block {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.7rem;
  border: 1px dashed #c5d4e3;
  border-radius: 8px;
  background: #fff;
}

.policy-ocr-heading {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a5568;
}

.coverage-check-fp-nudge {
  margin: 0.45rem 0 0;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: #f0f6fb;
  border: 1px solid #c5d9ea;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #2d4a5e;
}

.policy-ocr-lead {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
}

.policy-ocr-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
  align-items: start;
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  line-height: 1.4;
  cursor: pointer;
}

.policy-ocr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.policy-ocr-btn {
  font-size: 0.8rem;
}

.policy-ocr-status {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
  line-height: 1.4;
}

.policy-ocr-banner {
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #edf7ed;
  border: 1px solid #b7ddb9;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #2f5d32;
}

.policy-ocr-block--disabled {
  opacity: 0.72;
}

/* ミニキャラ＋セリフ（画面ガイド） */
.scene-guide {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.65rem 0 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #fafbfd;
  border: 1px solid #e8edf2;
  border-radius: 12px;
}

.scene-guide--bridge {
  background: #f0f7fc;
  border-color: #c5deef;
}

.s5-scene-guide-mount .scene-guide:last-child {
  margin-bottom: 0.35rem;
}

.s5-form-start {
  margin-top: 0.35rem;
}

.s5-field-grid {
  margin-top: 0.5rem;
}

.s5-gap-scene-guide-mount .scene-guide:first-child {
  margin-top: 0.35rem;
}

.s5-gap-scene-guide-mount .scene-guide:last-child {
  margin-bottom: 0.5rem;
}

.s6-scene-guide-mount {
  display: grid;
  gap: 0.45rem;
  margin: 0.5rem 0 0.65rem;
}

.s6-scene-guide-mount .scene-guide:first-child {
  margin-top: 0;
}

/* s6 個人試算サマリーカード */
.s6-personal-recap-card {
  background: #eaf4fb;
  border-left: 4px solid #1a7fc1;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.s6-personal-recap-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #125d8f;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.s6-personal-recap-profile {
  font-size: 0.88rem;
  color: #5a6a77;
  margin-bottom: 0.35rem;
}
.s6-personal-recap-total {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.s6-personal-recap-total strong {
  color: #e05a2b;
  font-size: 1.15rem;
}
.s6-personal-recap-note {
  font-size: 0.8rem;
  color: #5a6a77;
  line-height: 1.6;
  margin-top: 0.35rem;
}

.s6-journey-recap {
  margin: 0.65rem 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d8e4f0;
  border-radius: 10px;
  background: linear-gradient(165deg, #fff 0%, #f8fbfd 100%);
}

.s6-recap-heading {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3748;
}

.s6-recap-intro {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
}

.s6-recap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.s6-recap-item {
  margin: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8eef4;
}

.s6-recap-item--emphasis {
  border-color: #b8d4f0;
  background: linear-gradient(165deg, #fff 0%, #f0f7ff 100%);
}

.s6-recap-tag {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2b6cb0;
  background: #ebf4ff;
  border-radius: 4px;
}

.s6-recap-item--emphasis .s6-recap-tag {
  color: #1a5fb4;
  background: #dbeafe;
}

.s6-recap-headline {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: #2d3748;
}

.s6-recap-detail {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #4a5568;
}

.s6-recap-item--emphasis .s6-recap-detail {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a365d;
}

.s6-recap-point {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #2c5282;
  font-weight: 600;
}

.s6-recap-amount {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: #2d3748;
}

.s6-recap-amount--emphasis {
  font-size: 1.05rem;
  color: #1a365d;
}

.s6-recap-breakdown-wrap {
  margin: 0.35rem 0 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #f7fafc;
  border: 1px solid #edf2f7;
}

.s6-recap-item--emphasis .s6-recap-breakdown-wrap {
  background: #fff;
  border-color: #dbeafe;
}

.s6-recap-breakdown-label {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #718096;
  text-transform: none;
}

.s6-recap-breakdown {
  margin: 0;
  display: grid;
  gap: 0.25rem 0.65rem;
  grid-template-columns: minmax(5.5rem, 38%) 1fr;
}

.s6-recap-breakdown dt {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: #4a5568;
}

.s6-recap-breakdown dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #2d3748;
  font-weight: 600;
}

.s6-recap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 0.45rem;
}

.s6-recap-revisit-btn,
.s6-recap-revisit-link {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.s6-recap-revisit-btn {
  border: 1px solid #90cdf4;
  background: #ebf8ff;
  color: #2b6cb0;
}

.s6-recap-revisit-btn:hover {
  background: #bee3f8;
}

.s6-recap-revisit-link {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #4a5568;
}

.s6-recap-revisit-link:hover {
  border-color: #cbd5e0;
  color: #2d3748;
}

.s6-revisit-nav {
  margin: 0.5rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #c3d9ec;
  border-radius: 10px;
  background: #f8fbfe;
}

.s6-revisit-heading {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d3748;
}

.s6-revisit-lead {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
}

.s6-revisit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.s6-revisit-chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #2b6cb0;
  background: #fff;
  border: 1px solid #b8d4f0;
  border-radius: 999px;
  cursor: pointer;
}

.s6-revisit-chip:hover {
  background: #ebf8ff;
}

.s6-revisit-external {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
}

.s6-revisit-external a {
  font-size: 0.76rem;
  font-weight: 600;
  color: #4a5568;
  text-decoration: none;
}

.s6-revisit-external a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}

.s6-feedback-block {
  margin: 0.65rem 0 0.5rem;
}

.s6-feedback-fold {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.s6-feedback-fold summary {
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
}

.s6-feedback-body {
  padding: 0 0.85rem 0.85rem;
}

.s6-feedback-lead {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
}

.s6-feedback-fieldset {
  margin: 0 0 0.65rem;
  padding: 0;
  border: 0;
}

.s6-feedback-fieldset legend {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2d3748;
}

.s6-feedback-rating-row {
  display: flex;
  gap: 0.35rem;
}

.s6-feedback-rating {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: #4a5568;
  cursor: pointer;
}

.s6-feedback-rating input {
  margin: 0;
}

.s6-feedback-improve label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2d3748;
}

.s6-feedback-improve textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  resize: vertical;
}

.s6-feedback-note {
  margin: 0.45rem 0 0.55rem;
  font-size: 0.72rem;
}

.s6-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.s6-feedback-submit,
.s6-feedback-external {
  font-size: 0.78rem;
}

.s6-feedback-status {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #276749;
  font-weight: 600;
}

.s6-feedback-status.hidden {
  display: none;
}

.line-chapter-handoff {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px dashed #9ae6b4;
  border-radius: 10px;
  background: linear-gradient(165deg, #f0fff4 0%, #fff 100%);
}

.line-chapter-handoff-title {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #22543d;
}

.line-chapter-handoff-lead {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #2d3748;
}

.line-chapter-handoff-hint {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
}

.line-chapter-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.line-chapter-handoff-line,
.line-chapter-handoff-copy {
  font-size: 0.78rem;
}

.s6-cta-dialogue {
  margin: 0.75rem 0 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d8e4f0;
  border-radius: 10px;
  background: linear-gradient(165deg, #fff 0%, #f8fbfd 100%);
}

.s6-cta-dialogue .scene-guide + .scene-guide {
  margin-top: 0.55rem;
}

.s6-booking-cta {
  margin: 0.55rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #b8d4f0;
  border-radius: 10px;
  background: linear-gradient(165deg, #f0f7ff 0%, #fff 100%);
}

.s6-booking-cta-note {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  text-align: center;
}

.s6-booking-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.s6-booking-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.scene-guide-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  background: #fff5f2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.scene-guide--fp .scene-guide-icon {
  background: #fce4ec;
}

.scene-guide-bubble {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}

.scene-guide-name {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted, #64748b);
  margin-bottom: 0.12rem;
}

.scene-guide--hero .scene-guide-text {
  display: block;
  border-left: 3px solid #ffb4a2;
  padding-left: 0.5rem;
}

.scene-guide--fp .scene-guide-text {
  display: block;
  border-left: 3px solid #7eb8e8;
  padding-left: 0.5rem;
}

@media (max-width: 480px) {
  .scene-guide-icon {
    width: 44px;
    height: 44px;
  }
  .scene-guide-bubble {
    font-size: 0.8rem;
  }
}

.s0-upload-panel {
  margin-top: 1.25rem;
}

.s0-upload-panel.is-locked {
  opacity: 0.55;
  filter: grayscale(0.12);
}

.s0-upload-panel.is-locked .ocr-upload-box {
  pointer-events: none;
}

.s0-upload-panel.is-locked .check input {
  pointer-events: none;
}

.flow-combined-divider {
  margin: 1.75rem 0 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--accent, #2b6cb0);
}

.flow-combined-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.flow-combined-lead {
  margin-bottom: 0.75rem;
}

.line-save-global {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px dashed #06c755;
  border-radius: 10px;
  background: #f6fff9;
}

.line-save-global-inner .line-save-title {
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
}

.line-save-global-inner .line-save-lead {
  font-size: 0.82rem;
  margin: 0 0 0.55rem;
}

.line-save-global-inner .line-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resume-partial-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #fff8e6;
  border: 1px solid #f0d78c;
  font-size: 0.88rem;
}

/* s3 進行イメージの折りたたみ */
.s3-insight-fold {
  border: 0.5px solid var(--border);
  border-radius: 8px;
  margin: 0.75rem 0;
  overflow: hidden;
  background: #fafbfc;
}

.s3-fold-summary {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fafbfc;
}

.s3-fold-summary::-webkit-details-marker {
  display: none;
}

.s3-fold-summary::before {
  content: "＋";
  font-size: 0.75rem;
  color: var(--muted);
}

.s3-insight-fold[open] .s3-fold-summary::before {
  content: "－";
}

.s3-insight-fold > *:not(summary) {
  padding: 0.75rem 1rem;
}

/* s3 上部「次へ」ボタン */
.s3-top-next {
  margin: 0.5rem 0 0.25rem;
  text-align: right;
}

.s3-top-next-btn {
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.s3-top-next-btn:hover {
  background: #f5f6f7;
}

/* s5-result 内の gap ヒーロー区切り */
.s5-result-gap-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0 1rem;
}

/* s5-result 内の gap ヒーローカード（余白調整） */
.s5-result-gap-hero {
  margin-bottom: 0.5rem;
}

.gap-monthly-conversion {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.25rem;
}

.tool-faq {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e2e8f0);
}

.tool-faq-title {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.tool-faq-item {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #fff;
}

.tool-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.tool-faq-item summary::-webkit-details-marker {
  display: none;
}

.tool-faq-answer {
  margin: 0.5rem 0 0;
  color: var(--muted, #64748b);
  font-size: 0.9rem;
  line-height: 1.55;
}

.source-citation-note {
  font-size: 0.85rem;
  line-height: 1.5;
}

.s3-gauge-axis-threshold {
  font-size: 0.72rem;
  line-height: 1.35;
}

/* ===== ゾーン式ゲージ（共通部品 gauge.js・S3） ===== */
.gauge-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.75rem;
  color: #475569; margin: 8px 0 12px; align-items: center; }
.gauge-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px;
  vertical-align: -2px; margin-right: 4px; }
.gauge-legend .sw-marker { width: 10px; height: 10px; border-radius: 50%; background: #1e293b; }
.gauge-legend .sw-peer { width: 3px; height: 14px; background: #64748b; border-radius: 1px; }
.gauge-row { margin-bottom: 6px; }
.gauge-head { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.9rem; margin-bottom: 4px; }
.gauge-head .gv { font-weight: 700; }
.gauge-head .gv.lv-warn { color: #9a5b00; }
.gauge-head .gv.lv-bad { color: #b91c1c; }
.gauge-bar { position: relative; height: 16px; border-radius: 8px; overflow: visible; }
.gauge-seg { position: absolute; top: 0; height: 100%; }
.gauge-seg.lv-ok { background: #cde9d9; }
.gauge-seg.lv-warn { background: #fbe6b3; }
.gauge-seg.lv-bad { background: #f6c8c4; }
.gauge-seg.first { border-radius: 8px 0 0 8px; }
.gauge-seg.last { border-radius: 0 8px 8px 0; }
.gauge-marker { position: absolute; top: 50%; width: 12px; height: 12px; background: #1e293b;
  border: 2px solid #fff; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.35); z-index: 2; }
.gauge-peer-line { position: absolute; top: -3px; bottom: -3px; width: 3px; background: #64748b;
  transform: translateX(-50%); border-radius: 1px; z-index: 1; }
.gauge-ticks { position: relative; height: 14px; font-size: 0.68rem; color: #94a3b8; }
.gauge-tick { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.s3-gauge-peer-note { font-size: 0.72rem; margin: 2px 0 0; }

/* ===== 大枠3フェーズバー（入力→結果→備え） ===== */
.flow-phase { flex-basis: 100%; display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-bottom: 6px; }
.fp-count { background: #0d3d6b; color: #fff; font-size: 0.72rem; font-weight: 800;
  border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.fp-item { font-size: 0.78rem; font-weight: 700; color: #94a3b8; white-space: nowrap; }
.fp-item.is-current { color: #1a7fc1; }
.fp-item.is-done { color: #11a87c; }
.fp-arrow { color: #cbd5e1; font-size: 0.7rem; }

/* ===== 入口の価値先出し（S0ゲート） ===== */
.entry-value-strip { background: #f0f7fd; border: 1px solid #cfe4f5; border-radius: 12px;
  padding: 12px 14px; margin: 4px 0 16px; }
.evs-steps { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.evs-badge { background: #1a7fc1; color: #fff; font-size: 0.75rem; font-weight: 800;
  border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.evs-flow { font-size: 0.82rem; font-weight: 700; color: #0d3d6b; }
.evs-arrow { color: #7fb3d9; font-size: 0.7rem; }
.evs-benefits { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.evs-benefits li { font-size: 0.82rem; color: #33475b; padding-left: 1.3em; position: relative; }
.evs-benefits li::before { content: "✓"; position: absolute; left: 0; color: #11a87c; font-weight: 800; }
.evs-benefits strong { color: #0d3d6b; }

/* ===== 判定サマリーチップ（S3先頭） ===== */
.sum-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sum-chips .chip { padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.chip-ok { background: #e7f4ec; color: #1e5c3f; border: 1px solid #bfe0cd; }
.chip-warn { background: #fdf3d7; color: #9a5b00; border: 1px solid #f0d9a8; }
.chip-bad { background: #fdeceb; color: #b91c1c; border: 1px solid #f5c6c2; }
.s3-sum-chips { margin-top: 4px; }

/* ===== 生活のヒント（S3・共通部品 gauge.js advice） ===== */
.s3-advice-panel { margin: 14px 0; background: #fbfdf9; border: 1px solid #d9e8dd;
  border-radius: 12px; padding: 10px 14px; }
.s3-advice-summary { font-size: 0.9rem; font-weight: 700; color: #1e5c3f; cursor: pointer; }
.flag-item { display: flex; gap: 8px; padding: 9px 10px; border: 1px solid #fde3c0;
  background: #fff9f0; border-radius: 8px; margin: 8px 0; font-size: 0.85rem;
  align-items: flex-start; }
.flag-item .flag-name { font-weight: 700; white-space: nowrap; color: #9a5b00; }
.flag-item--bad { border-color: #f5c6c2; background: #fef2f2; }
.flag-item--bad .flag-name { color: #b91c1c; }
.flag-item--bad .fbadge { background: #fde2e2; color: #b91c1c; }
.flag-level-bad { display: inline-block; font-size: 0.68rem; font-weight: 800; color: #fff;
  background: #dc2626; border-radius: 4px; padding: 1px 6px; margin-right: 4px; vertical-align: middle; }
.fbadge { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: #f6e7cf; color: #9a5b00; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.fbadge-icon { font-size: 1.3rem; line-height: 1; }
.advice-fold { margin-top: 8px; border-top: 1px dashed #f0d9b8; padding-top: 6px; }
.advice-fold summary { font-size: 0.8rem; color: #1a7fc1; cursor: pointer; }
.advice-fold p { font-size: 0.82rem; margin: 6px 0 0; color: #334155; }
.advice-fold .adv-prog { color: #7c2d12; }
.advice-fold .note { font-size: 0.72rem; color: #64748b; }
.prog-steps { display: flex; align-items: stretch; gap: 4px; margin: 8px 0 4px; }
.ps { flex: 1; border-radius: 8px; padding: 6px 4px; text-align: center;
  font-size: 0.72rem; font-weight: 700; line-height: 1.3; }
.ps small { font-weight: 400; font-size: 0.68rem; display: block; margin-top: 2px; }
.ps-now { background: #fdf3d7; color: #9a5b00; }
.ps-mid { background: #fbe3c9; color: #92400e; }
.ps-end { background: #fdeceb; color: #b91c1c; }
.ps-arrow { align-self: center; color: #b45309; font-size: 0.7rem; }
.adv-group { margin-top: 10px; }
.adv-cat { font-size: 0.78rem; font-weight: 700; color: #334155; display: block; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-adv { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 4px 9px; font-size: 0.78rem; color: #334155; }

/* S3 フォーカス・習慣メモ */
.s3-focus-panel { margin: 10px 0 14px; }
.s3-focus-title { font-size: 0.88rem; font-weight: 700; color: #334155; margin-bottom: 8px; }
.s3-habit-note { background: #f0f7fd; border: 1px solid #cfe4f5; border-radius: 10px;
  padding: 10px 12px; margin: 8px 0 12px; font-size: 0.85rem; }
.s2-lifestyle-panel { margin: 12px 0; padding: 10px 12px; border: 1px solid #e2e8f0;
  border-radius: 10px; background: #f8fafc; }
.s2-lifestyle-panel summary { font-weight: 700; font-size: 0.88rem; cursor: pointer; color: #0d3d6b; }
.s5-gap-fold { margin-top: 14px; }
