html {
	touch-action: manipulation;
}

body {
	background-color: #151616;
	color: #f2f2f2;
	padding-top: 56px;
}

/* ゲーム内要素の選択無効 */
.game-content {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* 配置 */
.side-content {
	display: flex;
	flex-direction: column;
}

.side-content .controller {
	height: 300px;
	margin: 10px 0;
}

.left-content .controller {
	width: fit-content;
	padding-right: 10%;
}

.right-content .controller {
	padding-left: 10%;
}

.right-content .buttons {
	min-width: 150px;
	width: 50%;
}

/* 音量メニュー */
main {
	position: relative;
}
.sound-menu {
	background-color: #1d1d1d;
	width: 350px;
	height: calc(100% - 56px);
	position: fixed;
	top: 56px;
	right: 0;
	z-index: 805;
}
.sound-menu .form-check-input {
	width: 40px;
	height: 20px;
}

.volume-menu {
	background-color: #000;
	height: calc(100% - 92px);
	overflow-y: auto;
	overscroll-behavior: none;
}
.volume-menu input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(90deg, #f2f2f2 50%, #333 50%);
	height: 9px;
	border: solid 1px #c3c3c3;
	border-radius: 2px;
}
.volume-menu input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	cursor: pointer;
	user-select: none;
	background: #fff;
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

.mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	opacity: 0.7;
	z-index: 801;
}

/* 団員版、体験版音量メニュー */
.trial-page .sound-menu .bgm > div,
.trial-page .sound-menu .se > div,
.members-page .sound-menu .bgm > div,
.members-page .sound-menu .se > div {
	margin: 20px 0;
}
.trial-page .sound-menu .close-btn,
.members-page .sound-menu .close-btn {
	margin: 50px;
}
.trial-page .volume-menu,
.members-page .volume-menu {
	height: calc(100% - 56px);
}

/* ヒントメニュー */
.hint-menu {
	background-color: #1d1d1d;
	width: 100%;
	height: auto;
	position: absolute;
	top: 56px;
	right: 0;
	z-index: 803;
}

.hint-menu-content {
	width: 45%;
}

#selectHint {
	font-size: 20px;
	padding: 2px 10px;
	margin: 1rem 0;
	width: 100px;
}

.hint-title {
	font-size: 24px;
}
.carousel-indicators {
	margin-bottom: -2rem;
}
.carousel-inner {
	margin-bottom: 3rem;
}
.carousel-control-next,
.carousel-control-prev {
	margin: 0 -5rem;
}

/* 団員ヒント */
.hint-menu.members-hint {
	top: 6px;
}

.members-hint #selectHint {
	width: 300px;
}
.members-hint .carousel-indicators {
	margin-bottom: -4rem;
}

/* ボタン装飾 */
.sound-menu-btn,
.hint-menu-btn,
.manual-menu-btn,
.leave-menu-btn {
	background-size: cover;
	background-repeat: no-repeat;
	width: 35px;
	height: 35px;
	border: none;
	border-radius: 10%;
}
.sound-menu-btn {
	background-image: url(/assets/game-ui/sound.png);
}
.hint-menu-btn {
	background-image: url(/assets/game-ui/hint.png);
}
.manual-menu-btn {
	background-image: url(/assets/game-ui/manual.png);
}
.leave-menu-btn {
	background-image: url(/assets/game-ui/leave.png);
}
.sound-menu-btn.active,
.hint-menu-btn.active,
.manual-menu-btn.active,
.leave-menu-btn.active {
	background-image: url(/assets/game-ui/closemenu.png);
}

.close-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fff;
	font-size: 24px;
	width: 140px;
	height: 40px;
	border: none;
	border-radius: 20px;
}
.hint-menu-content .close-btn {
	margin-top: 0;
}
.members-hint .hint-menu-content .close-btn {
	margin-top: 6rem;
	margin-bottom: 2rem;
}

.btn-left-controller,
.btn-right-controller {
	border: none;
	padding: 0px;
	width: 70px;
	height: 70px;
	background-size: cover;
	background-color: transparent;
	position: relative;
	display: inline;
}

.button-action {
	background-image: url("/assets/game-ui/button01.png");
	background-position: center left;
}
.button-action:active {
	background-image: url("/assets/game-ui/button01.png");
	background-position: center right;
}

.button-reset {
	background-image: url("/assets/game-ui/button02.png");
	background-position: center left;
}
.button-reset:active {
	background-image: url("/assets/game-ui/button02.png");
	background-position: center right;
}

.button-fire {
	background-image: url("/assets/game-ui/button03.png");
	background-position: center right;
	opacity: 0;
	margin-left: 0.6rem;
}
.button-fire.active {
	background-image: url("/assets/game-ui/button03.png");
	background-position: center left;
	opacity: 1;
}
.button-fire.active:active {
	background-image: url("/assets/game-ui/button03.png");
	background-position: center right;
}

/* キャラクター選択ボタン */
.character-package {
	width: 0px;
	height: 50px;
	background-image: url(/assets/game-ui/background-character.png);
	background-repeat: no-repeat;
	display: flex !important;
	align-items: center;
	transition: all 0.5s;
	transform: scaleX(0);
	transform-origin: center left;
	background-size: 0px 50px;
}
.character-package.active {
	width: 200px;
	transition: 0.5s;
	transform: scaleX(1);
	background-size: 200px 50px;
}

.character-btn {
	cursor: pointer;
}

.character {
	display: none;
	border: none;
	width: 35px;
	height: 35px;
	background-size: 100%;
	background-repeat: no-repeat;
	background-color: transparent;
}
.character-package.active .character {
	display: block;
}

.character.btn-primary:hover {
	background-color: transparent;
}
.character.btn-primary.active {
	background-color: transparent;
	box-shadow: 0 0 0 0.15rem #db1a2d !important;
	border: none;
}
/*
他キャラクタ選択中を表示する場合
.character.btn-primary.otherActive {
    background-color: transparent;
    box-shadow: 0 0 0 0.25rem blue !important;
}
*/

.myCharacterButton {
	background-color: transparent;
	border: 2px dashed #db1a2d;
}

.btn-change-character-1 {
	background-image: url("/assets/game-ui/01.png");
}
.btn-change-character-2 {
	background-image: url("/assets/game-ui/02.png");
}
.btn-change-character-3 {
	background-image: url("/assets/game-ui/03.png");
}
.btn-change-character-4 {
	background-image: url("/assets/game-ui/04.png");
}
.moveController {
	cursor: pointer;
}

.select-alert {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 550px;
	height: 275px;
	background-color: #fff;
	border-radius: 10px;
	z-index: 3;
}

.select-alert.active {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.select-alert-text {
	font-size: 28px;
	font-weight: bold;
	color: #000;
	text-align: center;
	margin-bottom: 40px;
}

.select-alert-buttons {
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 350px;
}

.select-alert-buttons button {
	min-width: 150px;
	height: 50px;
	font-size: 24px;
	font-weight: bold;
}

.select-alert-mask {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	opacity: 0.7;
	z-index: 2;
}

.select-alert-mask.active {
	display: block;
}

/*ハンバーガーメニュー*/
.navbar {
	height: 56px;
	z-index: 800;
}

.navbar-dark .navbar-toggler-icon {
	background-image: url(/assets/game-ui/menu.png);
	overflow: hidden;
	outline: none;
}
button[aria-expanded="true"] > span {
	position: relative;
	display: none;
}
button[aria-expanded="true"]::after {
	position: absolute;
	top: -0.5rem;
	right: 0.4rem;
	content: url(/assets/game-ui/closemenu.png);
	transform: scale(0.5);
	overflow: hidden;
	outline: none;
}
.container-fluid {
	background-color: #444;
}
.navbar-brand {
	margin-right: auto;
}

/*アラート*/
.alert-container {
	width: 480px;
	position: fixed;
	z-index: 803;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
}

.alert-container .info {
	margin: 1rem 0;
}

.alert-light {
	padding-top: 3rem;
	padding-right: 1rem;
	padding-bottom: 3rem;
}

.modal-fullscreen {
	height: auto;
	width: 100%;
}
.btn-close {
	padding: 1rem;
}
.menu-btns {
	float: left;
}

/* モーダル共通 */
.game-modal {
	position: fixed;
	width: 90%;
	height: auto;
	max-width: 600px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	color: #333;
	font-size: 22px;
	font-weight: bold;
	padding: 30px;
	border-radius: 10px;
	z-index: 2000;
}

.game-modal p {
	margin-bottom: 1rem;
}

.game-modal.modal .modal-dialog {
	transform: none;
	max-width: none;
	margin: 0;
}

.game-modal .modal-content {
	border: none;
}

.game-modal .modal-body {
	padding: 0;
	margin-bottom: 1.5rem;
}

.game-modal button {
	margin: 0 20px;
	width: 170px;
	height: 50px;
	font-size: 22px;
	font-weight: bold;
}

/* 中断完了モーダル */
#leaveComplete button[type="submit"] {
	width: 130px;
	height: 50px;
	font-size: 24px;
	font-weight: bold;
}

.room-code input {
	width: 150px;
	margin-right: 15px;
}

.room-code input:focus-visible {
	outline: none;
}

.room-code button {
	display: flex;
	align-items: center;
	background: #333;
	color: #fff;
	font-size: 18px;
	font-weight: normal;
	width: auto;
	height: 36px;
	margin: 0;
	padding: 0 15px;
	border: none;
}

.copy-alert {
	height: 40px;
	align-items: center;
}

@media screen and (max-width: 992px) {
	body {
		padding-top: 50px;
	}

	.navbar {
		height: 51px;
	}

	.navbar a {
		font-size: 1rem;
	}

	.navbar .navbar-toggler {
		padding: 0.1rem 0.2rem;
	}

	.sound-menu {
		height: calc(100% - 51px);
		top: 51px;
	}
	.hint-menu {
		top: 51px;
	}
	.sound-menu-btn,
	.hint-menu-btn,
	.manual-menu-btn,
	.leave-menu-btn {
		width: 32px;
		height: 32px;
	}

	.hint-menu-content {
		width: 85%;
	}

	#selectHint {
		margin: 16px 0;
	}

	.side-content {
		padding-top: 10px;
	}

	.moveController {
		width: calc(45px * 3);
		height: calc(45px * 3);
	}

	.btn-right-controller {
		width: 60px;
		height: 60px;
	}

	.right-content .buttons {
		min-width: 125px;
	}

	.side-content .controller {
		height: auto;
	}

	.select-alert {
		max-width: 400px;
		height: 200px;
	}

	.select-alert-text {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.select-alert-buttons {
		max-width: 330px;
	}
	.select-alert-buttons button {
		font-size: 18px;
		height: 40px;
	}
}

@media (orientation: portrait) and (max-width: 576px) {
	.mid-content.order-1 {
		padding: 0;
	}

	.mid-content,
	.side-content,
	.header,
	.room-name {
		padding: 0 20px;
	}

	.sound-menu {
		right: 50%;
		transform: translateX(50%);
	}
	.carousel-control-next,
	.carousel-control-prev {
		margin: 0 -1rem;
	}

	/*ハンバーガーメニュー*/
	.sound-menu-btn,
	.hint-menu-btn,
	.manual-menu-btn,
	.leave-menu-btn {
		width: 55px;
		height: 55px;
		margin: 1rem 4rem;
	}

	/*アラート*/
	.alert-container {
		width: 360px;
		height: auto;
		top: 50%;
	}

	.select-alert-buttons {
		flex-direction: column;
		align-items: center;
	}

	.select-alert-buttons button:first-of-type {
		margin-bottom: 10px;
	}

	/* モーダル共通 */
	.game-modal {
		font-size: 18px;
	}

	.game-modal .modal-body {
		margin-bottom: 1rem;
	}

	.game-modal button {
		font-size: 18px;
		width: 150px;
		height: 40px;
	}
	/*ボタン*/
	.button-action {
		margin-left: -0.25rem;
	}
}

@media (orientation: landscape) and (max-width: 992px) {
	.hint-menu {
		height: auto;
	}
	.hint-menu .carousel-control-next {
		right: 40px;
	}
	.hint-menu .carousel-control-prev {
		left: 40px;
	}
}

@media (orientation: landscape) and (max-width: 844px) {
	.mid-content > div {
		width: 75%;
		margin: auto;
	}

	.character {
		width: 30px;
		height: 30px;
	}

	.character-package.active {
		width: 180px;
		background-size: 180px 50px;
	}

	.alert-container {
		position: absolute;
		top: 0;
		transform: translateX(-50%);
	}
	.alert-container .alert {
		margin-bottom: 30px;
	}
}

#warpModal .modal-header {
	background-color: #151616;
	color: #f2f2f2;
}

#warpModal .modal-body {
	color: #151616;
}

#warpModal .warp {
	width: 50px;
	margin: 0.2rem;
	display: inline-block;
}

#warpModal .warp label {
	width: 100%;
}

#playWrap {
	padding-top: 50px;
}

#playWrap .menuSpacer {
	width: 35px;
}
@media screen and (max-width: 992px) {
	#playWrap .menuSpacer {
		width: 55px;
		display: inline-block;
		margin: 1rem 0 1rem 4rem;
	}
}
