@charset "utf-8";

/*========= スクロール途中からヘッダーの高さが小さくなるためのCSS ===============*/
.slider li img {
	margin: 0 auto;
}
.active {
	color: #DD727F;
	position: relative;
}
.active2 {
	color: #DD727F;
	position: relative;
}
.active::before {
	content: url(../img/icon.png);
	position: absolute;
    top: 0;
    left: -2.5em;
}
.active2::before {
	content: url(../img/icon.png);
	position: absolute;
  top: 15%;
	left: -2.5em;
}
h1:hover {
	pointer-events: none;
}

#header{
  /*はじめの高さを設定*/
	width:100%;
	background: #ffd8d882;
}

/* 260226削除 */
/* header#header {
	padding: 1em 0 0;
} */

.index ul#g-navi {
	margin-top: 2.5em;
	height: 86.95px;
	line-height: 1.5;
}
ul#g-navi {
  z-index: 9999;
  position: relative;
}





/* ハンバーガーメニューここから */
#menu-btn-check {
    display: none;
}
.menu-btn {
	position: fixed;
	top: 0;
	right: 0;
	display: flex;
	height: 50px;
	width: 65px;
	justify-content: center;
	align-items: center;
	z-index: 90;
	background: #ffd8d8;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
	content: '';
	display: block;
	height: 3px;
	width: 25px;
	border-radius: 3px;
	background-color: #6e6e6e;
	position: absolute;
}
.menu-btn span:before {
	bottom: 8px;
}
.menu-btn span:after {
	top: 8px;
}
#menu-btn-check:checked ~ .menu-btn span {
	background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
	bottom: 0;
	transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
	top: 0;
	transform: rotate(-45deg);
}
.menu-content {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 80;
	background-color: #3584bb;
}
.menu-content ul {
	padding: 70px 10px 0;
	display: block;
}
.menu-content ul li {
	border-bottom: solid 1px #5a3333;
	list-style: none;
}
.menu-content ul li a {
	display: block;
	width: 100%;
	font-size: 15px;
	box-sizing: border-box;
	color:#5a3333;
	text-decoration: none;
	padding: 30px 15px 20px 0;
	position: relative;
}
.menu-content ul li a::before {
	content: "";
	width: 7px;
	height: 7px;
	border-top: solid 2px #5a3333;
	border-right: solid 2px #5a3333;
	transform: rotate(45deg);
	position: absolute;
	right: 11px;
	top: 35px;
}
.menu-content {
	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 100%;/*leftの値を変更してメニューを画面外へ*/
	z-index: 80;
	background-color: #FFD8D8;
	transition: all 0.5s;/*アニメーション設定*/
}
#menu-btn-check:checked ~ .menu-content {
	left: 0;/*メニューを画面内へ*/
}
/* ハンバーガーメニューここまで */

/*HeightMinというクラス名がついたら高さを小さく、上部固定に*/
#header.HeightMin{
	position: fixed;
  z-index: 999;/*最前面へ*/
	height:70px;
	animation: DownAnime 0.5s forwards;
}
#header.HeightMin h1 {
	display: none;
}
#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}
#header.HeightMin nav ul {
	margin-top: -3.1em;
}
.dp-n {
	display: none;
}
.index#header.HeightMin nav ul {
	margin-top: -1em;
}
/* .index#header.HeightMin nav ul .dp-n, */
#header.HeightMin nav ul .dp-n {
	display: block;
}

@keyframes DownAnime{
	from {
		opacity: 0;
		transform: translateY(-170px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/*========= レイアウトのためのCSS ===============*/
nav ul{
	list-style: none;
	display: flex;
	justify-content: space-around;
	background: #ffd8d8;
	padding: 9px;
	text-align: center;
    align-items: center;
	border-top: 1px solid #ebebeb;
	margin-bottom: 1em;
}

nav ul li a{
	display: block;
	text-decoration: none;
	color: #666;
	padding:10px;
	transition:all 0.3s;
	text-decoration: none;
	font-weight: bold;
}

nav ul li.current a,
nav ul li a:hover{
	color:rgb(190, 190, 190);
}


/* section{
	padding:30px;
}

section:nth-child(2n){
	background:#f3f3f3;
} */

/***********************************
　　　　　　　　footer
***********************************/
footer {
    /* display: block;
    box-sizing: border-box; */
    border-top: solid 1px #f37171 !important;
    /* max-width: 1000px; */
    margin: 2em auto 0 !important;
    text-align: center !important;
    padding: 0 0 2em !important;
    font-size: 1.5em !important;
    line-height: 1.5em !important;
}
@media only screen and (max-width: 800px) {
	#header.HeightMin {
		height: 50px;
		background: #fff;
		/* margin-top: -2em; */
    margin-top: 0;
	}
	.index#header.HeightMin {
		margin-top: 11px;
	}
	.active::before {
		left: 470px;
	}
	header#header nav ul#g-navisp {
		display: none;
	}
	header#header.HeightMin nav ul#g-navisp {
		display: block;
		height: 75px;
		margin-top: -2em;
	}
	header#header.HeightMin nav ul#g-navisp img {
		height: 64px;
	}
	.menu-btn::after {
		content: 'MENU';
		width: 100%;
		bottom: 0;
		left: 0;
		position: absolute;
		letter-spacing: 0.04em;
		font-size: 0.7em;
		font-weight: 600;
		color: #4d4d4d;
		text-align: center;
	}
	#menu-btn-check:checked ~ .menu-btn::after {
		content: 'close';
	}
}