/* お店・スポットのページ（/shop/… /attractions/… /?lagoon_spot=…）の見た目（設計書④）。見本 A・B・C に合わせる。 */

.lg-spot {
	overflow-x: clip;
}

/* ---- 頭（4.2） ---- */
.lg-spot-head {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
	padding-top: 28px;
	padding-bottom: 40px;
}

.lg-spot-head.has-photo {
	grid-template-columns: 1fr 1fr;
}

.lg-spot-kind {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--lg-island-text);
}

.lg-spot-head h1 {
	margin: 8px 0 0;
	font-size: clamp(36px, 5.6vw, 72px);
	letter-spacing: -.02em;
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.lg-spot-place {
	margin: 12px 0 0;
	font-size: 19px;
	color: var(--lg-sub);
}

.lg-spot-status {
	display: inline-block;
	margin: 16px 0 0;
	padding: 8px 16px;
	border-radius: 12px;
	background: #fff4e5;
	color: #8a4b00;
	font-size: 15px;
	font-weight: 600;
}

.lg-spot-catch {
	margin: 16px 0 0;
	font-size: clamp(19px, 2vw, 22px);
	font-weight: 600;
}

.lg-spot-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.lg-spot-tags li {
	padding: 6px 14px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--lg-island) 12%, #fff);
	color: var(--lg-island-text);
	font-size: 14px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.lg-spot-photo {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 28px;
}

.lg-spot-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- 紹介文・注意書き（4.3） ---- */
.lg-spot-body {
	padding-bottom: 56px;
}

.lg-spot-lead {
	max-width: 38em;
	margin: 0 0 20px;
	font-size: clamp(17px, 1.8vw, 20px);
	line-height: 1.9;
	word-break: normal;
	line-break: strict;
}

.lg-spot-lead p {
	margin: 0 0 1em;
}

.lg-spot-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px;
	margin: 0 0 20px;
}

.lg-spot-gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

.lg-spot-note {
	margin: 0;
	font-size: 14px;
	color: var(--lg-sub);
}

.lg-spot-note .lg-more {
	margin-left: 12px;
}

/* ---- 簡単なページ（データに無い投稿・プラグインが無いとき） ---- */
.lg-simple {
	padding-top: 40px;
	padding-bottom: 80px;
}

@media (max-width: 734px) {
	.lg-spot-head,
	.lg-spot-head.has-photo {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* スマホは写真を頭のいちばん上に、幅いっぱいで */
	.lg-spot-photo {
		order: -1;
		margin: 0 calc(var(--lg-gutter) * -1);
		border-radius: 0;
	}
}

/* ---- 頭のボタン（4.2）。スマホでは出さず、下の帯に任せる（4.12） ---- */
.lg-spot-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.lg-spot-acts .lg-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	font-size: 17px;
	background: var(--lg-island);
	text-decoration: none;
}

.lg-spot .lg-button-ghost {
	background: transparent;
	color: var(--lg-island-text);
	box-shadow: inset 0 0 0 1.5px currentColor;
}

.lg-spot-save[aria-pressed="true"] svg {
	fill: currentColor;
}

/* 与論島など色の明るい島で、白い字が読めるよう文字用の濃い色で塗る */
.lg-spot[data-island="okinoerabu"] .lg-spot-acts .lg-button:not(.lg-button-ghost) {
	color: var(--lg-ink);
}

@media (max-width: 734px) {
	.lg-spot-acts {
		display: none;
	}
}

/* ---- 基本情報・情報確認・場所（4.4・4.5）。薄い灰色の帯に白い面を 2 つ並べる ---- */
.lg-spot-band {
	padding: 64px 0;
	background: var(--lg-bg-2);
}

.lg-spot-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 24px;
	align-items: start;
}

.lg-spot-panel {
	min-width: 0;
	padding: 36px;
	border-radius: var(--lg-radius-panel);
	background: var(--lg-bg);
}

.lg-spot-panel h2 {
	margin: 0 0 18px;
	font-size: clamp(26px, 3vw, 34px);
}

.lg-spot-table {
	display: grid;
	grid-template-columns: 7.5em 1fr;
	margin: 0;
}

.lg-spot-table dt,
.lg-spot-table dd {
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--lg-line, #e5e5ea);
	overflow-wrap: anywhere;
}

.lg-spot-table dt {
	color: var(--lg-sub);
	font-size: 15px;
}

.lg-spot-table dd a {
	color: var(--lg-link);
}

.lg-spot-unknown {
	color: var(--lg-sub);
}

/* キャッシュレス（プラグインの lg_render_cashless() の出力） */
.lg-spot-table .spot-payment strong {
	font-weight: 400;
}

.lg-spot-table .payment-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.lg-spot-table .payment-note {
	margin: 6px 0 0;
	font-size: 14px;
	color: var(--lg-sub);
}

/* 情報確認 */
.lg-spot-check {
	margin-top: 24px;
	padding: 22px 24px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--lg-island) 8%, #fff);
}

.lg-spot-fresh {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--lg-island-text);
}

.lg-spot-check h3 {
	margin: 10px 0 0;
	font-size: 19px;
}

.lg-spot-check p {
	margin: 8px 0 0;
	font-size: 15px;
}

.lg-spot-check-acts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-top: 14px !important;
}

.lg-spot-check .lg-button {
	background: var(--lg-island);
	text-decoration: none;
}

.lg-spot[data-island="okinoerabu"] .lg-spot-check .lg-button {
	color: var(--lg-ink);
}

/* 場所 */
/* map.css の #wp-map（島の地図の高さ）より強くする */
#wp-map.lg-spot-map {
	height: 340px;
	border-radius: 20px;
	overflow: hidden;
	background: #e8eef2;
}

.lg-spot-nomap {
	margin: 0;
	padding: 28px 20px;
	border-radius: 20px;
	background: var(--lg-bg-2);
	color: var(--lg-sub);
}

.lg-spot-maplinks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 14px 0 0;
	font-size: 15px;
}

.lg-spot-place-panel .lg-spot-note {
	margin-top: 10px;
}

.lg-spot-boat {
	padding: 20px;
	border-radius: 18px;
	background: color-mix(in srgb, var(--lg-island) 8%, #fff);
}

.lg-spot-boat p {
	margin: 8px 0 12px;
}

@media (max-width: 734px) {
	.lg-spot-band {
		padding: 40px 0;
	}

	.lg-spot-grid {
		grid-template-columns: 1fr;
	}

	.lg-spot-panel {
		padding: 24px 20px;
	}

	.lg-spot-table {
		grid-template-columns: 6.5em 1fr;
	}

	.lg-spot-check {
		padding: 20px 16px;
	}

	/* 「今もこの情報で合ってるよ」が 1 文字だけ次の行に落ちないように */
	.lg-spot-check .lg-button {
		padding: 11px 16px;
		font-size: 15px;
		white-space: nowrap;
	}

	#wp-map.lg-spot-map {
		height: 260px;
	}
}

/* ---- 予約・問い合わせ（4.6）、みんなの体験（4.7）。中身はプラグインの HTML なので、その中のクラスに見た目を付ける ---- */
.lg-spot-contact {
	display: grid;
	gap: 24px;
	padding-top: 64px;
}

.lg-spot .info-section h2 {
	margin: 0;
	font-size: clamp(26px, 3vw, 34px);
}

.lg-spot .info-section > p {
	margin: 10px 0 0;
	color: var(--lg-sub);
}

.lg-spot .booking-links,
.lg-spot .spot-contact {
	padding: 32px 36px;
	border-radius: var(--lg-radius-panel);
	background: var(--lg-bg-2);
}

.lg-spot .booking-links__buttons,
.lg-spot .contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

/* プラグインのボタン（primary-button・outline-button・contact-*）を、テーマのボタンの形に */
.lg-spot .booking-links__buttons a,
.lg-spot .contact-actions a,
.lg-spot .community-experiences .primary-button {
	display: inline-flex;
	align-items: center;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	color: var(--lg-island-text);
	box-shadow: inset 0 0 0 1.5px currentColor;
}

.lg-spot .booking-links__buttons .primary-button,
.lg-spot .community-experiences .primary-button {
	background: var(--lg-island);
	color: #fff;
	box-shadow: none;
}

.lg-spot[data-island="okinoerabu"] .booking-links__buttons .primary-button,
.lg-spot[data-island="okinoerabu"] .community-experiences .primary-button {
	color: var(--lg-ink);
}

.lg-spot .booking-links__pr {
	margin: 14px 0 0;
	color: var(--lg-sub);
}

.lg-spot .contact-notice {
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 14px;
	background: #fff4e5;
	color: #8a4b00;
}

.lg-spot .contact-notice p {
	margin: 6px 0 0;
}

.lg-spot .contact-empty {
	margin: 12px 0 0;
	color: var(--lg-sub);
}

.lg-spot-experiences {
	padding-top: 80px;
}

.lg-spot .experience-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.lg-spot .experience-card {
	padding: 20px 24px;
	border-radius: 18px;
	background: var(--lg-bg-2);
}

.lg-spot .experience-card header {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 15px;
}

.lg-spot .experience-card header span {
	color: var(--lg-sub);
}

.lg-spot .experience-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.lg-spot .experience-photos img {
	width: 120px;
	height: 90px;
	object-fit: cover;
	border-radius: 10px;
}

.lg-spot .experience-empty {
	margin: 0;
	/* プラグインの文は <wbr> が無いので、「。」が行頭に落ちないよう普通の改行にする */
	word-break: normal;
	line-break: strict;
	padding: 24px 28px;
	border-radius: var(--lg-radius-panel);
	background: var(--lg-bg-2);
}

.lg-spot .community-experiences .primary-button {
	margin-top: 18px;
}

.lg-spot .community-experiences .sample-note {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--lg-sub);
}

/* ---- 終わり: 2 つ目の広告と島のページへ ---- */
.lg-spot-end {
	padding-top: 64px;
	padding-bottom: 96px;
}

.lg-spot-back {
	margin: 56px 0 0;
	text-align: center;
}

.lg-spot-back .lg-button {
	background: var(--lg-island);
	text-decoration: none;
}

.lg-spot[data-island="okinoerabu"] .lg-spot-back .lg-button {
	color: var(--lg-ink);
}

@media (max-width: 734px) {
	.lg-spot .booking-links,
	.lg-spot .spot-contact {
		padding: 24px 20px;
	}

	.lg-spot .experience-empty {
		padding: 20px;
	}
}

/* ---- 近くの寄り道・こちらも気になる（4.8・4.9）。③ のカードを 4 列（スマホは 2 列） ---- */
.lg-spot-more {
	padding-top: 80px;
}

.lg-spot-more h2 {
	margin: 0;
	font-size: clamp(30px, 4vw, 44px);
}

.lg-spot-more-sub {
	margin: 10px 0 28px;
	color: var(--lg-sub);
}

.lg-spot-more .lg-cards {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 4 枚なので、狭くなったら 2 列。480px 以下は ③ のカードと同じ 1 列（2 列だと長い名前の字が小さくなりすぎる） */
@media (max-width: 1068px) {
	.lg-spot-more .lg-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.lg-spot-more .lg-cards {
		grid-template-columns: 1fr;
	}
}

/* ---- スマホの下のボタン（4.12）。734px 以下だけ。JS が隠すまでは出しっぱなし ---- */
.lg-spot-bar {
	display: none;
}

@media (max-width: 734px) {
	.lg-spot-bar {
		position: fixed;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		left: 12px;
		z-index: 50;
		display: grid;
		grid-auto-columns: 1fr;
		grid-auto-flow: column;
		gap: 6px;
		padding: 8px;
		border-radius: 22px;
		background: rgba(255, 255, 255, .9);
		box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		transition: transform .3s var(--lg-ease), opacity .3s;
	}

	.lg-spot-bar.is-hidden {
		visibility: hidden;
		opacity: 0;
		transform: translateY(120%);
		transition: transform .3s var(--lg-ease), opacity .3s, visibility 0s .3s;
	}

	.lg-spot-bar a,
	.lg-spot-bar button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		min-height: 52px;
		padding: 6px 2px;
		border: 0;
		border-radius: 14px;
		background: transparent;
		color: var(--lg-island-text);
		font: inherit;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.2;
		text-decoration: none;
		cursor: pointer;
	}

	.lg-spot-bar .is-main {
		background: var(--lg-island);
		color: #fff;
	}

	.lg-spot[data-island="okinoerabu"] .lg-spot-bar .is-main {
		color: var(--lg-ink);
	}

	.lg-spot-bar [aria-pressed="true"] svg {
		fill: currentColor;
	}

	/* 帯の高さの分、ページの下と、Tab で移ったときの見える範囲を空ける */
	.lg-spot {
		padding-bottom: calc(96px + env(safe-area-inset-bottom));
	}

	html:has(.lg-spot-bar) {
		scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.lg-spot-bar,
	.lg-spot-bar.is-hidden {
		transition: none;
	}
}
