/* --------------------------------------------------------------
   Media query - Responsive 
   -------------------------------------------------------------- */

/* =====================================================
   1199px
   ===================================================== */
@media screen and (max-width: 1199px) {

    body,
    #wrapper {
        width: 1200px;
        min-width: 1200px;
    }
}

/* =====================================================
   992px - Tablet + Mobile
   ===================================================== */
@media screen and (max-width:992px) {
    :root {
        --font-size: 16px;
        --font-size-xxl: 180%;
        --font-size-xl: 160%;
        --font-size-l: 140%;
        --font-size-m: 120%;

        /* margin */
        --mb-section: 10%;
        --mb-container: 8%;
        --mb-case: 6%;
        --mb-pack: 4%;
        --mb-item: 4%;
    }

    /* Scroll Lock */
    .no-scroll {
        height: 100vh;
        overflow: hidden;
    }


    /* Common */
    .sp {
        display: block;
    }

    .pc {
        display: none;
    }

    body,
    #wrapper,
    .box_full {
        width: 100%;
        min-width: 100%;
    }

    #main,
    .box {
        width: 96%;
        min-width: 96%;
    }

    /* Header */
    #h_box {
        padding: 15px 0;
    }

    #h_left {
        flex: 0 0 40%;
        padding-top: 5px;
    }

    #h_right {
        flex: 0 0 50%;
    }

    #h_left img {
        width: 200px;
    }

    #h_right li {
        display: inline-block;
        width: 40px;
        margin-left: 5px;
    }

    #h_right ul {
        padding: 0 50px 0 0;
    }

    #h_right .sp {
        text-align: right;
    }

    #h_right .sp #menu {
        float: right;
        margin-top: -30px;
        position: relative;
        z-index: 1003;
    }

    /* Hamburger Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 20px;
        position: relative;
        z-index: 1004;
    }

    .menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--bg-nav);
        border-radius: 3px;
        transition: all .5s ease;
    }

    .no-scroll .menu-toggle span {
        background: #FFF;
    }

    .menu-toggle input {
        position: absolute;
        width: 40px;
        height: 28px;
        margin: -6px;
        opacity: 0;
        cursor: pointer;
        z-index: 10;
    }

    .menu-toggle span:nth-child(2) {
        transform-origin: 0 0;
    }

    .menu-toggle span:nth-child(4) {
        transform-origin: 0 100%;
    }

    .menu-toggle input:checked~span:nth-child(2) {
        transform: rotate(45deg) translate(-1px, -1px);
    }

    .menu-toggle input:checked~span:nth-child(3) {
        opacity: 0;
        transform: scale(0);
    }

    .menu-toggle input:checked~span:nth-child(4) {
        transform: rotate(-45deg) translate(-1px, 0);
    }



    /* =====================================================
   SP Overlay
   ===================================================== */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: all .3s ease;
        z-index: 998;
    }

    .menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    /* =====================================================
   SP Panel - Slide From Right
   ===================================================== */
    .panel {
        position: fixed;
        top: 0;
        right: 0;
        /* slide from right */
        left: auto;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #222;
        transform: translateX(100%);
        /* hidden */
        transition: transform .4s ease;
        z-index: 999;
        padding-top: 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel.open {
        transform: translateX(0);
    }

    .panel ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .panel ul li {
        text-align: center;
        margin: 0;
        position: relative;
    }

    .panel ul li a {
        display: block;
        font-size: var(--font-size-ss);
        padding: 12px;
        color: var(--c-text-light);
        text-decoration: none;
    }

    .panel ul li a:hover {
        letter-spacing: 2px;
    }

    /* sub-menu becomes normal block */
    #mainNav .panel ul li>ul {
        position: relative;
        border: 0;
        min-width: auto;
        background: #f9f4ef;
        display: none;
    }

    #mainNav .panel ul li.open>ul {
        display: block;
    }

    /* Sub Toggle Button (+ / -) */
    .subToggle {
        position: absolute;
        right: 0px;
        top: 0px;
        width: 40px;
        height: 100%;
        line-height: 60px;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        border: 0;
        background: var(--c-red);
        color: #fff;
    }

    /* Mobile hover underline OFF */
    #mainNav ul li a:after {
        display: none;
    }

    /* Mobile sub-menu item style */
    #mainNav .panel ul li>ul li a {
        padding: 12px 16px;
        color: #333;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    p#copyright {
        letter-spacing: 0px;
        font-size: 80%;
    }

    .title_main {
        padding-top: 70px;
    }

    .title_main::before {      
        height: 60px;
    }

    /* contact_f ---------------------------------------------------------- */
    
    #contact_f .split_content{               
        padding:6%;
    }
    #contact_f a span{
        font-size: 100%;
    }

    #main_img_wrap {        
        padding: 6% 10%;
    }

    #main_img_sub .in_parallax {
        height: 180px;
    }

    .bg_sty01 .hilight {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .bg_sty01 {
        padding-bottom: 10%;
    }

    .bg_sty01::before {
        width: 100%;
        height: calc(100% - 20%);
    }

    /* page_faq
---------------------------------------------------------- */
    .page_faq #faq .q {
        background-position: 13px 15px;
        background-size: 25px;
        padding: 10px 10px 10px 55px;
    }

    .page_faq #faq .q p {
        background-position: right 6px;
        background-size: 15px;
        padding-right: 20px;
    }

    .page_faq #faq .a {
        background-position: 13px 15px;
        background-size: 25px;
        padding: 10px 0 0 55px;
    }







}


/* =====================================================
   576px - Mobile
   ===================================================== */
@media screen and (max-width:576px) {
    #h_left {
        flex: 0 0 50%;
    }

    .collum3,
    .collum4 {
        gap: 3.5%;
        justify-content: center;
    }

    .collum3 li,
    .collum4 li {
        width: calc(50% - 1.75%);
        margin-bottom: 3.5%;
    }

    .collum3 li {
        width: calc((100% - 20px) / 2);
    }

    .tb_cell th,
    .tb_cell td {
        width: 100% !important;
        display: block;
        text-align: center !important;
        font-size: 90%;
        padding: 10px;
    }

    .pic_l,
    .pic_r {
        flex-direction: column;
    }

    .container .msg,
    .container .img {
        flex: 0 0 100%;
    }

    .container .msg {
        margin-bottom: 6%;
    }

    .img_top .img {
        margin-bottom: 6%;
    }

    .img_top .msg {
        margin-bottom: 0%;
    }

    .menu_list ul a {
        width: 82%;
    }

    .menu_list .trigger {
        width: 15%;
    }

    /* contact_f ---------------------------------------------------------- */
    #contact_f{
        flex-direction:column;        
    }
   
    #contact_f .split_image{
        width:100%;
        min-height:250px;        
    }
    
    #contact_f .split_content{
        width:100%;        
        padding:8%;
        text-align: center;
    }

    #contact_f .split_inner{
        width:100%;
        max-width:100%;
    }

    /* page_index ---------------------------------------------------------- */
    .page_index #news ul {
        height: 350px;
    }

    .page_index #news li {
        padding-left: 0;
    }

    .page_index #news li span {
        display: block;
        margin-bottom: 10px;
        margin-left: 0;
        width: auto;
    }


    /* page_company
---------------------------------------------------------- */
    .page_company .timeline {
        padding-left: 24px;
    }

    .page_company .timeline::before {
        left: 7px;
    }

    .page_company .timeline-dot {
        width: 14px;
        height: 14px;
        left: 0;
    }

}