#club-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999;

    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;

    transition:
        opacity .22s ease,
        transform .22s ease,
        visibility .22s;

    width: 85vw;
    height: 70vh;
    max-width: 1100px;
    max-height: 700px;
    box-sizing: border-box;
    overflow: hidden;

    background: #fff;
    border-radius: 20px;
    box-shadow:
        3px 3px 8px rgba(0, 0, 0, .10),
        3px 3px 12px rgba(0, 0, 0, .01);


    display: flex;

    flex-direction: column;
}

#club-modal.club-modal-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

#club-modal-bg {
    position: fixed;
    inset: 0;
    z-index: 998;

    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(2px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .22s ease,
        visibility .22s;
}

#club-modal-bg.club-modal-open {
    opacity: 1;
    visibility: visible;
}

.club-modal-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.club-modal-left {
    flex: 0 0 45%;
    text-align: left;
}

.club-modal-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .2rem;
    padding-right: 2px;
}

#club-modal h2 {
    position: relative;
    margin: 0 0 20px 10px;
    font-size: clamp(2rem, 1vw + 1.5rem, 2.75rem);
    font-weight: normal;
    font-family: "Maven Pro", "Zen Maru Gothic", sans-serif;
}

#club-modal h2::after {
    content: "";
    position: absolute;
    left: -8px;
    bottom: -8px;
    width: 95%;
    height: 6px;
    background: repeating-linear-gradient(-45deg,
            #6ad1c8,
            #6ad1c8 2px,
            #fff 2px,
            #fff 4px);
}

.club-catchphrase {
    margin-bottom: 35px;
    font-size: 1.3rem;
    font-family: "Maven Pro", "Zen Maru Gothic", sans-serif;
    transform: skewX(-15deg);
}

.club-catchphrase::before {
    content: "";
    display: inline-block;
    width: 2ch;
    height: 1px;
    margin-right: 4px;
    margin-bottom: 5px;
    vertical-align: middle;
    background: currentColor;
}

.club-cover {
    display: block;
    width: 95%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.club-section {
    margin-top: 28px;
}

.club-section:first-child {
    margin-top: 0;
}

.club-section h3 {
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 6px solid #6ad1c8;
    color: #00a79d;
    font-size: 1.2rem;
}

.club-section h4 {
    margin: 18px 0 8px;
    font-size: 1.05rem;
}

.club-section p {
    line-height: 1.6;
}

.club-record ul {
    padding-left: 30px;
}

.club-record li {
    margin: .2rem 0;
}

.club-day-table {
    width: 99%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    text-align: center;
}

.club-day-table th,
.club-day-table td {
    border: 1px solid #000;
    padding: 8px;
}

.club-day-table tr:nth-child(3) td {
    padding: 10px 0;
    font-size: 1.3rem;
}

col.sat {
    background: #e6f7ff;
}

col.sun {
    background: #ffe6e6;
}

.club-day-table tr> :nth-child(6),
.club-day-table tr> :nth-child(8),
.club-day-table tr:nth-child(2) th:nth-child(1),
.club-day-table tr:nth-child(2) th:nth-child(3) {
    border-right: 1px dotted #000;
}

.club-day-table th,
.club-day-table td {
    padding: 10px 8px;
    vertical-align: middle;
}

#club-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
}

#club-close:hover {
    color: #000;
}

.fade-in {
    animation: fadeIn .1s forwards;
}

.fade-out {
    animation: fadeOut .1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 767px) {
    #club-modal {
        width: 95vw;
        height: 80vh;
        padding: 10px 25px;
    }

    .club-modal-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding-left: 2px;
    }

    #club-modal h2 {
        margin: 0 0 20px;
    }

    .club-cover {
        width: 100%;
    }
}