/* ==========================================
   CSS Variables
========================================== */
:root {
    /* Colors */
    --primary-color: #9d8b6c;
    --primary-dark: #7d6b4c;
    --primary-light: #c1a87d;
    --secondary-color: #f5f3ef;
    --text-dark: #2c2c2c;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Fonts */
    --font-primary: 'Noto Serif JP', serif;
    --font-secondary: 'Cormorant Garamond', serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ==========================================
   Utility Classes
========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
    .pc-only {
        display: none;
    }
}

/* ==========================================
   Header
========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo h1 span {
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-gray);
}

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

.nav-list li a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}

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

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.btn-nav {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ==========================================
   Hero Section
========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-light) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%239d8b6c" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 72px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    font-size: 12px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--white);
    margin: 10px auto 0;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* ==========================================
   Buttons
========================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(157, 139, 108, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ==========================================
   Section Common Styles
========================================== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title {
    font-size: 42px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-description {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   About Section
========================================== */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.4;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.image-placeholder {
    background: var(--secondary-color);
    aspect-ratio: 4/3;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.image-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* ==========================================
   Features Section
========================================== */
.features {
    background: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==========================================
   Courses Section
========================================== */
.courses {
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.course-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--primary-color);
}

.course-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(157, 139, 108, 0.2);
}

.course-badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.course-badge.popular {
    background: linear-gradient(135deg, #d4af37 0%, #f8e994 100%);
    color: var(--text-dark);
}

.course-header {
    text-align: center;
    margin-bottom: 20px;
}

.course-header h3 {
    font-size: 26px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.course-subtitle {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.course-price {
    text-align: center;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 42px;
    font-weight: 600;
    color: var(--primary-color);
}

.price-tax {
    font-size: 14px;
    color: var(--text-gray);
    margin-left: 5px;
}

.course-duration {
    text-align: center;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.course-duration i {
    margin-right: 8px;
    color: var(--primary-color);
}

.course-content h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.course-content ul {
    margin-bottom: 30px;
}

.course-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
}

.course-content ul li:last-child {
    border-bottom: none;
}

.course-content ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.course-notes {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.course-notes h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.course-notes h4 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.course-notes ul li {
    padding: 8px 0;
    color: var(--text-gray);
    padding-left: 20px;
    position: relative;
}

.course-notes ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* ==========================================
   Instructor Section
========================================== */
.instructor {
    background: var(--secondary-color);
}

.instructor-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.instructor-text h3 {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.instructor-title {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.instructor-bio p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.instructor-credentials {
    margin-top: 30px;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
}

.instructor-credentials h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.instructor-credentials ul li {
    padding: 8px 0;
    color: var(--text-gray);
}

.instructor-credentials ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ==========================================
   Access Section
========================================== */
.access {
    background: var(--white);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.info-text p {
    color: var(--text-gray);
    line-height: 1.8;
}

.access-map {
    height: 100%;
    min-height: 400px;
}

.access-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-placeholder {
    background: var(--secondary-color);
    aspect-ratio: 4/3;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.map-placeholder small {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ==========================================
   Contact Section
========================================== */
.contact {
    background: var(--secondary-color);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-privacy {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 16px;
}

/* ==========================================
   Footer
========================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 500;
    color: var(--primary-light);
    line-height: 1.2;
    margin-bottom: 20px;
}

.footer-logo span {
    font-size: 14px;
    letter-spacing: 2px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-light);
    margin-right: 10px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ==========================================
   Back to Top Button
========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==========================================
   Responsive Design
========================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px var(--shadow);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-content,
    .instructor-content,
    .access-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}