/* =====================================================================
   Starbox (スターボックス) — site styles
   Calm playful look: blue + beige, bunny + star motifs, wavy dividers,
   chunky rounded stickers. AA-minded contrast throughout.
   ===================================================================== */

:root{
    /* CALM palette — blue + beige, with a few small warm accents.
       (Toned down from the multi-colour poster version per Satomi's note.) */
    --blue:#679ada;              /* primary accent            */
    --blue-band:#4a7cc0;         /* strong blue band fill      */
    --blue-deep:#2f5da3;         /* headings/figures on beige  */

    /* retained accents (used sparingly): gold star, red CTA/notice, green shamrock */
    --gold:#f0b21e;
    --red:#da5050;
    --green:#4faa2b;
    /* legacy aliases so any stray references stay in-palette */
    --yellow:var(--gold);
    --yellow-dk:#d89a12;
    --red-band:#cf4646;
    --green-band:#3e8a20;

    --cream:#fff5e1;
    --cream-2:#fbe8c6;
    --ink:#3b2b23;
    --ink-soft:#5c483d;
    --white:#fffdf8;

    --radius:26px;
    --shadow:0 8px 0 rgba(59,43,35,.10), 0 18px 30px rgba(59,43,35,.16);

    /* wavy section divider (solid bottom, scalloped top) */
    --wave:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,60 L0,32 C120,4 240,4 360,26 C480,48 600,48 720,26 C840,4 960,4 1080,26 C1140,37 1170,37 1200,30 L1200,60 Z' fill='black'/%3E%3C/svg%3E");
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
    font-family:'Zen Maru Gothic', system-ui, -apple-system, sans-serif;
    color:var(--ink);
    background:var(--cream);
    line-height:1.85;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
}
.page{position:relative; overflow-x:hidden;}
img{max-width:100%; height:auto; display:block;}
a{color:#3f6fb0; text-decoration:none;}
a:hover{text-decoration:underline;}
h1,h2,h3,h4{font-family:'Zen Maru Gothic',sans-serif;}

/* ---------- chunky buttons ---------- */
.btn{
    display:inline-block;
    font-family:'Fredoka','Zen Maru Gothic',sans-serif;
    font-weight:700;
    font-size:1.2rem;              /* large-text threshold -> 3:1 AA ok */
    line-height:1.2;
    color:var(--ink);
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:999px;
    padding:.55em 1.4em;
    box-shadow:0 5px 0 var(--ink);
    cursor:pointer;
    transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{transform:translateY(-2px) rotate(-1.5deg); box-shadow:0 7px 0 var(--ink); text-decoration:none;}
.btn:active{transform:translateY(3px); box-shadow:0 2px 0 var(--ink);}
.btn-red{background:var(--red);}
.btn-blue{background:var(--blue);}
.btn-green{background:var(--green);}
.btn-yellow{background:var(--yellow);}
.btn-sm{font-size:.95rem; padding:.35em .95em; box-shadow:0 4px 0 var(--ink);}
/* each button leans its own way on hover instead of all sharing one angle */
.hero-cta .btn:nth-child(1):hover{transform:translateY(-2px) rotate(-3deg);}
.hero-cta .btn:nth-child(2):hover{transform:translateY(-3px) rotate(2.5deg);}
.instructor-name .btn:hover{transform:translateY(-2px) rotate(3deg); background:var(--yellow);}
.field-submit .btn:hover{transform:translateY(-2px) rotate(-2.5deg); background:var(--yellow);}

/* ---------- decorative twinkling stars ---------- */
.deco-star{
    position:absolute;
    width:34px; height:34px;
    background:var(--yellow);
    clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
    filter:drop-shadow(0 3px 0 rgba(0,0,0,.15));
    animation:twinkle 3.6s ease-in-out infinite;
    z-index:1;
}
.deco-star.s1{top:18px;  left:8%;  width:26px; height:26px; animation-delay:.2s;}
.deco-star.s2{top:60px;  right:12%; width:40px; height:40px; animation-delay:1s;}
.deco-star.s3{bottom:92px; left:14%; width:22px; height:22px; animation-delay:1.8s;}
@keyframes twinkle{0%,100%{transform:scale(1) rotate(0);opacity:.9}50%{transform:scale(1.18) rotate(14deg);opacity:1}}

/* ---------- bunny mascot ---------- */
.bunny{
    background:url('/images/bunny.png') center/contain no-repeat;
    width:122px; height:152px;
    animation:float 4.2s ease-in-out infinite;
}
@keyframes float{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-14px) rotate(3deg)}}
.hero-bunny{position:absolute; right:max(2%,calc(50% - 440px)); bottom:22px; z-index:2;}
/* peek-bunny is a direct child of the band (NOT band-inner) so it renders
   above the section's ::before wave divider; nesting it in band-inner
   trapped it in that stacking context and the wave clipped its head. */
.peek-bunny{
    position:absolute; top:-46px; right:max(10px,calc(50% - 452px));
    width:88px; height:110px; z-index:20;
    transform:rotate(6deg);
}

/* ---------- colour bands + wavy dividers ---------- */
/* bottom padding absorbs the 54px wave divider that the NEXT band dips up into
   this section, so the clear space below content matches the ~70px at top */
.band{position:relative; padding:70px 18px 124px;}
.band::before{
    content:""; position:absolute; left:0; right:0; top:0; height:54px;
    transform:translateY(-99%);
    background:var(--band,var(--cream));
    -webkit-mask-image:var(--wave); mask-image:var(--wave);
    -webkit-mask-size:100% 100%; mask-size:100% 100%;
    -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
    z-index:2;
}
.no-wave::before{display:none;}
.band-blue  {--band:var(--blue-band);  background:var(--blue-band);  color:#fff;}
.band-red   {--band:var(--red-band);   background:var(--red-band);   color:#fff;}
.band-green {--band:var(--green-band); background:var(--green-band); color:#fff;}
.band-yellow{--band:var(--cream-2);    background:var(--cream-2);    color:var(--ink);}
.band-beige {--band:var(--cream-2);    background:var(--cream-2);    color:var(--ink);}
.band-cream {--band:var(--cream);      background:var(--cream);      color:var(--ink);}
.band-inner{max-width:920px; margin:0 auto; position:relative; z-index:3;}

.band-title{
    font-weight:900;
    font-size:clamp(1.85rem,6vw,3rem);
    text-align:center;
    margin:0 0 .15em;
    letter-spacing:.02em;
}
.band-title.on-color{color:#fff;}
.band-title .addr{display:block; font-size:.42em; font-weight:500; opacity:.9; margin-top:.3em;}
.band-lead{text-align:center; font-weight:700; margin:.1em 0 1.4em;}

/* ---------- HERO ---------- */
.hero{
    position:relative; text-align:center; overflow:hidden;
    padding:44px 18px 92px;
    background:
        radial-gradient(circle at 82% 18%, rgba(103,154,218,.34), transparent 48%),
        radial-gradient(circle at 16% 24%, rgba(240,178,30,.20), transparent 44%),
        linear-gradient(180deg,var(--cream),var(--cream-2));
}
.hero-inner{max-width:820px; margin:0 auto; position:relative; z-index:3;}
.hero-logo{width:min(560px,88%); margin:0 auto 12px;}
.hero-sub .nowrap{white-space:nowrap;}
.hero-tagline{font-weight:900; font-size:clamp(1.35rem,5vw,2.15rem); margin:.2em 0 0;}
.hero-sub{font-weight:700; color:var(--ink-soft); margin:.35em 0 1.3em; font-size:clamp(.95rem,3vw,1.15rem);}
.hero-cta{display:flex; gap:14px; justify-content:center; flex-wrap:wrap;}
.hero .hero-menu{margin-top:28px; gap:8px;}
.hero .hero-menu .menu-item a{font-size:.82rem; padding:.38em .9em; border-width:2px;}

/* ---------- sticky poster nav ---------- */
.poster-nav{
    position:sticky; top:0; z-index:50;
    background:var(--white);
    border-bottom:4px solid var(--ink);
    padding:11px 12px;
    box-shadow:0 6px 18px rgba(59,43,35,.14);
}
.menu-list{
    list-style:none; margin:0 auto; padding:0; max-width:920px;
    display:flex; flex-wrap:wrap; gap:10px; justify-content:center;
}
.menu-item a{
    display:block; font-weight:700; font-size:.98rem;
    padding:.5em 1.05em; border-radius:999px;
    border:2.5px solid var(--ink); color:var(--ink); background:var(--cream);
    transition:transform .12s, background .12s;
}
.menu-item a:hover{text-decoration:none; transform:translateY(-2px) rotate(-2deg);}
.menu-item a:hover{background:var(--blue); color:#fff;}
.menu-item:nth-child(1) a:hover{transform:translateY(-2px) rotate(-3.5deg);}
.menu-item:nth-child(2) a:hover{transform:translateY(-3px) rotate(2.5deg);}
.menu-item:nth-child(3) a:hover{transform:translateY(-2px) rotate(-1.5deg);}
.menu-item:nth-child(4) a:hover{transform:translateY(-3px) rotate(3deg);}
.menu-item:nth-child(5) a:hover{transform:translateY(-2px) rotate(-2.5deg);}

/* ---------- white sticker cards ---------- */
.card{
    background:var(--white);
    border:3px solid var(--ink);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:26px 24px;
    margin:0 auto 26px;
    color:var(--ink);
    position:relative;
}
.card:last-child{margin-bottom:0;}
/* flush variant: looks like a normal card (white fill, rounded, drop shadow,
   ink border) but the table fills it edge-to-edge with no padding. The rounded
   border stays on the card; overflow clips the table to the radius, and the
   table's own outer border is removed so the two don't stack (rowspan-safe:
   every left-edge cell is a first-child th). */
.card.card--flush{padding:0; overflow:hidden;}
.card--flush .tbl{margin:0;}
.card--flush .access-tbl td{background:var(--white);}
.card--flush .tbl tr:first-child > *{border-top:none;}
.card--flush .tbl tr:last-child > *{border-bottom:none;}
.card--flush .tbl tr > th:first-child{border-left:none;}
.card--flush .tbl tr > *:last-child{border-right:none;}
.card-title{font-weight:900; font-size:1.4rem; margin:0 0 .55em; color:var(--blue-deep); line-height:1.15;}

/* ---------- 休講 notice sticker ---------- */
.notice-sticker{
    background:#fff4f4;
    border:3px dashed var(--red);
    border-radius:20px;
    padding:18px 24px;
    margin:0 auto 34px;
    max-width:640px;
    box-shadow:var(--shadow);
}
.notice-sticker h4{margin:.1em 0 .5em; color:#b03636; font-weight:900; font-size:1.15rem; line-height:1.15;}
.notice-sticker ul{margin:.2em 0 .6em 1.1em; padding:0;}
.notice-sticker p{margin:.35em 0 0; font-size:.9rem; color:var(--ink-soft);}

/* ---------- dance feature cards ---------- */
.private-intro{text-align:center; font-weight:700; margin:0 0 30px;}
.dance-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:center;}
.dance-card{
    border:4px solid var(--ink);
    border-radius:28px;
    padding:26px 24px 28px;
    box-shadow:var(--shadow);
    background:var(--white);
    color:var(--ink);
    position:relative;
}
.dance-tap  {transform:rotate(-1deg);}
.dance-irish{transform:rotate(1deg);}
.dance-card h3{font-weight:900; font-size:1.7rem; margin:.05em 0; color:var(--blue-deep);}
.dance-card p{font-size:.96rem; margin:.5em 0 0;}
.dance-note{font-weight:700; color:var(--ink-soft); margin:.2em 0 0 !important;}
.dance-icon{
    width:66px; height:66px; border-radius:50%;
    background:var(--blue); border:3px solid var(--ink);
    display:flex; align-items:center; justify-content:center;
    font-size:2.1rem; font-weight:900; line-height:1; color:#fff;
    box-shadow:0 4px 0 rgba(59,43,35,.20);
    margin-bottom:12px;
}
/* the ★ glyph sits low in its own metrics; bottom padding nudges it to optical centre */
.dance-tap .dance-icon{color:var(--gold); padding-bottom:.16em;}
.dance-irish .dance-icon{background:#fff;}          /* white disc so the green shamrock is legible */
.dance-icon img{width:40px; height:40px;}

/* ---------- tables ---------- */
.tbl{width:100%; border-collapse:collapse; margin:0 0 8px; font-size:1rem;}
.tbl th,.tbl td{border:2px solid var(--ink); padding:.65em .85em; text-align:left; vertical-align:middle;}
.tbl th{background:var(--cream-2); font-weight:700;}
.tbl small{font-weight:500; opacity:.78;}
.schedule-days th{background:var(--yellow); text-align:center;}
.schedule-days td{text-align:center; font-weight:700; background:#fff;}
.bullet{margin:.4em 0 0; padding-left:1.3em;}
.bullet li{margin:.3em 0;}
.muted{color:var(--ink-soft); font-size:.9rem; margin:0;}

/* ---------- schedule & pricing (editorial layout, calm palette) ---------- */
.schedule-grid{
    display:grid; grid-template-columns:0.9fr 1.1fr; gap:24px; margin-bottom:26px;
    align-items:start;
}
.schedule-grid .card{margin:0;}
.day-row{display:flex; gap:14px; margin:0 0 16px; flex-wrap:wrap;}
.day{
    flex:1; min-width:120px;
    background:var(--cream); border:2px solid var(--ink); border-radius:18px;
    padding:16px 14px 14px; text-align:center;
    display:flex; flex-direction:column; gap:12px; align-items:center;
}
.day-jp{
    width:54px; height:54px; border-radius:50%;
    background:var(--blue-band); color:#fff; border:2.5px solid var(--ink);
    display:flex; align-items:center; justify-content:center;
    font-weight:900; font-size:1.7rem; line-height:1; box-shadow:0 4px 0 rgba(59,43,35,.18);
}
.day-time{font-weight:700; color:var(--ink); line-height:1;}

.price-table{width:100%; border-collapse:collapse;}
.price-table th,.price-table td{
    text-align:left; padding:13px 6px;
    border-bottom:2px dotted #e7d4ae; vertical-align:middle;
}
.price-table tr:last-child th,.price-table tr:last-child td{border-bottom:none;}
.price-table th{font-weight:700; color:var(--ink); width:46%; font-size:.98rem;}
.price-table th small{display:block; font-weight:500; color:var(--ink-soft); font-size:.76rem; margin-top:2px;}
.price-table td{font-weight:600; color:var(--blue-deep); text-align:right; font-size:.98rem;}

.checklist{list-style:none; margin:14px 0 0; padding:0;}
.checklist li{position:relative; padding-left:28px; margin-bottom:10px; color:var(--ink-soft); font-size:.95rem;}
.checklist li::before{content:"★"; position:absolute; left:0; top:0; color:var(--gold);}
@media (max-width:720px){
    .schedule-grid{grid-template-columns:1fr;}
}

/* ---------- profile ---------- */
.profile-card{display:flex; gap:26px; align-items:flex-start; text-align:left;}
.profile-photo img{
    width:190px; background:#fff;
    border:4px solid var(--ink); border-radius:20px;
    box-shadow:0 6px 0 var(--ink);
    transform:rotate(-2deg);
}
.profile-body{flex:1; min-width:0;}
.instructor-name{
    font-weight:900; font-size:1.35rem; margin:0 0 .5em;
    display:flex; flex-wrap:wrap; align-items:center; gap:10px;
}
.instructor-name span{font-size:.62em; font-weight:500; opacity:.75;}
.profile-body p{margin:.55em 0; font-size:.95rem;}

/* ---------- rental shoes / framed imagery ---------- */
.framed-img{width:100%; border:1px solid rgba(59,43,35,.12); border-radius:14px; box-shadow:0 8px 20px rgba(59,43,35,.12); margin-top:6px;}
/* first paragraph in a card keeps its default top margin, unbalancing the
   card's symmetric padding — drop it (e.g. the rental-shoes card) */
.card > p:first-child{margin-top:0;}

/* ---------- contact form ---------- */
.contact-form{max-width:560px; margin:0 auto; text-align:left;}
.field{margin:0 0 16px;}
.field label{display:block; font-weight:700; margin:0 0 6px;}
.field input,.field textarea{
    width:100%; font-family:inherit; font-size:1rem;
    padding:.7em .9em; border:3px solid var(--ink); border-radius:14px;
    background:var(--cream); color:var(--ink);
}
.field textarea{min-height:130px; resize:vertical;}
.field input:focus,.field textarea:focus{outline:3px solid var(--blue); outline-offset:1px; border-color:var(--blue-deep);}
.field-submit{text-align:right;}
.warning{font-size:.82rem; color:var(--ink-soft); margin:0 0 16px;}
.alert{border-radius:16px; padding:14px 18px; margin:0 0 16px; font-weight:700; border:3px solid var(--ink);}
.alert-danger{background:#ffe0e0; color:#9c1e1e;}
.alert-success{background:#e2f6d8; color:#2a6b13;}
.alert ul{margin:.3em 0 0 1.1em;}
/* honeypot: off-screen (not display:none, so bots still fill it) */
.hp{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}
/* success confirmation shown in place of the form */
.form-confirmation{text-align:center; padding:14px 8px 6px;}
.confirm-check{width:64px; height:64px; margin:0 auto 16px; border-radius:50%;
    background:#e2f6d8; border:3px solid #2a6b13; color:#2a6b13;
    display:flex; align-items:center; justify-content:center;
    font-size:2rem; font-weight:900; line-height:1;}
.form-confirmation h3{margin:0 0 .35em; color:var(--blue-deep); font-weight:900; font-size:1.4rem; line-height:1.15;}
.form-confirmation p{margin:0 auto .5em; max-width:34em;}
.form-confirmation .muted{font-size:.9rem; color:var(--ink-soft);}

/* ---------- access ---------- */
.access-tbl .dist{white-space:nowrap;}
.bus-lines a{display:inline-block; margin:0 14px 2px 0;}
.access-dl{margin:0;}
.access-dl dt{font-weight:900; color:var(--blue-deep); margin-top:.6em;}
.access-dl dd{margin:.2em 0 .8em; font-size:.95rem;}
.directions-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:0 auto 26px;}
.directions-grid .card{margin:0;}
.direction-card p{margin:0; font-size:.95rem;}
@media (max-width:720px){
    .directions-grid{grid-template-columns:1fr;}
}
.map-embed{border:1px solid rgba(59,43,35,.12); border-radius:14px; box-shadow:0 8px 20px rgba(59,43,35,.12); margin-top:14px; width:100%; background:#fff;}
.map-card small{display:block; margin-top:8px;}

/* ---------- carousel ---------- */
.poster-frame{
    position:relative; max-width:860px; margin:0 auto; overflow:hidden;
    border:5px solid var(--ink); border-radius:24px; background:#fff;
    box-shadow:var(--shadow);
}
.carousel-inner{position:relative; width:100%; aspect-ratio:1194/525; background:#000;}
.carousel-inner .item{position:absolute; inset:0; opacity:0; transition:opacity .6s ease;}
.carousel-inner .item.active{opacity:1;}
.carousel-inner .item img{width:100%; height:100%; object-fit:cover;}
.carousel-indicators{
    position:absolute; z-index:6; bottom:12px; left:0; right:0;
    display:flex; gap:8px; justify-content:center;
    list-style:none; margin:0; padding:0;
}
.carousel-indicators li{
    width:13px; height:13px; border-radius:50%;
    background:rgba(255,255,255,.65); border:2px solid var(--ink); cursor:pointer;
}
.carousel-indicators li.active{background:var(--yellow);}
.carousel-control{
    position:absolute; z-index:6; top:50%; transform:translateY(-50%);
    width:46px; height:46px; border-radius:50%;
    background:var(--white); border:3px solid var(--ink); color:var(--ink);
    display:flex; align-items:center; justify-content:center;
    font-size:1.7rem; line-height:1; padding-bottom:.26em; cursor:pointer;
    box-shadow:0 4px 0 var(--ink); user-select:none;
}
.carousel-control.left{left:10px;}
.carousel-control.right{right:10px;}
.carousel-control:hover{background:var(--yellow); color:#fff; text-decoration:none;}

/* ---------- footer ---------- */
.site-footer{
    background:var(--blue-band); color:#fff; text-align:center;
    padding:26px 18px; font-weight:700; position:relative;
}
.site-footer a{color:#fff; text-decoration:underline;}
.site-footer .deco-star{
    position:relative; top:-0.12em;
    display:inline-block; vertical-align:middle;
    margin-right:8px; width:20px; height:20px; animation:none;
}

/* ---------- responsive ---------- */
@media (max-width:720px){
    .dance-grid{grid-template-columns:1fr;}
    .dance-tap,.dance-irish{transform:none;}
}
@media (max-width:640px){
    .profile-card{flex-direction:column; align-items:center;}
    .profile-photo img{transform:rotate(-1deg);}
}
@media (max-width:600px){
    .band{padding:52px 14px 106px;}
    .card{padding:20px 16px;}
    /* the address sub-line shrinks with the band title on mobile; bump it up */
    .band-title .addr{font-size:.6em;}
    /* primary CTAs go full-width so they read as primary (were narrower than the pill row) */
    .hero-cta{flex-direction:column; align-items:center; gap:12px;}
    .hero-cta .btn{width:100%; max-width:330px; text-align:center;}
    /* keep the s2 star above the logo instead of behind the shoe */
    .deco-star.s2{top:12px; right:5%;}
    /* tuck the mascot into the bottom-right corner, clear of the pill row */
    .hero-bunny{width:60px; height:76px; right:4px; bottom:6px;}
    .access-tbl,.tbl{font-size:.9rem;}
    .tbl th,.tbl td{padding:.5em .55em;}
}
@media (max-width:380px){
    .menu-item a{font-size:.82rem; padding:.45em .75em;}
    .btn{font-size:1.1rem;}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
    *{animation:none !important;}
    html{scroll-behavior:auto;}
    .btn:hover,.menu-item a:hover{transform:none;}
    .carousel-inner .item{transition:none;}
}
