/* ===== 基本設定: Pop & Friendly ===== */
:root {
    /* カラーパレット - 明るく元気な配色 */
    --primary-color: #ff6b6b;
    /* Coral Red */
    --primary-light: #ff8787;
    --secondary-color: #4ecdc4;
    /* Turquoise */
    --accent-color: #ffe66d;
    /* Bright Yellow */
    --accent-dark: #f7d794;

    /* ベースカラー */
    --text-main: #2d3436;
    /* Dark Grey */
    --text-light: #636e72;
    --text-white: #ffffff;

    /* 背景 */
    --bg-body: #fff9f0;
    /* Creamy White */
    --bg-white: #ffffff;
    --bg-pattern: radial-gradient(#ffeaa7 20%, transparent 20%);

    /* UI要素 */
    --shadow-pop: 4px 4px 0px rgba(0, 0, 0, 0.1);
    --shadow-hover: 6px 6px 0px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --border-width: 3px;

    /* アニメーション */
    --transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */

    /* サイズ */
    --header-height: 70px;

    /* フォント (Google Fonts読み込み済み前提) */
    --font-heading: 'Nunito', sans-serif;
    /* Rounder font */
    --font-body: 'Noto Sans JP', sans-serif;
}

/* ===== リセット & 基本スタイル ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    background-image: var(--bg-pattern);
    background-size: 20px 20px;
    line-height: 1.7;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== コンテナ ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* セクションタイトル - ポップな装飾 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 #fff;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* マーカー風の下線 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--accent-color);
    z-index: -1;
    border-radius: 4px;
    opacity: 0.6;
    transform: rotate(-1deg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 4rem;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ===== ヘッダー ===== */
/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    /* Changed from white to transparent */
    backdrop-filter: blur(0px);
    /* No blur initially */
    box-shadow: none;
    /* No shadow initially */
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: var(--transition);
    /* Smooth transition */
    border-bottom: none;
}

/* Scroll Header State */
.scroll-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: var(--border-width) solid var(--accent-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav-logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
    transform: rotate(15deg);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== ヒーローセクション ===== */
.home {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* 背景パターンはbodyに適用済みだが、ここは透過させる */
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.home-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.title-line {
    display: block;
    background: linear-gradient(120deg, transparent 0%, transparent 60%, var(--accent-color) 60%, var(--accent-color) 100%);
    background-size: 100% 40%;
    background-repeat: no-repeat;
    background-position: 0 90%;
}

.home-subtitle {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.home-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    display: inline-block;
    text-align: left;
    line-height: 1.8;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-pop);
    max-width: 800px;
}

.home-buttons {
    display: flex;
    gap: 1rem;
}

/* ボタン - ポップスタイル */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    transition: var(--transition);
    font-size: 1.2rem;
    border: var(--border-width) solid transparent;
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-pop);
    border-color: var(--text-main);
    /* Comic outline effect? maybe too much, lets stick to color */
    border: none;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background-color: #ff5252;
}

.button-secondary {
    background-color: var(--bg-white);
    color: var(--secondary-color);
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-pop);
}

.button-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.button-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.button-large {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.4);
}

.button-full {
    width: 100%;
}

/* ヒーロー画像 (Carousel) */
.home-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.carousel-container {
    width: 600px;
    height: 400px;
    /* Adjust aspect ratio as needed */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-pop);
    border: 5px solid var(--bg-white);
    background-color: var(--bg-white);
    transform: rotate(2deg);
    /* Keep playful rotation */
    transition: var(--transition);
}

.carousel-container:hover {
    transform: rotate(0) scale(1.02);
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-image {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: center;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}


/* 統計カード - ステッカースタイル */
.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: -3rem;
}

.stat-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-pop);
    border: 2px solid var(--text-main);
    transition: var(--transition);
}

.stat-card:nth-child(even) {
    transform: rotate(-1deg);
}

.stat-card:hover {
    transform: rotate(2deg) scale(1.05);
    /* Playful hover */
    box-shadow: var(--shadow-hover);
    z-index: 2;
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-card:nth-child(2) i {
    color: var(--secondary-color);
}

.stat-card:nth-child(3) i {
    color: #fdcb6e;
}

.stat-card:nth-child(4) i {
    color: #6c5ce7;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    line-height: 1;
}

.stat-card p {
    font-weight: 700;
    color: var(--text-light);
}

/* ===== About セクション ===== */
.about {
    background-color: var(--bg-body);
}

.about-content {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    background-color: var(--primary-light);
    color: var(--text-white);
    transform: translateY(-5px);
}

.feature-card:hover h3,
.feature-card:hover p {
    color: var(--text-white);
}

.feature-card:hover .feature-icon {
    background: var(--bg-white);
}

.feature-card:hover .feature-icon i {
    color: var(--primary-color);
}


.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-pop);
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--text-main);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ===== Events セクション ===== */
.events {
    background-color: var(--secondary-color);
    /* Colorful section */
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
}

.events .section-title {
    color: var(--text-white);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.events .section-title::after {
    background-color: var(--text-white);
}

.events .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.event-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    /* For stamp positioning */
}

/* Sold Out Stamp */
.sold-out-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 3rem;
    font-weight: 900;
    color: #e74c3c;
    /* Stamp Red */
    border: 5px solid #e74c3c;
    padding: 0.5rem 2rem;
    border-radius: 10px;
    z-index: 10;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.2rem;
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-header {
    background-color: #ffeaa7;
    /* Soft Yellow (Default for Regular) */
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Prevent stretching */
}

/* Pop Event Header Styles */
.event-header-pop {
    background-color: #ffeaa7;
    /* Soft Yellow default */
    padding: 1.2rem;
    /* More breathing room */
    display: flex;
    align-items: center;
    /* Vertically center date with text block */
    gap: 1rem;
    border-bottom: 5px dotted #fff;
    /* Cute polka dot line */
    border-radius: 20px 20px 0 0;
    /* Rounded top */
}

.pop-info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    /* Closely stacked */
    flex: 1;
}

/* Toggle Button */
.event-toggle-btn {
    width: 100%;
    border: none;
    background: #ffeaa7;
    /* Same as header base */
    color: var(--text-light);
    /* Or main text */
    font-weight: 700;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    border-radius: 0 0 20px 20px;
    display: none;
    /* Hidden on Desktop */
}

/* Match header color for button */
.event-card:nth-child(4) .event-toggle-btn {
    background: #a29bfe;
}

.event-toggle-btn:hover {
    filter: brightness(0.95);
}

.event-toggle-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.event-toggle-btn.is-active i {
    transform: rotate(180deg);
}

.event-toggle-btn.is-active {
    border-radius: 0;
    /* Remove bottom radius when open */
    border-bottom: 5px dotted #fff;
    /* Add separator */
}

/* Details Wrapper */
.event-details {
    display: block;
    /* Visible on Desktop */
}

/* Specific header colors per card */
.event-card:nth-child(4) .event-header-pop {
    background-color: #a29bfe;
    /* Purple for Night */
}

.pop-date {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #e84393;
    /* Deep Pink */
    background: #fff0f6;
    /* Very light pink bg */
    padding: 0.5rem 1rem;
    border-radius: 12px;
    /* Soft rounded square */
    border: 3px solid #e84393;
    /* Solid pop border */
    box-shadow: 4px 4px 0 #fdcb6e;
    /* Hard yellow shadow */
    transform: rotate(-3deg);
    text-align: center;
    line-height: 1;
    min-width: 80px;
    /* Ensure uniform width */
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: transform 0.2s ease;
}

.pop-date:hover {
    transform: rotate(0) scale(1.05);
    /* Interactive pop */
}

.pop-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    text-shadow: 2px 2px 0 #fff;
    /* Pop outline effect */
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* Adjustments for badge in new layout */
.event-badge {
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
    border-radius: 20px;
    transform: rotate(0deg);
    /* Remove tilt for stacked look? Or keep slight? Let's keep 0 for clean stack */
    align-self: flex-start;
    font-size: 0.85rem;
}

.event-card:nth-child(4) .event-header {
    background-color: #a29bfe !important;
    /* Pastel Purple (For Night) */
}

.event-badge {
    background-color: #fff;
    color: #000;
    padding: 0.1rem 0.5rem;
    border-radius: 15px;
    font-weight: 800;
    font-size: 0.8rem;
    /* min-width removed */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-badge.featured {
    /* Keep shadow or other effects, but use base colors */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



.event-date {
    background-color: var(--bg-white);
    padding: 0.5rem;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.date-day {
    display: block;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-main);
}

.date-month {
    font-size: 0.7rem;
    font-weight: 700;
    display: block;
    /* Ensure it takes its own line */
    margin-bottom: 0.2rem;
}

.event-body {
    padding: 1.5rem;
    flex: 1;
}

.event-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-info {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.event-divider {
    border: none;
    border-top: 2px dashed #dfe6e9;
    margin: 1rem 0;
}

.event-sub-info {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.event-sub-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.event-footer {
    border-top: 2px dashed #dfe6e9;
    display: flex;
    justify-content: center;
    /* Center button */
    align-items: center;
    padding-top: 1rem;
    /* Add breathing room */
}

/* ===== Games セクション ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.game-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 3px solid #dfe6e9;
    transition: var(--transition);
}

.game-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-pop);
    transform: translateY(-5px);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1));
}

.game-type {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-main);
    padding: 0.2rem 1rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.9rem;
}

.game-meta i {
    color: var(--secondary-color);
}

/* ===== Contact/SNS セクション ===== */
.contact {
    background-color: #f8fafc;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 0;
}

.contact-card {
    background: var(--bg-white);
    padding: 3rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Soft shadow like image */
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Gradient Icons */
.contact-icon-wrapper i {
    font-size: 3rem;
    background: -webkit-linear-gradient(45deg, #ff9a9e 0%, #a18cd1 100%);
    /* Pink to Purple/Blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Specific gradients matching brand colors if needed, but generic gradient looks closer to image */
.contact-card:nth-child(2) .contact-icon-wrapper i {
    background: -webkit-linear-gradient(45deg, #ff9a9e 0%, #a18cd1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== Join セクション ===== */
.join-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    flex: 1;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-pop);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid var(--bg-white);
}

.step-icon {
    font-size: 3rem;
    margin: 1.5rem 0 1rem;
    color: var(--secondary-color);
}

.step-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--text-light);
}

/* Join Details (Flow & Fees) */
.join-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.subsection-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.subsection-title i {
    color: var(--secondary-color);
}

/* Timeline */
.join-flow {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.timeline {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-pop);
    border: 3px solid #eee;
    flex: 1;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-left: 3px solid var(--primary-light);
    padding-left: 1.5rem;
    position: relative;
}

.timeline-item:last-child {
    border-left: 3px solid transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
}

.timeline-time {
    font-weight: 800;
    color: var(--primary-color);
    min-width: 60px;
    padding-top: 3px;
}

.timeline-content {
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-content strong {
    color: var(--text-main);
    font-size: 1.05rem;
}

.timeline-content small {
    color: var(--text-light);
    display: block;
    margin-top: 0.3rem;
}

.timeline-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
    padding-left: 0.5rem;
}

.event-card:nth-child(4) .event-header {
    background-color: #ffeaa7;
    /* Soft Yellow */
}

.event-card:nth-child(5) .event-header {
    background-color: #74b9ff;
    /* Soft Blue */
}

/* Fee Cards */
.join-fees-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fee-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    flex: 1;
}

.fee-card {
    background: var(--bg-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-pop);
    border: 3px solid var(--accent-color);
    transition: var(--transition);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fee-card:hover {
    transform: translateY(-5px);
}

.main-fee {
    background-color: #fff9e6;
    border-color: var(--accent-color);
}

.student-fee {
    background-color: #e0fbfd;
    border-color: var(--secondary-color);
}

.fee-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.fee-price {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.fee-unit {
    font-size: 1rem;
    margin-left: 5px;
}

/* Join Form Wrapper */
.join-form-container {
    display: block;
    margin-top: 2rem;
}

.form-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}


.join-form {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 3px solid #e2e8f0;
}

.form-group label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 2px solid #dfe6e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    background-color: #f0fffc;
}

/* ===== フッター ===== */
.footer {
    background-color: var(--text-main);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: scale(1.1) rotate(10deg);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    border-radius: 20px;
    border: none;
    padding: 0.8rem 1.2rem;
}

.newsletter-form button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
}

/* ===== レスポンシブ ===== */
@media screen and (max-width: 968px) {
    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-buttons {
        justify-content: center;
    }

    .home-img-decoration {
        margin: 0 auto;
    }

    .home-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-features,
    .events-grid,
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .join-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .join-form-container {
        grid-template-columns: 1fr;
    }

    .step-arrow {
        transform: rotate(90deg);
        justify-content: center;
        margin: 1rem 0;
    }

    .join-steps {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        top: -100vh;
        left: 0;
        transition: 0.4s;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.show {
        top: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-toggle,
    .nav-close {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .home-stats,
    .about-features,
    .events-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--bg-body);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    /* Scroll inside modal if too tall */
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: sticky;
    top: 0;
    right: 0;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* All Games Grid */
.all-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.game-tile {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.game-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
}

.game-tile h4 {
    padding: 0.8rem 0.5rem;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
    border-top: 1px solid #eee;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem !important;
        /* Maximize width */
    }

    .home-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .home-data {
        display: contents;
        /* Unwrap layout to reorder */
    }

    .home-title {
        order: 1;
        font-size: 3.2rem;
        /* Larger title requested */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .home-subtitle {
        order: 2;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .home-description {
        order: 3;
        padding: 1.5rem;
        font-size: 1rem;
        margin-bottom: 1rem;
        display: none;
        /* Hide on mobile */
    }

    .home-img {
        order: 4;
        /* Images between text and buttons ?? Or swap? User said swap buttons and images. */
        /* If User wants "Images" then "Buttons": Order 4 and 5 is correct if text is 1,2,3. */
        /* Wait, "5 images and 'Join' 'Event Info' swap" implies Images were below/above and now opposite. */
        margin: 1rem 0;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .home-buttons {
        order: 5;
        flex-direction: row;
        /* Horizontal buttons */
        gap: 0.5rem;
        width: 100%;
    }

    .fee-cards-wrapper {
        flex-direction: row !important;
        /* Force horizontal on mobile */
        gap: 1rem;
    }

    .button {
        width: auto;
        flex: 1;
        /* Equal width */
        margin: 0;
        text-align: center;
        /* Adjust padding if needed */
        font-size: 1rem;
        padding: 1rem;
    }

    .home-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2x2 grid */
    }

    /* Ensure other grids are full width or 2 cols where appropriate */
    /* Ensure other grids are full width or 2 cols where appropriate */
    .about-features,
    .events-grid {
        grid-template-columns: 1fr;
        /* Single column on tablet/mobile by default */
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns for games on mobile */
        gap: 1rem;
    }

    .about-content {
        padding: 1.5rem;
        /* Reduce padding on mobile */
    }

    .sold-out-stamp {
        font-size: 2.6rem;
        /* Increased from 2rem */
        border-width: 4px;
        /* Slightly thicker border */
        padding: 0.3rem 1.5rem;
    }

    .game-card {
        padding: 1rem;
        /* Compact padding for 2 cols */
    }

    .game-icon {
        font-size: 3rem;
        /* Smaller icon */
        margin-bottom: 0.5rem;
    }

    .game-unit {
        display: none;
        /* Hide units on mobile */
    }

    /* Event Header visibility */
    .event-badge {
        font-size: 0.9rem;
        /* Increased from 0.8rem or default */
        padding: 0.2rem 0.6rem;
    }

    .date-day {
        font-size: 2rem;
        /* Increased from 1.5rem */
    }

    .date-month {
        font-size: 0.9rem;
        /* Increased from 0.7rem */
    }

    .carousel-container {
        width: 100%;
        /* Fix overflow */
        height: 250px;
        /* Adjust height for mobile */
        transform: rotate(0);
        /* Remove rotation on mobile */
        margin: 0 auto;
    }

    /* Accordion Mobile Logic */
    .event-toggle-btn {
        display: block;
        /* Show toggle on mobile */
    }

    .event-details {
        display: none;
        /* Hidden by default on mobile */
    }

    .event-details.is-open {
        display: block;
        /* Show when toggled */
    }

    /* Mobile Menu Styles */
    .nav-menu {
        position: fixed;
        background-color: #ffffff !important;
        /* Force white background */
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
        padding: 4rem 1rem;
        transition: .4s;
        z-index: 2000;
        /* Higher than header */
        flex-direction: column;
        justify-content: flex-start;
        visibility: hidden;
        /* Hide by default */
        opacity: 0;
    }

    .nav-menu.show-menu {
        right: 0;
        visibility: visible;
        /* Show when active */
        opacity: 1;
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2rem;
        background-color: white;
        padding: 2rem;
    }

    .nav-toggle,
    .nav-close {
        display: block;
        z-index: 2100;
        /* Highest priority */
        color: var(--text-main);
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
        /* Larger hit area */
        cursor: pointer;
    }
}

@media screen and (max-width: 480px) {
    .nav-logo {
        font-size: 1.3rem;
        /* Increased from 1.1rem */
    }

    .nav-logo i {
        font-size: 1.5rem;
    }

    .header {
        padding: 0 0.5rem;
    }

    .event-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }

    .date-day {
        font-size: 1.2rem;
    }

    .all-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .home-title {
        font-size: 11vw;
        /* Reduced from 13vw to prevent bad wrap */
        line-height: 1.1;
    }
}