/**
 * ドライバー応援ツール 共通スタイル
 * 全ツール共通（プロフェッショナル × 信頼感のディープブルー基調）
 */

/* ========================================
   フォーム関連
   ======================================== */
.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: #1E5A8A;
}

.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: #1E5A8A;
	flex-shrink: 0;
}

.section-icon--info {
	background: #1E5A8A;
}

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

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

.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, #1E5A8A 0%, #134262 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);
}

/* ========================================
   判定バッジ（信号色の3段階）
   ======================================== */
.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: #E89A3C;
}

.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: #E89A3C;
}

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

.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;
}

/* ========================================
   タブ切替
   ======================================== */
.tab-bar {
	display: flex;
	gap: 4px;
	background: #F4F4F2;
	padding: 4px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.tab-button {
	flex: 1;
	padding: 10px 8px;
	border: none;
	background: transparent;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-secondary);
	border-radius: 7px;
	cursor: pointer;
	transition: all 0.18s ease;
}

.tab-button--active {
	background: #FFFFFF;
	color: #1E5A8A;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-button:not(.tab-button--active):hover {
	color: var(--color-text);
}

/* ========================================
   告示根拠リファレンス（小さめのテキスト）
   ======================================== */
.reference-note {
	margin-top: 14px;
	padding: 10px 12px;
	background: #F7F6F2;
	border-left: 3px solid #1E5A8A;
	border-radius: 4px;
	font-size: 12px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

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

/* ========================================
   注意事項（YMYL対策）
   ======================================== */
.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;
}

/* ========================================
   ボタン
   ======================================== */
.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: #1E5A8A;
	color: #FFFFFF;
}

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

.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: #1E5A8A;
}

.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, #1E5A8A 0%, #134262 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;
}

/* ========================================
   ドライバー転職アフィリエイトカード
   ======================================== */
.driver-affiliate-section {
	margin-top: 24px;
}

.driver-affiliate-card {
	position: relative;
	background: linear-gradient(180deg, #F7FAFC 0%, #FFFFFF 60%);
	border: 1px solid #C8D8E4;
	border-radius: 14px;
	padding: 22px 22px 18px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(30, 90, 138, 0.08);
}

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

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

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

.driver-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;
}

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

.driver-affiliate-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px 20px;
	background: linear-gradient(135deg, #1E5A8A 0%, #2A7BA8 100%);
	color: #FFFFFF !important;
	border-radius: 10px;
	font-family: var(--font-display);
	font-size: 15.5px;
	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(30, 90, 138, 0.30);
}

.driver-affiliate-cta:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(30, 90, 138, 0.40);
	text-decoration: none;
	color: #FFFFFF !important;
}

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

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

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