/* 共通部分 */
body {
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1;
    color: #444;
}

/* ヘッダー　ロゴ＋電話番号 */
.header-wrapper{
    max-width: 1180px;
    min-height: 130px;
    padding-inline: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-right: auto;
    margin-left: auto;
}
.logo img{
    width: 100%;
    width: 263px;
}
.header-box{
    text-align: right;
}
.header-item{
    font-size: 14px;
    margin-bottom: 13px;
}
.tel{
    color: #21A937;
    font-size: 24px;
    font-weight: bold;
}
.tel img{
    width: 25px;
    margin-right: 5px;
}
/* ヘッダー　メインビジュアル */
.fv{
    height: 947px;
    background-image: url(img/fv.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}
/* ヘッダー　メインビジュアル文字 */
.fv-desc {
    display: inline-block;
    width: 102px;
    height: 565px;
    background-color: #fff;
    color: #444;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.24;
    text-align: center;
    padding: 18px 37px;
}
.fv h2:first-of-type{
    position: absolute;
    top: 133px;
    left: 393px;
}
.fv h2:last-of-type{
    position: absolute;
    top: 133px;
    left: 211px;
}
.fv-desc-green{
    color: #21A937;
}


/* 見出し共通 h3 */
.item-header{
    font-size: 24px;
    font-weight: bold;
}
.underline {
    text-decoration-color: #99E5A5;
    text-decoration-line: underline;
    text-decoration-thickness: 10px;
    text-underline-offset: -3px;
    text-decoration-skip-ink: none;
}

/* メイン　山形で治療をし続けて30年 */
.about{
    max-width: 1220px;
    padding-inline: 20px;
    margin-right: auto;
    margin-left: auto;
}
.about-wrapper{
    display: flex;
    margin-block: 162px 82px;
    flex-wrap: wrap;
}
.about-item{
    padding:31px 42px 98px 33px ;
}
.bottom{
    margin-top: 32px;
}
.about-item-contents{
    font-size: 16px;
    line-height: 2.4;
    margin-top: 37px;
}
.about-img img{
    width: 100%;
    max-width: 690px;
}

/* メイン　治療内容 */
.treatment{ 
    background-color: #F5FCF8;
    padding-block: 78px 82px;
}
.treatment-wrapper{
    text-align: center;
}
.treatment-desc{
    margin-block: 70px 34px;
    font-size: 16px;
}
.treatment-list{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.treatment-list-wrapper{
    padding-inline: 20px;
}
.treatment-item{
    max-width: 380px;
    min-height: 591px;
    border-radius: 10px;
    border: 2px solid #C9C9C9;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.treatment-item-header{
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-block: 40px 45px;
}
.treatment-item-contents{
    margin-inline: 36px;
    font-size: 16px;
    font-weight: bold;
    line-height: 2.4;
}
.treatment-item-img{
    width: 187px;
    margin-inline: auto;
    margin-top: auto;
}



/* アサイド　お知らせ */
aside{
    background-color: #F5FCF8;
    padding-bottom: 113px;
}
aside h3{
    text-align: center;
    padding-bottom: 70px;
}

.news-space{
    padding-inline: 20px;
}
.news-wrap {
    max-width: 1180px;
    min-height: 390px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    margin-left: auto;
    margin-right: auto;
    padding: 49px 66px 45px 66px;
}
.news-block{
    max-width: 1048px;
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.news-block dt{
    width: 22%;  
    display: flex;
    border-bottom: 2px solid #E7E7E7;
}
.news-block dd{
    min-width: 78%;
    border-bottom: 2px solid #E7E7E7;
    padding-top: 19px;
    padding-bottom: 19px;
    line-height: 1.5;
    font-size: 16px;
    color: #444;
    font-weight: bold;
}
.news-block dt p:first-of-type{
    padding-right: 30px;
    font-size: 16px;
    font-weight: bold;
    color: #21A937;
    padding-top: 19px;
    padding-bottom: 19px;
}
.news-block dt p:last-of-type{
    font-size: 12px;
    color: #fff;
    display: inline-block;
    font-weight: bold;
    background-color: #444;
    min-width: 80px;
    height: 25px;
    text-align: center;
    align-content: center;
    margin-right: 30px;
    margin-top: 19px;
    margin-bottom:  19px;
    
}
.news-all{
    font-size: 16px;
    color: #444;
    text-align: right;
    margin-top: 45px;
}
.news-all img{
    margin-left: 7px;
    width: 14px;
}
@media screen and (max-width: 1025px) {
    .news-block dt{
        width: 100%;
        border-bottom:none;
        align-items: center;
    }
    .news-block dd{
        width: 100%;
    }
}
@media screen and (max-width: 431px) {
    .treatment-item{
        min-height: 450px;
    }
    .news-wrap {
        padding: 25px 33px 22px 33px;
    }
    .news-block dt p:first-of-type{
        padding-right: 15px;
    }
    .news-block dt p:last-of-type{
        margin-right: 0;
    }
    .news-block dt{
        padding-block: 9px;
    }
    .news-block dd{
        padding-block: 9px;
    }
}




/* フッター　問い合わせ */
footer {
    padding: 196px 0 139px;
    position: relative;
}
.footer-inner {
    max-width: 1220px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
}
.footer-map {
    margin-right: 34px;
    width: 51.53%;
}
.footer-info {
    width: 45.17%;
}
.footer-logo {
    margin-bottom: 52px;
}
.footer-adress {
    margin-bottom: 25px;
    display: flex;
}
.footer-adress p:first-of-type {
    margin-right: 16px;
}
.footer-adress p {
    color: #444;
}
.footer-adress-number {
    margin-bottom: 31px;
}
.footer-adress-number a {
    color: #21A937;
    font-weight: bold;
    font-size: 24px;
}
.footer-adress-number a img {
    margin-right: 5px;
}
.opening-hours {
    display: flex;
    flex-wrap: wrap;
    border-top: 2px solid #E7E7E7;
    border-bottom: 2px solid #E7E7E7;
    margin-top: 28px;
}
.opening-hours dt {
    width: 16%;
    padding-right: 10px;
    font-size: 14px;
    margin-top: 19px;
    padding-top: 3px;
    font-weight: 400;
}
.opening-hours dd {
    width: 84%;
    border-left: 2px solid #E7E7E7;
    padding-left: 28px;
}
.opening-hours dd p:first-of-type {
    font-size: 14px;
    display: inline-block;
    font-weight: normal;
    text-decoration-color: #99E5A5;
    text-decoration-line: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: -1px;
    text-decoration-skip-ink: none;
    line-height: 1.2em;
}
.opening-hours dd p {
    font-size: 14px;
    display: inline-block;
}
.opening-hours dd p:nth-of-type(2) {
    margin-left: 23px;
}
.opening-hours dd p:last-of-type {
    margin-left: 17px;
}
.opening-hours .line-first {
    padding-top: 3px;
    margin-top: 19px;
}
.opening-hours .line-second {
    margin-left: 16%;
    padding-top: 13px;
}
.opening-hours .line-third {
    padding-bottom: 6px;
    margin-bottom: 28px;
    margin-left: 16%;
    padding-top: 13px;
}

.opening-hours .last-dt {
    margin-top: 0;
}
.opening-hours .last-dd {
    font-size: 14px;
    padding-top: 5px;
    padding-bottom: 4px;
    margin-bottom: 15px;
}
.copyright {
    margin-top: 22px;
    display: block;
    text-align: right;
    font-size: 11px;
}



@media screen and (max-width: 979px) {
    .opening-hours dd p:last-of-type {
    display: block;
    margin-left: 69px;
    margin-top: 5px;
    }
    .opening-hours dt {
    width: 20%;
    }
    .opening-hours dd {
    width: 80%;
    }
    .opening-hours .line-second {
    margin-left: 20%;
    }
    .opening-hours .line-third {
    margin-left: 20%;
    } 
}
@media screen and (max-width: 820px) {
    .header-wrapper{
        flex-direction: column;
    }
    .logo{
        margin-top: 20px;
    }
    .header-box{
        text-align: center;
        margin-block: 20px;
    }
    .fv{
        background-position: 70%;
    }
    .fv h2:last-of-type{
        position: absolute;
        top: 83px;
        left: 40px;
    }
    .fv h2:first-of-type{
        position: absolute;
        top: 83px;
        left: 170px;
    }
    .footer-inner {
        flex-direction: column-reverse;
    }
    .footer-map {
        width: 100%;
    }
    .footer-info {
        width: 100%;
    }
    .footer-logo {
        text-align: center;
    }
    .footer-adress {
        justify-content: center;
    }
    .footer-adress-number {
        text-align: center;
    }
    .copyright {
        position: absolute;
        bottom: 10px;
    }
    footer {
        padding: 196px 0 70px;
    }
}
