/*================================================================================================

* BASE STYLE *

================================================================================================*/
/* RESET ================================================*/
.lst-article {
    overflow: visible;
}

.ec-calendar__wrap *,
.ec-calendar__aside * {
    margin: 0;
}

[hidden] { 
    display: none !important; 
}

/*================================================================================================

* COMPONENT *

================================================================================================*/
/* TAB SELECTOR ================================================*/
.tab-selector {
    display: flex;
    gap: 20px;
    border-bottom: 5px solid #00214a;
}

.tab-selector__item {
    width: 100%;
}

.tab-selector__item-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 295px;
    height: 100%;
    color: #808799;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    border: solid 1px #dde7e8;
    border-bottom: none;
    background-color: #fff;
    padding: 20px 1rem;
    cursor: pointer;
}

.tab-selector__item-btn[aria-selected="true"] {
    background-color: #00214a;
    color: #fff;
}

/* Responsive Style */
@media only screen and (max-width: 768px) {
    .tab-selector {
        gap: 5px;
    }

    .tab-selector__item-btn {
        padding: 20px 0 21px;
    }
}

/* SELECT BOX ================================================*/
.select-btn {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    min-width: 190px;
    height: 44px;
    padding: 16px 10px 14px 20px;
    border-radius: 3px;
    border: solid 1px #dde7e8;
    background-color: #fff;
}

.select-btn__label {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.select-btn__label::after {
    content: "";
    display: block;
    position: absolute;
    width: 7px;
    height: 4px;
    border-style: solid;
    border-width: 4px 3.5px 0 3.5px;
    border-color: #a1b1bd transparent transparent transparent;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.select-btn__label svg {
    width: 22px;
    height: 16px;
}

.select-btn__label .is-hidden {
    display: none;
}

.select-btn__input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
}

/* BTN STYLE ================================================*/
.btn-cta {
    display: block;
    width: fit-content;
    min-width: 230px;
    border-radius: 5px;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
    background-color: #0a4dc4;
    padding: 32px 30px;
    transition: background-color 300ms;
}

.btn-cta span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #fff;
}

.btn-cta--reversal {
    background-color: #fff;
}

.btn-cta--reversal span {
    color: #0a4dc4;
}

/* Responsive Style */
@media only screen and (max-width: 768px) {
    .btn-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 335px;
        height: 80px;
        padding: 0;
    }

    .btn-cta--reversal {
        height: 44px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .btn-cta:hover {
        background-color: #3a71cf;
    }

    .btn-cta--reversal:hover {
        background-color: #f5f6f8;
    }

}

/*================================================================================================

* LAYOUT *

================================================================================================*/

.ec-calendar__contents {
    margin-top: 40px;
}

.ec-calendar__contents-title {
    font-size: 24px;
    font-weight: normal;
}

.ec-calendar__contents .select-btn {
    margin-top: 30px;
}

.ec-calendar__contents-table--heading {
    position: -webkit-sticky;
    position: sticky;
    top: 58px;
    margin: 20px 0 15px;
    z-index: 2;
}

.ec-calendar__contents-table--heading .ec-calendar__table-title {
    padding: 5px;
    color: rgba(11, 11, 11, 0.8);
}

.ec-calendar__contents-field {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.ec-calendar__contents-text {
    color: #2c2c2c;
    padding-left: 1em;
    text-indent: -1em;
    margin-top: 30px;
}

.ec-calendar__contents-text:before {
    content: '※';
}

@media only screen and (max-width: 768px) {
    .ec-calendar__contents {
        margin-top: 30px;
    }

    .ec-calendar__contents-table--heading {
        display: none;
    }

    .ec-calendar__contents-inner {
        margin-top: 20px;
    }
}

/*================================================================================================

* TABLE *

================================================================================================*/
.ec-calendar__table {
    width: 100%;
    border-collapse: collapse;
}

.ec-calendar__table-row {
    background-color: #fff;
}

/* HEADING ================================================*/
.ec-calendar__table-heading {
    overflow: visible;
}

.ec-calendar__table-heading th {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    border: none;
    /* tbody内のセルより手前に表示する */
    z-index: 1;
}

.ec-calendar__table th,
.ec-calendar__table td {
    border: solid 1px #dde7e8;
    line-height: 1.29;
    padding: 18px 14px;
}

.ec-calendar__table-title {
    color: #0b0b0b;
    border: solid 1px #dde7e8;
    background-color: #f5f6f8;
}

.ec-calendar__table-title--date {
    text-align: left;
    color: #fff;
    background-color: #a1b0bc;
    padding: 14px 20px;
}

/* Responsive Style */
@media only screen and (max-width: 768px) {
    .ec-calendar__table-heading th {
        top: 48px;
    }

    .ec-calendar__table-body .ec-calendar__table-row {
        display: flex;
        flex-wrap: wrap;
        border: solid 1px #dde7e8;
        padding: 16px 10px 20px;
    }

    .ec-calendar__table-body .ec-calendar__table-row:not(:first-of-type) {
        border-top: none;
    }

    .ec-calendar__table-body .ec-calendar__table-row--sm-hidden {
        display: none;
    }

    .ec-calendar__table-body .ec-calendar__table-row td {
        width: fit-content;
        text-align: left;
        border: none;
        padding: 0;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(1) {
        order: 1;
        margin-right: 10px;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(2) {
        order: 2;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(3) {
        order: 4;
        width: 100%;
        font-size: 16px;
        margin: 12px 0 15px;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(4) {
        order: 3;
        text-align: right;
        margin: 0 0 0 auto;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(n+5) {
        width: calc((100% - 12px) / 3);
        text-align: center;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(n+5):before {
        content: "";
        width: 100%;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f6f8;
        font-size: 12px;
        color: #0b0b0b;
        text-align: center;
        margin-bottom: 8px;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(5) {
        order: 5;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(5):before {
        content: '前回（修正値）';
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(6) {
        order: 6;
        margin-left: 6px;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(6):before {
        content: '予想';
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(7) {
        order: 7;
        margin-left: 6px;
    }

    .ec-calendar__table-body .ec-calendar__table-row td:nth-of-type(7):before {
        content: '結果';
    }

}


/* DATA ================================================*/
.ec-calendar__table-data {
    text-align: center;
    padding: 14px;
}

.ec-calendar__table-data svg {
    display: block;
    height: 18px;
    width: 26px;
}

.ec-calendar__table-data--col3 {
    /* width: 300px !important; */
    width: calc((300 / 1180) * 100%) !important;
}

.ec-calendar__table-data--contents {
    text-align: left;
}

/* Responsive Style */
@media only screen and (max-width: 768px) {
    .ec-calendar__table-data--contents {
        font-weight: bold;
    }

    .ec-calendar__table-data--col3 {
        display: none;
    }
}


/* DATA LENGTH ================================================*/
.ec-calendar__table-title:nth-of-type(1),
.ec-calendar__table-data:nth-of-type(1) {
    width: 86px;
    width: calc((86 / 1180) * 100%);
}

.ec-calendar__table-title:nth-of-type(2),
.ec-calendar__table-data:nth-of-type(2) {
    width: 54px;
    width: calc((54 / 1180) * 100%);
}

.ec-calendar__table-title:nth-of-type(3),
.ec-calendar__table-data:nth-of-type(3) {
    /* max-width: 646px; */
    width: calc((646 / 1180) * 100%);
}

.ec-calendar__table-title:nth-of-type(4),
.ec-calendar__table-data:nth-of-type(4) {
    width: calc((100 / 1180) * 100%);
}

.ec-calendar__table-title:nth-of-type(n+4),
.ec-calendar__table-data:nth-of-type(n+4) {
    min-width: 100px;
    width: calc((100 / 1180) * 100%);
}

/* DATA STATUS  ================================================*/
.ec-calendar__table-data--importance {
    color: #edaf00;
}

.ec-calendar__tabler-row--high .ec-calendar__table-data--contents,
.ec-calendar__tabler-row--high .ec-calendar__table-data--importance {
    color: #e83333;
}

.ec-calendar__tabler-row--mid .ec-calendar__table-data--contents,
.ec-calendar__tabler-row--mid .ec-calendar__table-data--importance {
    color: #f47610;
}

.ec-calendar__tabler-row--high .ec-calendar__table-data--contents,
.ec-calendar__tabler-row--mid .ec-calendar__table-data--contents {
    font-weight: bold;
}



/*================================================================================================

* ASIDE *

================================================================================================*/
.ec-calendar__aside {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.ec-calendar__aside-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* Responsive Style */
@media only screen and (max-width: 768px) {
    .ec-calendar__aside {
        flex-direction: column;
        gap: 30px;
    }

    .ec-calendar__aside-list {
        flex-direction: column;
        gap: 20px;
    }
}
