@import "common.css";

/*------------------------------
設備案内
-------------------------------*/

#guide_section {
	height: 100%;
}

/* グリッドレイアウト */
@media screen and (max-width: 499px) {
	.guide_grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
		grid-auto-rows: minmax(100px, auto);
		grid-gap: 25px;
		padding: 25px;
	}

	.modal_text {
		font-size: 10px;
		text-align: left;
		padding: 0.5em 1em;
		margin: 2em 0;
		color: #5d627b;
		background: white;
		border-top: solid 5px #5d627b;
		box-shadow: 0 10px 5px rgba(0, 0, 0, 0.22);
	}

	.modal_overlay h1 {
		text-align: left;
		background: #142c5b;
		vertical-align: middle;
		border-radius: 25px 0px 0px 25px;
		font-size: 12px;
		color: #fff;
		padding-top: 2px;
		padding-bottom: 2px;
		width: 150px;
		margin-bottom: 5px;
	}
}

@media screen and (min-width: 500px) {
	.guide_grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		grid-auto-rows: minmax(200px, auto);
		grid-gap: 25px;
		padding: 25px;
	}

	.modal_text {
		text-align: left;
		padding: 0.5em 1em;
		margin: 2em 0;
		color: #5d627b;
		background: white;
		border-top: solid 5px #5d627b;
		box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
	}

	.modal_overlay h1 {
		text-align: left;
		background: #142c5b;
		vertical-align: middle;
		border-radius: 25px 0px 0px 25px;
		font-size: 20px;
		color: #fff;
		padding-top: 5px;
		padding-bottom: 5px;
		width: 300px;
		margin-bottom: 10px;
	}
}

.guide_button {
	text-align: center;
}

.modal_content {
	align-self: start;
	text-align: center;
	width: 80%;
	max-width: 600px;
	padding: 30px 30px 15px;
	box-sizing: border-box;
	background: #fff;
	line-height: 1.4em;
	transform: scale(1.2);
	transition: 1s;
}

.modal_content img {
	align-self: center;
	width: 80%;
	max-width: 700px;
	max-height: 400px;
	padding: 5px 5px 5px;
	background: gray;
	line-height: 1.4em;
}

#water_bed_warning {
	padding-left: 15px;
}

.open_button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	margin: auto;
	padding: 8px 16px;
	color: #444;
	font-size: 24px;
	font-weight: bold;
	font-family: "Montserrat", sans-serif;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	border-radius: 16px;
	cursor: pointer;
}

/* アイコン */
.open_button label {
	position: relative;
	width: 100%;
}

.open_button span {
	z-index: 9;
}

.open_button i {
	position: absolute;
	top: 75;
	left: 50;
	padding: 5px 8px;
	transition: 0.3s;
	color: #aaaaaa;
	opacity: 40%;
	font-size: 100px;
}

.modal_text a {
	color: tomato;
	font-size: 14px;
	font-weight: bold;
}

@media screen and (max-width: 499px) {
	/* スマホ別 */
	.open_button {
		font-size: 14px;
	}

	.open_button i {
		font-size: 50px;
	}
}

.modal_wrap input {
	display: none;
}

.modal_overlay {
	display: flex;
	justify-content: center;
	overflow: auto;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 100%;
	height: 100%;
	background: rgba(3, 13, 150, 0.7);
	opacity: 0;
	transition: opacity 0.5s, transform 0s 0.3s;
	transform: scale(0);
}

.modal_overlay h1:before {
	content: "●";
	color: #fff;
	margin-left: 8px;
	margin-right: 8px;
}

.modal_trigger {
	position: absolute;
	width: 100%;
	height: 100%;
}

.close_button {
	position: absolute;
	top: 14px;
	right: 16px;
	font-size: 24px;
	cursor: pointer;
}

.modal_wrap input:checked ~ .modal_overlay {
	opacity: 1;
	transform: scale(1);
	transition: opacity 0.5s;
}

.modal_wrap input:checked ~ .modal_overlay .modal_content {
	transform: scale(1);
}
