@charset "utf-8";

@media screen and (max-width: 600px) {
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    img {
        max-width: 100vw;
    }

    h1 {
        position: fixed;
        left: 0;
        right: auto;
        height: auto;
        min-height: auto;
        width: auto;
        z-index: 1000;
    }

    .desktop {
        display: none;
    }

    .moble {
        display: block;
    }

    .wrapper {
        overflow: hidden;
    }

    .container {
        min-width: auto;
        padding: 0 20px;
    }

    .h2-style01 {
        font-size: var(--unnamed-font-size-20);
    }

    .h2-style02 {
        font-size: var(--unnamed-font-size-20);
    }

    .h2-style03 {
        font-size: var(--unnamed-font-size-20);
        line-height: 1.75;
        margin-bottom: 0.75em;
    }

    .h3-style01 {
        font-size: var(--unnamed-font-size-15);
    }

    .textfont {
        font-size: 16px;
        /* width: calc(100% - 40px); */
        /* margin-left: 20px;
        margin-right: 20px; */
    }

    h1 img {
        /* width: 75%; */
        margin: 0;
        max-height: 100px;
    }

    .mainvisial .mainvisial-bc {
        height: auto;
        padding-top: 70px;
        min-height: 270px;
        width: 100%;
    }

    #section1,
    #section2,
    #section3,
    #section4,
    #section6 {
        margin-top: 100px;
    }

    #section2 h2+.textfont,
    #section3 h2+.textfont,
    #section5 h2+.textfont,
    #section6 h2+.textfont {
        width: calc(100% - 40px);
        margin: 30px auto;
    }

    #section1 {
        margin-top: 1em;
    }

    #section1 .area_01 {
        width: 100%;
        padding-right: 0;
        /*flex-basis: 75%;*/
        margin: 0 calc(75% - 75vw);
    }

    #section1 .area_02 {
        flex-basis: 100%;
        width: 100%;
        margin: 10px 0 0;
        padding: 10px 0 0;
    }

    #section2 .flex_box img {
        width: 100%;
    }

    #section2 .flex_box img:nth-last-of-type(-n+2) {
        margin-bottom: 60px;
    }

    #section2 .flex_box img:last-of-type {
        margin-bottom: 0;
    }

    .box_style_01inner {
        padding: 20px;
    }

    #section3 .row_3>.flex_box .box_style_01 {
        flex-basis: 100%;
    }

    .bc_white {
        padding: 20px;
        margin-left: 20px;
        margin-right: 20px;
    }

    #section4 {
        padding: 100px 0;
        margin-top: 60px;
    }

    #section4 th,
    #section4 td {
        padding: 10px 0;
        width: 100%;
        display: block;
    }

    #section4 th {
        width: 100%;
        padding-bottom: 0;
    }

    #section4 td {
        padding-top: 0;
    }

    #section4 iframe {
        width: 100%;
    }

    #section5 {
        padding: 100px 0;
    }

    #section5 .content_01 .left {
        flex-basis: 100%;
    }

    #section5 .content_01 .left img {
        width: 100%;
    }

    #section5 .content_01 .right {
        flex-basis: 100%;
    }

    #section5 .flex_box.contant_02 {
        flex-direction: column-reverse;
    }

    .balloon1-right {
        flex-basis: 100%;
        margin: 1.5em 0 0;
        padding: 30px 20px;
    }

    .balloon1-right:before {
        top: 0;
        left: 75%;
    }

    .balloon1-right .textfont {
        width: 100%;
    }

    #section5 .balloon-img {
        flex-basis: 100%;
        width: 80%;
        height: auto;
        margin: 0 auto;
    }

    #section6 {
        padding-top: 0;
    }

    #section6 a img {
        width: 100%;
    }

    .form_field label,
    .form_field input {
        width: 100%;
        flex-basis: 100%;
    }

    .form_field {
        flex-wrap: wrap;
    }

    label {
        text-align: start;
        margin-bottom: 0.5em;
    }

    .footer_content {
        flex-direction: column;
    }

    .box_footer {
        text-align: center;
        margin-top: 1em;
    }

    h3.companyname,
    .telnum {
        font-size: var(--unnamed-font-size-20);
    }

    h3.companyname {
        margin-bottom: 1em;
    }


    /*========= ナビゲーションのためのCSS ===============*/

    #m-nav {
        position: fixed;
        z-index: 999;
        top: -120%;
        left: 0;
        width: 100%;
        height: 100vh;
        margin-left: 0;
        background: var(--sub_bc);
        transition: all 0.6s;
    }

    #m-nav.panelactive {
        top: 0;
    }

    #m-nav.panelactive #m-nav-list {
        position: fixed;
        z-index: 999;
        width: 100%;
        height: 100vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    #m-nav ul {
        position: absolute;
        z-index: 999;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    #m-nav li {
        list-style: none;
        text-align: center;
        border-bottom: 1px solid var(--main_c);
        margin: 0 20px;
    }

    #m-nav li:first-of-type {
        border-top: 1px solid var(--main_c);
    }

    #m-nav li a {
        color: var(--text_c);
        text-decoration: none;
        padding: 20px;
        display: block;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: bold;
        font-size: var(--unnamed-font-size-20);
    }

    #m-nav li:last-of-type a {
        padding: 10px 20px;
    }

    #m-nav li:last-of-type a img {
        width: 100%;
        max-height: 80px;
    }

    /*========= ボタンのためのCSS ===============*/
    .openbtn {
        position: fixed;
        z-index: 9999;
        top: 10px;
        right: 10px;
        cursor: pointer;
        width: 50px;
        height: 50px;
        background-color: var(--main_bc);
        transition: all .4s;
    }

    .openbtn.active {
        background-color: var(--sub_bc);
        transition: all .4s;
    }

    .openbtn span {
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        border-radius: 2px;
        background-color: var(--sub_c);
        width: 45%;
    }

    .openbtn span:nth-of-type(1) {
        top: 15px;
    }

    .openbtn span:nth-of-type(2) {
        top: 23px;
    }

    .openbtn span:nth-of-type(3) {
        top: 31px;
    }

    .openbtn.active span:nth-of-type(1) {
        top: 18px;
        left: 18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }

    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }

    .openbtn.active span:nth-of-type(3) {
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }

}