@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');

body {
	background: #000000;
	padding: 0;
	margin: 0;
	overflow: hidden;
	
	font-family: "Noto Sans JP", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

noscript {
	color: white;
}

/*

	■アクセシビリティ対応■

*/
.screen-reader {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.screen-reader-focusable:active,
.screen-reader-focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	white-space: normal;
	width: auto;
}


/*
	■ナビゲーション■
*/

header#header-nav {
	position: absolute;
	top: 10px;
	right: 25px;
	
	width: 96px;
	height: auto;
	
	z-index: 0;
}

#header-nav ol {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.header-menu-link {
	margin-top: 16px;
}

.header-menu-link a,
.header-menu-link button {
	display: block;
	height: 50px;
	width: 50px;
	transition: filter 0.3s, transform 0.2s;
}

.header-menu-link a:hover,
.header-menu-link button:hover {
	filter: brightness(1.5) drop-shadow(0px 0px 5px white);
	transform: scale(1.1);
}

.header-menu-link a:active,
.header-menu-link button:active {
	filter: brightness(0.75);
	transform: scale(0.9);
}


/*
	■ナビゲーション要素個別■
*/

#header-menu-link-to-top {
	background-image: url('../img/logo.svg');
	background-size: cover;
	background-position: 35% 50%;
	background-repeat: no-repeat;
	width: 80px;
	height: 150px;
	margin-right: 16px;
}

.header-menu-link button#header-menu-link-help {
	background-image: url('../img/T_Help_Button.png');
	background-size: contain;
	background-repeat: no-repeat;
}

.header-menu-link button#header-menu-link-soundToggle {
	background-image: url('../img/T_Sound_off_Button.png');
	background-size: contain;
	background-repeat: no-repeat;
}



/*
	■WebGL■
*/

#unity-container {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: -100;
}

#unity-container.unity-desktop {
	width: 100%;
	height: 100%;
	top: 0;
}

#unity-container.unity-mobile {
	width: 100%;
	height: 100%;
	top: 0;
}

#unity-canvas {
	background: #000000;
	width: 100%;
	height: 100%;
}

.unity-mobile #unity-canvas {
	width: 100%;
	height: 100%;
}


/*
	■ローディング画面■
*/

#unity-loading-bar {
	position: absolute;
	top: 0px;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,1.0);
	display: none;
	justify-content: center;
	z-index: 300;
}

#unity-loading-bar.fadeOut {
	animation: loadingBar_fadeOut 1s ease 1s forwards;
	pointer-events: none;
}

@keyframes loadingBar_fadeOut {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

#unity-logo {
	width: 330px;
	height: 330px;
	
	z-index: 350;
	
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin-top: -32px;
	
	background-image: url('../img/ImpulseToMove_logo_AnimParts_base.svg');
	background-size: cover;
	background-repeat: no-repeat;
	
	animation: logo_blink 2s ease-in-out infinite forwards;
}

@keyframes logo_blink {
	0% {
		opacity: 0.2;
	}
	
	50% {
		filter: drop-shadow(0px 0px 5px #808080);
		opacity: 1;
	}
	
	100% {
		opacity: 0.2;
	}
}

#unity-logo>.unity-logo-anim {
	width: 330px;
	height: 330px;
	position: absolute;
	top: 0px;
	left: 0px;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	z-index: 380;
}

#unity-logo>#unity-logo-A {
	background-image: url('../img/ImpulseToMove_logo_AnimParts_A.svg');
	animation: logo_anim 2s ease 0.1s infinite forwards;
}

#unity-logo>#unity-logo-B {
	background-image: url('../img/ImpulseToMove_logo_AnimParts_B.svg');
	animation: logo_anim 2s ease 0.3s infinite forwards;
}

#unity-logo>#unity-logo-C {
	background-image: url('../img/ImpulseToMove_logo_AnimParts_C.svg');
	animation: logo_anim 2s ease 0.5s infinite forwards;
}

@keyframes logo_anim {
	0% {
		opacity: 0;
		transform: translate(50px, -50px);
	}
	15% {
		opacity: 1;
		transform: translate(0px, 0px);
	}
	85% {
		opacity: 1;
		transform: translate(0px, 0px);
	}
	100% {
		opacity: 0;
		transform: translate(-50px, 50px);
	}
}

#unity-logo>.unity-logo-anim.color1 {
	filter: brightness(0) saturate(100%) invert(76%) sepia(4%) saturate(11%) hue-rotate(354deg) brightness(96%) contrast(91%);
}

#unity-logo>.unity-logo-anim.color2 {
	filter: brightness(0) saturate(100%) invert(20%) sepia(95%) saturate(6982%) hue-rotate(349deg) brightness(85%) contrast(114%);
}

#unity-logo>.unity-logo-anim.color3 {
	filter: brightness(0) saturate(100%) invert(32%) sepia(5%) saturate(7321%) hue-rotate(168deg) brightness(90%) contrast(93%);
}

#unity-logo>.unity-logo-anim.color4 {
	filter: brightness(0) saturate(100%) invert(52%) sepia(20%) saturate(579%) hue-rotate(254deg) brightness(92%) contrast(91%);
}

#unity-logo>.unity-logo-anim.color5 {
	filter: brightness(0) saturate(100%) invert(62%) sepia(53%) saturate(6241%) hue-rotate(8deg) brightness(98%) contrast(101%);
}

#unity-logo>.unity-logo-anim.color6 {
	filter: brightness(0) saturate(100%) invert(56%) sepia(12%) saturate(2097%) hue-rotate(93deg) brightness(105%) contrast(82%);
}

#unity-logo.loadedAnim {
	transform-origin: center;
	animation: logo_loaded_anim 0.7s linear 1s;
}

@keyframes logo_loaded_anim {
	0% {
		transform: translate(-50%, -50%) scale(1);
	}
	
	100% {
		transform: translate(-50%, -50%) scale(10);
	}
}

#unity-progress-bar-empty {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 64px;
	background-color: #202020;
}

#unity-progress-bar-full {
	width: 0%;
	height: 64px;
	background-color: #dcdcdc;
}

#unity-progress-bar-loading-texts {
	width: 160px;
	height:16px;
	font-size: 16px;
	text-align: center;
	color: white;
	mix-blend-mode: difference;
	
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}



#unity-fullscreen-button {
	display: none;
	position: absolute;
	right: 0%;
	bottom: 0%;
	width: 38px;
	height: 38px;
	background: url('fullscreen-button.png') no-repeat center;
}

#unity-warning {
	position: absolute;
	left: 50%;
	top: 5%;
	transform: translate(-50%);
	background: white;
	padding: 10px;
	display: none;
}


/*
	■キーボード説明■
	スマホ表示の際はスクリプトでdisplay:none
*/

#overlay-instructions {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 300px;
	height: 175px;
	
	z-index: -50;
	
	background-image: url('../img/overlay-instructions_ja.png');
	background-size: cover;
	background-repeat: no-repeat;
	pointer-events: none;
}



/*
	■オーバーレイ表示■
*/

#overlay {
	display: none;
	position: absolute;
	top: 0px;
	width: 100%;
	height: 100%;
	
	z-index: 50;
	background-color: rgba(0,0,0,0.3);
	backdrop-filter: blur(10px);
}

.overlayWindow {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	
	max-width: 1200px;
	max-height: 1000px;
	
	overflow: hidden;
	z-index: 100;
	display: none;
	border: 3px solid #3eb370;
	border-radius: 55px;
	background-color: black;
	color: white;
	
	box-shadow: 0px 0px 16px #000;
}

#instructions {
	z-index: 101;
}

#instructions-image {
	width: 100%;
	height: calc(100% - 80px);
	
	background: url('../img/instructions_pc_ja.png'), black;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

#instructions-faqButton {
	width: 200px;
	height: 50px;
	
	position: absolute;
	bottom: 10%;
	left: 50%;
	transform: translate(-50%, 0);
	
	color: white;
	
	background-color: #222;
	border-radius: 25px;
	transition: background-color 0.3s;
}

#instructions-faqButton button {
	display: block;
	height: 100%;
	width: 100%;
	text-align: center;
}

#instructions-faqButton:hover {
	background-color: #3eb370;
}


#instructions-faqButton:active {
	background-color: #2d8051;
}



#faq {
	z-index: 102;
}

.faq-content p,
.faq-content li {
	font-size: 16px;
	line-height: 28px;
	letter-spacing: 1px;
}

.faq-q::before {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	margin-right: 6px;
	
	background: url('../img/T_web_FAQ_icon.png'), #3eb370;
	background-size: contain;
	background-repeat: no-repeat;
	
	background-blend-mode: multiply;
	
	transform: rotate(45deg) scale(0.8);
}

.faq-q {
	font-size: 20px;
	font-weight: 600;
	color: #63CA90;
	letter-spacing: 1px;
	margin-bottom: 16px;
}

.faq-q_text {
	display: block;
	margin-left: 32px;
	margin-top: -24px;
}

.faq-content-wrapper {
	margin: 8px 36px 16px 8px;
	padding: 1px 0.5px 0.5px 1px;
	background: linear-gradient(175deg, #34985F, #2A7A4C 3%, #123521);
	border-radius: 24px;
}

.faq-content {
	padding: 32px 32px 36px 32px;
	
	background:
		linear-gradient(to bottom, #081A11, #010302 20%, #010302 90%, #081A11),
		linear-gradient(to right, #0d2b1c, #06140d 4%, #010302 10%, #010302 95%, #081A11);
	
	background-blend-mode: screen;
	border-radius: 24px;
}

.faq-a {
	margin-left: 32px;
}

.faq-a > p {
	margin-top: 8px;
}

.faq-a > * > li {
	margin: 12px 0 0 24px;
}

.faq-a > * > * > li {
	margin-left: 36px;
}



.faq_question_detail {
	font-size: 15px;
}

.faq-a_lv2 {
	display: block;
	margin: -24px 0 24px 24px;
}

#faq3_answer_li_1::before,
#faq3_answer_li_2::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	
	background: url('../img/T_web_FAQ_icon.png'), #ffffff;
	background-size: contain;
	background-repeat: no-repeat;
	
	background-blend-mode: multiply;
	
	transform: rotate(45deg) scale(0.8);
}


.overlayWindowTitle {
	width: 100%;
	height: 100px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	
}

.overlayWindowTitle h2 {
	font-size: 24px;
	font-weight: 800;
	text-align: center;
	margin-top: 16px;
}

.textContentsContaier {
	width: calc(100% - 85px);
	height: calc(100% - 150px);
	transform: translate(40px, 0);
	
	overflow-y: scroll;
	scrollbar-gutter: stable;
}

.textContentsContaier::-webkit-scrollbar {
	width: 8px;
	background-color: rgba(0, 0, 0, 0);
}

.textContentsContaier::-webkit-scrollbar-thumb {
	width: 8px;
	background: #3eb370;
	border-radius: 4px;
}

.textContentsContaier::-webkit-scrollbar-thumb:hover {
	background-color: #50e691;
}

.textContentsContaier::-webkit-scrollbar-thumb:active {
	background-color: #369961;
}

.textContentsContaier::-webkit-scrollbar-track {
	width: 8px;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0) 40%,
		rgba(128, 128, 128, 1) 41%,
		rgba(128, 128, 128, 1) 59%,
		rgba(0, 0, 0, 0) 60%,
		rgba(0, 0, 0, 0) 100%
	);
}

.textContentsContaier::before {
	content: "";
	display: block;
	width: 100%;
	height: 48px;
	position: sticky;
	top: 0;
	margin-bottom: -32px;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 1),
		rgba(0, 0, 0, 0)
	);
}

.textContentsContaier::after {
	content: "";
	display: block;
	width: 100%;
	height: 48px;
	position: sticky;
	bottom: 0;
	margin-top: -48px;
	background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}








#overlay.showAnim {
	animation: overlay_show_anim 0.3s linear forwards;
}

#overlay.hideAnim {
	animation: overlay_hide_anim 0.3s linear forwards;
}

@keyframes overlay_show_anim {
	0% {
		opacity: 0;
	}
	
	100% {
		opacity: 1;
	}
}

@keyframes overlay_hide_anim {
	0% {
		opacity: 1;
	}
	
	100% {
		opacity: 0;
	}
}



.overlayWindow.showModalAnim {
	animation: show_modal_anim 0.3s ease forwards;
}

@keyframes show_modal_anim {
	0% {
		transform: translate(-50%, -50%) scale(0);
	}
	70% {
		transform: translate(-50%, -50%) scale(1.05);
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
	}
}

.overlayWindow.hideModalAnim {
	animation: hide_modal_anim 0.3s ease forwards;
}

@keyframes hide_modal_anim {
	0% {
		transform: translate(-50%, -50%) scale(1);
	}
	
	100% {
		transform: translate(-50%, -50%) scale(0);
	}
}



.CloseOverlayButton {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 48px;
	height: 48px;
	z-index: 150;
}

.CloseOverlayButton button {
	display: block;
	width: 100%;
	height: 100%;
	
	background-image: url('../img/T_Button_Close.png');
	background-size: contain;
	transition: filter 0.3s, transform 0.2s;
}

.CloseOverlayButton button:hover {
	filter: brightness(1.5) drop-shadow(0px 0px 5px white);
	transform: scale(1.1);
}


.CloseOverlayButton button:active {
	filter: brightness(0.75);
	transform: scale(0.9);
}

.autoCloseTimer {
	display: block;
	position: absolute;
	top: -8px;
	left: -8px;
	width: 64px;
	height: 64px;
	z-index: 155;
	
	border-radius: 50%;
	
	background: conic-gradient(
		#3eb370 0% 0%,
		#808080 0% 100%
	);
	mask: radial-gradient(
		circle at center,
		transparent 60%,
		black 60%
	);
	
	pointer-events: none;
}


/* スマホ縦画面時 */
@media (orientation: portrait){
	header#header-nav {
		top: 5px;
		right: 10px;
	}
	
	.header-menu-link {
		margin-top: 8px;
	}
	
	#instructions-image {
		height: 100%;
	}
	
	.textContentsContaier {
		width: 100%;
		height: calc(100% - 130px);
		transform: translate(0, 0);
	}
	
	.faq-content-wrapper {
		margin: 8px 8px 16px 8px;
	}
	
	.faq-content {
		margin: 0;
		padding: 32px 24px 48px 16px;
	}
	
	.faq-a {
		margin-left: 32px;
	}
	
	.faq-a > * > li {
		margin: 12px 0 0 12px;
	}

	.faq-a > * > * > li {
		margin-left: 18px;
	}
}
