body,
html {
	margin: 0;
	padding: 0;
	overflow: hidden;

}

#videoBlock {
	padding-top: 10%;
	width: 100svw;
	height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: linear-gradient(to right, #00a0e9, #0076c3);
}

.logo {
	margin: 0 auto;
	width: 130px;
}

.logo img {
	width: 100%;
}

.infoArea {
	margin-top: 10px;
	width: 90%;
	color: #828282;
	background-color: #d9d9da;
	display: grid;
	place-items: center;
	border-radius: 1000px;
	font-size: 14px;
	height: 28px;
}

.canvasContainer {
	width: 90%;
	height: calc(80% - 61px - 10px - 28px - 16px);
	margin: 16px auto 0;
	border-radius: 10px;
	background-color: #000;
	display: flex;
	justify-content: center;
	align-items: center;
}

canvas {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

#initLoadingBlock {
	width: 100svw;
	height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eee;
}

.loadingMessage {
	display: flex;
	justify-content: center;
	align-items: center;
}

.loadingImg {
	width: 1.5em;
	height: 1.5em;
	padding-right: 0.5em;
}

#saveBlock {
	position: fixed;
	top: 0;
	left: 0;
	width: 100svw;
	height: 100svh;
	background: linear-gradient(to right, #00a0e9, #0076c3);
}

#saveBlockInner {
	padding-top: 10%;
	display: flex;
	height: 100svh;
	flex-direction: column;
	align-items: center;
}

.infoArea--save {
	color: #fff33f;
	background-color: #005293;
}

.outputArea {
	width: 90%;
	height: calc(80% - 61px - 10px - 28px - 16px);
	margin: 16px auto 0;
	border-radius: 10px;
	background-color: #000;
	display: flex;
	justify-content: center;
	align-items: center;
}

.outputArea img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.controlArea {
	width: 90%;
	padding-top: 10px;
	box-sizing: border-box;
}

.controlRow {
	display: flex;
	justify-content: space-between;
	/* ���E�ɕ����� */
	align-items: center;
}

#backCamera {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 4px;
	align-items: center;
	padding: 0 12px;
	height: 28px;
	border-radius: 1000px;
	background-color: #fff;
	border: none;
}

#backCamera .camera-icon {
	display: block;
	width: 100%;
}

#backCamera .camera-icon img {
	display: block;
	width: 100%;
}

#backCamera .camera-text {
	font-size: 14px;
	color: #007bc7;
	font-weight: 700;
}

#downloadLink .download-icon {
	display: block;
	width: 100%;
}

#downloadLink {
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 4px;
	align-items: center;
	padding: 0 12px;
	height: 28px;
	border-radius: 1000px;
	border: none;
	outline: 1px solid #fff;
	outline-offset: -1px;
	box-sizing: border-box;
}

#downloadLink .download-icon img {
	display: block;
	width: 100%;
}

#downloadLink .download-text {
	font-size: 14px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

#install-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
	padding: 12px 20px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: background-color 0.2s;
}

#install-btn:hover {
	background-color: #0056b3;
}

/* 画面が横向き（landscape）の場合のスタイル */
@media (orientation: landscape) {

	#videoBlock,
	#saveBlockInner {
		display: grid;
		grid-template-columns: 1fr 110px;
		grid-template-rows: 28px 1fr;
		gap: 24px 24px;
		padding: 24px 24px 24px 40px;
		box-sizing: border-box;
		overflow: hidden;
		align-items: flex-start;
	}

	.logo {
		width: 100%;
		margin: 0;
		grid-column: 2 / 3;
		grid-row: 1 / 3;
	}

	.infoArea {
		margin-top: 0;
		width: 100%;
		text-align: center;
		grid-column: 1 / 2;
		grid-row: 1 / 2;
	}

	.canvasContainer,
	.outputArea {
		width: 100%;
		height: 100%;
		margin: 0;
		grid-column: 1 / 2;
		grid-row: 2 / 3;
		position: relative;
		/* 子要素の絶対位置の基準にする */
	}

	canvas {
		/* 中央揃えとcontainの挙動を実現 */
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-width: 100%;
		max-height: 100%;
	}

	.controlArea {
		position: absolute;
		bottom: 24px;
		right: 24px;
		width: 110px;
		padding: 0;
	}

	.controlRow {
		flex-direction: column;
		gap: 12px;
	}

	#backCamera,
	#downloadLink {
		grid-template-columns: 1fr;
		grid-template-rows: 18px 1fr;
		gap: 4px;
		align-items: center;
		padding: 12px;
		width: 100%;
		height: auto;
		border-radius: 10px;
	}

	#downloadLink {
		background: linear-gradient(to right, #00a0e9, #0076c3);
	}

	#backCamera .camera-icon {
		margin: 0 auto;
		width: 20px;
	}

	#downloadLink .download-icon {
		width: 20px;
		margin: 0 auto;
	}

	#backCamera .camera-text,
	#downloadLink .download-text {
		text-align: center;
	}
}