@charset "UTF-8";

/* ===============================
	common setting
================================ */
/* カラー設定 */
article {
	color: #000;
	border-top: solid 5px #fff100;
	border-bottom: solid 5px #fff100;
}

article a {
	color: #00a0e8;
}

.main-text,
.sub-section {
	font-weight: 500;
}

.answer .text em {
	color: #f65f70;
}

.hint {
	background: #bdf0f5;
	border-radius: 2rem;
}

/* ===============================
	PC/Tab setting
================================ */
@media print , screen and (min-width: 481px) {
	article {
		padding-bottom: 8rem;
		font-size: 1.8rem;
		overflow: hidden;
	}
	.mts {
		margin-top: 4rem;
	}
	/* サブセクション */
	.sub-section {
		padding-top: 4rem;
		padding-bottom: 10rem;
		background-position: center top;
		background-repeat: no-repeat;
	}
	.sub-title {
		text-align: center;
	}
	/* メインビジュアル */
	.main-img {
		padding-top: 11rem;
		background: url(images/garrand.png) repeat-x center top, url(images/main-visual.jpg) no-repeat center top;
	}
	.main-img .main-text {
		padding-bottom: 8rem;
		background: url(images/illust-read.png) no-repeat center bottom;
	}
	.main-img .main-text .text {
		margin-top: 1em;
		font-size: 1.6rem;
		line-height: 2;
		text-align: center;
	}
	/* Anser */
	.answer {
		position: relative;
	}
	.answer .ttl {
		position: relative;
	}
	.answer .ttl::before {
		content: '';
		display: block;
		background: #7dedf7;
		width: 100vw;
		height: 6rem;
		position: absolute;
		top: -1rem;
	}
	.answer .ttl::after {
		content: '';
		display: block;
		background: #7dedf7;
		width: 100vw;
		height: 6.5rem;
		position: absolute;
		bottom: -1rem;
	}
	.answer .ttl img {
		position: relative;
		z-index: 1;
	}
	.answer .text {
		margin-top: 2rem;
	}
	.answer .ttl + .text {
		margin-top: 3rem;
	}
	.sub-section:nth-of-type(even) .answer .text {
		margin-left: auto;
	}
	.answer .img {
		position: absolute;
	}
	/* CASE */
	#case01 {
		background-image: url(images/bg-case01.png)
	}
	#case02 {
		background-image: url(images/bg-case02.png)
	}
	#case03 {
		background-image: url(images/bg-case03.png)
	}
	#case04 {
		background-image: url(images/bg-case04.png)
	}
	#case05 {
		background-image: url(images/bg-case05.png)
	}
	#case01 .answer .text {
		width: 640px;
	}
	#case01 .answer .ttl::before {
		right: 65%;
	}
	#case01 .answer .ttl::after {
		right: 25%;
	}
	#case01 .answer .img {
		top: 50px;
		right: -60px;
	}
	#case02 .answer .text {
		width: 550px;
	}
	#case02 .answer .ttl::before {
		left: 35%;
	}
	#case02 .answer .ttl::after {
		left: 55%;
	}
	#case02 .answer .img {
		top: -60px;
		left: 10px;
	}
	#case02 .hint {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 580px;
		margin-left: auto;
		margin-right: auto;
		padding: 3rem 6rem;
	}
	#case02 .hint .img {
		width: 100px;
	}
	#case02 .hint .text {
		width: 340px;
	}
	#case03 .answer .text {
		width: 700px;
	}
	#case03 .answer .ttl::before {
		right: 65%;
	}
	#case03 .answer .ttl::after {
		right: 40%;
	}
	#case03 .answer .img {
		top: 50px;
		right: -50px;
	}
	#case04 .answer .text {
		width: 580px;
	}
	#case04 .answer .ttl::before {
		left: 35%;
	}
	#case04 .answer .ttl::after {
		left: 55%;
	}
	#case04 .answer .img {
		top: 0;
		left: 0;
	}
	#case05 .answer .text {
		width: 640px;
	}
	#case05 .answer .ttl::before {
		right: 50%;
	}
	#case05 .answer .ttl::after {
		right: 23%;
	}
	#case05 .answer .img {
		top: 20px;
		right: -60px;
	}
}

/* ===============================
	Mobile setting
================================ */
@media screen and (max-width: 480px) {
	article {
		padding-bottom: 6rem;
		overflow: hidden;
	}
	article img {
		width: 100%;
	}
	.mts {
		margin-top: 2rem;
	}
	/* サブセクション */
	.sub-section {
		padding-top: 3rem;
		padding-bottom: 3rem;
		background-position: center top;
		background-repeat: no-repeat;
		background-size: contain;
	}
	.sub-title {
		text-align: center;
	}
	/* メインビジュアル */
	.main-img {
		padding-top: 12rem;
		background: url(images/garrand_sp.png) repeat-x center top, url(images/main-visual_sp.jpg) no-repeat center top;
		background-size: contain, contain;
		padding-bottom:5rem;
	}
	.main-img .main-text {
		padding-bottom: 15rem;
		background: url(images/illust-read_sp.png) no-repeat center bottom;
		background-size: contain;
	}
	.main-img .main-text .text {
		margin-top: 2em;
		font-size: 1.4rem;
		line-height: 2;
		text-align: center;
	}
	/* Anser */
	.answer {
		margin-top: 1rem;
		position: relative;
	}
	.answer .ttl {
		position: relative;
	}
	.answer .ttl::before {
		content: '';
		display: block;
		background: #7dedf7;
		width: 100vw;
		height: 3rem;
		position: absolute;
		top: -0.5rem;
	}
	.answer .ttl::after {
		content: '';
		display: block;
		background: #7dedf7;
		width: 100vw;
		height: 2.5rem;
		position: absolute;
		bottom: -0.5rem;
	}
	.answer .ttl img {
		position: relative;
		z-index: 1;
	}
	.answer .text {
		margin-top: 2rem;
	}
	.sub-section:nth-of-type(even) .answer .text {
		margin-left: auto;
	}
	.answer .img {
		position: absolute;
	}
	/* CASE */
	#case01 {
		background-image: url(images/bg-case01_sp.png)
	}
	#case02 {
		background-image: url(images/bg-case02_sp.png)
	}
	#case03 {
		background-image: url(images/bg-case03_sp.png)
	}
	#case04 {
		background-image: url(images/bg-case04_sp.png)
	}
	#case05 {
		background-image: url(images/bg-case05_sp.png)
	}
	#case01 .answer .text.pdr {
		padding-right: 50%;
	}
	#case01 .answer .ttl::before {
		right: 58%;
	}
	#case01 .answer .ttl::after {
		right: 5%;
	}
	#case01 .answer .img {
		width: 50%;
		bottom: 2rem;
		right: -2.5%;
	}
	#case02 .answer .ttl::before {
		left: 18%;
	}
	#case02 .answer .ttl::after {
		left: 40%;
	}
	#case02 .answer .img {
		width: 46%;
		top: 25%;
		left: -2.5%;
	}
	#case02 .hint {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-left: 5%;
		margin-right: 5%;
		padding: 1rem 2rem;
	}
	#case02 .hint .img {
		width: 18%;
	}
	#case02 .hint .text {
		width: 78%;
		font-size: 1.2rem;
	}
	#case03 .answer {
		padding-bottom: 9rem;
	}
	#case03 .answer .text.pdr {
		padding-right: 50%;
	}
	#case03 .answer .ttl::before {
		right: 55%;
	}
	#case03 .answer .ttl::after {
		right: 20%;
	}
	#case03 .answer .img {
		width: 50%;
		bottom: 5%;
		right: -2.5%;
	}
	#case04 .answer .text.pdl {
		padding-left: 48%;
	}
	#case04 .answer .ttl::before {
		left: 20%;
	}
	#case04 .answer .ttl::after {
		left: 50%;
	}
	#case04 .answer .img {
		width: 50%;
		top: 14%;
		left: -2.5%;
	}
	#case05 .answer .text.pdr {
		padding-right: 42%;
	}
	#case05 .answer .ttl::before {
		right: 32%;
	}
	#case05 .answer .ttl::after {
		right: 0;
	}
	#case05 .answer .img {
		width: 40%;
		bottom: 1rem;
		right: -2.5%;
	}
}

/* ===============================
	screen setting
=============================== */
@media screen {
	/* pageTop */
	a#pageTop {
		background-image: url(images/pagetop.png);
	}
}
