/**
 * Owned media hub + article (light bento, accent #c8102e).
 */

/* ---------------------------------------------------------------------------
 * Parent TCD shell: #left_col 860px + float; #main_col flex. Full-width reset
 * (same idea as lp-car-deodorize.css) so .dm-om-wrap centers in the viewport.
 * ------------------------------------------------------------------------ */
body.dm-owned-media-body #main_contents {
	max-width: 100% !important;
	margin-top: -10px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 10px !important;
	box-sizing: border-box !important;
}
body.dm-owned-media-body #main_col {
	display: block !important;
	width: 100% !important;
	max-width: 1140px !important;
	float: none !important;
	clear: both !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}
body.dm-owned-media-body #left_col {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	box-sizing: border-box !important;
}

.dm-om .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.dm-om-outer {
	background: #f8fafc;
	min-height: 40vh;
}

.dm-om-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 24px) clamp(48px, 6vw, 80px);
	box-sizing: border-box;
}

.dm-om-left,
.dm-om-article {
	width: 100%;
	max-width: none;
}

.dm-om {
	font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #0f172a;
}

.dm-om--article {
	min-width: 0;
}

.dm-om__hero {
	margin-bottom: clamp(28px, 4vw, 40px);
}

.dm-om__eyebrow {
	font-size: 13px;
	font-weight: 600;
	color: #c8102e;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.dm-om__hero--article .dm-om__eyebrow {
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 14px;
}

.dm-om__back {
	color: inherit;
	text-decoration: none;
}

.dm-om__back:hover {
	text-decoration: underline;
}

.dm-om__h1 {
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.dm-om__lead,
.dm-om__subtitle {
	font-size: 1rem;
	line-height: 1.65;
	color: #475569;
	margin: 0;
	max-width: 52rem;
}

.dm-om__cross {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
}

.dm-om__cross-link {
	color: #c8102e;
	font-weight: 600;
	text-decoration: none;
}

.dm-om__cross-link:hover {
	text-decoration: underline;
}

.dm-om__subtitle {
	margin-top: 8px;
}

.dm-om__bento {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(14px, 1.8vw, 18px);
}
@media (min-width: 640px) {
	.dm-om__bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.dm-om__bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.dm-om-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: clamp(12px, 1.4vw, 16px);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -22px rgba(15, 23, 42, 0.2);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	min-height: 140px;
}

.dm-om-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

.dm-om-card__media {
	margin: 0 0 10px;
	border-radius: 12px;
	overflow: hidden;
	background: #f1f5f9;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	flex-shrink: 0;
}

.dm-om-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dm-om-card__title {
	font-size: clamp(.82rem, .88vw, .94rem);
	font-weight: 800;
	line-height: 1.28;
	margin: 0;
	color: #0b1220;
	letter-spacing: .01em;
	white-space: pre-line;
}

.dm-om-card__sub {
	font-size: 0.9rem;
	line-height: 1.55;
	color: #64748b;
	margin: 0;
	flex: 1 1 auto;
	white-space: pre-line;
}

.dm-om-card__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	align-self: flex-start;
	font-size: 0.78rem;
	font-weight: 800;
	color: #c8102e;
	margin-top: 10px;
	letter-spacing: .02em;
	line-height: 1.2;
}

.dm-om-card__more::after {
	content: "→";
	font-weight: 900;
	transition: transform .15s ease;
}

.dm-om-card:hover .dm-om-card__more::after {
	transform: translateX(3px);
}

.dm-om-article-body {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: clamp(22px, 3vw, 36px);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: clip;
}

.dm-om__hero--article {
	margin-bottom: 24px;
}

.dm-om__prose {
	max-width: 42rem;
}

.dm-om__prose p {
	font-size: 1rem;
	line-height: 1.75;
	color: #334155;
	margin: 0 0 1em;
}

.dm-om__prose p:last-child {
	margin-bottom: 0;
}

/* Mirrored depost article blocks */
.dm-om__prose--mirror {
	max-width: none;
}

.dm-om__prose--mirror .dm-om-scrape-block {
	font-size: 1rem;
	line-height: 1.75;
	color: #334155;
	margin-bottom: 1.35rem;
}

.dm-om__prose--mirror .dm-om-scrape-block:last-child {
	margin-bottom: 0;
}

/*
 * Source HTML assumes a dark page background; this band used color:white with
 * no fill. On our white card the text was invisible — restore a navy band.
 */
.dm-om__prose--mirror .dm-om-scrape-block > div[style*="text-align: center"][style*="color: white"][style*="font-family: sans-serif"] {
	background: linear-gradient(135deg, #0b1f4d 0%, #1e3a8a 52%, #0f2847 100%);
	border-radius: 12px;
	padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.75rem) !important;
	margin-left: 0;
	margin-right: 0;
	box-shadow: 0 4px 18px rgba(11, 31, 77, 0.18);
}

.dm-om__prose--mirror .dm-om-scrape-block > div[style*="border: 1px solid #999"] {
	border-radius: 12px !important;
	border-color: #cbd5e1 !important;
	background: #f8fafc !important;
}

.dm-om__prose--mirror h2,
.dm-om__prose--mirror h3,
.dm-om__prose--mirror h4 {
	font-weight: 700;
	color: #0b1220;
	line-height: 1.35;
	margin: 1.35em 0 0.5em;
}

.dm-om__prose--mirror h2:first-child,
.dm-om__prose--mirror h3:first-child,
.dm-om__prose--mirror h4:first-child {
	margin-top: 0;
}

.dm-om__prose--mirror ul,
.dm-om__prose--mirror ol {
	margin: 0 0 1em;
	padding-left: 1.35em;
	color: #334155;
}

.dm-om__prose--mirror li {
	margin: 0.25em 0;
}

.dm-om__prose--mirror blockquote {
	margin: 0 0 1em;
	padding: 0.75em 1em 0.75em 1.1em;
	border-left: 4px solid #c8102e;
	background: #f8fafc;
	color: #475569;
	border-radius: 0 8px 8px 0;
}

.dm-om__prose--mirror hr {
	border: 0;
	border-top: 1px solid #e2e8f0;
	margin: 1.5em 0;
}

.dm-om__prose--mirror a {
	color: #c8102e;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dm-om__prose--mirror a:hover {
	color: #a00d26;
}

.dm-om__prose--mirror img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 10px;
}

.dm-om__prose--mirror .mb-br {
	display: inline;
}

@media (min-width: 768px) {
	.dm-om__prose--mirror .mb-br {
		display: none;
	}
}

/* Tables: inline <style> in source is stripped server-side; layout lives here. */
.dm-om__prose--mirror .dm-om-scrape-block .table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.dm-om__prose--mirror .dm-om-scrape-block > table,
.dm-om__prose--mirror .dm-om-scrape-block .table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	color: #334155;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	overflow: hidden;
}

.dm-om__prose--mirror .dm-om-scrape-block th,
.dm-om__prose--mirror .dm-om-scrape-block td {
	border: 1px solid #cbd5e1;
	padding: 12px 14px;
	vertical-align: middle;
}

.dm-om__prose--mirror .dm-om-scrape-block thead th {
	background: #f1f5f9;
	font-weight: 700;
	text-align: center;
	color: #0b1220;
}

.dm-om__prose--mirror .dm-om-scrape-block tbody tr:nth-child(even) {
	background: #f8fafc;
}

.dm-om__prose--mirror .dm-om-scrape-block:has(> table) {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) thead {
		display: none;
	}
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) table,
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) tbody,
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) tr,
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) td {
		display: block;
		width: 100%;
	}
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) tbody tr {
		margin: 0 0 12px;
		border: 1px solid #cbd5e1;
		border-radius: 10px;
		overflow: hidden;
	}
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) tbody td {
		border: none;
		border-top: 1px solid #e2e8f0;
	}
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) tbody td:first-child {
		border-top: none;
		background: #f1f5f9;
		font-weight: 700;
	}
	.dm-om__prose--mirror .dm-om-scrape-block:has(tbody td[data-label]) tbody td[data-label]::before {
		content: attr(data-label) "：";
		font-weight: 700;
		color: #64748b;
		display: block;
		margin-bottom: 4px;
	}
}

.dm-om__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: clamp(28px, 4vw, 40px);
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}

.dm-om__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 999px;
	background: #c8102e;
	color: #fff !important;
	text-decoration: none !important;
	border: 2px solid #c8102e;
	transition: background 0.15s ease, color 0.15s ease;
}

.dm-om__btn:hover {
	background: #a00d26;
	border-color: #a00d26;
	color: #fff !important;
}

.dm-om__btn--ghost {
	background: #fff;
	color: #0f172a !important;
	border-color: #cbd5e1;
}

.dm-om__btn--ghost:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a !important;
}

/* depost 「5 selections」バッジ（ミラー本文内 <style> は kses / prepare で落ちるため CSS で再現） */
.dm-om__prose--mirror .dp-sel-badge {
	--w: 30;
	--radius: 22%;
	--c1: #ffd24a;
	--c2: #f4a000;
	width: calc(var(--w) * 1%);
	aspect-ratio: 1 / 1;
	position: relative;
	margin: 24px auto;
	display: grid;
	place-items: center;
	color: #fff;
	border-radius: var(--radius);
	background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
	container-type: inline-size;
}

.dm-om__prose--mirror .dp-sel-badge::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(to bottom right, rgb(255 255 255 / 55%), transparent 45%);
	pointer-events: none;
}

.dm-om__prose--mirror .dp-sel-badge__num {
	font-weight: 800;
	font-size: 48cqw;
	line-height: 1;
	letter-spacing: 0.02em;
}

.dm-om__prose--mirror .dp-sel-badge__label {
	margin-top: 1cqw;
	font-weight: 700;
	font-size: 12cqw;
	line-height: 1;
}

@media (max-width: 768px) {

	.dm-om__prose--mirror .dp-sel-badge {
		--w: 45;
	}
}
