/* Global Styles */
:root {
    --primary-color: #0d254c;
    /* Deep Navy */
    --secondary-color: #c62828;
    /* Strong Red */
    --accent-color: #fca311;
    /* Gold accent for subtle details */
    --bg-color: #f8f8f6;
    /* Warm Off-white */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--secondary-color);
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
}

.nav-link.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

.nav-link.cta-button::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Header height */
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
}

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

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(198, 40, 40, 0.3);
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
}

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

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

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #001021 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 20px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Sections */
.section {
    padding: 100px 0;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

.subtitle-en {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 5px;
    letter-spacing: normal;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Members Section */
.members {
    background-color: #ffffff;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-img-placeholder {
    height: 250px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: #bdbdbd;
}

.member-info {
    padding: 20px;
    position: relative;
}

.member-number {
    position: absolute;
    top: -30px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-position {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Schedule Section */
.schedule-list {
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary-color);
}

.game-card.win {
    border-left-color: var(--secondary-color);
}

.game-card.lose {
    border-left-color: #757575;
}

.game-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-color);
    padding: 10px 15px;
    border-radius: 10px;
    min-width: 80px;
}

.game-date .month {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.game-date .day {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.game-date .weekday {
    font-size: 0.7rem;
    color: var(--text-light);
}

.game-info {
    flex: 1;
}

.game-info .category {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 4px;
    background-color: #eee;
    color: #666;
    margin-bottom: 5px;
    display: inline-block;
}

.game-info .opponent {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.score {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.status {
    font-weight: 700;
    font-size: 0.9rem;
}

.status.upcoming {
    color: var(--primary-color);
}

.status.win-tag {
    color: var(--secondary-color);
}

.status.lose-tag {
    color: #757575;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #001021;
    color: rgba(255, 255, 255, 0.4);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 1001;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        transition: 0.3s;
    }

    .hero {
        padding-top: 100px;
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-decoration {
        width: 100%;
        height: 40%;
        bottom: 0;
        top: auto;
        clip-path: polygon(0 20%, 100% 0, 100% 100%, 0% 100%);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }


    /* Modal Styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        z-index: 2000;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 1;
        visibility: visible;
        transition: all 0.3s ease;
    }

    .modal-overlay.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .modal-content {
        background: var(--white);
        width: 90%;
        max-width: 500px;
        border-radius: 20px;
        padding: 30px;
        position: relative;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
        transform: translateY(0);
        transition: transform 0.3s ease;
    }

    .modal-overlay.hidden .modal-content {
        transform: translateY(30px);
    }

    .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2rem;
        cursor: pointer;
        color: #999;
        transition: color 0.3s;
    }

    .close-modal:hover {
        color: var(--secondary-color);
    }

    .modal-header {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
        border-bottom: 2px solid #eee;
        padding-bottom: 20px;
    }

    .modal-number {
        font-family: var(--font-heading);
        font-size: 2rem;
        font-weight: 700;
        color: var(--secondary-color);
        background: #f0f0f0;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 3px solid var(--primary-color);
    }

    .modal-name {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        color: var(--primary-color);
        line-height: 1.2;
    }

    .modal-position {
        color: var(--text-light);
        font-weight: 500;
    }

    .stats-title {
        font-family: var(--font-heading);
        color: var(--primary-color);
        font-size: 1.2rem;
        border-left: 4px solid var(--secondary-color);
        padding-left: 10px;
        margin-bottom: 15px;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        text-align: center;
    }

    .stat-item {
        background: var(--bg-color);
        padding: 10px;
        border-radius: 10px;
    }

    .stat-label {
        display: block;
        font-size: 0.8rem;
        color: var(--text-light);
        font-weight: 700;
        margin-bottom: 5px;
    }

    .stat-value {
        display: block;
        font-family: var(--font-heading);
        font-size: 1.4rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .member-card {
        cursor: pointer;
        /* Indicate clickability */
    }