/* =========================================
   Base Styles & Variables
   ========================================= */
:root {
    /* Colors based on academiccamp.org */
    --primary-red: #D1232A;
    --primary-red-hover: #b01c22;
    --secondary-yellow: #FBC02D;
    --secondary-yellow-hover: #f9a825;
    
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-yellow-light: #FFFDE7;
    
    --text-main: #2D3748;
    --text-muted: #718096;
    
    /* Typography */
    --font-en: 'Montserrat', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
    
    /* Shapes */
    --radius-lg: 24px;
    --radius-pill: 9999px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 30px rgba(209, 35, 42, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ja);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ja);
    font-weight: 900;
    line-height: 1.3;
}

.hero-en {
    font-family: var(--font-en);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =========================================
   Typography & Utilities
   ========================================= */
.highlight-yellow {
    color: var(--secondary-yellow);
}

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

.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title span {
    display: block;
    font-family: var(--font-ja);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 700;
}

.section-title.text-left {
    text-align: left;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-ja);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 8px 15px rgba(209, 35, 42, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-yellow {
    background-color: var(--secondary-yellow);
    color: var(--text-main);
    box-shadow: 0 8px 15px rgba(251, 192, 45, 0.3);
}

.btn-yellow:hover {
    background-color: var(--secondary-yellow-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(251, 192, 45, 0.4);
}

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

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-red);
    line-height: 1;
}

.logo-main {
    font-family: var(--font-en);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-red);
    position: relative;
    transition: background 0.3s;
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    transition: transform 0.3s, top 0.3s;
    border-radius: 2px;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Open State */
.menu-open .hamburger { background: transparent; }
.menu-open .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-open .hamburger::after { transform: rotate(-45deg); top: 0; }

.mobile-only-btn { display: none; }

/* =========================================
   Hero Section
   ========================================= */
.hero {
    padding-top: 140px;
    position: relative;
    background-color: var(--bg-white);
    padding-bottom: 100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.hero-target {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.hero-dates {
    display: inline-block;
    background-color: var(--bg-yellow-light);
    color: var(--primary-red);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    border: 2px solid var(--secondary-yellow);
}

.hero-image-wrapper {
    position: relative;
    border-radius: 40px;
}

.blob-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-yellow);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: 0;
    animation: blob-anim 8s ease-in-out infinite;
}

@keyframes blob-anim {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: var(--shadow-md);
    transform: rotate(2deg);
    transition: transform 0.5s;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Wavy Dividers */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-bottom .shape-fill { fill: var(--bg-light); }
.wave-yellow .shape-fill { fill: var(--bg-yellow-light); }

/* =========================================
   Features Section
   ========================================= */
.features {
    padding: 100px 0 120px;
    position: relative;
}

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

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-img-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.feature-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-card:hover .feature-img-box img {
    transform: scale(1.05);
}

.feature-icon-box {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-box.bg-green { background-color: #E8F5E9; color: #2E7D32; }
.feature-icon-box.bg-blue { background-color: #E3F2FD; color: #1565C0; }

.feature-icon-box svg {
    width: 80px;
    height: 80px;
}

.feature-text {
    padding: 40px 30px;
    position: relative;
    flex-grow: 1;
}

.feature-num {
    position: absolute;
    top: -30px;
    right: 30px;
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 900;
    color: var(--bg-white);
    -webkit-text-stroke: 2px var(--primary-red);
    opacity: 0.3;
}

.feature-text h3 {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* =========================================
   Information Section
   ========================================= */
.info {
    padding: 100px 0;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px dashed #E2E8F0;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list strong {
    width: 150px;
    flex-shrink: 0;
    color: var(--primary-red);
    font-size: 1.1rem;
}

.info-list span {
    font-weight: 700;
    font-size: 1.1rem;
}

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

.cta-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   Briefing Section
   ========================================= */
.briefing-card {
    background: var(--bg-yellow-light);
    border: 2px solid var(--secondary-yellow);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.briefing-title {
    font-family: var(--font-en);
    color: var(--primary-red);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.briefing-title span {
    display: block;
    font-family: var(--font-ja);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.briefing-desc {
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.briefing-dates {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px 30px;
    max-width: 400px;
    margin: 0 auto 30px;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.briefing-dates ul {
    list-style: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.briefing-dates li {
    padding: 15px 0;
    border-bottom: 1px dashed #E2E8F0;
    display: flex;
    align-items: center;
}

.briefing-dates li:last-child {
    border-bottom: none;
}

.briefing-dates li .icon {
    color: var(--primary-red);
    margin-right: 15px;
    font-size: 1.3rem;
}

/* =========================================
   Schedule Section
   ========================================= */
.schedule {
    padding: 100px 0;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 4px;
    background: var(--secondary-yellow);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 100px;
}

.day-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 84px;
    height: 84px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(209, 35, 42, 0.3);
    z-index: 2;
    border: 4px solid var(--bg-light);
}

.timeline-content {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #1A202C;
    color: white;
    padding: 80px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    color: var(--secondary-yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.footer-logo-main {
    font-family: var(--font-en);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-logo-sub {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.rules-box {
    margin-top: 20px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
}

.rules-box strong {
    color: var(--secondary-yellow);
    display: block;
    margin-bottom: 10px;
}

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

.footer-links a {
    color: #A0AEC0;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #718096;
    font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero-container, .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 3rem; }
    .hero-content { order: 1; text-align: center; margin-bottom: 40px; }
    .hero-image-wrapper { order: 2; margin-bottom: 0; }
    
    .header-inner { flex-direction: row; height: 80px; padding: 0 24px; gap: 0; }
    
    .menu-toggle { display: block; }
    .desktop-only-btn { display: none; }
    .mobile-only-btn { display: inline-flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 99;
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-menu ul li a {
        font-size: 1.5rem;
    }

    .timeline::before { left: 30px; }
    .day-badge { width: 64px; height: 64px; font-size: 1rem; }
    .timeline-item { padding-left: 80px; }
}

@media (max-width: 768px) {
    .info-list li { flex-direction: column; }
    .info-list strong { margin-bottom: 5px; }
    .footer-inner { flex-direction: column; gap: 40px; text-align: center; }
    .footer-links { text-align: center; }
}
