/**
 * OUTDOOR RESORT.net コンポーネント CSS
 * - ヒーロースライダー
 * - SP サブナビ横スクロール
 * - SNS フッター
 * - 施設マップ
 */

:root {
	--orn-link-color: #E08A3C;
	--orn-accent: #1D9E75;
	--orn-bg-soft: #F7F4EC;
	--orn-text: #2A2A2A;
	--orn-border: #E0DACB;
}

/* ============ Hero Slider（プロト orn0419/top 準拠：中央スケール＋ドット＋プログレス） ============ */
.orn-hero {
	--forest:       var(--wp--preset--color--primary);
	--forest-light: var(--wp--preset--color--primary-light);
	--charcoal:     var(--wp--preset--color--text);
	--serif:        var(--wp--preset--font-family--serif);
	margin-top: var(--orn-fixed-top); /* Avoid fixed header + subnav */
	padding: 22px 40px 24px;
}
.orn-hero__inner {
	max-width: 1280px;
	margin: 0 auto;
}
.orn-hero__slider {
	position: relative;
}
.orn-hero__viewport {
	overflow: hidden;
	padding: 10px 0 14px;
}
.orn-hero__track {
	display: flex;
	gap: 22px;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
	will-change: transform;
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.orn-hero__card {
	position: relative;
	flex: 0 0 calc((100% - 44px) / 3);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	overflow: hidden;
	color: var(--charcoal);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.94);
	isolation: isolate;
	border-radius: 24px;
	border: 1px solid rgba(14, 61, 46, 0.08);
	transform-origin: center center;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
	box-shadow: 0 14px 28px rgba(14, 61, 46, 0.08);
}
.orn-hero__card.is-side {
	transform: scale(0.94);
	opacity: 0.88;
	filter: saturate(0.96);
}
.orn-hero__card.is-center {
	transform: scale(1);
	opacity: 1;
	box-shadow: 0 18px 36px rgba(14, 61, 46, 0.12);
	z-index: 3;
}
.orn-hero__card.is-center .orn-hero__title {
	font-size: clamp(17px, 1.45vw, 22px);
}
.orn-hero__card.is-single {
	transform: none;
	opacity: 1;
	filter: none;
	box-shadow: 0 18px 36px rgba(14, 61, 46, 0.12);
}
.orn-hero__card:hover .orn-hero__image {
	transform: scale(1.04);
}
.orn-hero__image {
	position: relative;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	background-color: #ddd;
	transition: transform 0.7s ease;
	z-index: 0;
}
.orn-hero__image--empty {
	background: linear-gradient(135deg, #cfd9d7 0%, #b6c1bf 100%);
}
.orn-hero__body {
	position: relative;
	z-index: 2;
	padding: 16px 18px 18px;
	width: 100%;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.orn-hero__tag {
	display: inline-block;
	font-size: 10px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(14, 61, 46, 0.56);
	margin-bottom: 10px;
}
.orn-hero__title {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(16px, 1.3vw, 20px);
	line-height: 1.62;
	font-weight: 400;
	letter-spacing: 0.03em;
	color: var(--charcoal);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	min-height: calc(2 * 1.62em);
	transition: font-size 0.45s ease;
}
.orn-hero__date {
	display: block;
	margin-top: 10px;
	font-size: 11px;
	letter-spacing: 0.08em;
	color: rgba(42, 42, 40, 0.5);
}
.orn-hero__arrow {
	margin-top: auto;
	padding-top: 14px;
	padding-bottom: 2px;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	letter-spacing: 0.12em;
	color: var(--forest);
	border-bottom: 1px solid rgba(14, 61, 46, 0.24);
	transition: gap 0.2s ease;
}
.orn-hero__card:hover .orn-hero__arrow {
	gap: 14px;
}
.orn-hero__arrow::after {
	content: '→';
}
.orn-hero__controls {
	margin-top: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}
.orn-hero__pagination {
	display: flex;
	gap: 8px;
	align-items: center;
}
.orn-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	border: none;
	background: rgba(14, 61, 46, 0.18);
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease;
}
.orn-hero__dot.active {
	transform: scale(1.22);
	background: var(--forest);
}
.orn-hero__progress {
	flex: 1;
	max-width: 180px;
	height: 1px;
	background: rgba(14, 61, 46, 0.18);
	position: relative;
	overflow: hidden;
}
.orn-hero__progress-bar {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 33.333%;
	background: var(--forest);
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s ease;
}
.orn-hero__nav {
	display: flex;
	gap: 10px;
}
.orn-hero__nav-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(14, 61, 46, 0.18);
	background: transparent;
	color: var(--forest);
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.orn-hero__nav-btn:hover {
	background: var(--forest);
	border-color: var(--forest);
	color: #fff;
}

@media (max-width: 900px) {
	.orn-hero {
		padding: 18px 20px 22px;
	}
	.orn-hero__viewport {
		padding: 0 0 10px;
	}
	.orn-hero__track {
		gap: 16px;
	}
	.orn-hero__card {
		flex-basis: 100%;
		border-radius: 20px;
	}
	.orn-hero__card.is-side,
	.orn-hero__card.is-center {
		transform: none;
		opacity: 1;
		filter: none;
		box-shadow: 0 16px 32px rgba(14, 61, 46, 0.12);
	}
	.orn-hero__body {
		padding: 14px 16px 16px;
	}
	.orn-hero__title {
		font-size: 17px;
		line-height: 1.58;
	}
	.orn-hero__controls {
		margin-top: 10px;
		gap: 16px;
	}
	.orn-hero__progress {
		max-width: none;
	}
}

/* ============ Sub Navigation (SP horizontal scroll) ============ */
.subnav-wrapper {
	position: relative;
}

.subnav-track {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 0.5rem 1rem;
}

.subnav-track::-webkit-scrollbar {
	display: none;
}

.subnav-track > a,
.subnav-track > .wp-block-navigation-item {
	flex: 0 0 auto;
	white-space: nowrap;
}

.subnav-arrow {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	z-index: 1;
}

.subnav-arrow--prev { left: 0; }
.subnav-arrow--next { right: 0; }

.subnav-arrow[disabled] { opacity: 0.3; cursor: default; }

@media (max-width: 767px) {
	.subnav-arrow { display: block; }
}

/* ============ Footer SNS ============ */
.orn-sns {
	display: flex;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0;
	justify-content: center;
}

.orn-sns__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--orn-text);
	transition: background-color 0.2s, color 0.2s;
}

.orn-sns__link:hover {
	background: var(--orn-accent);
	color: #fff;
}

.orn-sns__link svg { width: 22px; height: 22px; }

/* ============ Facility Map ============ */
.orn-map {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
	margin: 2rem 0;
}

.orn-map__canvas {
	width: 100%;
	height: 400px;
	background: #f0f0f0;
}

.orn-map__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	background: #f0ede2;
	border: 1px dashed #c2b89a;
	color: #806e3c;
	text-align: center;
	padding: 1rem;
}

.orn-map__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.orn-map__item a {
	display: block;
	padding: 0.75rem 1rem;
	background: var(--orn-bg-soft);
	border-radius: 4px;
	color: var(--orn-text);
	text-decoration: none;
}

.orn-map__item a:hover { background: #ece6d4; }

/* ============ Facility archive/detail resort layout ============ */
.l-facility {
	--forest: var(--wp--preset--color--primary);
	--paper: var(--wp--preset--color--bg);
	--sand: var(--wp--preset--color--bg-sand);
	--muted: var(--wp--preset--color--text-muted);
}
.p-facility-archive__intro {
	max-width: 760px;
	margin: 0 auto 28px;
	text-align: center;
}
.p-facility-archive__title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 300;
	line-height: 1.7;
	letter-spacing: .02em;
	color: #31322e;
}
.p-facility-archive__lead {
	margin-top: 14px;
	font-size: 14px;
	line-height: 2;
	color: #5f5e58;
}
.p-facility-archive__stack .wp-block-post-template {
	display: grid;
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
}
.p-facility-archive__stack .wp-block-post-template > li { margin: 0; }
.facility-card-meta {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(14,61,46,.08);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.facility-card-meta span,
.facility-info__spec-label {
	display: inline-flex;
	align-items: center;
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(93,202,165,.10);
	color: rgba(14,61,46,.72);
	font-size: 11px;
	letter-spacing: .06em;
}
.facility-info {
	max-width: 860px;
	margin: 40px auto 0;
	padding: 28px;
	background: rgba(255,255,255,.94);
	border: 1px solid rgba(14,61,46,.08);
	border-radius: 24px;
	box-shadow: 0 12px 28px rgba(27,44,36,.035);
}
.facility-info__kicker {
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(14,61,46,.52);
	margin-bottom: 8px;
}
.facility-info__title {
	font-family: var(--wp--preset--font-family--serif);
	/* No.64: clamp撤去＝h2(セクション見出し)はtheme.jsonの正準24pxへ統一（旧18-24pxで幅依存） */
	font-weight: 300;
	line-height: 1.8;
	color: #3b433f;
}
.facility-info__specs {
	margin-top: 20px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.facility-info__spec-item {
	padding: 16px;
	border: 1px solid rgba(14,61,46,.08);
	border-radius: 16px;
	background: #fff;
}
.facility-info__spec-value { margin-top: 8px; color: #4d4c47; font-size: 13px; line-height: 1.8; }
.facility-info__booking { margin-top: 22px; }
.facility-info__booking-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	background: var(--forest);
	color: #fff;
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: .12em;
	text-decoration: none;
}
.facility-info__gallery {
	margin-top: 24px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.facility-info__gallery-item {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
	background: var(--sand);
}
.facility-info__gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.orn-facility-detail {
	max-width: 860px;
	margin: 28px auto 0;
	padding: 24px;
	border-radius: 20px;
	background: rgba(255,255,255,.78);
	border: 1px solid rgba(14,61,46,.07);
}
.orn-facility-detail__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.orn-facility-detail__row dt { color: rgba(14,61,46,.72); font-size: 12px; letter-spacing: .1em; }
.orn-facility-detail__row dd { color: #4d4c47; font-size: 13px; line-height: 1.8; }
.orn-facility-detail__link { margin-top: 16px; }
.orn-facility-detail__link a { color: var(--forest); text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 900px) {
	.c-facility-card,
	.facility-info__specs,
	.facility-info__gallery { grid-template-columns: 1fr; }
	.c-facility-card:nth-child(even) .c-facility-card__image { order: 0; }
	.c-facility-card__image { min-height: 260px; }
	.facility-info { padding: 22px 16px; border-radius: 20px; }
	.orn-facility-detail__row { grid-template-columns: 1fr; gap: 8px; }
}
