/* ==========================================================================
   CSS Variables & Settings (Premium/Refined Theme)
   ========================================================================== */
:root {
    /* Elegant Color Palette */
    --primary-color: #B8860B;
    /* Elegant Gold / Dark Goldenrod */
    --primary-hover: #996B00;
    --secondary-color: #2C3E50;
    /* Deep sophisticated Navy/Charcoal */
    --accent-color: #D4A373;
    /* Soft warm accent */

    --text-main: #3E3E3E;
    --text-muted: #6B6B6B;
    --text-light: #ffffff;

    --bg-main: #FDFCF9;
    /* Very subtle warm paper white */
    --bg-sub: #F5F3EC;
    /* Soft beige for alternating sections */
    --bg-card: #ffffff;

    --font-family-base: 'Noto Sans JP', sans-serif;
    --font-family-heading: 'Shippori Mincho', serif;
    /* Elegant Mincho for headings */
    --base-font-size: 17px;
    --line-height: 1.9;

    --border-radius: 8px;
    /* Slightly sharper, more sophisticated corners */
    --border-radius-lg: 16px;

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);

    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--base-font-size);
    line-height: var(--line-height);
    color: var(--text-main);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.05em;
    word-break: auto-phrase;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-padding {
    padding: 100px 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 140px 0;
    }
}

.section-bg {
    background-color: var(--bg-sub);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.5;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.8rem;
    }
}

.section-title span {
    color: var(--primary-color);
    font-size: 1.3em;
    font-family: 'Shippori Mincho', serif;
}

.section-subtitle,
.section-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    margin-top: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-family: var(--font-family-base);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(184, 134, 11, 0.3);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.2rem;
}

.btn-nav {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    white-space: nowrap;
}

.btn-nav:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(253, 252, 249, 0.95);
    backdrop-filter: blur(15px);
    transition: all var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 20px 0;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
}

.logo a {
    font-family: var(--font-family-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.nav {
    display: none;
}

@media (min-width: 992px) {
    .nav {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .nav-list {
        display: flex;
        gap: 20px;
    }

    .nav-list a {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--secondary-color);
        white-space: nowrap;
        position: relative;
    }

    .nav-list a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: -4px;
        left: 0;
        background-color: var(--primary-color);
        transition: width var(--transition);
    }

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

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

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 992px) {
    .hamburger {
        display: none;
    }
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 999;
    padding: 100px 40px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    transition: right var(--transition);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-list a {
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-family-heading);
    display: block;
    color: var(--secondary-color);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-mobile-nav {
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-top: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(253, 252, 249, 0.95) 0%, rgba(253, 252, 249, 0.85) 45%, rgba(253, 252, 249, 0.2) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-box {
    max-width: 700px;
    padding: 50px 0;
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-bottom: 30px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 20px;
    letter-spacing: 0.05em;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-desc {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(253, 252, 249, 0.9) 0%, rgba(253, 252, 249, 0.98) 100%);
    }

    .hero-text-box {
        padding: 40px 20px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-sm);
        border: 1px solid rgba(255, 255, 255, 0.6);
        text-align: center;
        margin: 0 auto;
    }

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

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-card {
    background: transparent;
    padding: 40px 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    transition: all var(--transition);
    background: white;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(184, 134, 11, 0.2);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.about-card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.feature-item {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 100px;
    align-items: center;
}

.feature-item.reverse {
    flex-direction: column;
}

@media (min-width: 768px) {
    .feature-item {
        flex-direction: row;
        margin-bottom: 140px;
        gap: 80px;
    }

    .feature-item.reverse {
        flex-direction: row-reverse;
    }

    .feature-text,
    .feature-img-box {
        flex: 1;
    }
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-num {
    font-family: var(--font-family-heading);
    font-size: 5rem;
    font-weight: 500;
    color: rgba(184, 134, 11, 0.1);
    line-height: 1;
    display: block;
    margin-bottom: -20px;
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    background: linear-gradient(135deg, #ffffff 0%, #FAF8F5 100%);
}

.feature-img-placeholder {
    font-family: var(--font-family-heading);
    font-size: 1.4rem;
    color: var(--secondary-color);
}

/* ==========================================================================
   Courses Section
   ========================================================================== */
.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter var(--transition);
}

.course-card:hover .course-img {
    filter: brightness(1.05);
}

.course-content {
    padding: 35px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-tag {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    align-self: flex-start;
    letter-spacing: 0.05em;
}

.course-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

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

.course-points {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 25px;
}

.course-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.course-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* ==========================================================================
   Voices Section
   ========================================================================== */
.voice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .voice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.voice-card {
    background: white;
    padding: 45px 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.voice-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    border: 3px solid var(--bg-sub);
}

.voice-name {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.voice-stars {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.voice-headline {
    font-size: 1.15rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.voice-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: left;
    line-height: 1.8;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
        /* To make the featured card stand out */
    }
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

@media (min-width: 992px) {
    .pricing-card.featured {
        transform: scale(1.05);
    }

    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-5px);
    }
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: var(--bg-main);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.pricing-card.featured .pricing-header {
    background-color: var(--primary-color);
    color: white;
}

.pricing-step {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.pricing-card.featured .pricing-step {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-title {
    font-family: var(--font-family-heading);
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.pricing-card.featured .pricing-title {
    color: white;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-sm);
}

.pricing-body {
    padding: 40px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-price {
    text-align: center;
    font-size: 2.8rem;
    font-family: var(--font-family-base);
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1;
}

.pricing-price .currency {
    font-size: 1.4rem;
    vertical-align: super;
    margin-right: 2px;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.pricing-features {
    margin-top: auto;
}

.pricing-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.faq-question {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    transition: background var(--transition);
}

.faq-question:hover {
    background: #FAFAFA;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-family: var(--font-family-base);
    font-weight: 500;
    color: var(--secondary-color);
    padding-right: 20px;
    letter-spacing: 0.02em;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    transition: transform var(--transition);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 0 30px 30px 30px;
    max-height: 500px;
}

.faq-item.active .faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

@media (min-width: 768px) {
    .contact-methods {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .contact-phone,
    .contact-form-trigger {
        flex: 1;
    }

    .divider {
        width: 1px;
        height: 120px;
        background: rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .divider::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.1);
    }
}

.contact-label {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.phone-num {
    display: block;
    font-family: var(--font-family-heading);
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.phone-num:hover {
    color: var(--primary-hover);
}

.phone-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    font-family: var(--font-family-heading);
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Typography Adjustments
   ========================================================================== */
@media (min-width: 768px) {
    .sp-only {
        display: none !important;
    }

    .section-title br,
    .feature-title br,
    .course-title br {
        display: none;
    }
}