@charset "UTF-8";
main{
    padding-top: 21px;
    background: url(../img/under_bg.png)repeat-x top;
    &::before{
        display: none;
    }
}

.main__header_block{
    margin-bottom: 21px;
    display: flex;
    justify-content: flex-end;
}

.white-block__wrap{
    width: 93%;
    max-width: 1090px;
    margin: 0 auto 108px;
    padding: 38px 109px;
    background: #fff;
    border-radius: 15px;
}

@media screen and (max-width: 768px) {
    .main__header_block{
        display: none;
    }

    .white-block__wrap{
        width: 96%;
        margin: 0 auto 10%;
        padding: 5% 3%;
    }
}


/* topics */
section#topics{
    margin-bottom: 110px;
}

#topics .topics_wrap {
    margin-bottom: 6.5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 58px 26px;
}

.pagenation{
    margin-left: 12px;
}

.nav-links{
    display: flex;
    align-items: center;
}

.nav-links a:hover{
    opacity: 0.5;
}

ul.page-numbers {
    display: flex;
    align-items: center;
}

.nav-links .prev.page-numbers{
    margin-right: 5px;
    display: flex;
    align-items: anchor-center;
}

.nav-links .next.page-numbers{
    margin-left: 5px;
}

ul.page-numbers .page-numbers{
    line-height: 1;
    padding: 0 5px;
}
.mv
a.prev.page-numbers,
a.next.page-numbers,
span.prev.page-numbers,
span.next.page-numbers{
    background: url(../img/slider_icon.png)no-repeat;
    width: 60px;
    height: 48px;
    display: block;
    text-indent: -9999px;
}
a.next.page-numbers,
span.next.page-numbers{
    transform: rotate(180deg);
}
a.page-numbers,
span.page-numbers{ 
    font-size: 16px;
    color: #8abdae;
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}
ul.page-numbers span.page-numbers.current{
    font-weight: 600;
    color: #42bf9a;
}

@media screen and (max-width: 768px) {
    section#topics{
        width: 96%;
        margin: 0 auto 20%;
    }

    #topics .topics_wrap{
        margin: 10% auto 6.5%;
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
    }
    
}


/* single */

section.topics .ttl_block{
    width: 93%;
    max-width: 1090px;
    margin: 51px auto 32px;

}
section.topics .ttl_block h1{
    margin-bottom: 13px;
    font-size: 40px;
}

section.topics .ttl_block time.date{
    padding: 0 9px;
    display: inline-block;
    background: #42bf9a;
    line-height: 1.9;
}

section.topics .white-block__wrap {
    margin: 0 auto 69px;
    padding: 32px 54px 0;
}
section.topics .white-block__wrap .img_block{
    width: 100%;
    margin-bottom: 41px;
}
section.topics .white-block__wrap .img_block img {
    width: 100%;
}

section.topics .white-block__wrap h2{
    margin: 42px 0 23px;
    font-size: 31px;
    line-height: 1.82;
    position: relative;
    &:after{
        content: '';
        width: 100%;
        height: 2px;
        background: #000;
        display: inline-block;
        position: absolute;
        bottom: 2px;
        left: 0;
    }
}
section.topics .white-block__wrap h2.no-line{
    margin: 42px 0 6px;
    &:after{display: none;}
}

section.topics .white-block__wrap h3{
    margin: 10px 0 10px;
    font-size: 24px;
    color: #42bf9a;
    line-height: 1.82;
}

section.topics .white-block__wrap p{
    margin-bottom: 21px;
    line-height: 1.82;
    letter-spacing: 1px;
}

section.topics .white-block__wrap ul {
    margin-bottom: 52px;
}
section.topics .white-block__wrap ul li{
    margin-bottom: 10px;
    display: flex;
    &::before{
        content: '・';
        display: inline-block;
    }
}

section.topics .white-block__wrap .summary_block {
    margin: 70px 0 70px;
    padding: 6px 14px;
    position: relative;
    &::before{
        content: '';
        width: 103%;
        height: 100%;
        display: block;
        border: 3px solid #000;
        border-radius: 10px;
        margin: auto;
        position: absolute;
        left: -50%;
        right: -50%;
        top: 0;
    }
}

section.topics .white-block__wrap .summary_block h2{
    margin: 0 0 10px;
}

.topics_link_block{
    margin-top: 71px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.topics_btn.prev a,
.topics_btn.next a{
    width: 60px;
    height: 48px;
    background: url(../img/slider_icon.png)no-repeat;
    background-size: 100%;
    display: inline-block;
}
.topics_btn.next a{
    transform: rotate(180deg);
}


.topics_link_block .back_link{
    margin: 0 7px;
}
.topics_link_block .back_link a{
    font-size: 52px;
    font-family: aktiv-grotesk, sans-serif;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
}


@media screen and (max-width: 768px) {
    section.topics .ttl_block h1{
        font-size: 28px;
    }

    section.topics .white-block__wrap{
        padding: 28px 14px 0;
    }

    section.topics .white-block__wrap .img_block{
        margin-bottom: 21px;
    }

    section.topics .white-block__wrap h2{
        margin: 22px 0 12px;
        font-size: 24px;
        line-height: 1.52;
    }
    section.topics .white-block__wrap h2.no-line{
        margin: 22px 0 3px;
    }

    section.topics .white-block__wrap h3{
        font-size: 20px;
    }
    
    section.topics .white-block__wrap p{
        margin-bottom: 12px;
    }

    section.topics .white-block__wrap .summary_block{
        margin: 30px 0 40px;
    }

    .topics_btn.prev a, .topics_btn.next a{
        width: 40px;
        height: 32px;
    }
    .topics_link_block .back_link a{
        font-size: 38px;
    }
}

/* contact */
section#contact .white-block__wrap h2{
    margin-bottom: 23px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 2px;
}
section#contact .white-block__wrap p.header_txt{
    margin-bottom: 47px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 1px;
}

section#contact .wpcf7 dt{
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 3px;
}
section#contact .wpcf7 dt span{
    margin-left: 5px;
    padding: 7px 12px 1px;
    background-color: #4bc29f;
    font-size: 20px;
    line-height: 1.2;
    border-radius: 10px;
    display: inline-block;
    color: #fff;
}
section#contact .wpcf7 dd{
    margin-bottom: 39px;
}
section#contact .wpcf7 dd input,
section#contact .wpcf7 dd textarea{
    background: #f8fcfb;
    font-size: 20px;
    line-height: 1.2;
    border: 1px solid #030303;
    border-radius: 10px;
    padding: 23px;
    width: 95%;
}
section#contact .wpcf7 dd textarea{
    height: 230px;
}

section#contact .white-block__wrap .bth{
    width: 225px;
    margin: 0 auto;
    position: relative;
    &::before {
        content: '';
        background: url(../img/btn_icon_w.png) no-repeat;
        background-size: 100%;
        width: 21px;
        height: 17px;
        display: inline-block;
        position: absolute;
        right: 14px;
        top: 0;
        bottom: 0;
        margin: auto;
        z-index: 1;
    }
}
section#contact .wpcf7 input[type="submit"]{
    width: 100%;
    background: #000;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    line-height: 2.5;
    display: block;
    position: relative;
    text-align: center;
    letter-spacing: 2px;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #ccc;
}

@media screen and (max-width: 768px) {
    section#contact .white-block__wrap h2{
        margin-bottom: 12px;
        font-size: 20px;
    }
    section#contact .white-block__wrap p.header_txt{
        margin-bottom: 32px;
        font-size: 16px;
    }

    section#contact .wpcf7 dt{
        margin-bottom: 10px;
        font-size: 20px;
    }
    section#contact .wpcf7 dt span{
        margin-left: 5px;
        padding: 4px 7px 3px;
        font-size: 16px;
        border-radius: 5px;
    }

    section#contact .wpcf7 dd{
        margin-bottom: 25px;
    }
    
    section#contact .wpcf7 dd input, section#contact .wpcf7 dd textarea{
        width: 100%;
        padding: 10px;
        background: #f8fcfb;
        font-size: 16px;
        border-radius: 5px;
    }

    section#contact .white-block__wrap .bth{
        width: 175px;
    }
    section#contact .wpcf7 input[type="submit"]{
            font-size: 16px;
    }
}