/* お急ぎの方ページ */

.page-template-page-urgent #content.site-content {
	flex-direction: column;
}

/* ============================================
   ページタイトル
   ============================================ */
.urgent-page .page-section-title {
	color: #d94444;
}

/* ============================================
   緊急の場合はこちら
   ============================================ */
.urgent-emergency-section {
	background: #fef5ef;
	padding: 0 0 40px;
}

.urgent-emergency-head {
	text-align: center;
	padding: 14px 40px;
	margin: auto;
	margin-bottom: 32px;
	max-width: 400px;
}

.urgent-emergency-head-img {
	display: inline-block;
	height: auto;
	vertical-align: middle;
}

.urgent-emergency-body {
	display: flex;
	gap: 40px;
	justify-content: center;
}

.urgent-emergency-left {
	max-width: 500px;
}

.urgent-emergency-text {
	font-size: 18px;
	line-height: 1.8;
	color: #444;
	margin-bottom: 20px;
	text-align: center;
	font-weight: bold;
}

.urgent-tel-img {
	width: 100%;
	max-width: 520px;
	display: block;
}

/* 右側：チェックリスト白カード */
.urgent-emergency-right {
	max-width: 400px;

}

.urgent-checklist-label {
	font-size: 22px;
	font-weight: bold;
	color: #333;
	margin-bottom: 16px;
	line-height: 1.6;
}

.urgent-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.urgent-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	color: #333;
	line-height: 1.6;
}

.urgent-checklist li::before {
	content: '';
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 4px;
	background: #4da487 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M7.5 13.5l-3.5-3.5 1.4-1.4 2.1 2.1 5.1-5.1 1.4 1.4z'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* ============================================
   タブナビ
   ============================================ */
.urgent-tabs-wrap {
	background: #fff;
	padding: 0;
}

.urgent-tabs {
	display: flex;
	gap: 32px;
	justify-content: center;
	flex-wrap: wrap;
}

.urgent-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #c06061;
	color: #fff;
	font-size: 22px;
	font-weight: bold;
	padding: 12px 28px;
	border-radius: 40px;
	text-decoration: none;
	transition: opacity 0.2s;
}

.urgent-tab:hover {
	opacity: 0.85;
	color: #fff;
}

/* ============================================
   セクション共通
   ============================================ */
.urgent-section {
	background: #fef5ef;
	padding: 52px 0;
}

.urgent-section--alt {
	background: #fef5f0;
}

.urgent-section-title {
	font-size: 36px;
	font-weight: bold;
	color: #c06061;
	text-align: center;
	margin-bottom: 36px;
}

.urgent-section-photo {
	border-radius: 8px;
	overflow: hidden;
	max-width: 600px;
	margin: auto;
	margin-bottom: 100px;
}

.urgent-section-photo img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
	border-radius: 16px;
}

/* ============================================
   ステップカード
   ============================================ */
.urgent-steps {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	grid-template-rows: auto auto;
	row-gap: 20px;
	max-width: 1000px;
	margin: 0 auto 36px;
}

/* 明示的配置：subgrid で等高を保証 */
.urgent-steps > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.urgent-steps > :nth-child(2) { grid-column: 2; grid-row: 1; }
.urgent-steps > :nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
.urgent-steps > :nth-child(4) { grid-column: 4; grid-row: 1; }
.urgent-steps > :nth-child(5) { grid-column: 5; grid-row: 1 / span 2; }

/* 病院以外：doctor-boxes が4番目に入るため個別に配置上書き */
#non-hospital .urgent-steps > :nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
#non-hospital .urgent-steps > :nth-child(5) { grid-column: 4; grid-row: 1; }
#non-hospital .urgent-steps > :nth-child(6) { grid-column: 5; grid-row: 1 / span 2; }

.urgent-step {
	display: grid;
	grid-template-rows: subgrid;
}

.urgent-step-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
}

.urgent-step-arrow img {
	width: 44px;
	height: auto;
}

.urgent-step-header {
	background: #c06061;
	padding: 20px 20px 28px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.urgent-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: #c06061;
	font-size: 20px;
	font-weight: bold;
	font-family: "游ゴシック体", "Yu Gothic", YuGothic, sans-serif;
	flex-shrink: 0;
}

.urgent-step-title {
	font-size: 22px;
	font-weight: bold;
	color: #fff;
	margin: 0;
	line-height: 1.5;
}

.urgent-step-desc {
	font-size: 15px;
	color: #555;
	line-height: 1.8;
	margin: 0;
	padding-top: 16px;
}

.urgent-step-tel-sp {
	display: none;
}

@media screen and (max-width: 768px) {
	.urgent-steps {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.urgent-step-arrow {
		height: 0;

	}
	.urgent-step {
		display: flex;
		flex-direction: column;
		margin-bottom: 16px;
	}

	.urgent-step-header {
		flex-direction: row;
		align-items: center;
		text-align: left;
		gap: 14px;
		padding: 14px 16px;
		border-radius: 8px;
		margin-bottom: 14px;
	}

	.urgent-step-num {
		width: 44px;
		height: 44px;
		font-size: 18px;
		flex-shrink: 0;
	}

	.urgent-step-title {
		font-size: 18px;
	}

	.urgent-step-desc {
		padding-top: 0;
		margin-bottom: 16px;
		font-size: 14px;
	}

	.urgent-step-arrow {
		align-self: center;
		padding: 0;
		margin-bottom: 16px;
	}

	.urgent-step-arrow img {
		transform: rotate(90deg);
		width: 36px;
	}

	.urgent-step-tel-sp {
		display: block;
		margin-bottom: 16px;
	}

	.urgent-step-tel-sp img {
		width: 100%;
	}
}

/* ============================================
   安置場所ボックス
   ============================================ */
.urgent-anchi-boxes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: auto;
	margin-bottom: 36px;
	max-width: 800px;
}

.urgent-anchi-box {
	border: 1px solid #c06061;
	border-radius: 10px;
	padding: 20px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.urgent-anchi-box-red {
	border: 1px solid #c89c48;
	border-radius: 10px;
	padding: 20px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}


.urgent-anchi-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: bold;
	color: #c06061;
	margin-bottom: 10px;
}
.urgent-anchi-title-red {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: bold;
	color: #c89c48;
	margin-bottom: 10px;
}

.urgent-anchi-icon {
	width: 80px;
	height: 80px;
	object-fit: contain;
	flex-shrink: 0;
}
.urgent-arrow-icon {
	width: 120px;
	height: auto;
	object-fit: contain;
}

.urgent-anchi-box p {
	font-size: 16px;
	color: #555;
	line-height: 1.8;
	margin: 0;
}

/* ============================================
   矢印＋テキスト
   ============================================ */
.urgent-arrow-section {
	text-align: center;
	margin-bottom: 32px;
}

.urgent-arrow {
	font-size: 40px;
	color: #f18849;
	line-height: 1;
	margin-bottom: 16px;
}

.urgent-arrow-text {
	font-size: 16px;
	line-height: 1.9;
	color: #333;
	font-weight: bold;
	margin: 0;
}

/* ============================================
   電話CTA画像
   ============================================ */
.urgent-tel-wrap {
	text-align: center;
	max-width: 700px;
	margin: auto;
	margin-bottom: 32px;
}

.urgent-tel-wrap .urgent-tel-img {
	max-width: 640px;
	width: 100%;
	display: inline-block;
}

/* ============================================
   警告ボックス
   ============================================ */
.urgent-warning {
	background: #ffec6b;
	padding: 24px 0;
	margin-top: 32px;
}
.urgent-warning-text-box {
	max-width: 700px;
}

.urgent-warning-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: bold;
	color: #333;
	margin-bottom: 10px;
}

.urgent-warning-badge {
	font-size: 18px;
}

.urgent-warning-text {
	font-size: 16px;
	color: #000;
	line-height: 1.8;
	margin: 0;
}
.urgent-warning-icon {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
}

/* ============================================
   かかりつけ医ボックス
   ============================================ */
.urgent-doctor-boxes {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 32px;
}

.urgent-doctor-box {
	background: #fff;
	border-radius: 16px;
	padding: 28px 28px 24px;
	max-width: 600px;
	margin: auto;
}

.urgent-doctor-box--red {
	border: 2px solid #c06061;
}

.urgent-doctor-box--gold {
	border: 2px solid #c9a332;
}

.urgent-doctor-title {
	font-size: 22px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 16px;
}

.urgent-doctor-box--red .urgent-doctor-title {
	color: #d94444;
}

.urgent-doctor-box--gold .urgent-doctor-title {
	color: #c9a332;
}

.urgent-doctor-box > p {
	font-size: 15px;
	color: #444;
	line-height: 1.8;
	margin: 0 0 20px;
}
.section-inner.urgent {
	display: flex;
	max-width: 1000px;
	margin: auto;
	align-items: center;
	gap: 24px;
	justify-content: center;
	padding: 20px;
}

/* ============================================
   検視サブボックス（いない場合の内側）
   ============================================ */
.urgent-police-boxes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.urgent-police-box {
	background: #fdf7ec;
	border-radius: 10px;
	padding: 16px 18px;
	border: 1px solid #c9a332;
}

.urgent-police-title {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin-bottom: 8px;
	line-height: 1.5;
}

.urgent-police-em {
	color: #d94444;
}

.urgent-police-box p {
	font-size: 13px;
	color: #555;
	line-height: 1.7;
	margin: 0;
}

.urgent-police-note {
	font-size: 12px;
	color: #888;
	line-height: 1.8;
	margin: 0;
}

/* ============================================
   戻るボタン
   ============================================ */
.urgent-back {
	padding: 40px 0 60px;
}

/* ============================================
   SP レスポンシブ
   ============================================ */
@media screen and (max-width: 768px) {

	.urgent-page-title {
		font-size: 22px;
	}

	.urgent-emergency-head {
		padding: 12px 20px;
		font-size: 17px;
	}

	.urgent-emergency-body {
		flex-direction: column;
		gap: 24px;
	}

	.urgent-tel-img {
		max-width: 100%;
	}

	.urgent-tabs {
		flex-direction: column;
		align-items: center;
	}

	.urgent-tab {
		width: 100%;
		max-width: 340px;
		justify-content: center;
	}

	.urgent-section-photo img {
		height: 200px;
	}

	/* SP：ステップ縦並び、矢印消す */
	.urgent-steps {
		flex-direction: column;
		gap: 16px;
	}

	.urgent-step {
		margin-right: 0;
	}

	/* SP：タイトルをヘッダー外に出す */
	.urgent-step-header {
		flex-direction: row;
		align-items: center;
	}

	.urgent-anchi-boxes,
	.urgent-police-boxes {
		grid-template-columns: 1fr;
	}

	.urgent-doctor-box {
		padding: 20px 18px;
	}

	.urgent-arrow-text {
		font-size: 14px;
	}
}
