@charset "UTF-8";

body {
	font-family: "Zen Maru Gothic", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 16px;
	color: #988673;
}

header {
	background-color: #f4eee6;
	width: 100%;
	height: 160px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
}

#header_wrapper {
	width: 1000px;
	margin: 0 auto 50px;
}

#logo {
	text-align: center;
	padding: 15px 0px 10px;
}

header nav ul {
	display: flex;
	justify-content: center;
	padding: 5px 0px 10px;
}

header nav ul li {
	margin: 0 5px;
}

.btn {
	position: relative;
	width: 90px;
	height: 50px;
	display: block;
	overflow: hidden;
	cursor: pointer;
}

.btn img {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	width: 100%;
	display: block;
	-webkit-transition: .4s ease-in-out;
	transition: .4s ease-in-out;
}

.btn:hover img:nth-of-type(2) {
	opacity: 0;
}

.btn img:nth-of-type(1) {
	opacity: 0;
}

.btn:hover img:nth-of-type(1) {
	opacity: 1;
}

.btn:hover img:nth-of-type(2) {
	opacity: 0;
}

.sp,
.nav-bottom-img {
	display: none;
}

#slide_wrapper {
	background-color: #988673;
	width: 100%;
	height: 400px;
}

#main_wrapper {
	position: relative;
	width: 700px;
	margin: 0 auto;
}

.slide {
	margin: 160px auto 0;
}

.slide img {
	display: block;
	width: 700px;
	height: auto;
}

#frame {
	position: absolute;
	top: 0;
	width: 840px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

#chara1,
#chara2 {
	z-index: 3;
	position: absolute;

}

#chara1 {
	top: -10px;
	right: -18px;
	height: 150px;
}

#chara2 {
	bottom: -25px;
	left: -50px;
	height: 110px;
}

/*ABOUTエリア*/
#about_wrapper {
	display: flex;
	width: 650px;
	margin: 50px auto;
	flex-direction: column;
	align-items: center;
}

.anime-up {
	font-size: 25px;
	color: #fff;
	font-weight: bold;
	background-image: url("../images/title_frame.png");
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: 50% 40%;
	padding: 25px 25px 10px;
}

/*bound text animetions*/
@keyframes showTextFromBottom {
	0% {
		transform: translateY(100%);
	}

	50% {
		transform: translateY(-20%);
	}

	100% {
		transform: translateY(0px);
	}
}

.anime-up.displayed span {
	animation: showText 1s backwards;
	display: inline-block;
}

.anime-up.displayed>span {
	overflow: hidden;
}

.anime-up.displayed>span>span {
	animation: showTextFromBottom 0.5s backwards;
}

#about_cyucyu {
	display: flex;
	margin: 20px auto;
	width: 650px;
	align-items: center;
	justify-content: space-between;
}

#about {
	display: flex;
	flex-direction: column;
	align-items: center;
}

h3 {
	font-size: 25px;
	font-weight: bold;
	padding: 0.2rem;
	margin-bottom: 0.2rem;
	background: linear-gradient(transparent 60%, #fefa82 40%);
	background-repeat: no-repeat;
	background-size: 0% 100%;
	/* 最初は幅0 */
	transition: background-size 1s ease;
	/* アニメーション */
}

h3.animate {
	background-size: 100% 100%;
	/* 幅いっぱいに広がる */
}

#about p {
	width: 300px;
	background-color: #eee9e4;
	padding: 30px;
}

#about_cyucyu img {
	width: 300px;
	height: auto;
}



#chara3 {
	display: block;
	width: 160px;
	margin: 0 auto;
}

.other {
	display: block;
	text-align: center;
	color: #fff;
	background-color: #988673;
	padding: 20px 35px;
	border-radius: 30px;
	margin: 0;
	line-height: 1;
}

#comicsArea {
	background-color: #d0c4b2;
	padding: 50px 0;
}

#comics_wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#comics-eyeCatch {
	align-items: center;
	padding: 50px 0 40px;
}

#comics-eyeCatch img {
	display: block;
	width: 300px;
}

.upDate {
	display: block;
	text-align: center;
	font-size: 14px;
}

#chara4 {
	display: block;
	width: 110px;
	margin: 0 auto;
}

#newsArea {
	padding: 50px 0;
}

#news_wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#news_wrapper ul {
	display: flex;
	margin: 40px auto;
}

#news_wrapper ul li img {
	width: 250px;
	border: 4px solid #f4eee6;
	border-radius: 8px;
	margin: 0 10px;
}

.news_title {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
}

.news_text:hover {
	text-decoration: underline #d0c4b2 1px;
}

#storeArea {
	background-color: #d0c4b2;
	padding: 50px 0;
}

#store_wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.image-container {
	height: auto;
	padding: 50px 10px;
	display: flex;
	justify-content: space-between;
	width: 700px;
}

.fade-in-image {
	opacity: 0;
	transform: translateY(100px);
	transition: opacity 1s ease-out, transform 1s ease-out;
	transition-delay: calc(var(--delay) * 0.3s);
	width: 200px;
	height: auto;
	aspect-ratio: 1/1;
}

.fade-in-image.visible {
	opacity: 1;
	transform: translateY(0);
}

footer {
	background-color: #f4eee6;
	padding: 50px 0;
}

#footer_wrapper {
	display: flex;
	margin: 20px auto;
	flex-direction: column;
	align-items: center;

}

#chara5 {
	display: block;
	width: 250px;
	margin: 0 auto 20px;
}

#footer_wrapper ul {
	display: flex;
}

#footer_wrapper ul li img {
	padding: 10px;
}

#privacy {
	display: block;
	color: #fff;
	border-bottom: solid;
	margin: 10px auto;
}

/* pagetop */
#pagetop {
	position: fixed;
	right: 5%;
	bottom: 10px;
	cursor: pointer;
	z-index: 10;
}
section, 
  #aboutArea,
  #comicsArea,
  #newsArea,
  #storeArea {
    scroll-margin-top: 160px; /* ヘッダーの高さぶん余白 */
  }

@media (max-width: 768px) {
	body {
		font-size: 0.85em;
	}

	header {
		width: 100%;
		height: 70px;
		position: fixed;
	}

	#header_wrapper {
		width: 100%;
	}

	#logo img {
		text-align: center;
		height: 45px;
	}

	#nav-toggle {
		display: block;
		width: 30px;
		height: 25px;
		position: absolute;
		top: 20px;
		right: 20px;
		cursor: pointer;
		z-index: 1100;
	}

	#nav-toggle>div {
		position: relative;
		width: 100%;
		height: 100%;
	}

	#nav-toggle span {
		display: block;
		width: 100%;
		height: 3px;
		left: 0;
		background: #988673;
		position: absolute;
		transition: transform .6s ease-in-out, top .5s ease;
	}

	#nav-toggle span:nth-child(1) {
		top: 0;
	}

	#nav-toggle span:nth-child(2) {
		top: 10px;
	}

	#nav-toggle span:nth-child(3) {
		top: 20px;
	}

	.open #nav-toggle span:nth-child(1) {
		top: 10px;
		transform: rotate(45deg);
	}

	.open #nav-toggle span:nth-child(2) {
		opacity: 0;
	}

	.open #nav-toggle span:nth-child(3) {
		top: 10px;
		transform: rotate(-45deg);
	}

	/* グローバルナビ */
	#global-nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 0;
		overflow: hidden;
		background: rgba(244, 238, 230, 0.95);
		z-index: 1000;

		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		text-align: center;

		transition: height 0.6s ease;
	}

	#global-nav.open {
		height: 100%;
		overflow: hidden;
	}

	#global-nav ul {
		list-style: none;
		margin: 0 0 180px 0;
		padding: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	#global-nav li {
		margin: 10px 0;
	}

	.nav-bottom-img {
		display: block;
		position: absolute;
		bottom: 30px;
		left: 50%;
		transform: translateX(-50%);
		opacity: 0;
		transition: opacity 0.5s ease 0.3s;
	}

	#global-nav.open .nav-bottom-img {
		opacity: 1;
	}

	.nav-bottom-img img {
		width: 250px;
		height: auto;
	}
section, 
  #aboutArea,
  #comicsArea,
  #newsArea,
  #storeArea {
    scroll-margin-top: 70px; /* ヘッダーの高さぶん余白 */
  }
	#slide_wrapper {
		height: 100%;
	}

	#main_wrapper,
	#frame {
		width: 100vw;
	}

	.slide {
		margin: 70px auto 0;
		width: 100%;
	}

	.slide img {
		width: 90%;
	}

	#chara1,
	#chara2 {
		height: auto;
	}
	#chara1 {
		width: 15%;
		right: 10%;
	}
	#chara2 {
		left: 3%;
		bottom: 5%;
		width: 12%;
	}

	#about_wrapper {
		display: flex;
		flex-direction: column;
		/* 縦並び */
		align-items: center;
		/* 中央寄せ */
		text-align: center;
		/* テキスト中央 */
		gap: 20px;
		/* 各要素の間隔 */
		width: 100%;
	}

	#about_cyucyu {
		display: flex;
		flex-direction: column-reverse;
		/* ←画像とテキストを縦並びに */
		align-items: center;
		width: 100%;
		height: auto;
	}

	#about {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
	}

	#about p {
		width: 90%;
		/* スマホでは幅を広げる */
		max-width: 400px;
		padding: 20px;
	}

	#about_cyucyu img {
		width: 70%;
		/* 画像を縮小 */
		max-width: 300px;
		height: auto;
		margin: 10px 0;
	}

	.other {
		display: flex;
		flex-direction: column;
		align-items: center;
		/*    gap: 10px;*/
	}

	#news_wrapper {
		flex-direction: column;
	}

	#news_wrapper ul {
		display: flex;
		flex-direction: column;
	}

	#news_wrapper ul li a {
		display: flex;
		gap: 10px;
		padding: 10px;
		align-items: center;
	}

	#news_wrapper ul li img {
		width: 150px;
	}

	.news_title {
		font-size: 16px;
	}

	.news_text .upDate,
	.news_title {
		text-align: left;
	}

	.image-container {
		width: 100%;
		margin: 0 auto;
	}

	.fade-in-image.visible {
		width: 90%;
		margin: 0 auto;
		display: block;
	}
}