/*
 * トップページの余白・横幅の整理（2026-11-18）
 * header.php でトップだけ top.css・sp-topPage.css の後に読み込む。元の CSS には手を入れず、ここで上書きする。
 * 方針: ブロックの上下余白を PC 56px／スマホ 40px 前後にそろえ、中身の横幅を 1030px にそろえる。
 */

/* ---------- 共通: ブロックの上下余白 ---------- */
.top-section {
	padding: 56px 0;
}

.top-section__title {
	margin-bottom: 24px;
}

.top-section__desc {
	margin-bottom: 24px;
}

/* ---------- スライダーの上（ページ共通の上余白 50px ＋ スライダー 20px → 16px） ---------- */
main {
	padding-top: 16px;
}

.hero {
	padding: 0 0 60px;
}

.hero__pagination {
	bottom: -36px !important;
}

/* ---------- 検索 ＋「ペットをお迎えした後も安心！プチマリサポート」の前後 ---------- */
/* 検索・サポートはもともと上の余白なし（共通の 56px を当てない） */
.top-search {
	padding-top: 0;
	padding-bottom: 28px;
}

.top-support {
	padding: 0;
}

.top-stock {
	padding-top: 48px;
	padding-bottom: 32px; /* 直後の特集バナーと近づける */
}

/* ---------- 横幅を 1030px にそろえる（ランキングの枠・特集バナー・マガジンの誘導） ---------- */
.top-stock .top-stock__list {
	max-width: 1030px;
}

ul.banner-grid {
	max-width: 1030px;
	margin: 0 auto;
	padding: 0;
}

/* ---------- 新着の子犬・子猫 ---------- */
.topNew {
	padding-top: 56px;
	padding-bottom: 40px;
}

/* ---------- 都道府県から探す・店舗検索 ---------- */
.top-pref-search {
	padding-top: 40px;
}

/* ---------- マガジンの誘導（店舗検索の下。誘導そのものの余白は youtube-shorts.css） ---------- */
.top-magazineLink + .top-section {
	padding-top: 48px;
}

/* ---------- お客様フォト・店舗ブログ・お役立ち情報のカード ---------- */
/* カードの高さ固定（360px）をやめ、中身の高さで横一列をそろえる（下の空きをなくす） */
.top-section .owl-carousel .owl-stage {
	display: flex;
}

.top-section .owl-carousel .owl-item {
	display: flex;
}

.top-section .owl-carousel .owl-item > .item {
	display: flex;
	width: 100%;
}

.top-section .blogPost_top {
	height: auto;
	margin-bottom: 8px;
}

.top-section .storeBlog__btn {
	margin-top: 24px;
}

/* ---------- スマホ ---------- */
@media (max-width: 1000px) {
	.top-section {
		padding: 40px 0;
	}

	.top-section__title {
		margin-bottom: 16px;
	}

	.top-section__desc {
		margin-bottom: 20px;
	}

	main {
		padding-top: 12px;
	}

	.hero {
		padding: 0 0 48px;
	}

	.hero__pagination {
		bottom: -30px !important;
	}

	.top-search {
		padding-top: 0;
		padding-bottom: 20px;
	}

	.top-support {
		padding: 0;
	}

	.top-stock {
		padding-top: 36px;
		padding-bottom: 24px;
	}

	.topNew {
		padding-top: 40px;
		padding-bottom: 32px;
	}

	.top-pref-search {
		padding-top: 32px;
	}

	.top-magazineLink + .top-section {
		padding-top: 36px;
	}

	.top-section .storeBlog__btn {
		margin-top: 20px;
	}
}
