html, body { background: #fbf7f0; }
#korekara-guide .guide-examples { width: min(740px, calc(100% - 40px)); margin: 36px auto; }
#korekara-guide .sample { margin: 28px 0; padding: clamp(20px,4vw,40px); background: #fff; border: 1px solid var(--line); border-radius: 24px; }
#korekara-guide .sample p + p, #korekara-guide .start p + p { margin-top: 14px; }
#korekara-guide .kicker { font-weight: 650; color: var(--brown); font-size: .9rem; }
#korekara-guide .start .btn { margin: 16px 0 8px; }
#korekara-guide .answer-time, #korekara-guide .note { display: block; font-size: .9rem; color: var(--soft); }
#korekara-guide .invite-entry { color: var(--brown); text-decoration: underline; text-underline-offset: .2em; }
#korekara-guide .diagnosis-info { margin-top: 16px; padding: 14px 18px; border-left: 3px solid #c48a58; background: #fff2df; }
#korekara-guide .diagnosis-info p { font-size: .92rem; margin: .4em 0; }
.phrase { display: inline-block; white-space: nowrap; }
#korekara-guide h1, #korekara-guide h2, #korekara-survey h1, #korekara-survey h2 { line-break: strict; text-wrap: balance; }
#korekara-survey .hero { background: linear-gradient(135deg,#fff6e9,#f5e8d0 50%,#eef2e5); }
#korekara-survey .card button:not(.alt) { background: #e89b5b; border-color: #e89b5b; color: #3b2919; border-radius: 999px; font-weight: 700; }
#korekara-survey .card label:has(> input[type=checkbox]:checked) { background: #fff0dd; border-color: #a45b27; }
#korekara-survey .card input { accent-color: #975623; }
#korekara-survey .house-field .follow-up { flex-basis:100%; }
#korekara-survey #card { scroll-margin-top: 100px; }
#korekara-survey a { text-decoration: underline; text-underline-offset: .15em; }
body[data-page="korekara-questions"] [hidden] { display:none !important; }
@media (max-width: 720px) { #korekara-survey #card { scroll-margin-top: 86px; } }
@media print { .site-header,.site-footer,.breadcrumb,.contact-cta,.leaf-pointer { display:none!important; } }
.invite-card { display: grid; gap: .45rem; margin: .8rem 0; padding: 1rem; border: 1px solid #e8ddc8; border-radius: 12px; background: #fbf7f0; }
.invite-card code { font-size: 1.05em; overflow-wrap: anywhere; }
.invite-card button { justify-self: start; }
.invite-card textarea { width: 100%; font: inherit; }
.controls [role=status]:empty { display: none; }

#korekara-survey .hero > div {
  container-type: inline-size;
  min-width: 0;
}
#korekara-guide .hero h1, #korekara-survey .hero h1 {
  white-space: nowrap;
  text-wrap: nowrap;
  letter-spacing: .015em;
  font-size: min(2.875rem, 8.55cqi);
}
#korekara-survey .hero h1 { font-size: min(2.25rem, 8.55cqi); }
#korekara-survey .hero h1 em { color: var(--deep-orange, #a45b27); font-style: normal; }
#korekara-survey .reading-run { min-width: 0; line-break: strict; }
#korekara-survey .reading-unit {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
  overflow-wrap: anywhere;
}
#korekara-survey .card label:has(> input[type="text"]),
#korekara-survey .card label:has(> input[type="number"]) { flex-wrap: wrap; }
#korekara-survey .card label > input[type="text"] { flex: 1 1 10em; }
#korekara-survey .card label > input[type="number"] { flex-shrink: 0; }

@media (max-width: 540px) {
  #korekara-survey .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 29%;
    padding-top: 14px;
    container-type: inline-size;
  }
  #korekara-survey .hero > div { display: contents; }
  #korekara-survey .hero :is(small, h1) { grid-column: 1 / -1; margin-inline: 16px; }
  #korekara-survey .hero h1 { font-size: min(2rem, 7.6cqi); }
  #korekara-survey .hero p { align-self: center; margin: 4px 12px 14px 16px; }
  #korekara-survey .hero .hero-image { width: 100%; height: 100%; min-height: 0; }
}
