:root {
  color-scheme: light;
  --bg: #fff8f5;
  --bg-end: #f8fbf7;
  --surface: #ffffff;
  --surface-soft: #fffaf1;
  --surface-strong: #fbf4ec;
  --text: #2a252b;
  --heading: #564064;
  --muted: #5f5660;
  --line: #eadedc;
  --primary: #167b73;
  --primary-dark: #0a4e3a;
  --accent: #167b73;
  --rose: #f8d8d1;
  --mint: #dff4ed;
  --lavender: #f0e8fb;
  --sun: #ffd98a;
  --warning-bg: #fff3df;
  --warning-line: #e5b56e;
  --money: #0a4e3a;
  --money-soft: #dff4ed;
  --work: #564064;
  --work-soft: #f0e8fb;
  --care: #6b3d4b;
  --care-soft: #f8d8d1;
  --rights: #564064;
  --rights-soft: #f0e8fb;
  --local: #0a4e3a;
  --local-soft: #fff3d2;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%);
  color: var(--text);
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%);
  font-size: 17.5px;
  line-height: 1.8;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #f2b950;
  outline-offset: 4px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.site-header.compact {
  min-height: 56px;
}

.brand {
  color: var(--heading);
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
}

.diagnosis-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px 56px;
}

.hero {
  display: grid;
  gap: 16px;
  padding: 34px 0 54px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 30px;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 54px);
  box-shadow: 0 24px 70px rgba(86, 64, 100, 0.1);
}

.hero-inner {
  max-width: 660px;
}

.eyebrow,
.progress {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.84rem;
  margin: 0 0 8px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid #eadedc;
  border-radius: 999px;
  background: #fff9ef;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  padding: 6px 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--heading);
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.14;
  margin-bottom: 18px;
}

h2 {
  color: var(--heading);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.3;
  margin-bottom: 18px;
}

h3 {
  color: var(--heading);
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
}

.hero-illustration {
  background: linear-gradient(135deg, var(--lavender), var(--mint));
  border-radius: 26px;
  padding: 18px;
}

.hero-illustration svg {
  display: block;
  width: 100%;
  height: auto;
}

.trust-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-chip-row span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(86, 64, 100, 0.06);
}

.button-row,
.nav-row,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-button,
.secondary-button,
.ghost-button,
.choice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 20px;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.secondary-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--heading);
  font-weight: 700;
}

.ghost-button {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.ghost-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.content-section {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.result-main .content-section {
  border-top-color: rgba(234, 222, 220, 0.78);
}

.result-main .content-section > h2 {
  margin-bottom: 16px;
}

.feature-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.program-card,
.notice,
.consult-box,
.feedback {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(86, 64, 100, 0.07);
}

.feature-grid article,
.program-card {
  background: var(--surface);
}

.email-form {
  max-width: 620px;
}

.email-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="email"] {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  flex: 1 1 220px;
  min-width: 0;
  background: #fff;
  color: var(--text);
}

.form-message {
  color: var(--muted);
  margin: 8px 0 0;
}

.diagnosis-main {
  min-height: calc(100svh - 130px);
  display: grid;
  align-items: center;
  max-width: 760px;
}

.question-panel {
  padding: 30px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(86, 64, 100, 0.1);
}

.choice-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.choice-button {
  width: 100%;
  min-height: 64px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  text-align: left;
  justify-content: flex-start;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(86, 64, 100, 0.05);
}

.choice-button:hover,
.choice-button.is-selected {
  border-color: var(--primary);
  background: var(--mint);
  color: var(--primary-dark);
}

.result-main {
  max-width: 980px;
  padding-top: 28px;
}

.result-hero {
  padding: 34px 0 30px;
}

.result-hero p {
  color: var(--muted);
  max-width: 720px;
}

.answer-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 26px;
}

.answer-summary div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(86, 64, 100, 0.05);
}

.answer-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.answer-summary strong {
  display: block;
  line-height: 1.45;
}

.todo-list {
  padding-left: 1.35em;
}

.todo-list li {
  margin-bottom: 10px;
  font-weight: 700;
}

.todo-day-group {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.todo-day-group:first-of-type {
  margin-top: 0;
}

.todo-day-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  padding: 6px 12px;
}

.todo-list-v2 {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: todo;
}

.todo-list-v2 li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(86, 64, 100, 0.06);
}

.todo-list-v2 li.is-first {
  border-color: #e6cda1;
  background: #fff9ef;
  box-shadow: inset 5px 0 0 var(--sun), 0 14px 32px rgba(86, 64, 100, 0.06);
}

.todo-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.todo-list-v2 strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
}

.todo-list-v2 p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 4px 0 0;
}

.todo-content {
  min-width: 0;
}

.todo-guide {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.todo-guide summary {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.todo-guide-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid #eadedc;
  border-radius: 16px;
  background: #fffaf1;
  padding: 14px;
}

.guide-block {
  display: grid;
  gap: 6px;
}

.guide-block h4 {
  color: var(--heading);
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 0;
}

.todo-list-v2 .guide-block p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.guide-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guide-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 12px;
}

.todo-list-v2 .guide-quote {
  border-left: 4px solid var(--mint);
  background: #fff;
  border-radius: 8px;
  color: var(--heading);
  font-weight: 800;
  padding: 8px 10px;
}

.copy-status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.guide-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-chip-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 5px 9px;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.guide-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.guide-caution {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-card {
  display: grid;
  gap: 12px;
}

.program-card dl {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 0.92rem;
}

.program-card dt {
  color: var(--muted);
}

.program-card dd {
  margin: 0;
}

.program-group {
  --group-color: var(--heading);
  --group-soft: var(--surface-strong);
  margin-top: 24px;
}

.program-group-money {
  --group-color: var(--money);
  --group-soft: var(--money-soft);
}

.program-group-work {
  --group-color: var(--work);
  --group-soft: var(--work-soft);
}

.program-group-care {
  --group-color: var(--care);
  --group-soft: var(--care-soft);
}

.program-group-rights {
  --group-color: var(--rights);
  --group-soft: var(--rights-soft);
}

.program-group-local {
  --group-color: var(--local);
  --group-soft: var(--local-soft);
}

.program-group-header {
  background: var(--group-soft);
  border: 1px solid color-mix(in srgb, var(--group-color), white 76%);
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.program-group-header h3 {
  color: var(--heading);
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.program-group-header h1 {
  color: var(--heading);
  margin-bottom: 8px;
}

.program-group-header p {
  color: var(--muted);
  margin: 0;
}

.program-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.program-card-v2 {
  --card-color: var(--heading);
  --card-soft: var(--surface-strong);
  display: grid;
  gap: 14px;
  align-content: start;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid color-mix(in srgb, var(--card-color), white 78%);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 22px 54px rgba(86, 64, 100, 0.09);
}

.program-card-money {
  --card-color: var(--money);
  --card-soft: var(--money-soft);
}

.program-card-work {
  --card-color: var(--work);
  --card-soft: var(--work-soft);
}

.program-card-care {
  --card-color: var(--care);
  --card-soft: var(--care-soft);
}

.program-card-rights {
  --card-color: var(--rights);
  --card-soft: var(--rights-soft);
}

.program-card-local {
  --card-color: var(--local);
  --card-soft: var(--local-soft);
}

.program-card-main {
  display: grid;
  gap: 8px;
}

.category-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--card-color);
  border: 1px solid color-mix(in srgb, var(--card-color), white 72%);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  padding: 6px 12px;
  margin: 0;
}

.category-pill span {
  color: var(--muted);
  font-weight: 700;
}

.program-card-v2 h2,
.program-card-v2 h3 {
  color: var(--heading);
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0;
}

.program-card-v2 h2 em,
.program-card-v2 h3 em {
  color: var(--heading);
  font-style: normal;
  font-size: 1.85em;
  font-weight: 900;
  line-height: 0.95;
  white-space: nowrap;
}

.program-catch {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.benefit-visual {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.visual-bar {
  position: relative;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2eee8;
}

.visual-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--lavender));
}

.visual-gauge .visual-bar span {
  width: var(--percent, 0%);
}

.visual-cap .visual-bar {
  background: linear-gradient(90deg, var(--card-soft) 0 72%, #f2eee8 72% 100%);
}

.visual-cap .visual-bar::after {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 72%;
  width: 4px;
  border-radius: 4px;
  background: var(--heading);
}

.visual-cap .visual-bar span {
  width: 72%;
  opacity: 0.32;
}

.benefit-visual p {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.how-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.how-block h3,
.how-block h4 {
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.single-program-grid {
  max-width: 760px;
  width: 100%;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -8px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--card-color);
  border-right: 2px solid var(--card-color);
  transform: rotate(45deg);
}

.step-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.step-list p {
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 0;
}

.item-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.item-chip-row strong {
  font-size: 0.84rem;
}

.item-chip-row span {
  border: 1px solid color-mix(in srgb, var(--card-color), white 72%);
  border-radius: 999px;
  background: #fff9ef;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 4px 9px;
}

.quick-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.quick-facts div,
.source-facts div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 8px;
  align-items: start;
}

.quick-facts dt,
.source-facts dt {
  color: var(--heading);
  font-size: 0.84rem;
  font-weight: 800;
}

.quick-facts dd,
.source-facts dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.source-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.source-facts a {
  font-weight: 800;
}

.program-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.program-details summary {
  color: var(--heading);
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.program-details dl {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 6px 10px;
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.program-details dt {
  color: var(--muted);
  font-weight: 700;
}

.program-details dd {
  margin: 0;
}

.empty-message {
  color: var(--muted);
  font-weight: 700;
}

.program-detail {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 10px 14px;
  margin: 24px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.program-detail dt {
  color: var(--muted);
  font-weight: 700;
}

.program-detail dd {
  margin: 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.todo-link {
  color: var(--muted);
  font-weight: 700;
}

.warning-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.warning-list li,
.notice {
  background: #fff9ef;
  border: 1px solid #f3dfb7;
  border-color: #f3dfb7;
  border-radius: 20px;
  padding: 18px 20px;
}

.consult-box p {
  margin-bottom: 6px;
}

.consult-box a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 800;
}

.feedback {
  margin-top: 28px;
}

.feedback p {
  color: var(--muted);
  margin: 10px 0 0;
}

.legal-main {
  max-width: 860px;
}

.legal-section p {
  max-width: 760px;
  color: var(--muted);
}

.not-found-panel {
  max-width: 760px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 20px;
  font-size: 0.88rem;
}

.site-footer p,
.site-footer .footer-links {
  max-width: 1040px;
  margin: 0 auto 8px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--primary-dark);
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .diagnosis-header-right {
    width: 100%;
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 8px;
  }

  main {
    padding-inline: 16px;
  }

  body {
    font-size: 17px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-card,
  .trust-chip-row {
    grid-template-columns: 1fr;
  }

  .hero-card {
    border-radius: 20px;
  }

  .feature-grid,
  .program-grid,
  .program-grid-v2,
  .answer-summary {
    grid-template-columns: 1fr;
  }

  .button-row,
  .form-row {
    align-items: stretch;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .program-card dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .program-detail {
    grid-template-columns: 1fr;
  }

  .program-card dt {
    font-weight: 700;
  }

  .result-main {
    padding-top: 18px;
  }

  .content-section {
    padding: 26px 0;
  }

  .todo-day-group {
    margin-top: 16px;
  }

  .todo-day-label {
    max-width: 100%;
    white-space: normal;
  }

  .todo-list-v2 li {
    grid-template-columns: 40px 1fr;
    padding: 12px;
  }

  .todo-number {
    width: 36px;
    height: 36px;
  }

  .todo-guide-panel {
    border-radius: 14px;
    padding: 12px;
  }

  .guide-block-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .program-card-v2 {
    border-radius: 20px;
    padding: 16px;
    gap: 12px;
  }

  .program-card-v2 h2,
  .program-card-v2 h3 {
    font-size: 1.12rem;
  }

  .program-card-v2 h2 em,
  .program-card-v2 h3 em {
    font-size: 1.65em;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .step-list li:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 12px;
    bottom: -9px;
    transform: rotate(135deg);
  }

  .quick-facts div,
  .source-facts div,
  .program-details dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .question-panel {
    padding: 22px 16px;
    border-radius: 20px;
  }
}

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --muted: #333;
    --line: #aaa;
  }

  body {
    font-size: 11pt;
  }

  .no-print,
  .site-header {
    display: none !important;
  }

  main,
  .result-main {
    max-width: none;
    padding: 0;
  }

  .content-section {
    padding: 12pt 0;
    break-inside: avoid;
  }

  .program-grid,
  .program-grid-v2,
  .answer-summary {
    grid-template-columns: 1fr 1fr;
  }

  .program-card,
  .program-card-v2,
  .notice,
  .consult-box,
  .todo-day-group,
  .todo-list-v2 li {
    break-inside: avoid;
    padding: 10pt;
  }

  .todo-day-label {
    border: 1px solid #aaa;
    background: #fff;
    color: #000;
  }

  .program-details,
  .todo-guide,
  .program-details dl {
    display: block;
  }

  .todo-guide-panel {
    display: block;
  }

  .program-details:not([open]) > summary ~ * {
    display: block;
  }

  .todo-guide:not([open]) > summary ~ *,
  .todo-guide:not([open]) .todo-guide-panel {
    display: block;
  }

  .program-details summary,
  .todo-guide summary {
    list-style: none;
  }

  .program-details summary::marker,
  .program-details summary::-webkit-details-marker,
  .todo-guide summary::marker,
  .todo-guide summary::-webkit-details-marker {
    display: none;
  }

  .guide-block {
    margin-top: 8pt;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}
