/*
Theme Name: CUBIC
Description: CUBIC Template
Author: 管理人
*/



body{
    font-size:15px;
}
.in{
    width: 90%;
}
.pc{
    display: none;
}



/*リンクボタン----------*/

.link_box{
    margin-top: 50px;
}
.link_text{
    font-size: calc(0.8125rem + ((1vw - 4px) * 0.3205));
    padding: 0.5em 2em;
    & span.arrow_right{
        

    }
}

/**************************
* ヘッダー
**************************/
#header{
    padding: 0.5em;
}
.hed_logo{
    width: calc(100% - 50px - 1em);
    max-width: 200px;
}
.navbotn{
    width: 50px;
    height: 50px;
    background-color: #0011ff;
    border-radius: 50%;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    
    & .hamburger{
        width: 25px;
        height: 18px;
        position: relative;
        & span{
            display: block;
            position: absolute;
            margin: auto;
            width: 100%;
            height: 2px;
            background-color: #ffffff;
            border-radius: 10px;
            transition: transform 0.3s, opacity 0.3s;
            &:nth-child(1){
                top: 0;
            }
            &:nth-child(2){
                top: 0;
                bottom: 0;
            }
            &:nth-child(3){
                bottom: 0;
            }
        }
        
    }
    &.active span{
        &:nth-child(1){
            transform: translateY(8px) rotate(45deg);
        }
        &:nth-child(2){
            opacity: 0;
        }
        &:nth-child(3){
            transform: translateY(-8px) rotate(-45deg);
        }
    }
}



/**************************
* サイドナビ
**************************/

.said_nav{
    position: fixed;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgb(25 99 251 / 21%);
    width: 100%;
    height: 100vh;
    padding: 90px 20px 20px;
    top: -50px;
    left: 0;
    opacity: 0;
    transition: 0.5s;
    visibility: hidden;
    overflow: auto;

    &.active{
        top: 0;
        visibility:visible;
        opacity: 1;
    }
    & #sidebar{
        background-color: #fff;
        border-radius: 15px;
        padding: 45px 5%;
        text-align: center;
        min-height: 100%;
    }
    
}

/**************************
* フッター
**************************/

.foot_recruit{
    background-size: 89%;
    padding: 13vw 0px;
    & a {
        font-size: 9vw;
        & p {
            font-size: 4vw;
        }
    }
}
.foot_contct_button {
    & a {
        font-size: calc(2.375rem + ((1vw - 3.2px) * 4.4643));
    }
}
#footer {
    margin-top: 17vw;
    padding: 11vw 0 10px;
    & .foot_contct {
        margin-bottom: 7vw;
        & ul {
            -webkit-flex-direction: column;
            flex-direction: column;
            gap: 1em;
        }
    }
    & .foot_contct {
        & ul {
            & li {
                &.foot_contct_text {
                    font-size: calc(1.1875rem + ((1vw - 3.2px) * 0.6696));
                }
                &.foot_tel_text{
                    font-size: calc(1.875rem + ((1vw - 3.2px) * 1.3393));
                }
            }
        }
    }
    & .foot_logos{
        -webkit-justify-content: center;
        justify-content: center;
        margin-bottom: 7vw;
    }
    & .foot_nav ul{
        -webkit-justify-content: center;
        justify-content: center;
        font-size: calc(1rem + ((1vw - 3.2px) * 1.3393));
    }
}
/*---------------------
* 見出し
* -------------------*/
h2{
    font-size: calc(1.375rem + ((1vw - 4px) * 2.2436));
}
h3{
    font-size: calc(1.25rem + ((1vw - 4px) * 1.2821));
}
/*---------------------
* ホーム
* -------------------*/
.home_content {
    &:has(.moya) {
        padding: 14vw 0;
    }
}
.home_taotl{
    font-size: calc(1rem + ((1vw - 4px) * 0.641));
}
.home_text{
    font-size: calc(0.9375rem + ((1vw - 4px) * 0.641));
}
.home_01{
    &::before{
        bottom: 0;
    }
    & .moya{
        top: 23%;
        right: -14%;
        width: 87%;
    }
    & .home01_content{
        width: 95%;
        margin: auto;
        -webkit-flex-direction: column;
        flex-direction: column;
        & .home01_taitl{
            font-size: calc(0.8125rem + ((1vw - 4px) * 0.641));
        }
        & .home01_l {
            position: relative;
            z-index: 1;
            & .home01_text_taitl {
                font-size: calc(3.125rem + ((1vw - 4px) * 4.1667));
            }
        }
        & .home01_r{
            position: absolute;
            right: 0;
            width: 50%;
        }
    }
}
.home_02 {
    & .home02_textbox {
        margin-top: 10vw;
    }
}
.home_03 {
    & .home03_hed {
        margin-top: 10vw;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 0;
    }
    & .home03_list{
        margin-top: 3vw;
        &::before{
            padding-top: 22%;
        }
        & ul{
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
            grid-gap: 1rem;
            & li{
                & .home03_listhed {
                    & .home03_no {
                        font-size: 56px;
                    }
                    & .home03_listtaitl {
                        & p {
                            font-size: 28px;
                        }
                        & span{
                            font-size: 15px;
                        }
                    }
                }
                & .home03_listfoot {
                    font-size: 17px;
                }
            }
            
            
        }
    }
}

.home_04 {

    & .home04_link {
        margin-top: 2em;
        display: -webkit-flex;
        display: flex;
        -webkit-justify-content: center;
        justify-content: center;
        font-size: 15px;
    }
}
/****************************
* 下層ページ
* **************************/
/*下層ページヘッダー*/

.content_hed {
    & .hedimgs {
        & .hedimg {
            &.hedimg_02 {
                width: 25%;
            }
            &.hedimg_03 {
                width: 32%;
            }
        }
    }
    &:has(.hedimg_03) {
        & .hedimgs {
            width: 52%;
            & .hedimg_01 {
                width: 19%;
            }
        }
    }
    &:not(:has(.hedimg_03)) {
        padding: 0 5%;
        margin-bottom: 10vw;
        & h2 {
            & strong {
                font-size: calc(2.9375rem + ((1vw - 4px) * 8.4936));
            }
            & span{
                font-size: calc(1rem + ((1vw - 4px) * 0.9615));
            }
        }
        & .hed_text_box {
            & .hed_text {
                font-size: calc(0.9375rem + ((1vw - 4px) * 0.641));
            }
        }
    }
}


/**************
* お知らせ*/
.news_list{
    & a {
        flex-wrap: wrap;
        gap: 0 2em;
        padding: 1em 0;
        & time {
            font-size: 18px;
        }
        @media screen and (max-width: 700px) {
            & .news_list_title{
                width: 100%;
            }
        }
        
    }
}
.news_side{
    margin-bottom: 40px;
    font-size: 0.8em;
    & .newshednav{
        padding: 1em 0;
        & ul{
            display: -webkit-flex;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            & a{
                padding: 0 0.5em;
                border-radius: 2em;
                border: 1px solid #01f;
                line-height: 1.5;
            }
        }
    }
}
.post_box:has(.news_content){
    & .in{
        display: -webkit-flex;
        display: flex;
        flex-wrap: wrap;
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 40px;
        & .news_box,
        & .content_nav{
            -webkit-order: -1;
            order: -1;
        }
    }
}

/*採用情報-----*/
.recruit{
    /*インタビュー*/
    & .interview-item{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
        grid-gap: 0 5rem;
        & .interview-body{
            margin-top: 50px;
        }
    }
}
/*採用情報詳細*/
.table_box :is(table,tbody,tr,th,td){
    display: block;
}
/*事業実績-----------*/
/*事業実績一覧*/

.project_cat {
    & ul{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 100px), 1fr));
        grid-gap: 1px;
        & li{
            width: 100%;
        }
    }
}
.project_list{
    @media screen and (max-width: 500px) {
        & ul li{
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
            grid-gap: 1rem;
            & .project_listtext,
            & .project_listimg{
                width: 100%;
            }
        }
    }
}


/****************************
* 固定ページ
* **************************/
/*事業内容-----*/

.services-container {
    & .service_rootbutton {
        position: sticky;
        top: 76px;
        &::after {
            content: "▼";
            position: absolute;
            right: 15px;
            top: 0;
            transform: translateY(12%);
            font-size: 12px;
            color: #666;
            pointer-events: none;
            z-index: 1;
        }
        & ul {
            flex-wrap: wrap;
            -webkit-flex-direction: column;
            flex-direction: column;
            & li{
                display: block;
                &:last-child {
                    border-bottom: none;
                }
                &:not(:has(.active)) {
                    display: none;
                    & a .tab_name {
                        flex-wrap: wrap;
                        -webkit-flex-direction: column;
                        flex-direction: column;
                        -webkit-align-items: flex-start;
                        align-items: flex-start;
                        gap: 0;
                    }
                }
            }
            & a {
                border:2px solid #0011ff;
                border-radius: 10px;
                padding: 7px;
                gap: 5px;
                & .tab_no {
                    font-size: 28px;
                }
                & .tab_name {
                    & .root-title-large {
                        font-size: 13px;
                        line-height: 1.5;
                    }
                }
                &.active {
                    padding-bottom: 7px;
                }
            }
        }

        &.open{
            & ul{
                & li {
                    display: block;
                    &:not(:has(.active)) {
                        display: block;
                    }
                }
            }
            
            &::after {
                content: "▲";
            }
        } 
    }
}
.service-root-item{
    margin-top: 20px;
    & .root-description {
        font-size: 20px;
        font-size: calc(0.9375rem + ((1vw - 4px) * 0.8013));
    }
    & .field-box-item {
        margin-top: 50px;
    }
    & .field-images-gallery{
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 195px), 1fr));
    }
}

/*お問い合わせ------*/
.contact_boxwrap{
    & dl{
        & dd{
            
            & input{
                &[type="text"],
                &[type="email"],
                &[type="tel"],
                &[type="file"]{
                    width: 100%;
                }
            }
        }
    }
}

/*営業拠点--------*/
.base-list-tab{
	position:relative;
	font-size: 0.8em;
	 & .tab_select.mob {
	 display: block;
	 padding: 0.8em 2.5em 0.8em 1em;
	 background-color: #fff;
	 color: #374467;
	 border: 2px solid #374467;
	 border-radius: 4px;
	 font-weight: bold;
	 text-align: center;
	 cursor: pointer;
	 position: relative;
	 &::after {
		 content: "▼";
		 font-size: 0.8rem;
		 position: absolute;
		 right: 15px;
		 top: 50%;
		 transform: translateY(-50%);
		 transition: transform 0.3s;
	 }
	 &.open::after {
		 transform: translateY(-50%) rotate(180deg);
	 }
	}
	& ul {
            display: none; 
            grid-template-columns: 1fr; 
            grid-gap: 0;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            z-index: 100;
            background-color: #fff;
            border: 2px solid #374467;
            border-top: none;
            border-radius: 0 0 4px 4px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            max-height: 250px;
            overflow-y: auto;

            & a {
                border: none; 
                border-bottom: 1px solid #eee; 
                text-align: left; 
                padding: 0.8em 1em;

                &.active {
                    background-color: #f0f4ff;
                    color: #374467;
                    font-weight: bold;
                }
            }
            
            li:last-child a {
                border-bottom: none;
            }
		}
}




