@import "./import.css";
/*---------------------------
front チーム一覧
----------------------------*/
.team_list_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 2px;
    background-color: var(--site-background-color);
    margin-bottom: 1.5rem;
}

.team_list_header:not(:first-of-type) {
    margin-top: 2rem;
}

.team_list_header > p {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--site-text-color);
}

.team_list_header > p > span {
    font-size: 0.85rem;
    margin-left: 4px;
    color: var(--site-gray-color);
}

.teams_list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0 0.5rem;
    gap: 1rem;
}

.teams_list a {
    display: block;
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 0 4px var(--site-off-white-color);
    position: relative;
}

.team_img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.team_img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .2s;
}

.team_name {
    padding: 1rem 0.5rem;
    background-color: var(--site-white-color);
    color: var(--site-text-color);
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.team_name > img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.team_name > p {
    text-align: left;
    padding-right: 4px;
}

.team_area {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px 0 3px 0;
    font-size: 0.7rem;
    padding: 0 8px 1px;
    color: var(--site-white-color);
    background-color: var(--site-gray-color);
}

.teams_list a:hover .team_img > img {
    transform: scale(1.05);
}

.teams_list a:active {
    box-shadow: none;
    transform: translateY(1px);
    border: 1px solid var(--site-background-color);
}

@media screen and (max-width: 768px) {
    .teams_list {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 640px) {
    .teams_list {
        grid-template-columns: 1fr;
        padding: 1rem 0.5rem;
    }
}