@charset "UTF-8";

.direction-toggle {
    display: flex;
    gap: 20px;
    background: #e9e9e9;
    border-radius: 9999px;
    padding: 10px;
}

.direction-toggle__button {
    flex: 1;
    padding: 14px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition:background-color .3s,color .3s,box-shadow .3s;
}

.direction-toggle__button.is-active {
    background: #008803;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 136, 3, .25);
}

.direction-toggle__button:not(.is-active):hover {
    background: #008803;
    color: #fff;
}

.direction-toggle__button:focus-visible {
    outline: 2px solid #008803;
    outline-offset: 2px;
}



@media (max-width: 750px) {

    .direction-toggle {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0;
        background: none;
        border-radius: 0;
    }

    .direction-toggle__button {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 80px;
        padding:16px 16px 16px 56px;
        border: 2px solid #d9d9d9;
        border-radius: 10px;
        background: #fff;
        color: #333;
        text-align: left;
        line-height: 1.5;
        box-shadow: 0 2px 8px rgba(0,0,0,.05);
    }

    /* ラジオボタン外枠 */

    .direction-toggle__button::before {
        content: "";
        position: absolute;
        left: 20px;
        top: 50%;
        width: 22px;
        height: 22px;
        border: 2px solid #bdbdbd;
        border-radius: 50%;
        transform: translateY(-50%);
    }

    /* ラジオボタン内側 */

    .direction-toggle__button::after {
        content: "";
        position: absolute;
        left: 26px;
        top: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #008803;
        transform: translateY(-50%) scale(0);
        transition: transform .2s ease;
    }

    /* 選択中 */

    .direction-toggle__button.is-active {
        background: #008803;
        border-color: #008803;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,136,3,.25);
    }

    .direction-toggle__button.is-active::before {
        border-color: #fff;
        background-color: #fff;
    }

    .direction-toggle__button.is-active::after {
        transform:
            translateY(-50%)
            scale(1);
    }
}



.c-button__inner.is-active {
    border: 1px solid #008803;
    background-color: #008803;
    color: #fff;
}

.js-tab-panel[hidden] {
    display: none;
}

.c-button__inner[role="tab"]:focus-visible {
    outline: 3px solid #006ac8;
    outline-offset: 2px;
}

.c-congestion-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.c-congestion-table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.c-congestion-table th,
.c-congestion-table td {
    padding: 10px 6px;
    text-align: center;
    border: none;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
@media (min-width: 751px) {
    .c-congestion-table th,
    .c-congestion-table td {
        padding: 10px;
    }
}

.c-congestion-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.c-congestion-table td:first-child,
.c-congestion-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #fff;
    font-weight: bold;
    border-left: 1px solid #ccc;
}


.c-congestion-table thead tr:first-of-type th {
    background-color: #E9F1E8;
    font-weight: bold;
    width: 152px;
    border-top: 1px solid #ccc;
}
@media (min-width: 751px) {
    .c-congestion-table thead tr:first-of-type th {
        width: 200px;
    }
}

.c-congestion-table thead tr:first-of-type th:first-of-type{
    width: 80px;
}
@media (min-width: 751px) {
    .c-congestion-table thead tr:first-of-type th:first-of-type{
        width: 200px;
    }
}

.c-congestion-table thead tr:first-of-type th.is-date-selected {
    background-color: #1f6e2f;
    color: #fff;
}

.c-congestion-table thead tr:nth-of-type(2) th {
    background-color: #F7F7F7;
    font-weight: bold;
}

.c-congestion-table thead tr:nth-of-type(2) th.is-date-selected  {
    background-color: #1f6e2f;
    color: #fff;
}

.c-congestion-table td.is-date-selected {
    background-color: #e6f3e8;
}

.c-congestion-table td img {
    max-width: 54px;
    width: 100%;
    height: auto;
}






.congestion-sec{
    margin-top: 50px;
}

@media (min-width: 751px) {
    .congestion-sec{
        margin-top: 80px;
    }
}

.congestion-title {
    padding-left: calc(0.5em + 5px);
    position: relative;
    line-height: 1.6;
    font-size: 2rem;
    font-weight: bold;
}

.congestion-title::before {
    content: "";
    display: block;
    width: 5px;
    height: 100%;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #008803;
}

.congestion-select {
    max-width: 400px;
}



.congestion-tab-btnList {
    display: flex;
    gap: 10px;
    background: #e9e9e9;
    border-radius: 9999px;
    padding: 10px;
}

@media (min-width: 751px) {
    .congestion-tab-btnList {
        gap: 20px;
    }
}

.congestion-tab-btnListItem {
    flex: 1;
}

.congestion-tab-btnListItem button {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.congestion-tab-btnListItem button.is-active {
    background: #008803;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,136,3,.25);
}

@media (hover:hover) {
    .congestion-tab-btnListItem button:not(.is-active):hover {
        background: #008803;
        color: #fff;
    }
}













.congestion-tab-tableArea {
    margin-top: 30px;
}
@media (min-width: 751px) {
    .congestion-tab-tableArea {
        margin-top: 60px;
    }
}






