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



body{
    
}
.in{
    width: 90%;
}
.pc{
    display: none;
}
/**********************
* ヘッダー
* ********************/
header{
	display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
	 -webkit-align-items: center;
    align-items: center;
    padding: 10px 3%;
}
header::after{
	content: "";
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #f5f7f5;
}
.hed_buttons{
    display: -webkit-flex;
    display: flex;
	 -webkit-align-items: center;
    align-items: center;
}
.hed_sns #nav_menu-5{
    font-size: 43px;
}
#header{
	width: 100%;
	padding: 0;
	gap: 0;
	position: relative;
	z-index: 1;
}
.hed_logo{
	width: 36%;
    max-width: 165px;
}
.hed_sns{
	position: relative;
	z-index: 1;
}
.hed_yoyaku{
    font-size: 2.2vw;
    font-size: calc(0.625rem + ((1vw - 3.2px) * 0.7102));
}
.hed_yoyaku a{
    padding: 0.8em 0.5em;
    width: 8em;
}
/*ナビ*/

nav,
nav.active::after{
    width: 98%;
    height: 90%;
}
#gnavibase{
	height: calc(100vh - 17vh);
}

nav.active .navbotn{
	right: 20px;
	z-index: 20;
}
.sidebar_nav .menu{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	grid-gap: 1rem;
	margin-bottom:2em;
}
#gnavi #nav_menu-2 .menu > li > a{
	font-size:1.1em;
	font-weight:bold;
}
#gnavi .sub-menu{
	margin-left:1em;
	font-size:0.9em;
}


.sidebar_nav .sub-menu:has(.asbmenu_facility){
	& .asbmenu_facility{
		font-size:0.9em;
		& > li p{
			font-weight: bold;
			margin-left: -1em;
			margin-top: 0.5em;
		}
	}
}

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

footer{
    margin-top: 16vw;
}
.foot_contacts ul a{
    font-size: 3vw;
}
.foot_logo{
    text-align: center;
}
.foot_navs{
    margin-top: 4em;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
}
.foot_cc{
    margin-top: 3em;
    text-align: center;
}
.foot_logoad{
	-webkit-align-items: center;
	align-items: center;
}

/**********************
* ホーム
* ********************/

.top-mv {
    height: calc(100vh - 127px);
	width: 100%;
}
.top-mv video{
	border-radius: 75vw 0 0 0;
	width: 445px;
	height: 665px;
	object-fit: cover;
}
.mvtext_box{
	top: auto;
	width: auto;
}
.mvtext{
	margin:0;
	width: auto;
	font-size: calc(1.5625rem + ((1vw - 3.2px) * 1.4205));
}
.mvtext p{
	margin:0;
	border-radius: 0 2em 0 0;
}

.home_content,
.home02_list{
    margin-top: calc(3.75rem + ((1vw - 3.2px) * 4.2614));
}
.home_content .link_box{
    text-align: center;
}
.home_content .home02_nav{
    display: none;
}
.home02_content .in::before{
	left: -6%;
	width: 66%;
    height: 100%;
}
.home02_content{
	container-type: inline-size;
    container-name: home02;
}
.home02_imgs{
	margin-bottom:30px;
}
@container home02 (min-width: 530px) {
	.home_02 .in{
		display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: flex-start;
    align-items: flex-start;
	}
	.home02_imgs{
		width: 37%;
    margin-left: -5%;
	}
	.home02_textbox{
		width: 54%;
	}
	
}
/*ホーム私たちの理念*/
.home_headline{
    font-size: calc(1.875rem + ((1vw - 3.2px) * 1.8466));
}
.home_mainimg{
    
}
.home_textbox{
    margin-top: 5vw;
}
.home_02{
    
}
.home_03 {
    margin-top: 25%;
}
.home_imgsabs{
    margin-top: -5%;
}
.home_imgsabs > div {
    width: 22%;
}
.home02_ltitle{
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 7vw;
}
.home02_ltitle .tate{
    writing-mode: horizontal-tb;
    text-orientation: mixed; 
    margin: 0;
}
.home02_ltitle span{
    margin-left: -4em;
    font-size: calc(0.75rem + ((1vw - 3.2px) * 0.5682));
}
.home03_imgs {
    max-width: 540px;
	margin: auto;
}
.home03_img_01{
    width: 40%;
	margin-left: 48%;
	max-width: 100%;
}
.home03_img_02{
	margin-bottom: 0;
	width: 52%;
	max-width: 100%;
}
.home03_img_03{
    top: -10%;
	left: -9%;
	width: 60%;
	max-width: 100%;
}
.home03_text{
	margin-top:30px;
	-webkit-justify-content: space-between;
    justify-content: space-between;
}
.home_03 .hometate_textbox .tate{
	writing-mode: rl-tb;
	margin-top:30px;
}
.home04_list li{
    width: 36vw;
}
.home04_list li:nth-child(2n+1){
    width: 43vw;
}
.home_05{
	padding: 40px 0;
}

.home05_imgs{
	width: 80%;
    margin: auto;
}

.home_06 .in{
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}
.home_06 :is(.home06_title,.home_title,.home_news){
    -webkit-order: -1;
    order: -1;
}

.home_07{
	position:relative;
}
.home07_img{
	width:90%;
	margin:auto;
	position: relative;
}
.home07_img img{
	width:100%;
}
.home_07 .in::before{
	top: 10%;
	bottom: 19%;
}
.home07_taitl{
}
.home07_content{
	margin:50px 0;
}


/**********************
* 下層ページ
* ********************/
.content_hed{
    margin-bottom: 1em;
	font-size: clamp(1.04rem, 1.2727vw + 0.7855rem, 1.6rem);
}
.facility_img > div{
	max-height:350px;
	height:40vw;
}
.facility_hednav ul a {
    padding: 0 1em;
}
.facility_02 .home_06{
    padding-left: 0;
}
.facility-list{
    -webkit-order: -1;
    order: -1;
}

.facilitylist_img{
	margin-bottom:0.2em;
}
@media screen and (max-width: 480px) {
    .facility-list a{
        flex-wrap: wrap;
    }
    .facility-list a .news_title{
        width: 100%;
    }
}
.facility_datasimg{
    margin-top: 1em;
}
.facility_hed{
	
}

.facility_gyoujis_list {
	& h3 {
		font-size: clamp(2.375rem, 1.6648rem + 3.5511vw, 3.9375rem);
	}
}
.slider_nav{
	margin-top:50px;
}


.schedule-tables-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* ★モバイル時：このブロック内に予定がない時間行（no-data-row）を完全に非表示にする */
.schedule-tables-wrapper:not(.is-pc) .no-data-row {
  display: none !important;
}

.schedule-grid-container {
  display: grid;
  width: 100%;
  grid-template-columns: 3.5em repeat(var(--col-count, 2), 1fr);
  font-size: 0.8em;
}
.grid-cell-content {
    padding: 0 5px;
}
.facility_day {
	& span {
		width: 84%;
		padding: .9em 2em 2.5em 2em;
        min-height: 5em;
        margin-bottom: -2em;
	}
}
.basebox, #p_base {
	& h2 {
		font-size: calc(1.625rem + ((1vw - 3.2px) * 3.5714));
	}
}

.basebox{
	& .gallery{
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
		gap:0.5em;
		& dl{
			float: none !important;
			width: 100% !important;
			margin-top:0 !important;
			& a{
				width:100%;
			}
		}
		& br{
			display:none;
		}
	}
}

/*固定ページ------------*/
.x-scroll{
   overflow: scroll;
}
.x-scroll table{
    min-width: 600px;
}
.p_box + .p_box {
    margin-top: 50px;
    scroll-margin-top: 50px;
}
/*お問い合わせ*/
.contectfomw{
    & :is(table,tbody,tr,tg,td){
        display: block;
    }
    & tr{
        margin-bottom: 0.5em;
    }
}

/*私たちの保育*/
.business_boxs{
	margin-left: -5%;
	margin-right: -5%;
}
/*学生向け　教育・保育実習*/

.internship_01{
	& .internship01_box{
		-webkit-flex-direction: column;
		flex-direction: column;
	}
	& .internship01_l{
		max-width: 400px;
		width: 100%;
		margin:auto;
	}
}
.internship03_list ul{
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    grid-gap: 3rem;
}
.internship03_list li{
	-webkit-flex-direction: column;
    flex-direction: column;
}
.internship03_listimg{
	height: 230px;
}
.internship03_listtext{
	padding: 48px 5% 5%;
}

/*取り組み*/
#p_base {
    & .initiatives-box {
        &:nth-child(2n+1) {
			
		}
		&:nth-child(2n+2){
			& .initiatives-box-content{
				-webkit-flex-direction: column-reverse;
				flex-direction: column-reverse;
			}
		}
		& .initiatives_img{
			width: 111.6%;
			transform: translateX(-5%);
		}
		& .initiatives-title b {
			font-size: 0.55em;
		}
		& .initiatives-box-content{
			 -webkit-flex-direction: column;
			flex-direction: column;
			gap: 2em;
		}
	}
}

/*採用情報*/

.recruit {
	& .recruit02_box{
		& .recruit02_hed{
			-webkit-flex-direction: column;
			flex-direction: column;
			align-items: flex-start;
			gap: 1em;
			& .recruit02_hed_img{
				width:100%;
			}
		}
	}
	
	& .job-tabs-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
		grid-gap: 0.5em 1em;
		margin-bottom:1em;
	}
	
	& .job-tabs-contents {
		border-radius:10px;
		overflow:hidden;
		& .inner_contenth {
			font-size: calc(1.0625rem + ((1vw - 3.2px) * 2.4554));
		}
		& :is(.job-guidelines-table,tbody,tr,th,td) {
			display: block;
		}
        & .job-guidelines-table {
			& tr + tr {
				border-top: 0px;
			}
		}
	}
	
	
	& .by-the-numbers-container{
		font-size: 14px;
        line-height: 1.5;
		& .number-item {
			padding: 20px 2%;
			& h4{
				font-size: calc(0.9375rem + ((1vw - 4px) * 0.8013)) !important;
                    letter-spacing: 0;
			}
		}
	}
}
.aisatutext{
	margin-top:1em;
}