/* ========================================
   お知らせ一覧：年月別アコーディオン
======================================== */

.archive-title {
    margin-bottom: 45px;
}

.archive-monthly {
    width: 100%;
    height: auto;
    min-height: 0;
}

.monthlyArchive {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #f1c86a;
    border-radius: 4px;
    box-sizing: border-box;
}

.monthlyArchive__heading {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0 18px;
    box-sizing: border-box;
    color: #222;
    background-color: #fffaf0;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease;
}

.monthlyArchive__heading::-webkit-details-marker {
    display: none;
}

.monthlyArchive__heading::marker {
    content: "";
}

.monthlyArchive__heading:hover {
    background-color: #fff7e5;
}

.monthlyArchive__heading:focus-visible {
    outline: 2px solid #edae13;
    outline-offset: -2px;
}

.monthlyArchive__icon {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-right: 18px;
    border-right: 2px solid #edae13;
    border-bottom: 2px solid #edae13;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
}

.monthlyArchive[open] .monthlyArchive__icon {
    transform: rotate(225deg) translate(-2px, -2px);
}

.archive__titleArea ul {
    list-style: none;
    margin-bottom: 0;
}

.monthlyArchive__date {
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.monthlyArchive__contents {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.monthlyArchive__list {
    display: block;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 18px;
    list-style: none;
}

.monthlyArchive__item {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f1c86a;
    box-sizing: border-box;
}

.monthlyArchive__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.monthlyArchive__link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 10px 4px;
    box-sizing: border-box;
    color: #222;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.monthlyArchive__link:hover {
    color: #222;
    background-color: #fffdf8;
    text-decoration: none;
}

.monthlyArchive__entryDate {
    flex-shrink: 0;
    width: 86px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.monthlyArchive__separator {
    display: block;
    flex-shrink: 0;
    width: 2px;
    height: 22px;
    margin-right: 18px;
    background-color: #edb01f;
}

.monthlyArchive__entryTitle {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
    color: #222;
    font-size: 14px;
    line-height: 1.7;
}

.monthlyArchive__arrow {
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-top: 2px solid #3ab483;
    border-right: 2px solid #3ab483;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.monthlyArchive__link:hover .monthlyArchive__arrow {
    transform: translateX(4px) rotate(45deg);
}

@media screen and (max-width: 960px) {
    .archive-title {
        margin-bottom: 30px;
    }

    .monthlyArchive {
        margin-bottom: 14px;
    }

    .monthlyArchive__heading {
        min-height: 52px;
        padding: 0 14px;
    }

    .monthlyArchive__icon {
        width: 8px;
        height: 8px;
        margin-right: 14px;
    }

    .monthlyArchive__date {
        font-size: 16px;
    }

    .monthlyArchive__list {
        padding: 0 14px;
    }

    .monthlyArchive__link {
        align-items: flex-start;
        flex-wrap: wrap;
        min-height: 0;
        padding: 13px 2px;
    }

    .monthlyArchive__entryDate {
        width: auto;
        margin-bottom: 7px;
        font-size: 12px;
    }

    .monthlyArchive__separator {
        width: 1px;
        height: 16px;
        margin: 1px 12px 7px;
    }

    .monthlyArchive__entryTitle {
        flex-basis: calc(100% - 24px);
        padding-right: 10px;
        font-size: 13px;
    }

    .monthlyArchive__arrow {
        margin-top: 6px;
    }
}