@charset "UTF-8";
@import url(./common.css);
@import url(./star-rating.css);

/* ==============================
sec_h3
============================== */
/* 見出し */
main .sec_h3 > .h3_wrapper {
	padding: 16px 0;
}
main .sec_h3 h3 {
  padding: 8px;
  border-left: solid 5px var(--accent-color);
	background-color: var(--light-color);
}
main .sec_h3 h3 > span {
	display: block;
}
main .sec_h3 h3 > .main_title {
  font-size: calc(var(--font-size) * 1.4);
}
main .sec_h3 h3 > .sub_title {
	margin-top: 8px;
  font-size: var(--font-size);
}

/* ==============================
サンプル画像ボタン
============================== */
.sample_button {
	display: block;
	width: 320px;
	position: relative;
	padding: 16px;
	margin: 1rem auto 0.5rem;
	background-color: #000;
	color: #fff;
	text-align: center;
	font-size: 20px;
	box-shadow: 0.2rem 0.2rem 0 var(--medium-color);
	cursor: pointer;
}
.sample_button::after {
	content: "";
	display: inline-block;
	width: 12px;
	aspect-ratio: 1;
	position: absolute;
	top: 24px;
	right: 26px;
	border-top: solid 2px #fff;
	border-right: solid 2px #fff;
	transform: rotate(45deg);
}

/* ==============================
サンプル画像
============================== */
.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.gallery img {	
	aspect-ratio: 1;
	object-fit: cover;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.gallery img.show {
	opacity: 1;
	transform: translateY(0);
}



/* ==============================
スマホ
============================== */
@media screen and (max-width: 767px) {

	/* --------------------
	main
	-------------------- */
	/* h3 */
	main .sec_h3 {
		padding: 2rem 0;
	}
}

/* ==============================
タブレット
============================== */
@media screen and (min-width: 768px) and (max-width: 959px) {

}

/* ==============================
タブレット以上
============================== */
@media screen and (min-width: 768px) {

	/* --------------------
	main
	-------------------- */
	/* h3 */
	main .sec_h3 {
		padding: 3rem 0;
	}
}

/* ==============================
タブレット以下
============================== */
@media screen and (max-width: 959px) {

	/* --------------------
	サンプル画像
	-------------------- */
	.gallery > a {
		width: calc((100% - 8px) / 2);
	}
}

/* ==============================
ノートパソコン
============================== */
@media screen and (min-width: 960px) and (max-width: 1280px) {

}

/* ==============================
デスクトップ
============================== */
@media screen and (min-width: 1281px) {

}

/* ==============================
パソコン
============================== */
@media screen and (min-width: 960px) {

	/* --------------------
	目次
	-------------------- */
	main .table_of_contents {
		padding-top: 80px;
	}

	/* --------------------
	サンプル画像
	-------------------- */
	.gallery > a {
		width: calc((100% - 16px) / 3);
	}
}


/* ==============================
目次
============================== */
main .toc_wrapper {
	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	left: -100%;
	padding-bottom: 80px;		/* 下部メニューの分の余白 */
	background-color: rgba(255, 255, 255, .9);
	transition: left .5s, opacity .5s;
	opacity: 0;
	z-index: 5;
	overflow-y: auto;
}
main .toc_wrapper.is-active {
	left: 0;
	opacity: 1;
}
main .table_of_contents {
	width: min(98%, 1280px);
	margin: 0 auto;
}
main .toc_ul {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 8px;
}
main .toc_ul > li {
	max-width: 147px;
	aspect-ratio: 147 / 200;
	overflow: hidden;
}
/* 見出し */
main .table_of_contents > .h3_wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 32px 0 16px;
}
main .table_of_contents h3 > span {
	display: inline-block;
}
/* 閉じるボタン */
main .toc_wrapper .toc_closeButton {
	width: 48px;
	height: 48px;
	position: relative;     /* 基準 */
	margin-right: 24px;
	cursor: pointer;
}
main .toc_wrapper .toc_closeButton::after {
	content: "CLOSE";
	display: inline-block;
	position: absolute;
	bottom: -1px;
	left: 4px;
	font-size: 12px;
	color: var(--text-color);
}
main .toc_wrapper .toc_closeButton > span {
	display: block;
	width: 36px;
	height: 3px;
	position: absolute;
	top: 15px;
	left: 5px;
	border-radius: 2px;
	background-color: var(--text-color);
}
main .toc_wrapper .toc_closeButton > span:nth-of-type(1) {
	transform: rotate(32deg);
}
main .toc_wrapper .toc_closeButton > span:nth-of-type(2) {
	transform: rotate(-32deg);
}

@media screen and (max-width: 445px) {
	main .toc_ul > li {
		width: calc((100% - 16px) / 3);
	}
}
@media screen and (min-width: 446px) and (max-width: 594px) {
	main .toc_ul > li {
		width: calc((100% - 24px) / 4);
	}
}
@media screen and (min-width: 595px) and (max-width: 743px) {
	main .toc_ul > li {
		width: calc((100% - 32px) / 5);
	}
}
@media screen and (min-width: 744px) and (max-width: 892px) {
	main .toc_ul > li {
		width: calc((100% - 40px) / 6);
	}
}
@media screen and (min-width: 893px) and (max-width: 1041px) {
	main .toc_ul > li {
		width: calc((100% - 48px) / 7);
	}
}
