/**
 * プラモデル制作支援ツール 共通スタイル
 * 全ツール共通（クラシックレッド × ダークネイビーのメカニカル基調）
 */

/* ========================================
   フォーム関連
   ======================================== */
.form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 24px;
}

.form-grid--single {
	grid-template-columns: 1fr;
}

.form-grid--three {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
	.form-grid,
	.form-grid--three {
		grid-template-columns: 1fr;
	}
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--color-text);
}

.form-input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	font-size: 16px;
	color: var(--color-text);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	transition: border-color 0.2s;
	font-family: inherit;
}

.form-input:focus {
	outline: none;
	border-color: #C0392B;
}

.form-select {
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 36px;
	appearance: none;
	-webkit-appearance: none;
}

.form-hint {
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.5;
}

.input-with-unit {
	display: flex;
	align-items: center;
	gap: 8px;
}

.input-unit {
	font-size: 14px;
	color: var(--color-text-secondary);
	flex-shrink: 0;
	min-width: 24px;
}

/* ========================================
   セクションタイトル
   ======================================== */
.section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 14px;
}

.section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #FFFFFF;
	background: #C0392B;
	flex-shrink: 0;
}

.section-icon--info {
	background: #2C3E50;
}

.section-icon--accent {
	background: #C0392B;
}

.section-icon--ok {
	background: #2E8B57;
}

.section-icon--warn {
	background: #F39C12;
}

.section-icon--ng {
	background: #C0392B;
}

/* ========================================
   入力セクション
   ======================================== */
.input-section {
	padding: 16px 20px;
}

.input-section + .input-section {
	border-top: 1px solid var(--color-border-light, #EAE7E0);
}

/* ========================================
   結果セクション（メカニカルレッド・ネイビー）
   ======================================== */
.result-section {
	padding: 28px 20px;
	background: linear-gradient(135deg, #C0392B 0%, #2C3E50 100%);
	text-align: center;
	color: #FFFFFF;
}

.result-main {
	margin-bottom: 16px;
}

.result-header {
	margin-bottom: 8px;
}

.result-label {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 4px;
}

.result-value-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.result-value {
	font-family: var(--font-display);
	font-size: 38px;
	font-weight: 800;
	color: #FFFFFF;
	letter-spacing: 0.02em;
}

.result-unit {
	font-size: 16px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   判定バッジ
   ======================================== */
.judgment-badge {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #FFFFFF;
}

.judgment-badge--ok {
	background: #2E8B57;
}

.judgment-badge--warn {
	background: #F39C12;
}

.judgment-badge--ng {
	background: #C0392B;
}

.judgment-summary {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.7;
	margin-top: 10px;
}

/* ========================================
   詳細セクション
   ======================================== */
.detail-section {
	padding: 16px 20px;
	border-top: 1px solid var(--color-border-light, #EAE7E0);
}

/* ========================================
   詳細チェック項目リスト
   ======================================== */
.check-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.check-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid var(--color-border-light, #EAE7E0);
	background: #FFFFFF;
}

.check-item--ok {
	background: #F0F8F2;
	border-color: #C5E2CD;
}

.check-item--warn {
	background: #FFF8EC;
	border-color: #F5DEAA;
}

.check-item--ng {
	background: #FCEFEC;
	border-color: #F0C4BD;
}

.check-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	margin-top: 2px;
}

.check-icon--ok {
	background: #2E8B57;
}

.check-icon--warn {
	background: #F39C12;
}

.check-icon--ng {
	background: #C0392B;
}

.check-icon--info {
	background: #2C3E50;
}

.check-body {
	flex: 1;
	min-width: 0;
}

.check-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 4px;
}

.check-detail {
	font-size: 13px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

/* ========================================
   告示根拠リファレンス
   ======================================== */
.reference-note {
	margin-top: 14px;
	padding: 10px 12px;
	background: #F4F2F0;
	border-left: 3px solid #C0392B;
	border-radius: 4px;
	font-size: 12px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.reference-note strong {
	color: var(--color-text);
}

/* ========================================
   注意事項（安全配慮）
   ======================================== */
.disclaimer {
	margin-top: 18px;
	padding: 12px 14px;
	background: #FFF8EC;
	border: 1px solid #F5DEAA;
	border-radius: 8px;
	font-size: 12.5px;
	color: #6B5520;
	line-height: 1.7;
}

.disclaimer strong {
	color: #5A4419;
}

.safety-warning {
	margin-top: 14px;
	padding: 12px 14px;
	background: #FCEFEC;
	border: 1px solid #F0C4BD;
	border-radius: 8px;
	font-size: 12.5px;
	color: #8B2818;
	line-height: 1.7;
}

.safety-warning strong {
	color: #6B1F12;
}

/* ========================================
   ボタン
   ======================================== */
.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	border: none;
	border-radius: 8px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.18s ease;
}

.action-btn--primary {
	background: #C0392B;
	color: #FFFFFF;
}

.action-btn--primary:hover {
	background: #A02C20;
}

.action-btn--secondary {
	background: #F4F4F2;
	color: var(--color-text);
}

.action-btn--secondary:hover {
	background: #E9E9E6;
}

/* ========================================
   関連ツール
   ======================================== */
.related-tools-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.related-tools-item {
	margin: 0;
}

.related-tools-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-decoration: none;
	transition: all 0.2s ease;
}

.related-tools-link:hover {
	background: var(--color-white);
	border-color: #C0392B;
}

.related-tools-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--color-white);
	background: linear-gradient(135deg, #C0392B 0%, #2C3E50 100%);
	border-radius: var(--radius);
}

.related-tools-icon--external {
	background: linear-gradient(135deg, #999 0%, #666 100%);
}

.related-tools-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.related-tools-name {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
}

.related-tools-desc {
	font-size: 12px;
	color: var(--color-text-secondary);
	line-height: 1.5;
}

/* ========================================
   プラモデル系アフィリエイトカード
   ======================================== */
.plamodel-affiliate-section {
	margin-top: 24px;
}

.plamodel-affiliate-card {
	position: relative;
	background: linear-gradient(180deg, #FFF7F5 0%, #FFFFFF 60%);
	border: 1px solid #F0C4BD;
	border-radius: 14px;
	padding: 22px 22px 18px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(192, 57, 43, 0.06);
}

.plamodel-affiliate-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #C0392B 0%, #F39C12 100%);
}

.plamodel-affiliate-pr {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-block;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 700;
	color: #C0392B;
	background: #FFEEEC;
	border: 1px solid #F0C4BD;
	border-radius: 4px;
	letter-spacing: 0.08em;
}

.plamodel-affiliate-eyebrow {
	font-size: 12px;
	color: #C0392B;
	letter-spacing: 0.04em;
	font-weight: 600;
	margin-bottom: 6px;
}

.plamodel-affiliate-headline {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	color: #2D2A26;
	line-height: 1.5;
	margin: 0 0 12px;
	padding-right: 36px;
}

.plamodel-affiliate-lead {
	font-size: 13.5px;
	line-height: 1.85;
	color: #444;
	margin: 0 0 14px;
}

.plamodel-affiliate-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 18px;
	background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
	color: #FFFFFF !important;
	border-radius: 10px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	box-shadow: 0 3px 10px rgba(192, 57, 43, 0.30);
}

.plamodel-affiliate-cta + .plamodel-affiliate-cta {
	margin-top: 10px;
	background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
	box-shadow: 0 3px 10px rgba(44, 62, 80, 0.30);
}

.plamodel-affiliate-cta:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	text-decoration: none;
	color: #FFFFFF !important;
}

.plamodel-affiliate-cta-arrow {
	font-weight: 400;
	font-size: 18px;
}

.plamodel-affiliate-disclosure {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed #F0E5E0;
	font-size: 10.5px;
	line-height: 1.6;
	color: #999;
}

@media (max-width: 600px) {
	.plamodel-affiliate-card {
		padding: 18px 16px 14px;
	}
	.plamodel-affiliate-headline {
		font-size: 15.5px;
	}
	.plamodel-affiliate-cta {
		padding: 12px 14px;
		font-size: 14px;
	}
}

/* ========================================
   塗料カップ模式図（希釈率計算機）
   ======================================== */
.paint-cup {
	position: relative;
	width: 200px;
	height: 240px;
	margin: 16px auto;
	background: linear-gradient(180deg, #F4F4F2 0%, #FFFFFF 100%);
	border: 2px solid #2C3E50;
	border-radius: 0 0 30px 30px / 0 0 80px 80px;
	overflow: hidden;
}

.paint-cup-fill {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	transition: height 0.4s ease;
}

.paint-cup-fill--paint {
	background: #C0392B;
	z-index: 2;
}

.paint-cup-fill--thinner {
	background: rgba(135, 206, 235, 0.6);
	z-index: 1;
}

.paint-cup-label {
	display: flex;
	justify-content: space-around;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text);
}

.paint-cup-label-paint {
	color: #C0392B;
}

.paint-cup-label-thinner {
	color: #2C3E50;
}

/* ========================================
   ガントチャート（乾燥スケジュール）
   ======================================== */
.gantt-chart {
	margin: 16px 0;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	overflow: hidden;
	background: #FFFFFF;
}

.gantt-row {
	display: flex;
	border-bottom: 1px solid var(--color-border-light, #EAE7E0);
}

.gantt-row:last-child {
	border-bottom: none;
}

.gantt-row-label {
	flex-shrink: 0;
	width: 140px;
	padding: 10px 12px;
	background: #F8F6F4;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--color-text);
	border-right: 1px solid var(--color-border-light, #EAE7E0);
	display: flex;
	align-items: center;
}

.gantt-row-bar-area {
	flex: 1;
	position: relative;
	height: 36px;
	background: #FAFAF8;
}

.gantt-bar {
	position: absolute;
	top: 6px;
	bottom: 6px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	padding: 0 8px;
	font-size: 11px;
	color: #FFFFFF;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
}

.gantt-bar--paint {
	background: linear-gradient(180deg, #C0392B 0%, #A02C20 100%);
}

.gantt-bar--wait {
	background: linear-gradient(180deg, #F39C12 0%, #D68910 100%);
}

.gantt-bar--final {
	background: linear-gradient(180deg, #2C3E50 0%, #1B2631 100%);
}
