.teamDetail__header {
    padding-block: 100px 80px;
}

.teamDetail__headerColumn {
    display: grid;
    grid-template-columns: 240px auto;
    align-items: center;
    gap: 40px;
    position: relative;
}

.teamDetail__headerColumn::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 331px;
    height: 302px;
    background-image: url(../../images/bg_topics.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

.teamDetail__headerBody {
    position: relative;
    z-index: 1;
}

.teamDetail__headerLogo {
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.teamDetail__headerName--en {
    font-size: 56px;
    font-weight: 400;
    font-family: var(--familyLeagueGothic);
    letter-spacing: 0.04em;
    line-height: 1;
}

.teamDetail__headerName--ja {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.8;
}

.teamDetail__player {
    padding-bottom: 80px;
}

.teamDetail__playerList {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.teamDetail__noPlayers,
.teamDetail__noNews {
    font-size: 16px;
    font-weight: 500;
    color: var(--colorWhite);
}

.teamDetail__playerListBody {
    background: var(--colorWhite);
    color: var(--colorBlack);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px 16px 16px;
}

.teamDetail__playerListItem .commonLink--orange {
    width: fit-content;
    margin: auto 0 0 auto;
}

.teamDetail__playerListFooter {
    margin-top: 40px;
}

.teamDetail__playerListFooter .commonLink--target {
    margin: 80px auto 0;
}

.teamDetail__playerListFooterText {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 80px;
}

.teamDetail__playerListFooterText::before {
    content: "";
    width: 1px;
    height: 20px;
    transform: rotate(-45deg);
    background: var(--colorWhite);
}

.teamDetail__playerListFooterText::after {
    content: "";
    width: 1px;
    height: 20px;
    transform: rotate(45deg);
    background: var(--colorWhite);
}

.teamDetail__playerListFooterSocial {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.teamDetail__playerListNum {
    font-size: 48px;
    font-family: var(--familyBebasNeue);
    letter-spacing: 0.04em;
    line-height:34px;
    margin-top: 8px;
}

.teamDetail__playerListName--ja {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.teamDetail__playerListName--en {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.teamDetail__playerListImg img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.teamDetail__news {
    padding-bottom: 40px;
}

@media screen and (max-width: 767px) {
    .teamDetail__header {
        padding-block: 40px 64px;
    }
    
    .teamDetail__headerColumn {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 24px;
    }

    .teamDetail__headerLogo {
        height: unset;
        width: 200px;
        margin-inline: auto;
    }

    .teamDetail__headerColumn::before {
        top: unset;
        bottom: -132px;
        right: -32px;
        width: 167px;
        height: 150px;
    }

    .teamDetail__headerName--en {
        font-size: 40px;
    }

    .teamDetail__playerList {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .teamDetail__playerListBody {
        padding: 8px 10px 8px 9px;
        gap: 5px 8px;
        flex-wrap: wrap;
    }
    
    .teamDetail__playerListNum {
        font-size: 40px;
        flex-shrink: 0;
    }

    .teamDetail__playerListName {
        flex: 1;
    }

    .teamDetail__playerListItem .commonLink--orange {
        width: 100%;
        margin: 4px 0 0 0;
        text-align: right;
    }

    .teamDetail__playerListName--ja {
        font-size: 14px;
    }

    .teamDetail__playerListName--en {
        font-size: 10px;
    }

    .teamDetail__playerListFooter {
        flex-wrap: wrap;
        gap: 20px;
    }
}


/* Modal Styles */
.p-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.p-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

.p-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--colorWhite);
    width: 90%;
    max-width: 1080px;
    padding: 40px;
}

.p-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: var(--colorWhite);
    font-family: var(--familyBebasNeue);
    font-size: 16px;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-modal__closeIcon {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
    top: -3px;
}

.p-modal__closeIcon::before,
.p-modal__closeIcon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--colorWhite);
}

.p-modal__closeIcon::before {
    transform: rotate(45deg);
}

.p-modal__closeIcon::after {
    transform: rotate(-45deg);
}

.p-modal__body {
    display: grid;
    grid-template-columns: 43.3% auto;
    gap: 40px;
    align-items: center;
}

.p-modal__img img {
    object-fit: cover;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}

.p-modal__nameGroup {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.p-modal__number {
    font-family: var(--familyBebasNeue);
    font-size: 56px;
    line-height: 1;
    margin-top: 8px;
    color: var(--colorBlack);
}

.p-modal__nameJa {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.6;
    color: var(--colorBlack);
}

.p-modal__nameEn {
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.8;
    color: var(--colorBlack);
}

.p-modal__table {
    width: 100%;
    border-collapse: collapse;
}

.p-modal__table tr {
    border-bottom: 1px solid var(--colorGray);
}

.p-modal__table tr:nth-child(1) {
    border-top: 1px solid var(--colorGray);
}

.p-modal__table th,
.p-modal__table td,
.p-modal__fan dt ,
.p-modal__fan dd {
    padding-block: 8px;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.04em;
    line-height: 1.8;
    white-space: pre-wrap;
}

.p-modal__table th {
    width: 120px;
    font-weight: 700;
}

.p-modal__fan {
    display: grid;
    grid-template-columns: 120px auto;
    border-bottom: 1px solid var(--colorGray);
}

.p-modal__fan dt {
    font-weight: 700;    
}

@media screen and (max-width: 767px) {
    .p-modal__body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .p-modal__content {
        padding: 20px;
    }

    .p-modal__scroll {
        max-height: calc(77.8vh - 40px);
        overflow-y: auto;
    }

    .p-modal__number {
        font-size: 40px;
    }
    
    .p-modal__nameJa {
        font-size: 20px;
    }
}