/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1d1d1f;
    background-color: #ffffff;
    font-size: 16px;
    text-size-adjust: none;
}

/* ===== DESIGN RULE COLORS ===== */
:root {
    --primary-red: #E60033;
    --secondary-navy: #003366;
    --light-gray: #F2F2F2;
    --accent-orange: #FF9900;
    --white: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #666666;
    --text-caption: #979797;
    --border-gray: #EEEEEE;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, var(--primary-red), #ff4757);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 12px rgba(230, 0, 51, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: none;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-orange);
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu {
    display: none;
    background-color: var(--primary-red);
    padding: 16px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-gray), #f8f9fa);
    padding: 80px 0;
    text-align: center;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    animation: hero-fade 18s infinite;
    will-change: opacity, transform;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.85) 55%,
        rgba(255, 255, 255, 0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(238, 238, 238, 0.9);
    border-radius: 20px;
    padding: 40px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.hero-logo {
    margin-bottom: 32px;
}

.hero-logo-img {
    max-width: 90%;
    width: 500px;
    height: auto;
    max-height: 200px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.hero-logo-img:hover {
    transform: scale(1.02);
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hero-main {
    display: block;
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-navy);
    margin-bottom: 8px;
}

.hero-brand {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-red);
}

.hero-message {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .hero {
        padding: 60px 0;
    }

    .hero-content {
        padding: 32px 16px;
        border-radius: 16px;
    }
    
    .hero-logo-img {
        max-width: 95%;
        width: 300px;
        max-height: 120px;
    }
    
    .hero-main {
        font-size: 24px;
    }
    
    .hero-brand {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@keyframes hero-fade {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }
    8% {
        opacity: 1;
    }
    33% {
        opacity: 1;
        transform: scale(1.06);
    }
    41% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        animation: none;
        opacity: 0;
        transform: none;
    }

    .hero-slide:nth-child(1) {
        opacity: 1;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-height: 44px;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background-color: #cc002b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 51, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 51, 0.15);
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 767px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}

/* ===== SUMMER CAMPAIGN ===== */
.summer-campaign {
    background-color: var(--light-gray);
}

.campaign-message {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
    font-style: italic;
}

.courses-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.course-card.orange {
    border-left-color: var(--accent-orange);
}

.course-card.green {
    border-left-color: #4CD964;
}

.course-card.blue {
    border-left-color: #007AFF;
}

.course-card.red {
    border-left-color: var(--primary-red);
}

.course-card.purple {
    border-left-color: #5856D6;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.course-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.course-badge {
    background-color: var(--accent-orange);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.course-badge.new {
    background-color: #FF3B30;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.course-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.course-details {
    font-size: 14px;
    color: var(--text-caption);
    margin-bottom: 16px;
}

.course-pricing {
    margin-bottom: 8px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
}

.price-option.highlight {
    background-color: rgba(230, 0, 51, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(230, 0, 51, 0.2);
}

.price-option.highlight .price-label {
    flex: 1;
}

.price-option.highlight .price-original,
.price-option.highlight .discount,
.price-option.highlight .price-value {
    margin-left: 8px;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

.price-original {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 600;
    margin-left: 8px;
}

.price-note {
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 600;
    text-align: center;
}

.campaign-notes {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
    margin-bottom: 32px;
}

.campaign-notes p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.campaign-notes p:last-child {
    margin-bottom: 0;
}

.schedule-links {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--primary-red);
}

.schedule-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.schedule-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SCHEDULE SECTION ===== */
.schedule {
    background: white;
}

.schedule-content {
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-overview {
    display: grid;
    gap: 20px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .schedule-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .schedule-overview {
        grid-template-columns: repeat(3, 1fr);
    }
}

.schedule-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.schedule-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.schedule-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

.schedule-card-content {
    margin-top: 8px;
}

.schedule-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.schedule-time {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.schedule-download {
    background: var(--light-gray);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.schedule-download-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.schedule-download-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===== RESULTS SECTION ===== */
.results {
    background: white;
}

.results-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.result-card {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-red);
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.result-highlight {
    margin-bottom: 16px;
}

.school-name.highlight {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

.result-list {
    list-style: none;
    margin-bottom: 16px;
}

.result-list li {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.result-list li::before {
    content: "•";
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.result-note {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.feature-icon .material-icons {
    color: white;
    font-size: 24px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    background: white;
}

.gallery-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    text-align: center;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--light-gray);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon .material-icons {
    color: white;
    font-size: 20px;
}

.contact-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-details p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-details a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary-navy);
    color: white;
    padding: 32px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    border-radius: 4px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
}
