/**
 * Loan Navi メインスタイルシート
 *
 * ネイビー＋ティール＋シアンの洗練された金融向けモダンUIデザイン。
 * screenshot.png のデザイン仕様を忠実に再現。
 *
 * @package LoanNavi
 */

/* ==========================================================================
   1. 変数定義・リセット (Variables & Reset)
   ========================================================================== */

:root {
	/* メインカラー */
	--navy: #0b1a42;
	--navy-dark: #071533;
	--navy-card: #ffffff;
	--teal: #009bb0;
	--teal-dark: #00839c;
	--teal-light: #eef9fa;
	--rate-cyan: #0088a8;
	--gold: #d97706;

	/* 背景・テキスト */
	--bg: #f4f7fa;
	--card: #ffffff;
	--text: #1e293b;
	--muted: #64748b;
	--border: #e2e8f0;
	--border-light: #edf2f7;

	/* 影・角丸・レイアウト */
	--shadow: 0 4px 16px rgba(11, 26, 66, 0.04);
	--shadow-md: 0 8px 24px rgba(11, 26, 66, 0.08);
	--shadow-lg: 0 16px 36px rgba(15, 39, 68, 0.08);
	--radius: 12px;
	--radius-sm: 6px;
	--header-h: 70px;
	--container: 1160px;
	--header-bg: #ffffff;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--teal-dark);
	text-decoration: none;
	transition: color 0.18s ease;
}

a:hover {
	color: var(--teal);
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.35;
	color: var(--navy);
	margin: 0 0 0.6em;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

.container {
	width: min(100% - 32px, var(--container));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 8px;
	background: var(--navy);
	color: #fff;
	padding: 8px 12px;
	z-index: 1000;
}

.skip-link:focus {
	left: 8px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ==========================================================================
   2. ヘッダー (Site Header - 明るいモダンデザイン)
   ========================================================================== */

.site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 12px rgba(11, 26, 66, 0.04);
}

/* 広告掲載をページ上部で明示する共通PRラベル */
.advertising-disclosure {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	color: #64748b;
}

.advertising-disclosure-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 30px;
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.advertising-disclosure-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 1px 7px;
	border: 1px solid #94a3b8;
	border-radius: 4px;
	background: #ffffff;
	color: #475569;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: var(--header-h);
	gap: 28px;
	position: relative;
}

.site-logo,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.45rem;
	color: var(--navy);
	letter-spacing: -0.01em;
	white-space: nowrap;
	line-height: 1;
	text-decoration: none;
	transition: opacity 0.18s ease;
}

.site-logo:hover,
.custom-logo-link:hover {
	color: var(--navy);
	opacity: 0.92;
}

.site-logo-mark {
	display: block;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 155, 176, 0.25);
}

.site-logo-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.site-logo-text {
	display: inline-flex;
	align-items: baseline;
}

.site-logo-loan {
	color: var(--navy);
}

.site-footer .site-logo-footer {
	color: var(--navy) !important;
}

.site-logo-navi {
	color: var(--teal);
	margin-left: 0.18em;
}

.custom-logo-link .custom-logo {
	display: block;
	height: 36px;
	width: auto;
}

.header-panel {
	display: contents;
}

.site-nav {
	justify-self: center;
}

.nav-menu,
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
}

.nav-menu a {
	color: #334155;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	transition: color 0.18s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
	color: var(--teal);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	justify-self: end;
}

.header-fav {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #475569;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.18s ease;
}

.header-fav:hover {
	color: var(--teal);
}

.header-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff;
	border-radius: 999px;
	padding: 8px 18px;
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(0, 162, 184, 0.28);
	transition: all 0.18s ease;
}

.header-cta:hover {
	color: #ffffff;
	background: linear-gradient(135deg, #008f9f 0%, #007287 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(0, 162, 184, 0.38);
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	justify-self: end;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--navy);
	position: relative;
	margin: 0 auto;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

/* ==========================================================================
   3. ヒーローカルーセル（スライダー）＆ 検索パネル（明るいモダン金融スタイル）
   ========================================================================== */

/* ヒーロースライダー全体（明るく爽やかなグラデーション背景） */
.hero-slider-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 35%, #e6fffa 70%, #f0fdf4 100%);
	border-bottom: 1px solid #e0f2fe;
	color: var(--text);
}

.hero-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* スライドトラック */
.hero-slider-track {
	display: flex;
	width: 100%;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}

/* 個別スライド */
.hero-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	min-height: 500px;
	display: flex;
	align-items: center;
	padding: 58px 0 68px;
	box-sizing: border-box;
}

/* 管理画面で登録した画像スライド */
.hero-slider--image .hero-slide-image {
	display: block;
	min-height: 0;
	padding: 0;
}

.hero-slide-image-link,
.hero-slide-image-link picture,
.hero-slide-image-link img {
	display: block;
	width: 100%;
}

.hero-slide-image-link img {
	aspect-ratio: 8 / 3;
	object-fit: cover;
}

a.hero-slide-image-link {
	cursor: pointer;
}

.hero-slide-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.hero-slide-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.7;
}

.glow-1 {
	top: -15%;
	left: -5%;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, rgba(0, 155, 176, 0.16) 0%, transparent 70%);
}

.glow-2 {
	bottom: -15%;
	right: 5%;
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
}

.glow-housing {
	top: 5%;
	right: 2%;
	width: 550px;
	height: 550px;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(20, 184, 166, 0.12) 50%, transparent 70%);
}

.glow-speed {
	top: -5%;
	right: 5%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(251, 146, 60, 0.15) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
}

.glow-diagnosis {
	top: 0;
	right: 0;
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(13, 148, 136, 0.12) 50%, transparent 70%);
}

.hero-slide-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1.18fr 0.82fr;
	gap: 44px;
	align-items: center;
}

/* スライド内テキストコンテンツ */
.hero-slide-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hero-slide-badges {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.hero-slide-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.badge-primary {
	background: #eef9fa;
	color: #00839c;
	border: 1px solid #bce6eb;
}

.badge-accent {
	background: #f0f9ff;
	color: #0284c7;
	border: 1px solid #bae6fd;
}

.badge-speed {
	background: #fff7ed;
	color: #c2410c;
	border: 1px solid #fed7aa;
}

.badge-shindan {
	background: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
}

.hero-slide-badge-sub {
	font-size: 0.84rem;
	color: #64748b;
	font-weight: 700;
}

.hero-slide-title {
	font-size: clamp(2rem, 3.4vw, 2.75rem);
	font-weight: 900;
	line-height: 1.25;
	color: var(--navy);
	margin: 0 0 16px;
	letter-spacing: -0.01em;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.title-highlight {
	background: linear-gradient(135deg, #008da5 0%, #009bb0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

.hero-slide-desc {
	font-size: 0.98rem;
	line-height: 1.7;
	color: #475569;
	margin: 0 0 22px;
	max-width: 540px;
	font-weight: 500;
}

/* スライド内タグ一覧 */
.hero-slide-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.hero-pill {
	display: inline-flex;
	align-items: center;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	color: #334155;
	padding: 5px 13px;
	border-radius: 8px;
	font-size: 0.82rem;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(11, 26, 66, 0.04);
}

/* スライド内アクションボタン */
.hero-slide-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.btn-hero-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff !important;
	padding: 13px 26px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(0, 162, 184, 0.35);
	transition: all 0.2s ease;
}

.btn-hero-primary:hover {
	background: linear-gradient(135deg, #008f9f 0%, #007287 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 26px rgba(0, 162, 184, 0.45);
}

.btn-hero-gold {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-hero-gold:hover {
	background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
	box-shadow: 0 8px 26px rgba(245, 158, 11, 0.45);
}

.btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #ffffff;
	color: var(--navy) !important;
	border: 1.5px solid #cbd5e1;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(11, 26, 66, 0.05);
	transition: all 0.2s ease;
}

.btn-hero-outline:hover {
	background: #f8fafc;
	border-color: var(--teal);
	color: var(--teal-dark) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(11, 26, 66, 0.1);
}

/* スライド右側のビジュアルカード（白基調のクリーンなカードスタイル） */
.hero-slide-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-visual-card {
	width: 100%;
	max-width: 400px;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 20px;
	padding: 28px 26px;
	box-shadow: 0 16px 40px rgba(11, 26, 66, 0.08);
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-visual-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 48px rgba(11, 26, 66, 0.12);
}

/* ビジュアルカード 1: 総合比較 */
.visual-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.visual-card-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #009bb0 0%, #00839c 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 155, 176, 0.3);
}

.visual-card-title-wrap {
	display: flex;
	flex-direction: column;
}

.visual-card-sub {
	font-size: 0.76rem;
	color: #64748b;
	font-weight: 700;
}

.visual-card-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--navy);
}

.visual-card-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 20px;
}

.metric-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.metric-lbl {
	font-size: 0.74rem;
	color: #64748b;
	font-weight: 700;
}

.metric-val {
	font-size: 1.12rem;
	font-weight: 900;
	color: var(--navy);
}

.text-teal {
	color: #008fa0 !important;
}

.visual-card-footer {
	text-align: center;
}

.visual-badge-live {
	font-size: 0.78rem;
	color: #00839c;
	font-weight: 700;
	background: #eef9fa;
	border: 1px solid #cceef3;
	padding: 4px 14px;
	border-radius: 999px;
	display: inline-block;
}

/* ビジュアルカード 2: 住宅ローン */
.visual-housing-badge {
	font-size: 0.8rem;
	font-weight: 800;
	color: #0284c7;
	background: #e0f2fe;
	border: 1px solid #bae6fd;
	padding: 4px 12px;
	border-radius: 999px;
	display: inline-block;
	margin-bottom: 12px;
}

.visual-housing-rate {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border: 1.5px solid #bae6fd;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 18px;
}

.vhr-label {
	font-size: 0.76rem;
	color: #0369a1;
	font-weight: 700;
	display: block;
	margin-bottom: 4px;
}

.vhr-val {
	display: flex;
	align-items: baseline;
	gap: 2px;
}

.vhr-num {
	font-size: 2.2rem;
	font-weight: 900;
	color: #0284c7;
	line-height: 1;
}

.vhr-pct {
	font-size: 1.1rem;
	font-weight: 800;
	color: #0369a1;
}

.visual-housing-features {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vh-feat-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.84rem;
	color: #334155;
	font-weight: 600;
}

.vh-check {
	color: #0284c7;
	font-weight: 900;
}

/* ビジュアルカード 3: 即日スピード融資 */
.visual-speed-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}

.speed-bolt {
	font-size: 1.3rem;
}

.speed-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--navy);
}

.visual-speed-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.speed-step {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 14px;
}

.step-circle {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fb923c;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 0.82rem;
	flex-shrink: 0;
}

.step-circle-success {
	background: #10b981;
}

.step-info {
	display: flex;
	flex-direction: column;
}

.step-info strong {
	font-size: 0.88rem;
	color: #1e293b;
}

.step-info span {
	font-size: 0.76rem;
	color: #64748b;
}

/* ビジュアルカード 4: 診断 */
.visual-shindan-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.shindan-badge {
	font-size: 0.78rem;
	font-weight: 800;
	color: #b45309;
	background: #fef3c7;
	border: 1px solid #fde68a;
	padding: 3px 10px;
	border-radius: 999px;
}

.shindan-time {
	font-size: 0.76rem;
	color: #64748b;
	font-weight: 600;
}

.visual-shindan-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 18px;
}

.shindan-q-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
}

.sq-num {
	font-size: 0.78rem;
	font-weight: 900;
	color: #b45309;
	background: #fef3c7;
	padding: 2px 6px;
	border-radius: 4px;
}

.sq-text {
	font-size: 0.84rem;
	color: #1e293b;
	font-weight: 600;
}

.visual-shindan-cta {
	text-align: center;
}

.shindan-cta-btn {
	display: block;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	color: #ffffff;
	font-size: 0.84rem;
	font-weight: 800;
	padding: 9px 16px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* スライダー左右矢印ボタン（白背景＋影） */
.hero-slider-nav {
	position: absolute;
	inset: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	z-index: 10;
}

.hero-slider-arrow {
	pointer-events: auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(11, 26, 66, 0.08);
	transition: all 0.2s ease;
}

.hero-slider-arrow:hover {
	background: #009bb0;
	color: #ffffff;
	border-color: #009bb0;
	transform: scale(1.08);
	box-shadow: 0 6px 18px rgba(0, 155, 176, 0.35);
}

/* スライダーインジケーター（ドット） */
.hero-slider-dots {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.hero-slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.4);
	border: 1.5px solid #cbd5e1;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	padding: 0;
}

.hero-slider-dot.is-active {
	width: 32px;
	background: #009bb0;
	border-color: #00839c;
	box-shadow: 0 0 10px rgba(0, 155, 176, 0.35);
}

/* スライダー進行バー */
.hero-slider-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(0, 155, 176, 0.12);
	z-index: 10;
}

.hero-slider-progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #009bb0 0%, #00839c 100%);
}

/* ==========================================================================
   条件指定検索セクション（ホーム用・輪播図の下部に配置）
   ========================================================================== */

.section-home-search {
	padding: 40px 0 20px;
	background: #f8fafc;
	border-bottom: 1px solid #eef2f6;
}

.home-search-panel {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 16px;
	padding: 32px 36px;
	box-shadow: 0 10px 30px rgba(11, 26, 66, 0.05);
}

.home-search-header {
	text-align: center;
	margin-bottom: 24px;
}

.home-search-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eef9fa;
	color: var(--teal-dark);
	border: 1px solid #cceef3;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 0.82rem;
	font-weight: 800;
	margin-bottom: 10px;
}

.home-search-title {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--navy);
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}

.home-search-lead {
	font-size: 0.92rem;
	color: var(--muted);
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* ヒーロー検索フォーム（共通） */
.hero-search {
	display: grid;
	grid-template-columns: repeat(3, 1fr) auto;
	gap: 14px;
	align-items: flex-end;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: var(--radius);
	padding: 20px 24px;
	box-shadow: none;
}

.hero-search label {
	display: grid;
	gap: 6px;
	color: #475569;
	font-size: 0.82rem;
	font-weight: 700;
}

.hero-search select {
	width: 100%;
	height: 44px;
	border: 1.5px solid #cbd5e1;
	border-radius: var(--radius-sm);
	padding: 0 34px 0 14px;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--text);
	background-color: #f8fafc;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: all 0.18s ease;
}

.hero-search select:hover {
	border-color: #94a3b8;
	background-color: #ffffff;
}

.hero-search select:focus {
	border-color: var(--teal);
	background-color: #ffffff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 155, 176, 0.15);
}

.btn-search {
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff;
	border: none;
	border-radius: var(--radius-sm);
	padding: 0 24px;
	white-space: nowrap;
	height: 44px;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.92rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 162, 184, 0.32);
	transition: all 0.18s ease;
}

.btn-search:hover {
	background: linear-gradient(135deg, #008f9f 0%, #007287 100%);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 162, 184, 0.42);
}

/* ==========================================================================
   4. セクション共通・おすすめローン (Featured Section)
   ========================================================================== */

.site-main {
	min-height: 50vh;
}

.section {
	padding: 48px 0;
}

.section-featured-loans {
	padding: 44px 0 54px;
}

.section-muted {
	background: #eaf0f5;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.section-header h1,
.section-header h2,
.page-title {
	margin-bottom: 0;
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--navy);
}

/* セクションタイトルとランキング根拠の補足表示 */
.section-heading-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.section-ranking-note {
	margin: 0;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.5;
}

.section-lead {
	color: var(--muted);
	margin: 8px 0 0;
}

.section-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--navy);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.18s ease;
}

.section-more:hover {
	color: var(--teal);
}

.loan-grid,
.post-grid,
.type-grid {
	display: grid;
	gap: 20px;
}

.loan-grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.loan-grid-featured {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ==========================================================================
   5. ローン商品カード (Loan Card)
   ========================================================================== */

.loan-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius);
	padding: 22px 24px 20px;
	box-shadow: var(--shadow);
	position: relative;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition:
		transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 0.22s ease,
		border-color 0.22s ease;
}

/* 鼠标移动上去（Hover）时添加青绿高亮选中效果（外圈聚焦光晕＋阴影微浮） */
.loan-card:hover {
	transform: translateY(-5px);
	border-color: var(--teal);
	box-shadow: 0 0 0 2px rgba(0, 155, 176, 0.22), 0 14px 30px rgba(11, 26, 66, 0.12);
}

.loan-card.is-featured {
	border-color: #e2e8f0;
}

.badge {
	display: inline-block;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 0.75rem;
	font-weight: 700;
}

.badge-featured {
	display: none;
}

/* カード上部：ロゴ＋銀行名＋金利種別 */
.loan-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.loan-card-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.loan-card-logo-wrap {
	width: 44px;
	min-width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.loan-card-logo-wrap .bank-logo {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border: none;
	background: transparent;
	padding: 0;
	display: block;
}

.loan-card-brand-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.loan-card-bank-name {
	font-size: 0.96rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.loan-card-product-name {
	font-size: 0.82rem;
	font-weight: 400;
	color: var(--muted);
	margin: 2px 0 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.loan-card-product-name a {
	color: inherit;
}

.loan-card-product-name a:hover {
	color: var(--navy);
}

/* 順位メダルバッジ（金・銀・銅 - 存在感のあるサイズに最適化） */
.loan-card-rank-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px 4px 7px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	flex-shrink: 0;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.loan-card-rank-badge:hover {
	transform: translateY(-1px) scale(1.04);
}

.rank-medal-svg {
	display: block;
	width: 22px;
	height: 26px;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.14));
}

.rank-badge-text {
	letter-spacing: 0.03em;
}

/* 金メダル (第1位) */
.loan-card-rank-badge.is-gold {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
	border: 1.5px solid #f59e0b;
	color: #92400e;
	box-shadow: 0 3px 10px rgba(245, 158, 11, 0.28);
}

/* 銀メダル (第2位) */
.loan-card-rank-badge.is-silver {
	background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
	border: 1.5px solid #94a3b8;
	color: #334155;
	box-shadow: 0 3px 10px rgba(100, 116, 139, 0.2);
}

/* 銅メダル (第3位) */
.loan-card-rank-badge.is-bronze {
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
	border: 1.5px solid #ea580c;
	color: #9a3412;
	box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22);
}

/* トップページの上位3商品は、メダルの大きさとコントラストを強調する */
.section-featured-loans .loan-card-rank-badge {
	gap: 8px;
	padding: 7px 14px 7px 9px;
	border-width: 2px;
	font-size: 1rem;
	font-weight: 900;
}

.section-featured-loans .rank-medal-svg {
	width: 30px;
	height: 36px;
	filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.24));
}

.section-featured-loans .loan-card-rank-badge.is-gold {
	background: linear-gradient(135deg, #fffdf0 0%, #fde68a 48%, #fbbf24 100%);
	box-shadow: 0 6px 18px rgba(245, 158, 11, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.section-featured-loans .loan-card-rank-badge.is-silver {
	background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 48%, #cbd5e1 100%);
	box-shadow: 0 6px 18px rgba(100, 116, 139, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.section-featured-loans .loan-card-rank-badge.is-bronze {
	background: linear-gradient(135deg, #fff7ed 0%, #fdba74 48%, #f97316 100%);
	box-shadow: 0 6px 18px rgba(234, 88, 12, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* 順位バッジ (第4位以降) */
.loan-card-rank-badge.is-rank-num {
	background: #f8fafc;
	border: 1.5px solid #cbd5e1;
	color: #334155;
	box-shadow: 0 2px 6px rgba(100, 116, 139, 0.12);
}

.rank-badge-num-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: #0284c7;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 900;
	border-radius: 50%;
	line-height: 1;
	margin-right: 2px;
}

/* カード中部：商品バナー画像（銀行ロゴとは別に横長で配置） */
.loan-card-banner {
	margin: 0 0 14px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	border-radius: 8px;
	background: #f8fafc;
	padding: 8px 10px;
}

.loan-card-banner-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
}

.loan-card-banner-img {
	display: block;
	max-width: 100%;
	max-height: 72px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
}

/* カード中部：金利表示 */
.loan-card-rate-section {
	margin-bottom: 16px;
}

.loan-card-rate-label {
	display: block;
	font-size: 0.78rem;
	color: var(--muted);
	margin-bottom: 2px;
}

.loan-card-rate-value {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--rate-cyan);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* カード下部：スペック一覧 */
.loan-card-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	border-top: 1px solid #f1f5f9;
	padding-top: 14px;
	margin: 0 0 18px;
}

.loan-spec-item dt {
	font-size: 0.75rem;
	color: var(--muted);
	margin-bottom: 2px;
}

.loan-spec-item dd {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0;
	white-space: nowrap;
}

.loan-spec-item .loan-spec-term {
	white-space: normal;
	overflow-wrap: anywhere;
}

/* カード最下部：備考（補足説明、ボタンの下） */
.loan-card-remarks {
	font-size: 0.72rem;
	font-weight: 400;
	color: var(--muted);
	line-height: 1.5;
	margin: 12px 0 0;
	overflow-wrap: anywhere;
}

/* カード最下部：アクションボタン */
.loan-card-actions {
	margin-top: auto;
	display: flex;
	flex-direction: column;
}

.loan-card-compare {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	cursor: pointer;
	user-select: none;
	width: fit-content;
}

.loan-card-compare input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	pointer-events: none;
}

.compare-checkbox-box {
	width: 18px;
	height: 18px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	background: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.18s ease;
}

.compare-checkbox-icon {
	color: #ffffff;
	transform: scale(0);
	opacity: 0;
	transition: transform 0.18s ease, opacity 0.18s ease;
	display: block;
}

.loan-card-compare:hover .compare-checkbox-box {
	border-color: var(--teal);
	background: #f0fdfa;
}

.loan-card-compare input[type="checkbox"]:checked + .compare-checkbox-box {
	background: var(--teal);
	border-color: var(--teal);
}

.loan-card-compare input[type="checkbox"]:checked + .compare-checkbox-box .compare-checkbox-icon {
	transform: scale(1);
	opacity: 1;
}

.compare-label-text {
	font-size: 0.84rem;
	color: var(--muted);
	font-weight: 500;
	transition: color 0.18s ease;
}

.loan-card-compare:hover .compare-label-text {
	color: var(--navy);
}

.loan-card.is-selected-compare {
	border-color: var(--teal);
	box-shadow: 0 0 0 2px var(--teal), 0 8px 24px rgba(0, 155, 176, 0.18);
}

.loan-card.is-selected-compare:hover {
	transform: translateY(-5px);
	box-shadow: 0 0 0 2.5px var(--teal), 0 16px 32px rgba(0, 155, 176, 0.22);
}

.loan-card.is-selected-compare .compare-label-text {
	color: var(--navy);
	font-weight: 700;
}

.loan-card-detail-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 42px;
	border: 1.5px solid #0c2b4d;
	border-radius: var(--radius-sm);
	background: #ffffff;
	color: #0c2b4d;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.loan-card-detail-icon {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	transition: transform 0.2s ease;
}

/* カード全体ホバー時の「詳細を見る」ボタン連動強調 */
.loan-card:hover .loan-card-detail-btn {
	background: #0c2b4d;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(12, 43, 77, 0.22);
}

.loan-card:hover .loan-card-detail-icon {
	transform: translateY(-50%) translateX(3px);
}

.loan-card-detail-btn:hover {
	background: #081e36;
	color: #ffffff;
	border-color: #081e36;
	box-shadow: 0 6px 16px rgba(12, 43, 77, 0.3);
}

.loan-card-official-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 42px;
	margin-top: 8px;
	border-radius: var(--radius-sm);
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff;
	font-weight: 800;
	font-size: 0.9rem;
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(0, 162, 184, 0.25);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.loan-card-official-btn:hover {
	background: linear-gradient(135deg, #008f9f 0%, #007287 100%);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(0, 162, 184, 0.35);
}

.loan-card-official-icon {
	flex-shrink: 0;
}

.loan-card:hover .loan-card-product-name a {
	color: var(--teal);
}

/* ==========================================================================
   6. 特徴バー (Features Bar)
   ========================================================================== */

.features-bar {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px 32px;
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: center;
}

.feature-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	position: relative;
}

.feature-item:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -12px;
	top: 10%;
	height: 80%;
	width: 1px;
	background: var(--border-light);
}

.feature-icon {
	color: var(--teal);
	flex-shrink: 0;
	margin-top: 2px;
}

.feature-icon svg {
	width: 34px;
	height: 34px;
	display: block;
}

.feature-content {
	display: flex;
	flex-direction: column;
}

.feature-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0 0 4px;
}

.feature-desc {
	font-size: 0.78rem;
	color: var(--muted);
	margin: 0;
	line-height: 1.45;
}

.section-features-wrap {
	margin: 36px auto 10px;
}

/* ==========================================================================
   6.1. TOP3 徹底解説セクション (Top Rank Showcase on Front Page)
   ========================================================================== */

.section-top-showcase {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	padding: 56px 0 64px;
}

.top-showcase-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	max-width: 100%;
	margin: 0 0 32px;
	width: 100%;
}

/* 注目の厳選ローン ＋ おすすめカードローン 徹底解説 を一行に横並び・左寄せ配置 */
.top-showcase-heading-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 12px 14px;
	margin-bottom: 8px;
	width: 100%;
}

.top-showcase-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #fffbeb;
	color: #92400e;
	border: 1.5px solid #fcd34d;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 0.82rem;
	font-weight: 800;
	margin: 0;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
	flex-shrink: 0;
}

.top-showcase-badge svg {
	flex-shrink: 0;
}

.top-showcase-badge span {
	white-space: nowrap;
}

.top-showcase-title {
	font-size: 1.65rem;
	font-weight: 800;
	color: var(--navy);
	margin: 0;
	letter-spacing: -0.01em;
	text-align: left;
	line-height: 1.3;
}

/* タイトルの下に配置し、フォントサイズを小さめ（一段落小）に設定・左寄せ */
.top-showcase-lead {
	max-width: 860px;
	margin: 4px 0 0 !important;
	text-align: left;
	line-height: 1.6;
	font-size: 0.85rem !important;
	color: #64748b;
}

.top-showcase-list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* 各カードのベース */
.top-showcase-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius);
	box-shadow: 0 4px 20px rgba(11, 26, 66, 0.05);
	overflow: hidden;
	scroll-margin-top: calc(var(--header-h) + 24px);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-showcase-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(11, 26, 66, 0.08);
}

.top-showcase-card.is-anchor-highlight {
	animation: showcaseAnchorGlow 1.6s ease-out forwards;
}

@keyframes showcaseAnchorGlow {
	0% {
		box-shadow: 0 0 0 4px rgba(0, 155, 176, 0.45), 0 12px 36px rgba(0, 155, 176, 0.22);
		transform: translateY(-3px);
	}
	40% {
		box-shadow: 0 0 0 6px rgba(0, 155, 176, 0.3), 0 12px 32px rgba(0, 155, 176, 0.16);
		transform: translateY(-2px);
	}
	100% {
		box-shadow: 0 4px 20px rgba(11, 26, 66, 0.05);
		transform: translateY(0);
	}
}

.top-showcase-card.is-selected-compare {
	border-color: var(--teal) !important;
	box-shadow: 0 0 0 2px var(--teal), 0 8px 24px rgba(0, 162, 184, 0.16) !important;
}

/* 順位別の境界線アクセント（左側のみ細いアクセント線を表示、上・右・下は通常枠線を維持） */
.top-showcase-card.is-rank-1 {
	border-left: 4px solid #f59e0b;
}

.top-showcase-card.is-rank-2 {
	border-left: 4px solid #94a3b8;
}

.top-showcase-card.is-rank-3 {
	border-left: 4px solid #ea580c;
}

.top-showcase-card.is-rank-4 {
	border-left: 4px solid #0284c7;
}

.top-showcase-card.is-rank-5 {
	border-left: 4px solid #0d9488;
}

.top-showcase-card.is-rank-6 {
	border-left: 4px solid #6366f1;
}

/* カード上部：ブランド・順位 */
.showcase-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding: 20px 28px;
	border-bottom: 1px solid #f1f5f9;
	background: #ffffff;
}

.showcase-card-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	flex: 1 1 260px;
}

.showcase-rank-col {
	flex-shrink: 0;
}

/* 詳細解説カードヘッダー内：銀行ロゴ */
.showcase-logo-col {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	line-height: 0;
}

.showcase-logo-col .bank-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	display: block;
}

.showcase-title-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.showcase-bank-name {
	font-size: 0.88rem;
	font-weight: 700;
	color: #64748b;
	margin-bottom: 2px;
	line-height: 1.3;
}

.showcase-product-name {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--navy);
	margin: 0;
	line-height: 1.35;
}

.showcase-product-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.showcase-product-name a:hover {
	color: var(--teal);
}

.showcase-badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.showcase-tag {
	font-size: 0.76rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.showcase-tag.tag-type {
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
}

.showcase-tag.tag-rate {
	background: #ecfeff;
	color: var(--teal-dark);
	border: 1px solid #a5f3fc;
}

/* 商品バナー（ヘッダー下の横長エリア） */
.showcase-hero-banner {
	padding: 4px 28px 16px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.showcase-hero-banner-link {
	display: inline-flex;
	max-width: 100%;
	line-height: 0;
	text-decoration: none;
}

.showcase-hero-banner-img {
	display: block;
	max-width: 100%;
	max-height: 88px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
}

/* 核心スペック4連グリッド */
.showcase-metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	padding: 20px 28px;
	background: #f8fafc;
	border-bottom: 1px solid #f1f5f9;
}

.showcase-metric {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(11, 26, 66, 0.02);
}

.showcase-metric .metric-head {
	font-size: 0.76rem;
	font-weight: 700;
	color: #64748b;
	margin-bottom: 4px;
}

.showcase-metric .metric-value {
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--navy);
	line-height: 1.25;
}

.showcase-metric.is-rate {
	background: linear-gradient(135deg, #ecfeff 0%, #f0fdf4 100%);
	border-color: #a5f3fc;
}

.showcase-metric.is-rate .metric-head {
	color: #0e7490;
}

.showcase-metric.is-rate .metric-value {
	color: #008fa0;
	font-size: 1.45rem;
	font-weight: 900;
	letter-spacing: -0.01em;
}

/* 詳細解説ボディ */
.showcase-detail-body {
	padding: 22px 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.showcase-desc-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-sm);
	padding: 16px 18px;
}

.showcase-desc-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--navy);
	margin: 0 0 8px;
}

.showcase-desc-title svg {
	color: var(--teal);
	flex-shrink: 0;
}

.showcase-desc-text {
	margin: 0;
	font-size: 0.88rem;
	color: #334155;
	line-height: 1.65;
}

/* 特徴チップ一覧 */
.showcase-features-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.feature-chip {
	display: inline-flex;
	align-items: center;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 0.82rem;
}

.feature-chip .chip-label {
	color: #64748b;
	font-weight: 600;
}

.feature-chip .chip-val {
	color: var(--navy);
	font-weight: 800;
}

/* 申込条件ボックス */
.showcase-condition-box {
	display: flex;
	align-items: baseline;
	gap: 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 10px 14px;
}

.condition-badge {
	flex-shrink: 0;
	background: #2563eb;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 4px;
}

.condition-text {
	margin: 0;
	font-size: 0.84rem;
	color: #1e3a8a;
	line-height: 1.5;
}

/* アクションバー */
.showcase-action-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding: 18px 28px 22px;
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
}

.showcase-buttons-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.btn-showcase-detail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #ffffff;
	color: var(--navy);
	border: 1.5px solid #cbd5e1;
	font-size: 0.9rem;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none;
	transition: all 0.18s ease;
}

.btn-showcase-detail:hover {
	background: #f8fafc;
	border-color: var(--navy);
	color: var(--navy);
	transform: translateY(-1px);
}

.btn-showcase-official {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff;
	border: 1.5px solid transparent;
	font-size: 0.92rem;
	font-weight: 800;
	padding: 10px 22px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 3px 12px rgba(0, 162, 184, 0.25);
	transition: all 0.18s ease;
}

.btn-showcase-official:hover {
	background: linear-gradient(135deg, #008f9f 0%, #007287 100%);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 5px 16px rgba(0, 162, 184, 0.35);
}

.btn-showcase-official.is-compact {
	padding: 8px 14px;
	font-size: 0.82rem;
	box-shadow: 0 2px 8px rgba(0, 162, 184, 0.22);
}

.showcase-badges .btn-showcase-official {
	white-space: nowrap;
}

/* カード最下部：備考（補足説明） */
.showcase-remarks {
	font-size: 0.72rem;
	font-weight: 400;
	color: var(--muted);
	line-height: 1.5;
	margin: 0;
	padding: 0 28px 18px;
	overflow-wrap: anywhere;
}

/* ==========================================================================
   7. 種類カード・ブログ・共通コンポーネント (Type Cards & Post Grid)
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95rem;
	text-decoration: none;
	transition: all 0.18s ease;
}

.btn-primary {
	background: var(--teal);
	color: #fff;
}

.btn-primary:hover {
	background: var(--teal-dark);
	color: #fff;
}

.btn-ghost {
	background: #fff;
	border-color: var(--border);
	color: var(--navy);
}

.btn-ghost:hover {
	border-color: var(--teal);
	color: var(--teal-dark);
}

.btn-sm {
	padding: 7px 14px;
	font-size: 0.85rem;
}

.type-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-height: 158px;
	padding: 22px 20px 18px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.type-card:hover,
.type-card:focus-visible {
	transform: translateY(-4px);
	border-color: var(--teal);
	box-shadow: 0 12px 28px rgba(13, 148, 136, 0.14);
	color: inherit;
}

.type-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #e7f6f5;
	color: var(--teal);
	flex-shrink: 0;
}

.type-card-icon svg {
	width: 26px;
	height: 26px;
	display: block;
}

.type-card:hover .type-card-icon,
.type-card:focus-visible .type-card-icon {
	background: var(--teal);
	color: #fff;
}

.type-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding-right: 18px;
}

.type-card h3 {
	margin: 0;
	font-size: 1rem;
	color: var(--navy);
}

.type-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.8rem;
}

.type-card-arrow {
	position: absolute;
	right: 18px;
	bottom: 20px;
	width: 8px;
	height: 14px;
	color: var(--navy);
	opacity: 0.35;
}

.type-card:hover .type-card-arrow,
.type-card:focus-visible .type-card-arrow {
	opacity: 1;
	color: var(--teal);
}

.type-grid-kinds {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.post-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
}

.post-card-title {
	font-size: 1.05rem;
	margin: 0 0 8px;
}

.post-card-title a {
	color: var(--navy);
}

.post-card-meta {
	color: var(--muted);
	font-size: 0.8rem;
	margin-bottom: 10px;
}

.post-card-excerpt {
	font-size: 0.88rem;
	color: var(--muted);
	margin: 0;
}

/* 絞り込みフィルター */
.loan-filter {
	background: #fff;
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
	margin-bottom: 24px;
}

.loan-filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
}

.loan-filter label {
	display: grid;
	gap: 6px;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.loan-filter select,
.loan-filter input {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 8px 12px;
	font: inherit;
	background: #fff;
}

.loan-filter-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.result-count {
	color: var(--muted);
	margin-bottom: 16px;
	font-size: 0.9rem;
}

/* ==========================================================================
   8. パンくずリスト & 詳細ページ (Breadcrumbs & Single Loan Product)
   ========================================================================== */

.breadcrumbs-nav {
	margin: 0 0 20px;
	font-size: 0.85rem;
	color: var(--muted);
}

.breadcrumbs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.breadcrumbs-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.breadcrumbs-item a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.breadcrumbs-item a:hover {
	color: var(--teal);
}

.breadcrumbs-item span[aria-current="page"] {
	color: var(--navy);
	font-weight: 600;
	max-width: 320px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.breadcrumbs-sep {
	color: #cbd5e1;
	font-size: 0.95rem;
}

/* 詳細ページ全体コンテナ */
.loan-detail {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 1000px;
	margin: 0 auto;
}

/* ヒーローカード（白底・多重微影・モダン金融スタイル） */
.loan-detail-hero-card {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 32px 36px;
	box-shadow: 0 10px 30px rgba(11, 26, 66, 0.06);
	position: relative;
}

.loan-detail-hero-header {
	margin-bottom: 24px;
}

.loan-detail-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.loan-detail-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.loan-detail-brand .bank-logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border: none;
	background: transparent;
	padding: 0;
}

.loan-detail-bank-link {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--navy);
	text-decoration: none;
	transition: color 0.18s ease;
}

.loan-detail-bank-link:hover {
	color: var(--teal);
}

.loan-detail-badges {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.badge-type-pill {
	background: #f1f5f9;
	color: #475569;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 3px 12px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
}

.badge-rate-pill {
	background: #ecfeff;
	color: #0891b2;
	border: 1px solid #a5f3fc;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 999px;
}

/* 商品タイトル */
.loan-detail-title {
	font-size: clamp(1.5rem, 3vw, 1.95rem);
	font-weight: 800;
	color: var(--navy);
	line-height: 1.35;
	margin: 0 0 12px;
}

.loan-detail-title-text {
	display: block;
	min-width: 0;
}

.loan-detail-hero-banner {
	margin: 0 0 16px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.loan-detail-banner-img {
	display: block;
	max-width: 100%;
	max-height: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
}

.loan-detail-excerpt {
	color: #475569;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
	background: #f8fafc;
	border-left: 3px solid var(--teal);
	padding: 10px 16px;
	border-radius: 0 8px 8px 0;
}

/* 4カラム主要スペック指標カード */
.loan-hero-metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	background: #f8fafc;
	border: 1px solid #edf2f7;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 26px;
}

.metric-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 16px;
	transition: transform 0.18s ease;
}

.metric-card.metric-rate {
	background: #f0fdfa;
	border-color: #99f6e4;
	box-shadow: 0 2px 10px rgba(13, 148, 136, 0.08);
}

.metric-label {
	font-size: 0.75rem;
	color: var(--muted);
	font-weight: 600;
	margin-bottom: 4px;
}

.metric-val {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--navy);
	line-height: 1.25;
	white-space: nowrap;
}

.metric-rate .metric-val {
	font-size: 1.45rem;
	color: var(--rate-cyan);
}

/* CTA 行 */
.loan-detail-cta-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 8px;
}

.loan-detail-cta-bar .loan-card-compare {
	margin-bottom: 0;
}

.btn-official-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 800;
	padding: 14px 28px;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0, 162, 184, 0.35);
	transition: all 0.2s ease;
	letter-spacing: 0.02em;
}

.btn-official-cta:hover {
	color: #ffffff;
	background: linear-gradient(135deg, #008f9f 0%, #007287 100%);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 162, 184, 0.45);
}

/* 各セクション共通スタイル */
.loan-detail-section {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 28px 32px;
	box-shadow: var(--shadow);
}

.section-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f1f5f9;
}

.section-title-icon {
	color: var(--teal);
	flex-shrink: 0;
}

.section-title-wrap h2 {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--navy);
	margin: 0;
}

/* スペック表 */
.spec-table-wrap {
	overflow-x: auto;
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
}

.spec-table th,
.spec-table td {
	padding: 14px 18px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.92rem;
	text-align: left;
	vertical-align: middle;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
	border-bottom: none;
}

.spec-table th {
	width: 200px;
	background: #f8fafc;
	color: #475569;
	font-weight: 700;
	white-space: nowrap;
}

.spec-table td {
	color: var(--text);
}

.highlight-cyan {
	color: var(--rate-cyan);
	font-size: 1.05rem;
}

/* 商品詳細のキャンペーン情報を明るいアクセントで強調 */
.spec-table-campaign-row th,
.spec-table-campaign-row td {
	background: #fffbeb;
}

.highlight-campaign {
	color: #92400e;
	line-height: 1.65;
}

/* 条件ボックス & 特徴ボックス */
.loan-detail-card-box {
	background: #f8fafc;
	border: 1px solid #edf2f7;
	border-radius: 10px;
	padding: 20px 24px;
}

.loan-detail-card-box.condition-box {
	border-left: 4px solid var(--teal);
	background: #f0fdfa;
}

.loan-detail-card-box .entry-content {
	color: #334155;
	font-size: 0.95rem;
	line-height: 1.7;
}

.loan-detail-card-box .entry-content p:last-child {
	margin-bottom: 0;
}

/* お申込みの流れ（4ステップ） */
.loan-flow-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.loan-flow-step {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px 18px;
	position: relative;
	display: flex;
	flex-direction: column;
}

.loan-flow-step:not(:last-child)::after {
	content: "›";
	position: absolute;
	right: -13px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	color: var(--teal);
	font-weight: bold;
	z-index: 2;
}

.step-number {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--teal);
	background: #e6fffa;
	border: 1px solid #99f6e4;
	padding: 2px 8px;
	border-radius: 4px;
	width: fit-content;
	margin-bottom: 8px;
}

.step-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0 0 6px;
}

.step-desc {
	font-size: 0.8rem;
	color: var(--muted);
	margin: 0;
	line-height: 1.5;
}

/* ご注意事項ボックス */
.loan-notice-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px 22px;
}

.notice-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #475569;
	margin: 0 0 6px;
}

.notice-title svg {
	color: #64748b;
	flex-shrink: 0;
}

.notice-desc {
	font-size: 0.8rem;
	color: var(--muted);
	margin: 0;
	line-height: 1.6;
}

/* 関連商品セクション */
.section-related {
	margin-top: 54px;
	padding-top: 36px;
	border-top: 1px solid var(--border);
}

/* ==========================================================================
   8.1. 比較ページ (Compare Page Styles - 洗練されたUIと高い可読性)
   ========================================================================== */

.compare-page-header {
	margin-bottom: 24px;
}

.compare-page-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ecfeff;
	color: #0e7490;
	border: 1px solid #a5f3fc;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 0.82rem;
	font-weight: 800;
	margin-bottom: 12px;
	letter-spacing: 0.02em;
}

/* モバイル向け横スクロールヒント案内 */
.compare-scroll-hint {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 16px;
}

@media (max-width: 768px) {
	.compare-scroll-hint {
		display: flex;
	}
}

/* 商品未選択カード */
.compare-empty-card {
	background: #ffffff;
	border: 1.5px dashed #cbd5e1;
	border-radius: var(--radius);
	padding: 64px 24px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(11, 26, 66, 0.04);
	margin-bottom: 40px;
}

.compare-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #94a3b8;
	margin-bottom: 20px;
}

.compare-empty-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--navy);
	margin: 0 0 10px;
}

.compare-empty-desc {
	font-size: 0.94rem;
	color: #64748b;
	max-width: 520px;
	margin: 0 auto 26px;
	line-height: 1.65;
}

.compare-empty-actions {
	display: flex;
	justify-content: center;
}

/* 比較テーブル全体コンテナ */
.compare-table-container {
	margin-bottom: 32px;
	position: relative;
}

.compare-table-wrap {
	overflow-x: auto;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(11, 26, 66, 0.06);
	-webkit-overflow-scrolling: touch;
	position: relative;
}

.compare-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #ffffff;
	text-align: left;
}

.compare-table th,
.compare-table td {
	border-bottom: 1px solid #eef2f6;
	padding: 16px 20px;
	vertical-align: middle;
	font-size: 0.92rem;
}

/* 左端固定ヘッダー共通設定 */
.compare-th-head,
.compare-row-label {
	width: 185px;
	min-width: 185px;
	max-width: 185px;
	background: #f8fafc;
	font-weight: 700;
	color: #334155;
	border-right: 2px solid #e2e8f0;
	position: sticky;
	left: 0;
	z-index: 3;
	box-shadow: 4px 0 12px -3px rgba(15, 23, 42, 0.06);
}

/* 表左上セル（比較項目ヘッダー：下揃え配置） */
.compare-th-head {
	z-index: 5;
	background: #f1f5f9;
	padding: 20px 18px 18px;
	vertical-align: bottom;
	height: 1px;
}

.compare-th-head .head-lead-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	min-height: 38px;
	margin-bottom: 0;
}

.compare-th-head .head-lead {
	font-size: 1.05rem;
	font-weight: 900;
	color: var(--navy);
}

.compare-th-head .head-count-badge {
	font-size: 0.72rem;
	font-weight: 800;
	background: #0284c7;
	color: #ffffff;
	padding: 2px 8px;
	border-radius: 999px;
	white-space: nowrap;
}

.compare-th-head .head-sub {
	display: block;
	font-size: 0.76rem;
	color: #64748b;
	font-weight: 600;
}

/* 各商品のヘッダーセル（上部カード：高さ100%で下部ボタンスタイルを統一） */
.compare-th-product {
	min-width: 280px;
	max-width: 340px;
	background: #ffffff;
	border-right: 1px solid #eef2f6;
	padding: 20px 20px 18px;
	vertical-align: top;
	height: 1px;
}

.compare-product-card-top {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
	height: 100%;
}

.compare-product-brand {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.compare-product-logo-wrap {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.compare-product-banner-thumb {
	max-height: 64px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	align-self: flex-start;
}

.compare-product-logo-wrap .bank-logo {
	max-height: 40px;
	width: auto;
	object-fit: contain;
}

.compare-product-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.compare-bank-name {
	font-size: 0.78rem;
	font-weight: 700;
	color: #64748b;
	line-height: 1.3;
}

.compare-product-name {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--navy);
	margin: 0;
	line-height: 1.35;
}

.compare-product-name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.compare-product-name a:hover {
	color: var(--teal);
}

/* 商品タグ */
.compare-product-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.compare-tag {
	font-size: 0.74rem;
	font-weight: 800;
	padding: 3px 9px;
	border-radius: 4px;
	white-space: nowrap;
}

.compare-tag.tag-featured {
	background: #fef3c7;
	color: #b45309;
	border: 1px solid #fde68a;
}

.compare-tag.tag-type {
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
}

.compare-tag.tag-rate {
	background: #ecfeff;
	color: #0e7490;
	border: 1px solid #a5f3fc;
}

/* ヘッダー内クイックCTA（最下部に押し出し配置） */
.compare-header-actions {
	margin-top: auto;
	padding-top: 4px;
}

.btn-compare-official-sm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff;
	font-size: 0.82rem;
	font-weight: 800;
	padding: 8px 14px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 162, 184, 0.22);
	transition: all 0.18s ease;
}

.btn-compare-official-sm:hover {
	background: linear-gradient(135deg, #008f9f 0%, #007287 100%);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 162, 184, 0.32);
}

/* ==========================================================================
   カテゴリセクション行（融資スペック、条件、手数料などのグループ見出し）
   背景色を淡いトーンに調整し、表全体の可読性と軽快感を向上
   ========================================================================== */

.compare-section-row {
	background: linear-gradient(90deg, #f0f4f8 0%, #f6f9fc 100%);
}

.compare-section-th {
	background: transparent;
	padding: 12px 20px !important;
	border-top: 1px solid #e2e8f0 !important;
	border-bottom: 1.5px solid #e2e8f0 !important;
}

.compare-section-title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--navy);
	position: sticky;
	left: 20px;
}

.compare-section-title-wrap .compare-row-icon {
	color: var(--teal);
}

.compare-section-title {
	font-size: 0.94rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: var(--navy);
}

/* ==========================================================================
   各データ行とセル（行ホバー・アイコン・高視認性スタイル）
   ========================================================================== */

.compare-row {
	transition: background-color 0.14s ease;
}

.compare-row:hover {
	background-color: #f8fbfc;
}

.compare-row:hover .compare-row-label {
	background-color: #f1f7fa;
}

/* 左側項目見出し */
.compare-row-label {
	padding: 16px 18px;
}

.compare-label-content {
	display: flex;
	align-items: center;
	gap: 8px;
}

.compare-row-icon {
	flex-shrink: 0;
	color: #008fa0;
}

.compare-label-text {
	font-size: 0.88rem;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.35;
}

/* データセル共通 */
.compare-cell {
	color: #334155;
	border-right: 1px solid #eef2f6;
	line-height: 1.55;
	background: #ffffff;
	transition: background-color 0.14s ease;
}

.compare-row:hover .compare-cell {
	background-color: #f8fbfc;
}

/* 1. 金利（年率）セル */
.compare-cell-rate {
	background: #f0fdfa !important;
}

.compare-row:hover .compare-cell-rate {
	background: #e6fcf7 !important;
}

.compare-rate-box {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.compare-rate-main {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.compare-rate-prefix {
	font-size: 0.86rem;
	font-weight: 800;
	color: #0e7490;
}

.compare-rate-value {
	font-size: 1.42rem;
	font-weight: 900;
	color: #008fa0;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.compare-rate-type-sub {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	color: #0e7490;
	background: rgba(14, 116, 144, 0.1);
	padding: 2px 7px;
	border-radius: 4px;
	width: fit-content;
}

/* 2. 限度額 & 返済期間 */
.compare-amount-box,
.compare-term-box {
	display: flex;
	align-items: baseline;
}

.compare-amount-val {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
}

.compare-term-val {
	font-size: 0.94rem;
	font-weight: 700;
	color: #1e293b;
}

/* 3. 審査スピードバッジ */
.compare-speed-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.84rem;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #334155;
	border: 1px solid #e2e8f0;
}

.compare-speed-badge.is-fast {
	background: #fef3c7;
	color: #b45309;
	border-color: #fde68a;
}

.compare-speed-badge svg {
	color: currentColor;
}

/* 4. ステータスバッジ（不要/必要/無料/有料） */
.compare-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.84rem;
	font-weight: 800;
	padding: 4px 12px;
	border-radius: 999px;
}

.compare-status-badge.is-positive {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
}

.compare-status-badge.is-accent {
	background: #ecfeff;
	color: #0891b2;
	border: 1px solid #a5f3fc;
}

.compare-status-badge.is-neutral {
	background: #f8fafc;
	color: #475569;
	border: 1px solid #cbd5e1;
}

/* 5. テキスト系スペックボックス（対象年齢・申請対象・条件詳細） */
.compare-spec-text-block {
	font-size: 0.92rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.5;
}

.compare-spec-card-box {
	font-size: 0.86rem;
	font-weight: 500;
	color: #334155;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	line-height: 1.6;
	max-height: 160px;
	overflow-y: auto;
}

.compare-conditions-box {
	background: #fdfdfd;
	border-left: 3px solid #00a2b8;
}

/* 6. ピルタグ */
.compare-pill-tag,
.compare-bank-pill,
.compare-type-pill {
	display: inline-block;
	font-size: 0.84rem;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 6px;
	background: #f1f5f9;
	color: #1e293b;
	border: 1px solid #e2e8f0;
}

.compare-pill-tag.tag-rate {
	background: #ecfeff;
	color: #0e7490;
	border-color: #a5f3fc;
}

.compare-val-empty {
	color: #94a3b8;
	font-weight: 700;
}

/* ==========================================================================
   最下部：アクション行 & ツールバー
   ========================================================================== */

.compare-row-actions td.compare-cell-actions {
	padding: 22px 20px;
	background: #f8fafc;
}

.compare-row:hover .compare-cell-actions {
	background: #f1f5f9;
}

.compare-cell-btn-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.btn-compare-official {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 800;
	padding: 12px 18px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 162, 184, 0.28);
	transition: all 0.2s ease;
}

.btn-compare-official:hover {
	background: linear-gradient(135deg, #008f9f 0%, #007287 100%);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 162, 184, 0.38);
}

.btn-compare-detail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #ffffff;
	color: var(--navy);
	border: 1.5px solid #cbd5e1;
	font-size: 0.86rem;
	font-weight: 700;
	padding: 9px 16px;
	border-radius: 999px;
	text-decoration: none;
	transition: all 0.18s ease;
}

.btn-compare-detail:hover {
	background: #f1f5f9;
	border-color: var(--navy);
	color: var(--navy);
}

/* 比較ページ下部ツールバー */
.compare-bottom-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 40px;
	padding-top: 8px;
}

.btn-outline-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	color: var(--teal);
	border: 1.8px solid var(--teal);
	border-radius: 999px;
	padding: 10px 20px;
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
	transition: all 0.2s ease;
}

.btn-outline-primary:hover {
	background: var(--teal);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 155, 176, 0.25);
}

.compare-clear-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ef4444 !important;
	font-size: 0.88rem;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 8px;
	background: transparent;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.18s ease;
}

.compare-clear-btn:hover {
	background: #fef2f2;
	border-color: #fecaca;
}

/* 画面幅が狭い場合のレスポンシブ微調整 */
@media (max-width: 768px) {
	.compare-th-head,
	.compare-row-label {
		width: 140px;
		min-width: 140px;
		max-width: 140px;
		padding: 12px 10px;
	}

	.compare-th-head .head-lead-wrap {
		min-height: 34px;
	}

	.compare-label-text {
		font-size: 0.8rem;
	}

	.compare-th-product {
		min-width: 230px;
		max-width: 260px;
		padding: 16px 14px;
	}

	.compare-rate-value {
		font-size: 1.25rem;
	}

	.compare-table th,
	.compare-table td {
		padding: 12px 14px;
	}
}

/* 比較バー (固定フローティング) */
.compare-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(7, 21, 51, 0.96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	padding: 14px 0;
	z-index: 100;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.32);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	animation: slideUpCompareBar 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCompareBar {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

body.has-compare-bar {
	padding-bottom: 74px;
}

.compare-bar-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.compare-bar-label {
	font-size: 0.92rem;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.compare-bar-label .js-compare-count {
	color: #5eead4;
	font-size: 1.05rem;
}

.compare-bar-items {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	flex: 1;
	margin: 0;
	padding: 0;
	list-style: none;
}

.compare-bar-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 0.85rem;
	color: #ffffff;
}

.compare-bar-chip a {
	color: #ffffff;
	text-decoration: none;
	max-width: 160px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.compare-bar-chip a:hover {
	color: #5eead4;
}

.compare-chip-remove {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	padding: 0;
	font-size: 1.15rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease;
}

.compare-chip-remove:hover {
	color: #ff6b6b;
}

.compare-bar-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.compare-bar-actions .btn-ghost {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.compare-bar-actions .btn-ghost:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
	color: #ffffff;
}

.compare-bar-actions .btn-primary {
	background: #00a2b8;
	color: #ffffff;
	padding: 8px 20px;
}

.compare-bar-actions .btn-primary:hover {
	background: #008f9f;
}

/* 金融機関一覧テーブル（ロゴ・名称・商品名・商品数） */
.bank-index-table-wrap {
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.bank-index-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
}

.bank-index-table th,
.bank-index-table td {
	padding: 14px 18px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	vertical-align: middle;
}

.bank-index-table thead th {
	background: #f8fafc;
	color: #475569;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.bank-index-table tbody tr:last-child td {
	border-bottom: none;
}

.bank-index-table tbody tr:hover {
	background: var(--teal-light);
}

.bank-col-logo {
	width: 88px;
}

.bank-index-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}

.bank-index-table .bank-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	display: block;
}

.bank-index-table .bank-logo-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--teal-light);
	color: var(--teal);
	font-weight: 800;
	font-size: 1.1rem;
}

.bank-index-name-link {
	color: var(--navy);
	font-weight: 700;
	text-decoration: none;
}

.bank-index-name-link:hover {
	color: var(--teal);
}

.bank-col-products {
	line-height: 1.6;
}

.bank-col-products a {
	color: var(--teal);
	text-decoration: none;
	font-size: 0.92rem;
}

.bank-col-products a:hover {
	text-decoration: underline;
}

.bank-col-count {
	width: 88px;
	white-space: nowrap;
	text-align: center;
	font-weight: 700;
	color: var(--navy);
}

.bank-index-table thead .bank-col-count {
	text-align: center;
}

.bank-index-empty {
	color: var(--muted);
}

/* 診断フォーム */
.diagnosis-card {
	background: #fff;
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
	max-width: 640px;
	margin: 0 auto;
}

/* ==========================================================================
   7. よくある質問（マンガ風対話形式 FAQ）
   ========================================================================== */

/* ページ全体の基本幅とスクロール挙動 */
html {
	scroll-behavior: smooth;
}

.faq-header {
	text-align: center;
	margin-bottom: 32px;
}

.faq-header-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ecfeff;
	color: var(--teal-dark);
	border: 1px solid #a5f3fc;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.faq-comic-container {
	max-width: 860px;
	margin-inline: auto;
	margin-bottom: 48px;
}

/* 1. 登場キャラクター紹介カード */
.faq-cast-card {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
	border-radius: var(--radius);
	padding: 22px 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 14px rgba(11, 26, 66, 0.03);
}

.faq-cast-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #cbd5e1;
}

.faq-cast-tag {
	display: inline-block;
	background: var(--navy);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 2px 8px;
	border-radius: 4px;
}

.faq-cast-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--navy);
}

.faq-cast-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.faq-cast-box {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	box-shadow: 0 2px 8px rgba(11, 26, 66, 0.02);
}

.faq-cast-box.is-user {
	border-left: 4px solid #0284c7;
}

.faq-cast-box.is-expert {
	border-left: 4px solid #10b981;
}

.faq-cast-avatar {
	flex-shrink: 0;
}

.dialogue-avatar-svg {
	display: block;
	border-radius: 50%;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.06));
}

.faq-cast-content {
	flex: 1;
	min-width: 0;
}

.faq-cast-name-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 4px;
}

.faq-cast-name {
	font-size: 0.98rem;
	font-weight: 800;
	color: var(--navy);
}

.faq-cast-badge {
	font-size: 0.72rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 999px;
}

.badge-user {
	background: #e0f2fe;
	color: #0369a1;
}

.badge-expert {
	background: #dcfce7;
	color: #15803d;
}

.faq-cast-desc {
	margin: 0;
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.45;
}

/* 2. 質問クイックジャンプナビ */
.faq-jump-nav {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-sm);
	padding: 14px 18px;
	margin-bottom: 28px;
	box-shadow: 0 2px 8px rgba(11, 26, 66, 0.03);
}

.faq-jump-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 10px;
}

.faq-jump-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.faq-jump-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	padding: 5px 12px;
	text-decoration: none;
	font-size: 0.82rem;
	color: #334155;
	transition: all 0.16s ease;
}

.faq-jump-chip:hover {
	background: #ecfeff;
	border-color: var(--teal);
	color: var(--teal-dark);
	transform: translateY(-1px);
}

.chip-q {
	background: var(--navy);
	color: #ffffff;
	font-size: 0.7rem;
	font-weight: 800;
	padding: 1px 6px;
	border-radius: 999px;
}

.chip-title {
	font-weight: 600;
}

/* 3. マンガ対話シーン一覧 */
.faq-scenes-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-bottom: 40px;
}

.faq-scene-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius);
	padding: 24px 26px;
	box-shadow: 0 4px 18px rgba(11, 26, 66, 0.04);
	scroll-margin-top: 90px;
	transition: border-color 0.18s ease;
}

.faq-scene-card:hover {
	border-color: #cbd5e1;
}

.faq-scene-head {
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f5f9;
}

.faq-scene-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.faq-scene-q {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, #00a2b8 0%, #00839c 100%);
	color: #ffffff;
	font-weight: 900;
	font-size: 0.95rem;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 162, 184, 0.28);
}

.faq-scene-topic {
	background: #f1f5f9;
	color: #475569;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
}

.faq-scene-title {
	margin: 0;
	font-size: 1.18rem;
	font-weight: 800;
	color: var(--navy);
	line-height: 1.45;
}

.faq-dialogue-body {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* 対話行（左アバター + 右吹き出し） */
.chat-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.chat-speaker {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 58px;
	text-align: center;
}

.chat-speaker-avatar {
	width: 52px;
	height: 52px;
	margin-bottom: 4px;
}

.chat-speaker-avatar svg {
	width: 100%;
	height: 100%;
}

.chat-speaker-name {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--navy);
	white-space: nowrap;
}

.chat-bubble-wrap {
	flex: 1;
	min-width: 0;
}

/* 吹き出し（Speech Bubble） */
.chat-bubble {
	position: relative;
	border-radius: 14px;
	padding: 16px 18px;
}

/* 吹き出しの三角矢印 */
.chat-bubble::before {
	content: "";
	position: absolute;
	top: 18px;
	left: -9px;
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-right: 9px solid transparent;
}

.chat-bubble::after {
	content: "";
	position: absolute;
	top: 19px;
	left: -7px;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-right: 7px solid transparent;
}

/* 1. ナビくんの質問吹き出し（淡いブルー） */
.bubble-user {
	background: #f0f9ff;
	border: 1.5px solid #bae6fd;
}

.bubble-user::before {
	border-right-color: #bae6fd;
}

.bubble-user::after {
	border-right-color: #f0f9ff;
}

/* 2. 山田先生の回答吹き出し（淡いグリーン） */
.bubble-expert {
	background: #f0fdf4;
	border: 1.5px solid #86efac;
}

.bubble-expert::before {
	border-right-color: #86efac;
}

.bubble-expert::after {
	border-right-color: #f0fdf4;
}

/* 吹き出し内タグ（QUESTION / ANSWER） */
.bubble-tag {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	padding: 2px 6px;
	border-radius: 4px;
	margin-bottom: 6px;
}

.tag-user {
	background: #0284c7;
	color: #ffffff;
}

.tag-expert {
	background: #059669;
	color: #ffffff;
}

/* 先生の核心解答見出し */
.bubble-lead-box {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.bubble-lead-icon {
	color: #059669;
	flex-shrink: 0;
}

.bubble-lead-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	color: #065f46;
	line-height: 1.4;
}

.bubble-main-text {
	margin: 0;
	font-size: 0.92rem;
	color: #1e293b;
	line-height: 1.68;
}

.is-user .bubble-main-text {
	font-weight: 600;
	color: #0f172a;
}

.bubble-aside-text {
	margin: 6px 0 0;
	font-size: 0.82rem;
	color: #64748b;
	font-style: italic;
}

/* 山田先生のワンポイントアドバイス */
.bubble-advice-box {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	padding: 12px 14px;
	margin-top: 12px;
}

.advice-icon {
	color: #d97706;
	flex-shrink: 0;
	margin-top: 1px;
}

.advice-content {
	flex: 1;
	min-width: 0;
}

.advice-title {
	display: block;
	font-size: 0.84rem;
	font-weight: 800;
	color: #92400e;
	margin-bottom: 2px;
}

.advice-desc {
	margin: 0;
	font-size: 0.84rem;
	color: #78350f;
	line-height: 1.5;
}

/* 4. 誘導CTAブロック */
.faq-bottom-cta {
	background: linear-gradient(135deg, #0c326d 0%, #00839c 100%);
	color: #ffffff;
	border-radius: var(--radius);
	padding: 32px 28px;
	text-align: center;
	margin-top: 36px;
	box-shadow: 0 8px 24px rgba(12, 50, 109, 0.16);
}

.faq-cta-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(4px);
	font-size: 0.78rem;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.faq-cta-title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 800;
	color: #ffffff;
}

.faq-cta-desc {
	margin: 0 auto 20px;
	max-width: 560px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.55;
}

.faq-cta-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

.faq-btn-shindan {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: #ffffff;
	color: #0c326d;
	font-size: 0.92rem;
	font-weight: 800;
	padding: 12px 24px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	transition: all 0.18s ease;
}

.faq-btn-shindan:hover {
	background: #f0fdfa;
	color: var(--teal-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.faq-btn-archive {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
	font-size: 0.9rem;
	font-weight: 700;
	padding: 11px 20px;
	border-radius: 999px;
	text-decoration: none;
	transition: all 0.18s ease;
}

.faq-btn-archive:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: #ffffff;
	color: #ffffff;
}

/* FAQ レスポンシブ (スマホ・タブレット) */
@media (max-width: 768px) {
	.faq-cast-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.faq-scene-card {
		padding: 18px 14px;
	}

	.faq-scene-title {
		font-size: 1.05rem;
	}

	.chat-row {
		gap: 10px;
	}

	.chat-speaker {
		width: 46px;
	}

	.chat-speaker-avatar {
		width: 42px;
		height: 42px;
	}

	.chat-bubble {
		padding: 13px 14px;
		border-radius: 12px;
	}

	.bubble-lead-title {
		font-size: 0.95rem;
	}

	.bubble-main-text {
		font-size: 0.86rem;
	}

	.faq-bottom-cta {
		padding: 24px 16px;
	}

	.faq-cta-title {
		font-size: 1.15rem;
	}

	.faq-cta-actions {
		flex-direction: column;
		width: 100%;
	}

	.faq-btn-shindan,
	.faq-btn-archive {
		width: 100%;
	}
}

/* ==========================================================================
   8. フッター (Site Footer)
   ========================================================================== */

.site-footer {
	background: linear-gradient(180deg, #f8fafc 0%, #eef6f8 100%);
	color: var(--text);
	padding: 48px 0 24px;
	margin-top: 60px;
	border-top: 1px solid #dce8ec;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid #dce8ec;
}

.footer-brand {
	max-width: 360px;
}

.site-logo-footer {
	font-size: 1.4rem;
	margin-bottom: 12px;
}

.footer-copy {
	color: var(--muted);
	font-size: 0.85rem;
	margin: 0;
}

.footer-menu a {
	color: #334155;
	font-size: 0.88rem;
	font-weight: 600;
}

.footer-menu a:hover {
	color: var(--teal-dark);
}

.footer-legal {
	padding-top: 24px;
	color: #64748b;
	font-size: 0.78rem;
}

.footer-legal p {
	margin: 0 0 6px;
}

/* ==========================================================================
   8.1. フローティングローン診断ボタン (Floating Diagnosis Widget - 垂直中央配置)
   ========================================================================== */

.floating-diagnosis-wrap {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 95;
	pointer-events: none;
	transition: right 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-diagnosis-btn {
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-diagnosis-btn:hover {
	transform: translateX(-4px) scale(1.03);
}

/* ミニ吹き出し */
.floating-diagnosis-bubble {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fffbeb;
	border: 1.5px solid #fcd34d;
	color: #92400e;
	font-size: 0.74rem;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 6px;
	margin-right: 12px;
	box-shadow: 0 3px 10px rgba(245, 158, 11, 0.2);
	animation: floatBubbleBounce 2.4s ease-in-out infinite;
}

@keyframes floatBubbleBounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-3px);
	}
}

.bubble-sparkle {
	font-size: 0.72rem;
	line-height: 1;
}

.bubble-txt {
	white-space: nowrap;
	letter-spacing: 0.02em;
}

.floating-diagnosis-bubble .bubble-arrow {
	position: absolute;
	bottom: -6px;
	right: 18px;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #fcd34d;
}

.floating-diagnosis-bubble .bubble-arrow::after {
	content: "";
	position: absolute;
	bottom: 1.5px;
	left: -4px;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #fffbeb;
}

/* メインボタンカード */
.floating-diagnosis-main {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #0c326d 0%, #00839c 100%);
	color: #ffffff;
	padding: 5px 14px 5px 6px;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 6px 20px rgba(12, 50, 109, 0.32), 0 2px 8px rgba(0, 162, 184, 0.25);
	transition: all 0.22s ease;
}

.floating-diagnosis-btn:hover .floating-diagnosis-main {
	background: linear-gradient(135deg, #0a2754 0%, #006d82 100%);
	border-color: #ffffff;
	box-shadow: 0 8px 26px rgba(12, 50, 109, 0.42), 0 4px 12px rgba(0, 162, 184, 0.35);
}

/* 専門家アバター */
.floating-expert-avatar {
	position: relative;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.floating-expert-avatar svg {
	width: 100%;
	height: 100%;
	display: block;
	border-radius: 50%;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.avatar-role-badge {
	position: absolute;
	bottom: -2px;
	right: -2px;
	background: #f59e0b;
	color: #ffffff;
	font-size: 0.6rem;
	font-weight: 900;
	padding: 1px 4px;
	border-radius: 4px;
	border: 1px solid #ffffff;
	line-height: 1.2;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* テキスト情報 */
.floating-diagnosis-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.floating-diagnosis-tag {
	font-size: 0.64rem;
	font-weight: 800;
	color: #a5f3fc;
	background: rgba(255, 255, 255, 0.16);
	padding: 1px 5px;
	border-radius: 3px;
	line-height: 1.2;
	margin-bottom: 2px;
}

.floating-diagnosis-label {
	font-size: 0.96rem;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.03em;
	line-height: 1.2;
	white-space: nowrap;
}

/* 矢印アイコン */
.floating-diagnosis-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: #ffffff;
	margin-left: 2px;
	transition: transform 0.18s ease, background 0.18s ease;
}

.floating-diagnosis-btn:hover .floating-diagnosis-arrow {
	transform: translateX(2px);
	background: #ffffff;
	color: #0c326d;
}

/* ==========================================================================
   8.2. ページトップへ戻るフローティングボタン (Back to Top Widget)
   ========================================================================== */

.btn-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 28px;
	z-index: 94;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	color: var(--navy);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	box-shadow: 0 4px 16px rgba(11, 26, 66, 0.12);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(12px) scale(0.92);
	transition:
		opacity 0.28s ease,
		visibility 0.28s ease,
		transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
		bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1),
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.btn-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.btn-back-to-top:hover {
	background: var(--navy);
	color: #ffffff;
	border-color: var(--navy);
	box-shadow: 0 8px 22px rgba(11, 26, 66, 0.24);
	transform: translateY(-3px) scale(1.05);
}

.btn-back-to-top:active {
	transform: translateY(-1px) scale(0.98);
}

.back-to-top-icon {
	display: block;
	width: 15px;
	height: 15px;
	stroke-width: 2.8;
	transition: transform 0.2s ease;
}

.btn-back-to-top:hover .back-to-top-icon {
	transform: translateY(-2px);
}

.back-to-top-text {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin-top: -1px;
}

/* 比較バー表示時の位置自動調整 */
body.has-compare-bar .btn-back-to-top {
	bottom: 92px;
}

/* ==========================================================================
   9. レスポンシブ (Responsive Media Queries)
   ========================================================================== */

@media (max-width: 1200px) {
	.header-inner {
		gap: 18px;
	}

	.nav-menu {
		gap: 6px 16px;
	}

	.nav-menu a {
		font-size: 0.88rem;
	}

	.header-actions {
		gap: 12px;
	}

	.header-cta {
		padding: 7px 14px;
		font-size: 0.86rem;
	}
}

@media (max-width: 1024px) {
	.hero-slide-inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.hero-slide-visual {
		display: none;
	}

	.hero-slider-nav {
		padding: 0 12px;
	}

	.hero-search {
		grid-template-columns: repeat(2, 1fr);
	}

	.btn-search {
		grid-column: span 2;
	}

	.loan-grid-featured {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.features-bar {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.feature-item:not(:last-child)::after {
		display: none;
	}

	.type-grid-kinds {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.loan-hero-metrics {
		grid-template-columns: repeat(2, 1fr);
	}

	.loan-flow-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.loan-flow-step:not(:last-child)::after {
		display: none;
	}

	.showcase-metrics-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 992px) {
	.header-inner {
		grid-template-columns: auto auto;
	}

	.nav-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.header-panel {
		display: none;
		position: absolute;
		top: 100%;
		left: -16px;
		right: -16px;
		background: #ffffff;
		padding: 24px 20px;
		border-top: 1px solid var(--border);
		box-shadow: 0 16px 32px rgba(11, 26, 66, 0.12);
	}

	.header-panel.is-open {
		display: block;
	}

	.nav-menu {
		flex-direction: column;
		gap: 16px;
		margin-bottom: 24px;
	}

	.nav-menu a {
		font-size: 1rem;
		display: block;
		padding: 4px 0;
	}

	.header-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.header-fav,
	.header-cta {
		justify-content: center;
		padding: 10px 18px;
		font-size: 0.95rem;
	}
}

@media (max-width: 768px) {
	.hero-slider--image .hero-slide-image {
		padding: 0;
	}

	.hero-slide-image-link img {
		aspect-ratio: 5 / 6;
	}

	.hero-slide {
		min-height: 440px;
		padding: 44px 0 60px;
	}

	.hero-slide-title {
		font-size: 1.65rem;
	}

	.hero-slide-desc {
		font-size: 0.9rem;
	}

	.hero-slider-arrow {
		width: 38px;
		height: 38px;
	}

	.home-search-panel {
		padding: 24px 18px;
	}

	.home-search-title {
		font-size: 1.25rem;
	}

	.hero-search {
		grid-template-columns: 1fr;
	}

	.btn-search {
		grid-column: span 1;
	}

	.loan-grid-featured {
		grid-template-columns: 1fr;
	}

	.type-grid-kinds {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bank-index-table th,
	.bank-index-table td {
		padding: 12px 14px;
	}

	.footer-inner {
		flex-direction: column;
	}

	/* 詳細ページのモバイル最適化 */
	.loan-detail-hero-card {
		padding: 22px 18px;
		border-radius: 12px;
	}

	.loan-detail-title {
		font-size: 1.35rem;
	}

	.loan-detail-banner-img {
		max-height: 88px;
	}

	.loan-hero-metrics {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 12px;
	}

	.metric-card {
		padding: 10px 12px;
	}

	.metric-rate .metric-val {
		font-size: 1.25rem;
	}

	.loan-detail-cta-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.loan-detail-cta-bar .loan-card-compare {
		width: 100%;
		justify-content: center;
	}

	.btn-official-cta {
		width: 100%;
		padding: 14px 18px;
		font-size: 0.95rem;
	}

	.loan-detail-section {
		padding: 20px 18px;
		border-radius: 12px;
	}

	.spec-table th {
		width: 110px;
		padding: 12px 10px;
		font-size: 0.85rem;
	}

	.spec-table td {
		padding: 12px 12px;
		font-size: 0.88rem;
	}

	.loan-flow-grid {
		grid-template-columns: 1fr;
	}

	/* TOP3 詳細解説セクションのモバイル最適化 */
	.section-top-showcase {
		padding: 40px 0 48px;
	}

	.top-showcase-heading-row {
		gap: 8px 10px;
	}

	.top-showcase-title {
		font-size: 1.25rem;
	}

	.top-showcase-lead {
		font-size: 0.8rem !important;
	}

	.showcase-card-header,
	.showcase-metrics-grid,
	.showcase-detail-body,
	.showcase-action-bar,
	.showcase-remarks {
		padding: 16px 16px;
	}

	.showcase-remarks {
		padding-top: 0;
	}

	.showcase-hero-banner {
		padding: 0 16px 12px;
	}

	.showcase-hero-banner-img {
		max-height: 72px;
	}

	.showcase-card-brand {
		flex-wrap: wrap;
		gap: 12px;
	}

	.showcase-product-name {
		font-size: 1.12rem;
	}

	.showcase-badges .btn-showcase-official {
		min-height: 44px;
		padding: 10px 16px;
	}

	.showcase-metrics-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.showcase-metric {
		padding: 10px 12px;
	}

	.showcase-metric.is-rate .metric-value {
		font-size: 1.25rem;
	}

	.showcase-action-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.showcase-action-bar .loan-card-compare {
		width: 100%;
		justify-content: center;
	}

	.showcase-buttons-group {
		width: 100%;
		flex-direction: column;
		gap: 10px;
	}

	.btn-showcase-detail,
	.btn-showcase-official {
		width: 100%;
		text-align: center;
		padding: 12px 16px;
	}

	/* モバイルのフローティング診断ボタン（垂直中央配置） */
	.floating-diagnosis-wrap {
		right: 8px;
		top: 50%;
		bottom: auto;
		transform: translateY(-50%);
	}

	body.has-compare-bar .floating-diagnosis-wrap {
		bottom: auto;
	}

	.floating-diagnosis-bubble {
		font-size: 0.68rem;
		padding: 2px 8px;
		margin-right: 8px;
	}

	.floating-expert-avatar {
		width: 40px;
		height: 40px;
	}

	.floating-diagnosis-main {
		padding: 4px 12px 4px 5px;
		gap: 8px;
	}

	.floating-diagnosis-label {
		font-size: 0.88rem;
	}

	.floating-diagnosis-arrow {
		width: 20px;
		height: 20px;
	}

	/* モバイルのページトップへ戻るボタン */
	.btn-back-to-top {
		right: 14px;
		bottom: 18px;
		width: 40px;
		height: 40px;
	}

	body.has-compare-bar .btn-back-to-top {
		bottom: 104px;
	}

	.back-to-top-icon {
		width: 14px;
		height: 14px;
	}

	.back-to-top-text {
		font-size: 0.58rem;
	}
}

/* ==========================================================================
   10. 全サイト共通モバイル最適化（320px 以上）
   ========================================================================== */

:root {
	--compare-bar-h: 0px;
}

body.has-compare-bar {
	padding-bottom: var(--compare-bar-h);
}

/* WordPress 本文・埋め込みコンテンツの横幅超過を防止 */
.entry-content,
.prose-page {
	min-width: 0;
	overflow-wrap: anywhere;
}

.entry-content img,
.prose-page img,
.entry-content iframe,
.prose-page iframe {
	max-width: 100%;
	height: auto;
}

.entry-content table,
.prose-page table,
.entry-content pre,
.prose-page pre {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ブログ記事カード */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.post-card {
	min-width: 0;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.post-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.post-card-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eaf0f5;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.post-card-meta {
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 0.78rem;
}

.post-card-title {
	margin: 0 0 10px;
	color: var(--navy);
	font-size: 1rem;
	line-height: 1.5;
}

.post-card-excerpt {
	margin: 0;
	color: var(--muted);
	font-size: 0.86rem;
	line-height: 1.7;
}

/* 共通検索・コメントフォーム */
.search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	width: min(100%, 680px);
}

.search-form input,
.comments-area input:not([type="checkbox"]):not([type="radio"]),
.comments-area textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	background: #ffffff;
	color: var(--text);
	font: inherit;
}

.comments-area textarea {
	min-height: 140px;
	resize: vertical;
}

.comment-list {
	padding-left: 24px;
}

.comment-list img {
	max-width: 100%;
	height: auto;
}

/* ページネーションと投稿ナビゲーション */
.navigation.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1 1 240px;
	min-width: 0;
}

/* 診断ページのコンパクトヒーロー */
.hero-compact {
	position: relative;
	padding: 52px 0;
	background: linear-gradient(135deg, #f0f9ff 0%, #e6fffa 100%);
	border-bottom: 1px solid #dbeafe;
}

.hero-compact .hero-inner {
	position: relative;
}

.hero-compact .hero-badge {
	display: inline-flex;
	margin: 0 0 14px;
	padding: 5px 14px;
	border: 1px solid #bce6eb;
	border-radius: 999px;
	background: #ffffff;
	color: var(--teal-dark);
	font-size: 0.82rem;
	font-weight: 800;
}

.hero-compact .hero-title {
	margin: 0 0 10px;
	color: var(--navy);
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	line-height: 1.3;
}

.hero-compact .hero-lead {
	margin: 0 0 26px;
	color: var(--muted);
}

/* 404 ページのアクション */
.empty-hero > p:last-child {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* モバイル比較カードはデスクトップでは非表示 */
.compare-mobile-cards {
	display: none;
}

/* タッチ操作時の縦スクロールを維持しながら横スワイプを許可 */
.hero-slider {
	touch-action: pan-y pinch-zoom;
}

@media (hover: hover) and (pointer: fine) {
	.post-card:hover {
		transform: translateY(-2px);
		border-color: rgba(0, 155, 176, 0.45);
		box-shadow: var(--shadow-md);
	}
}

@media (max-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 992px) {
	body.nav-open {
		overflow: hidden;
	}

	.header-panel {
		z-index: 60;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.nav-menu a {
		padding: 12px 0;
	}
}

@media (max-width: 768px) {
	.container {
		width: min(100% - 28px, var(--container));
	}

	.section {
		padding: 36px 0;
	}

	.section-featured-loans {
		padding: 36px 0 42px;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin-bottom: 20px;
	}

	.section-header h1,
	.section-header h2,
	.page-title {
		font-size: 1.3rem;
		line-height: 1.4;
	}

	.section-more {
		min-height: 44px;
	}

	.site-logo,
	.custom-logo-link {
		max-width: calc(100vw - 90px);
		overflow: hidden;
		font-size: 1.2rem;
		text-overflow: ellipsis;
	}

	.nav-toggle {
		width: 44px;
		height: 44px;
	}

	.header-panel {
		left: -14px;
		right: -14px;
		padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
	}

	.footer-inner {
		align-items: flex-start;
		gap: 16px;
		padding-bottom: 16px;
	}

	.site-footer {
		margin-top: 40px;
		padding: 28px 0 16px;
	}

	.site-logo-footer {
		margin-bottom: 6px;
		font-size: 1.2rem;
	}

	.footer-copy {
		font-size: 0.78rem;
		line-height: 1.5;
	}

	.footer-nav,
	.footer-menu {
		width: 100%;
	}

	.footer-menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 14px;
	}

	.footer-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		font-size: 0.8rem;
	}

	.footer-legal {
		padding-top: 14px;
		font-size: 0.72rem;
		line-height: 1.55;
	}

	.advertising-disclosure-inner {
		flex-wrap: wrap;
		min-height: 38px;
		padding: 6px 0;
	}

	/* ホームヒーロー */
	.hero-slide {
		min-height: 0;
		padding: 38px 0 58px;
	}

	.hero-slide-title {
		font-size: clamp(1.45rem, 7vw, 1.8rem);
	}

	.hero-slide-tags {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.hero-slide-tags::-webkit-scrollbar {
		display: none;
	}

	.hero-pill {
		flex: 0 0 auto;
	}

	.hero-slide-actions,
	.hero-slide-actions .btn {
		width: 100%;
	}

	.hero-slider-arrow {
		display: none;
	}

	.hero-slider-dots {
		bottom: 4px;
	}

	.hero-slider-dot {
		position: relative;
		width: 44px;
		height: 44px;
		border: 0;
		background: transparent;
	}

	.hero-slider-dot::before {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 10px;
		height: 10px;
		border: 1px solid #94a3b8;
		border-radius: 999px;
		background: #cbd5e1;
		content: "";
		transform: translate(-50%, -50%);
		transition: width 0.2s ease, background 0.2s ease;
	}

	.hero-slider-dot.is-active {
		width: 44px;
		background: transparent;
		box-shadow: none;
	}

	.hero-slider-dot.is-active::before {
		width: 26px;
		background: var(--teal);
		border-color: var(--teal-dark);
	}

	.section-home-search {
		padding: 28px 0 14px;
	}

	.home-search-panel {
		padding: 22px 16px;
	}

	.hero-search {
		padding: 16px;
	}

	/* カード・一覧・フォーム */
	.post-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.loan-filter-grid {
		grid-template-columns: 1fr;
	}

	.loan-filter select,
	.loan-filter input,
	.hero-search select,
	.btn-search {
		min-height: 44px;
	}

	.loan-filter-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.loan-filter-actions .btn {
		width: 100%;
		min-height: 44px;
	}

	.loan-card-product-name,
	.loan-card-bank-name {
		display: -webkit-box;
		overflow: hidden;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.loan-card-specs dd,
	.loan-spec-item dd {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.loan-card-rate-value {
		font-size: 1.5rem;
	}

	.loan-card-compare {
		min-height: 44px;
	}

	.loan-card-official-btn {
		min-height: 44px;
		height: auto;
		padding: 10px 16px;
	}

	.compare-checkbox-box {
		width: 22px;
		height: 22px;
	}

	.type-grid-kinds {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.features-bar {
		padding: 20px 18px;
	}

	/* 商品詳細 */
	.loan-detail-meta-row,
	.loan-detail-title,
	.loan-detail-cta-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.loan-detail-brand,
	.loan-detail-badges {
		flex-wrap: wrap;
	}

	.loan-hero-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.metric-card {
		min-width: 0;
	}

	.metric-card .metric-val {
		overflow-wrap: anywhere;
	}

	.btn-official-cta {
		width: 100%;
		min-height: 48px;
		text-align: center;
		white-space: normal;
	}

	.spec-table-wrap {
		overflow: visible;
	}

	.spec-table,
	.spec-table tbody,
	.spec-table tr,
	.spec-table th,
	.spec-table td {
		display: block;
		width: 100%;
	}

	.spec-table tr {
		border-bottom: 1px solid var(--border);
	}

	.spec-table th {
		padding: 10px 12px 4px;
		border: 0;
		white-space: normal;
	}

	.spec-table td {
		padding: 4px 12px 12px;
		border: 0;
		overflow-wrap: anywhere;
	}

	.loan-flow-grid {
		grid-template-columns: 1fr;
	}

	.showcase-condition-box {
		flex-direction: column;
		align-items: flex-start;
	}

	.top-showcase-lead {
		font-size: 0.875rem !important;
	}

	/* FAQ とリンクのタッチ領域 */
	.faq-jump-chip {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.faq-scene-card {
		scroll-margin-top: calc(var(--header-h) + 16px);
	}

	/* 比較ページ：デスクトップ表を縦型カードへ切り替え */
	.compare-scroll-hint,
	.compare-table-container {
		display: none;
	}

	.compare-mobile-cards {
		display: grid;
		gap: 20px;
		margin-bottom: 28px;
	}

	.compare-mobile-card {
		overflow: hidden;
		background: #ffffff;
		border: 1.5px solid var(--border);
		border-radius: 14px;
		box-shadow: var(--shadow);
	}

	.compare-mobile-card-header {
		padding: 18px 16px 16px;
		background: linear-gradient(135deg, #f8fafc 0%, #eef9fa 100%);
		border-bottom: 1px solid var(--border);
	}

	.compare-mobile-brand {
		display: flex;
		align-items: center;
		min-height: 40px;
		margin-bottom: 10px;
	}

	.compare-mobile-brand .bank-logo {
		width: 40px;
		height: 40px;
		object-fit: contain;
	}

	.compare-mobile-banner {
		display: block;
		width: auto;
		max-width: 100%;
		max-height: 64px;
		height: auto;
		object-fit: contain;
		margin-bottom: 10px;
		border-radius: 6px;
	}

	.compare-mobile-product-name {
		margin: 0 0 10px;
		color: var(--navy);
		font-size: 1.05rem;
		line-height: 1.45;
		overflow-wrap: anywhere;
	}

	.compare-mobile-product-name a {
		color: inherit;
	}

	.compare-mobile-section {
		border-bottom: 1px solid var(--border-light);
	}

	.compare-mobile-section-title {
		display: flex;
		align-items: center;
		gap: 9px;
		min-height: 48px;
		padding: 10px 16px;
		color: var(--navy);
		font-size: 0.9rem;
		font-weight: 800;
		cursor: pointer;
		list-style: none;
	}

	.compare-mobile-section-title::-webkit-details-marker {
		display: none;
	}

	.compare-mobile-section-title::after {
		margin-left: auto;
		color: var(--teal);
		content: "+";
		font-size: 1.2rem;
	}

	.compare-mobile-section[open] .compare-mobile-section-title::after {
		content: "−";
	}

	.compare-mobile-spec-list {
		margin: 0;
		padding: 0 16px 12px;
	}

	.compare-mobile-spec-row {
		display: grid;
		grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
		gap: 12px;
		padding: 11px 0;
		border-top: 1px solid var(--border-light);
	}

	.compare-mobile-spec-row.is-highlight-rate {
		margin: 0 -8px;
		padding: 12px 8px;
		background: #f0fdfa;
		border-radius: 8px;
	}

	.compare-mobile-spec-row dt {
		color: #475569;
		font-size: 0.8rem;
		font-weight: 800;
	}

	.compare-mobile-spec-row dd {
		min-width: 0;
		margin: 0;
		color: #1e293b;
		font-size: 0.86rem;
		line-height: 1.55;
		overflow-wrap: anywhere;
	}

	.compare-mobile-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 16px;
		background: #f8fafc;
	}

	.compare-mobile-actions a {
		width: 100%;
		min-height: 44px;
	}

	.compare-bottom-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.compare-bottom-bar .btn {
		width: 100%;
		min-height: 44px;
		justify-content: center;
		text-align: center;
		white-space: normal;
	}

	/* 固定比較バー */
	.compare-bar {
		padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
	}

	.compare-bar-inner {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 8px 10px;
	}

	.compare-bar-label {
		font-size: 0.8rem;
	}

	.compare-bar-items {
		flex-wrap: nowrap;
		min-width: 0;
		overflow-x: auto;
		padding-bottom: 2px;
		-webkit-overflow-scrolling: touch;
	}

	.compare-bar-chip {
		flex: 0 0 auto;
		padding: 3px 6px 3px 10px;
	}

	.compare-bar-chip a {
		max-width: 110px;
	}

	.compare-chip-remove {
		width: 44px;
		height: 44px;
	}

	.compare-bar-actions {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: 1fr 1fr;
		width: 100%;
		gap: 8px;
		margin: 0;
	}

	.compare-bar-actions .btn {
		min-height: 44px;
		justify-content: center;
	}

	/* 右下固定要素を縦方向へ整理 */
	.floating-diagnosis-wrap {
		top: auto;
		right: 12px;
		bottom: calc(var(--compare-bar-h) + 70px + env(safe-area-inset-bottom));
		transform: none;
	}

	.floating-diagnosis-bubble,
	.floating-diagnosis-info,
	.floating-diagnosis-arrow {
		display: none;
	}

	.floating-diagnosis-main {
		width: 52px;
		height: 52px;
		padding: 4px;
		border-radius: 50%;
	}

	.floating-expert-avatar {
		width: 44px;
		height: 44px;
	}

	.btn-back-to-top,
	body.has-compare-bar .btn-back-to-top {
		right: 16px;
		bottom: calc(var(--compare-bar-h) + 12px + env(safe-area-inset-bottom));
		width: 44px;
		height: 44px;
	}

	.back-to-top-text {
		display: none;
	}
}

@media (max-width: 480px) {
	.container {
		width: min(100% - 24px, var(--container));
	}

	.section {
		padding: 30px 0;
	}

	.site-logo,
	.custom-logo-link {
		font-size: 1.05rem;
	}

	.site-logo-mark {
		width: 28px;
		height: 28px;
	}

	.hero-slide-desc {
		font-size: 0.9rem;
	}

	.home-search-panel,
	.hero-search {
		padding: 16px 12px;
	}

	.home-search-title {
		font-size: 1.15rem;
	}

	.hero-search label,
	.loan-filter label {
		min-width: 0;
	}

	.hero-search select,
	.loan-filter select,
	.loan-filter input {
		font-size: 16px;
	}

	.type-grid-kinds,
	.loan-hero-metrics,
	.showcase-metrics-grid {
		grid-template-columns: 1fr;
	}

	.loan-filter-actions,
	.compare-mobile-actions {
		grid-template-columns: 1fr;
	}

	.showcase-card-brand {
		flex-direction: column;
		align-items: flex-start;
	}

	.compare-mobile-spec-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}

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

	.search-form .btn,
	.empty-hero .btn {
		width: 100%;
		justify-content: center;
	}

	.empty-hero > p:last-child {
		flex-direction: column;
	}

	.footer-menu {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.comment-list {
		padding-left: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
