:root {
    --bg-color: linear-gradient(135deg, #F9C5B4 0%, #F7EBDE 100%); /* The soft pastel gradient you requested */
    --surface-light: #ffffff;
    --surface-tint: #faf6ea;
    --wood: #EEDCC7;
    --wood-dark: #8c7355;
    --text-color: #3d3d3d;
    --text-muted: #666666;
    --accent: #5e7a4a; /* Sage Green */
    --accent-light: #d6e2cc;
    --accent-orange: #d98a53; /* Warm Orange from the 5-dish plan */
    --glass-bg: rgba(252, 248, 229, 0.9);
    --glass-border: rgba(94, 122, 74, 0.1);
    --glass-shadow: 0 10px 30px 0 rgba(140, 115, 85, 0.08);
    --font-heading: 'Zen Maru Gothic', sans-serif;
    --font-display: 'Bodoni Moda', serif;
    --font-sans: 'Mulish', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-jp-display: 'Zen Maru Gothic', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--accent); }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Typography */
h1 { font-size: 3rem; letter-spacing: -0.01em; margin-bottom: 1rem; line-height: 1.2; color: #445634;}
h2 { font-size: 2.2rem; margin-bottom: 0.5rem; text-align: center; color: #445634;}
h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }

.jp-subtitle {
    font-family: var(--font-jp-display);
    font-size: 0.9rem;
    color: #777;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.section-subtitle { text-align: center; font-family: var(--font-jp); font-size: 0.95rem; color: #666; margin-bottom: 3rem; font-weight: 500; }

/* Navigation */
#navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--surface-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 5%; max-width: 1200px; margin: 0 auto; }
.logo a { font-size: 1.4rem; font-weight: 500; color: var(--accent); white-space: nowrap; }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 700; color: var(--wood-dark); transition: color 0.3s; white-space: nowrap; font-family: var(--font-jp-display); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-light);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 12px;
    padding: 0.5rem 0;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(0,0,0,0.05);
}
.dropdown-content a {
    color: var(--wood-dark);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    font-size: 0.9rem;
}
.dropdown-content a:hover {
    background-color: rgba(94,122,74,0.05);
    color: var(--accent);
}
.dropdown:hover .dropdown-content { display: block; }


.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.lang-toggle {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem; font-weight: 600;
    background: var(--surface-tint); padding: 0.4rem 1rem; border-radius: 30px;
}
.lang-opt { cursor: pointer; color: #999; transition: color 0.3s; }
.lang-opt.active { color: var(--accent); }
.lang-divider { color: #ccc; }

body[data-lang="en"] .lang-ja { display: none !important; }
body[data-lang="ja"] .lang-en { display: none !important; }

/* Global Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 40px; /* Highly rounded for kidsy theme */
    font-family: var(--font-jp-display);
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer; border: none; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: white !important; }
.btn-primary:hover { background: #445634; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(94,122,74,0.3); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: white; }

/* Global Badges/Pills */
.pill {
    display: inline-block;
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-family: var(--font-jp);
    font-size: 0.95rem;
    white-space: nowrap;
}
.pill.green { background: #62824b; }
.pill.orange { background: #df914b; }
.pill-center { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); }

/* Whimsical Specifics */
.curved-header {
    background: #f1eddd;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
    padding: 160px 5% 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

/* Hero fade-in animation (pure opacity, no slide) */
@keyframes fadeReveal {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.hero-anim {
    opacity: 0;
    animation: fadeReveal 1.6s ease 0.15s both;
}

/* Multi-line brush underline — uses box-decoration-break so each line gets the stroke */
.brush-underline-ml {
    display: inline;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M0,6 C15,2 45,10 60,6' stroke='%23d98a53' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 60px 12px;
    padding-bottom: 10px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Brush stroke underline for section titles */
.brush-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.brush-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M0,6 C15,2 45,10 60,6' stroke='%23d98a53' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 60px 12px;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
}

@keyframes drawStroke {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0% 0 0); }
}
@keyframes strokeSettle {
    0%   { filter: drop-shadow(0 0px 0px rgba(217,138,83,0)); }
    55%  { filter: drop-shadow(0 2px 10px rgba(217,138,83,0.45)); }
    100% { filter: drop-shadow(0 1px 4px rgba(217,138,83,0.12)); }
}
.brush-underline.stroke-revealed::after {
    animation:
        drawStroke  0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both,
        strokeSettle 1.1s ease-out 0.85s both;
}

/* Service Cards / Core Playful Cards */
.playful-card {
    background: white;
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(100,100,80,0.06);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}
.playful-card:hover { transform: translateY(-5px); }

.playful-card img { width: 100%; border-radius: 20px; margin: 1.5rem 0; object-fit: cover;}
.playful-card h3 { font-size: 1.8rem; color: #435b3e; margin-bottom: 0.3rem; }
.playful-card .sub-title { font-weight: bold; font-size: 0.9rem; margin-bottom: 2rem; font-family: var(--font-jp); color: #777; text-align: left;}
.playful-card-footer { background: var(--surface-tint); border-radius: 20px; padding: 1.5rem; color: #5a4b3b; font-family: var(--font-jp); text-align: center; }

/* Menus/Options 3-column layout */
.menu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: stretch; margin-bottom: 4rem; padding-top: 30px; }
.menu-card { background: white; border-radius: 30px; border: 2px solid var(--surface-tint); box-shadow: 0 8px 25px rgba(0,0,0,0.04); text-align: center; position: relative; display: flex; flex-direction: column; padding: 3rem 2rem 2rem; margin-top: 30px;}
.menu-card .circle-num {
    position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 50px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.2rem;
}
.circle-num.c-green { background: #62824b; }
.circle-num.c-orange { background: #df914b; }

.menu-card h3 { font-size: 1.4rem; color: #445634; margin-bottom: 0.5rem; }
.menu-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; margin-bottom: 1.5rem;}
.menu-card-body { text-align: left; font-family: var(--font-jp); font-size: 0.9rem; color: #555; flex-grow: 1; display: flex; flex-direction: column;}
.menu-card-body .desc { margin-bottom: 1.5rem; line-height: 1.6; flex-grow: 1; }

.rec-pill { display: inline-block; background: #f3edd0; color: #6b5a38; border-radius: 20px; padding: 0.4rem 1.2rem; font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; }
.rec-pill.orange { background: #fbebdc; color: #9f5b24; }
.rec-list { list-style: none; padding-left: 0; margin-left: 0; }
.rec-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; font-size: 0.85rem; line-height: 1.5;}
.rec-list li::before { content: '•'; position: absolute; left: 0; color: var(--wood-dark); font-weight: bold; font-size: 1.2rem; line-height: 1;}

.hearing-banner { background: #fbebdc; border-radius: 30px; padding: 2.5rem 3rem; display: flex; align-items: center; gap: 2.5rem; margin: 0 auto; text-align: left; }
.hearing-icon { font-size: 3.5rem; }
.hearing-content h4 { color: #8e5831; font-size: 1.2rem; margin-bottom: 0.5rem; }
.hearing-content p { font-size: 0.9rem; color: #666; font-family: var(--font-jp); line-height: 1.8; margin: 0; }

/* Hand-written dividers */
.h-divider { max-width: 960px; margin: 5rem auto; padding: 0 5%; clear: both; }
.h-divider svg { width: 100%; height: 14px; display: block; }
.v-divider { display: flex; justify-content: center; margin: 1.5rem 0; }
.v-divider svg { width: 16px; height: 80px; }

/* Contact Form */
.contact-section { max-width: 800px; margin: 0 auto; background: white; padding: 4rem; border-radius: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; font-size: 0.95rem; color: #445634; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 1rem 1.2rem; border: 2px solid var(--surface-tint); border-radius: 16px;
    background: #fafaf5; font-family: inherit; font-size: 1rem; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: white;}
.field-error input, .field-error select, .field-error textarea { border-color: #e05454 !important; background-color: #fff8f8 !important; }
.error-msg { color: #e05454; font-size: 0.8rem; margin-top: 5px; display: block; }

/* Footer */
footer { background: var(--surface-light); padding: 5rem 5% 2rem; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem; margin-bottom: 4rem; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.95rem; color: #777; }
.footer-links h4, .footer-contact h4 { color: var(--wood-dark); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a, .footer-contact p { color: #666; font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); }

/* Playful floating decorators */
.decor-leaf { position: absolute; z-index: 1; opacity: 0.6; width: auto; pointer-events: none;}
.decor-lg { font-size: 8rem; }
.decor-sm { font-size: 4rem; }

/* Mobile Menu */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--accent); border-radius: 3px;}
.mobile-menu {
    position: fixed; top: -100%; left: 0; width: 100%; height: 100vh;
    background: var(--bg-color); z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; transition: 0.5s ease;
}
.mobile-menu.active { top: 0; }
.mobile-link { font-size: 1.5rem; font-weight: 700; color: var(--accent); font-family: var(--font-jp-display); }
.ig-link { display: flex; align-items: center; gap: 0.4rem; color: #888; transition: color 0.2s; text-decoration: none; }
.ig-link:hover { color: var(--accent); }
@media (max-width: 900px) { .nav-ig { display: none; } }

@media (max-width: 900px) {
    .curved-header { padding: 120px 5% 3rem; }
    .menu-cards, .plan-cards { grid-template-columns: 1fr; gap: 3rem; margin: 0 auto; max-width: 500px;}
    .hearing-banner { flex-direction: column; text-align: center; gap: 1.5rem; padding: 2rem; }

    .nav-links { display: none; }
    .hamburger { display: flex; }
    h1 { font-size: 2.2rem; }

    /* Hide lang toggle from navbar, show it in mobile menu instead */
    #navbar .lang-toggle { display: none; }
}

.mobile-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1rem;
    background: rgba(255,255,255,0.3);
    padding: 0.6rem 2rem;
    border-radius: 30px;
}
.mobile-lang-toggle .lang-opt { cursor: pointer; color: rgba(94,122,74,0.5); transition: color 0.3s; }
.mobile-lang-toggle .lang-opt.active { color: var(--accent); }
.mobile-lang-toggle .lang-divider { color: #bbb; }

@media (min-width: 769px) {
    .menu-select-grid { flex-direction: row !important; align-items: stretch; }
    .menu-select-grid > div { flex: 1; }
}

/* iPad (portrait + landscape) */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    section.container, section[class*="container"] { padding-left: 24px; padding-right: 24px; }
}

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 24px; }
    section { padding-left: 24px !important; padding-right: 24px !important; }
    footer .container { padding: 0 24px; }
    .playful-card { padding: 1.5rem; }
    .menu-card { padding: 2rem 1.2rem 1.5rem; }
    .hearing-banner { margin-left: 0; margin-right: 0; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
}