/* CSS Document */




/*============================================================================

	header

============================================================================*/
#header{
	position: absolute;
    z-index: 999;
	width:100%;
	height: 140px;
	padding-right: 30px;
	display: flex;
	align-items: center;
	gap: 0 12px;
}
@media screen and (max-width:640px) {
    #header{
        min-width:400px;
        height: 160px;
		overflow: hidden;
    }
}

header .inner{
	width:1200px;
	min-width:400px;
	margin:auto;
	text-align: center;
}



/*------------------------------ h1は見た目だけ隠す(SEO・読み上げには残る)  ------------------------------*/
#header h1,
#header > p {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}



/*------------------------------ ロゴ ------------------------------*/
#header_logo {
	position: relative;
	align-self: flex-start;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 480px;
	height: 120px;
	margin-right: auto;
	background: #FFF;
	border-radius: 0 0 10px 0;
}
#header_logo img{
	width: 420px;
	height: auto;
}
#header_logo::before,
#header_logo::after {
	position: absolute;
	content: "";
	background: url("../images/bg01.png") no-repeat 0 0 / contain;
	width: 18px; height: 18px;
}
#header_logo::before { top: 8px; right: -16px; }
#header_logo::after { top: 118px; left: 8px; }





/*============================================================================

	nav

============================================================================*/
#header nav {
	margin-right: 30px;
}
#header nav ul {
	display: flex;
	gap: 0 28px;
}
#header nav a {
	position:relative;
	color: #222;
}
#header nav a:hover {
	color: var(--color-green-text);
}




/*------------------------------ ホバーのボーダー ------------------------------*/
nav li a::before{
    position: absolute;
	left: 0;
	right:0;
	bottom: -12px;
	width:100%;
	height: 1px;
	margin:auto;
	background-color: var(--color-green);
	transition: 0.15s  ease-out;
	transform: scaleX(0);
	content: "";
	z-index: 1;
}
nav li a:hover::before{
	transform: scaleX(1);
}



/*------------------------------ PC＊スクロール後設定 ------------------------------*/
#header.HeightMin{
	position: fixed;
	height: 120px;
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from { opacity: 0; transform: translateY(-170px);}
  to { opacity: 1; transform: translateY(0);}
}

/*----- ロゴ ------*/
#header.HeightMin #header_logo { background: none;}
#header.HeightMin #header_logo::before { display: none;}
#header.HeightMin #header_logo::after { display: none;}



/*------------------------------ 治療案内のドロップダウン ------------------------------*/
#header nav li {
	position: relative;
}

/* 子メニューがある項目に「⌄」を付ける */
#header nav > ul > li > span::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin: 0 0 4px 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

/* 子メニュー */
#header nav li ul {
	position: absolute;
	top: calc(100% + 20px);
	left: 50%;
	z-index: 10;
	display: block;
	min-width: 220px;
	padding: 12px 10px;
	border-radius: 10px;
	background: rgba(255,255,255,.9);
	box-shadow: 0 5px 10px rgba(0,0,0,.08);
	border: 2px solid #8bc6b8;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 10px);
	transition: 0.3s ease-out;
}
/* 親と子メニューのすき間でhoverが切れないように橋をかける */
#header nav li ul::before {
	position: absolute;
	content: "";
	left: 0; right: 0;
	top: -20px;
	height: 20px;
}

/* hover・キーボード操作で開く */
#header nav li:hover > ul,
#header nav li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

#header nav li li a {
	display: block;
	padding: 10px 24px;
	white-space: nowrap;
	font-size: 15px;
	border-radius: 5px;
	text-align: center;
}
#header nav li li a:hover {
	background: #eef8f5;
}
/* 子メニューにはホバーの下線を出さない */
#header nav li li a::before {
	display: none;
}





/*============================================================================

	予約ボタン

============================================================================*/

/* ----- 共通 ----- */
#header_btn-web,
#header_btn-tel {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	align-content: center;
	height: 80px;
	border-radius: 10px;
	color: #fff;
	line-height: 1.4;
}
#header_btn-web:hover,
#header_btn-tel:hover {
	color: #fff;
}
#header_btn-web span,
#header_btn-tel span {
	width: 100%;
	text-align: center;
	color: #fff665;
	font-size: 13px;
}
#header_btn-web i,
#header_btn-tel i {
	position: relative;
	top: -3px;
}
#header_btn-web em,
#header_btn-tel em {
	position: relative;
	top: 1px;
	font-family: var(--font-en);
}

/* ----- WEB予約 ----- */
#header_btn-web {
	width: 160px;
	padding-top: 5px;
	background: #3ab4b8;
	border: 2px solid #3ab4b8;
}
#header_btn-web:hover { background: rgba(58,180,184,.8); }
#header_btn-web span { margin-bottom: 8px; }
#header_btn-web i { margin-right: 10px; }
#header_btn-web i img { width: 10px; }
#header_btn-web em { font-size: 22px; margin-right: 2px; }

/* ----- 電話予約 ----- */
#header_btn-tel {
	width: 240px;
	padding-top: 6px;
	background: #4ac2a6;
	border: 2px solid #4ac2a6;
	letter-spacing: 1px;
}
#header_btn-tel:hover { background: rgba(74,194,166,.8); }
#header_btn-tel span { margin-bottom: 3px; }
#header_btn-tel i { margin-right: 6px; }
#header_btn-tel i img { width: 15px; }
#header_btn-tel em { font-size: 26px; }






/*============================================================================

	ヘッダー 少し詰める(〜1640px)

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

	/* ナビ */
	#header nav { margin-right: 20px; }
	#header nav ul { gap: 0 20px; }
	#header nav a { font-size: 15px; }

	/* 予約ボタン */
	#header_btn-web { width: 140px; }
	#header_btn-web em { font-size: 20px; }
	#header_btn-tel { width: 220px; }
	#header_btn-tel em { font-size: 24px; }

}



/*============================================================================

	ヘッダー 2段レイアウト(〜1500px)

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

	#header {
		display: grid;
		grid-template-columns: 1fr auto auto;
		grid-template-rows: 1fr auto 1fr;
		gap: 0 10px;
	}

	/* ロゴ：左で全段ぶん(上端にくっつける) */
	#header_logo { grid-area: 1 / 1 / 4 / 2; }

	/* ナビ：3段目で右寄せ */
	#header nav {
		grid-area: 2 / 1 / 3 / 4;
		justify-self: end;
		margin: 15px 0 0;
	}
	#header nav ul {
		gap: 0 28px;
		margin-right: 20px;
	}

	/* 予約ボタン共通：1段目(上端にくっつける) */
	#header_btn-web,
	#header_btn-tel {
		height: 70px;
		padding-bottom: 3px;
		line-height: 1.2;
		border-radius: 0 0 10px 10px;
	}

	/* WEB予約 */
	#header_btn-web { grid-area: 1 / 2; width: 160px; }
	#header_btn-web span { margin-bottom: 7px; }
	#header_btn-web em { font-size: 22px; }

	/* 電話予約 */
	#header_btn-tel { grid-area: 1 / 3; width: 240px; }
	#header_btn-tel span { margin-bottom: 4px; }
	#header_btn-tel em { font-size: 26px; }

}












@media screen and (max-width:640px) {
	#header {
		display:none;
	}

	/*------------------------------ h1 ------------------------------*/
	#sp_header > p {
		position:relative;
		top: 0;
		width:100%;
		box-sizing: border-box;
		font-size: 10px;
		color: #000;
		line-height: 25px;
		height: 25px;
		background: #e8f3f0;
		padding-left: 4%;
		letter-spacing: 0;
	}


	/*------------------------------ ロゴ ------------------------------*/
	#sp_header_logo {
		position: absolute;
		width:82%;
		max-width: 300px;
		padding-top: 17px;
		margin-left: 4%;
	}
	#sp_header_logo img {
		position: relative;
		z-index: 999;
	}
}




/*============================================================================

	navi

============================================================================*/
.sp_navi {
	display:block;
    position:fixed;
    top: 10px;
    right: 10px;
    width: 75px;
    height: 75px;
    background: #FFF;
    border-radius: 5px;
    box-sizing: border-box;
    border: 1px solid #eee;
	z-index: 9998;
}
.sp_navi::after {
	content: "MENU";
	position:absolute;
	top:44px;
	right:18px;
	font-family: "Zen Maru Gothic", sans-serif;
	font-size: 11px;
	color: #666;
	letter-spacing: 1.2px;
	z-index: 99998;
}



.sp_navi dl dt {
	display:block;
	cursor:pointer;
	padding: 0 4%;
}
.sp_navi dl dd {
	position: fixed;
	display: none;
	background: rgba(74,194,166,.5);
	width: 100%;
	min-width: 100vw;
	height: calc( 100% + 10px );
    min-height: calc( 100vh + 10px );
	transition: all 0.5s ease-in-out;
	z-index: 9998;
    top: -10px;
}
.sp_navi dl dd.active {
	display: block;
	animation: slidenav 0.5s forwards;
}
@keyframes slidenav{
  from { right: -100%;}
  to { right: 0%;}
}



.sp_navi ul{
	position: absolute;
	display: block;
	right: -100%;
	width: 95%;
	height: 100%;
	padding: 20px 6% 100px;
	box-sizing: border-box;
	background: #fff;
	z-index: 9998;
	transition: all 0.5s ease-in-out;
	overflow: scroll;
}
.sp_navi ul.active {
	right: 0%;
	animation: slidenav 0.5s forwards;
}




.sp_navi ul li {
	position: relative;
	width:100%;
	box-sizing: border-box;
	padding-left: 7%;
	border-bottom: 1px solid #ddd;
	line-height: 4;
	transition: 0.3s ease-out;
}
.sp_navi ul li a {
	color: #222;
}
.sp_navi ul li::before {
	position: absolute; content: "";
	top: 27px; left: 5px;
	width: 7px; height: 7px;
	background: var(--color-green);
	border-radius: 100%;
}
.sp_navi ul li a:hover {
	padding-left: 40px;
}



/*下層に入るデザイン*/
.sp_navi dd li.sp_under {
	border-bottom: none;
	border-bottom: 1px dashed #eee;
    line-height: 3.5;
}
.sp_navi dd li.sp_under a {
	position: relative;
    padding-left: 17px;
}
.sp_navi dd li.sp_under::before { 
    display: none;
}
.sp_navi dd li.sp_under a::before { 
    position: absolute; content: "";
    width: 7px; height: 7px;
	background: var(--color-orange);
    border-radius: 100%;
    top: 8px; left: 0px;
}



/*１つ目のliはロゴ*/
.sp_navi ul li:first-of-type {
	width:100%;
	margin-bottom: 20px;
	padding-left: 0;
	border-bottom: 0;
}
.sp_navi ul li:first-of-type a {
	padding-left: 0;
}
.sp_navi ul li:first-of-type img {
    width: 260px;
    height: auto;
}
.sp_navi ul li:first-of-type::before {
	display: none;
}
.sp_navi ul li:first-of-type:hover {
	padding-left: 0;
}




/*--------------------------- ハンバーガーボタン ---------------------------*/
.sp_navi dt a {
    display: block;
    width: 46px;
    height:46px;
    position: absolute;
    top:7px;
    right: 15px;
    z-index: 9999999;
}
.sp_navi dt a span {
    position: absolute;
    display: block;
    width: 32px;
    height: 1px;
    left: 9px;
    background: #666;
    transition: all 0.4s;
}
.sp_navi dt a span:first-child {
    top: 14px;
}
.sp_navi dt a span:nth-child(2) {
    margin-top: -1px;
    top: 50%;
}
.sp_navi dt a span:last-child {
    bottom: 14px;
}
.sp_navi dt a.active span:first-child {
    background: #000;
    transform: translateY(8px) rotate(45deg);
}
.sp_navi dt a.active span:nth-child(2) {
    opacity: 0;
}
.sp_navi dt a.active span:last-child {
    background: #000;
    transform: translateY(-8px) rotate(-45deg);
}





/*============================================================================

	デザイン変更　

============================================================================*/
.sp_navi dd li:nth-of-type(2) { /*HOME*/
}
.sp_navi dd li:nth-of-type(4) { /*治療案内*/
	border-bottom: 1px dashed #eee;
}
.sp_navi dd li:nth-of-type(8) { /*おとなの矯正*/
	border-bottom: 1px solid #ddd;
	padding-bottom: 5px;
}


	
	





