/*
 * トップページ専用（旧サイトのページ別CSS「home」＋各プラグインの見た目を引き継ぎ）
 */

/* ---------- メインビジュアル（旧 Revolution Slider） ---------- */
/* 画面幅ごとの高さとロゴの幅は旧スライダーの設定（1240 / 1024 / 778px で切り替え）に合わせている */

.hero {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 700px;
	overflow: hidden;
	background: #e8e8e8;
}

.hero__logo {
	width: 1190px;
	max-width: none;
	animation: hero-fade 0.3s ease-in-out both;
}

@keyframes hero-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 1240px) {
	.hero__logo { width: 914px; }
}

@media (max-width: 1024px) {
	.hero { height: 600px; }
	.hero__logo { width: 783px; }
}

@media (max-width: 778px) {
	.hero { height: min(400px, 83.333vw); }
	.hero__logo { width: min(464px, 96.667vw); }
}

@media (prefers-reduced-motion: reduce) {
	.hero__logo { animation: none; }
}

/* ---------- 写真付きリンク（旧 Essential Grid） ---------- */

.menu-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
}

.menu-tiles__link {
	position: relative;
	display: block;
	aspect-ratio: 3 / 1;
	overflow: hidden;
}

.menu-tiles__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.menu-tiles__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.55);
	transition: background-color 0.3s;
}

.menu-tiles__link:hover img {
	opacity: 1;
	transform: scale(1.05);
}

.menu-tiles__link:hover::after {
	background: rgba(10, 10, 10, 0.35);
}

.menu-tiles__label {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-left: 10px;
	color: #fff;
	font-weight: 800;
	text-align: center;
}

.menu-tiles__en {
	font-size: 18px;
	line-height: 24px;
	letter-spacing: 2px;
}

.menu-tiles__ja {
	margin-top: 3px;
	font-family: "游ゴシック体", "Yu Gothic", YuGothic, var(--font-base);
	font-size: 11px;
	line-height: 11px;
	letter-spacing: 3px;
}

@media (max-width: 800px) {
	.menu-tiles {
		grid-template-columns: 1fr;
	}

	.menu-tiles__en {
		font-size: 22px;
		line-height: 28px;
	}
}

/* ---------- 最新記事（旧 Megaposts） ---------- */

.recent-posts {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
}

.recent-posts__item {
	width: 23%;
	margin: 0 2% 20px 0;
	font-size: 16px;
}

.recent-posts--2 .recent-posts__item {
	width: 48%;
	margin-right: 4%;
}

.recent-posts--2 .recent-posts__item:nth-child(2n) {
	margin-right: 0;
}

.recent-posts__thumb {
	display: block;
}

.recent-posts__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.recent-posts__cat {
	margin: 7px 0 5px;
	min-height: 20px;
	line-height: 20px;
}

.recent-posts__cat a {
	display: inline-block;
	padding: 0 4px;
	background: var(--color-brown);
	color: #eee;
	font-size: 10px;
	line-height: 20px;
}

.recent-posts__title {
	display: block;
	color: #eee;
	font-size: 14px;
	font-weight: bold;
	line-height: 24px;
}

.recent-posts__title:hover {
	color: #aaa;
}

.recent-posts__date {
	color: #888;
	font-size: 11px;
	line-height: 27px;
}

.btns {
	width: 200px;
	padding: 7px;
	letter-spacing: 2px;
}

/* ---------- オンラインショップ ---------- */
/* 上下の空きは旧サイト（画像の上下に空行があった）に合わせている */

.online-shop .row {
	margin-top: 33px;
	margin-bottom: 39px;
}

.online-shop img {
	display: block;
}

@media (max-width: 800px) {
	.online-shop .col + .col {
		margin-top: 53px;
	}
}

/* ---------- 店舗カード ---------- */

.salon-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
}

.salon-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 50px 20px;
	background-position: center center;
	background-size: cover;
	color: #fff;
	text-align: center;
}

.salon-card p {
	margin: 0;
	text-align: center;
}

.salon-card__label {
	color: var(--color-brown);
	font-size: 14px;
	font-weight: bold;
	line-height: 29.82px;
	letter-spacing: 3px;
}

.salon-card__name {
	margin: -5px 0 18px !important;
	font-size: 20px;
	font-weight: bold;
	line-height: 42.6px;
	letter-spacing: 5px;
}

.salon-card__detail {
	font-size: 14px;
	line-height: 24px;
	letter-spacing: 3px;
}

.salon-card__tel {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	height: 42px;
	margin: 21px auto 0 !important;
	font-size: 21px;
	font-weight: bold;
	line-height: 30.6px;
	letter-spacing: 2px;
}

.salon-card__tel .icon {
	margin-right: 8px;
	font-size: 28px;
}

.salon-card__buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 25px !important;
}

.salon-card__btn {
	width: 195px;
}

/* 旧サイトのトップページ用CSS: スマホ用の部分は左右10px内側に寄せる */
@media (max-width: 800px) {
	.page-home .mob {
		padding-right: 10px;
		padding-left: 10px;
	}

	/* スマホでは画面幅いっぱいに縦に並べ、4枚とも一番背の高いカードと同じ高さにする（旧サイトと同じ） */
	.salon-cards {
		grid-template-columns: 1fr;
		grid-auto-rows: 1fr;
	}

	.salon-card {
		padding: 52px 20px 40px;
	}

	.salon-card__buttons {
		margin-top: 5px !important;
	}
}
