:root {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  color: #111; background: #f4f4f4; font-synthesis: none;
  --orange: #a94c0c; --line: #d6d6d6; --gray: #595959;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); line-height: 1.45; letter-spacing: -.035em; }
h2 { font-size: 1.4rem; line-height: 1.6; }
h3 { font-size: 1.125rem; line-height: 1.65; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, fieldset { border-radius: 0; box-shadow: none; }
img { display: block; max-width: 100%; object-fit: contain; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.skip { position: fixed; left: 1rem; top: .5rem; padding: .75rem; background: #fff; border: 2px solid #111; z-index: 5; }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; padding: 0; border: 0; }
.shell { max-width: 1160px; margin: auto; padding: 0 2.5rem; background: #fff; min-height: 100vh; }
.sample-banner { background: #111; color: #fff; font-size: .875rem; }
.sample-banner > div { max-width: 1160px; margin: auto; padding: .65rem 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.sample-banner strong { color: #ffb16b; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-bottom: 2px solid #111; }
.brand { text-decoration: none; }
.brand span { display: block; font-size: .875rem; letter-spacing: .15em; font-weight: 700; }
.brand strong { font-size: 1.125rem; }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.demo-note { color: var(--gray); font-size: .875rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
main { padding: 2rem 0 3.5rem; }
.intro { display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: 2rem; margin-bottom: 1.8rem; }
.mascot { width: 210px; height: 230px; }
.eyebrow { color: var(--orange); font-size: .875rem; font-weight: 700; margin-bottom: .5rem; }
.date-label { color: var(--gray); font-size: .875rem; margin-top: .4rem; }
.theme-number { font-size: .875rem; margin-top: 1.25rem; font-weight: 700; }
.theme-title { margin: .2rem 0 .6rem; }
.muted, .small, .fact { color: var(--gray); }
.small { font-size: .875rem; }
.page-reason { margin: .8rem 0; max-width: 46rem; }
.fixed-note { margin: 1rem 0; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); margin-top: 1.6rem; row-gap: 2rem; }
.product { min-width: 0; border: 1px solid var(--line); border-left: 0; display: flex; flex-direction: column; }
.product-top { padding: .6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--line); }
.product-index { font-weight: 700; font-size: 1.125rem; }
.storage { font-size: .875rem; }
.product-photo { aspect-ratio: 1.35; display: flex; align-items: center; justify-content: center; padding: .75rem; background: #fff; border-bottom: 1px solid var(--line); }
.product-photo img { width: 100%; height: 100%; min-height: 0; }
.no-photo { color: var(--gray); font-size: .875rem; background: #f4f4f4; width: 100%; height: 100%; display: grid; place-items: center; }
.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.fact { margin-top: .5rem; font-size: .9375rem; }
.price { margin: 1rem 0; font-size: .875rem; }
.price strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; line-height: 1.3; }
.price span { margin-right: .3rem; }
.donation { margin-top: auto; }
.availability { font-size: .875rem; padding-bottom: .35rem; }
.closed { font-weight: 700; }
[data-donation] { width: 100%; padding: .7rem; min-height: 48px; border: 1px solid #c3c3c3; color: #595959; background: #eee; font-weight: 700; }
a[data-donation] { display: block; text-align: center; text-decoration: none; }
a[data-donation][aria-disabled="false"] { color: #fff; background: #222; border-color: #222; }
.donation .small { margin-top: .5rem; }
.section-link { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; padding: 1rem 0; min-height: 44px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; padding: .8rem 1.25rem; min-height: 50px; border: 1px solid #111; text-decoration: none; text-align: center; font-weight: 700; line-height: 1.6; }
.primary { color: #fff; background: #111; }
.primary:hover { background: var(--orange); border-color: var(--orange); }
.secondary { color: #111; background: #fff; }
.secondary:hover { background: #f4f4f4; }
.consult { margin-top: 2.5rem; border-block: 2px solid #111; padding: 1.7rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.consult p:not(.eyebrow) { color: var(--gray); margin-top: .35rem; }
.consult .primary { flex-shrink: 0; }
.section { margin-top: 3rem; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; padding-bottom: .8rem; border-bottom: 1px solid #111; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.week li { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 1rem; }
.week li:first-child { border-left: 1px solid var(--line); }
.week .current { border-top: 3px solid var(--orange); padding-top: calc(1rem - 3px); }
.day { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; font-weight: 700; }
.day span { font-size: .875rem; font-weight: 400; }
.week a { display: flex; flex-direction: column; gap: .4rem; margin-top: .8rem; text-decoration: none; font-size: .9375rem; }
.week a:hover, .tags a:hover, .theme-links a:hover { color: var(--orange); }
.week a > span:last-child { align-self: end; }
.week-state { margin-top: .8rem; color: var(--gray); font-size: .9375rem; }
.tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.tags a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-decoration: none; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1rem; font-size: .875rem; }
.theme-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.theme-links a > span:nth-child(2) { flex: 1; }
.ask-app { margin-top: 2rem; }
.ask-app form { max-width: 42rem; }
.question-progress { color: var(--orange); font-size: .875rem; font-weight: 700; margin-bottom: .75rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.5; margin-bottom: 1.25rem; }
.options { display: grid; gap: .65rem; }
.option { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid #b0b0b0; cursor: pointer; min-height: 56px; }
.option:has(input:checked) { border: 2px solid var(--orange); padding: calc(.9rem - 1px) calc(1rem - 1px); background: #fafafa; }
.option input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: var(--orange); margin: 0; }
.option small { display: block; color: var(--gray); font-size: .875rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.form-actions > * { flex: 1; }
.answers { margin: 1.5rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.answers > div { padding: 1rem; border-bottom: 1px solid var(--line); }
.answers dt { font-size: .875rem; color: var(--gray); }
.answers dd { margin: .25rem 0 0; font-weight: 700; }
.result-explanation { background: #f4f4f4; border-left: 3px solid var(--orange); padding: 1.25rem; }
.result-explanation p + p { margin-top: .6rem; }
.match { font-size: .875rem; font-weight: 700; margin-bottom: .6rem; }
.alternative { color: var(--orange); }
.differences { margin: 0 0 1rem; border-left: 2px solid var(--orange); padding-left: .75rem; font-size: .875rem; }
.differences p { font-weight: 700; }
.differences ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.not-found { padding: 2rem 0 4rem; }
.not-found p, .not-found .primary { margin-top: 1.25rem; }
footer { border-top: 2px solid #111; padding: 1.75rem 0 2.5rem; font-size: .875rem; }
footer p { margin-top: .6rem; color: var(--gray); }
@media (max-width: 760px) {
  .shell { padding: 0 1.25rem; }
  .sample-banner > div { padding: .6rem 1.25rem; }
  .site-header { padding: 1rem 0; gap: .5rem; }
  nav { gap: 1.2rem; }
  main { padding-top: 1.5rem; }
  .intro { grid-template-columns: minmax(0, 1fr) 90px; gap: .5rem; align-items: start; }
  .intro > div { display: contents; }
  .intro .eyebrow, .intro h1, .intro .date-label { grid-column: 1; }
  .intro .mascot { grid-column: 2; grid-row: 1 / 4; width: 90px; height: 130px; }
  .intro .theme-number, .intro .theme-title, .intro p:not(.eyebrow):not(.date-label) { grid-column: 1 / -1; }
  .theme-number { margin-top: .75rem; }
  .products { grid-template-columns: 1fr; }
  .product-photo { aspect-ratio: 1.45; }
  .consult { flex-direction: column; align-items: stretch; }
  .week { grid-template-columns: 1fr; }
  .week li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); align-items: center; gap: 1rem; border-right: 0; padding: 1rem 0; }
  .week li:first-child { border-left: 0; }
  .week .current { border-top: 0; border-left: 3px solid var(--orange); padding: 1rem 0 1rem .75rem; }
  .day { flex-direction: column; align-items: flex-start; gap: 0; }
  .week a { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .75rem; }
  .week a > .small { grid-column: 1; }
  .week a > span:nth-child(2) { grid-column: 1; }
  .week a > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .week-state { margin-top: 0; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answers > div { padding: .8rem .5rem; }
  .theme-links a { flex-wrap: wrap; gap: .3rem .8rem; }
  .theme-links a > .small { flex-basis: 100%; }
  .form-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

.municipalities { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.municipalities a { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #ddd; padding: 16px; }
.municipalities img { display: block; width: 100%; max-width: 300px; height: 100px; object-fit: contain; }

/* KYUSAN13: square speech panels, approved contain-only poses, device fonts. */
.ask-bubble { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; max-width: 46rem; }
.ask-bubble img, .question-pose { width: 72px; height: 90px; flex: 0 0 auto; object-fit: contain; }
.ask-bubble > div { border-left: 3px solid var(--orange); padding: .75rem 1rem; background: #f4f4f4; min-width: 0; }
.speaker { display: block; color: var(--orange); font-size: .8125rem; font-weight: 700; }
.ask-app legend { width: 100%; }
.question-pose { float: left; margin: .25rem .75rem .25rem 0; }
.question-voice { display: block; border-left: 3px solid var(--orange); padding: .75rem; background: #f4f4f4; overflow: hidden; }
.question-voice > span { display: block; }
.question-preface { font-size: 1rem; font-weight: 400; margin: .2rem 0 .6rem; }
.pick-line, .fitting { margin-top: 1rem; }
.pick-line { border-left: 3px solid var(--orange); padding-left: .75rem; }
.pick-line h4, .fitting h4 { font-size: .875rem; margin: 0 0 .4rem; }
.fitting ul { padding-left: 1.25rem; margin: 0; font-size: .875rem; }
.ask-closing { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; }
.ask-closing p { font-weight: 700; }
.ask-closing a { display: inline-block; padding: .75rem 1rem .75rem 0; }

/* Ask v2: equal entrances and editable conditions, without shadows or round corners. */
.ask-entries { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: 1.5rem 0 .75rem; max-width: 46rem; }
.ask-entries button { min-height: 92px; min-width: 0; background: #fff; border: 1px solid #777; color: #111; padding: .8rem .65rem; text-align: left; cursor: pointer; }
.ask-entries button[aria-pressed=true] { border: 2px solid var(--orange); padding: calc(.8rem - 1px) calc(.65rem - 1px); }
.ask-entries span { display: block; font-weight: 700; }
.ask-entries small { display: block; color: var(--gray); font-size: .75rem; margin-top: .2rem; }
.ask-privacy { max-width: 46rem; color: var(--gray); }
.lane-number { color: var(--orange); display: inline-block; margin-right: .8rem; font-size: .85rem; }
.ask-text-form { margin-top: 1.2rem; }
.ask-text-form > label { display: block; font-weight: 700; margin-bottom: .6rem; }
.ask-text-row { display: flex; gap: .5rem; }
.ask-text-row input { min-width: 0; width: 100%; border: 1px solid #777; padding: .8rem; font: inherit; font-size: 1rem; background: #fff; color: #111; }
.ask-text-row button { flex: 0 0 auto; }
.ask-input-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--gray); margin-top: .6rem; }
.ask-input-meta [data-length] { flex: 0 0 auto; }
.ask-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 1.5rem; }
.condition-chip { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-height: 70px; max-width: 100%; background: #fff; border: 1px solid #777; padding: .65rem .8rem; cursor: pointer; text-align: left; font: inherit; }
.condition-chip small { color: var(--gray); font-size: .75rem; }
.condition-chip > span:last-child { color: var(--orange); font-size: .75rem; }
.ask-fallback { border-left: 3px solid var(--orange); background: #f4f4f4; padding: 1rem; margin-bottom: 1.5rem; }
.ask-thinking .ask-bubble > div > p:last-child { animation: ask-pulse 1.2s ease-in-out infinite; }
@keyframes ask-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .ask-thinking .ask-bubble > div > p:last-child { animation: none; } }
.ask-faq { max-width: 46rem; border-top: 2px solid #111; padding-top: 1.5rem; }
.ask-faq details { border-bottom: 1px solid #b0b0b0; padding: 1rem 0; }
.ask-faq summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.ask-faq details p { margin: .6rem 0; }
.ask-faq details a { font-size: .875rem; display: inline-block; min-height: 44px; }
