/* トップページだけで使う見た目（設計書② 4 章）。見た目は見本 v10 に合わせる。 */

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

/* ---- 大見出し（見本 v10 の .hero） ---- */
.lg-front-hero {
	padding: 72px var(--lg-gutter) 0;
	text-align: center;
}

.lg-front-dots {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 14px;
}

.lg-front-dots i {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	animation: lg-front-hop 2.4s var(--lg-ease) infinite;
}

.lg-front-dots i:nth-child(1) { background: var(--lg-amami); }
.lg-front-dots i:nth-child(2) { background: var(--lg-kikai); animation-delay: .12s; }
.lg-front-dots i:nth-child(3) { background: var(--lg-tokunoshima); animation-delay: .24s; }
.lg-front-dots i:nth-child(4) { background: var(--lg-okinoerabu); animation-delay: .36s; }
.lg-front-dots i:nth-child(5) { background: var(--lg-yoron); animation-delay: .48s; }

@keyframes lg-front-hop {
	0%, 60%, 100% { transform: none; }
	30% { transform: translateY(-6px); }
}

.lg-front-eyebrow {
	margin: 0;
	font-size: 21px;
	font-weight: 600;
}

.lg-front-hero h1 {
	margin-top: 6px;
}

/* 5 色のグラデーション（1 画面に 1 か所） */
.lg-rainbow {
	background: var(--lg-rainbow);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: lg-front-flow 7s ease-in-out infinite alternate;
}

@keyframes lg-front-flow {
	to { background-position: 100% 0; }
}

.lg-front-lead {
	max-width: 30em;
	margin: 20px auto 0;
	font-size: clamp(19px, 2.2vw, 24px);
	font-weight: 600;
	line-height: 1.5;
	color: var(--lg-sub);
}

.lg-front-ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin: 26px 0 0;
}

/* 写真が広がる */
.lg-front-photo {
	height: 80vh;
	margin-top: 56px;
}

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

/* ---- 文字が灯る（見本 v10 の .lit） ---- */
.lg-front-light {
	margin-top: 96px;
	background: #000;
}

.lg-front-light p {
	font-size: clamp(30px, 4.6vw, 56px);
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	font-feature-settings: "palt";
	text-wrap: balance;
}

/* 黒い背景の上では、島の色を少し明るくする（見本 v10 と同じ） */
.lg-front-light [data-island="amami"] { color: #36a9ff; }
.lg-front-light [data-island="kikai"] { color: #ff9a4d; }
.lg-front-light [data-island="tokunoshima"] { color: #ff4a4f; }
.lg-front-light [data-island="okinoerabu"] { color: var(--lg-okinoerabu); }
.lg-front-light [data-island="yoron"] { color: #4fd178; }

/* ---- 島を選ぶ（見本 v10 の .picker） ---- */
.lg-front-islands {
	--lg-pick: var(--lg-amami);
	padding: 130px var(--lg-gutter) 120px;
	text-align: center;
	background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--lg-pick) 14%, white) 100%);
	transition: background .8s var(--lg-ease);
}

.lg-front-islands[data-picked="kikai"] { --lg-pick: var(--lg-kikai); }
.lg-front-islands[data-picked="tokunoshima"] { --lg-pick: var(--lg-tokunoshima); }
.lg-front-islands[data-picked="okinoerabu"] { --lg-pick: var(--lg-okinoerabu); }
.lg-front-islands[data-picked="yoron"] { --lg-pick: var(--lg-yoron); }

.lg-front-islands h2 {
	font-size: clamp(40px, 6vw, 64px);
}

.lg-front-stage {
	position: relative;
	width: min(860px, 100%);
	margin: 48px auto 0;
	overflow: hidden;
	border-radius: var(--lg-radius-panel);
	box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--lg-pick) 60%, transparent);
}

.lg-front-stage img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* JavaScript が動くときだけ、写真とひとことを重ねて切り替える（動かないときは全部縦に並べる） */
.js .lg-front-stage,
.js .lg-front-picks-text {
	display: grid;
}

.js .lg-front-stage > *,
.js .lg-front-picks-text > * {
	grid-area: 1 / 1;
}

.lg-front-swatches {
	display: inline-flex;
	gap: 16px;
	margin-top: 32px;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .7);
}

.lg-front-swatches button {
	position: relative;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--lg-island);
	cursor: pointer;
	transition: transform .25s;
}

.lg-front-swatches button:hover {
	transform: scale(1.12);
}

.lg-front-swatches button::after {
	content: "";
	position: absolute;
	inset: -5px;
	border: 2px solid var(--lg-island);
	border-radius: 999px;
	opacity: 0;
	transform: scale(.8);
	transition: opacity .3s, transform .3s var(--lg-ease);
}

.lg-front-swatches button[aria-pressed="true"]::after {
	opacity: 1;
	transform: none;
}

html:not(.js) .lg-front-swatches {
	display: none;
}

.lg-front-pick-name {
	margin: 18px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--lg-sub);
}

.lg-front-pick-copy {
	margin: 6px 0 0;
	font-size: clamp(22px, 2.8vw, 32px);
	font-weight: 700;
	line-height: 1.35;
	font-feature-settings: "palt";
	text-wrap: balance;
}

.lg-front-pick .lg-more {
	display: inline-block;
	margin-top: 14px;
	font-size: 19px;
}

@media (prefers-reduced-motion: reduce) {
	.lg-front-dots i,
	.lg-rainbow {
		animation: none;
	}

	.lg-front-islands,
	.lg-front-swatches button,
	.lg-front-swatches button::after {
		transition: none;
	}
}

/* ---- おすすめの寄り道（見本 v10 の .hl・.slide） ---- */
.lg-front-picks {
	padding: 120px 0 100px;
	overflow: hidden;
}

.lg-front-picks h2,
.lg-front-moods h2 {
	font-size: clamp(36px, 5vw, 56px);
}

.lg-front-slides-view {
	margin-top: 40px;
	padding-left: max(var(--lg-gutter), calc((100vw - var(--lg-width)) / 2 + var(--lg-gutter)));
}

.lg-front-slide {
	display: grid;
	flex: 0 0 min(860px, 86vw);
	grid-template-rows: auto 1fr;
	height: min(560px, 120vw);
	overflow: hidden;
	border-radius: var(--lg-radius-panel);
	background: var(--lg-island);
	color: #fff;
}

.lg-front-slide[data-island="okinoerabu"] {
	color: var(--lg-ink);
}

.lg-front-slide-text {
	padding: 36px 40px 0;
}

.lg-front-slide small {
	font-size: 15px;
	font-weight: 700;
	opacity: .85;
}

.lg-front-slide h3 {
	margin-top: 4px;
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.25;
}

.lg-front-slide-photo {
	display: block;
	margin: 28px 40px 0;
	border-radius: 18px 18px 0 0;
}

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

.lg-front-slides-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	width: min(320px, calc(100% - 44px));
	margin: 28px auto 0;
}

.lg-front-slides-controls [data-slides-bar] {
	flex: 1;
}

.lg-front-slides-controls button {
	width: 54px;
	height: 54px;
	border: 0;
	border-radius: 999px;
	background: #e8e8ed;
	font-size: 14px;
	cursor: pointer;
}

@media (max-width: 734px) {
	.lg-front-slide-text {
		padding: 26px 24px 0;
	}

	.lg-front-slide-photo {
		margin: 20px 24px 0;
	}
}

/* ---- 気分で探す ---- */
.lg-front-moods {
	padding: 40px 0 100px;
}

.lg-front-mood-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.lg-front-mood-list a {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--lg-bg-2);
	color: var(--lg-ink);
	font-size: 17px;
	font-weight: 600;
	transition: background .2s;
}

.lg-front-mood-list a:hover {
	background: #e8e8ed;
}

/* ---- タイル（見本 v10 の .tiles・.tile。島の色で塗る） ---- */
.lg-front-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 12px;
	background: var(--lg-bg-2);
}

.lg-front-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 580px;
	padding: 56px 28px 0;
	overflow: hidden;
	border-radius: var(--lg-radius-panel);
	background: var(--lg-island);
	color: #fff;
	text-align: center;
}

.lg-front-tile[data-island="okinoerabu"] {
	color: var(--lg-ink);
}

.lg-front-tile-wide {
	grid-column: 1 / -1;
	min-height: 620px;
	background: #0b1220;
}

.lg-front-tile h3 {
	font-size: clamp(32px, 4vw, 48px);
	letter-spacing: -.02em;
	line-height: 1.15;
}

.lg-front-tile-sub {
	margin: 8px 0 0;
	font-size: clamp(19px, 2vw, 24px);
}

.lg-front-tile-wide .lg-front-tile-sub {
	color: #a1a1a6;
}

.lg-front-tile-ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 18px 0 0;
	font-size: 17px;
}

.lg-button-white {
	background: #fff;
	color: #0b1220;
}

.lg-more-light {
	color: inherit;
}

.lg-front-tile-wide .lg-more-light {
	color: #5ad1ff;
}

.lg-front-tile-pic {
	display: block;
	width: 100%;
	margin-top: auto;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 16px;
	clip-path: inset(0 round 16px); /* 中の写真が動いている間も、角を丸く切る（overflow だけでは切れないブラウザがある） */
}

/*
 * 写真のあるタイル: 写真は四方に余白をとって下に置き、文字のまとまりは写真の上の空きの天地の中央に置く。
 * 見出しの上と、写真の直前の要素の下に同じ余白（auto + 28px）をとって、上下をそろえる。
 */
.lg-front-tile:not(.lg-front-tile-wide) {
	padding: 28px;
}

.lg-front-tile:not(.lg-front-tile-wide) > h3 {
	margin-top: auto;
	padding-top: 28px;
}

.lg-front-tile:not(.lg-front-tile-wide) > :nth-last-child(2) {
	margin-bottom: 28px;
}

.lg-front-tile-pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lg-front-route {
	width: min(520px, 100%);
	margin: auto 0 40px;
}

.lg-front-route svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.lg-front-route circle {
	fill: #fff;
}

.lg-front-route text {
	fill: #fff;
	font-size: 15px;
	font-weight: 700;
}

/* 読みもののタイル（中にリンクのリストがあるので、タイル全体はリンクにしない） */
.lg-front-stories {
	width: min(440px, 100%);
	margin: 16px 0 24px;
	padding: 0;
	list-style: none;
	text-align: left;
}

.lg-front-stories li {
	border-top: 1px solid rgba(255, 255, 255, .35);
}

.lg-front-stories a {
	display: block;
	padding: 10px 0;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.lg-front-stories a:hover {
	text-decoration: underline;
}

.lg-front-tile-note {
	margin: 16px 0 24px;
	font-size: 15px;
}

@media (max-width: 734px) {
	.lg-front-tiles {
		grid-template-columns: 1fr;
	}

	.lg-front-tile,
	.lg-front-tile-wide {
		min-height: 500px;
	}

	.lg-front-tile-wide {
		padding-top: 44px;
	}

	.lg-front-tile:not(.lg-front-tile-wide) {
		min-height: 0;
		padding: 20px;
	}
}

/* ---- 島の情報を教える ---- */
.lg-front-community {
	padding: 100px 0 40px;
	text-align: center;
}

.lg-front-community h2 {
	font-size: clamp(32px, 4.4vw, 48px);
}

.lg-front-community p {
	max-width: 36em;
	margin: 18px auto 0;
	font-size: 17px;
}

.lg-front-community-note {
	color: var(--lg-sub);
	font-size: var(--lg-text-small) !important;
}

/* ---- お知らせ ---- */
.lg-front-news {
	padding: 40px 0 0;
}

.lg-front-news h2 {
	font-size: 28px;
}

.lg-front-news ul {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.lg-front-news li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding: 14px 0;
	border-top: 1px solid var(--lg-line);
	font-size: 15px;
}

.lg-front-news time {
	color: var(--lg-sub);
	font-size: 13px;
	line-height: 1.8;
}

.lg-front-news a {
	color: var(--lg-ink);
}

.lg-front-news a:hover {
	text-decoration: underline;
}
