.team-page-header {
    .match-banner {
        height: auto;
        min-height: 107px;

        .match-banner-inner {
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 6px;
            padding-top: 22px;
            padding-bottom: 22px;
        }

        .match-banner-subtitle {
            margin-top: 0;
            font-size: 14px;
        }
    }
}

.team-main-banner-section {
    max-width: 1040px;
    width: 100%;
    margin: 60px auto 70px;

    .team-banner-img-wrapper {
        width: 100%;
        height: 616px;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    .team-banner-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 32px;

        .team-banner-label {
            font-family: "Noto Sans JP", sans-serif;
            font-size: 16px;
            font-weight: 700;
            color: #000000;
            margin: 0;
        }

        .team-banner-btn {
            display: inline-flex;
            align-items: center;
            width: 152px;
            height: 35px;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            border: 2px solid #001B5B;
            border-radius: 150px;
            color: #001B5B;
            font-family: "Noto Sans JP", sans-serif;
            font-size: 16px;
            font-weight: 700;
            text-decoration: none;
            transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;

            .btn-arrow {
                display: inline-block;
                position: relative;
                width: 12px;
                height: 12px;
                transition: transform 0.2s ease;
                margin-left: 6px;

                &::after {
                    content: "";
                    position: absolute;
                    top: 3px;
                    right: 0;
                    width: 5px;
                    height: 5px;
                    border-top: 2px solid currentColor;
                    border-right: 2px solid currentColor;
                    transform: rotate(45deg);
                }

                &::before {
                    content: "";
                    position: absolute;
                    top: 5px;
                    left: 0;
                    width: 10px;
                    height: 2px;
                    background-color: currentColor;
                }
            }

            &:hover {
                background-color: #001B5B;
                color: #ffffff;
                border-color: #001B5B;

                .btn-arrow {
                    transform: translateX(4px);
                }
            }
        }
    }
}


.team-slogan-section {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto 70px;
    text-align: center;

    .slogan-title {
        font-family: "Noto Sans JP", sans-serif;
        font-size: 28px;
        font-weight: 700;
        color: #000000;
        margin-bottom: 20px;
        position: relative;
        display: inline-block;

        &::after {
            content: "";
            display: block;
            width: 60px;
            height: 3px;
            background-color: #009EB4;
            margin: 20px auto 0;
            border-radius: 30px;
        }
    }

    .slogan-img-wrapper {
        width: 480px;
        height: 275px;
        margin: 0 auto 70px;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }

    .slogan-description {
        max-width: 1040px;
        text-align: left;

        p {
            font-family: "Noto Sans JP", sans-serif;
            font-size: 14px;
            font-weight: 400;
            line-height: 1.8;
            color: #000000;
            margin-bottom: 5px;

            br {
                content: "";
                display: block;
                margin-bottom: 5px;
            }
        }
    }
}


.team-banners-grid-section {
    max-width: 1040px;
    width: 100%;
    margin: 0 auto 110px;
    display: flex;
    flex-direction: column;
    gap: 40px;

    .team-grid-row {
        display: flex;
        gap: 40px;
        width: 100%;
        justify-content: center;
    }

    .team-grid-card {
        flex: 0 0 500px;
        width: 500px;
        display: flex;
        flex-direction: column;

        .card-img-wrapper {
            width: 500px;
            height: 281px;
            overflow: hidden;
            box-sizing: border-box;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

            .placeholder-img {
                width: 100%;
                height: 100%;
                background-color: #727272;
                display: flex;
                align-items: center;
                justify-content: center;

                span {
                    font-family: "Noto Sans JP", sans-serif;
                    font-size: 24px;
                    color: #ffffff;
                    font-weight: 500;
                }
            }
        }

        .card-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;

            .card-title {
                font-family: "Noto Sans JP", sans-serif;
                font-size: 16px;
                font-weight: 700;
                color: #000000;
                line-height: 1.4;
                margin: 0;
            }

            .card-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 152px;
                height: 35px;
                gap: 5px;
                padding: 12px 20px 12px 24px;
                border: 2px solid #04003B;
                border-radius: 100px;
                color: #04003B;
                font-family: "Noto Sans JP", sans-serif;
                font-size: 16px;
                font-weight: 700;
                text-decoration: none;
                transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;

                .btn-arrow {
                    display: inline-block;
                    position: relative;
                    width: 12px;
                    height: 12px;
                    transition: transform 0.2s ease;
                    margin-left: 6px;

                    &::after {
                        content: "";
                        position: absolute;
                        top: 3px;
                        right: 0;
                        width: 5px;
                        height: 5px;
                        border-top: 2px solid currentColor;
                        border-right: 2px solid currentColor;
                        transform: rotate(45deg);
                    }

                    &::before {
                        content: "";
                        position: absolute;
                        top: 5px;
                        left: 0;
                        width: 10px;
                        height: 2px;
                        background-color: currentColor;
                    }
                }

                &:hover {
                    background-color: #04003B;
                    color: #ffffff;
                    border-color: #04003B;

                    .btn-arrow {
                        transform: translateX(4px);
                    }
                }
            }
        }
    }

    .team-grid-row-three {
        display: flex;
        gap: 40px;
        width: 100%;
        justify-content: center;
        margin-top: 30px;
    }

    .team-grid-card-small {
        flex: 0 0 320px;
        width: 320px;
        display: flex;
        flex-direction: column;

        .card-img-wrapper-small {
            width: 320px;
            height: 180px;
            overflow: hidden;
            box-sizing: border-box;

            .placeholder-img {
                width: 100%;
                height: 100%;
                background-color: #5A5A5A;
                display: flex;
                align-items: center;
                justify-content: center;

                span {
                    font-family: "Noto Sans JP", sans-serif;
                    font-size: 20px;
                    color: #ffffff;
                    font-weight: 500;
                }
            }
        }

        .card-info-small {
            margin-top: 12px;
            text-align: left;

            .card-title-small {
                font-family: "Noto Sans JP", sans-serif;
                font-size: 16px;
                font-weight: 700;
                color: #000000;
                margin: 0;
                line-height: 1.4;
            }
        }
    }
}

@media (max-width: 768px) {
    .team-page-header {
        .match-banner {
            min-height: 80px;

            .match-banner-inner {
                padding-left: 20px;
                padding-right: 20px;
                padding-top: 15px;
                padding-bottom: 15px;
            }
        }
    }

    .team-main-banner-section {
        margin-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
        margin: 24px auto 37px;

        .team-banner-img-wrapper {
            height: 220px;
        }

        .team-banner-info {
            align-items: flex-start;
            gap: 15px;
            margin-top: 15px;

            .team-banner-label {
                font-size: 14px;
            }

            .team-banner-btn {
                width: 98px;
                height: 24px;
                font-size: 11px;
                padding: 0 10px;
                white-space: nowrap;
                gap: 0;

                .btn-arrow {
                    width: 8px;
                    height: 5px;
                    margin-left: 4px;

                    &::after {
                        top: 0px;
                        width: 4px;
                        height: 4px;
                        border-top-width: 1.5px;
                        border-right-width: 1.5px;
                    }

                    &::before {
                        top: 2px;
                        width: 8px;
                        height: 1.5px;
                    }
                }
            }
        }
    }

    .team-slogan-section {
        margin-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;

        .slogan-title {
            font-size: 18px;
            margin-bottom: 27px;

            &::after {
                margin-top: 8px;
            }
        }

        .slogan-img-wrapper {
            width: 100%;
            max-width: 271px;
            height: auto;
            aspect-ratio: 480 / 275;
            margin-bottom: 28px;
        }

        .slogan-description {
            p {
                font-size: 14px;
                line-height: 23px;
            }
        }
    }

    .team-banners-grid-section {
        margin-bottom: 60px;
        gap: 40px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;

        .team-grid-row {
            flex-direction: column;
            gap: 40px;
        }

        .team-grid-card {
            width: 100%;
            flex: 1 1 auto;

            .card-img-wrapper {
                width: 100%;
                height: auto;
                aspect-ratio: 500 / 282;
            }

            .card-info {
                margin-top: 13px;

                .card-title {
                    font-size: 14px;
                }

                .card-btn {
                    width: 98px;
                    height: 24px;
                    font-size: 11px;
                    padding: 0 10px;
                    white-space: nowrap;
                    gap: 0;

                    .btn-arrow {
                        width: 8px;
                        height: 5px;
                        margin-left: 4px;

                        &::after {
                            top: 0px;
                            width: 4px;
                            height: 4px;
                            border-top-width: 1.5px;
                            border-right-width: 1.5px;
                        }

                        &::before {
                            top: 2px;
                            width: 8px;
                            height: 1.5px;
                        }
                    }
                }
            }
        }

        .team-grid-row-three {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 0;
            justify-content: space-between;
        }

        .team-grid-card-small {
            width: calc(50% - 10px);
            flex: 0 0 calc(50% - 10px);

            .card-img-wrapper-small {
                width: 100%;
                height: auto;
                aspect-ratio: 168 / 96;

                .placeholder-img {
                    span {
                        font-size: 17px;
                        font-weight: 500;
                    }
                }
            }

            .card-info-small {
                margin-top: 8px;

                .card-title-small {
                    font-size: 14px;
                    line-height: 1.4;
                }
            }
        }
    }
}