/**
 * renewal-shared.css — renewal-home 本番連続トークン（2026 正統進化）
 * 本番 main.css の思想に揃え、LP 専用上書きは最小限。
 */

:root {
	/* 本番連続 — main.css / footer グラデと整合 */
	--dd-bg: #ffffff;
	--dd-text: #333333;
	--dd-muted: #555555;
	--dd-border: #cccccc;
	--dd-accent: #0068b7;
	--dd-header-bg: rgba(255, 255, 255, 0.8);
	--dd-footer-bg: url(../img/footer/footer.jpg);

	/* renewal-home レイアウト */
	--rh-bg: var(--dd-bg);
	--rh-surface: #ffffff;
	--rh-soft: #f5f5f5;
	--rh-news-bg: #f0f0f0;
	--rh-text: var(--dd-text);
	--rh-muted: var(--dd-muted);
	--rh-border: #e0e0e0;
	--rh-border-strong: #cccccc;
	--rh-accent: var(--dd-accent);
	--rh-accent-bar: var(--dd-accent);
	/* 旧 LP トークン互換 — 本番連続色へマップ */
	--rh-navy: var(--dd-text);
	--rh-navy-deep: #222222;
	--rh-warm: var(--rh-soft);
	--rh-max: 1100px;
	--rh-pad: clamp(1rem, 4vw, 2rem);
	--rh-radius: 8px;
	--rh-radius-lg: 12px;
	--rh-radius-btn: 6px;
	--rh-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	--rh-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
	--rh-font: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
	--rh-space-1: 0.25rem;
	--rh-space-2: 0.5rem;
	--rh-space-3: 1rem;
	--rh-space-4: 1.5rem;
	--rh-space-5: 2.5rem;
	--rh-space-6: 4rem;
	--rh-line: #06c755;

	/* 統一ブレークポoint（renewal-home） */
	--bp-sm: 430px;
	--bp-md: 768px;
	--bp-lg: 1024px;
	--bp-xl: 1440px;
	--bp-2xl: 1920px;
}

body.dd-renewal-home-page {
	margin: 0;
	padding-bottom: 0;
	background: var(--rh-bg);
	color: var(--rh-text);
	font-family: var(--rh-font);
	line-height: 1.75;
	max-width: 100%;
	--header-offset: 90px;
	scroll-padding-top: var(--header-offset);
	-webkit-font-smoothing: antialiased;
}

body.dd-renewal-home-page #headWrap,
body.dd-renewal-home-page #headContent,
body.dd-renewal-home-page .logoArea,
body.dd-renewal-home-page .pcNaviWrap {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

body.dd-renewal-home-page .renewal-header-brand {
	max-width: min(100%, 13rem);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.dd-renewal-home-page #renewal-home-main a:not([class*="renewal-btn"]) {
	color: inherit;
}

/* Header — 本番 #headContent と同じ半透明白（backdrop-filter 不使用） */
body.dd-renewal-home-page #headWrap {
	background: transparent;
}

body.dd-renewal-home-page #headContent {
	background-color: rgba(255, 255, 255, 0.92);
}

body.dd-renewal-home-page .contactAreaTab {
	display: none;
}

body.dd-renewal-home-page .renewal-header-brand {
	margin: 0.15rem 0 0;
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--rh-muted);
	max-width: 12rem;
}

body.dd-renewal-home-page .renewal-header-brand__sep {
	opacity: 0.4;
}

body.dd-renewal-home-page .pcNavi .renewal-nav-consult {
	list-style: none;
}

body.dd-renewal-home-page .pcNavi .renewal-nav-consult .renewal-header-consult-mobile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.35rem 0.85rem;
	border-radius: var(--rh-radius-btn);
	background: var(--rh-accent);
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 700;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

body.dd-renewal-home-page .pcNavi .renewal-nav-consult .renewal-header-consult-mobile:hover {
	background: #005a9e;
}

/* Header nav breakpoint = Hero desktop (1024px) — 1001–1023 の不整合を解消 */
@media screen and (min-width: 1024px) {
	body.dd-renewal-home-page .pcNaviWrap {
		width: auto;
		margin: 0;
		border-top: none;
	}

	body.dd-renewal-home-page .Toggle {
		display: none;
	}

	body.dd-renewal-home-page nav.NavMenu {
		position: static;
		z-index: auto;
		top: auto;
		left: auto;
		display: block !important;
		width: auto;
		height: auto;
		background: transparent;
		margin: 0;
	}

	body.dd-renewal-home-page nav.NavMenu .inner {
		position: static;
	}

	body.dd-renewal-home-page nav.NavMenu ul,
	body.dd-renewal-home-page .pcNavi ul {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		position: static;
		top: auto;
		left: auto;
		transform: none;
		width: auto;
		justify-content: right;
	}

	body.dd-renewal-home-page nav.NavMenu ul li,
	body.dd-renewal-home-page .pcNavi li {
		width: auto;
		height: 90px;
		line-height: 90px;
		border-bottom: none;
		border-left: none;
		background: transparent;
		font-size: inherit;
	}

	body.dd-renewal-home-page .pcNavi li a {
		display: block;
		height: 100%;
		padding: 0 2vw;
	}

	body.dd-renewal-home-page .pcNavi li.liContact a {
		padding: 0 3vw;
	}

	body.dd-renewal-home-page .renewal-nav-consult.is-hero-visible .renewal-header-consult-mobile {
		opacity: 0.5;
		transform: scale(0.97);
		box-shadow: none;
		background: transparent !important;
		color: var(--rh-accent) !important;
		border: 1px solid rgba(0, 104, 183, 0.45) !important;
	}

	body.dd-renewal-home-page .renewal-nav-consult .renewal-header-consult-mobile {
		transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
	}

	body.dd-renewal-home-page .pcNavi li a {
		font-family: var(--rh-font);
		font-size: 0.875rem;
		font-weight: 500;
		letter-spacing: 0.02em;
	}
}

@media screen and (max-width: 1023px) {
	body.dd-renewal-home-page .pcNaviWrap {
		width: 50px;
		margin: 0;
		border-top: none;
	}

	body.dd-renewal-home-page .Toggle {
		display: block;
	}

	body.dd-renewal-home-page nav.NavMenu {
		position: fixed;
		z-index: 12;
		top: 0;
		left: 0;
		background: rgba(255, 255, 255, 0.7);
		width: 100%;
		height: 100%;
		display: none;
		box-sizing: border-box;
		margin: 0;
	}

	body.dd-renewal-home-page nav.NavMenu .inner {
		position: relative;
	}

	body.dd-renewal-home-page nav.NavMenu ul,
	body.dd-renewal-home-page .pcNavi ul {
		width: 100%;
		flex-direction: column;
		flex-wrap: wrap;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translateY(-50%) translateX(-50%);
		box-sizing: border-box;
	}

	body.dd-renewal-home-page nav.NavMenu ul li,
	body.dd-renewal-home-page .pcNavi li {
		font-size: 16px;
		width: 100%;
		height: auto;
		line-height: 1.2em;
		border-bottom: #dadada 1px solid;
		border-left: none;
		background-color: rgba(255, 255, 255, 0.95);
	}

	body.dd-renewal-home-page nav.NavMenu ul li:last-child,
	body.dd-renewal-home-page .pcNavi ul li:last-child {
		border-bottom: none;
	}

	body.dd-renewal-home-page .pcNavi li a {
		display: block;
		height: auto;
		padding: 20px 10px;
	}

	body.dd-renewal-home-page .pcNavi li.liContact a {
		padding: 20px 10px;
		height: 100%;
	}

	body.dd-renewal-home-page .pcNavi .renewal-nav-consult {
		text-align: center;
		padding: 12px 10px;
		border-bottom: #dadada 1px solid;
		background-color: rgba(255, 255, 255, 0.95);
	}

	body.dd-renewal-home-page .pcNavi .renewal-nav-consult .renewal-header-consult-mobile {
		width: min(100%, 16rem);
		min-height: 44px;
	}
}

body.dd-renewal-home-page .pcNavi li.liContact a {
	padding: 0.45rem 0.85rem !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	background: transparent !important;
	border: 1px solid var(--rh-border, #d8dee6) !important;
	color: var(--rh-text, #333) !important;
	box-shadow: none !important;
	min-height: auto !important;
	line-height: 1.3 !important;
}

body.dd-renewal-home-page .pcNavi li.liContact a:hover {
	background: var(--rh-soft, #f5f7fa) !important;
	color: var(--rh-text, #333) !important;
}

@media (orientation: landscape) and (max-height: 430px) {
	body.dd-renewal-home-page .renewal-header-brand {
		max-width: min(42vw, 10rem);
		font-size: 0.5625rem;
		line-height: 1.2;
	}

	body.dd-renewal-home-page .renewal-header-brand__sep {
		opacity: 0.45;
	}
}

body.dd-renewal-home-page .Toggle p {
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	padding-top: 22px;
}

body.dd-renewal-home-page .renewal-footer-consult {
	border-top: 1px solid var(--rh-border);
	background: var(--rh-soft);
	padding: var(--rh-space-4) var(--rh-pad);
}

body.dd-renewal-home-page .renewal-footer-consult__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--rh-space-3);
	max-width: var(--rh-max);
	margin-inline: auto;
}

body.dd-renewal-home-page .renewal-footer-consult__text {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--rh-muted);
}

body.dd-renewal-home-page .renewal-footer-consult__mail {
	font-size: 0.8125rem;
	color: var(--rh-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.dd-renewal-home-page footer {
	margin-top: 0;
}

/* ワイド画面: 左右余白の単調さを軽減 */
@media (min-width: 1440px) {
	body.dd-renewal-home-page {
		background:
			linear-gradient(90deg, rgba(0, 104, 183, 0.06) 0%, transparent 22%),
			linear-gradient(270deg, rgba(0, 104, 183, 0.06) 0%, transparent 22%),
			repeating-linear-gradient(
				90deg,
				transparent,
				transparent 119px,
				rgba(0, 0, 0, 0.015) 119px,
				rgba(0, 0, 0, 0.015) 120px
			),
			var(--rh-bg);
	}

	body.dd-renewal-home-page #renewal-home-main .renewal-section--news,
	body.dd-renewal-home-page #renewal-home-main .renewal-section--pillars,
	body.dd-renewal-home-page #renewal-home-main .renewal-store--featured {
		position: relative;
	}

	body.dd-renewal-home-page #renewal-home-main .renewal-section__header,
	body.dd-renewal-home-page #renewal-home-main .renewal-news__head {
		max-width: var(--rh-max);
		margin-inline: auto;
		width: 100%;
	}
}

@media (min-width: 2560px) {
	body.dd-renewal-home-page {
		background:
			radial-gradient(ellipse 38% 55% at 50% 12%, rgba(0, 104, 183, 0.07), transparent 72%),
			linear-gradient(90deg, rgba(0, 104, 183, 0.09) 0%, transparent 28%),
			linear-gradient(270deg, rgba(0, 104, 183, 0.09) 0%, transparent 28%),
			repeating-linear-gradient(
				90deg,
				transparent,
				transparent 119px,
				rgba(0, 0, 0, 0.018) 119px,
				rgba(0, 0, 0, 0.018) 120px
			),
			var(--rh-bg);
	}
}

/* 1024–1366: Header nav 混雑軽減 — フォーム導線はアイコンのみ（LINE 相談と役割分担） */
@media screen and (min-width: 1024px) and (max-width: 1366px) {
	body.dd-renewal-home-page .pcNavi li.liContact a {
		font-size: 0;
		padding-inline: 1.25vw;
	}

	body.dd-renewal-home-page .pcNavi li.liContact a i {
		font-size: 1.125rem;
		vertical-align: middle;
	}
}

/* Footer 横スク — 768–1100px */
body.dd-renewal-home-page .footDataArea {
	width: min(1100px, 100%);
	max-width: 100%;
	box-sizing: border-box;
	padding-inline: var(--rh-pad);
}

/* Sticky LP CTA — 廃止 */
.renewal-sticky-cta {
	display: none !important;
}
