/* Front page. Loaded last on the front page only; every rule is scoped to .fhn-top. */

.fhn-top {
	--top-paper: #fffdf8;
	--top-base: #f5f2ea;
	--top-ink: #243b32;
	--top-muted: #55665b;
	--top-green: #246b50;
	--top-green-dark: #1c543e;
	--top-deep: #1f342b;
	--top-line: #d3d6cc;
	/* Green is reserved for actions; the persimmon accent marks labels in small areas only. */
	--top-accent: #a4532a;
	--top-accent-on-dark: #e3a27c;
	--top-gutter: clamp(20px, 4.4vw, 64px);
	--top-max: 1240px;
	--top-num: "Marcellus", var(--fhn-display);
	display: block;
	color: var(--top-ink);
	background: var(--top-paper);
	font-family: var(--fhn-body);
	overflow-x: visible;
}

.fhn-top :is(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
.fhn-top :is(ul, ol) { padding: 0; list-style: none; }
.fhn-top img { display: block; max-width: 100%; height: auto; }
.fhn-top :is(h1, h2, h3) {
	font-family: var(--fhn-display);
	font-weight: 600;
	color: var(--top-ink);
	letter-spacing: .02em;
	text-wrap: balance;
}
.fhn-top p { line-height: 1.95; letter-spacing: .02em; }

.fhn-top-shell {
	width: min(var(--top-max), calc(100% - var(--top-gutter) * 2));
	margin-inline: auto;
}

/* Shared parts */
.fhn-top .fhn-top-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 54px;
	padding: 0 28px;
	border: 1px solid var(--top-green);
	border-radius: 999px;
	background: var(--top-green);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .06em;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease;
}
.fhn-top .fhn-top-button::after {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
}
.fhn-top .fhn-top-button:hover { background: var(--top-green-dark); border-color: var(--top-green-dark); color: #fff; }

.fhn-top .fhn-top-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid currentColor;
	color: var(--top-green);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
}
.fhn-top .fhn-top-link::after {
	content: "→";
	font-weight: 400;
	transition: transform .2s ease;
}
.fhn-top .fhn-top-link:hover::after { transform: translateX(4px); }

.fhn-top-section { padding-block: clamp(80px, 9vw, 136px); }

.fhn-top-head {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 80px);
	align-items: end;
	margin-bottom: clamp(40px, 5vw, 64px);
}
.fhn-top-head h2 {
	font-size: clamp(24px, 2.6vw, 36px);
	line-height: 1.5;
}
.fhn-top-head__body { display: grid; gap: 20px; justify-items: start; }
.fhn-top-head__body p { color: var(--top-muted); font-size: 15px; }
.fhn-top-head__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.fhn-top-head--stack { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
.fhn-top-head--stack p { color: inherit; opacity: .82; font-size: 15px; max-width: 34em; }

.fhn-top .fhn-image-caption {
	position: absolute;
	right: 12px;
	bottom: 12px;
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 253, 248, .86);
	color: var(--top-muted);
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: .04em;
}

/* Hero */
.fhn-top-hero {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto auto;
	background: var(--top-base);
}
.fhn-top-hero__copy,
.fhn-top-hero__facts {
	width: min(620px, calc(100% - var(--top-gutter) * 2));
	min-width: 0;
	justify-self: center;
}
.fhn-top-hero__copy {
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	padding-block: clamp(56px, 7vw, 104px) 48px;
}
.fhn-top-hero h1 {
	font-size: clamp(27px, 3.7vw, 56px);
	line-height: 1.42;
	letter-spacing: .04em;
}
.fhn-top-hero h1 span { display: block; }
.fhn-top-hero__lead {
	max-width: 30em;
	margin-top: 28px !important;
	color: var(--top-muted);
	font-size: 16px;
}
.fhn-top-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 40px;
}
.fhn-top .fhn-top-search {
	display: flex;
	flex: 1 1 240px;
	align-items: stretch;
	min-width: 0;
	height: 54px;
	border: 1px solid #9aa79d;
	border-radius: 999px;
	background: var(--top-paper);
	overflow: hidden;
}
/* The shared .search-form > label rule would stretch the hidden label across the page. */
.fhn-top .fhn-top-search > .screen-reader-text { width: 1px; height: 1px; }
.fhn-top .fhn-top-search:focus-within { border-color: var(--top-green); box-shadow: 0 0 0 3px rgba(36, 107, 80, .18); }
.fhn-top .fhn-top-search input[type=search] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	height: 100%;
	padding: 0 4px 0 22px;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 16px;
	color: var(--top-ink);
	outline: none;
}
.fhn-top .fhn-top-search input[type=search]::placeholder { color: #6d7a71; }
.fhn-top .fhn-top-search button {
	flex: 0 0 auto;
	margin: 5px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--top-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	cursor: pointer;
}
.fhn-top .fhn-top-search button:hover { background: #172820; }
.fhn-top-hero__copy > .fhn-top-link { margin-top: 28px; }

.fhn-top-hero__media {
	position: relative;
	grid-column: 2;
	grid-row: 1 / 3;
	min-width: 0;
	min-height: 100%;
}
.fhn-top-hero__media img {
	width: 100%;
	height: 100%;
	min-height: 560px;
	object-fit: cover;
	object-position: 62% 50%;
}

.fhn-top-hero__facts {
	grid-column: 1;
	grid-row: 2;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 6em), 1fr));
	justify-content: start;
	gap: 0;
	margin-bottom: clamp(48px, 6vw, 88px) !important;
	border-top: 1px solid var(--top-line);
}
.fhn-top-hero__facts > div {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 4px;
	padding: 20px 28px 0 0;
}
.fhn-top-hero__facts > div + div { padding-left: 28px; border-left: 1px solid var(--top-line); }
.fhn-top-hero__facts dt { color: var(--top-muted); font-size: 12px; letter-spacing: .06em; white-space: normal; }
.fhn-top-hero__facts dd {
	font-family: var(--top-num);
	font-size: clamp(30px, 2.6vw, 38px);
	line-height: 1.1;
	color: var(--top-ink);
}
.fhn-top-hero__facts small { margin-left: 2px; font-family: var(--fhn-body); font-size: 13px; }

/* Region */
.fhn-top-region { background: var(--top-paper); }
.fhn-top-region__body {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.fhn-top-region__map {
	position: relative;
	padding: clamp(12px, 2vw, 24px);
	border: 1px solid var(--top-line);
	background: #f8f6ef;
}
.fhn-top-region__map img { width: 100%; mix-blend-mode: multiply; }
.fhn-top-region__map figcaption {
	margin-top: 8px;
	color: var(--top-muted);
	font-size: 12px;
	letter-spacing: .04em;
}
.fhn-top .fhn-top-region__pin {
	position: absolute;
	min-height: 32px;
	transform: translate(-50%, -50%);
	padding: 6px 16px;
	border: 1px solid var(--top-ink);
	border-radius: 999px;
	background: var(--top-paper);
	color: var(--top-ink);
	font-family: var(--fhn-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.fhn-top .fhn-top-region__pin:hover { background: var(--top-ink); color: #fff; }
.fhn-top-region__pin--aizu { left: 27%; top: 50%; }
.fhn-top-region__pin--nakadori { left: 58%; top: 42%; }
.fhn-top-region__pin--hamadori { left: 84%; top: 54%; }

.fhn-top-region__list { border-top: 1px solid var(--top-ink); }
.fhn-top-region__item {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 24px;
	padding-block: 28px;
	border-bottom: 1px solid var(--top-line);
}
.fhn-top-region__item > img {
	width: 132px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.fhn-top-region__text { display: grid; gap: 8px; align-content: start; }
.fhn-top-region__text h3 { font-size: 26px; line-height: 1.3; letter-spacing: .1em; }
.fhn-top-region__text h3 a { color: inherit; text-decoration: none; }
.fhn-top-region__text h3 a::after {
	content: "→";
	margin-left: 12px;
	color: var(--top-green);
	font-family: var(--fhn-body);
	font-size: 18px;
	font-weight: 400;
}
.fhn-top-region__text h3 a:hover { color: var(--top-green); }
.fhn-top-region__theme { color: var(--top-accent); font-size: 14px; font-weight: 700; }
.fhn-top-region__text p:not([class]) { color: var(--top-muted); font-size: 14px; line-height: 1.9; }
.fhn-top-region__cities {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	margin-top: 4px !important;
	font-size: 14px;
}
.fhn-top-region__cities span { color: var(--top-muted); font-size: 12px; }
.fhn-top-region__cities a { color: var(--top-ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.fhn-top-region__cities a:hover { color: var(--top-green); }
.fhn-top-note {
	margin-top: 32px !important;
	color: var(--top-muted);
	font-size: 13px;
}

/* Ledger */
.fhn-top-ledger { background: var(--top-base); }
.fhn-top-ledger__sheets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
}
.fhn-top-sheet {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 3.4vw, 48px);
	background: var(--top-paper);
	border-top: 3px solid var(--top-ink);
}
.fhn-top-sheet h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.5; }
.fhn-top-sheet dl { margin-top: 24px; }
.fhn-top-sheet dl > div {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding-block: 16px;
	border-bottom: 1px solid var(--top-line);
}
.fhn-top-sheet dt {
	flex: 0 0 auto;
	font-family: var(--fhn-display);
	font-size: 18px;
	font-weight: 600;
}
.fhn-top-sheet dd {
	flex: 1 1 auto;
	color: var(--top-muted);
	font-size: 14px;
	text-align: right;
}
.fhn-top-sheet__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-block: 16px 0;
	border-top: 3px double var(--top-ink);
	margin-top: -1px !important;
	font-family: var(--fhn-display);
	font-size: 18px;
	font-weight: 600;
}
.fhn-top-sheet__total::before { content: "合計"; color: var(--top-muted); font-family: var(--fhn-body); font-size: 13px; font-weight: 400; }
.fhn-top-sheet .fhn-top-link { align-self: flex-start; margin-top: auto; }
.fhn-top-sheet dl + .fhn-top-link,
.fhn-top-sheet__total + .fhn-top-link { margin-top: 36px; }

/* Criteria */
.fhn-top-criteria { background: var(--top-deep); color: #eef2ec; }
.fhn-top-criteria :is(h2, h3) { color: #fff; }
.fhn-top-criteria__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}
.fhn-top-criteria .fhn-top-head h2 { font-size: clamp(24px, 2.6vw, 36px); }
.fhn-top-criteria__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 32px;
	border-top: 1px solid rgba(255, 255, 255, .28);
}
.fhn-top-criteria__list li {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding-block: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .16);
	font-size: 15px;
	line-height: 1.6;
}
.fhn-top-criteria__list span {
	flex: 0 0 auto;
	min-width: 1.6em;
	color: var(--top-accent-on-dark);
	font-family: var(--top-num);
	font-size: 15px;
}
.fhn-top-criteria__count {
	display: grid;
	gap: 18px;
	justify-items: start;
	padding: clamp(28px, 3vw, 40px);
	background: var(--top-paper);
	color: var(--top-ink);
}
.fhn-top-criteria__number {
	font-family: var(--top-num);
	font-size: clamp(56px, 6vw, 80px);
	line-height: 1 !important;
	letter-spacing: 0;
}
.fhn-top-criteria__number small { margin-left: 4px; font-family: var(--fhn-display); font-size: 22px; }
.fhn-top-criteria__count p:not([class]) { color: var(--top-muted); font-size: 14px; }
.fhn-top-criteria__count .fhn-top-button { width: 100%; margin-top: 6px; }

/* Reading */
.fhn-top-reading { background: var(--top-paper); }
.fhn-top-reading__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(20px, 2.4vw, 32px);
}
.fhn-top-reading__list a {
	display: grid;
	gap: 12px;
	color: var(--top-ink);
	text-decoration: none;
}
.fhn-top-reading__list img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: saturate(.85);
	transition: filter .3s ease, transform .5s ease;
}
.fhn-top-reading__list a:hover img { filter: saturate(1); }
.fhn-top-reading__type {
	margin-top: 6px;
	color: var(--top-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
}
.fhn-top-reading__list strong {
	font-family: var(--fhn-display);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.7;
}
.fhn-top-reading__list a:hover strong { color: var(--top-green); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* About */
.fhn-top-about { background: var(--top-base); border-top: 1px solid var(--top-line); }
.fhn-top-about__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: clamp(24px, 5vw, 80px);
}
.fhn-top-about h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.5; }
.fhn-top-about__body { display: grid; gap: 14px; }
.fhn-top-about__body p { font-size: 15px; }
.fhn-top-about__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 14px !important;
}
.fhn-top-about__links a {
	color: var(--top-ink);
	font-size: 14px;
	text-decoration: underline;
	text-decoration-color: #9aa79d;
	text-underline-offset: 5px;
}
.fhn-top-about__links a:hover { color: var(--top-green); text-decoration-color: currentColor; }

/* Tablet */
@media (max-width: 1080px) {
	.fhn-top-hero__media img { min-height: 480px; }
	.fhn-top-hero__facts > div { padding-right: 16px; }
	.fhn-top-hero__facts > div + div { padding-left: 16px; }
	.fhn-top-region__body { grid-template-columns: minmax(0, 1fr); }
	.fhn-top-region__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
	.fhn-top-region__item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.fhn-top-region__item > img { width: 100%; aspect-ratio: 3 / 2; }
	.fhn-top-criteria__layout { grid-template-columns: minmax(0, 1fr); }
	.fhn-top-criteria__count { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 32px; }
	.fhn-top-criteria__count .fhn-top-button { width: auto; }
	.fhn-top-reading__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* Smartphone: the photo leads, copy and the search follow in one column. */
@media (max-width: 760px) {
	.fhn-top-hero { display: flex; flex-direction: column; }
	.fhn-top-hero__media { order: -1; min-height: 0; }
	.fhn-top-hero__media img { min-height: 0; height: auto; aspect-ratio: 4 / 3; object-position: 66% 50%; }
	.fhn-top-hero__copy,
	.fhn-top .fhn-top-hero__facts { width: calc(100% - var(--top-gutter) * 2); margin-inline: var(--top-gutter); }
	.fhn-top-hero__copy { width: calc(100% - var(--top-gutter) * 2); min-width: 0; padding-block: 36px 32px; }
	.fhn-top-hero h1 { font-size: clamp(27px, 7.6vw, 34px); }
	.fhn-top-hero__lead { margin-top: 20px !important; font-size: 15px; }
	.fhn-top-hero__actions { flex-direction: column; margin-top: 28px; }
	.fhn-top .fhn-top-button { width: 100%; }
	.fhn-top .fhn-top-search { flex: 0 0 auto; }
	.fhn-top-hero__facts { grid-template-columns: repeat(3, minmax(min-content, 1fr)); margin-bottom: 48px !important; }
	.fhn-top-hero__facts > div { padding: 16px 8px 0 0; }
	.fhn-top-hero__facts > div + div { padding-left: 12px; }
	.fhn-top-hero__facts dd { font-size: 28px; }
	.fhn-top-hero__facts dt { font-size: 12px; letter-spacing: 0; white-space: normal; }

	.fhn-top-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.fhn-top-head h2 { font-size: clamp(21px, 6vw, 28px); }

	.fhn-top .fhn-top-region__pin { padding: 4px 10px; font-size: 13px; }
	.fhn-top-region__list { display: block; }
	.fhn-top-region__item { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding-block: 24px; }
	.fhn-top-region__item > img { width: 96px; aspect-ratio: 4 / 5; }
	.fhn-top-region__text h3 { font-size: 22px; }

	.fhn-top-ledger__sheets { grid-template-columns: minmax(0, 1fr); }
	.fhn-top-sheet dl > div { flex-wrap: wrap; gap: 2px 12px; }

	.fhn-top-criteria__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
	.fhn-top-criteria__list li { font-size: 14px; gap: 10px; }
	.fhn-top-criteria__count { grid-template-columns: minmax(0, 1fr); }
	.fhn-top-criteria__count .fhn-top-button { width: 100%; }

	.fhn-top-reading__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-top: 1px solid var(--top-line); }
	.fhn-top-reading__list a { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--top-line); }
	.fhn-top-reading__list img { grid-row: 1 / 3; aspect-ratio: 1; }
	.fhn-top-reading__type { margin-top: 0; }
	.fhn-top-reading__list strong { font-size: 16px; }

	.fhn-top-about__layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
	.fhn-top-criteria__list { grid-template-columns: minmax(0, 1fr); }
	.fhn-top-hero__facts dt { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.fhn-top * { transition: none !important; }
}
