@charset "utf-8";


@media screen and (max-width: 1660px){
    /* HEADER */
    #header .header-menu ul li a, .footer-content__flex-menu ul li a{
        font-size: 14px;
    }
    #header .header-menu ul, .footer-content__flex-menu ul{
        gap: 30px;
    }
    .header-logo__main img{
        width: 360px;
    }
    #header .header-menu ul li::before, .footer-content__flex-menu ul li::before{
        width: 6px;
        height: 6px;
        top: 13px;
    }
    #header .header-menu ul li, .footer-content__flex-menu ul li{
        padding-left: 16px;
    }
    
    .top-about__title .title-en{
        position: initial;
        transform: initial;
    }
    .top-about__title span{
        display: block;
    }
    .top-about__title img{
        display: none;
    }
}

@media screen and (max-width: 1500px) {
    :root{
        --wrap: 1200px;
        --wrap-sm: 1200px;
        --padding: 100px;

        --font-md-text: 16px;
    }



    /* FOOTER */
    .footer-bottom__flex-text{
        font-size: 12px;
    }



    /* TOP */
    .mv{
        padding: 180px 20px 0;
    }
    .mv-box{
        top: calc(180px - 3vw);
    }
    .top-service__text{
        font-size: 24px;
    }
    .top-service__grid{
        padding: 0 20px;
    }
    .top-company__cont-box__ttl{
        font-size: 32px;
        top: -8px;
    }
    .top-company__cont-box__item-text{
        font-size: 22px;
    }
    .top-company__cont-box__overview dl,
    .top-company__cont-box__history dl,
    .top-company__cont-box__qualified li{
        font-size: 18px;
    }
}


@media screen and (max-width: 1199px) {
    :root{
        --wrap: 100%;
        --space: 20px;
        --padding: 80px;
    }

    .wrap,
    #footer .wrap{
        padding: 0 20px;
    }
}


@media screen and (max-width: 991px) {
    :root{
        --font-md-text: 14px;
    }

    body{
        min-width: 320px;
    }


    /* HEADER */
    #header{
        padding: 5px 20px;
        width: calc(100% - 40px);
        top: 20px;
    }
    #header .header-logo{
        gap: 20px;
        z-index: 1;
        position: relative;
    }
    .header-logo__main img{
        width: 260px;
    }
    .header-logo__sub img{
        width: 70px;
    }
    .nav-toggle{
        display: block;
        width: 20px;
        height: 15px;
        position: relative;
    }
    .nav-toggle span{
        position: absolute;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: var(--text-color);
        transition: var(--transition);
    }
    .nav-toggle span:nth-of-type(1){
        top: 0;
    }
    .nav-toggle span:nth-of-type(2){
        top: 7px;
    }
    .nav-toggle span:nth-of-type(3){
        top: 14px;
    }
    .open .nav-toggle span:nth-of-type(1){
        top: 7px;
        transform: rotate(45deg);
    }
    .open .nav-toggle span:nth-of-type(2){
        opacity: 0;
    }
    .open .nav-toggle span:nth-of-type(3){
        top: 7px;
        transform: rotate(-45deg);
    }
    #header .header-menu{
        position: fixed;
        top: -22px;
        left: -22px;
        width: calc(100% + 44px);
        height: calc(100vh + 44px);
        background-color: var(--body-color);
        padding: 130px 20px 40px;
        overflow-y: scroll;
        text-align: center;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: var(--transition);
    }
    #header.open .header-menu{
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }
    #header .header-menu ul{
        display: inline-block;
        text-align: left;
    }
    #header .header-menu ul li:not(:last-child){
        margin-bottom: 20px;
    }


    /* FOOTER */
    .footer-img{
        padding: 0 20px;
    }
    .footer-sec{
        padding-bottom: 20px;
    }
    .footer-content__flex-contact{
        display: flex;
        flex-wrap: wrap;
    }
    .footer-content__flex{
        display: block;
    }
    .footer-content__flex-contact__title{
        padding: 30px 0 30px 30px;
        width: 100%;
    }
    .footer-content__flex-contact__title-text{
        margin-bottom: 10px;
    }
    .footer-content__flex-menu{
        padding-top: 60px;
    }
    .footer-content__flex-menu ul{
        justify-content: center;
    }
    .footer-content__logo{
        margin-top: 40px;
    }
    .footer-content__logo img{
        width: 320px;
    }
    .footer-content{
        padding-bottom: 40px;
    }
    .footer-bottom__flex{
        display: block;
        text-align: center;
    }
    .footer-bottom__flex-text,
    .footer-bottom__flex-text:nth-of-type(1){
        border: none;
        padding: 0;
    }
    .footer-bottom__flex-text br{
        display: block;
    }
    .footer-bottom__flex-text:nth-of-type(1){
        padding: 30px 0 10px;
    }




    /* TOP */
    .mv{
        padding: 130px 20px 0;
    }
    .mv-box {
        right: 30px;
        top: 130px;
    }
    .mv-lead{
        font-size: 1.6vw;
    }
    .mv-circle{
        right: 30px;
    }
    .title-en{
        font-size: 70px;
        line-height: 1.2;
    }
    .title-text{
        font-size: 15px;
        padding-left: 15px;
    }
    .title-text::before{
        top: 12px;
        width: 6px;
        height: 6px;
    }
    .top-about__text{
        font-size: 24px;
        margin-bottom: 30px;
    }
    .top-about__flex-box__text br{
        display: none;
    }
    .top-about__flex-box__text br.t-up{
        display: block;
    }
    .top-about__flex-item{
        margin-top: 50px;
        text-align: center;
    }
    .top-about__flex{
        display: block;
    }
    .top-about__flex-item__label{
        padding: 15px 0;
    }
    .top-about__flex-item__label small{
        display: block;
        margin: 0;
        top: 0;
        margin-top: 10px;
    }
    .top-about__flex-item ul{
        display: inline-block;
        text-align: left;
    }
    .top-service__text{
        font-size: 18px;
    }
    .top-service__text br{
        display: none;
    }
    .top-company__cont-box{
        display: block;
        margin-bottom: 50px;
    }
    .top-company__cont-box__ttl{
        max-width: 100%;
        top: 0;
        font-size: 26px;
        margin-bottom: 10px;
    }
    .top-company__cont-box__item{
        max-width: 100%;
    }
    .top-company__cont-box__item-text{
        font-size: 18px;
    }
    .top-company__title{
        margin-bottom: 50px;
    }
    .top-company__cont-box__overview dl, .top-company__cont-box__history dl, .top-company__cont-box__qualified li{
        font-size: 16px;
    }
    .top-company__cont-box__qualified{
        gap: 0 100px;
    }
}


@media screen and (max-width: 767px) {
    :root{
        --padding: 60px;
    }
    p{
        font-size: 14px;
    }
    

    /* HEADER */
    .header-logo__main{
        margin-bottom: 5px;
    }
    .header-logo__main img{
        width: 260px;
    }
    #header .header-logo{
        display: block;
        gap: 10px;
    }
    #header{
        padding: 10px 15px;
        border-radius: 6px;
    }



    /* FOOTER */
    .footer-content__flex-contact__title-en{
        font-size: 32px;
    }
    .footer-content__flex-contact__title-text{
        font-size: 14px;
        padding-left: 16px;
        margin-bottom: 5px;
    }
    .footer-content__flex-contact__title-text::before{
        width: 6px;
        height: 6px;
        top: 9px;
    }
    .footer-content__flex-contact__title{
        padding: 30px 0 0;
        border: none;
    }
    .footer-content__flex-contact__link{
        padding-left: 0;
        max-width: 100%;
        margin-top: 20px;
    }
    .footer-content__flex-menu ul{
        display: none;
    }
    .footer-content__logo{
        margin-top: 0;
    }
    .footer-content__logo img{
        width: 280px;
    }
    .footer-content__flex-menu{
        padding-top: 30px;
    }
    .footer-bottom::before{
        width: 100%;
    }
    .footer-content{
        padding-bottom: 30px;
    }



    /* TOP */
    .mv-box{
        position: initial;
        margin-bottom: 30px;
    }
    .mv-box__text{
        text-align: left;
        font-size: 24px;
        margin-bottom: 10px;
    }
    .mv-box__en img{
        width: 370px;
    }
    .mv-lead{
        padding: 0;
        font-size: 13px;
    }
    .mv-lead br{
        display: none;
    }
    .top-company__cont-box__overview dl dt{
        max-width: 100%;
    }
    .top-company__cont-box__overview dl dd{
        max-width: 100%;
        padding-left: 0;
    }
    .title{
        margin-bottom: 30px;
    }
    .title-en{
        font-size: 50px;
    }
    .title-text{
        font-size: 12px;
        padding-left: 14px;
    }
    .title-text::before{
        width: 4px;
        height: 4px;
        top: 10px;
    }
    .top-about__text{
        font-size: 16px;
        margin-bottom: 20px;
    }
    .top-about__flex-item ul{
        display: block;
    }
    .top-about__flex-item ul li{
        font-size: 16px;
        padding-left: 30px;
    }
    .top-about__flex-item ul li::before{
        font-size: 12px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        top: 4px;
    }
    .top-service__text{
        font-size: 14px;
    }
    .top-service__grid{
        grid-template-columns: repeat(1,1fr);
        gap: 10px;
    }
    .top-service__grid-item__img-inner{
        border-radius: 10px;
    }
    .top-service__grid-item__text{
        font-size: 20px;
    }
    .top-company__title{
        margin-bottom: 50px;
    }
    .top-company__cont-box__ttl{
        font-size: 20px;
    }
    .top-company__cont-box__item-text{
        font-size: 14px;
    }
    .top-company__cont-box__overview dl{
        padding: 12px 10px;
    }
    .top-company__cont-box__overview dl dt{
        font-size: 14px;
        text-align-last: left;
        margin-bottom: 0;
    }
    .top-company__cont-box__overview dl dd{
        line-height: 2;
        font-size: 14px;
    }
    .top-company__cont-box__overview dl{
        display: block;
    }
    .top-company__cont-box__overview dl:last-child dd{
        padding-left: 1em;
    }
    .top-company__cont-box__overview dl:last-child dd span{
        max-width: 100%;
        display: block;
        margin-left: -1em;
    }
    .top-company__cont-box__history dl dt{
        max-width: 100%;
    }
    .top-company__cont-box__history dl dd{
        max-width: 100%;
        font-size: 13px;
        font-weight: normal;
    }
    .top-company__cont-box__history dl dd br{
        display: none;
    }
    .top-company__cont-box__overview dl, .top-company__cont-box__history dl, .top-company__cont-box__qualified li{
        font-size: 14px;
        line-height: 2;
    }
    .top-company__cont-box__history dl{
        display: block;
    }
    .top-company__cont-box__history dl:not(:last-child){
        margin-bottom: 20px;
    }
    .top-company__cont-box__qualified{
        display: block;
    }
    .form-wrap dl{
        padding: 20px 0;
        display: block;
    }
    .form-wrap dl dt,
    .form-wrap dl dd{
        width: 100%;
        font-size: 14px;
    }
    .form-wrap dl dt{
        margin-bottom: 10px;
    }
    .form-wrap dl dt span{
        font-size: 11px;
        padding: 0 8px;
    }
    .form-wrap dl dd textarea{
        height: 150px;
    }
    .submit-btn input[type="submit"]{
        font-size: 14px;
        max-width: 220px;
        padding: 10px 0;
    }
    .submit-btn{
        margin-top: 30px;
    }
    .top-contact__policy{
        padding: 20px;
    }
    .top-contact__policy-text{
        font-size: 13px;
    }
}