/*
 * WordPress テーマで足した見た目。承認済みの試作の CSS（house-cleaning.css）は変えず、ここで次だけを足す。
 * 見本の内容のときは、試作と同じ見た目になる（足したものの多くは、文字が長いとき・件数が違うときだけ効く）。
 * - 間取りの図（写真ではなく、テーマの中で描いた SVG）
 * - 作業前・作業後の2枚の写真を、同じ枠の中に左右に並べる
 * - TOP の写真の焦点、スタッフ・ご利用の流れ・見積もり依頼の帯の写真の見せる位置
 * - 文字や行が増えたときに欄を伸ばす（PC は完成図の寸法が最小の高さ）
 * - 連絡先が無いときの余白、読み上げだけの文字、フッター、公開トップ以外のページ
 */

/* 読み上げだけの文字 */
.hc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* 場所のボタンを囲むフォーム（JavaScript が無いときに、選んだ場所を表示し直すため） */
.hc-map__form {
	margin: 0;
}

/* 間取りの図（インラインの SVG）。試作の画像と同じ枠に置く */
.hc-map__plan {
	display: block;
	overflow: hidden;
}

/* よくあるご質問：Safari の開閉の三角を出さない（試作と同じ見た目） */
.hc-qa summary::-webkit-details-marker {
	display: none;
}

/* 連絡先が1つも無いとき：追尾CTA の分の余白を取らない */
body.hc-no-bar,
body.hc-body--sub {
	padding-bottom: 0;
}

.hc-no-bar .hc-page,
.hc-body--sub .hc-page {
	padding-bottom: 0;
}

/* 作業前・作業後：2枚の写真を同じ枠の中に左右に並べる（文字は写真に焼き込まず、HTML で重ねる） */
.hc-ba__pair {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: minmax(0, 1fr);
	gap: 2px;
	overflow: hidden;
	background: var(--hc-paper);
}

.hc-ba__side {
	position: relative;
	min-width: 0;
	min-height: 0;
}

.hc-ba .hc-ba__side img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.hc-ba__label {
	position: absolute;
	top: 10px;
	padding: 3px 12px;
	border-radius: 6px;
	color: var(--hc-paper);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.5;
}

.hc-ba__side--before .hc-ba__label {
	left: 10px;
	background: rgba(38, 40, 39, 0.78);
}

.hc-ba__side--after .hc-ba__label {
	right: 10px;
	background: var(--hc-coral-text);
}

/* 境目の飾り（試作と同じく動かない） */
.hc-ba__handle {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--hc-paper);
	color: var(--hc-ink);
	box-shadow: 0 2px 8px rgba(40, 30, 20, 0.25);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.hc-ba__handle svg {
	width: 18px;
	height: 18px;
}

/* スタッフの写真：横長の写真でも、顔が切れないよう上寄りの中央を見せる */
.hc-staff__photo img {
	object-position: 50% 20%;
}

/* 見積もり依頼の帯の写真：見本は横長の写真の右側（植物）を見せる。差し替えた写真は中央 */
.hc-cta__plant {
	object-position: 85% 60%;
}

.hc-cta__plant--custom {
	object-position: 50% 50%;
}

/* フッター */
.hc-footer {
	padding: 24px 16px 20px;
	border-top: 1px solid var(--hc-line);
	background: var(--hc-bg);
	color: var(--hc-muted);
	font-size: 13px;
	line-height: 1.7;
	text-align: center;
}

.hc-footer__name {
	color: var(--hc-ink);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.hc-footer__tel {
	margin-top: 4px;
}

.hc-footer__tel a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 4px;
	color: var(--hc-ink);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.hc-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 8px;
	margin-top: 4px;
}

.hc-footer__legal a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 8px;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* 1024px 以下 */
@media (max-width: 1024px) {
	.hc-hero__photo {
		object-position: var(--hc-focus-sp, 66% 35%);
	}

	.hc-ba__pair {
		aspect-ratio: 350 / 210;
		border-radius: 12px;
	}

	/* 試作では img の height 属性（122）で高さが決まっていた。差し替えた写真の大きさに左右されないよう固定する */
	.hc-card img {
		height: 122px;
	}
}

/* PC（1025px 以上） */
@media (min-width: 1025px) {
	.hc-hero__photo {
		object-position: var(--hc-focus-pc, 50% 2%);
	}

	/* 連絡先が無く、右のレールを出さないときは、写真を右の端まで広げる */
	.hc-hero--no-rail .hc-hero__photo {
		width: 100%;
	}

	/* TOP の白い枠：文字が増えたら伸ばす（完成図の高さ 213 が最小） */
	.hc-hero__panel {
		height: auto;
		min-height: calc(var(--u) * 213);
		padding-bottom: calc(var(--u) * 16);
	}

	/* 作業前・作業後（完成図の 350 × 210 の枠に2枚を並べる） */
	.hc-ba__pair {
		width: calc(var(--u) * 350);
		height: calc(var(--u) * 210);
		gap: calc(var(--u) * 1.2);
		border-radius: calc(var(--u) * 9);
	}

	.hc-ba__label {
		top: calc(var(--u) * 9);
		padding: calc(var(--u) * 2) calc(var(--u) * 9);
		border-radius: calc(var(--u) * 4);
		font-size: max(11px, calc(var(--u) * 8.6));
	}

	.hc-ba__side--before .hc-ba__label {
		left: calc(var(--u) * 9);
	}

	.hc-ba__side--after .hc-ba__label {
		right: calc(var(--u) * 9);
	}

	.hc-ba__handle {
		width: calc(var(--u) * 24);
		height: calc(var(--u) * 24);
	}

	.hc-ba__handle svg {
		width: calc(var(--u) * 12);
		height: calc(var(--u) * 12);
	}

	/* 作業前後＋対応範囲：行が増えたら伸ばす（完成図の高さ 250・184 が最小） */
	.hc-work__frame {
		height: auto;
		min-height: calc(var(--u) * 250);
	}

	.hc-scope__col {
		height: auto;
		min-height: calc(var(--u) * 184);
	}

	.hc-scope__list {
		padding-bottom: calc(var(--u) * 4);
	}

	/* 料金の目安：注記が長いときは、枠の幅で折り返す。カードの名前が長いときは伸ばす */
	.hc-price .hc-frame {
		height: auto;
		min-height: calc(var(--u) * 195);
	}

	.hc-price__note {
		max-width: calc(var(--u) * 680);
	}

	.hc-card a {
		height: auto;
		min-height: calc(var(--u) * 114);
		padding-bottom: calc(var(--u) * 6);
	}

	/* ご利用の流れ：段階や文字が増えたら伸ばす（完成図の高さ 210 が最小） */
	.hc-flow__frame {
		height: auto;
		min-height: calc(var(--u) * 210);
	}

	.hc-steps li {
		height: auto;
		min-height: calc(var(--u) * 50);
	}

	.hc-steps li:last-child {
		min-height: 0;
	}

	.hc-steps li:not(:last-child)::before {
		bottom: 0;
		height: auto;
	}

	.hc-flow__photo {
		object-position: 78% 50%;
	}

	/* 見積もり依頼の帯：文字が増えたら伸ばし、右のボタンの下に文字が入らないようにする */
	.hc-cta__band {
		height: auto;
		min-height: calc(var(--u) * 78);
		padding-top: calc(var(--u) * 8);
		padding-right: calc(var(--u) * 320);
		padding-bottom: calc(var(--u) * 8);
	}

	.hc-cta__button {
		top: 50%;
		transform: translateY(-50%);
	}

	/* フッター：画面の下の追尾CTA に重ならないよう、ページの下の余白（試作の 91）の上に置く */
	.hc-footer {
		padding: calc(var(--u) * 16) 16px calc(var(--u) * 12);
		font-size: max(12px, calc(var(--u) * 8));
	}

	.hc-footer__name {
		font-size: max(14px, calc(var(--u) * 10));
	}
}

/* 公開トップ以外のページ（プライバシーポリシーなど） */
.hc-subhead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 8px 16px;
	border-bottom: 1px solid var(--hc-line);
	background: var(--hc-paper);
}

.hc-subhead__logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--hc-ink);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.hc-subhead__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--hc-coral-text);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.hc-content__inner {
	max-width: 760px;
	margin-inline: auto;
	padding: 44px 16px 56px;
}

.hc-content__title {
	color: var(--hc-ink);
	font-size: clamp(24px, 6vw, 30px);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

.hc-content__subtitle {
	margin-top: 28px;
	color: var(--hc-ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
}

.hc-content__subtitle a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.hc-content__date {
	margin-top: 6px;
	color: var(--hc-muted);
	font-size: 13px;
}

.hc-content__body {
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.95;
}

.hc-content__body > * + * {
	margin-top: 1em;
}

.hc-content__body h2,
.hc-content__body h3 {
	margin-top: 1.8em;
	color: var(--hc-ink);
	line-height: 1.5;
}

.hc-content__body h2 {
	font-size: 21px;
}

.hc-content__body h3 {
	font-size: 18px;
}

.hc-content__body ul,
.hc-content__body ol {
	padding-left: 1.5em;
}

.hc-content__body ul {
	list-style: disc;
}

.hc-content__body ol {
	list-style: decimal;
}

.hc-content__body a {
	color: var(--hc-coral-text);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.hc-content__body img {
	height: auto;
}

.hc-content__back {
	margin-top: 32px;
}

.hc-content__back .hc-pill {
	min-height: 52px;
	padding: 0 28px;
	font-size: 16px;
}

.hc-content__back .hc-pill svg {
	width: 16px;
	height: 16px;
}

.hc-content .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.hc-content .nav-links a,
.hc-content .nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--hc-line-strong);
}
