/*
 * Home (front page) — Figma benchmark "fortune" (node 17:4).
 * Loaded only on the front page (functions.php). Every rule is scoped to
 * body.fl-home or to fl- classes, so other templates and wp-admin keep
 * Twenty Twenty-Four's styles. Ported from prototype/src/styles.
 *
 * Contents
 *  1. Tokens            6. Header / navigation    11. Reading, methods
 *  2. Base + WP resets  7. Hero + free check form 12. Articles, voices
 *  3. Primitives        8. Sample, purpose        13. FAQ, final CTA
 *  4. Icons             9. Daily choice, calendar 14. Footer
 *  5. Components       10. Premium                15. Reduced motion
 */

/* ------------------------------------------------------------------ 1. Tokens */
/* Sampled from the benchmark. Teal #2AB2B0 with white text is 2.6:1, so text and
 * filled controls use #1C7675 (≥4.6:1 on every surface); the sampled teal stays
 * for decoration. Sizes use rem so text zoom works. */
body.fl-home {
	--fl-brand: #2ab2b0;
	--fl-primary: #1c7675;
	--fl-primary-hover: #175f5e;
	--fl-primary-active: #124b4a;
	--fl-brand-line: #a9dcda;
	--fl-brand-soft: #e2f3f2;
	--fl-chart-line: #1c9c99;
	--fl-deep: #065e71;
	--fl-gold: #c9a25e;
	--fl-red: #c9364a;

	--fl-ink: #1b2a3a;
	--fl-text: #44505c;
	--fl-muted: #5f6b76;
	--fl-on-primary: #ffffff;

	--fl-bg: #ffffff;
	--fl-surface: #ffffff;
	--fl-soft: #f7f7f6;
	--fl-grey: #eeedeb;
	--fl-warm: #f1efed;
	--fl-footer-bg: #dcdddd;
	--fl-border: #e3e6e8;
	--fl-border-strong: #c9d0d4;

	--fl-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "Noto Serif JP",
		"Noto Serif CJK JP", "Source Han Serif JP", "IPAexMincho", "IPAMincho", serif;
	--fl-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP",
		"Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;

	--fl-fs-hero: clamp(2rem, 10.5vw, 2.5rem); /* "あなたの現在の" stays on one line at 320px */
	--fl-fs-title: 1.75rem;
	--fl-fs-card-title: 1.125rem;
	--fl-fs-score: 3rem;
	--fl-fs-score-small: 2rem;
	--fl-fs-lead: 1rem;
	--fl-fs-body: 1rem;
	--fl-fs-small: 0.875rem;
	--fl-fs-caption: 0.75rem;

	--fl-s4: 0.25rem;
	--fl-s8: 0.5rem;
	--fl-s12: 0.75rem;
	--fl-s16: 1rem;
	--fl-s20: 1.25rem;
	--fl-s24: 1.5rem;
	--fl-s32: 2rem;
	--fl-s40: 2.5rem;
	--fl-s48: 3rem;
	--fl-s64: 4rem;

	--fl-content: 70rem;
	--fl-narrow: 45rem;
	--fl-gutter: 1rem;
	--fl-section: 4rem;
	--fl-header-h: 4rem;
	--fl-gap: 0.75rem;

	--fl-r-card: 16px;
	--fl-r-tile: 12px;
	--fl-r-button: 14px;
	--fl-r-pill: 999px;
	--fl-shadow-card: 0 4px 20px rgb(27 42 58 / 0.06);
	--fl-shadow-soft: 0 2px 10px rgb(27 42 58 / 0.05);
	--fl-shadow-primary: 0 6px 16px rgb(28 118 117 / 0.22);
	--fl-shadow-overlay: 0 8px 24px rgb(27 42 58 / 0.18);

	--fl-tap: 3rem;
	--fl-motion: 150ms ease-out;
}

@media (min-width: 48em) {
	body.fl-home {
		--fl-fs-hero: 3.25rem;
		--fl-fs-title: 2rem;
		--fl-fs-score: 3.5rem;
		--fl-fs-lead: 1.0625rem;
		--fl-gutter: 2rem;
		--fl-section: 5rem;
		--fl-gap: 1rem;
	}
}

@media (min-width: 64em) {
	body.fl-home {
		--fl-fs-hero: 3.5rem;
		--fl-fs-title: 2.25rem;
		--fl-fs-score: 4rem;
		--fl-fs-lead: 1.125rem;
		--fl-gutter: 2.5rem;
		--fl-section: 6rem;
		--fl-header-h: 5rem;
		--fl-gap: 1.5rem;
	}
}

/* ------------------------------------------------------------ 2. Base + WP resets */
body.fl-home {
	margin: 0;
	background: var(--fl-bg);
	color: var(--fl-text);
	font-family: var(--fl-sans);
	font-size: var(--fl-fs-body);
	line-height: 1.8;
	letter-spacing: 0.02em;
	line-break: strict;
	/* Phrase-aware breaks; a phrase wider than its column (e.g. 200% text) may still break. */
	word-break: auto-phrase;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

.fl-home *,
.fl-home *::before,
.fl-home *::after {
	box-sizing: border-box;
}

/* Twenty Twenty-Four spaces blocks with block-gap margins; Home spaces with grid gaps. */
.fl-home .wp-site-blocks {
	position: relative;
	padding: 0;
}

.fl-home .wp-site-blocks > *,
.fl-home .is-layout-flow > *,
.fl-home .is-layout-constrained > *,
.fl-home .is-layout-flex > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Element defaults stay at the lowest specificity so component classes always win. */
.fl-home :where(.fl-header, .fl-main, .fl-footer) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, details) {
	margin: 0;
}

.fl-home :where(.fl-main, .fl-footer) :where(h1, h2, h3, h4) {
	color: var(--fl-ink);
	text-wrap: balance;
}

.fl-home :where(.fl-main, .fl-footer) :where(h1, h2) {
	font-family: var(--fl-serif);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.04em;
}

.fl-home :where(.fl-main, .fl-footer) :where(h3, h4) {
	font-family: var(--fl-sans);
	font-size: inherit;
	font-weight: 700;
	line-height: 1.5;
}

.fl-home :where(.fl-main, .fl-footer) :where(p) {
	text-wrap: pretty;
}

.fl-home :where(.fl-main, .fl-footer) :where(a) {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.fl-home :is(button, input, select, textarea) {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

.fl-home button {
	cursor: pointer;
}

.fl-home svg {
	display: block;
	max-width: 100%;
}

.fl-home :focus-visible {
	outline: 2px solid var(--fl-primary);
	outline-offset: 3px;
}

.fl-home ::selection {
	background: var(--fl-primary);
	color: var(--fl-on-primary);
}

.fl-home [hidden] {
	display: none !important;
}

/* In-page links (menu, purpose cards, final CTA) scroll smoothly; sections that
 * receive focus after a menu link show no box outline. */
@media (prefers-reduced-motion: no-preference) {
	html:has(body.fl-home) {
		scroll-behavior: smooth;
	}
}

.fl-home .fl-main section[tabindex="-1"]:focus {
	outline: none;
}

/* JS-only controls are hidden when scripts do not run (class set in functions.php). */
html:not(.fl-js) .fl-home [data-requires-js] {
	display: none !important;
}

/* ------------------------------------------------------------------ 3. Primitives */
.fl-home .fl-container {
	width: 100%;
	max-width: calc(var(--fl-content) + var(--fl-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--fl-gutter);
}

.fl-home .fl-container--narrow {
	max-width: calc(var(--fl-narrow) + var(--fl-gutter) * 2);
}

.fl-home .fl-visually-hidden:not(:focus):not(:active) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Sections: one column; head → body → CTA spaced by the gap. */
.fl-home .fl-section {
	padding-block: var(--fl-section);
}

.fl-home .fl-section > .fl-container {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fl-s32);
}

/* ------------------------------------------------------------------ 4. Icons */
/* Line icons (20×20, same paths as the prototype) as CSS masks, so block markup
 * only needs a class (fl-i--NAME). Color comes from --fl-tone. */
.fl-home .fl-tone--teal {
	--fl-tone: var(--fl-primary);
}

.fl-home .fl-tone--gold {
	--fl-tone: var(--fl-gold);
}

.fl-home .fl-tone--ink {
	--fl-tone: #2d5c6b;
}

/* @fl-icons:start — generated from prototype/src/components/ui/icon-names.ts */
body.fl-home {
	--fl-icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E");
	--fl-icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='7' r='3.2'/%3E%3Cpath d='M3.8 17c.8-3.2 3.3-5 6.2-5s5.4 1.8 6.2 5'/%3E%3C/svg%3E");
	--fl-icon-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3.5' width='14' height='13' rx='2'/%3E%3Cpath d='M6.5 7.5h7M6.5 10h7M6.5 12.5h4'/%3E%3C/svg%3E");
	--fl-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E");
	--fl-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12'/%3E%3C/svg%3E");
	--fl-icon-arrow-right-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E");
}

.fl-home .fl-i--arrow-right { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E"); }
.fl-home .fl-i--arrow-left { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 10H4M9 5l-5 5 5 5'/%3E%3C/svg%3E"); }
.fl-home .fl-i--chevron-left { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5l-5 5 5 5'/%3E%3C/svg%3E"); }
.fl-home .fl-i--chevron-right { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5l5 5-5 5'/%3E%3C/svg%3E"); }
.fl-home .fl-i--chevron-down { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); }
.fl-home .fl-i--menu { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5.5h14M3 10h14M3 14.5h14'/%3E%3C/svg%3E"); }
.fl-home .fl-i--close { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5l10 10M15 5L5 15'/%3E%3C/svg%3E"); }
.fl-home .fl-i--plus { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E"); }
.fl-home .fl-i--minus { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12'/%3E%3C/svg%3E"); }
.fl-home .fl-i--alert { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3l8 14H2L10 3z'/%3E%3Cpath d='M10 8v4M10 14.5v.01'/%3E%3C/svg%3E"); }
.fl-home .fl-i--info { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M10 9v5M10 6.5v.01'/%3E%3C/svg%3E"); }
.fl-home .fl-i--clock { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M10 6v4l2.5 2.5'/%3E%3C/svg%3E"); }
.fl-home .fl-i--user { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='7' r='3.2'/%3E%3Cpath d='M3.8 17c.8-3.2 3.3-5 6.2-5s5.4 1.8 6.2 5'/%3E%3C/svg%3E"); }
.fl-home .fl-i--list { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3.5' width='14' height='13' rx='2'/%3E%3Cpath d='M6.5 7.5h7M6.5 10h7M6.5 12.5h4'/%3E%3C/svg%3E"); }
.fl-home .fl-i--star { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2.8l2.1 4.4 4.8.6-3.5 3.3.9 4.8L10 13.6l-4.3 2.3.9-4.8L3.1 7.8l4.8-.6z'/%3E%3C/svg%3E"); }
.fl-home .fl-i--heart { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 16.5s-6.4-3.8-6.4-8.4A3.5 3.5 0 0 1 10 6.2a3.5 3.5 0 0 1 6.4 1.9c0 4.6-6.4 8.4-6.4 8.4z'/%3E%3C/svg%3E"); }
.fl-home .fl-i--briefcase { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.8' y='6.5' width='14.4' height='10' rx='1.6'/%3E%3Cpath d='M7.4 6.5V5a1.4 1.4 0 0 1 1.4-1.4h2.4A1.4 1.4 0 0 1 12.6 5v1.5M2.8 10.8h14.4M9 10.8v1.6h2v-1.6'/%3E%3C/svg%3E"); }
.fl-home .fl-i--pouch { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.2 3.6h5.6l-1.5 2.6c2.6 1 4.4 3.4 4.4 6 0 2.6-2.6 4.2-5.7 4.2s-5.7-1.6-5.7-4.2c0-2.6 1.8-5 4.4-6z'/%3E%3Ccircle cx='10' cy='11.6' r='1.8'/%3E%3C/svg%3E"); }
.fl-home .fl-i--coins { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='10' cy='5.2' rx='5.2' ry='2'/%3E%3Cpath d='M4.8 5.2v3.2c0 1.1 2.3 2 5.2 2s5.2-.9 5.2-2V5.2M4.8 8.4v3.2c0 1.1 2.3 2 5.2 2s5.2-.9 5.2-2V8.4M4.8 11.6v3.2c0 1.1 2.3 2 5.2 2s5.2-.9 5.2-2v-3.2'/%3E%3C/svg%3E"); }
.fl-home .fl-i--leaf { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16c0-7 4.5-11.6 12.2-12.2C15.6 11.4 11.1 16 4 16z'/%3E%3Cpath d='M4 16l7.5-7.5'/%3E%3C/svg%3E"); }
.fl-home .fl-i--stopwatch { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='11' r='6.2'/%3E%3Cpath d='M10 7.8V11l2.2 1.6M7.6 2.8h4.8M10 2.8v2'/%3E%3C/svg%3E"); }
.fl-home .fl-i--chart { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16.5h14M5.5 13.5v3M9.5 11v5.5M13.5 12v4.5M4.5 10l4-3.4 3 2 4.8-4.6M13.4 4h2.9v2.9'/%3E%3C/svg%3E"); }
.fl-home .fl-i--document { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.8' y='2.8' width='10.4' height='14.4' rx='1.6'/%3E%3Cpath d='M7.4 7h5.2M7.4 10h5.2M7.4 13h3.2'/%3E%3C/svg%3E"); }
.fl-home .fl-i--calendar { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.2' y='4.4' width='13.6' height='12.4' rx='1.6'/%3E%3Cpath d='M3.2 8.2h13.6M7 2.8v3M13 2.8v3M7.2 11.6h1.2M11.6 11.6h1.2M7.2 14.2h1.2'/%3E%3C/svg%3E"); }
.fl-home .fl-i--calendar-check { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.2' y='4.4' width='13.6' height='12.4' rx='1.6'/%3E%3Cpath d='M3.2 8.2h13.6M7 2.8v3M13 2.8v3M7.4 12.4l1.9 1.9 3.4-3.4'/%3E%3C/svg%3E"); }
.fl-home .fl-i--image { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='14' height='12' rx='1.6'/%3E%3Ccircle cx='7.4' cy='8.4' r='1.3'/%3E%3Cpath d='M3.6 14.6l4-4 3 3 2-2 3.8 3.4'/%3E%3C/svg%3E"); }
.fl-home .fl-i--brand-x { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 3.6h3.5l9.3 12.8h-3.5zM16 3.6l-5.3 6M4 16.4l5.3-6'/%3E%3C/svg%3E"); }
.fl-home .fl-i--brand-instagram { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='14' height='14' rx='4'/%3E%3Ccircle cx='10' cy='10' r='3.2'/%3E%3Cpath d='M14.2 5.8v.01'/%3E%3C/svg%3E"); }
.fl-home .fl-i--brand-youtube { --fl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.6' width='15' height='10.8' rx='3'/%3E%3Cpath d='M8.6 7.8v4.4l3.8-2.2z'/%3E%3C/svg%3E"); }
/* @fl-icons:end */

.fl-home .fl-icon {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --------------------------------------------------------------- 5. Components */
/* Section title + lead */
.fl-home .fl-head {
	display: grid;
	justify-items: center;
	gap: var(--fl-s16);
	text-align: center;
}

.fl-home .fl-title {
	font-size: var(--fl-fs-title);
}

.fl-home .fl-lead {
	max-width: 34em;
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
	line-height: 1.9;
}

.fl-home .fl-note {
	color: var(--fl-muted);
	font-size: var(--fl-fs-caption);
	line-height: 1.7;
	text-align: center;
}

/* A note directly under a section body sits close to it. */
.fl-home .fl-section > .fl-container > .fl-note {
	margin-top: calc(var(--fl-s16) * -1);
}

@media (min-width: 48em) {
	.fl-home .fl-lead {
		font-size: var(--fl-fs-body);
	}
}

/* Card */
.fl-home .fl-card {
	position: relative;
	border-radius: var(--fl-r-card);
	background: var(--fl-surface);
	box-shadow: var(--fl-shadow-card);
}

/* CTA stack (Buttons block): centered button + optional text link. */
.fl-home .fl-cta.wp-block-buttons {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	gap: var(--fl-s8);
}

.fl-home .fl-cta .wp-block-button {
	width: min(100%, 22rem);
	max-width: 100%;
	margin: 0;
}

.fl-home .fl-cta .fl-pill {
	width: min(88%, 22rem);
}

.fl-home .fl-cta .fl-pill--compact {
	width: auto;
	min-width: min(12rem, 100%);
}

.fl-home .fl-cta .fl-textlink {
	width: auto;
}

/* Button base (Button block link / button, and the form's submit button) */
.fl-home .wp-block-button .wp-block-button__link,
.fl-home .fl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fl-s12);
	width: 100%;
	max-width: 100%;
	border: 0;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--fl-motion), border-color var(--fl-motion), box-shadow var(--fl-motion);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* Primary: filled teal */
.fl-home .fl-btn .wp-block-button__link,
.fl-home .fl-button {
	min-height: 3.5rem;
	padding: var(--fl-s12) var(--fl-s32);
	border-radius: var(--fl-r-button);
	background: var(--fl-primary);
	color: var(--fl-on-primary);
	box-shadow: var(--fl-shadow-primary);
	font-size: var(--fl-fs-body);
}

.fl-home .fl-btn .wp-block-button__link:hover,
.fl-home .fl-button:hover {
	background: var(--fl-primary-hover);
	color: var(--fl-on-primary);
}

.fl-home .fl-btn .wp-block-button__link:active,
.fl-home .fl-button:active {
	background: var(--fl-primary-active);
}

.fl-home .fl-button--block {
	width: 100%;
}

/* Secondary: white outline pill */
.fl-home .fl-pill .wp-block-button__link {
	min-height: 3.25rem;
	padding: var(--fl-s12) var(--fl-s24);
	border: 1px solid var(--fl-brand-line);
	border-radius: var(--fl-r-pill);
	background: var(--fl-surface);
	color: var(--fl-primary);
	box-shadow: var(--fl-shadow-soft);
	font-size: var(--fl-fs-body);
	letter-spacing: 0.04em;
}

.fl-home .fl-pill .wp-block-button__link:hover {
	border-color: var(--fl-primary);
	background: var(--fl-brand-soft);
	color: var(--fl-primary);
}

/* Text link under a button */
.fl-home .fl-textlink .wp-block-button__link {
	min-height: var(--fl-tap);
	padding: 0 var(--fl-s8);
	border-radius: var(--fl-r-tile);
	background: transparent;
	color: var(--fl-primary);
	box-shadow: none;
	font-size: var(--fl-fs-small);
	letter-spacing: 0.04em;
	text-decoration: underline;
	text-decoration-color: var(--fl-brand-line);
	text-underline-offset: 0.35em;
}

.fl-home .fl-textlink .wp-block-button__link:hover {
	background: transparent;
	color: var(--fl-primary);
	text-decoration-color: currentColor;
}

/* Arrow after the label (buttons that lead somewhere) */
.fl-home :is(.fl-btn, .fl-pill) .wp-block-button__link::after {
	content: "";
	flex: none;
	order: 3;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: var(--fl-icon-arrow-right) center / contain no-repeat;
	mask: var(--fl-icon-arrow-right) center / contain no-repeat;
}

/* Divider with centered label (— 無料でここまで分かります —) */
.fl-home .fl-divider {
	display: flex;
	align-items: center;
	gap: var(--fl-s12);
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
	font-weight: 700;
}

.fl-home .fl-divider::before,
.fl-home .fl-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--fl-border);
}

/* Round icon + label list (総合運 / 恋愛運 / 仕事運 / 金運).
 * ::before = white circle, ::after = the icon centered on it. */
.fl-home .fl-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
	gap: var(--fl-s8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fl-home .fl-features > li,
.fl-home .fl-premium__features > li,
.fl-home .fl-menu {
	--fl-circle-top: 0px;

	position: relative;
	display: grid;
	justify-items: center;
	align-content: start;
	gap: var(--fl-s8);
	text-align: center;
}

.fl-home .fl-features > li {
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
	font-weight: 700;
	line-height: 1.6;
}

.fl-home .fl-features > li::before,
.fl-home .fl-premium__features > li::before,
.fl-home .fl-menu::before {
	content: "";
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--fl-surface);
	box-shadow: var(--fl-shadow-soft);
}

.fl-home .fl-features > li::after,
.fl-home .fl-premium__features > li::after,
.fl-home .fl-menu::after {
	content: "";
	position: absolute;
	top: calc(var(--fl-circle-top) + 1rem);
	left: 50%;
	width: 1.5rem;
	height: 1.5rem;
	margin-left: -0.75rem;
	background-color: var(--fl-tone, currentColor);
	-webkit-mask: var(--fl-icon) center / contain no-repeat;
	mask: var(--fl-icon) center / contain no-repeat;
}

/* Photo (Image block). The section gives the figure its size (height or
 * aspect-ratio); the image fills it with a crop chosen per use. A soft fill
 * shows while it loads. Decorative textures are CSS backgrounds instead. */
.fl-home .fl-photo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0;
	background: var(--fl-grey);
}

.fl-home .fl-photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 50% 50%;
}

/* Icon buttons (calendar month, carousel) */
.fl-home .fl-icon-button {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: var(--fl-tap);
	height: var(--fl-tap);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #2d5c6b;
	transition: background-color var(--fl-motion);
}

.fl-home .fl-icon-button--solid {
	background: var(--fl-surface);
	box-shadow: var(--fl-shadow-soft);
	color: var(--fl-ink);
}

.fl-home .fl-icon-button--solid:hover {
	background: var(--fl-brand-soft);
}

/* Segmented buttons (chart category) */
.fl-home .fl-segmented {
	display: flex;
	gap: var(--fl-s8);
}

.fl-home .fl-segmented__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	min-width: 4.5rem;
	padding: var(--fl-s4) var(--fl-s16);
	border: 1px solid var(--fl-border-strong);
	border-radius: var(--fl-r-pill);
	background: var(--fl-surface);
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
	font-weight: 700;
	transition: background-color var(--fl-motion), color var(--fl-motion), border-color var(--fl-motion);
}

.fl-home .fl-segmented__button:hover {
	border-color: var(--fl-primary);
}

.fl-home .fl-segmented__button[aria-pressed="true"] {
	border-color: var(--fl-primary);
	background: var(--fl-primary);
	color: var(--fl-on-primary);
}

/* Badge (calendar day status) */
.fl-home .fl-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--fl-s4);
	max-width: 100%;
	padding: 0.125rem var(--fl-s12);
	border-radius: var(--fl-r-pill);
	background: var(--fl-brand-soft);
	color: var(--fl-primary);
	font-size: var(--fl-fs-caption);
	font-weight: 700;
	line-height: 1.6;
}

.fl-home .fl-badge--best {
	background: #f7efdf;
	color: #7a5a1d;
}

.fl-home .fl-badge--caution {
	background: #f9e6e9;
	color: #a12c3d;
}

.fl-home .fl-badge--normal {
	background: var(--fl-grey);
	color: var(--fl-text);
}

/* Loading / empty / error */
.fl-home .fl-state {
	display: grid;
	justify-items: center;
	gap: var(--fl-s8);
	padding: var(--fl-s32) var(--fl-s16);
	color: var(--fl-text);
	text-align: center;
}

.fl-home .fl-state__icon {
	color: var(--fl-muted);
}

.fl-home .fl-state__title {
	color: var(--fl-ink);
	font-weight: 700;
}

.fl-home .fl-state__body {
	color: var(--fl-muted);
	font-size: var(--fl-fs-small);
}

.fl-home .fl-state--error :is(.fl-state__icon, .fl-state__title) {
	color: var(--fl-red);
}

.fl-home .fl-state__retry {
	min-height: 2.75rem;
	margin-top: var(--fl-s8);
	padding: var(--fl-s8) var(--fl-s24);
	border: 1px solid var(--fl-brand-line);
	border-radius: var(--fl-r-pill);
	background: var(--fl-surface);
	color: var(--fl-primary);
	font-weight: 700;
}

/* ---------------------------------------------------------- 6. Header / navigation */
/* The nav row is laid over the top of the hero. */
.fl-home .fl-header {
	position: relative;
	z-index: 20;
}

.fl-home .fl-header__inner {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	gap: var(--fl-s8);
	min-height: var(--fl-header-h);
}

/* Brand (Site Title block). Benchmark: no wordmark over the mobile hero. */
.fl-home .fl-brand {
	min-width: 0;
	margin-inline: auto;
	overflow: hidden;
	visibility: hidden;
	font-family: var(--fl-serif);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

.fl-home .fl-brand a {
	display: inline-flex;
	align-items: center;
	min-height: var(--fl-tap);
	color: var(--fl-ink);
	text-decoration: none;
}

/* Navigation block: menu button on phones / tablets, inline links from 1024px.
 * Core copies the block classes onto the inner list too, so the block itself is nav.fl-nav. */
.fl-home nav.fl-nav.wp-block-navigation {
	order: -1;
	margin-inline-start: calc(var(--fl-s12) * -1);
	color: var(--fl-ink);
	font-family: var(--fl-sans);
	font-size: var(--fl-fs-small);
}

.fl-home .fl-nav .wp-block-navigation__responsive-container-open {
	place-items: center;
	width: var(--fl-tap);
	height: var(--fl-tap);
	border-radius: 50%;
	color: #2d5c6b;
}

.fl-home .fl-nav .wp-block-navigation__responsive-container-open:hover {
	background: rgb(255 255 255 / 0.6);
}

.fl-home .fl-nav .wp-block-navigation__responsive-container-open svg {
	width: 1.75rem;
	height: 1.75rem;
}

@media (max-width: 599px) {
	.fl-home .fl-nav .wp-block-navigation__responsive-container-open {
		display: inline-grid;
	}
}

/* Core switches to inline links at 600px; Home keeps the menu button up to 1024px. */
@media (min-width: 600px) and (max-width: 63.99em) {
	.fl-home .fl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.fl-home .fl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-grid;
	}
}

/* Overlay menu (open) — card list like the prototype's menu. */
.fl-home .fl-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
	background: var(--fl-soft);
	color: var(--fl-text);
	font-size: var(--fl-fs-body);
}

.fl-home .fl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: var(--fl-s8);
	right: var(--fl-s8);
	display: inline-grid;
	place-items: center;
	width: var(--fl-tap);
	height: var(--fl-tap);
	border-radius: 50%;
	color: var(--fl-ink);
}

.fl-home .fl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	width: 100%;
	max-width: calc(36rem + var(--fl-gutter) * 2);
	margin-inline: auto;
	padding: calc(var(--fl-tap) + var(--fl-s24)) var(--fl-gutter) var(--fl-s48);
	align-items: stretch;
}

.fl-home .fl-nav .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	gap: 0;
	align-items: stretch;
	width: 100%;
	border-radius: var(--fl-r-card);
	background: var(--fl-surface) !important;
	box-shadow: var(--fl-shadow-card);
	overflow: hidden;
}

.fl-home .fl-nav .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	align-items: stretch;
	width: 100%;
}

.fl-home .fl-nav .is-menu-open .wp-block-navigation-item + .wp-block-navigation-item {
	border-top: 1px solid var(--fl-border);
}

.fl-home .fl-nav .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	display: grid;
	gap: 2px;
	min-height: 3.5rem;
	padding: var(--fl-s12) var(--fl-s20);
	text-decoration: none;
}

.fl-home .fl-nav .wp-block-navigation-item__label {
	color: var(--fl-ink);
	font-weight: 700;
}

.fl-home .fl-nav .wp-block-navigation-item__description {
	display: none;
}

.fl-home .fl-nav .is-menu-open .wp-block-navigation-item__description {
	display: block;
	color: var(--fl-muted);
	font-size: var(--fl-fs-small);
	line-height: 1.7;
}

/* Member links (shindanshi-labo/user-menu, Home variant). Guests: ログイン and
 * 会員登録 as compact pills. Members: マイページ, a round icon on phones and an
 * outline pill from 1024px. */
.fl-home .fl-usermenu--home {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--fl-s4);
	margin-inline-end: calc(var(--fl-s4) * -1);
}

.fl-home .fl-usermenu--home a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fl-s8);
	min-height: 2.75rem;
	padding-inline: var(--fl-s12);
	border: 1px solid var(--fl-brand-line);
	border-radius: var(--fl-r-pill);
	background: rgb(255 255 255 / 0.8);
	color: var(--fl-primary);
	font-size: var(--fl-fs-caption);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--fl-motion);
}

.fl-home .fl-usermenu--home a:hover {
	background: var(--fl-surface);
}

.fl-home .fl-usermenu--home .fl-usermenu__register {
	border-color: var(--fl-primary);
	background: var(--fl-primary);
	color: var(--fl-on-primary);
}

.fl-home .fl-usermenu--home .fl-usermenu__register:hover {
	background: var(--fl-primary-hover);
}

.fl-home .fl-usermenu--home .fl-usermenu__login,
.fl-home .fl-usermenu--home .fl-usermenu__register {
	display: none;
}

.fl-home .fl-usermenu--home .fl-usermenu__icon,
.fl-home .fl-usermenu--home .fl-usermenu__mypage {
	width: var(--fl-tap);
	height: var(--fl-tap);
	padding: 0;
	border-color: transparent;
	border-radius: 50%;
	background: transparent;
	color: #2d5c6b;
}

.fl-home .fl-usermenu__icon span,
.fl-home .fl-usermenu__mypage span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fl-home .fl-usermenu--home .fl-ico {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (min-width: 48em) {
	.fl-home .fl-usermenu--home .fl-usermenu__icon {
		display: none;
	}

	.fl-home .fl-usermenu--home .fl-usermenu__login,
	.fl-home .fl-usermenu--home .fl-usermenu__register {
		display: inline-flex;
	}
}

@media (min-width: 64em) {
	.fl-home .fl-brand {
		order: 0;
		margin-inline: 0 auto;
		visibility: visible;
		font-size: 1.25rem;
	}

	.fl-home nav.fl-nav.wp-block-navigation {
		order: 1;
		margin-inline-start: 0;
	}

	.fl-home .fl-nav .wp-block-navigation__container {
		gap: var(--fl-s4);
	}

	.fl-home .fl-nav .wp-block-navigation-item__content {
		display: inline-flex;
		align-items: center;
		min-height: var(--fl-tap);
		padding-inline: var(--fl-s12);
		border-radius: var(--fl-r-pill);
		color: var(--fl-ink);
		font-weight: 700;
		letter-spacing: 0.06em;
		text-decoration: none;
		transition: background-color var(--fl-motion);
	}

	.fl-home .fl-nav .wp-block-navigation-item__content:hover {
		background: rgb(255 255 255 / 0.7);
		text-decoration: none;
	}

	.fl-home .fl-usermenu--home {
		order: 2;
		gap: var(--fl-s8);
		margin-inline: var(--fl-s8) 0;
	}

	.fl-home .fl-usermenu--home a {
		min-height: var(--fl-tap);
		padding-inline: var(--fl-s16);
		font-size: var(--fl-fs-small);
	}

	.fl-home .fl-usermenu--home .fl-usermenu__mypage {
		width: auto;
		height: auto;
		padding-inline: var(--fl-s16);
		border-color: var(--fl-brand-line);
		border-radius: var(--fl-r-pill);
		background: rgb(255 255 255 / 0.8);
		color: var(--fl-primary);
	}

	.fl-home .fl-usermenu__mypage span {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
	}

	.fl-home .fl-usermenu--home .fl-usermenu__mypage .fl-ico {
		width: 1.25rem;
		height: 1.25rem;
	}
}

/* ------------------------------------------------------ 7. Hero + free check form */
.fl-home .fl-hero {
	position: relative;
	background: var(--fl-soft);
}

/* Ring photo (supplied 1672×941). Phones / tablets: the ring sits below the
 * text as in the benchmark, the area above blends into the photo's pale sky,
 * and the form card overlaps the water. */
.fl-home .fl-hero__media {
	position: absolute;
	z-index: 0;
	inset: 0 0 auto;
	height: 44rem;
	background: linear-gradient(180deg, var(--fl-soft) 0%, #eaebec 100%);
}

.fl-home .fl-hero__media img {
	position: absolute;
	inset: auto 0 0;
	height: calc(100% - 14.5rem);
	object-position: 100% 50%;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%);
	mask-image: linear-gradient(180deg, transparent 0, #000 18%);
}

/* The water fades into the page under the form card. */
.fl-home .fl-hero__media::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: auto 0 0;
	height: 16%;
	background: linear-gradient(0deg, var(--fl-soft) 0%, rgb(247 247 246 / 0) 100%);
}

.fl-home .fl-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fl-s24);
	padding-top: calc(var(--fl-header-h) + var(--fl-s48));
	padding-bottom: var(--fl-s48);
}

/* Leaves room for the photo below the text before the form (benchmark ≈ 670px). */
.fl-home .fl-hero__text {
	display: grid;
	align-content: start;
	gap: var(--fl-s20);
	min-height: 33rem;
}

.fl-home .fl-hero__title {
	color: var(--fl-ink);
	font-size: var(--fl-fs-hero);
	line-height: 1.45;
	letter-spacing: 0.06em;
}

.fl-home .fl-hero__lead {
	color: #2e3a46;
	font-size: var(--fl-fs-small);
	font-weight: 500;
	line-height: 2;
}

/* Free check form (Custom HTML block) */
.fl-home .fl-form {
	display: grid;
	gap: var(--fl-s20);
	width: 100%;
	max-width: 30rem;
	justify-self: center;
	padding: var(--fl-s32) var(--fl-s20) var(--fl-s24);
}

.fl-home .fl-form__title {
	color: var(--fl-ink);
	font-family: var(--fl-sans);
	font-size: clamp(0.9375rem, 4.6vw, var(--fl-fs-card-title)); /* one line at 320px; still grows with text zoom */
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
	text-align: center;
}

.fl-home .fl-form__field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.fl-home .fl-form__legend {
	margin-bottom: var(--fl-s8);
	padding: 0;
	color: var(--fl-ink);
	font-size: var(--fl-fs-small);
	font-weight: 700;
}

/* One row normally; each part takes its own line when text is enlarged. */
.fl-home .fl-form__date {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fl-s8);
}

.fl-home .fl-form__date-part {
	display: flex;
	flex: 1 1 4.5rem;
	align-items: center;
	gap: var(--fl-s4);
	min-width: 0;
}

/* The year needs four digits. */
.fl-home .fl-form__date-part:first-child {
	flex: 1.4 1 6.25rem;
}

.fl-home .fl-form__unit {
	flex: none;
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
}

.fl-home .fl-select {
	position: relative;
	flex: 1;
	min-width: 0;
}

.fl-home .fl-select select {
	width: 100%;
	min-height: var(--fl-tap);
	padding: 0 1.75rem 0 var(--fl-s12);
	border: 1px solid var(--fl-border-strong);
	border-radius: 10px;
	background: var(--fl-surface);
	color: var(--fl-ink);
	font-size: var(--fl-fs-body);
	font-variant-numeric: tabular-nums;
	appearance: none;
	cursor: pointer;
}

.fl-home .fl-select select[aria-invalid="true"] {
	border-color: var(--fl-red);
}

.fl-home .fl-select__icon {
	position: absolute;
	top: 50%;
	right: var(--fl-s8);
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: var(--fl-muted);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: translateY(-50%);
	pointer-events: none;
}

.fl-home .fl-form__gender {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--fl-s12);
}

.fl-home .fl-toggle {
	position: relative;
}

/* The label is the click target; the radio stays focusable for the keyboard. */
.fl-home .fl-toggle__input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.fl-home .fl-toggle__label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--fl-tap);
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--fl-grey);
	color: var(--fl-text);
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--fl-motion), color var(--fl-motion);
}

.fl-home .fl-toggle__input:checked + .fl-toggle__label {
	background: var(--fl-primary);
	color: var(--fl-on-primary);
}

.fl-home .fl-toggle__input:focus-visible + .fl-toggle__label {
	outline: 2px solid var(--fl-primary);
	outline-offset: 3px;
}

.fl-home [data-field="gender"][data-invalid] .fl-toggle__label {
	border-color: var(--fl-red);
}

.fl-home .fl-form__error {
	margin-top: var(--fl-s8);
	color: var(--fl-red);
	font-size: var(--fl-fs-small);
	font-weight: 700;
}

.fl-home .fl-form__note {
	margin-top: calc(var(--fl-s8) * -1);
	color: var(--fl-muted);
	font-size: var(--fl-fs-caption);
}

.fl-home .fl-form .fl-divider {
	margin-top: var(--fl-s8);
}

@media (min-width: 48em) {
	.fl-home .fl-hero__lead {
		font-size: var(--fl-fs-lead);
	}

	.fl-home .fl-hero__media {
		height: 46rem;
	}

	.fl-home .fl-hero__media img {
		height: calc(100% - 17rem);
	}
}

/* PC: the photo fills the hero — text over the pale left side, the ring on
 * the right — and the form becomes a wide card across its lower edge. */
@media (min-width: 64em) {
	.fl-home .fl-hero__media {
		height: 42rem;
		background: none;
	}

	.fl-home .fl-hero__media img {
		inset: 0;
		height: 100%;
		object-position: 100% 40%;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.fl-home .fl-hero__media::before {
		content: "";
		position: absolute;
		z-index: 1;
		inset: 0;
		background: linear-gradient(90deg, rgb(255 255 255 / 0.6) 0%, rgb(255 255 255 / 0.25) 40%, rgb(255 255 255 / 0) 62%);
	}

	.fl-home .fl-hero__media::after {
		height: 22%;
	}

	.fl-home .fl-hero__inner {
		padding-bottom: var(--fl-s64);
	}

	.fl-home .fl-hero__text {
		align-content: center;
		max-width: 40rem;
		min-height: 28rem;
	}

	.fl-home .fl-form {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(13rem, 0.9fr);
		grid-template-areas:
			"title title title"
			"birth gender submit"
			"note note note"
			"divider divider divider"
			"features features features";
		column-gap: var(--fl-s32);
		row-gap: var(--fl-s16);
		max-width: 64rem;
		padding: var(--fl-s32) var(--fl-s40);
	}

	.fl-home .fl-form__title {
		grid-area: title;
	}

	.fl-home .fl-form [data-field="birth"] {
		grid-area: birth;
	}

	.fl-home .fl-form [data-field="gender"] {
		grid-area: gender;
	}

	/* Lines up with the selects (legend height above them). */
	.fl-home .fl-form .fl-button {
		grid-area: submit;
		align-self: start;
		min-height: var(--fl-tap);
		margin-top: calc(var(--fl-fs-small) * 1.8 + var(--fl-s8));
		padding-inline: var(--fl-s24);
	}

	.fl-home .fl-form .fl-form__note {
		grid-area: note;
		margin-top: calc(var(--fl-s4) * -1);
	}

	.fl-home .fl-form .fl-divider {
		grid-area: divider;
		justify-self: center;
		width: 100%;
		max-width: 40rem;
	}

	.fl-home .fl-form .fl-features {
		grid-area: features;
		justify-self: center;
		width: 100%;
		max-width: 30rem;
	}
}

/* ------------------------------------------------------------ 8. Sample, purpose */
.fl-home .fl-sample {
	background: var(--fl-grey);
}

.fl-home .fl-sample__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fl-gap);
}

/* 行動の目安 over a warm sky; the landscape (torii, lake) fills the lower part as
 * in the benchmark. Only the clean lower slice of that photo exists, so the
 * sky above it is a CSS fill that blends into it. */
.fl-home .fl-sample__overview {
	min-height: 24rem;
	overflow: hidden;
	background: linear-gradient(180deg, #fdf9f2 0%, #faf3e8 60%, #f4ebdf 100%);
}

.fl-home .fl-sample__image {
	position: absolute;
	inset: auto 0 0;
	height: 40%;
	background: none;
}

.fl-home .fl-sample__image img {
	object-position: 50% 100%;
}

.fl-home .fl-sample__image::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(180deg, #faf3e8 0%, rgb(250 243 232 / 0) 40%);
}

.fl-home .fl-sample__text {
	position: relative;
	z-index: 2;
	display: grid;
	gap: var(--fl-s8);
	padding: var(--fl-s24) var(--fl-s20);
}

.fl-home .fl-sample__period {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fl-s12);
	color: var(--fl-ink);
	font-size: var(--fl-fs-body);
}

.fl-home .fl-sample__period::after {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	background-color: var(--fl-ink);
	-webkit-mask: var(--fl-icon-list) center / contain no-repeat;
	mask: var(--fl-icon-list) center / contain no-repeat;
}

.fl-home .fl-sample__message {
	color: var(--fl-ink);
	font-size: var(--fl-fs-small);
	font-weight: 500;
	line-height: 1.9;
}

.fl-home .fl-sample__tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--fl-gap);
}

/* Domain tile: icon, name and what it covers, stacked. The name links to the
 * diagnosis and its hit area covers the whole tile. */
.fl-home .fl-tile {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	align-content: center;
	row-gap: var(--fl-s4);
	padding: var(--fl-s16) var(--fl-s12);
	border-radius: var(--fl-r-tile);
	text-align: center;
}

.fl-home .fl-tile::before {
	content: "";
	margin-bottom: var(--fl-s4);
	width: 2rem;
	height: 2rem;
	background-color: var(--fl-tone);
	-webkit-mask: var(--fl-icon) center / contain no-repeat;
	mask: var(--fl-icon) center / contain no-repeat;
}

.fl-home .fl-tile__label,
.fl-home .fl-tile__text {
	min-width: 0;
}

.fl-home .fl-tile__label {
	color: var(--fl-text);
	font-size: var(--fl-fs-caption);
	font-weight: 700;
}

.fl-home .fl-tile__link {
	color: inherit;
	text-decoration: none;
}

.fl-home .fl-tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.fl-home .fl-tile:hover .fl-tile__link {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.fl-home .fl-tile__link:focus-visible {
	outline: none;
}

.fl-home .fl-tile:has(.fl-tile__link:focus-visible) {
	outline: 2px solid var(--fl-primary);
	outline-offset: 2px;
}

.fl-home .fl-tile__text {
	color: var(--fl-ink);
	font-size: var(--fl-fs-caption);
	line-height: 1.7;
}

@media (min-width: 64em) {
	.fl-home .fl-sample__body {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		width: 100%;
		max-width: 60rem;
		margin-inline: auto;
	}
}

/* 目的から占いを選ぶ — 3 cards: photo beside the text on phones, 3 columns from 768px. */
.fl-home .fl-purpose {
	background: var(--fl-warm);
}

.fl-home .fl-purpose__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fl-gap);
}

.fl-home .fl-purpose-card {
	display: grid;
	grid-template-columns: min(8.5rem, 38%) minmax(0, 1fr);
	transition: box-shadow var(--fl-motion);
}

.fl-home .fl-purpose-card:hover {
	box-shadow: 0 8px 28px rgb(27 42 58 / 0.1);
}

.fl-home .fl-purpose-card:has(a:focus-visible) {
	outline: 2px solid var(--fl-primary);
	outline-offset: 3px;
}

/* Visible overflow keeps the arrow chip whole; the photo carries the corners. */
.fl-home .fl-purpose-card__media {
	min-height: 7.5rem;
	overflow: visible;
	border-radius: var(--fl-r-card) 0 0 var(--fl-r-card);
}

.fl-home .fl-purpose-card__media img {
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* Teal arrow chip on the photo edge (whole card is one link). */
.fl-home .fl-purpose-card__media::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 50%;
	right: -1.125rem;
	width: 2.25rem;
	height: 2.25rem;
	margin-top: -1.125rem;
	border-radius: 50%;
	background: var(--fl-primary) var(--fl-icon-arrow-right-white) center / 1.25rem no-repeat;
	box-shadow: 0 0 0 3px var(--fl-surface);
}

.fl-home .fl-purpose-card__body {
	display: grid;
	align-content: center;
	gap: var(--fl-s8);
	padding: var(--fl-s16) var(--fl-s16) var(--fl-s16) calc(var(--fl-s16) + 1.125rem);
}

.fl-home .fl-purpose-card__title {
	font-size: var(--fl-fs-card-title);
	letter-spacing: 0.06em;
}

.fl-home .fl-purpose-card__title a {
	color: var(--fl-ink);
	text-decoration: none;
}

.fl-home .fl-purpose-card__title a::after {
	content: "";
	position: absolute;
	z-index: 3;
	inset: 0;
	border-radius: inherit;
}

.fl-home .fl-purpose-card__title a:focus-visible {
	outline: none;
}

.fl-home .fl-purpose-card__desc {
	color: var(--fl-text);
	font-size: var(--fl-fs-caption);
	font-weight: 500;
	line-height: 1.9;
}

@media (min-width: 48em) {
	.fl-home .fl-purpose__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		width: 100%;
		max-width: 60rem;
		margin-inline: auto;
	}

	.fl-home .fl-purpose-card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}

	.fl-home .fl-purpose-card__media {
		aspect-ratio: 4 / 3;
		min-height: 0;
		border-radius: var(--fl-r-card) var(--fl-r-card) 0 0;
	}

	.fl-home .fl-purpose-card__media::before {
		top: auto;
		right: var(--fl-s12);
		bottom: -1.125rem;
		margin-top: 0;
	}

	.fl-home .fl-purpose-card__body {
		align-content: start;
		padding: var(--fl-s20) var(--fl-s16) var(--fl-s24);
	}

	.fl-home .fl-purpose-card__desc {
		font-size: var(--fl-fs-small);
	}
}

/* ---------------------------------------------------- 9. Daily choice, calendar */
.fl-home .fl-daily {
	display: grid;
	gap: var(--fl-s24);
	padding-top: var(--fl-section);
	background: var(--fl-soft);
	overflow: hidden;
}

/* Ribbon photo: its top and bottom fade into the page. */
.fl-home .fl-daily__media {
	height: 11rem;
	background: none;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}

/* The supplied band photos are ~220px wide (cut from the mobile benchmark):
 * on PC they stay centred at a limited width with soft side edges instead of
 * being stretched across the screen. */
@media (min-width: 64em) {
	.fl-home .fl-daily__media {
		width: min(100%, 52rem);
		height: 15rem;
		margin-inline: auto;
		-webkit-mask-image:
			linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
			linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
		-webkit-mask-composite: source-in;
		mask-image:
			linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
			linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
		mask-composite: intersect;
	}

	.fl-home .fl-main :is(.fl-premium__media, .fl-methods__stones, .fl-final__media) {
		width: min(100%, 64rem);
		margin-inline: auto;
		-webkit-mask-image:
			linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
			linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
		-webkit-mask-composite: source-in;
		mask-image:
			linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%),
			linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
		mask-composite: intersect;
	}

}

.fl-home .fl-calendar {
	background: var(--fl-soft);
}

.fl-home .fl-fcal {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fl-s24);
	width: 100%;
	max-width: 64rem;
	margin-inline: auto;
}

.fl-home .fl-fcal-card {
	padding: var(--fl-s16) var(--fl-s4) var(--fl-s20);
}

.fl-home .fl-fcal-card__head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	padding-inline: var(--fl-s12);
}

.fl-home .fl-fcal-month {
	grid-column: 2;
	color: var(--fl-ink);
	font-size: var(--fl-fs-body);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.fl-home .fl-fcal-grid {
	container-type: inline-size;
	min-height: 19rem;
	margin-top: var(--fl-s12);
}

.fl-home .fl-fcal-day__wd {
	display: none;
}

.fl-home .fl-fcal-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.fl-home .fl-fcal-table :is(th, td) {
	border: 0;
}

.fl-home .fl-fcal-table th {
	padding-block: var(--fl-s8);
	color: var(--fl-muted);
	font-size: var(--fl-fs-caption);
	font-weight: 500;
}

.fl-home .fl-fcal-table th.is-sunday,
.fl-home .fl-fcal-day.is-sunday .fl-fcal-day__num {
	color: var(--fl-red);
}

.fl-home .fl-fcal-table td {
	padding: 0;
	text-align: center;
}

.fl-home .fl-fcal-day {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 2px;
	width: 100%;
	min-height: var(--fl-tap);
	padding: 2px 0 4px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--fl-ink);
	transition: background-color var(--fl-motion);
}

.fl-home .fl-fcal-day__num {
	display: grid;
	place-items: center;
	width: 2.125rem;
	height: 2.125rem;
	border-radius: 50%;
	font-size: var(--fl-fs-small);
	font-variant-numeric: tabular-nums;
	transition: background-color var(--fl-motion), color var(--fl-motion);
}

.fl-home .fl-fcal-day[aria-current="date"] .fl-fcal-day__num {
	box-shadow: inset 0 0 0 1.5px var(--fl-primary);
	font-weight: 700;
}

/* Seven columns no longer fit (narrow screen or enlarged text): dates become a list. */
@container (max-width: 19.24em) {
	.fl-home .fl-fcal-table thead {
		display: none;
	}

	.fl-home .fl-fcal-table tbody {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(5.5em, 1fr));
		gap: var(--fl-s4);
		padding-inline: var(--fl-s8);
	}

	.fl-home .fl-fcal-table tr {
		display: contents;
	}

	.fl-home .fl-fcal-table td {
		display: block;
	}

	.fl-home .fl-fcal-table td:empty {
		display: none;
	}

	.fl-home .fl-fcal-day {
		grid-template-columns: auto auto 1fr;
		align-items: center;
		justify-items: start;
		gap: var(--fl-s4);
		padding: var(--fl-s4);
		border: 1px solid var(--fl-border);
	}

	.fl-home .fl-fcal-day__wd {
		display: inline;
		color: var(--fl-muted);
		font-size: var(--fl-fs-caption);
	}
}

/* Day status markers: shape + color + text (legend / label), never color alone. */
.fl-home .fl-mark {
	width: 0.625rem;
	height: 0.625rem;
}

.fl-home .fl-mark--best {
	fill: #a67c2e;
}

.fl-home .fl-mark--good {
	fill: var(--fl-chart-line);
}

.fl-home .fl-mark--caution {
	fill: var(--fl-red);
}

.fl-home .fl-fcal-side {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: var(--fl-s32);
}

.fl-home .fl-fcal-detail {
	display: grid;
	gap: var(--fl-s8);
	padding: var(--fl-s20);
}

.fl-home .fl-fcal-detail__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fl-s8);
}

.fl-home .fl-fcal-detail__date {
	color: var(--fl-ink);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.fl-home .fl-fcal-detail__message {
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
	line-height: 1.9;
}

.fl-home .fl-fcal-trend__title {
	color: var(--fl-ink);
	font-size: var(--fl-fs-card-title);
}

@media (min-width: 64em) {
	.fl-home .fl-fcal {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		gap: var(--fl-s32);
	}

	.fl-home .fl-fcal-card {
		padding: var(--fl-s24) var(--fl-s12);
	}

	.fl-home .fl-fcal-day {
		min-height: 3.25rem;
	}
}

/* --------------------------------------------------------------- 10. Premium */
.fl-home .fl-premium {
	position: relative;
	padding-bottom: var(--fl-section);
	background: var(--fl-soft);
}

.fl-home .fl-premium__media {
	height: 14rem;
}

.fl-home .fl-premium__media::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(0deg, var(--fl-soft) 0%, rgb(247 247 246 / 0) 100%);
}

.fl-home .fl-premium > .fl-premium__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fl-s20);
	margin-top: calc(var(--fl-s32) * -1);
}

.fl-home .fl-premium__title {
	font-size: calc(var(--fl-fs-title) - 0.1875rem);
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.fl-home .fl-premium__lead {
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
	line-height: 1.9;
}

/* 3 across on phones, 6 on wider screens; fewer when text is enlarged. */
.fl-home .fl-premium__features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(5.5rem, 100%), 1fr));
	gap: var(--fl-s8);
	margin: var(--fl-s8) 0;
	padding: 0;
	list-style: none;
}

.fl-home .fl-premium__features > li {
	--fl-circle-top: var(--fl-s16);

	padding: var(--fl-s16) var(--fl-s4);
	border-radius: var(--fl-r-tile);
	background: var(--fl-surface);
	box-shadow: var(--fl-shadow-card);
	color: var(--fl-ink);
	font-size: var(--fl-fs-caption);
	font-weight: 700;
	line-height: 1.6;
}

@media (min-width: 48em) {
	.fl-home .fl-premium__media {
		height: 18rem;
	}

	.fl-home .fl-premium > .fl-premium__inner {
		max-width: calc(52rem + var(--fl-gutter) * 2);
		justify-items: center;
		text-align: center;
	}

	.fl-home .fl-premium__features {
		width: 100%;
	}
}

/* ------------------------------------------------------- 11. Reading, methods */
.fl-home .fl-reading {
	background: var(--fl-bg);
}

.fl-home .fl-reading__body {
	display: grid;
	gap: var(--fl-s12);
	width: 100%;
	max-width: 40rem;
	margin-inline: auto;
}

.fl-home .fl-reading__image {
	aspect-ratio: 16 / 10;
	border-radius: var(--fl-r-tile);
	box-shadow: var(--fl-shadow-card);
}

.fl-home .fl-reading__menus {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(5.5rem, 100%), 1fr));
	gap: var(--fl-s8);
}

.fl-home .fl-menu {
	--fl-circle-top: var(--fl-s16);

	gap: var(--fl-s4);
	padding: var(--fl-s16) var(--fl-s4);
	border-radius: var(--fl-r-tile);
}

.fl-home .fl-menu::before {
	margin-bottom: var(--fl-s4);
}

.fl-home .fl-menu__title {
	color: var(--fl-ink);
	font-size: var(--fl-fs-small);
	font-weight: 700;
}

.fl-home .fl-menu__desc {
	color: var(--fl-text);
	font-size: var(--fl-fs-caption);
	line-height: 1.6;
	letter-spacing: 0;
}

.fl-home .fl-methods {
	position: relative;
	display: grid;
	gap: var(--fl-s48);
	padding-bottom: 0;
	background: var(--fl-soft);
	overflow: hidden;
}

/* Silver-line texture behind the title (methods-top.webp, decorative). */
.fl-home .fl-methods::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 12rem;
	background: url("../images/master/methods-top.webp") 50% 0 / cover no-repeat;
	opacity: 0.7;
	-webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}

.fl-home .fl-methods > .fl-container {
	position: relative;
}

.fl-home .fl-methods__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(5.5rem, 100%), 1fr));
	gap: var(--fl-s8);
	width: 100%;
	max-width: 48rem;
	margin-inline: auto;
}

.fl-home .fl-method {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: var(--fl-s8);
	text-align: center;
}

/* Emblem crops keep their own light circle; the fill matches their paper tone. */
.fl-home .fl-method__emblem {
	width: min(100%, 6.5rem);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: #faf8f7;
	box-shadow: var(--fl-shadow-soft);
}

.fl-home .fl-method__emblem img {
	object-fit: contain;
}

.fl-home .fl-method__name {
	padding-top: var(--fl-s8);
	color: var(--fl-ink);
	font-family: var(--fl-serif);
	font-size: var(--fl-fs-body);
	font-weight: 600;
}

.fl-home .fl-method__desc {
	color: var(--fl-text);
	font-size: var(--fl-fs-caption);
	line-height: 1.8;
	letter-spacing: 0;
}

/* Stones photo closes the section; its edges fade into the page. */
.fl-home .fl-methods__stones {
	height: 12rem;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
	mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}

@media (min-width: 48em) {
	.fl-home .fl-method__desc {
		font-size: var(--fl-fs-small);
	}

	.fl-home .fl-methods__stones {
		height: 16rem;
	}
}

/* ------------------------------------------------------ 12. Articles, voices */
.fl-home .fl-articles {
	background: var(--fl-soft);
}

.fl-home .fl-articles__panel {
	display: grid;
	gap: var(--fl-s8);
	width: 100%;
	max-width: 48rem;
	margin-inline: auto;
}

.fl-home .fl-articles__tabs {
	display: flex;
	gap: var(--fl-s4);
	overflow-x: auto;
	padding-bottom: var(--fl-s4);
	scrollbar-width: none;
}

.fl-home .fl-articles__tab {
	flex: none;
	min-height: 2.75rem;
	padding: var(--fl-s4) 0.625rem;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--fl-ink);
	font-size: var(--fl-fs-small);
	font-weight: 700;
	transition: background-color var(--fl-motion), color var(--fl-motion);
}

.fl-home .fl-articles__tab:hover {
	background: var(--fl-grey);
}

.fl-home .fl-articles__tab[aria-pressed="true"] {
	background: var(--fl-deep);
	color: var(--fl-on-primary);
}

.fl-home .fl-articles__list {
	display: grid;
}

/* Without JS the newest three are shown. */
html:not(.fl-js) .fl-home .fl-article:nth-child(n + 4) {
	display: none;
}

.fl-home .fl-article {
	display: grid;
	grid-template-columns: min(7.5rem, 35%) minmax(0, 1fr);
	align-items: center;
	gap: var(--fl-s16);
	padding-block: var(--fl-s16);
}

.fl-home .fl-article:not([hidden]) ~ .fl-article:not([hidden]) {
	border-top: 1px solid var(--fl-border);
}

.fl-home .fl-article__thumb {
	aspect-ratio: 1 / 1;
	border-radius: var(--fl-r-tile);
}

.fl-home .fl-article__body {
	display: grid;
	gap: var(--fl-s8);
}

.fl-home .fl-article__title {
	color: var(--fl-ink);
	font-size: var(--fl-fs-body);
	line-height: 1.7;
	text-wrap: pretty;
}

.fl-home .fl-article__title a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--fl-border-strong);
	text-underline-offset: 0.3em;
}

.fl-home .fl-article__title a:hover {
	text-decoration-color: currentColor;
}

.fl-home .fl-article__meta {
	color: var(--fl-muted);
	font-size: var(--fl-fs-small);
	font-variant-numeric: tabular-nums;
}

.fl-home .fl-voices {
	position: relative;
	background: var(--fl-grey);
	overflow: hidden;
}

/* Folded-silk texture behind the title (testimonial-fold.webp, decorative). */
.fl-home .fl-voices::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 14rem;
	background: url("../images/master/testimonial-fold.webp") 50% 0 / cover no-repeat;
	opacity: 0.8;
	-webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 35%, transparent 100%);
}

.fl-home .fl-voices > .fl-container {
	position: relative;
}

.fl-home .fl-carousel {
	display: grid;
	gap: var(--fl-gap);
	width: 100%;
	max-width: 60rem;
	margin-inline: auto;
}

.fl-home .fl-carousel__page {
	display: grid;
	gap: var(--fl-gap);
}

.fl-home .fl-voice {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	align-items: center;
	gap: var(--fl-s16);
	height: 100%;
	padding: var(--fl-s16);
}

.fl-home .fl-voice__photo,
.fl-home .fl-voice__mark {
	aspect-ratio: 4 / 5;
	border-radius: var(--fl-r-tile);
}

/* A voice without a photo: a quiet quotation mark instead of an empty frame. */
.fl-home .fl-voice__mark {
	display: grid;
	place-items: center;
	background: var(--fl-brand-soft);
}

.fl-home .fl-voice__mark::before {
	content: "\201C" / "";
	color: var(--fl-primary);
	font-family: var(--fl-serif);
	font-size: 3rem;
	line-height: 1;
}

.fl-home .fl-voice__body {
	display: grid;
	gap: var(--fl-s12);
}

.fl-home .fl-voice__quote {
	color: var(--fl-ink);
	font-size: var(--fl-fs-small);
	font-weight: 500;
	line-height: 1.9;
}

.fl-home .fl-voice__by {
	color: var(--fl-muted);
	font-size: var(--fl-fs-caption);
}

.fl-home .fl-carousel__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 60rem;
	margin: calc(var(--fl-s8) * -1) auto 0;
}

.fl-home .fl-carousel__dots {
	display: flex;
	gap: var(--fl-s4);
}

.fl-home .fl-carousel__dot {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: var(--fl-tap);
	padding: 0;
	border: 0;
	background: transparent;
}

.fl-home .fl-carousel__dot span {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--fl-border-strong);
	transition: background-color var(--fl-motion);
}

.fl-home .fl-carousel__dot[aria-current="true"] span {
	background: var(--fl-primary);
}

@media (min-width: 64em) {
	.fl-home .fl-carousel__page {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------- 13. FAQ, final CTA */
.fl-home .fl-faq {
	background: var(--fl-soft);
}

.fl-home .fl-faq__list {
	display: grid;
	gap: var(--fl-s12);
}

.fl-home .fl-faq-item {
	border-radius: var(--fl-r-tile);
	box-shadow: var(--fl-shadow-soft);
}

.fl-home .fl-faq-item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fl-s12);
	min-height: 3.75rem;
	padding: var(--fl-s12) var(--fl-s16) var(--fl-s12) var(--fl-s20);
	border-radius: var(--fl-r-tile);
	color: var(--fl-ink);
	font-size: var(--fl-fs-small);
	font-weight: 700;
	line-height: 1.6;
	list-style: none;
	cursor: pointer;
}

.fl-home .fl-faq-item > summary::-webkit-details-marker {
	display: none;
}

.fl-home .fl-faq-item > summary::after {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	background-color: var(--fl-ink);
	-webkit-mask: var(--fl-icon-plus) center / contain no-repeat;
	mask: var(--fl-icon-plus) center / contain no-repeat;
}

.fl-home .fl-faq-item[open] > summary::after {
	-webkit-mask-image: var(--fl-icon-minus);
	mask-image: var(--fl-icon-minus);
}

.fl-home .fl-faq-item > :not(summary) {
	padding: 0 var(--fl-s20) var(--fl-s20);
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
	line-height: 1.9;
}

@media (min-width: 48em) {
	.fl-home .fl-faq-item > summary {
		font-size: var(--fl-fs-body);
	}
}

.fl-home .fl-final {
	position: relative;
	background: var(--fl-soft);
}

.fl-home .fl-final__media {
	height: 12rem;
}

.fl-home .fl-final > .fl-final__panel {
	position: relative;
	margin-top: -2.5rem;
	padding-block: var(--fl-s48) var(--fl-s64);
	border-radius: 50% 50% 0 0 / 2.5rem 2.5rem 0 0;
	background: var(--fl-soft);
}

.fl-home .fl-final__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	gap: var(--fl-s20);
	text-align: center;
}

.fl-home .fl-final__title {
	font-size: calc(var(--fl-fs-title) - 0.25rem);
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.fl-home .fl-final__lead {
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
}

.fl-home .fl-final__features {
	width: 100%;
	max-width: 24rem;
	margin-block: var(--fl-s8);
}

.fl-home .fl-final .fl-cta {
	width: 100%;
}

@media (min-width: 48em) {
	.fl-home .fl-final__media {
		height: 16rem;
	}

	.fl-home .fl-final > .fl-final__panel {
		margin-top: -4rem;
		border-radius: 50% 50% 0 0 / 4rem 4rem 0 0;
	}
}

/* ---------------------------------------------------------- 14. Footer */
.fl-home .fl-footer {
	padding-block: var(--fl-s48) var(--fl-s64);
	background: var(--fl-footer-bg);
	color: var(--fl-text);
}

.fl-home .fl-footer__inner {
	display: grid;
	justify-items: center;
	gap: var(--fl-s24);
	text-align: center;
}

.fl-home .fl-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 var(--fl-s24);
	max-width: 40rem;
	padding: 0;
	font-size: var(--fl-fs-small);
	list-style: none;
}

.fl-home .fl-footer__links li {
	display: inline-flex;
	align-items: center;
	gap: var(--fl-s8);
	min-height: var(--fl-tap);
}

.fl-home .fl-footer__links a {
	color: var(--fl-text);
	text-decoration: none;
}

.fl-home .fl-footer__links a:hover {
	text-decoration: underline;
}

/* Page not published yet: plain text, explained by the note below the list. */
.fl-home .fl-footer__social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--fl-s8) var(--fl-s24);
	padding: 0;
	list-style: none;
}

.fl-home .fl-footer__social li {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: var(--fl-tap);
	height: var(--fl-tap);
}

.fl-home .fl-footer__social li::before {
	content: "";
	width: 1.5rem;
	height: 1.5rem;
	background-color: var(--fl-ink);
	-webkit-mask: var(--fl-icon) center / contain no-repeat;
	mask: var(--fl-icon) center / contain no-repeat;
}

.fl-home .fl-footer__copy {
	color: var(--fl-text);
	font-size: var(--fl-fs-small);
}

.fl-home .fl-footer__copy small {
	font-size: inherit;
}

/* ---------------------------------------------------------- 15. Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.fl-home *,
	.fl-home *::before,
	.fl-home *::after {
		transition-duration: 0s !important;
		animation-duration: 0s !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

/* 鑑定結果の見方: the three levels instead of a score. */
.fl-home .fl-sample__levels {
	display: grid;
	gap: var(--fl-s8);
	margin: var(--fl-s8) 0;
	padding: 0;
	list-style: none;
	color: var(--fl-ink);
	font-size: var(--fl-fs-small);
	font-weight: 700;
}

.fl-home .fl-sample__levels li {
	display: flex;
	align-items: center;
	gap: var(--fl-s12);
}

.fl-home .fl-sample__mark {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--fl-surface);
	box-shadow: var(--fl-shadow-soft);
	font-family: var(--fl-serif);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1;
}

/* 今月の暦: each day with its 干支 (no fortune marks). */
.fl-home .fl-fcal-day__kanshi {
	color: var(--fl-muted);
	font-size: var(--fl-fs-caption);
	line-height: 1.3;
}

.fl-home .fl-fcal-note {
	margin: var(--fl-s12) 0 0;
	padding-inline: var(--fl-s12);
	color: var(--fl-text);
	font-size: var(--fl-fs-caption);
	text-align: center;
}

.fl-home .fl-fcal-facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fl-s8) var(--fl-s24);
	margin: 0;
}

.fl-home .fl-fcal-facts div {
	display: grid;
	gap: 2px;
}

.fl-home .fl-fcal-facts dt {
	color: var(--fl-muted);
	font-size: var(--fl-fs-caption);
}

.fl-home .fl-fcal-facts dd {
	margin: 0;
	color: var(--fl-ink);
	font-family: var(--fl-serif);
	font-size: 1.25rem;
}

.fl-home .fl-fcal-facts small {
	font-family: var(--fl-sans);
	font-size: var(--fl-fs-caption);
}

/* 読みもの: member-only posts. */
.fl-home .fl-article__lock {
	display: inline-block;
	margin-inline-end: var(--fl-s8);
	padding: 0 var(--fl-s8);
	border-radius: var(--fl-r-pill);
	background: var(--fl-ink);
	color: #ffffff;
	font-size: var(--fl-fs-caption);
	font-weight: 700;
}

/* SNS accounts (links). */
.fl-home .fl-footer__social a {
	position: absolute;
	inset: 0;
	border-radius: 50%;
}

.fl-home .fl-footer__social a:focus-visible {
	outline: 2px solid var(--fl-primary);
	outline-offset: 2px;
}
