body {
	width: 100%;
	max-width: 1024px;
	height: 100vh;
	margin-left:auto;
	margin-right:auto;
	margin-top:auto;
	margin-bottom:auto;
	font-family: Arial, sans-serif;
	padding: 0;
	background-color: #f7fafc;
	color: #2d3748;
	overflow: hidden;
}
:root {
	--primary: #38a169; /* 緑系 */
	--secondary: #2c5282; /* 青系 */
	--bg-dark: #1a202c; /* ダークモードの背景色 */
}

/* 画面全体を覆うコンテナ */
.view-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	
	/*初期状態は非表示*/
	display: none;
	
	justify-content: center;
	align-items: center;
	flex-direction: column;
	text-align: center;
}

/*待機画面のスタイル*/
#standby-view {
	background-color: #FFFFFF; /*背景色：白（初期化）*/
	color: white;
	cursor: pointer;
	position: relative; /*スライドショー用*/
	overflow: hidden;
	object-fit: cover;
}

	/*待機画面　動画*/
#standby-media {
	position: absolute;
	top: 0;
	left: 0;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	z-index: 1; /* 背景として機能させる */
	object-fit: cover;
}

	/*待機画面のテキストを最前面に
	動画にする場合、このスタイルは不要*/
.standby-content {
	z-index: 10;
	position: relative;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

#standby-view h1 {
	font-size: 4em; /* サイズアップ */
	margin-bottom: 20px;
}

	/*スライドショーのスタイル*/
.slideshow-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.5s ease-in-out; /*フェード効果*/
}
.slideshow-image.active {
	opacity: 1;
}

/*アンケート画面のスタイル*/
#survey_view {
	windth: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 5px;
	background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
	background-image: url(./Images/background.png);
	transition: opacity 0.3s ease;
	position: relative;
	z-index: 10; /*カメラより手前に表示*/
}

.survey-container {
	width: 90%;
	padding: 5px;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	text-align: left;
}
.survey-header h1 {
	width:75%;
	padding-top:5px;
	padding-bottom:0px;
	margin-left:auto;
	margin-right:auto;
}
.form-group {
	margin: 0 auto;
	align-items: center;
	gap: 10px;
}
.form-row {
	display: flex;
	align-items: center;
}

.form-row label {
	margin-right: 10px;
}

.form-icon {
	height: 64px;
	display: inline-block;
	margin-right: 10px;
}

.radio-heading{
	display:flex;
	align-items:center;
	margin-bottom:10px;
}

.radio-icon{
	height: 40px;
	display: inline-block;
	vertical-align:center;
}

.radio-group{
	display:flex;
	gap: 20px;
}

.radio-group .radio-label{
	display: flex;
	align-items: center;
	cursor:pointer;
}

.radio-group input[type="radio"]{
	/* ブラウザのデフォルトの見た目をリセット */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	position: relative;
	top: -2px;

	/* ラジオボタンのサイズを大きく設定 */
	width: 24px;
	height: 24px;

	/* 外側の円（枠線）のデザイン */
	border: 2px solid #333; /* 枠線の色と太さ */
	border-radius: 50%; /* 円形にする */
	margin-right: 10px; /* アイコンとの間隔 */

	/* 中央の黒い点（チェックマーク）の配置を制御 */
	display: grid;
	place-content: center;

	/* チェックされていないときは中央の点を隠す */
	transition: background-color 0.2s;
}

	/* チェックされたときのデザイン */
.radio-group input[type="radio"]:checked {
	border-color: #20603E;
	background-color: #20603E;
}

	/*ラジオボタンカテゴリを全て横並びにする*/
.form-inline-container {
	display: flex;
	align-items: center;
	gap: 30px;
}

	/*インプット枠*/
.form-row input {
	width: 70%;
	padding: 12px 15px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 32px;
	transition: border-color 0.3s;
	justify-self: center;
	line-height: 1;
}
.form-group input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-group input::placeholder{
	color: #CCDDCC;
	opacity:1;
}

.submit-btn {
	background-color: var(--primary);
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
	font-size: 1.2em;
}

	/*アンケート画面のずんだもんアニメーション画像用*/
#char-animation {
	position: absolute;
	bottom: 0px;
	right: 0px;
	width: 200px;
	height: auto;
	z-index: 1000;
	cursor: pointer;
}


	/*アンケート画面用ポップアップ*/
#input-popup {
	position: absolute; 
	padding: 8px 15px; 
	border-radius: 5px; 
	font-size: 14px;
	z-index: 9999;
	display: none; 
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

#input-popup >span{
	display: flex;
	align-items: center;
	gap: 8px;
}

#input-popup img {
	width:320px;
	height:127px;
}

/* ありがとう画面のスタイル */
#thank-you-view {
	background-color: #fff;
	background-image: url(./Images/background.png);
}
/*
	#thank-you-view .message-box {
		background-color: #e6fffa;
		color: #2c7a7b;
		padding: 50px;
		border-radius: 8px;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	}
*/
#thank-you-view h2 {
	font-size: 2.5em;
	margin-bottom: 10px;
}

/*管理者画面のスタイル*/
#admin-view {
	background-color: var(--bg-dark);
	color: white;
	padding: 20px;
	align-items: flex-start;
}
#admin-view .admin-header {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
#admin-view .admin-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
	width: 100%;
	max-width: 1200px;
}

/*カメラコンテナを最背面に隠すためのスタイル*/
.camera-hidden {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -100; /*他の要素の背後で隠す*/
	opacity: 0;
	pointer-events: none; /*クリックやタッチを無効化*/
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/*管理者画面でのカメラ表示スタイル*/
.video-wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 4/3;
}
#webcam, #canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.mode-toggle {
	position: fixed;
	top: 0px;
	right: 0px;
	z-index: 999;
	border:none;
	background:none;
	padding:0;
	cursor:pointer;
}
.btn-secondary {
	padding: 10px 20px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
}
	
/*画面右下に表示するインジケーター「●」のスタイル*/
#detection-indicator {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: transparent;
	transition: background-color 0.3s;
	z-index: 9999;   /* 他の要素より手前に表示 */
}

/* 通常の検出時の色 */
.detected {
	background-color: #48bb78; /* 緑色の● */
}

/* 3秒以上滞在時の色 */
.long-stay {
	background-color: #f56565 !important; /* 赤色の● */
}
	font-size: 2em; /* サイズアップ */
	
/*　キャッシュインジケーター */
#caching-indicator {
	display: none; 
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	position: fixed; 
	top: 0; left: 0; 
	width: 100%; 
	height: 100%; 
	background: rgba(0, 0, 0, 0.7); 
	color: white; 
	z-index: 9999; 
	text-align: center;
	padding-top: 30vh;
}

.loader {
	border: 8px solid #f3f3f3;
	border-top: 8px solid #3498db;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}