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

.sp {
  display: block;
}
.pc {
  display: none;
}
section{
	padding:0;
}
	
#head h1 {
    width: 80%;
    height: 50px;
	text-align: left;
}
#head h1 img{
	max-height:50px;
	width:auto;
}
main p{
	width:100%;
}

main p img{
	width: 100%;
}

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

#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
	top:0;
    right: -120%;
	width:100%;
    height: 100vh;/*ナビの高さ*/
	background:#f2f2f2;
    /*動き*/
	transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
    right: 0;
}

/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
	top:10%;
	left:10%;
	width:80%;
}

/*リストのレイアウト設定*/

#g-nav li{
	list-style: none;
}

#g-nav li a{
	color:#3f3a39;
	text-decoration: none;
	padding:10px;
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: bold;
}
	#g-nav ul .line {
		border-bottom:solid 1px #333;
		border-top:solid 1px #333;
		background-color:#fff;
		padding:10px;
	}
	
/*========= ボタンのためのCSS ===============*/
.openbtn{
	position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
	top:5px;
	right: 10px;
	cursor: pointer;
    width: 50px;
    height:50px;
	background-color: var(--main-color);
	border-radius: 10px;
}
	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background-color: #fff;
  	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%;
}


	
/****TOP****/
	.midashi h2{
		padding:30px 0;
	}
	.top-bt{
		margin:10px auto 0;
	}
	.top-bt{
	display:block;
	height:70px;
	display:flex;
	flex-wrap:wrap;
	justify-content: space-between;
	align-items: center;
	background-color: #e7e7e7;
	font-size:18px;
	font-weight:600;
	padding:10px;
	margin:50px 10px;
	border-radius: 10px;
	transition: 0.5s;
}
.top-bt img{
	width:30px;
	height:30px;
}

#g-nav .top-bt{
	margin:10px auto;
	background-color: var(--sub-color);
}
#g-nav .bgchuto{
	background-color: var(--main-color);
	color:#fff;
}



	.footer-waku{
		padding:0;
	}
	
	.footer-waku .logo{
	width:80%;
	max-width:278px;
	height:auto;
		margin:0 auto;
}
.footer-waku .listwaku {
	width: 100%;
	}
.footer-waku .list{
	width:80%;
	margin:0 10%;
	padding:0;
	}
	
/****apply-set****/
.apply-set .img {
	width: 100%;
	}
.apply-set .img img {
	border-radius: 30px 30px 0 0 ;
	}
.apply-set .text {
	width: 100%;
	padding:10px;
	}
.contact {
	padding:20px;
	}	
	
/****TOP EVENT****/	
	
.section-title {
	padding:20px 10px;	
	}
.section-title h2::after {
    width: 40px;
    height: 40px;
}
.event-flex {
	margin-top:20px;
	}
	
.event-box {
    width: 96%;
	margin:0 3%;
	display:flex;
	flex-wrap:wrap;
	gap:0 2%;
	}
.event-box .img{
	width:46%;
	}
.event-box .text {
	width:52%;
	padding: 5px;
	font-size:13px;
	}
.event-box .text li .tt {
    width: 20%;
    padding: 5px 3px;
}
.event-box .text li .aa {
    width: 80%;
    padding: 5px 3px;
}
	a.more {
		margin:25px auto;
		padding:10px;
	}
.event-bt p {
    width: 70%;
}
/****TOP LINEUP****/		
	#lineup {
		padding:15px 10px;
	}
	.lineup-box {
		width: 100%;
	}
	.speech {
		margin:0 auto 5px;
	}
/****TOP VOICE****/	
	#voice{
		width:100%;
		padding:0 10px;
	}
	#voice .text {
		width: 100%;
	}
	#voice .img {
		width:100%;
		border:3px solid var(--main-color);
		border-radius:10px;
	}
	#voice .img img {
		border:none;
		border-radius:10px;
	}
	#voice .img p {
		position:static;
		border:none;
	}
/****TOP CONTENTS****/		
	#top-contents {
		padding:20px 10px;
	}
	.anshin li {
		width: 100%;
		height:auto;
	}
	.anshin li a span {
		width:10%;
		height:auto;
		background:none;
	}
	.anshin li a:hover span {
		background: none;
	}

	.anshin li a span.pc {
		display:none;
	}
	.anshin li a span.sp {
		display:block;
		align-self:center;
	}
	.anshin li a span.sp img {
		width:40px;
		height:40px;
	}
	.anshin li a {
		padding:0 20px 0 0;
		flex-direction:row;
		gap:0 3%;
	}
	.anshin li figure {
		width:20%;
		margin:0;
	}
	.anshin li a h3 {
		margin: 0 0 10px;
	}
	.anshin img{
		width:50px;
		height:50px;
	}
/****TOP BLOG****/		
	#topblog {
		width:100%;
		padding: 20px 10px;
	}
	.topblog-box {
		width: 97%;
	}
	.topblog-box h3 {
		padding:0;	
	}
	.topblog-box span {
		font-size:14px;
	}
	
/************************
	下層ぺーじ
*********************/
	
#subtitle{
	width:100%;
	height:auto;
	background-size: 30%;
}
#subtitle-box {
    padding: 4vw 6vw 1vw;
	}
#subtitle-box h2{
	padding-bottom:20px;
}
	
.company-cara {
	width: 100%;
	padding:0 10%;
	}
	
.company-midashi {
	width:100%;	
		padding:0  20px 20px;
	}
.company-flex {
	font-size:14px;		
}
.company-flex dt {
    width: 30%;
	padding: 20px 5px 20px;
}
	
.company-flex .img{
	width:100%;
	padding:20px;
}

.company-flex .text{
	width:100%;
	padding:0 10px;
	font-size:16px;
}


	
.midashi2 h3:before {
    height: 27px;
	position: absolute;
}
	

	
/*********************************
 お問い合わせ
*********************************/
#apply-box{
	font-size:16px;
	padding:10px;
}
	
#apply-box .apply-box-l{
	width:100%;
	padding:10px;
}

#apply-box .apply-box-r{
    width:100%;
    border-bottom:1px solid #ccc;
    padding:10px;
}
/* セレクト */
select{
width:100%;
}
.wpcf7-text {
    width: 100%;
}	
#thx{
	font-size:16px;
}	
/*********************************
 EVENT
*********************************/
	
	#event-s .event-box {
		width:94%;
		margin:10px 3% 0;
	}
	#event-s .event-box .img {
    width: 100%;
	}
	#event-s .event-box .text {
    width: 100%;
	}
	#event-s #apply-box{
		margin:20px 10px;
	}
	#event-s #apply{
		padding:20px 10px;
	}
	.midashi2 {
		padding:10px 10px 10px;
	}
	
/*********************************
LINEUP
*********************************/
	#lineup-s {
		margin:20px 10px;
	}
	.plan-st-ex-l{
	width: 100%;
	}
	.plan-st-ex-r{
	width: 100%;
	}
	.plan-st-ex {
		padding:15px;
	}
/*********************************
VOICE
*********************************/	
	.voice-a-img{
	width:100%;
	border:3px solid var(--main-color);
}
	#voice-a .voice-a-img{
	border:none;
}
	#voice-top {
		padding:10px;
	}
	
	#voice-top .img {
    width: 100%;
}
	#voice-top .text {
    width: 100%;
}
	#voice-top .text h3 {
		margin-bottom:20px;
	}
	#voice-top .text p {
		font-size:15px;
}
	.speech-box {
		margin:10px auto 0;
	}
	.speech-box .qqq:before {
		bottom:10px;
	}
	.speech-box .aaa01, .speech-box .aaa02 {
		padding:20px;
		margin: 0 0 10px 0;
	}
	
/*********************************
STAFF
*********************************/		
	#staff-s .staffbox-flex {
		padding:20px;
	}
	#staff-s .staffbox-flex .img {
		width: 100%;
	}
	#staff-s .staffbox-flex .text {
		width: 100%;
	}
	.staff-s-flex li {
		width: 48%;
	}
	.staff-s-flex li h3 {
		font-size: 16px;
		padding:5px 0;
	}
/*********************************
BLOG
*********************************/	
	
	.blog-cont {
		margin-bottom:30px;
		font-size:14px;
	}
/*********************************
SECRET
*********************************/
	section.kotei{
		padding: 30px 10px;
		}
	.main-text{
		font-size:16px;
	}
	.kotei-flex{
		padding:20px;
	} 
	
	.kotei-flex .img{
	width:100%;
}
	.kotei-flex .text{
		width:100%;
		font-size:15px;
}
/***********************************************
 Structure
***********************************************/
#s-main{
	background: url("../image/structure/main_sp.webp") no-repeat center / cover;
	height:auto;
	min-height:400px
	width:100%;
	margin-bottom:0;
}
	.s-main-text {
		padding: 20px 10px 50px;
	}
	.s-midashi:before {
		top:0;
	}
	.s-midashi p {
		font-size: 16px;
	}
	
	.s-midashi:after {
    height: 40px;
    top: 30px;
    left: 0;
	}
	#structure section.kotei {
		padding: 0 10px 50px;
}
/***********************************************
 Afterfollow
***********************************************/
	#after .main-text {
		padding:0;
		margin:0;
	}
	.after-box {
		width: 100%;
	}
	
/***********************************************
inspection
***********************************************/
	
	#in-main{
	background: url("../image/inspection/main_sp.webp") no-repeat center / cover;
	height:auto;
	min-height:400px
	width:100%;
	margin-bottom:0;
}
	.in-main-text {
		padding: 20px 10px 50px;
	}
	.in-midashi:before {
		top:0;
	}
	.in-midashi p {
		font-size: 16px;
	}
	
	.in-midashi:after {
    height: 40px;
    top: 30px;
    left: 0;
	}
	#inspection section.kotei {
		padding: 0 10px 50px;
}
	#inspection .main-text{
		text-align:left;
	}
/***********************************************
ローン借入事例
***********************************************/

.loan-flex{
	max-width:1200px;
	margin:50px auto;
}
.loan-flex li{
	width:90%;
	margin:0 5%;
}
	
	
/*********************************************************************/
}