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

body {
    font-size: 32px;
    font-size: calc(0.9375rem + ((1vw - 3.9px) * 2.9412));
}
.in {
    width: 95%;
}
.pc {
    display: none;
}

/*ヘッダー---------------*/
.hed_logo {
    padding-left: 2vw;
    position: relative;
    z-index: 1;
    width: 50%;
    max-width: 312px;
}
.hed_logo h1 {
    margin: 0;
    line-height: 0;
}

/*ハンバーガーメニュー*/
.navbotn {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--p_color);
    z-index: 1;
    padding: 15px;
    cursor: pointer;
}
.navbotn .hamburger {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
    pointer-events: none;
    cursor: pointer;
}
.navbotn .hamburger span {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #fff;
    margin: auto;
    transition: 0.5s;
    left: 0;
}
.navbotn .hamburger span:nth-child(1) {
    top: 0;
}
.navbotn .hamburger span:nth-child(2) {
    top: 0;
    bottom: 0;
}
.navbotn .hamburger span:nth-child(3) {
    bottom: 0;
}
.navbotn .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
}
.navbotn .hamburger.active span:nth-child(2) {
    opacity: 0;
    left: 50%;
}
.navbotn .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 16px;
}

/*ナビ----*/

.hed_nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 100px 0 60px;
    overflow: auto;
    transition: 0.5s;
    opacity: 0;
    visibility: hidden;
}
.hed_nav.active {
    opacity: 1;
    visibility: visible;
}
.hed_nav nav {
    width: 90%;
    margin: auto;
    padding: 20px;
    background-color: var(--l_color);
    border-radius: 6px;
}
.hed_nav nav a {
    padding: 1em;
    display: block;
    text-align: center;
}
.hed_nav nav li:has(.sub-menu) {
    cursor: pointer;
}
.hed_nav nav .sub-menu {
    background-color: var(--p_color);
    border-radius: 6px;
    color: #fff;
}
.hed_nav nav .sub-menu,
.hed_nav nav .sub-menu :is(li, a) {
    height: 0;
    transition: 0.5s;
    opacity: 0;
    visibility: hidden;
}
.hed_nav nav li.active .sub-menu,
.hed_nav nav li.active .sub-menu :is(li, a) {
    height: auto;
    opacity: 1;
    visibility: visible;
}
/*フッター---------------*/

.foot_nav .menu {
    font-size: calc(0.8125rem + ((1vw - 3.9px) * 1.1765));
    gap: 11px 0;
}
.foot_nav .menu li a{
    padding: 0 0.5em;
}
footer {
    margin-top: 14vw;
}

/*ホーム--------------------------------*/
.home_content {
    margin-top: 10vw;
}

.mv_img {
    height: 60vw;
}
.mv_text {
    font-size: 40px;
    font-size: 4.4vw;
    margin-bottom: 0;
    width: 90%;
}
.mv_logo img {
    width: 65%;
}
/*メインビジュアルした*/
.home_01 {
	position:relative;
}
.home_01 .in {
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-direction: column;
    flex-direction: column;
}
.home01_img {
    width: 100%;
}
.home01_img img {
    width: 50%;
    max-width: 280px;
}
.home01-02_img{
	position: absolute;
	right: 2vw;
	bottom: -17vw;
	width: 38%;
}
.home01-02_img img{
	width: 100%;
    max-width: 100%;
}
.home01_text {
    margin-top: 4vw;
}
.home01_text p {
    font-size: 47px;
    font-size: calc(1.875rem + ((1vw - 3.9px) * 3.3333));
    margin-bottom: 0;
}
/*home03〜home_05共通*/
.flex_l,
.flex_r {
    padding: 0 5%;
}
.flex_r {
    padding-right: 2%;
}
.home_taitl {
    font-size: 60px;
    font-size: calc(1.875rem + ((1vw - 3.9px) * 5.8824));
    line-height: 1.25;
}

/*ホームお知らせ*/
.home_02 .news_list li .news_cat span{
	width:5em;
}
.home02_taitl {
    font-size: 60px;
    font-size: calc(2.625rem + ((1vw - 3.9px) * 3.5294));
}

/*ホームこだわり*/
.home03_img img {
    width: 69%;
}
.home03_button a {
    min-width: 10em;
}

.home_03{
	display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
	gap: 5vw;
	margin-bottom: 23vw;
	padding: 3vw 0 7vw;
}
.home_03 > .in{
	-webkit-order: -1;
    order: -1;
}
.home03_img img {
    width: 81%;
}
.home03-01_img{
	text-align:center;
	-webkit-order: -1;
    order: -1;
}
.home03-01_img img{
	width: 90%;
}
.home03-02_img{
	text-align: center;
    margin-bottom: -23vw;
}
.home03-02_img img{
	width: 34.5%;
}
/*ホーム取組*/
.home04_img img{
	width: 34.5%;
}
/*ホームロハスファームについて*/
.home_05{
	margin-top: 22vw;
	padding: 5vw 0;
}
.home05-1_img{
	text-align: center;
	margin-bottom: 7vw;
	margin-top: -22vw;
}
.home05-1_img img{
	width: 34.5%;
}
.home05-2_img{
	margin-left: -11.6%;
	margin-bottom: -10vw;
}

/*下層ページ-------------------*/

/*見出し-----*/
h2{
    font-size: 62px;
    font-size: calc(1.6875rem + ((1vw - 3.9px) * 6.8627));
}
h3{

}
h4{
	font-size: 3.7vw;
}
h5{

}
h6{

}


/*下層ページヘッダー*/
.content_hed {
    position: relative;
}
.contenthed_taitl h2 {
    font-size: 60px;
    font-size: calc(1.75rem + ((1vw - 3.9px) * 6.2745));
}
.contenthed_img,
.content_hed:has(.contenthed_img) .contenthed_taitl {
    height: 73vw;
}
.contenthed_taitl {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 6% 0 0;
}
.contenthed_img {
    position: absolute;
    margin-top: 0 !important;
    top: 0;
}
.contenthed_img:not(:has(.mob)) .pc{
    display: block;
}
.contenthed_logo {
    width: 100%;
    text-align: center;
    margin-top: 8vw;
}
.contenthed_logo img {
    width: 37%;
}
.content_hed:has(:not(.contenthed_img)) {
    margin-bottom: 80px;
}
/*お知らせ----------------------------*/
/*お知らせ一覧*/
.news_list li .news_data {
    width: 100%;
}
.news_list li .news_cat {
    width: 10em;
}
.news_list .news_taitl {
    width: calc(100% - 10em);
    -webkit-line-clamp: 2;
}

.lowernews_listbox{
    display: -webkit-flex;
    display: flex;
    
    -webkit-flex-direction: column;
    flex-direction: column;
}
.lowernews_listbox :is(.lowernews_list,.pagnav){
    -webkit-order: -1;
    order: -1;
}
#sidebar{
    margin-top: 100px;
}
#sidebar .inw {
    padding: 6% 4%;
}
.lowernews_list .inw{
    padding: 2vw 3vw;
}
.lowernews_list .news_list li .news_cat span{
    width: 10em;
    padding: 0.2em 0;
}

/*アーカイブナビ*/

#sidebar li+ li {
    border-top: solid 1px #ebebeb;
}
#sidebar li a{
    line-height: 1;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 18px 30px 18px 3vw;
}
#sidebar li a::before{
    content: "";
    display: block;
    position: absolute;
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid #333;
    border-top:  2px solid #333;
    transform: rotate(45deg);
    margin: auto;
    top: 0;
    bottom: 0;
    right: 0.5em;
}

/*お知らせ詳細*/
.news_itembox .basebox{
	padding: 50px 5%;
}

/*固定ページ----------------------------------*/

/*ロハスファームについて*/
.about_box .in {
    width: 100%;
    letter-spacing: 0;
}
.about_01 {
    padding: 40px 8%;
}
.thema_text {
    font-size: 36px;
    font-size: calc(1.25rem + ((1vw - 3.9px) * 3.1373));
}
.about01_taitl {
    font-size: 70px;
    font-size: calc(2.375rem + ((1vw - 3.9px) * 6.2745));
}
.about_02 {
    padding: 50px 3%;
}
.about02_img {
    padding: 0 18% 0 7%;
}
.about03_text {
    padding: 50px 3% 0;
}

/*取組-------*/
.torikumi{
    margin-top: 8vw;
}
.torikumi_h p{
    font-size: 32px;
    font-size: calc(0.9375rem + ((1vw - 3.9px) * 3.3333));
}
/*こだわり---------*/
.kodawari_01, .kodawari_02{
    background-size: 52%;
}
.kodawari_01{
    margin-top: 8vw;
}
.kodawari_02{
    background-image: url(../images/kodawari_02.png);
}
.kodawari_h{
    font-size: 40px;
    font-size: calc(1.125rem + ((1vw - 3.9px) * 4.3137));
}
.kodawari_bh{
    margin-top: 20px;
}
.kodawari_bh p{
    min-width: 9em;
    font-size: 45px;
    font-size: calc(1.5rem + ((1vw - 3.9px) * 4.1176));
}
.kodawari_bh p span{
    font-size: 0.75em;
}
.kodawari01_01{
	gap: 5vw;
}
.kodawari01_01 .kodawari_h{
	width: 35vw;
}
.kodawari01_01img{
	width: 54vw;
}

/*採用情報---------*/

.interview{
	margin-top: 8vw;
}
.interview01_hed{
	font-size: 6vw;
	padding: 6vw;
	margin-bottom: 12vw;
}
.interviewlist_hed{
	font-size: 46px;
}
.interviewlist_no{
	font-size: 17vw;
}
.interview_name {
    font-size: 10vw;
}
.interview_img{
	text-align:center;
	margin-top:1em;
}
.interview_list li+ li{
	margin-top: 15.5vw;
}
.interview03_text .Beb{
	font-size: 14vw;
}
.interview03_link{
	width:100%;
	text-align:center;
}
.interview03_link a{
	font-size: 6vw;
}

.interview_hed_content::before{
	width: 115%;
    padding-top: 115%;
    left: -15%;
    top: -24%;
}
.interview_vdeo{
	margin-top:6vw;
}
.interview_hed_content{
	margin-bottom: 12%;
}
.interview_foot{
	padding:0 50px;
}
.interview_foot li{
	-webkit-flex-direction: column;
    flex-direction: column;
	gap:2em;
}

/*お問い合わせ------------*/
.contectfomw :is(table,tbody,tr,th,td){
    display: block;
}
.contectfomw th{
    text-align: left;
}
.contectfomw td {
    margin-bottom: 20px
}
/*ファイテンの技術*/
body:has(.fainthin){
	& .content_hed{
		& .contenthed_img{
			
		}
	}
	#base{
		margin-top: 36vw;
	}
	
}
