@charset "UTF-8";
/* 共通設定 ---------------------------------- */
section{
    scroll-margin-top: 170px;
}

/* page-title ------------------------------ */
.history #page-title::after{
    background-image: url(../img/history/title.webp);
}

/* main-area ---------------------------- */
#main-area{
    width: 100%;
    padding: 0 5%;
    margin-bottom: 70px;
}

#main-area .history-title{
    width: fit-content;
    padding-bottom: 5px;
    border-bottom: 1px solid #D2B07B;
    margin: 0 auto 60px auto;
}
#main-area .history-title > .first-letter{
    display: inline-block;
    margin-right: 10px;
}

/* リスト設定 */
#main-area .history-list{
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 170px;
    position: relative;
    z-index: 1;
}
#main-area .history-list::before{
    content: "";
    width: 1px;
    height: calc(100% + 100px);
    background-color: #D2B07B;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
}
#main-area .history-list::after{
    content: "";
    width: 10px;
    height: 10px;
    border-top: 1px solid #D2B07B;
    border-right: 1px solid #D2B07B;
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
    z-index: 0;
}

/* リスト要素 */
#main-area .history-list > li{
    width: calc(50% + 115px);
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-bottom: 20px;
}
#main-area .history-list > li .date-wrap{
    width: 115px;
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-size: 18px;
    font-weight: 600;
    color: #154783;
    line-height: 1.3em;
    padding-top: 5px;
    padding-left: 15px;
}
#main-area .history-list > li .info-wrap{
    width: calc(100% - 115px - 20px);
    background-color: #fff;
    border: 1px solid #D2B07B;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-right: 20px;
    position: relative;
}
#main-area .history-list > li .info-wrap::before{
    content: "";
    width: 20px;
    height: 1px;
    background-color: #D2B07B;
    position: absolute;
    top: 15px;
    right: -20px;
    z-index: 0;
}
#main-area .history-list > li .info-wrap::after{
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D2B07B;
    position: absolute;
    top: 10px;
    right: -26px;
    z-index: 0;
}

#main-area .history-list > li .info-wrap .sp-date-wrap{
    display: none;
}

#main-area .history-list > li .info-wrap .text{
    width: calc(100% - 120px - 20px);
    margin-left: 20px;
}
#main-area .history-list > li .info-wrap .img-area{
    width: 120px;
    height: 80px;
}
#main-area .history-list > li .info-wrap .img-area img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* リスト要素（偶数番目） */
#main-area .history-list > li:nth-of-type(even){
    flex-direction: row;
    margin-left: auto;
    margin-right: 0;
}
#main-area .history-list > li:nth-of-type(even) .date-wrap{
    padding-left: 0;
    padding-right: 15px;
}
#main-area .history-list > li:nth-of-type(even) .info-wrap{
    flex-direction: row;
    margin-right: 0;
    margin-left: 20px;
}
#main-area .history-list > li:nth-of-type(even) .info-wrap::before{
    right: auto;
    left: -20px;
}
#main-area .history-list > li:nth-of-type(even) .info-wrap::after{
    right: auto;
    left: -26px;
}

#main-area .history-list > li:nth-of-type(even) .info-wrap .text{
    margin-left: 0;
    margin-right: 20px;
}


/*-------------------------------------------
メインメニュー調整用
-------------------------------------------*/
@media screen and (max-width: 1277px) {

    /* 共通設定 ---------------------------------- */
    section{
        scroll-margin-top: calc(90px + 40px);
    }

}


/*-------------------------------------------
タブレット
-------------------------------------------*/
@media screen and (max-width: 960px) {

    /* main-area ---------------------------- */
    /* リスト設定 */
    #main-area .history-list{
        margin-bottom: 130px;
    }
    #main-area .history-list::before{
        left: 115px;
        height: calc(100% + 60px);
    }
    #main-area .history-list::after{
        bottom: -60px;
        left: 115px;
    }

    /* リスト要素 */
    #main-area .history-list > li{
        width: 100%;
        flex-direction: row;
    }
    #main-area .history-list > li:nth-of-type(even){
        margin-left: 0;
        margin-right: auto;
    }

    #main-area .history-list > li .date-wrap{
        padding-left: 0;
        padding-right: 15px;
    }

    #main-area .history-list > li .info-wrap{
        flex-direction: row;
        justify-content: flex-start;
        margin-right: 0;
        margin-left: 20px;
    }
    #main-area .history-list > li:nth-of-type(even) .info-wrap{
        justify-content: flex-start;
    }

    #main-area .history-list > li .info-wrap::before{
        right: auto;
        left: -20px;
    }
    #main-area .history-list > li .info-wrap::after{
        right: auto;
        left: -26px;
    }

    #main-area .history-list > li .info-wrap .text{
        margin-left: 0;
        margin-right: 20px;
    }

}

/*-------------------------------------------
スマホ
-------------------------------------------*/
@media screen and (max-width: 767px) {

    /* 共通設定 ---------------------------------- */
    section{
        scroll-margin-top: calc(60px + 40px);
    }

    /* page-title ------------------------------ */
    .history #page-title{
        height: 440px;
    }
    .history #page-title::after{
        background-image: url(../img/history/titleSP.webp);
    }

    /* main-area ---------------------------- */
    /* リスト設定 */
    #main-area .history-list::before{
        left: 0;
    }
    #main-area .history-list::after{
        left: 0;
    }

    /* リスト要素 */
    #main-area .history-list > li{
        width: 100%;
        flex-direction: row;
    }

    #main-area .history-list > li .date-wrap{
        display: none;
    }
    #main-area .history-list > li .info-wrap{
        width: calc(100% - 20px);
        flex-direction: column;
        align-items: flex-start;
    }
    #main-area .history-list > li:nth-of-type(even) .info-wrap{
        width: calc(100% - 20px);
        flex-direction: column;
        align-items: flex-start;
    }

    #main-area .history-list > li .info-wrap::before{
        top: 30px;
    }
    #main-area .history-list > li .info-wrap::after{
        top: 25px;
    }

    #main-area .history-list > li .info-wrap .sp-date-wrap{
        display: block;
        font-family: "Noto Serif JP", serif;
        font-optical-sizing: auto;
        font-size: 14px;
        font-weight: 700;
        color: #154783;
        line-height: 1.3em;
        margin-bottom: 5px;
    }
    #main-area .history-list > li .info-wrap .text{
        width: 100%;
        margin-right: 0;
    }
    #main-area .history-list > li .info-wrap .img-area{
        display: none;
    }

}
