/*
Theme Name: アテイン英語塾
Theme URI: https://example.com
Description: アテイン英語塾のカスタムWordPressテーマ
Author: Marina
Version: 20.0
License: GNU General Public License v2 or later
Text Domain: attain-english
*/
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #4a4a4a;
    background-color: #FFFBF5;
}

header {
    background-color: #F5E6D3;
    color: #6B5744;
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 18px; font-weight: bold; letter-spacing: 1px; }

nav ul { list-style: none; display: flex; gap: 2rem; }
nav a { color: #6B5744; text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: #D4A574; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #6B5744;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
    display: block;
}

.hero {
    color: #6B5744;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F9F3EA;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 240, 0.72);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-upload-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: 1.5px dashed #D4A574;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #8B7355;
    cursor: pointer;
    font-family: inherit;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: #6B5744; }
.hero-subtitle { font-size: 0.8em; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.hero-break { display: none; }

.badge {
    display: block;
    background: #FEFDFB;
    color: #6B5744;
    padding: 0.4rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1.5px solid #E8DCC8;
    text-align: center;
}

.cta-button {
    background-color: #D4A574;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(212,165,116,0.3); background-color: #C9996A; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem 2rem; }

section { margin-bottom: 4rem; scroll-margin-top: 120px; }
section:first-of-type { margin-top: 0; }

h2 {
    font-size: 25px;
    color: #8B7355;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: linear-gradient(90deg, #D4A574, #E8DCC8);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(139,115,85,0.08);
    border-top: 4px solid #E8DCC8;
}
.feature-card h3 { color: #8B7355; margin-bottom: 1rem; font-size: 15px; }

.highlight-box {
    background: linear-gradient(135deg, #F9F3EA 0%, #FFF8F0 100%);
    border-left: 5px solid #D4A574;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}
.highlight-box h3 { color: #8B7355; margin-bottom: 1rem; font-size: 15px; }

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.course-item {
    background: #FFFBF5;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #D4A574;
}
.course-item h4 { color: #8B7355; margin-bottom: 0.5rem; }
.price { font-size: 1.5rem; font-weight: bold; color: #A68968; margin: 0.5rem 0; }

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #D4A574;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    color: #8B7355;
    font-family: inherit;
}
.faq-question:hover { background: #FFFBF5; }
.faq-arrow {
    font-size: 0.9rem;
    color: #D4A574;
    flex-shrink: 0;
    margin-left: 1rem;
    display: inline-block;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-arrow { transform: rotate(0deg); }
.faq-answer {
    display: none;
    padding: 0 1.5rem 1.2rem 1.5rem;
    line-height: 1.9;
    color: #555;
}
.faq-item.open .faq-answer { display: block; }

.contact-section {
    background: #F9F3EA;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
}
.contact-info { margin-top: 2rem; font-size: 1.1rem; }
.contact-info p { margin: 1rem 0; }
.contact-info strong { color: #8B7355; font-size: 15px; }

footer {
    background-color: #8B7355;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 0;
}
@media (max-width: 768px) {
    .hamburger { display: flex; }

    header {
        padding: 0.7rem 0;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #F5E6D3;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 999;
    }
    nav.open { max-height: 400px; }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }
    nav ul li {
        border-bottom: 1px solid #E8DCC8;
    }
    nav ul li:last-child { border-bottom: none; }
    nav ul li a {
        display: flex;
        align-items: center;
        padding: 0 2rem;
        height: 52px;
    }

    .hero h1 { font-size: 25px; }
    .hero-subtitle { font-size: 20px; }
    .hero p { font-size: 15px; }
    .badge { font-size: 11px; padding: 0.3rem 0.2rem; white-space: nowrap; overflow: hidden; }
    h2 { font-size: 22px; }
    .contact-section { padding: 2rem 1rem; }
    .contact-info > div { margin-left: -0.5rem; margin-right: -0.5rem; }
    .cta-button { font-size: 15px; }
}
@media (max-width: 768px) { .hero-break { display: block; } }