/*
    レスポンシブ
*/

* {
	margin: 0;
	padding: 0;
}
*, *:before, *:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
}

html,body {
	height: 100%;
}
body {
	font-size: 14px;
	font-family: '丸フォーク R','Lato', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
	background: #fafdff;
	-webkit-text-size-adjust: 100%;
}

#main {
	background: #fafdff;
}
#main-in {
	padding-left: 260px;
}
#main p {
	margin-bottom: 1em;
	line-height: 2.5;
}
#main .inner {
	padding: 60px;
}

#main .top {
	padding: 0px;
}

/* main-visual */
#main-visual {
	background: #ffffff;
	height: 400px;
	display: flex;

	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
}
h2 {
	font-size: 1.8rem;
	letter-spacing: 0.3rem;
}

h2::first-letter {
	color: palevioletred;
	font-size: 2rem;
}

h3 {
	font-size: 131%;
	margin-bottom: .7em;
	letter-spacing: 0.2rem;
}
#copyright a {
	color: #666;
	text-decoration: none;
}
#copyright a:hover {
	text-decoration: underline;
}

#global-head {
	position: fixed;
	color: #555555;
	width: 260px;
	text-align: center;
	z-index: 100;
}

#sidebar {
	font-size: 20px;
	padding-top: 200px;
	width: 260px;
	height: 100%;
	position: fixed;
	color: #ffffff;
	background: #000000;
	text-align: center;
}

#sidebar .info{
	font-size: xx-small;
	padding-top: 120px;
  }
  
#sidebar .info i{
	margin: 15px;
	font-size: large;
}

#global-nav ul {
	list-style: none;
	margin-left: 0;
}
#global-nav > ul > li {
	position: relative;
}

#global-nav a {
	color: #ffffff;
	text-decoration: none;
	display: block;
	padding: 15px 0;
	-moz-transition: background-color .3s linear;
	-webkit-transition: background-color .3s linear;
	transition: background-color .3s linear;
	letter-spacing: 0.2rem;
}
#global-nav .sub-menu.is-active > a,
#global-nav a:hover {
	color: pink;
}

#global-nav .sub-menu-nav a,
#global-nav .sub-menu:hover .sub-menu-nav {
	width: 230px;
}

/* sub-menu icon */
#global-nav .sub-menu-head {
	position: relative;
}
#global-nav .sub-menu-head:after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 18px;
	margin: auto;
	vertical-align: middle;
	width: 8px;
	height: 8px;
	border-top: 1px solid #033560;
	border-right: 1px solid #033560;
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}


/* sub-menu */
#global-nav .sub-menu-nav {
	position: fixed;
	background: #033560;
	color: #fff;
	top: 0;
	padding-top: 90px;
	left: 260px;
	width: 0;
	height: 100%;
	overflow: hidden;

	-moz-transition: width .2s ease-out;
	-webkit-transition: width .2s ease-out;
	transition: width .2s ease-out;
}
#global-nav .sub-menu.is-active > a:after,
#global-nav .sub-menu-head:hover:after {
	border-color: #fff;
}
#global-nav .sub-menu-nav a {
	color: #fff;
}
#global-nav .sub-menu-nav a:hover {
	color: #033560;
	background: #fff;
}


/* nav-toggle */
#nav-toggle {
	display: none;
	position: fixed;
	top: 15px;
	right: 15px;
	height: 32px;
}
#nav-toggle > div {
	position: relative;
	width: 32px;
}
#nav-toggle span {
	width: 100%;
	height: 2px;
	left: 0;
	display: block;
	background: #ffffff;
	position: absolute;
	-webkit-transition: .35s ease-in-out;
	-moz-transition: .35s ease-in-out;
	transition: .35s ease-in-out;
}

#nav-toggle span:nth-child(1) {
	top: 0;
}
#nav-toggle span:nth-child(2) {
	top: 11px;
}
#nav-toggle span:nth-child(3) {
	top: 22px;
}

#overlay {
	display: none;
	position: fixed;
	background: rgba(0,0,0,.6);
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

/* top */
.top img{
	height: auto;
}

/* profile */
.img-profile {
	padding: 2rem; 
}

.text-profile {
	padding: 1.5rem;
	padding-top: 3rem; 
	font-size:11.8px;
}

/* lesson */
.lesson-image img{
	width: 100%;
	max-width: 100%;
	height: auto; 
}

.ggmap {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}
	 
.ggmap iframe,
.ggmap object,
.ggmap embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* contact */
.required > label::after {
	content: '*';
	color: red;
	padding: 3px;
}

.error-message {
	color: red;
}

.confirm-textarea {
	word-break: break-all;
}

@media screen and (min-width:320px) and ( max-width:767px){ 
	.mb-header {
		height: 100%;
		width: auto;
	}

	#main-visual{
		height: 762px;
	}

	#main-visual img{		
		height: 100%;
	}

	#main .inner {
		padding-top: 100px;
		padding-right: 30px;
		padding-left: 30px;
		padding-bottom: 30px;
	}

	#sidebar .info{
		font-size: xx-small;
		padding-top: 20px;
	}

	.lesson-image img{
		width: 100%;
		max-width: 100%;
		height: auto; 
		padding-top: 60px;
	}		
	
	.effect div {
		margin: auto;
		transition: .3s;
		transition-delay: .3s;
	}


}

@media screen and (min-width:768px) and (max-width:1024px) {
	#main-visual img{
		width: 100%;
		height: auto;
	}

	.effect div {
		margin: auto;
		transition: .3s;
		transition-delay: .3s;
	}

	#main .inner{
		position: relative;
		padding:100px;
	}
}

@media screen and (max-width: 1024px) {
	#main-in {
		padding-left: 0;
	}

	#global-head {
		width: 100%;
		height: 60px;
		background: #000000;
		display: -webkit-flex;
		display: flex;
	}

	#global-head img{
		height: 100%;
	}

	#sidebar {
		/*display: none;*/
		position: fixed;
		right: -300px;
		top: 0;
		height: 100%;
		background: #fff;
		-webkit-transition: .35s ease-in-out;
		transition: .35s ease-in-out;
	}

	/* サブメニューは開けない */
	#global-nav .sub-menu-head:after,
	#global-nav .sub-menu-nav {
		display: none;
	}
	#nav-toggle {
		display: block;
	}

	/* nav open */
	.open {
		overflow: hidden;
	}
	.open #overlay {
		display: block;
	}
	.open #sidebar  {
		-webkit-transform: translate3d(-300px,0,0);
		transform: translate3d(-300px,0,0);
	}

	/* #nav-toggle close */
	.open #nav-toggle span:nth-child(1) {
		top: 11px;
		-webkit-transform: rotate(45deg);
		-moz-transform: rotate(45deg);
		transform: rotate(45deg);
	}
	.open #nav-toggle span:nth-child(2) {
		width: 0;
		left: 50%;
	}
	.open #nav-toggle span:nth-child(3) {
		top: 11px;
		-webkit-transform: rotate(-45deg);
		-moz-transform: rotate(-45deg);
		transform: rotate(-45deg);
	}

	/* z-index */
	#overlay {
		z-index: 200;
	}
	#sidebar {
		z-index: 300;
	}
	#nav-toggle {
		z-index: 400;
	}

	#sidebar {
		right: -200px;
		width: 200px;
		padding-top: 60px;
		background: #000000;
		color: #ffffff;
	}
	.open #sidebar  {
		-webkit-transform: translate3d(-200px,0,0);
		transform: translate3d(-200px,0,0);
	}

	#sidebar .list-group-item{
		background-color: black;
	}

	.carousel-inner {
		margin-top: 100px;
	}

	.img-profile {
		padding: 1rem;
	}

	.text-profile {
		padding: 1rem !important;
	}

	.scroll-box::-webkit-scrollbar {
		height: 5px;
	}
	
	.scroll-box::-webkit-scrollbar-track {
		border-radius: 5px;
		background: #eee;
	}
	
	.scroll-box::-webkit-scrollbar-thumb {
		border-radius: 5px;
		background: lightgray;
	} 

	/*タブレット、スマホの場合*/
	.pc	{ 
		display:none!important; 
	}

	.mb { 
		display:inline!important; 
	}

	.mb-section{
		position: relative;
		padding-top:60px;
		padding-left: 20px;
		padding-right: 20px;
		padding-bottom: 0px;
	}

	.photo {
		max-width: 100%;
    	height: auto;
		margin-top: 30px;
		margin-bottom: 15px;
	}
}

@media screen and (min-width:1048px) {
	.mb	{ 
		display:none!important; 
	}

	.pc { 
		display:inline!important; 
	}
}
