/*
Theme Name: ECC Kagoda Park Theme
Theme URI: https://ecc-kagota.com/
Description: High-design refresh for ECC Junior Kagoda Park Classroom
Author: Manus AI
Author URI: https://ricecake.co.jp/
Version: 4.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecc-kagoda-park
*/

:root {
    /* Brand Colors (Refined) */
    --primary-color: #00bf6f;
    /* ECC Green */
    --primary-gradient: linear-gradient(135deg, #00bf6f 0%, #009e5b 100%);
    --primary-dark: #008f53;
    --accent-color: #ff9f00;
    /* ECC Orange */
    --accent-gradient: linear-gradient(135deg, #ff9f00 0%, #ff6f00 100%);

    /* Neutral / Text */
    --text-main: #2d3436;
    --text-light: #636e72;
    --text-lighter: #b2bec3;

    /* Backgrounds */
    --bg-body: #f7f9fc;
    --bg-white: #ffffff;
    --bg-light: #f1f3f5;

    /* UI Elements */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);

    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;

    --font-main: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   REFINED GLOBAL FOOTER & PRO COMPANY STYLES
   ============================================================ */

/* Footer CTA - High Impact */
.footer-cta {
    background: var(--primary-gradient);
    padding: 100px 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(15deg);
}

.footer-cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.footer-cta h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.footer-cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    background: white !important;
    color: var(--primary-color) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.cta-btn:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Site Footer - Multi-Column Refined */
.site-footer {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 80px 24px 0;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    align-items: center;
}

.info-col {
    text-align: center;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
}

.classroom-name {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-address {
    line-height: 1.8;
    color: #a0a0a0;
    text-align: center;
}

.footer-heading {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    text-align: center;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
}

.footer-nav-list li {
    margin-bottom: 16px;
}

.footer-nav-list li a {
    color: #a0a0a0;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-nav-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-tel {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    display: block;
    margin-top: 24px;
    transition: color 0.3s;
}

.footer-tel:hover {
    color: var(--accent-color);
}

.footer-social {
    margin-top: 30px;
}

.social-qr-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.qr-item {
    text-align: center;
}

.qr-code {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.qr-code:hover {
    transform: scale(1.05);
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 24px;
    text-align: center;
}

.footer-bottom .copyright {
    color: #666;
    font-size: 0.85rem;
}

/* Company Page Pro Styles */
.company-page-pro {
    background: #fcfdfe;
}

.page-hero {
    background: #111;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('http://ricecake.co.jp/eccdemo/wp-content/uploads/2025/12/slide3.jpg');
    background-size: cover;
    background-position: center;
}

.page-category {
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: block;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.page-hero-content p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.company-visual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: -80px;
    position: relative;
    z-index: 100;
    padding: 0 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
}

/* Missing Pro Card Styles for Company Page */
.company-details-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pro-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pro-card-header {
    background: #fafbfc;
    padding: 30px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pro-card-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
}

.pro-card-body {
    padding: 40px;
}

.detail-row {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-name {
    width: 200px;
    font-weight: 800;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-text {
    flex: 1;
    color: #444;
    line-height: 1.8;
}

/* Map Card Pro */
.map-container-pro {
    padding-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.map-card {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    line-height: 0;
}

.map-card iframe {
    width: 100%;
    height: 500px;
}

.page-footer-cta {
    text-align: center;
    padding-bottom: 100px;
}

.btn-back {
    display: inline-block;
    padding: 16px 40px;
    background: #222;
    color: white;
    border-radius: 99px;
    font-weight: 800;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 191, 111, 0.2);
}

.premium-contact-box {
    padding: 100px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-glass-card {
    background: white;
    border-radius: 40px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 191, 111, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.phone-icon-animate {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(0, 191, 111, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.contact-title-group h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.contact-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tel-display small {
    display: block;
    font-weight: 800;
    color: #a0a0a0;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pulsing-tel {
    font-size: 3.5rem;
    font-weight: 900;
    color: #222;
    text-decoration: none;
    letter-spacing: -1px;
    transition: color 0.3s;
}

.pulsing-tel:hover {
    color: var(--primary-color);
}

.hours-badge-pro {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 30px;
    width: 350px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hours-label {
    font-weight: 900;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 15px;
}

.hours-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hours-details .days {
    background: #222;
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
}

.hours-details .time {
    font-size: 1.4rem;
    font-weight: 800;
    color: #222;
}

.hours-footer {
    font-size: 0.85rem;
    color: #888;
}

/* Responsive Fixes */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .company-visual-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .stat-card {
        padding: 30px 20px;
    }

    .page-hero {
        height: auto;
        padding: 120px 24px 80px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .pro-card-body {
        padding: 24px;
    }

    .detail-row {
        flex-direction: column;
        gap: 8px;
    }

    .detail-name {
        width: 100%;
    }

    .contact-glass-card {
        padding: 40px 24px;
        border-radius: 30px;
    }

    .contact-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .contact-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pulsing-tel {
        font-size: 2rem;
        margin-bottom: 30px;
        word-break: break-all;
    }

    .hours-badge-pro {
        width: 100%;
        padding: 24px;
    }

    .hours-details {
        flex-direction: column;
        gap: 12px;
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.8;
    background-color: var(--bg-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}




a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common Components */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 15px rgba(255, 159, 0, 0.3);
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(255, 159, 0, 0.4);
    background: #ff8f00;
    /* Fallback/Adjustment */
}

/* Header (Glassmorphism) */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
    height: 100%;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hide mobile-only items on desktop */
.nav-link.mobile-only {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 2100;
    position: relative;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger active state (X icon) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    margin-top: 0;
    /* Cover header if wanted, but standard is offset */
    padding-top: 80px;
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    background: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    transform: scale(1.05);
    /* Slight zoom for effect */
    animation: zoomOut 8s infinite alternate;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Gradient Overlay */
/* Gradient Overlay - Lightened */
/* Gradient Overlay - Removed global overlay */
.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    /* Removed global dark overlay */
    z-index: 2;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 900px;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;

    /* Boxed overlay for text readability */
    background: rgba(0, 0, 0, 0.4);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for readability */
    letter-spacing: 1px;
}

.hero-sub-btn {
    font-size: 1.2rem;
    padding: 16px 40px;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(255, 159, 0, 0.4);
    display: inline-block;
    color: white !important;
    /* Force white text */
    text-decoration: none;
}

.hero-sub-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 159, 0, 0.6);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Main Content Wrapper */
.main-content {
    position: relative;
    z-index: 20;
    margin-top: -60px;
    /* Overlap hero */
}

.section-block {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Content Wrapper (Glass/Card Panels) */
.content-wrapper {
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

/* Section Variations for Merihari */

/* Instructor Section - Subtle Warmth */
#instructor .instructor-profile {
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
    border: 1px solid #ffeeba;
    box-shadow: 0 10px 30px rgba(255, 159, 0, 0.1);
}

/* Flow Section - Clean & Structured */
#flow .content-wrapper {
    background: #fcfcfc;
    border: 1px solid #eee;
}

/* FAQ Section - Cool Tone & Trusted */
#faq .content-wrapper {
    background: #f0f8ff;
    /* AliceBlue-ish */
    border: 1px solid #e0f2f1;
}

#faq .faq-item {
    border-color: #fff;
    /* White borders between items */
}

/* Timetable Section Stripe adjustment */
.timetable tr:nth-child(odd) td {
    background: #fff;
}

.timetable tr:nth-child(even) td {
    background: #f4faff;
    /* Light blue tint for stripes */
}

.content-wrapper h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.content-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

/* Welcome Box */
.welcome-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
    border: 2px solid #e0f2f1;
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-bottom: 60px !important;
    position: relative;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.welcome-box::before {
    content: 'WELCOME';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 6px 24px;
    border-radius: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 191, 111, 0.3);
}

.welcome-msg {
    line-height: 2.2;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* News List */
.news-section .content-wrapper {
    padding-top: 50px;
}

.news-list {
    margin-top: 20px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.news-item:hover {
    background: #fafafa;
    transform: translateX(5px);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-family: monospace;
    color: var(--text-light);
    margin-right: 20px;
    font-size: 0.95rem;
}

.news-category {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 20px;
    box-shadow: 0 2px 4px rgba(0, 191, 111, 0.2);
}

.news-title {
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.news-title:hover {
    color: var(--primary-dark);
}

.news-event-box {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0b2 100%);
    border: 2px solid #ff9f00;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 159, 0, 0.2);
    text-align: center;
}

.news-event-box h5 {
    font-size: 1.3rem;
}

.news-event-box p {
    margin: 0;
    line-height: 1.8;
    font-size: 1rem;
}


/* Instructor Section */
.instructor-profile {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.instructor-img {
    width: 280px;
    height: 280px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.profile-text {
    flex: 1;
}

.profile-text h4 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 800;
}

.profile-text .role {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 1.1rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent-color);
}

.bio h5,
.cert h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.bio ul {
    margin-bottom: 25px;
}

.bio ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.bio ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.message {
    background: #f0fff4;
    padding: 25px;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-color);
}

.message p {
    font-style: italic;
    color: var(--text-main);
    font-weight: 500;
}

/* Course Tabs */
.course-tabs {
    display: flex;
    justify-content: center;
    background: white;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 0;
    /* Remove gap */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ddd;
    border-radius: 0;
    /* Remove rounded corners */
    overflow: hidden;
}

.course-tab-link {
    background: transparent;
    border: none;
    border-right: 1px solid #eee;
    padding: 16px 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 0;
    /* Remove rounded corners */
    transition: var(--transition);
    flex: 1;
    min-width: auto;
    width: 33.333%;
    /* Force equal width */
}

.course-tab-link:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.course-tab-link.active {
    background: var(--primary-gradient);
    color: white;
    /* Removed shadow for flat square look */
}

.course-tab-content {
    display: none;
    animation: slideUpFade 0.5s ease forwards;
}

.course-tab-content.active {
    display: block;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course Detail Cards */
.course-detail {
    margin-bottom: 40px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.course-detail:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.course-detail h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: none;
    padding-left: 0;
}

.course-detail h4::before {
    content: '';
    width: 6px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 3px;
    display: inline-block;
}

.course-desc {
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--text-light);
}

/* Fee Tables */
.fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.fee-table th,
.fee-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.fee-table th {
    background: #f8f9fa;
    color: var(--primary-dark);
    font-weight: 700;
    width: 200px;
    border-right: 1px solid #eee;
}

.fee-table tr:last-child th,
.fee-table tr:last-child td {
    border-bottom: none;
}

/* Timetable */
.timetable {
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 2px;
}

.timetable th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.timetable td {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #eee;
    color: var(--text-main);
    white-space: nowrap;
    /* Prevent wrapping in timetable */
}

.timetable tr:nth-child(even) td {
    background: #f9f9f9;
}

/* Flow Section */
.flow-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 50px 0;
}

.flow-step {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(255, 159, 0, 0.3);
}

.step-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.flow-step p {
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

/* FAQ */
.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
    overflow: hidden;
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-item summary {
    padding: 20px 25px;
    cursor: pointer;
    list-style: none;
    position: relative;
    background: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .question {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    width: 90%;
}

.question::before {
    content: 'Q.';
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.4rem;
}

.question::after {
    /* This was the arrow */
    display: none;
}

.faq-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

/* Custom indicator if needed, but CSS shapes are cleaner */
.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.answer {
    padding: 25px 30px;
    background: #fbfbfb;
    border-top: 1px solid #eee;
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    padding-left: 60px;
}

.answer::before {
    content: 'A.';
    position: absolute;
    left: 25px;
    top: 25px;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.4rem;
}

/* Forms Enhanced */
.contact-form-wrapper {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    /* Slight radius */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* More refined shadow */
    border: 1px solid #f0f0f0;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    /* Minimal radius */
    font-size: 1rem;
    background: #fcfcfc;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 191, 111, 0.15);
    outline: none;
}

.wpcf7-submit {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    box-shadow: 0 10px 20px rgba(255, 159, 0, 0.25);
}

.wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(255, 159, 0, 0.35);
}

/* Hide Specific Form Fields */
/* Note: This hides the visual elements. If they are required fields, submission will fail. */
/* Assuming standard Contact Form 7 structure where label and input are wrapped in p or sharing a container */

/* Hide "お申込み項目" */
/* We target the paragraph that contains the text. This is hacky but effective if structure is simple. */
/* Using a general approach trying to catch common labels */
.wpcf7-form p:has(label:contains("お申込み項目")),
.wpcf7-form p:has(span:contains("お申込み項目")) {
    display: none;
}

/* If :has is not supported or structure is different, we might need a JS fallback or User action. */
/* Without classes, we can try to hide by index if consistent, but that's risky. */
/* Let's assume the user can edit the form or we use JS for safety in the actual output if needed. For now, we add styles. */

.form-section-header {
    font-size: 1.15rem;
    color: var(--primary-dark);
    background: #f0fff4;
    /* Light green background matching brand */
    padding: 12px 20px;
    border-left: 6px solid var(--primary-color);
    border-radius: 4px;
    margin-top: 30px;
    margin-bottom: 25px;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.required-badge {
    background: #e74c3c;
    /* Red background */
    color: white;
    /* White text */
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 700;
    display: inline-block;
    line-height: 1.4;
}

.form-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border-left: 5px solid #ffeeba;
}

/* Access Map */
.map-responsive {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}

/* Footer */
footer {
    background: linear-gradient(to right, #ffffff, #f9f9f9);
    color: var(--text-light);
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid #eee;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 20px;
    }

    .hero {
        height: 600px;
        /* Fixed height for mobile stability */
        min-height: 500px;
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease;
        padding-top: 60px;
    }

    .nav.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 2000;
    }

    /* Show mobile-only items on mobile */
    .nav .mobile-only {
        display: block !important;
    }

    /* Ensure all nav links are visible in mobile menu */
    .nav .nav-link {
        display: block;
        padding: 15px 30px;
        width: 100%;
        text-align: left;
    }

    .nav .btn-primary {
        display: block;
        margin: 20px 30px;
        text-align: center;
        width: calc(100% - 60px);
    }

    .instructor-profile {
        flex-direction: column;
        padding: 40px 30px;
    }

    .instructor-img {
        width: 250px;
        height: 250px;
        margin: 0 auto 20px auto;
        display: block;
    }

    .flow-container {
        flex-direction: column;
    }

    .flow-step {
        margin-bottom: 20px;
    }

    .flow-step:not(:last-child)::after {
        content: '↓';
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 2rem;
        color: var(--primary-color);
    }
}

/* Helpers */
.d-md-none {
    display: none;
}

@media (max-width: 768px) {
    .d-md-none {
        display: block;
    }

    .content-wrapper {
        padding: 30px 20px;
    }

    .fee-table {
        display: block;
        overflow-x: auto;
    }

    .fee-table th {
        width: 30%;
        /* Force narrower header on mobile */
        min-width: auto;
        font-size: 0.8rem;
        padding: 10px 6px;
        white-space: normal;
        /* Allow text wrapping if needed, though we used <br> */
    }

    .fee-table td {
        width: auto;
        /* Allow content to take remaining space */
        min-width: auto;
        font-size: 0.8rem;
        padding: 10px 8px;
    }

    /* Timetable Scroll */
    .timetable-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 10px;
        width: 100%;
        display: block;
    }

    .hero-overlay {
        top: 50%;
        /* Center the text vertically */
        transform: translate(-50%, -50%);
        width: 95%;
        /* Wider on mobile */
    }

    .timetable th,
    .timetable td {
        font-size: 0.8rem;
        /* Smaller font for mobile */
        padding: 8px;
    }
}

/* Added Specific Classes */
.section-sub-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 1.4rem;
    display: inline-block;
}

.access-classroom {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.access-address {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.timetable-note {
    font-size: 0.85rem;
    text-align: right;
    margin-top: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.flow-cta-container {
    text-align: center;
    margin-top: 40px;
}

/* Access Section (Full Width) */
.access-section-wrapper {
    margin-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 10;
}

.access-info-container {
    padding: 60px 20px;
    background: var(--bg-body);
}

.access-details {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.access-classroom-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.access-address-text {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
}

.full-width-map {
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 1;
}

.full-width-map iframe {
    width: 100%;
    height: 500px;
}

/* Footer Menu & Footer */
.footer-menu-container {
    background: #2d3436;
    padding: 50px 20px;
    color: white;
    border-top: 5px solid var(--primary-color);
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.footer-nav li a {
    color: #b2bec3;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav li a:hover {
    color: var(--accent-color);
}

footer {
    background: #222 !important;
    /* Force override */
    padding: 20px;
    text-align: center;
    margin-top: 0 !important;
    border-top: none !important;
    color: #636e72;
}

.copyright {
    font-size: 0.85rem;
}

/* Mobile responsive text alignment fix */
@media (max-width: 768px) {

    p,
    .welcome-msg,
    .course-desc,
    .answer,
    .access-address-text {
        text-align: left !important;
    }

    .hero-title,
    .hero-sub,
    .content-wrapper h3,
    .section-sub-title,
    .btn-primary,
    .timetable th,
    .timetable td,
    .flow-step p {
        text-align: center !important;
    }

    /* Mobile News Fix */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .news-date,
    .news-category {
        margin-right: 0;
        margin-bottom: 5px;
        display: inline-block;
    }

    .news-title {
        display: block;
        width: 100%;
    }

    /* Mobile Welcome Msg Font Size */
    .welcome-msg {
        font-size: 0.95rem !important;
        /* Smaller than 1.1rem */
        line-height: 1.8;
    }
}

/* =========================================
   SINGLE POST STYLES (Added)
   ========================================= */

.single-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, var(--primary-dark), #00643a);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 0;
    padding-top: 80px;
    margin-bottom: 0;
}

.single-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.single-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 30px;
    /* Use a simpler animation that doesn't use translate(-50%, -50%) which breaks flex centering */
    animation: fadeInUpSimple 1s ease forwards;
    margin: 0 auto;
}

@keyframes fadeInUpSimple {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry-meta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    flex-wrap: wrap;
}

.cat-label a {
    background: var(--accent-gradient);
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 159, 0, 0.3);
    transition: var(--transition);
}

.cat-label a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 0, 0.5);
}

.published-date {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
}

.entry-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.3;
    text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
    word-break: break-all;
    /* Ensure long titles don't overflow */
}

/* Single Layout Adjustments */
.main-content.single-layout {
    margin-top: -100px;
    /* Overlap effect */
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.single-layout .content-wrapper {
    padding: 80px 10%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Entry Content Typography */
.entry-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #444;
    margin-bottom: 80px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    /* Fallback for very aggressive strings like "aaaaaaaaaaa" */
}

.entry-content p {
    margin-bottom: 2em;
}

.entry-content h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    margin-top: 60px;
    margin-bottom: 40px;
    font-weight: 800;
    position: relative;
}

/* Decorative dot for h2 */
.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 20%;
    height: 3px;
    background: var(--accent-color);
}

.entry-content h3 {
    font-size: 1.5rem;
    border-left: 6px solid var(--accent-color);
    padding-left: 20px;
    margin-top: 50px;
    margin-bottom: 30px;
    color: var(--text-main);
    text-align: left !important;
    /* Force align left override */
    background: linear-gradient(to right, #fffaf0, transparent);
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 0 10px 10px 0;
}

.entry-content h3::after {
    display: none;
    /* Remove center line from common h3 */
}

.entry-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: 40px 0;
    max-width: 100%;
}

.entry-content ul,
.entry-content ol {
    background: #f9f9f9;
    padding: 40px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.entry-content li {
    margin-bottom: 15px;
    list-style-position: inside;
}

/* Navigation Area */
.post-footer-area {
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 80px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.nav-link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid #e0e0e0;
    height: 100%;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.nav-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    z-index: 2;
}

.nav-dir {
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item.prev .nav-dir .arrow {
    margin-right: 5px;
}

.nav-item.next .nav-dir {
    justify-content: flex-end;
}

.nav-item.next .nav-dir .arrow {
    margin-left: 5px;
}

.nav-item.next .nav-link-card {
    text-align: right;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.6;
    transition: color 0.3s;
}

.nav-link-card:hover .nav-title {
    color: var(--primary-color);
}

.back-to-home {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 1rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 191, 111, 0.3);
}

/* Mobile Adjustments for Single */
@media (max-width: 768px) {
    .single-hero {
        height: 50vh;
        min-height: 300px;
    }

    .entry-title {
        font-size: 1.8rem;
    }

    .single-layout .content-wrapper {
        padding: 40px 20px;
        border-radius: 20px 20px 0 0;
        /* Different look on mobile */
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .nav-item.next .nav-link-card {
        text-align: left;
        /* Reset text align */
    }

    .nav-item.next .nav-dir {
        justify-content: flex-start;
        /* Reset align */
    }
}

/* =========================================
   Section Backgrounds & Layout
   ========================================= */
.section-outer {
    width: 100%;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Ensure inner block doesn't double up padding */
.section-outer .section-block {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Background Variations */

/* News/Home Section - Clean white with subtle dots */
.bg-pattern-dot {
    background-color: #ffffff;
    background-image: radial-gradient(circle, #e8e8e8 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Instructor Section - Warm and welcoming */
.bg-color-warm {
    background: linear-gradient(135deg, #fff8f0 0%, #fff0e6 100%);
}

/* Courses Section - Professional grid pattern */
.bg-pattern-check {
    background-color: #fafafa;
    background-image:
        linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Timetable Section - Soft blue gradient */
.bg-color-blue {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
}

/* Flow Section - Modern wave pattern */
.bg-pattern-diag {
    background-color: #f8fffe;
    background-image:
        repeating-linear-gradient(135deg,
            transparent,
            transparent 35px,
            rgba(0, 191, 111, 0.03) 35px,
            rgba(0, 191, 111, 0.03) 70px);
}

/* FAQ Section - Fresh green gradient */
.bg-color-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f9ed 100%);
}

/* Contact Section - Elegant geometric pattern */
.bg-pattern-geo {
    background-color: #fffbf5;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 159, 0, 0.02) 10px,
            rgba(255, 159, 0, 0.02) 20px),
        repeating-linear-gradient(-45deg,
            transparent,
            transparent 10px,
            rgba(255, 159, 0, 0.02) 10px,
            rgba(255, 159, 0, 0.02) 20px);
}

/* =========================================
   Mobile Hero Title Updates
   ========================================= */
@media screen and (max-width: 768px) {
    .hero-title {
        /* Force 2 lines: Fixed font size to ensure consistent 2-line display */
        font-size: 2.6rem !important;
        line-height: 1.3 !important;
        white-space: normal;
        width: 100%;
        margin: 0 auto 15px;
        word-break: keep-all;
        /* Prevent breaking Japanese characters mid-word */
        overflow-wrap: normal;
    }

    /* Ensure the container doesn't squeeze the text too much */
    .hero-overlay {
        width: 92%;
        max-width: 420px;
        padding: 30px 15px;
    }
}

/* Extra small devices - ensure 2 lines even on very small screens */
@media screen and (max-width: 400px) {
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.3 !important;
    }

    .hero-overlay {
        width: 95%;
        max-width: 360px;
        padding: 25px 12px;
    }
}

/* Specific Fix for Mobile Footer Address (Force Center) */
@media screen and (max-width: 900px) {
    .site-footer .footer-address {
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .site-footer .info-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Hamburger Menu Mobile Styles */
    .hamburger {
        display: flex !important;
    }

    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 20px;
        padding: 14px 20px;
    }

    .nav-link.mobile-only {
        display: block;
    }
}

/* ==========================================================================
   Hero Section V2 (Optimized & Fixed: Mobile Stacked)
   ========================================================================== */

:root {
    --color-slate-50: #f8fafc;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-slate-600: #475569;
    --color-slate-400: #94a3b8;
    --color-slate-200: #e2e8f0;
    --color-slate-700: #334155;
    --color-blue-50: #f0fdf4;
    /* emerald-50 */
    --color-blue-100: #dcfce7;
    /* emerald-100 */
    --color-blue-200: #bbf7d0;
    /* emerald-200 */
    --color-blue-500: #10b981;
    /* emerald-500 */
    --color-blue-600: #00bf6f;
    /* ECC Green Main */
    --color-blue-700: #009e5b;
    /* ECC Green Dark */
    --color-emerald-100: #d1fae5;
    --color-emerald-500: #34d399;
    /* emerald-400 */
    --color-yellow-100: #fef9c3;
    --font-hero: 'Inter', "Noto Sans JP", -apple-system, sans-serif;
    --color-orange-main: #FF8700;
}

.hero-section-v2 {
    position: relative;
    width: 100%;
    /* Mobile: Allow content to dictate height, but min-height for presence */
    min-height: 100vh;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    overflow: hidden;
    font-family: var(--font-hero);
    color: var(--color-slate-800);
    padding-top: 100px;
    /* Header clearance */
    padding-bottom: 60px;
    box-sizing: border-box;
}

.hero-section-v2 * {
    box-sizing: border-box;
}

/* Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.shape-blue {
    top: -10%;
    right: -10%;
    width: 80vw;
    height: 80vw;
    max-width: 600px;
    max-height: 600px;
    background-color: rgba(16, 185, 129, 0.15);
    /* Light Green/Emerald */
    animation: pulse 6s ease-in-out infinite;
}

.shape-emerald {
    bottom: -10%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 500px;
    max-height: 500px;
    background-color: rgba(52, 211, 153, 0.15);
    /* Another Green/Teal */
}

.shape-yellow {
    top: 20%;
    left: 10%;
    width: 120px;
    height: 120px;
    background-color: rgba(254, 249, 195, 0.5);
    filter: blur(40px);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

/* Main Container */
.hero-container-v2 {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;

    /* Mobile: Stack items using Grid to overlap */
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;

    z-index: 10;
    gap: 0;
    min-height: calc(100vh - 160px);
}

@media (min-width: 1024px) {
    .hero-container-v2 {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        /* Align vertically center */
        min-height: calc(100vh - 100px);
        /* Fill screen on desktop */
        padding: 0 40px;
        gap: 20px;
    }
}

/* Text Column */
.hero-text-col {
    /* Mobile: Front layer */
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    z-index: 20;

    width: 100%;
    max-width: 600px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

@media (min-width: 1024px) {
    .hero-text-col {
        text-align: left;
        width: auto;
        flex: 1;
        transform: translateX(-40px);
        /* Reset grid positioning for flex */
        grid-column: auto;
        grid-row: auto;
    }
}

/* Visual Column */
.hero-visual-col {
    /* Mobile: Background layer */
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    z-index: 10;
    pointer-events: none;
    /* Allow clicks to pass through on mobile */
    opacity: 0;


    position: relative;
    width: 100%;
    max-width: 600px;
    /* Constrain max width */
    height: 100%;
    /* Fill container */
    min-height: 400px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: scale(0.9);
    transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
}

@media (min-width: 1024px) {
    .hero-visual-col {
        flex: 1;
        height: 600px;
        /* Taller on desktop */
        margin: 0;
        transform: translateX(40px);
        opacity: 1;
        pointer-events: auto;
        display: block;
        /* Reset flex */
    }
}

/* Mounted State */
.is-mounted .hero-text-col {
    opacity: 1;
    transform: translate(0, 0);
}

.is-mounted .hero-visual-col {
    opacity: 0.3;
    /* Faint on mobile */
    transform: scale(1);
}

@media (min-width: 1024px) {
    .is-mounted .hero-visual-col {
        opacity: 1;
        /* Full opacity desktop */
        transform: translate(0, 0);
    }
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
    margin-bottom: 24px;
    border: 1px solid var(--color-blue-500);
    /* Now green */
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-blue-600);
    /* Now green */
    margin-right: 10px;
    box-shadow: 0 0 10px var(--color-blue-500);
}

.hero-badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-blue-600);
    /* Now green */
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Typography */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Responsive font size */
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-slate-900);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    /* Ensure text readability */
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-blue-600) 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-slate-600);
    margin-bottom: 40px;
    line-height: 1.8;
    /* Limit width for readability */
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
    .hero-description {
        margin-left: 0;
        font-size: 1.2rem;
        text-shadow: none;
    }

    .hero-title {
        text-shadow: none;
    }

    .hero-title .text-gradient {
        white-space: nowrap;
    }
}

/* Actions */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

/* Button Reset & Styles */
.hero-btn {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    white-space: nowrap;
}

.hero-btn:hover {
    transform: scale(1.05) translateY(-2px);
}

.btn-primary-custom {
    background: var(--color-orange-main);
    color: white !important;
    box-shadow: 0 10px 25px -5px rgba(255, 135, 0, 0.4);
}

.btn-primary-custom:hover {
    background: #e67a00;
    /* Slightly darker orange */
    box-shadow: 0 15px 35px -5px rgba(255, 135, 0, 0.5);
}

/* Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--color-slate-400);
}

@media (min-width: 1024px) {
    .hero-features {
        justify-content: flex-start;
    }
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-slate-600);
}

.hero-feature-item svg {
    color: var(--color-blue-500);
}

/*
   VISUAL CLUSTER (The tricky part)
   We use absolute positioning relative to .hero-visual-col
*/

/* Center Image */
.hero-main-img-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 250px;
    height: 250px;
}

@media (min-width: 1024px) {
    .hero-main-img-container {
        width: 320px;
        height: 320px;
    }
}

.hero-main-img-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hero-img-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover !important;
    /* Force crop */
    border: 4px solid white;
}

.hero-float-badge {
    position: absolute;
    bottom: 5%;
    right: 5%;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: bounce 3s ease-in-out infinite;
    z-index: 25;
}

/* Orbitals - Common */
.hero-orbital {
    position: absolute;
    z-index: 10;
}

.hero-orbital-inner {
    background: white;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Force specific sizes in children */
    display: flex;
}

.hero-orbital-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    border-radius: 50%;
    display: block;
}

/* Orbital Sizes & Positions (Responsive) */
/* On mobile, we might want to spread them out a bit more as background */

/* #1: Top Left */
.pos-1 {
    top: 5%;
    left: 5%;
}

.pos-1 .hero-orbital-inner {
    width: 90px;
    height: 90px;
}

/* #2: Top Right */
.pos-2 {
    top: 0%;
    right: 5%;
}

.pos-2 .hero-orbital-inner {
    width: 100px;
    height: 100px;
}

/* #3: Bottom Right (Large blur one) */
.pos-3 {
    bottom: 10%;
    right: 0%;
    z-index: 5;
}

.pos-3 .hero-orbital-inner {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 8px;
}

/* #4: Bottom Left */
.pos-4 {
    bottom: 5%;
    left: 10%;
}

.pos-4 .hero-orbital-inner {
    width: 80px;
    height: 80px;
}


/* Desktop Adjustments for Positions */
@media (min-width: 1024px) {
    .pos-1 {
        top: 15%;
        left: 0%;
    }

    .pos-1 .hero-orbital-inner {
        width: 120px;
        height: 120px;
    }

    .pos-2 {
        top: 5%;
        right: 5%;
    }

    .pos-2 .hero-orbital-inner {
        width: 140px;
        height: 140px;
    }

    .pos-3 {
        bottom: 15%;
        right: -5%;
    }

    .pos-3 .hero-orbital-inner {
        width: 160px;
        height: 160px;
    }

    .pos-4 {
        bottom: 5%;
        left: 5%;
    }

    .pos-4 .hero-orbital-inner {
        width: 100px;
        height: 100px;
    }
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-anim-1 {
    animation: float 6s ease-in-out infinite;
}

.float-anim-2 {
    animation: float 5s ease-in-out infinite 1s;
}

.float-anim-3 {
    animation: float 7s ease-in-out infinite 0.5s;
}

.float-anim-4 {
    animation: float 6s ease-in-out infinite 2s;
}

/* Connection Lines SVG */
.hero-conn-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Mobile Specific cleanups */
@media (max-width: 640px) {
    .hero-section-v2 {
        padding-top: 90px;
        min-height: auto;
    }

    .hero-container-v2 {
        padding: 0 16px;
    }

    .hero-main-img-container {
        width: 250px;
        height: 250px;
        /* Increase size slightly on mobile for background effect */
        opacity: 0.8;
    }

    /* Adjust orbitals for background spread */
    .pos-1 {
        top: 2%;
        left: -5%;
    }

    .pos-2 {
        top: -2%;
        right: -5%;
    }

    .pos-3 {
        bottom: 5%;
        right: -10%;
    }

    .pos-4 {
        bottom: 0%;
        left: -5%;
    }

    /* Make text more readable on top of images */
    .hero-title {
        font-size: 9.5vw;
        /* Maximize size while fitting viewport */
        white-space: nowrap;
        /* Prevent unwanted wrapping */
        letter-spacing: -0.03em;
        /* Tighten slightly to fit */
        line-height: 1.3;
    }
}

/* Move hover */
.group-hover-move {
    transition: transform 0.2s;
}

.group:hover .group-hover-move {
    transform: translateX(4px);
}

/* End of styles */