@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap');

/* リセットここから */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

button {
	background-color: transparent;
	border: none;
	cursor: pointer;
	outline: none;
	padding: 0;
	appearance: none;
}

/* リセットここまで */

body {
	font-family: 'Noto Sans', sans-serif;
	-webkit-font-smoothing: antialiased;
}

img {
	width: 100%;
	height: auto;
}

* {
	box-sizing: border-box;
}

a {
	text-decoration: none;
}

:root {
	--text-color: #3B4043;
	--primary-color: #EE3E4B;
	--secondary-color: #3AA4D3;
	--whitesmoke-color: #F0F3F5;
	--light-gray-color: #CDD6DD;
	--silver-color: #98A6B5;
	--darkgray-color: #707F89;
	--cream-color: #FFF6DE;
	--vivid-yellow-color: #FFFF00;
	--switch-text-color: #3B4043;
	--white-box: #F0F3F5;
	--white-box-item: #FFFFFF;
	--table-hd: #CDD6DD;
	--table-line: #FFFFFF;
	--background-color: #FFF;
	--corporate-yellow: #FEC321;
	--corporate-red: #EF4137;
	--corporate-gray: #949698;
	}

:root[data-theme='dark'] {
	--switch-text-color: #FFFFFF;
	--white-box: #FFFFFF;
	--white-box-item: #F0F3F5;
	--table-hd: #707F89;
	--table-line: #CDD6DD;
	--background-color: #3B4043;
}

body {
	color: var(--text-color);
}

html[lang='ja'] *[lang='en'],
html[lang='en'] *[lang='ja'] {
	display: none !important;
}

/*************
共通header
*************/
header {
	background: #FFF;
	height: 36px;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999;
}

.header_inner {
	max-width: 960px;
	height: 36px;
	margin: 0 auto;
	position: relative;
}

.logo_game {
	width: 144px;
	position: absolute;
	left: 50%;
	top: 8px;
	transform: translateX(-50%);
}

.logo_labo {
	width: 64px;
	position: absolute;
	left: 8px;
	top: 7px;
	font-size: 10px;
}

#hd_language {
	font-size: 10px;
	border: 1px solid var(--light-gray-color);
	padding: 4px 17px 4px 24px;
	-webkit-appearance: none;
	appearance: none;
	/* デフォルトの矢印を非表示 */
	color: var(--text-color);
}

.hd_lang_box {
	position: absolute;
	right: 8px;
	top: 7px;
}

.hd_lang_box::before {
	position: absolute;
	content: "";
	background-image: url(../images/icon_language.svg);
	background-size: cover;
	top: 50%;
	left: 7px;
	width: 12px;
	height: 12px;
	transform: translateY(-50%);
}

.hd_lang_box::after {
	position: absolute;
	content: "";
	border-right: 1px solid var(--silver-color);
	border-bottom: 1px solid var(--silver-color);
	top: 9px;
	right: 6px;
	width: 3px;
	height: 3px;
	transform: rotate(45deg);
}

@media(min-width:480px) {
	header {
		height: 52px;
	}

	.header_inner {
		height: 52px;
	}

	.logo_game {
		width: 248px;
		top: 12px;
	}

	.logo_labo {
		width: 105px;
		left: 16px;
		top: 8px;
	}

	#hd_language {
		font-size: 12px;
		padding: 10px 28px 10px 36px;
	}

	.hd_lang_box::before {
		left: 20px;
	}

	.hd_lang_box::after {
		border-right: 2px solid var(--silver-color);
		border-bottom: 2px solid var(--silver-color);
		top: 14px;
		right: 10px;
		width: 4px;
		height: 4px;
	}
}

/*************
共通ゲームheader（赤）
*************/
#game_header {
	background: var(--primary-color);
	height: 32px;
	position: fixed;
	top: 36px;
	width: 100%;
	z-index: 9999;
}

.game_header_inner {
	max-width: 960px;
	margin: 0 auto;
	position: relative;
	height: 32px;
}

.hd_game_period {
	position: absolute;
	top: 50%;
	left: 16px;
	font-size: 10px;
	font-weight: bold;
	color: #FFF;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
}

.hd_game_period>span {
	display: block;
}

.hd_user_name {
	position: absolute;
	top: 50%;
	right: 8px;
	font-size: 10px;
	font-weight: bold;
	color: #FFF;
	transform: translateY(-50%);
}

.hd_user_name::before {
	content: "";
	width: 16px;
	height: 16px;
	background: url(../images/icon_user.svg);
	position: absolute;
	top: -4px;
	left: -20px;
}

.hd_game_period[lang="en"]>span.title {
	font-size: 10px;
	width: 60px;
}

.hd_game_period>span.year {
	/* padding-left: 8px; */
	position: relative;
}

.hd_game_period>span.year::before {
	content: "：";
}


@media(min-width:480px) {
	#game_header {
		height: 52px;
		top: 52px;
	}

	.game_header_inner {
		height: 52px;
	}

	.hd_game_period {
		left: 16px;
		font-size: 16px;
	}

	.hd_user_name {
		right: 8px;
		font-size: 16px;
	}

	.hd_user_name::before {
		top: 0;
		left: -21px;
	}

	.hd_game_period[lang="en"]>span.title {
		font-size: 12px;
		width: 75px;
	}
}

@media(min-width:786px) {
	.hd_game_period[lang="en"]>span.title {
		font-size: 16px;
		width: auto;
	}
}

/*************
共通ゲームheader（白）
*************/
.hd_white {
	position: absolute;
	top: 0;
	min-width: 100px;
	width: 25%;
	z-index: 200;
	height: 32px;
	background-color: #FFF;
	transform: translateX(-50%);
	left: 50%;
}

.hd_white::before,
.hd_white::after {
	content: "";
	position: absolute;
	background-color: #FFF;
	z-index: -1;
	width: 10px;
	height: 32px;
	top: 0;
}

.hd_white::before {
	transform: skewX(14deg);
	left: -5px;
}

.hd_white::after {
	transform: skewX(-14deg);
	right: -5px;
}

/* ゲーム中 */
.hd_game_time_control {
	display: flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
}

.hd_game_time {
	font-size: 10px;
	margin-right: 4px;
}

.hd_game_time span {
	color: var(--primary-color);
	font-weight: bold;
	font-size: 14px;
}

.control_btn {
	width: 20px;
	height: 20px;
	background-size: cover;
	cursor: pointer;
	border-radius: 100%;
}
.control_btn_pause {
	background-image: url(../images/icon_pause.svg);
}
.control_btn_start {
	background-image: url(../images/icon_start.svg);
}
.control_btn_blink {
	animation: cont-btn-blink-anime 1.2s ease 0s infinite;
}
@keyframes cont-btn-blink-anime {
	0% {
		transform: scale(1);
	}
	10% {
		transform: scale(1.7);
	}
	20% {
		transform: scale(1);
	}
	30% {
		transform: scale(1.7);
	}
	40% {
		transform: scale(1);
	}
}
.relative_wrap {
	position: relative;
}
.tool_tip {
	position: absolute;
	font-size: 12px;
	width: max-content;
	background-color: var(--corporate-yellow);
	color: var(--text-color);
	top: 50%;
	left: calc(100% + 10px);
	transform: translateY(-50%);
	padding: 8px;
	font-weight: bold;
	border-radius: 5px;
	z-index: 2;
	box-shadow: 0 3px 3px rgba(0,0,0,0.15);
	display: none;
	line-height: 1.3;
}
.tool_tip::before {
	content: "";
	height: 0;
	width: 0;
	border-right: 8px solid var(--corporate-yellow);
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	position: absolute;
	left: -7px;
	top: 50%;
	transform: translateY(-50%);
}
.tool_tip.show {
	display: block;
}
@media(min-width:480px) {
	.tool_tip {
		font-size: 16px;
		padding: 8px 16px;
		border-radius: 8px;
	}
}
/* 取引終了 */
.hd_game_end {
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	color: var(--primary-color);
	position: fixed;
	margin-top: 36px;
}

.hd_game_end p {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	text-align: center;
}

@media(min-width:480px) {
	.hd_white {
		height: 52px;
		width: 30%;
		max-width: 288px;
	}

	.hd_white::before,
	.hd_white::after {
		height: 51px;
	}

	.hd_white::before {
		transform: skewX(9deg);
	}

	.hd_white::after {
		transform: skewX(-9deg);
	}

	.hd_game_time {
		font-size: 14px;
		margin-right: 8px;
	}

	.hd_game_time span {
		font-size: 24px;
	}

	.control_btn {
		width: 32px;
		height: 32px;
	}

	.hd_game_end {
		margin-top: 52px;
	}

	.hd_game_end {
		font-size: 18px;
	}
}

/*************
共通
*************/
/* ヘッダー分コンテンツ下げ */
main {
	margin-top: 36px;
}

/* ゲームヘッダー込コンテンツ下げ */
main.on_game {
	margin-top: 68px;
}

@media(min-width:480px) {
	main {
		margin-top: 52px;
	}

	main.on_game {
		margin-top: 104px;
	}
}

/* 赤ボタン */
.red_btn {
	display: block;
	background-color: var(--primary-color);
	color: #FFF;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	padding: 11px;
	line-height: 1;
	border-radius: 8px;
	width: 240px;
	margin: 0 auto;
	transition: all 0.2s;
}

@media(min-width:480px) {
	.red_btn:hover {
		background-color: #c72631;
	}
}

/* 赤字 */
.deficit {
	color: var(--secondary-color);
}

/* 黒字 */
.surplus {
	color: var(--primary-color);
}

/* TOPに戻るボタン */
.pagetop_btn {
	display: block;
	background-color: #707F89;
	color: #FFF;
	font-size: 16px;
	font-weight: bold;
	text-align: center;
	padding: 11px;
	line-height: 1;
	border-radius: 32px;
	width: 168px;
	margin: 0 auto;
	transition: all 0.2s;
}

@media(min-width:480px) {
	.pagetop_btn:hover {
		background-color: #98A6B5;
	}
}

/* ボリュームボタン */
html[data-theme='dark'] .volume {
	width: 32px;
	height: 20px;
	background-image: url("../images/volume_on_dark.svg");
	background-repeat: no-repeat;
	transition: all 0.3s;
	cursor: pointer;
}

html[data-theme='dark'] .volume.change {
	background-image: url("../images/volume_off_dark.svg");
}

html[data-theme='light'] .volume {
	width: 32px;
	height: 20px;
	background-image: url("../images/volume_on_light.svg");
	background-repeat: no-repeat;
	transition: all 0.3s;
	cursor: pointer;
}

html[data-theme='light'] .volume.change {
	background-image: url("../images/volume_off_light.svg");
}