@import url("fonts.css");
@import url("interactions.css");
:root { color-scheme: light; font-family: Nunito, Arial, sans-serif; color: #26243c; background: #ddf5ff; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #26243c; outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 10; padding: 14px 20px; background: #ffde17; color: #26243c; font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.preview-toolbar { min-height: 76px; padding: 14px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: #fff; border-bottom: 1px solid #ddd; }
.preview-brand { font-family: Fredoka, "Arial Rounded MT Bold", sans-serif; font-size: 28px; font-weight: 600; color: #4933b8; text-decoration: none; margin-right: auto; }
.preview-brand img { display: block; width: 168px; height: auto; }
.page-picker { display: flex; align-items: center; gap: 8px; font-size: 14px; }
select { min-height: 44px; border: 1px solid #8a8494; padding: 8px; border-radius: 10px; background: #fff9ef; color: #26243c; }
.viewport-controls { display: flex; gap: 4px; border: 0; padding: 4px; margin: 0; background: #efeff7; border-radius: 12px; }
.viewport-controls button { border: 0; padding: 10px 12px; border-radius: 8px; background: transparent; color: #26243c; font-size: 14px; min-height: 44px; }
.viewport-controls button[aria-pressed=true] { background: #4933b8; color: #fff; }
.preview-toolbar > a:not(.preview-brand) { font-size: 14px; font-weight: 700; text-underline-offset: 4px; padding: 12px 0; min-height: 44px; }
.concept-notice { background: #4933b8; color: #fff; text-align: center; padding: 10px 20px; font-size: 14px; line-height: 1.6; }
.concept-notice span { color: #e3e1f3; }
#preview { margin: 24px auto; width: min(100% - 32px, 1440px); position: relative; box-shadow: 0 12px 55px #202a4412; }
#preview[data-mode=mobile] { max-width: 390px; }
#preview[data-mode=desktop] { width: 1440px; max-width: none; }
#artboard > svg { width: 100%; height: auto; display: block; }
#artboard svg a { cursor: pointer; }
#artboard svg a:focus-visible { outline: 3px solid #26243c; outline-offset: 4px; filter: drop-shadow(0 0 2px white); }
#contact-info { scroll-margin-top: 24px; }
#load-status { text-align: center; font-size: 14px; }
#calendar-overlay { position: absolute; display: flex; flex-direction: column; background: #fff9ed; border-radius: 28px; overflow: hidden; border: 2px solid #4933b8; box-shadow: 0 4px 0 #26243c20; }
#calendar-overlay[hidden] { display: none; }
#calendar-overlay iframe { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #fff9ed; }
.calendar-heading { padding: 20px 24px; background: #91e1ba; border-bottom: 1px solid #8a8494; }
.calendar-heading h2 { margin: 0; font: 600 28px/1.3 Fredoka,sans-serif; color: #4933b8; }
.calendar-heading p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; }
dialog { border: 1px solid #ddd; border-radius: 24px; padding: 26px; width: min(480px, calc(100% - 32px)); color: #202a44; background: #fff9ef; }
dialog::backdrop { background: #202a4477; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-heading strong { font-family: Fredoka, "Arial Rounded MT Bold", sans-serif; font-size: 24px; font-weight: 600; }
.dialog-heading button { background: #fff; border: 1px solid #ddd; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; flex-shrink: 0; }
dialog p { line-height: 1.65; color: #586078; }
dialog nav { display: grid; gap: 6px; margin-top: 20px; }
dialog nav a { min-height: 46px; padding: 14px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
dialog nav a:hover { background: #ded7fa; }
.primary { display: inline-block; border: 0; background: #4055d8; border-radius: 24px; color: #fff; padding: 14px 20px; min-height: 48px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#gallery-overlay { position: absolute; padding: 24px; border: 2px solid #4933b8; border-radius: 28px; background: linear-gradient(135deg,#fff0b7,#fff9ed 65%); font-size: 16px; }
#gallery-overlay h2 { font: 600 28px/1.27 Fredoka, sans-serif; margin: 0; color: #4933b8; }
.gallery-heading { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 22px; background: #ddf5ff; margin-bottom: 20px; }
.gallery-heading > div:first-child { flex: 1; min-width: 0; }
.gallery-mascot { width: 84px; flex: 0 0 84px; }
.gallery-mascot svg { display: block; width: 100%; }
.gallery-intro { line-height: 1.55; margin: 12px 0 0; }
.gallery-filters { display: flex; gap: 10px; overflow-x: auto; padding: 8px; }
.gallery-filter { flex-shrink: 0; min-height: 44px; padding: 10px 14px; border: 1px solid #4933b8; border-radius: 24px; background: #fff0b7; color: #26243c; font-weight: 700; }
.gallery-filter:nth-child(even) { background: #ffabd5; }
.gallery-filter[aria-pressed=true] { background: #4933b8; color: white; }
.gallery-status { font-size: 14px; line-height: 1.55; margin: 16px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gallery-photo { min-width: 0; padding: 0; border: 2px solid #4933b8; border-radius: 22px; background: #91e1ba; color: #26243c; overflow: hidden; text-align: left; box-shadow: 0 4px 0 #26243c20; }
.gallery-photo:nth-child(6n+2) { background: #ffabd5; }
.gallery-photo:nth-child(6n+3) { background: #c4acff; }
.gallery-photo:nth-child(6n+4) { background: #ffc192; }
.gallery-photo:nth-child(6n+5) { background: #ddf5ff; }
.gallery-photo:nth-child(6n+6) { background: #ffd448; }
.gallery-image-frame { display: grid; aspect-ratio: 4/3; margin: 8px 8px 0; border-radius: 14px; overflow: hidden; background: #fff; }
.gallery-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-image-error { align-self: center; padding: 12px; font-size: 14px; }
.gallery-caption { display: grid; gap: 6px; padding: 14px; }
.gallery-caption strong { font-size: 16px; line-height: 1.4; }
.gallery-caption > span { width: fit-content; max-width: 100%; padding: 4px 9px; border-radius: 14px; background: #ffffffc9; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.gallery-pagination,.photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; font-size: 14px; }
.gallery-pagination button,.photo-controls button { min-width: 64px; min-height: 44px; padding: 10px 14px; border: 1px solid #26243c; border-radius: 16px; background: #ffde17; color: #26243c; font-weight: 700; }
.gallery-pagination button:disabled { background: #efeff7; color: #49445e; cursor: default; }
.gallery-pagination[hidden] { display: none; }
.gallery-empty { grid-column: 1/-1; line-height: 1.55; }
#gallery-overlay[data-mode=mobile] { padding: 16px; }
#gallery-overlay[data-mode=mobile] .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#gallery-overlay[data-mode=mobile] h2 { font-size: 25px; }
#gallery-overlay[data-mode=mobile] .gallery-heading { padding: 12px; gap: 8px; }
#gallery-overlay[data-mode=mobile] .gallery-mascot { width: 64px; flex-basis: 64px; }
#photo-dialog { width: min(940px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
#photo-full { display: block; width: 100%; max-height: 64dvh; object-fit: contain; margin-top: 20px; border-radius: 16px; }
#photo-error { padding: 12px; background: #fff0b7; }
#game-overlay { position: absolute; padding: 24px; border: 1px solid #8a8494; border-radius: 28px; background: #fff0b7; }
.runaway-status { min-height: 76px; margin: 16px 0 0; font: 600 25px/1.4 Fredoka, sans-serif; }
.runaway-stage { height: 260px; position: relative; overflow: hidden; border-radius: 22px; background: #ddf5ff; }
.runaway-button { position: absolute; top: 0; left: 0; width: min(390px,calc(100% - 32px)); min-height: 88px; padding: 16px 24px; display: flex; align-items: center; justify-content: center; text-align: center; background: #ffde17; border: 2px solid #26243c; border-radius: 24px; font-size: 16px; font-weight: 800; line-height: 1.5; text-decoration: none; transition: transform 140ms ease-out; }
.content-panel { position: absolute; font-size: 16px; line-height: 1.65; }
.content-panel h2 { font: 600 28px/1.3 Fredoka,sans-serif; margin: 0 0 16px; }
.content-panel h3 { font: 600 21px/1.35 Fredoka,sans-serif; margin: 0; }
.content-panel p { margin: 12px 0 20px; }
.content-panel :is(p, h2, h3) { overflow-wrap: anywhere; }
.content-panel a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.panel-kicker { font-size: 14px; font-weight: 800; color: #4933b8; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 20px 0; }
.panel-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.panel-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid #26243c; border-radius: 24px; background: #ffde17; color: #26243c; font-weight: 800; text-align: center; text-decoration: none; }
.panel-button:disabled { cursor: wait; background: #efeff7; }
.panel-button[hidden] { display: none; }
.read-more, .booking-disclosure { margin-top: 20px; }
.read-more summary { cursor: pointer; min-height: 44px; width: fit-content; padding: 9px 16px; border: 1px solid #4933b8; border-radius: 16px; background: #fff; color: #4933b8; font-weight: 800; }
.read-more summary:hover { background: #fff0b7; }
.read-more[open] { border-left: 3px solid #4933b8; padding-left: 16px; }
.read-more p { margin-bottom: 0; }
.kumon-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; margin-top: 24px; }
.kumon-method, .kumon-profile, .kumon-fees, .kumon-times, .kumon-booking { padding: 28px; border: 1px solid #8a8494; border-radius: 28px; background: #fff; }
.kumon-method, .kumon-times { display: flex; flex-direction: column; }
.kumon-method { background: #91e1ba; }
.kumon-profile { display: grid; grid-template-columns: minmax(160px,220px) minmax(0,1fr); align-items: center; gap: 28px; background: #ddf5ff; }
.kumon-profile-copy { min-width: 0; }
.kumon-profile-copy .panel-actions { margin-bottom: 0; }
.instructor-portrait { width: min(100%,230px); margin: 0 auto; }
.instructor-portrait svg { display: block; width: 100%; }
.kumon-fees, .kumon-booking { margin-top: 24px; }
.kumon-fees { background: #fff0b7; }
.fee-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.fee-card { border: 1px solid #8a8494; border-radius: 18px; padding: 20px; background: #fff; }
.fee-card p { margin-bottom: 0; font-weight: 800; }
.kumon-times { background: #c4acff; }
.kumon-times .study-duration { margin-top: 36px; }
.kumon-timetables { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 16px; }
.timetable-block { min-width: 0; padding: 12px; border: 2px solid #4933b8; border-radius: 18px; }
.timetable-classes { background: #fff0b7; }
.timetable-office { background: #ddf5ff; border-color: #49445e; }
.kumon-timetable { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.kumon-timetable caption { text-align: left; font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.timetable-purpose { display: block; min-height: 42px; margin-top: 6px; font-size: 14px; font-weight: 400; }
.kumon-timetable th, .kumon-timetable td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #8a8494; }
.kumon-timetable thead th { background: #4933b8; color: #fff; font-weight: 800; border-bottom: 2px solid #26243c; }
.kumon-timetable th:first-child { width: 48%; }
.kumon-timetable tbody th { font-weight: 700; }
.kumon-timetable td { white-space: nowrap; }
.kumon-source-note, .booking-notice { padding: 16px 20px; border-left: 4px solid #4933b8; border-radius: 16px; background: #fff9ed; }
.kumon-source-note { margin-top: 24px; background: #fff0b7; }
.kumon-booking { background: #ffabd5; }
.kumon-booking .panel-button { min-height: 52px; padding: 12px 20px; border-color: #4933b8; border-radius: 26px; background: #4933b8; color: #fff; font-weight: 700; line-height: 1.5; cursor: pointer; }
.kumon-booking .booking-disclosure summary { width: min(100%,420px); margin: 0 auto; list-style: none; }
.booking-disclosure summary::-webkit-details-marker { display: none; }
.kumon-booking-frame { display: block; width: 100%; height: 1000px; margin: 20px 0; border: 1px solid #8a8494; border-radius: 16px; background: #fff; }
.kumon-booking > .panel-button { display: flex; width: min(100%,420px); margin: 0 auto; }
.kumon-booking .booking-or { display: flex; align-items: center; gap: 16px; margin: 20px 0; font-weight: 800; }
.booking-or::before, .booking-or::after { content: ""; flex: 1; border-top: 1px solid #8a8494; }
.source-credit { display: block; margin-top: 20px; font-size: 14px; line-height: 1.6; }
#reviews-overlay { padding: 24px; border: 1px solid #8a8494; border-radius: 28px; background: #fff; }
.review-status { font-size: 14px; }
.review-track { padding: 16px; }
.review-card { position: relative; display: flex; flex-direction: column; min-height: 300px; width: min(100%,760px); margin: 0 auto; padding: 24px; border: 2px solid #4933b8; border-radius: 24px; background: var(--review-colour,#fff9ed); box-shadow: 0 5px 0 #26243c20; transition: transform 240ms ease-out; }
.review-card::before { content: ""; position: absolute; top: -8px; right: 24px; width: 60px; height: 18px; background: #ffd448; opacity: .85; transform: rotate(7deg); }
.review-card > a:last-child { margin-top: auto; padding-top: 12px; min-height: 44px; }
.review-card.is-entering { animation: review-arrival 600ms ease-out 1; }
@keyframes review-arrival { 0% { transform: translateY(6px) rotate(-2deg); opacity: .65; } 65% { transform: translateY(-2px) rotate(1deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (hover: hover) { .review-card:hover { transform: translateY(-2px) rotate(.6deg); } }
.review-carousel-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 16px; }
.review-carousel-controls[hidden] { display: none; }
.review-control { min-width: 0; min-height: 44px; padding: 10px 12px; background: #4933b8; border-color: #4933b8; color: #fff; font-size: 14px; }
.review-control:first-child { justify-self: start; }
.review-control:last-child { justify-self: end; }
.review-position { font-size: 14px; font-weight: 800; white-space: nowrap; }
.review-stars { display: inline-flex; margin-top: 10px; }
.review-stars svg { display: block; width: 120px; height: 24px; }
.review-author { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.review-author img { width: 44px; height: 44px; border-radius: 50%; }
.review-score { font-weight: 800; }
.review-text { white-space: pre-wrap; }
.maps-attribution { display: block; font-family: Nunito,Arial,sans-serif; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; white-space: nowrap; color: #5e5e5e; }
.maps-attribution[hidden] { display: none; }
#story-overlay { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: start; }
.story-chapter { padding: 28px; border: 1px solid #8a8494; border-radius: 28px; background: #91e1ba; }
.story-chapter:nth-child(2) { background: #fff0b7; }
.story-chapter:nth-child(3) { background: #ffabd5; }
.story-chapter h2 { margin-top: 18px; font-size: 25px; }
.content-panel[hidden] { display: none !important; }
.content-panel[data-mode=mobile] :is(.kumon-intro, .kumon-profile, .fee-grid), #story-overlay[data-mode=mobile] { grid-template-columns: 1fr; }
.content-panel[data-mode=mobile] :is(.kumon-method, .kumon-profile, .kumon-fees, .kumon-times, .kumon-booking) { padding: 20px; }
.content-panel[data-mode=mobile] .instructor-portrait { max-width: 190px; }
.content-panel[data-mode=mobile] .review-card { min-height: 360px; padding: 20px; }
.content-panel[data-mode=mobile] .kumon-booking-frame { width: calc(100% + 16px); margin-left: -8px; margin-right: -8px; }
@media (max-width: 700px) {
  .preview-toolbar { padding: 12px 16px; gap: 12px; }
  .preview-brand { font-size: 25px; }
  .preview-brand img { width: 148px; }
  .page-picker { margin-left: auto; }
  .viewport-controls { width: 100%; justify-content: center; order: 4; }
  .preview-toolbar > a:not(.preview-brand) { font-size: 14px; }
  .concept-notice span { display: none; }
  #preview { width: 100%; margin-top: 0; }
  #preview[data-mode=mobile] { width: min(100%, 390px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } .runaway-button { transition: none; } .review-card { animation: none !important; transform: none !important; transition: none; } }
