/*
Theme Name: Haiban Radar
Theme URI: https://www.josaikeiei.jp/
Author: josaikeiei.jp
Description: 物販事業者向けの公式製造・販売終了情報データベース「廃盤レーダー」専用テーマ。
Version: 0.2.0
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: haiban-radar
*/

:root {
	--hr-ink: #172b3a;
	--hr-muted: #5b6b78;
	--hr-brand: #123b5d;
	--hr-brand-strong: #0b2b45;
	--hr-accent: #0f766e;
	--hr-accent-soft: #dff4ef;
	--hr-info: #eaf3f8;
	--hr-success: #287a55;
	--hr-success-soft: #eaf6ef;
	--hr-warning: #9a6700;
	--hr-warning-soft: #fff5d6;
	--hr-danger: #b42318;
	--hr-danger-soft: #fdedec;
	--hr-border: #d8e0e6;
	--hr-surface: #fff;
	--hr-canvas: #f6f8fa;
	--hr-shadow: 0 16px 40px rgba(11, 43, 69, 0.08);
	--hr-radius: 12px;
	--hr-max: 1180px;
	--hr-maker-accent: #123b5d;
	--hr-maker-strong: #0b2b45;
	--hr-maker-soft: #eaf3f8;
	--hr-maker-contrast: #fff;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--hr-ink);
	background: var(--hr-canvas);
	font-family: "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

a { color: var(--hr-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hr-accent); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; }
:focus-visible { outline: 3px solid #46b3aa; outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 9999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 14px;
	background: #fff;
}

.hr-container { width: min(calc(100% - 40px), var(--hr-max)); margin-inline: auto; }
.hr-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.hr-section { padding: 72px 0; }
.hr-section--white { background: var(--hr-surface); }
.hr-section--compact { padding: 44px 0; }
.hr-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--hr-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.hr-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hr-section-title { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; letter-spacing: -.02em; }
.hr-section-lead { max-width: 720px; margin: 14px 0 0; color: var(--hr-muted); }
.hr-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.hr-section-head__link { white-space: nowrap; font-weight: 700; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.96);
	border-bottom: 1px solid rgba(216,224,230,.85);
	backdrop-filter: blur(14px);
}
.site-header__inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--hr-ink); text-decoration: none; }
.site-brand:hover { color: var(--hr-ink); }
.site-brand__mark { position: relative; width: 38px; height: 38px; flex: 0 0 auto; border: 2px solid var(--hr-accent); border-radius: 50%; }
.site-brand__mark::before,
.site-brand__mark::after { content: ""; position: absolute; border: 1px solid rgba(15,118,110,.55); border-radius: 50%; inset: 6px; }
.site-brand__mark::after { inset: 13px; background: var(--hr-accent); border: 0; }
.site-brand__scan { position: absolute; left: 18px; top: 3px; width: 17px; height: 2px; background: var(--hr-accent); transform-origin: left center; transform: rotate(-28deg); }
.site-brand__name { display: block; font-size: 20px; font-weight: 900; line-height: 1.1; letter-spacing: .02em; }
.site-brand__descriptor { display: block; margin-top: 4px; color: var(--hr-muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.primary-nav ul { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 12px; color: var(--hr-ink); font-size: 14px; font-weight: 700; text-decoration: none; border-radius: 8px; }
.primary-nav a:hover { color: var(--hr-brand); background: var(--hr-info); }
.header-search-link { border: 1px solid var(--hr-border); }
.nav-toggle { display: none; width: 46px; padding: 0; color: var(--hr-ink); background: #fff; border: 1px solid var(--hr-border); border-radius: 8px; }
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s ease; }

.hr-hero {
	position: relative;
	overflow: hidden;
	padding: 88px 0 74px;
	color: #fff;
	background: linear-gradient(125deg, var(--hr-brand-strong) 0%, var(--hr-brand) 62%, #145b69 100%);
}
.hr-hero.hr-hero--has-image { background-image: linear-gradient(90deg, rgba(5,28,47,.95) 0%, rgba(5,28,47,.86) 48%, rgba(5,28,47,.24) 100%), var(--hr-hero-image); background-position: center; background-size: cover; }
.hr-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -240px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 150px rgba(255,255,255,.025); }
.hr-hero::after { content: ""; position: absolute; width: 10px; height: 10px; right: 22%; top: 34%; background: #7de1d5; border-radius: 50%; box-shadow: 0 0 0 7px rgba(125,225,213,.12); }
.hr-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(38px, 6vw, 72px); align-items: center; }
.hr-hero__content { min-width: 0; }
.hr-hero .hr-eyebrow { color: #8ee7dd; }
.hr-hero h1 { max-width: 790px; margin: 0; font-size: clamp(36px, 5.4vw, 65px); line-height: 1.18; letter-spacing: -.035em; }
.hr-hero__lead { max-width: 720px; margin: 22px 0 30px; color: rgba(255,255,255,.82); font-size: 17px; }
.hr-search {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	max-width: 770px;
	padding: 8px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.hr-search input[type="search"] { min-width: 0; min-height: 54px; padding: 10px 15px; color: var(--hr-ink); background: transparent; border: 0; outline: 0; }
.hr-search button { padding: 0 25px; color: #fff; background: var(--hr-accent); border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.hr-search button:hover { background: #0b625c; }
.hr-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.hr-quick-links a { padding: 6px 11px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 13px; text-decoration: none; }
.hr-quick-links a:hover { background: rgba(255,255,255,.15); }
.hr-hero-visual { position: relative; min-height: 430px; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.2); }
.hr-hero-visual::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: 0; background-image: linear-gradient(180deg, rgba(6,31,50,.05) 0%, rgba(6,31,50,.92) 88%), var(--hr-hero-image); background-position: center; background-size: cover; transition: opacity .2s ease; }
.hr-hero--has-image .hr-hero-visual::before { opacity: 0; }
.hr-hero--has-image .hr-hero-visual { background: rgba(5,28,47,.18); }
.hr-hero--has-image .hr-radar { opacity: .42; }
.hr-hero-visual::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(135deg, transparent 30%, rgba(85,225,209,.09)); pointer-events: none; }
.hr-radar { position: absolute; top: 18px; left: 50%; width: 286px; aspect-ratio: 1; border: 1px solid rgba(143,237,225,.34); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 32px, rgba(143,237,225,.17) 33px 34px), linear-gradient(90deg, transparent 49.7%, rgba(143,237,225,.2) 50%, transparent 50.3%), linear-gradient(transparent 49.7%, rgba(143,237,225,.2) 50%, transparent 50.3%); transform: translateX(-50%); }
.hr-radar__sweep { position: absolute; inset: -1px; overflow: hidden; border-radius: 50%; animation: hr-radar-spin 8s linear infinite; }
.hr-radar__sweep::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 270deg, rgba(125,225,213,.42), transparent 25%, transparent); clip-path: polygon(50% 50%, 100% 0, 100% 50%); }
.hr-radar__point { position: absolute; width: 8px; height: 8px; background: #aaf7ec; border-radius: 50%; box-shadow: 0 0 0 5px rgba(125,225,213,.13), 0 0 16px rgba(125,225,213,.8); }
.hr-radar__point--one { top: 26%; left: 62%; }
.hr-radar__point--two { top: 58%; left: 28%; }
.hr-radar__point--three { top: 69%; left: 69%; }
@keyframes hr-radar-spin { to { transform: rotate(360deg); } }
.hr-hero-card { position: absolute; z-index: 2; right: 16px; bottom: 16px; left: 16px; padding: 22px; background: rgba(7,38,59,.78); border: 1px solid rgba(255,255,255,.2); border-radius: 15px; box-shadow: 0 18px 50px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.hr-hero-card__label { margin: 0 0 19px; color: #a7eee6; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.hr-hero-card ul { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hr-hero-card li { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; color: rgba(255,255,255,.9); font-size: 14px; }
.hr-hero-card li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; color: #0b534d; background: #8ee7dd; border-radius: 50%; font-weight: 900; }

.hr-trust-strip { background: #fff; border-bottom: 1px solid var(--hr-border); }
.hr-trust-strip__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.hr-trust-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 25px 30px; border-right: 1px solid var(--hr-border); }
.hr-trust-item:first-child { padding-left: 0; }
.hr-trust-item:last-child { padding-right: 0; border-right: 0; }
.hr-trust-item__icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--hr-brand); background: var(--hr-info); border-radius: 9px; font-weight: 900; }
.hr-trust-item strong { display: block; font-size: 14px; }
.hr-trust-item span { display: block; color: var(--hr-muted); font-size: 12px; line-height: 1.55; }

.hr-section--genres { background: linear-gradient(180deg, #fff 0%, #f5f9fb 100%); border-bottom: 1px solid var(--hr-border); }
.hr-genre-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hr-genre { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 94px; padding: 16px; color: var(--hr-ink); background: rgba(255,255,255,.9); border: 1px solid var(--hr-border); border-radius: var(--hr-radius); box-shadow: 0 8px 22px rgba(11,43,69,.04); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.hr-genre:hover { color: var(--hr-ink); border-color: #91b7c7; box-shadow: var(--hr-shadow); transform: translateY(-2px); }
.hr-genre__icon { display: grid; place-items: center; width: 54px; height: 54px; color: var(--hr-accent); background: var(--hr-accent-soft); border-radius: 14px; }
.hr-genre__icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hr-genre__copy { min-width: 0; }
.hr-genre__copy strong, .hr-genre__copy small { display: block; }
.hr-genre__copy strong { line-height: 1.45; }
.hr-genre__copy small { margin-top: 3px; color: var(--hr-muted); font-size: 11px; }
.hr-genre__arrow { color: var(--hr-accent); font-size: 18px; font-weight: 900; }
.hr-genre--placeholder { box-shadow: none; }

.hr-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 32px; }
.hr-metric { padding: 19px 21px; background: #fff; border: 1px solid var(--hr-border); border-radius: var(--hr-radius); }
.hr-metric__value { display: block; font-size: 28px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hr-metric__label { display: block; margin-top: 4px; color: var(--hr-muted); font-size: 12px; }

.hr-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hr-product-card { position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--hr-border); border-top: 4px solid var(--hr-maker-accent); border-radius: var(--hr-radius); box-shadow: 0 8px 24px rgba(11,43,69,.035); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hr-product-card:hover { transform: translateY(-3px); border-color: var(--hr-maker-accent); box-shadow: var(--hr-shadow); }
.hr-product-card__visual { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hr-maker-soft); border-bottom: 1px solid var(--hr-border); }
.hr-product-card__image { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--hr-maker-soft); transition: transform .35s ease; }
.hr-product-card:hover .hr-product-card__image { transform: scale(1.025); }
.hr-product-image-label { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 8px; color: #fff; background: rgba(7,27,42,.72); border: 1px solid rgba(255,255,255,.34); border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1.35; letter-spacing: .04em; backdrop-filter: blur(5px); }
.hr-product-visual-fallback { position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; color: var(--hr-maker-accent); background: linear-gradient(145deg, #fff 0%, var(--hr-maker-soft) 66%, #fff 100%); }
.hr-product-visual-fallback::before { content: ""; position: absolute; top: -24%; right: -9%; width: 58%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--hr-maker-accent) 20%, transparent); border-radius: 50%; box-shadow: 0 0 0 28px color-mix(in srgb, var(--hr-maker-accent) 5%, transparent), 0 0 0 58px color-mix(in srgb, var(--hr-maker-accent) 3%, transparent); }
.hr-product-visual-fallback__rings { position: absolute; bottom: -22%; left: -8%; width: 52%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--hr-maker-accent) 16%, transparent); border-radius: 50%; }
.hr-product-visual-fallback__icon { position: relative; display: grid; width: 74px; height: 74px; place-items: center; background: rgba(255,255,255,.82); border: 1px solid color-mix(in srgb, var(--hr-maker-accent) 22%, transparent); border-radius: 22px; box-shadow: 0 14px 35px color-mix(in srgb, var(--hr-maker-accent) 12%, transparent); }
.hr-product-visual-fallback__icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hr-product-visual-fallback__label { position: absolute; right: 16px; bottom: 13px; left: 16px; color: var(--hr-maker-strong); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-align: center; }
.hr-product-card__body { flex: 1; padding: 21px; }
.hr-product-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hr-product-card__maker { display: grid; min-width: 0; color: var(--hr-maker-strong); font-size: 11px; font-weight: 800; line-height: 1.35; text-align: right; }
.hr-product-card__maker small { color: var(--hr-maker-accent); font-size: 9px; font-weight: 700; }
.hr-product-card__terms { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.hr-term-chip { display: inline-flex; min-width: 0; align-items: baseline; gap: 5px; padding: 5px 8px; color: var(--hr-ink); background: #f2f5f7; border-radius: 6px; font-size: 11px; line-height: 1.35; }
.hr-term-chip small { color: var(--hr-muted); font-size: 9px; font-weight: 700; }
.hr-term-chip strong { max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-term-chip--brand { color: var(--hr-brand-strong); background: var(--hr-info); }
.hr-term-chip--brand small { color: var(--hr-brand); }
.hr-product-card h3 { margin: 0 0 15px; font-size: 18px; line-height: 1.55; }
.hr-product-card h3 a { color: var(--hr-ink); text-decoration: none; }
.hr-product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.hr-product-card__facts { display: grid; gap: 9px; margin: 0; }
.hr-product-card__facts div { display: grid; grid-template-columns: 72px 1fr; gap: 9px; font-size: 13px; }
.hr-product-card__facts dt { color: var(--hr-muted); }
.hr-product-card__facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.hr-product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 21px; background: linear-gradient(90deg, var(--hr-maker-soft), #fff 75%); border-top: 1px solid var(--hr-border); color: var(--hr-muted); font-size: 12px; }
.hr-product-card__arrow { color: var(--hr-maker-accent); font-size: 18px; font-weight: 900; }

.hr-badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 9px; color: var(--hr-brand); background: var(--hr-info); border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.25; }
.hr-badge::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; background: currentColor; border-radius: 50%; }
.hr-badge--success { color: var(--hr-success); background: var(--hr-success-soft); }
.hr-badge--warning { color: var(--hr-warning); background: var(--hr-warning-soft); }
.hr-badge--danger { color: var(--hr-danger); background: var(--hr-danger-soft); }
.hr-badge--muted { color: var(--hr-muted); background: #edf1f4; }

.hr-empty { padding: 46px 28px; text-align: center; background: #fff; border: 1px dashed #b8c5ce; border-radius: var(--hr-radius); }
.hr-empty__icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px; color: var(--hr-accent); background: var(--hr-accent-soft); border-radius: 50%; font-size: 24px; }
.hr-empty h3 { margin: 0 0 7px; }
.hr-empty p { max-width: 620px; margin: 0 auto; color: var(--hr-muted); }

.hr-maker-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.hr-maker { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 82px; padding: 14px; color: var(--hr-ink); background: linear-gradient(135deg, #fff 45%, var(--hr-maker-soft)); border: 1px solid color-mix(in srgb, var(--hr-maker-accent) 26%, var(--hr-border)); border-radius: 10px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.hr-maker:hover { color: var(--hr-ink); border-color: var(--hr-maker-accent); box-shadow: 0 12px 30px color-mix(in srgb, var(--hr-maker-accent) 12%, transparent); transform: translateY(-2px); }
.hr-maker__mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--hr-maker-contrast); background: var(--hr-maker-accent); border-radius: 12px; font-size: 16px; font-weight: 900; }
.hr-maker__copy { min-width: 0; }
.hr-maker__copy strong, .hr-maker__copy small { display: block; }
.hr-maker__copy strong { overflow: hidden; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.hr-maker__copy small { margin-top: 3px; color: var(--hr-muted); font-size: 10px; line-height: 1.4; }
.hr-maker__arrow { color: var(--hr-maker-accent); font-weight: 900; }
.hr-maker--placeholder { grid-template-columns: 42px minmax(0, 1fr); }

.hr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.hr-step { position: relative; padding: 26px; background: #fff; border: 1px solid var(--hr-border); border-radius: var(--hr-radius); counter-increment: step; }
.hr-step::before { content: "0" counter(step); display: block; margin-bottom: 24px; color: var(--hr-accent); font-size: 14px; font-weight: 900; letter-spacing: .08em; }
.hr-step h3 { margin: 0 0 9px; font-size: 18px; }
.hr-step p { margin: 0; color: var(--hr-muted); font-size: 14px; }

.hr-method { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; padding: 44px; color: #fff; background: var(--hr-brand-strong); border-radius: 16px; }
.hr-method h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; }
.hr-method p { margin: 0 0 18px; color: rgba(255,255,255,.78); }
.hr-method a { color: #9debe2; font-weight: 800; }

.hr-page-hero { padding: 56px 0 42px; background: #fff; border-bottom: 1px solid var(--hr-border); }
.hr-page-hero h1 { margin: 0; font-size: clamp(31px, 4vw, 48px); line-height: 1.25; }
.hr-page-hero p { max-width: 760px; margin: 14px 0 0; color: var(--hr-muted); }
.hr-breadcrumbs { margin-bottom: 15px; color: var(--hr-muted); font-size: 12px; }
.hr-breadcrumbs a { color: inherit; }

.hr-filter-panel { margin: 28px 0; padding: 20px; background: #fff; border: 1px solid var(--hr-border); border-radius: var(--hr-radius); }
.hr-filter-panel summary { display: none; cursor: pointer; font-weight: 800; }
.hr-filter-form { display: grid; grid-template-columns: 1.35fr repeat(4, minmax(125px, .65fr)) auto; gap: 10px; align-items: end; }
.hr-field label { display: block; margin-bottom: 5px; color: var(--hr-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hr-field input, .hr-field select { width: 100%; min-height: 46px; padding: 8px 11px; color: var(--hr-ink); background: #fff; border: 1px solid var(--hr-border); border-radius: 7px; }
.hr-filter-submit { min-height: 46px; padding: 0 20px; color: #fff; background: var(--hr-brand); border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; }
.hr-result-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 15px; color: var(--hr-muted); font-size: 13px; }
.hr-active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 17px; padding: 0; list-style: none; }
.hr-active-filters li { padding: 5px 9px; color: var(--hr-brand); background: var(--hr-info); border-radius: 999px; font-size: 12px; }
.hr-pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 6px; background: #fff; border: 1px solid var(--hr-border); border-radius: 7px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--hr-brand); border-color: var(--hr-brand); }

.hr-detail-hero { padding: 48px 0 42px; background: linear-gradient(135deg, #fff 38%, var(--hr-maker-soft)); border-top: 4px solid var(--hr-maker-accent); border-bottom: 1px solid var(--hr-border); }
.hr-detail-hero__grid { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.25fr) 280px; gap: 32px; align-items: start; }
.hr-detail-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hr-maker-soft); border: 1px solid color-mix(in srgb, var(--hr-maker-accent) 24%, var(--hr-border)); border-radius: 16px; box-shadow: 0 20px 45px color-mix(in srgb, var(--hr-maker-accent) 12%, transparent); }
.hr-detail-visual__image { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--hr-maker-soft); }
.hr-product-visual-fallback--detail .hr-product-visual-fallback__icon { width: 96px; height: 96px; border-radius: 28px; }
.hr-product-visual-fallback--detail .hr-product-visual-fallback__icon svg { width: 58px; height: 58px; }
.hr-detail-summary { min-width: 0; padding-top: 4px; }
.hr-detail-hero h1 { max-width: 800px; margin: 16px 0 15px; font-size: clamp(29px, 3.6vw, 46px); line-height: 1.3; letter-spacing: -.025em; }
.hr-detail-maker { color: var(--hr-muted); font-weight: 700; }
.hr-detail-taxonomies { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-detail-taxonomy { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 10px; color: var(--hr-ink); background: rgba(255,255,255,.8); border: 1px solid var(--hr-border); border-radius: 8px; line-height: 1.4; }
.hr-detail-taxonomy small { color: var(--hr-muted); font-size: 10px; font-weight: 700; }
.hr-detail-taxonomy strong { font-size: 13px; }
.hr-detail-taxonomy--manufacturer { color: var(--hr-maker-strong); background: var(--hr-maker-soft); border-color: color-mix(in srgb, var(--hr-maker-accent) 28%, var(--hr-border)); }
.hr-detail-taxonomy--manufacturer small { color: var(--hr-maker-accent); }
.hr-detail-taxonomy--brand { color: var(--hr-brand-strong); background: var(--hr-info); }
.hr-detail-taxonomy--brand small { color: var(--hr-brand); }
.hr-detail-quickfacts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 17px; color: var(--hr-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.hr-detail-quickfacts strong { color: var(--hr-ink); }
.hr-detail-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.hr-official-card { padding: 22px; background: rgba(255,255,255,.82); border: 1px solid color-mix(in srgb, var(--hr-maker-accent) 35%, var(--hr-border)); border-top: 4px solid var(--hr-maker-accent); border-radius: var(--hr-radius); box-shadow: 0 13px 30px color-mix(in srgb, var(--hr-maker-accent) 9%, transparent); }
.hr-official-card__label { display: block; color: var(--hr-muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.hr-official-card__status { display: block; margin: 6px 0 2px; color: var(--hr-maker-strong); font-size: 24px; font-weight: 900; }
.hr-official-card__date { display: block; font-variant-numeric: tabular-nums; }
.hr-official-card .hr-button { width: 100%; margin-top: 17px; }
.hr-maker-theme .hr-official-card .hr-button, .hr-maker-theme .hr-source-box .hr-button { background: var(--hr-maker-accent); }
.hr-maker-theme .hr-official-card .hr-button:hover, .hr-maker-theme .hr-source-box .hr-button:hover { background: var(--hr-maker-strong); }

.hr-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.hr-content-card { margin-bottom: 20px; padding: 28px; background: #fff; border: 1px solid var(--hr-border); border-radius: var(--hr-radius); }
.hr-content-card h2 { margin: 0 0 19px; font-size: 22px; }
.hr-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; border-top: 1px solid var(--hr-border); border-left: 1px solid var(--hr-border); }
.hr-facts div { min-width: 0; padding: 16px; border-right: 1px solid var(--hr-border); border-bottom: 1px solid var(--hr-border); }
.hr-facts dt { color: var(--hr-muted); font-size: 12px; }
.hr-facts dd { margin: 4px 0 0; font-weight: 800; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.hr-source-box { padding: 20px; background: var(--hr-info); border-left: 4px solid var(--hr-maker-accent, var(--hr-brand)); border-radius: 7px; }
.hr-source-box p { margin: 0 0 13px; }
.hr-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 17px; color: #fff; background: var(--hr-brand); border: 0; border-radius: 7px; font-weight: 800; text-decoration: none; }
.hr-button:hover { color: #fff; background: var(--hr-brand-strong); }
.hr-button--secondary { color: var(--hr-brand); background: #fff; border: 1px solid var(--hr-border); }
.hr-button--secondary:hover { color: var(--hr-accent); background: #fff; border-color: var(--hr-accent); }
.hr-copy { min-height: 44px; margin-left: 8px; padding: 5px 11px; color: var(--hr-brand); background: #fff; border: 1px solid var(--hr-border); border-radius: 5px; font-size: 12px; cursor: pointer; }
.hr-notice { padding: 18px 20px; background: var(--hr-warning-soft); border-left: 4px solid var(--hr-warning); border-radius: 7px; }
.hr-notice--danger { background: var(--hr-danger-soft); border-color: var(--hr-danger); }
.hr-notice p { margin: 0; }
.hr-checklist { margin: 0; padding: 0; list-style: none; }
.hr-checklist li { position: relative; padding: 11px 0 11px 31px; border-bottom: 1px solid var(--hr-border); }
.hr-checklist li:last-child { border-bottom: 0; }
.hr-checklist li::before { content: "✓"; position: absolute; left: 2px; top: 11px; color: var(--hr-accent); font-weight: 900; }
.hr-sidebar { position: sticky; top: 98px; }
.hr-sidebar-card { margin-bottom: 16px; padding: 21px; background: #fff; border: 1px solid var(--hr-border); border-radius: var(--hr-radius); }
.hr-sidebar-card h2 { margin: 0 0 12px; font-size: 17px; }
.hr-sidebar-card p { margin: 0 0 12px; color: var(--hr-muted); font-size: 13px; }
.hr-sidebar-card .hr-button { width: 100%; }
.hr-timeline { margin: 0; padding: 0; list-style: none; }
.hr-timeline li { position: relative; padding: 0 0 21px 25px; }
.hr-timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; background: var(--hr-accent); border-radius: 50%; }
.hr-timeline li::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 1px; background: var(--hr-border); }
.hr-timeline li:last-child::after { display: none; }
.hr-timeline time { display: block; color: var(--hr-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.7em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--hr-border); text-align: left; }

.site-footer { color: rgba(255,255,255,.78); background: #091f31; }
.site-footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; padding: 57px 0 42px; }
.site-footer .site-brand { color: #fff; }
.site-footer .site-brand__descriptor { color: rgba(255,255,255,.6); }
.site-footer__about { max-width: 480px; margin: 20px 0 0; font-size: 13px; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: 14px; }
.site-footer ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 13px; }
.site-footer__notice { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }

@media (max-width: 960px) {
	.hr-hero__inner { grid-template-columns: 1fr; gap: 36px; }
	.hr-hero-visual { width: min(100%, 720px); min-height: 410px; }
	.hr-product-grid { grid-template-columns: repeat(2, 1fr); }
	.hr-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hr-maker-grid { grid-template-columns: repeat(3, 1fr); }
	.hr-filter-form { grid-template-columns: 1fr 1fr; }
	.hr-filter-submit { width: 100%; }
	.hr-detail-hero__grid, .hr-detail-layout { grid-template-columns: 1fr; }
	.hr-detail-hero__grid { gap: 24px; }
	.hr-detail-visual { width: min(100%, 640px); }
	.hr-official-card { max-width: 520px; }
	.hr-sidebar { position: static; }
}

@media (max-width: 760px) {
	.hr-container, .hr-narrow { width: min(calc(100% - 30px), var(--hr-max)); }
	.hr-section { padding: 52px 0; }
	.site-header { backdrop-filter: none; }
	.site-header__inner { min-height: 66px; }
	.site-brand__descriptor { display: none; }
	.site-brand__name { font-size: 18px; }
	.site-brand__mark { width: 34px; height: 34px; }
	.site-brand__scan { left: 16px; }
	.nav-toggle { display: block; }
	.primary-nav { position: fixed; z-index: 110; top: 66px; left: 0; right: 0; bottom: auto; width: 100%; height: calc(100dvh - 66px); visibility: hidden; opacity: 0; overflow-y: auto; padding: 22px 15px 40px; background: rgba(246,248,250,.99); transform: translateY(-8px); transition: .2s ease; }
	.primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.primary-nav ul { display: grid; gap: 7px; }
	.primary-nav a { min-height: 50px; padding: 11px 14px; background: #fff; border: 1px solid var(--hr-border); }
	.hr-hero { padding: 58px 0 52px; }
	.hr-hero h1 { font-size: clamp(34px, 11vw, 47px); }
	.hr-hero__lead { font-size: 15px; }
	.hr-hero-visual { min-height: 430px; }
	.hr-radar { position: relative; top: 16px; width: min(68vw, 250px); margin: 0 auto -40px; transform: none; left: auto; }
	.hr-hero-card { position: relative; right: auto; bottom: auto; left: auto; margin: 0 14px 14px; }
	.hr-search { grid-template-columns: 1fr; }
	.hr-search button { min-height: 48px; }
	.hr-trust-strip__inner { grid-template-columns: 1fr; padding: 10px 0; }
	.hr-trust-item, .hr-trust-item:first-child, .hr-trust-item:last-child { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--hr-border); }
	.hr-trust-item:last-child { border-bottom: 0; }
	.hr-section-head { align-items: start; flex-direction: column; gap: 8px; }
	.hr-metrics { grid-template-columns: 1fr; }
	.hr-product-grid { grid-template-columns: 1fr; }
	.hr-genre-grid { grid-template-columns: 1fr; }
	.hr-maker-grid { grid-template-columns: repeat(2, 1fr); }
	.hr-steps { grid-template-columns: 1fr; }
	.hr-method { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
	.hr-page-hero { padding: 40px 0 30px; }
	.hr-filter-panel { padding: 14px; }
	.hr-filter-panel summary { display: block; }
	.hr-filter-panel[open] summary { margin-bottom: 16px; }
	.hr-filter-form { grid-template-columns: 1fr; }
	.hr-result-meta { flex-direction: column; gap: 3px; }
	.hr-detail-hero { padding: 36px 0 28px; }
	.hr-detail-visual { border-radius: 13px; }
	.hr-content-card { padding: 22px 18px; }
	.hr-facts { grid-template-columns: 1fr; }
	.site-footer__top { grid-template-columns: 1fr; gap: 30px; }
	.site-footer__bottom { flex-direction: column; gap: 5px; }
}

@media (max-width: 520px) {
	.hr-maker-grid { grid-template-columns: 1fr; }
	.hr-maker { min-height: 76px; }
	.hr-product-card__body { padding: 18px; }
	.hr-detail-taxonomies { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .hr-sidebar, .hr-filter-panel { display: none !important; }
	body { background: #fff; color: #000; }
	.hr-section { padding: 20px 0; }
	.hr-content-card { border: 1px solid #aaa; break-inside: avoid; }
}
