/* style.css */
/* Bootstrapをベース */

body{font-size: 1.25em;}
.container{max-width:720px;}
/* detail：プレーンテキストの改行(\n)も反映しつつ、HTMLタグも利用可 */
.detail {white-space: pre-line; line-height: 1.8;}

/* 画像・表・コードなどを見やすく */
.detail img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 8px 0 12px;
}
.detail figure { margin: 12px 0; }
.detail figcaption { color: #6c757d; font-size: 0.9rem; margin-top: 4px; }
.detail pre {
	overflow: auto;
	padding: 12px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: .5rem;
}
.detail table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.detail th, .detail td { border: 1px solid #e9ecef; padding: 6px 8px; text-align: left; }

h1{
	font-size: 1.5rem;
	padding: 0.5em 0;
	margin-bottom: 0;
	color: white;
	background-color: #0e0080;
	text-align:center;
	color:white;
}

h2{
	font-size: 1.5rem;
	line-height: 2rem;
	margin: 1rem 0;
	color:white !important;
	background-color: royalblue !important;;
	padding: 0.5em;
	border-top: double 8px white;
	border-bottom: double 8px white;
}

h3 {
	font-size: 1.6rem;
	line-height: 1.4em;
	font-weight: bold;
	margin-bottom: 0.5em;
}

h4 {color: red !important;}

li{list-style:none;}

.text {
	margin: 0.5rem;
	font-size: 1em;
	line-height: 2rem;
}

/* 危険度カラー */
.A{background-color:#FFC800; color:white;}/* オレンジ */
.B{background-color:#C36A4B; color:white;}/* ブラウン */
.C{background-color:#E53C56; color:white;}/* レッド */
.D{background-color:#B97BE0; color:white;}/* パープル */

/* チェックボックスを大きく */
.form-check-input{width:1.5em !important; height:1.5em !important;}

/* チェックリスト行の text(HTML) を見やすく */
.list-group-item .item-text h4 {margin: 0.25rem 0; line-height: 1.4;}
.list-group-item .item-text p {margin: 0.25rem 0;}

.list-group-item{padding:1em !important;}

/* 追加：結果カードのヘッダー内の見出し余白 */
.card-header{color:white;}
.card-header h4 {margin: 0; line-height: 1.4;}

/* ===== スコアカード（0=オレンジ → 100=パープルのグラデーション） ===== */
.score-card .score-bar-wrap{
	position: relative;
	width: 100%;
	height: 22px;
	border-radius: 9999px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
	background: linear-gradient(90deg,#FFC800 0%, #C36A4B 33%, #E53C56 66%, #B97BE0 100%);
}
.score-card .score-mask{
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 100%;
	background: rgba(255,255,255,.86);
	backdrop-filter: saturate(0.6) brightness(1.05);
	transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.score-card .score-dot{
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 10px; height: 10px;
	border-radius: 50%;
	background: #4a4a4a;
	box-shadow: 0 0 0 3px rgba(255,255,255,.75);
	transition: left .9s cubic-bezier(.2,.8,.2,1);
}
.score-card .score-badge{
	position: absolute;
	top: -38px;
	transform: translateX(-50%);
	padding: 4px 10px;
	font-weight: 700;
	font-size: .9rem;
	border-radius: 9999px;
	background: #ffffff;
	border: 1px solid #e9ecef;
	box-shadow: 0 6px 14px rgba(0,0,0,.08);
	transition: left .9s cubic-bezier(.2,.8,.2,1);
	white-space: nowrap;
}
.score-card .tick-row{
	display: flex;
	justify-content: space-between;
	font-size: .85rem;
	color: #6c757d;
}
