@font-face {
	font-family: 'Cinzel Decorative';
	src: url('../font/CinzelDecorative-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Cinzel Decorative Bold';
	src: url('../font/CinzelDecorative-Bold.ttf') format('truetype');
	font-weight: bold;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Cinzel Decorative Black';
	src: url('../font/CinzelDecorative-Black.ttf') format('truetype');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}
* {
	box-sizing: border-box;
}
html {
	background-image: url('../img/bg-main.jpg');
	background-position: center;
	background-attachment: fixed;
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 10px;
	-webkit-transition: all 0.25s ease;
	-moz-transition: all 0.25s ease;
	-o-transition: all 0.25s ease;
	transition: all 0.25s ease;
}
body {
	font-size: 1.6rem;
	line-height: 1.5;
	color: #333;
}
main {
	margin: 0 auto;
	max-width: 100rem;
}
p {
	margin-bottom: 1.5rem;
	text-align: justify;
}
em {
	font-style: italic;
}
button {
	font-family: 'Noto Sans JP', sans-serif;
}

nav {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 10;
	width: 30rem;
	background-color: #f5f5f5;
	border-right: 1px solid #ccc;
	overflow-y: auto;
}
nav h1 {
	position: fixed;
	top: 0;
	left: 0;
	width: 30.1rem;
	padding: 1rem;
	background-color: #333;
	border-top: 1rem solid #222;
	font-family: 'Cinzel Decorative Bold', serif;
	font-size: 2.4rem;
	font-weight: 700;
	color: #fff;
}
nav h1 button {
	display: none;
	float: right;
	margin-top: -0.5rem;
	padding: 1rem;
	cursor: pointer;
	background-color: transparent;
	border: 0;
	color: #fff;
}
nav h2 {
	padding: 0.5rem 1rem;
	border-bottom: 1px solid #ccc;
	font-size: 1.6rem;
	font-weight: 600;
	color: #000;
	text-transform: uppercase;
}
nav h2:nth-child(2) {
	margin-top: 8rem;
}
nav > ul {
	margin-bottom: 2rem;
}
nav > ul li {
	padding: 0.5rem 1rem;
	cursor: pointer;
	border-bottom: 1px solid #ccc;
	font-size: 1.4rem;
	-webkit-transition: all 0.25s ease;
	-moz-transition: all 0.25s ease;
	-o-transition: all 0.25s ease;
	transition: all 0.25s ease;
}
nav > ul li:hover {
	background-color: #e0e0e0;
}
nav > ul li.active {
	background-color: #ddd;
	color: #000;
}
nav > ul li.active::after {
	content: '▶';
	display: inline-block;
	margin-left: 0.5rem;
	font-size: 1.2rem;
	color: #000;
}
.btn-show-nav {
	position: fixed;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 1;
	padding: 1rem;
	font-size: 2rem;
	background-color: #333;
	border-radius: 0.5rem;
	color: #fff;
	border: none;
	cursor: pointer;
}

main {
	padding-left: 30rem;
}
section {
	display: none;
	margin: 2rem;
	padding: 4rem;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 1rem;
}
section.active {
	display: block;
}
section h1 {
	margin-bottom: 1.5rem;
	font-family: 'Cinzel Decorative Bold', serif;
	font-size: 4rem;
	line-height: 1;
	text-align: center;
}
section h1 small {
	font-size: 80%;
}
.section-icon {
	padding: 2rem 0;
}
.section-icon i {
	font-size: 7rem;
}
.section-nav {
	margin-top: 4rem;
	overflow: hidden;
}
section button {
	float: left;
	display: block;
	padding: 1rem 2rem;
	padding-left: 1rem;
	background-color: #eee;
	border-radius: 0.5rem;
	font-size: 1.6rem;
	line-height: 1;
	color: #000;
	border: none;
	cursor: pointer;
	-webkit-transition: all 0.25s ease;
	-moz-transition: all 0.25s ease;
	-o-transition: all 0.25s ease;
	transition: all 0.25s ease;
}
section button:hover {
	opacity: 0.8;
}
section button.next {
	float: right;
	padding-left: 2rem;
	padding-right: 1rem;
	background-color: #09f;
	color: #fff;
}
.section-footer {
	position: relative;
	margin-top: 4rem;
}
.section-footer::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: #ccc;
}
.section-footer i {
	position: relative;
	z-index: 2;
	display: block;
	margin: 0 auto;
	padding: 0 1rem;
	font-size: 3rem;
	background-color: #fff;
}

.haiku {
	margin: 2rem auto;
	width: 50%;
	padding: 2rem;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	font-style: italic;
	text-align: center;
}
.haiku i {
	font-size: 2rem;
}
.haiku i:first-child {
	position: relative;
	left: -2rem;
	margin-right: -2rem;
}
.haiku i:last-child {
	position: relative;
	right: -2rem;
	margin-left: -2rem;
}

footer {
	padding: 1rem 1rem 2rem;
	font-size: 1.2rem;
	overflow: hidden;
}
footer p {
	margin-bottom: 0;
}
footer ul li {
	float: left;
	margin-left: -0.6rem;
	margin-right: 0.2rem;
}
footer ul li a {
	display: block;
	font-size: 3rem;
	color: #333;
	-webkit-transition: all 0.25s ease;
	-moz-transition: all 0.25s ease;
	-o-transition: all 0.25s ease;
	transition: all 0.25s ease;
}
footer ul li a:hover {
	color: #000;
}

@media screen and (min-width: 769px) {
	nav {
		display: block !important;
	}
	.btn-show-nav {
		display: none;
	}
}

@media screen and (max-width: 768px) {
	
	nav h1 {
		width: 100%;
	}
	nav h1 button {
		display: block;
	}
	nav {
		display: none;
		width: 100%;
	}
	nav > ul li {
		padding: 0.75rem 1.5rem;
	}
	main {
		padding-left: 0;
	}
	section {
		margin: 1.5rem;
		padding: 1.5rem;
	}
	.haiku {
		width: 80%;
	}
	
	section button {
		float: none;
		display: block;
		padding: 2rem;
		width: 100%;
		margin-top: 1rem;
	}
	section button.next {
		float: none;
	}
}

@media screen and (max-width: 425px) {
	.haiku {
		width: 100%;
	}
}