[x-cloak] {
	display: none;
}

* {
	margin: 0;
	padding: 0;
	font-size: min(2vw, 1.25rem);
	font-family: "游明朝", "YuMincho", "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "MS P明朝", "MS PMincho", "MS 明朝", serif;
}

*::selection {
	background-color: inherit;
}

img {
	pointer-events: none;
}


body {
	margin: 0;
	position: relative;
	background-color: white;
	width: 100%;
	height: 100vh;
	height: 100lvh;
	overflow-y: scroll;
	overflow-x: hidden;

}

.sound_check {
	position: fixed;
	width: 100%;
	height: 100%;
	-webkit-backdrop-filter: blur(13px);
	backdrop-filter: blur(13px);
	background: rgba(255, 246, 204, 0.2);
	z-index: 99;
	color: white;

	display: flex;
	justify-content: center;
	align-items: center;

}

.sound_check .container {

	align-items: center;
	text-align: center;
}

.sound_check .container .title {
	font-size: min(3vw, 1.5rem);
	margin-bottom: 5%;
}

.sound_check .container .buttons {

	display: flex;
	justify-content: space-around;
	gap: 3rem;
	flex-wrap: wrap;
	padding-top: 5%;

}

.sound_check .container .buttons .button {
	width: 10rem;
	text-align: center;
	border-radius: 2px;
	background-color: #1e428b;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	cursor: pointer;
	font-size: min(2vw, 1rem);
	pointer-events: fill;
}

.sound_check .container .buttons .button:hover {
	filter: brightness(1.5);
}

.sound_check .container .buttons .button:active {
	filter: brightness(0.5);
}

.sound_check .container .buttons .button::selection {
	background-color: inherit;
}


.sound_control {
	width: 2rem;
	height: 2rem;
	position: fixed;
	bottom: 0.5rem;
	right: 0.5rem;
	z-index: 50;


	border-radius: 9999px;
	background-color: #1e428b;

	display: flex;
	justify-content: center;
}

.sound_control svg {
	margin: 0.5rem;
}

.gradient {
	display: block;
	background: linear-gradient(217deg, #11305f, #1e428b, #173565);
	pointer-events: none;
}

@keyframes gradientAnimation {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.invisible {
	visibility: hidden;
}



.loading {
	width: 100dvw;
	height: 100vh;
	height: 100lvh;
	align-items: center;
	text-align: center;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.loading svg {
	width: 80vmin;
	height: 80vmin;
}


.loading .date {
	font-size: 20px;
	color: white;
	font-family: 'Courier New', Courier, monospace;
}


main {
	width: 100%;
	box-sizing: border-box;
}

.img_container {
	position: relative;
	z-index: 50;
}



.img_scroll {
	height: min(25vmin, 150px);
	position: fixed;
	bottom: 16px;
	left: 24px;
	animation: bounce2 1.5s ease infinite;

}

@keyframes swing {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(16px);
	}
}

@keyframes bounce2 {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-15px);
	}

	60% {
		transform: translateY(-5px);
	}
}

.top {
	width: 100%;
	height: 10px;
}

.top .img_hex_l1 {
	position: absolute;
	top: -10vmin;
	width: 40vmin;
	object-fit: contain;
	object-position: top left;
}

.top .img_hex_r1 {
	position: absolute;
	width: 40vmin;
	object-fit: contain;
	object-position: right;
	right: 0;
	top: 0;
	transform: translateY(calc(50lvh, 50vh));

}

.top .hbg {
	height: 50vh;
	height: 50lvh;
	width: 100%;

	position: absolute;
	top: 0;
	left: 0;
}

.top .top_header {
	width: 80%;
	height: 50vh;
	height: 50lvh;
	position: fixed;
	top: 0;
	left: 0;

	background-image: url('../img/test.png'), url('../img/bg.png');
	background-size: cover, cover;
	background-repeat: no-repeat, no-repeat;
	background-position: center, top;

	display: flex;
	justify-content: center;
	padding-left: 10%;
	padding-right: 10%;
}


.top .top_header .svg_container {
	max-width: 600px;
	width: 50%;

	position: relative;

}

.top .top_header .svg_container svg {
	position: absolute;
	bottom: 0;
	right: 0;
	transform: translateY(50%);
}

.top .top_header .ryu_container {
	width: 50%;
	height: 100%;

	position: absolute;
	top: 0;
	right: inherit;
}

.header_ryu_img {
	width: 100%;


	position: absolute;
	bottom: 0;
	left: -20%;

	transform: translateY(50%);

	object-position: top right;
	animation: swing 1.5s ease-in-out infinite alternate-reverse;

}



.greeting {
	margin-top: 80vh;
	margin-top: 80lvh;
	padding: 5%;

	display: flex;
	flex-flow: column;
	justify-items: center;
	align-items: center;
	text-align: center;
	margin-bottom: 15vh;
	opacity: 0;

	color: #0c2644;
	line-height: 200%;
	letter-spacing: 0.2em;
}

.greeting img {
	width: 10vw;
	object-fit: contain;
	object-position: center;
	align-items: center;
	padding-bottom: 2rem;

}

.omikuji {
	position: relative;
	width: 100%;
	height: auto;
	box-sizing: border-box;
	background: rgba(255, 250, 240, 0.8);
}

.omikuji .img_hex_l {
	position: absolute;
	width: 40vmin;

	object-fit: contain;
	object-position: left;
	transform: translateY(-50%);
}

.omikuji .ryu_container {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;

	overflow: hidden;
}



.omikuji .img_hex_r {
	position: absolute;
	width: 40vmin;
	object-fit: contain;
	object-position: bottom right;
	bottom: 20%;
	right: 0;
}

.omikuji .img_ryu_l {
	position: absolute;
	height: 90%;
	object-fit: cover;
	object-position: left;
}

.omikuji .img_ryu_r {
	position: absolute;
	height: 90%;
	object-fit: cover;
	object-position: bottom right;
	bottom: 0;
	right: 0;
	top: unset;

	z-index: 1;
}

.omikuji .container {

	display: flex;
	justify-content: center;
	max-height: 92vh;
	max-height: 92lvh;

	padding-bottom: 5%;

	position: inherit;
	z-index: 2;

}

.sub_ttl {
	width: 25%;
	display: block;
	margin: 0 auto;
	padding-top: min(10%, 6rem);
	padding-bottom: 5%;

	position: inherit;
	z-index: 1;
}

.omikuji .container .kuji {

	width: 100%;
	aspect-ratio: 1;
	padding: 1% 0;


	will-change: transform, animation;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.omikuji .container .kuji #top_circle {
	animation: rotate 20s linear infinite;
	transform-origin: 50% 50%;
}

.omikuji .container .kuji #touch_circle {
	cursor: url('../img/pointer.png'), auto;
}

.omikuji .container .kuji .item {
	filter: drop-shadow(0px 0px 5px #d3d3d3);
	cursor: url('../img/pointer.png'), auto;

}

.omikuji .container .kuji .item:hover {
	filter: brightness(1.5);
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.footer {
	width: 100dvw;
	background-image: url("../img/bg.png");
	background-size: cover;
	background-repeat: no-repeat;
	color: white;
	position: relative;
	padding-top: 11vh;
	padding-bottom: 14vh;
	display: flex;
	flex-direction: column;
	align-items: center;

}

.footer .message {
	width: 95%;
	text-align: center;


	line-height: 1.5em;
	letter-spacing: 0.2em;
}

.footer>.copyright {

	text-align: center;
	font-size: 0.8rem;
	position: absolute;
	bottom: 3vh;

}

span.selector {
	font-feature-settings: "palt";
}

span.copyright {
	font-size: 0.8rem;
}

.footer img {
	position: absolute;
	width: 40vmin;

	object-fit: contain;
	object-position: bottom left;

	left: 0;
	bottom: 0;
	padding-bottom: 16px;
}

#particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100dvw;
	height: 100vh;
	height: 100lvh;
	overflow: hidden;

	z-index: -1;

	pointer-events: none;
}

.overlay {
	position: fixed;
	background-color: #153485ab;
	z-index: 100;

	top: 0;
	bottom: 0;

	left: 0;
	right: 0;

	display: flex;
	justify-content: center;
	align-items: center;
}

.overlay .loading_item {


	display: flex;
	justify-content: center;

	position: inherit;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	align-items: center;

}

.loading_item img {
	animation: rotate 1s linear infinite;
	width: min-content;
	height: min-content;

}

.overlay .container {
	/* padding: 16px; */
	height: 70vh;
	height: 70lvh;
	max-height: min(90%, 600px);
	aspect-ratio: 108/195;
	max-width: 90%;

	perspective: 1000px;
}

.kuji_image {
	position: absolute;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;

	transform: rotateY(180deg);

}

.kuji_image img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}

.omikuji_result {
	height: 100%;
	width: 100%;

	position: relative;
	overflow: hidden;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;

}

.omikuji_result img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}


/* アニメ用のCSS x-transiton系で使う */
.ryu_show_enter {
	transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
	transition-duration: 500ms;
	transition-delay: 200ms;
}

.ryu_l_show_start {
	opacity: 0;
	translate: -100% 0;
	scale: 0.8;

}

.ryu_r_show_start {
	opacity: 0;
	translate: 100% 0;
	scale: 0.8;

}

.ryu_show_end {
	transform: translateX(0);
	opacity: 1;
	scale: 1;

}

.omikuji_container_enter {
	transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
	transition-duration: 700ms;
	transition-delay: 1s;
}

.omikuji_show_container_start {
	opacity: 0;
}

.omikuji_show_container_end {
	opacity: 100;
}

.omikuji_show_enter {
	transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
	transition-duration: 500ms;
	transition-delay: 800ms;
}

.omikuji_show_front_start {
	transform: rotateY(0);
}

.omikuji_show_front_end {
	transform: rotateY(180deg);
}

.omikuji_show_back_start {
	transform: rotateY(180deg);
}

.omikuji_show_back_end {
	transform: rotateY(0);
}

.header_ryu_show {
	/* transition-timing-function: cubic-bezier(0, 0, 0.2, 1); */
	transition-duration: 500ms;
	transition-delay: 1800ms;
}

.header_ryu_show_start {
	opacity: 0;
	scale: 0.95;
}

.header_ryu_show_end {
	opacity: 1;
	scale: 1;
}


@media screen and (orientation: portrait) {

	* {
		font-size: min(4vw, 1.5em);
	}

	.sound_check .container .buttons {

		padding-left: 10%;
		padding-right: 10%;
	}

	.sound_check .container .buttons .button {
		width: 40dvw;
		font-size: min(5vw, 2rem);
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
	}


	.sound_check .container .title {
		font-size: min(6vw, 3rem);
		margin-bottom: 5%;
	}


	.greeting img {
		width: 20vw;
	}

	.omikuji .container .kuji {


		padding: 0;
	}

	.sub_ttl {
		width: 50%;
	}

	.top .img_hex_r1 {

		transform: translateY(calc(50lvh, 50vh));

	}

	.omikuji .container {
		padding-bottom: 10%;
	}

	.top .top_header {
		width: 100vw;
		width: 100lvw;
		height: 50vh;
		height: 50lvh;
		position: fixed;
		top: 0;
		left: 0;

		background-size: auto 100%, cover;
		background-position: right, top;

		display: flex;
		justify-content: center;
		padding-left: 10%;
		padding-right: 10%;

		padding: 0;
		padding-left: 0;
		padding-right: 0;
	}


	.top .top_header .svg_container {

		max-width: 50vh;
		max-width: 50lvh;
		width: 70%;

		position: relative;
		left: -10%;
		right: unset;
	}

	.greeting {
		margin-top: 70vh;
		margin-top: 70lvh;

	}

	.omikuji .img_ryu_r {
		object-position: top right;
		top: 0;
		/* right: 0; */
		left: 30%;
		bottom: unset;

	}

	.omikuji .img_ryu_l {
		object-position: bottom left;
		top: unset;
		right: 30%;
		bottom: 0;

	}
}