/*
Theme Name: Japan Market Guide
Theme URI: https://example.com/
Author: Japan Market Guide
Author URI: https://example.com/
Description: B2B media theme for companies entering and growing in the Japanese market. Trustworthy, professional, minimal — built for SEO, Core Web Vitals and affiliate content operations. Pairs with the Japan Market Content Manager plugin.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: japan-market-guide
Tags: blog, news, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =====================================================================
   1. Design tokens
   ===================================================================== */

:root {
	--jmg-ink: #1c2430;
	--jmg-ink-2: #364152;
	--jmg-muted: #55606e;
	--jmg-paper: #ffffff;
	--jmg-surface: #f7f5f1;
	--jmg-line: #e4e1da;
	--jmg-navy: #16233b;
	--jmg-navy-2: #1e3050;
	--jmg-accent: #b5453c;
	--jmg-accent-dark: #9c3a32;
	--jmg-link: #17588f;
	--jmg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, "Hiragino Sans", "Noto Sans JP", sans-serif;
	--jmg-radius: 8px;
	--jmg-container: 1200px;
	--jmg-narrow: 780px;
}

/* =====================================================================
   2. Reset & base
   ===================================================================== */

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

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	font-family: var(--jmg-font);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--jmg-ink);
	background: var(--jmg-paper);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--jmg-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--jmg-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.3;
	color: var(--jmg-ink);
	font-weight: 700;
	margin: 0 0 0.6em;
}

h2, h3 {
	scroll-margin-top: 96px;
}

:focus-visible {
	outline: 2px solid var(--jmg-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--jmg-navy);
	color: #fff;
	padding: 0.75rem 1.25rem;
}

.skip-link:focus {
	left: 0;
	clip-path: none;
	width: auto;
	height: auto;
}

.jmg-container {
	max-width: var(--jmg-container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.jmg-container--narrow {
	max-width: var(--jmg-narrow);
}

/* =====================================================================
   3. Buttons (theme fallbacks; plugin ships matching .jmg-btn)
   ===================================================================== */

.jmg-btn {
	display: inline-block;
	background: var(--jmg-accent);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: 6px;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

.jmg-btn:hover,
.jmg-btn:focus {
	background: var(--jmg-accent-dark);
}

.jmg-btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.jmg-btn--ghost:hover,
.jmg-btn--ghost:focus {
	background: rgba(255, 255, 255, 0.12);
}

.jmg-btn--small {
	padding: 0.55rem 1rem;
	font-size: 0.85rem;
}

/* =====================================================================
   4. Header & navigation
   ===================================================================== */

.site-header {
	background: var(--jmg-paper);
	border-bottom: 1px solid var(--jmg-line);
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 68px;
}

.site-branding__title {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--jmg-ink);
	text-decoration: none;
}

.site-branding__mark {
	width: 10px;
	height: 26px;
	background: linear-gradient(180deg, var(--jmg-accent) 0 55%, var(--jmg-navy) 55% 100%);
	border-radius: 2px;
}

.custom-logo {
	max-height: 48px;
	width: auto;
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--jmg-line);
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	font: inherit;
	color: var(--jmg-ink);
	cursor: pointer;
	align-items: center;
	gap: 0.5rem;
}

.nav-toggle__bars {
	display: inline-block;
	width: 18px;
	height: 2px;
	background: var(--jmg-ink);
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--jmg-ink);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.site-nav__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 1.4rem;
}

.site-nav__list a {
	color: var(--jmg-ink-2);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
}

.site-nav__list a:hover,
.site-nav__list a:focus {
	color: var(--jmg-accent-dark);
	border-bottom-color: var(--jmg-accent);
}

.site-nav__list .sub-menu {
	display: none;
}

.search-form {
	display: flex;
	gap: 0.4rem;
}

.search-form__input {
	font: inherit;
	font-size: 0.9rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--jmg-line);
	border-radius: 6px;
	min-width: 0;
	width: 170px;
	background: var(--jmg-surface);
}

.search-form__submit {
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.5rem 0.9rem;
	border: 0;
	border-radius: 6px;
	background: var(--jmg-navy);
	color: #fff;
	cursor: pointer;
}

.search-form__submit:hover {
	background: var(--jmg-navy-2);
}

@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--jmg-paper);
		border-bottom: 1px solid var(--jmg-line);
		padding: 1rem 1.25rem 1.5rem;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		box-shadow: 0 12px 24px rgba(22, 35, 59, 0.08);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0.25rem;
	}

	.site-nav__list a {
		display: block;
		padding: 0.6rem 0;
		border-bottom: 1px solid var(--jmg-line);
	}

	.search-form__input {
		width: 100%;
		flex: 1;
	}
}

/* =====================================================================
   5. Hero
   ===================================================================== */

.hero {
	background:
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.035) 0 1px,
			transparent 1px 88px
		),
		linear-gradient(135deg, var(--jmg-navy) 0%, var(--jmg-navy-2) 100%);
	color: #fff;
	padding: 5rem 0 5.5rem;
}

.hero__inner {
	max-width: 820px;
}

.hero__kicker {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #d8a5a0;
	margin: 0 0 1rem;
	padding-left: 1rem;
	border-left: 3px solid var(--jmg-accent);
}

.hero__title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	color: #fff;
	letter-spacing: -0.01em;
	margin-bottom: 0.5em;
}

.hero__subtitle {
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.82);
	max-width: 620px;
	margin: 0 0 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

/* =====================================================================
   6. Sections & grids
   ===================================================================== */

.section {
	padding: 4rem 0;
}

.section--alt {
	background: var(--jmg-surface);
}

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.section__title {
	font-size: 1.5rem;
	position: relative;
	padding-left: 0.9rem;
	margin-bottom: 1.5rem;
}

.section__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	bottom: 0.2em;
	width: 4px;
	background: var(--jmg-accent);
	border-radius: 2px;
}

.section__more {
	font-size: 0.9rem;
	font-weight: 600;
}

.topic-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.topic-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	background: var(--jmg-paper);
	border: 1px solid var(--jmg-line);
	border-top: 3px solid var(--jmg-navy);
	border-radius: var(--jmg-radius);
	padding: 1.5rem 1.4rem 1.6rem;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.topic-card:hover {
	border-top-color: var(--jmg-accent);
	transform: translateY(-2px);
}

.topic-card__number {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: var(--jmg-accent);
}

.topic-card__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--jmg-ink);
}

.topic-card__desc {
	font-size: 0.88rem;
	color: var(--jmg-muted);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.card-grid--featured {
	grid-template-columns: repeat(3, 1fr);
}

.card-grid--tools {
	grid-template-columns: repeat(3, 1fr);
}

.card-grid--related {
	grid-template-columns: repeat(3, 1fr);
}

.card-grid--single {
	grid-template-columns: minmax(0, 640px);
}

@media (max-width: 1000px) {
	.topic-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.card-grid,
	.card-grid--featured,
	.card-grid--tools,
	.card-grid--related {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.topic-grid,
	.card-grid,
	.card-grid--featured,
	.card-grid--tools,
	.card-grid--related {
		grid-template-columns: 1fr;
	}

	.section {
		padding: 3rem 0;
	}
}

/* =====================================================================
   7. Cards
   ===================================================================== */

.post-card {
	background: var(--jmg-paper);
	border: 1px solid var(--jmg-line);
	border-radius: var(--jmg-radius);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
	box-shadow: 0 10px 28px rgba(22, 35, 59, 0.1);
	transform: translateY(-2px);
}

.post-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.post-card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card__body {
	padding: 1.25rem 1.4rem 1.4rem;
}

.post-card__category {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--jmg-accent);
	margin: 0 0 0.4rem;
}

.post-card__title {
	font-size: 1.08rem;
	margin: 0 0 0.5rem;
}

.post-card__excerpt {
	font-size: 0.9rem;
	color: var(--jmg-muted);
	margin: 0 0 0.9rem;
}

.post-card__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.78rem;
	color: var(--jmg-muted);
	margin: 0;
}

.product-card {
	background: var(--jmg-paper);
	border: 1px solid var(--jmg-line);
	border-radius: var(--jmg-radius);
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
}

.product-card__head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 0.6rem;
}

.product-card__logo img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border: 1px solid var(--jmg-line);
	border-radius: 6px;
	background: #fff;
}

.product-card__name {
	font-size: 1.05rem;
	margin: 0;
}

.product-card__rating {
	margin: 0.15rem 0 0;
}

.product-card__bestfor {
	font-size: 0.85rem;
	color: var(--jmg-muted);
	margin: 0 0 0.4rem;
}

.product-card__desc {
	font-size: 0.9rem;
	color: var(--jmg-ink-2);
	margin: 0 0 1rem;
}

.product-card__cta {
	margin: auto 0 0;
}

/* Star meter fallback when the plugin stylesheet is absent. */
.jmg-stars {
	--percent: calc(var(--jmg-rating, 0) / 5 * 100%);
	display: inline-block;
	font-size: 0.95rem;
	line-height: 1;
	letter-spacing: 2px;
}

.jmg-stars::before {
	content: "★★★★★";
	background: linear-gradient(90deg, #e8a33d var(--percent), #d5d2cb var(--percent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* =====================================================================
   8. Breadcrumb
   ===================================================================== */

.breadcrumb {
	padding: 1rem 0 0;
	font-size: 0.82rem;
}

.breadcrumb__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	color: var(--jmg-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
	content: "›";
	margin: 0 0.45rem 0 0.2rem;
	color: var(--jmg-line);
}

.breadcrumb__item a {
	color: var(--jmg-muted);
	text-decoration: none;
}

.breadcrumb__item a:hover {
	color: var(--jmg-accent-dark);
	text-decoration: underline;
}

/* =====================================================================
   9. Article
   ===================================================================== */

.article-header {
	padding: 2rem 0 1.5rem;
}

.article-header__category a {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--jmg-accent);
	text-decoration: none;
}

.article-header__title {
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	letter-spacing: -0.01em;
	margin: 0.3rem 0 0.8rem;
}

.article-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	font-size: 0.85rem;
	color: var(--jmg-muted);
	margin: 0;
}

.article-header__verified {
	font-size: 0.8rem;
	color: var(--jmg-muted);
	margin: 0.4rem 0 0;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	padding-bottom: 4rem;
}

@media (min-width: 1024px) {
	.article-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.toc--inline {
		display: none;
	}

	.sidebar-sticky {
		position: sticky;
		top: 92px;
	}
}

@media (max-width: 1023px) {
	.article-layout__sidebar .toc--sidebar {
		display: none;
	}
}

.entry-content {
	font-size: 1.05rem;
	max-width: var(--jmg-narrow);
}

.entry-content h2 {
	font-size: 1.5rem;
	margin-top: 2.2em;
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--jmg-line);
}

.entry-content h3 {
	font-size: 1.2rem;
	margin-top: 1.8em;
}

.entry-content img {
	border-radius: var(--jmg-radius);
	margin: 1.5rem 0;
}

.entry-content blockquote {
	border-left: 3px solid var(--jmg-accent);
	background: var(--jmg-surface);
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	color: var(--jmg-ink-2);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	margin: 1.5rem 0;
}

.entry-content table th,
.entry-content table td {
	border: 1px solid var(--jmg-line);
	padding: 0.6rem 0.8rem;
	text-align: left;
}

.entry-content table thead th {
	background: var(--jmg-surface);
}

.entry-content code {
	background: var(--jmg-surface);
	border: 1px solid var(--jmg-line);
	border-radius: 4px;
	padding: 0.1em 0.35em;
	font-size: 0.9em;
}

/* TOC */

.toc {
	background: var(--jmg-surface);
	border: 1px solid var(--jmg-line);
	border-radius: var(--jmg-radius);
	padding: 1rem 1.25rem;
	margin: 0 0 2rem;
	font-size: 0.92rem;
}

.toc__title {
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jmg-ink-2);
	margin: 0 0 0.5rem;
	cursor: pointer;
}

.toc--inline .toc__title {
	margin: 0;
	padding: 0.1rem 0;
}

.toc--inline[open] .toc__title {
	margin-bottom: 0.5rem;
}

.toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.toc__item a {
	display: block;
	padding: 0.28rem 0;
	color: var(--jmg-ink-2);
	text-decoration: none;
	border-left: 2px solid transparent;
}

.toc__item a:hover {
	color: var(--jmg-accent-dark);
}

.toc__item--h3 a {
	padding-left: 1rem;
	font-size: 0.88em;
	color: var(--jmg-muted);
}

.toc--sidebar {
	max-height: calc(100vh - 220px);
	overflow-y: auto;
}

/* Sidebar tools */

.sidebar-tools {
	margin-top: 1.5rem;
	display: grid;
	gap: 1rem;
}

.sidebar-tools__title {
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jmg-ink-2);
	margin: 0;
}

/* Related & author */

.related-guides {
	margin: 3.5rem 0 0;
	padding-top: 2rem;
	border-top: 1px solid var(--jmg-line);
}

.related-guides h2 {
	font-size: 1.3rem;
}

.author-box {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	background: var(--jmg-surface);
	border: 1px solid var(--jmg-line);
	border-radius: var(--jmg-radius);
	padding: 1.5rem;
	margin-top: 3rem;
}

.author-box__avatar img {
	border-radius: 50%;
}

.author-box__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--jmg-muted);
	margin: 0;
}

.author-box__name {
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0.1rem 0 0.4rem;
}

.author-box__name a {
	color: var(--jmg-ink);
	text-decoration: none;
}

.author-box__bio {
	font-size: 0.9rem;
	color: var(--jmg-ink-2);
	margin: 0;
}

/* =====================================================================
   10. Archives / category landing / search
   ===================================================================== */

.archive-header {
	background: var(--jmg-surface);
	border-bottom: 1px solid var(--jmg-line);
	padding: 2.5rem 0;
	margin-bottom: 2.5rem;
}

.archive-header__title {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	margin: 0 0 0.4rem;
}

.archive-header__intro {
	color: var(--jmg-ink-2);
	max-width: 720px;
}

.archive-header__intro p {
	margin: 0;
}

.subcategory-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0 0 2rem;
	padding: 0;
}

.subcategory-nav a {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--jmg-ink-2);
	background: var(--jmg-paper);
	border: 1px solid var(--jmg-line);
	border-radius: 999px;
	padding: 0.4rem 1rem;
	text-decoration: none;
}

.subcategory-nav a:hover {
	border-color: var(--jmg-accent);
	color: var(--jmg-accent-dark);
}

.featured-guide,
.archive-list,
.archive-tools,
.tools-group,
.search-group {
	margin-bottom: 3rem;
}

.search-again {
	margin: 0 0 2.5rem;
}

.search-group__count {
	color: var(--jmg-muted);
	font-weight: 400;
	font-size: 0.9em;
}

.search-page-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-page-list li {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--jmg-line);
}

.pagination {
	margin: 2.5rem 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	text-align: center;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--jmg-line);
	border-radius: 6px;
	text-decoration: none;
	color: var(--jmg-ink-2);
}

.pagination .page-numbers.current {
	background: var(--jmg-navy);
	border-color: var(--jmg-navy);
	color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
	border-color: var(--jmg-accent);
	color: var(--jmg-accent-dark);
}

/* =====================================================================
   11. Newsletter
   ===================================================================== */

.jmg-newsletter {
	background: var(--jmg-navy);
	color: #fff;
	padding: 3.5rem 0;
}

.jmg-newsletter__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.jmg-newsletter h2 {
	color: #fff;
	margin: 0 0 0.3rem;
	font-size: 1.4rem;
}

.jmg-newsletter p {
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	max-width: 480px;
}

.jmg-newsletter__form {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.jmg-newsletter__form input[type="email"] {
	font: inherit;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	min-width: 260px;
}

.jmg-newsletter__form input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.jmg-newsletter__done {
	font-weight: 600;
	color: #fff !important;
}

.jmg-newsletter__error {
	flex-basis: 100%;
	color: #f3c1bd !important;
	font-size: 0.9rem;
}

.jmg-hp {
	position: absolute !important;
	left: -9999px !important;
}

/* =====================================================================
   12. Footer
   ===================================================================== */

.site-footer {
	background: #10192b;
	color: rgba(255, 255, 255, 0.75);
	padding: 3rem 0 0;
	margin-top: 0;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2rem;
	padding-bottom: 2rem;
}

.site-footer__name {
	font-weight: 700;
	font-size: 1.1rem;
	color: #fff;
	margin: 0 0 0.3rem;
}

.site-footer__tagline {
	font-size: 0.88rem;
	margin: 0;
	max-width: 360px;
}

.site-footer__list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(140px, auto));
	gap: 0.5rem 2.5rem;
	margin: 0;
	padding: 0;
}

.site-footer__list a {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9rem;
	text-decoration: none;
}

.site-footer__list a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 1.25rem;
	padding-bottom: 1.5rem;
	font-size: 0.8rem;
}

.site-footer__legal p {
	margin: 0;
}

/* =====================================================================
   13. 404
   ===================================================================== */

.error-404 {
	padding: 4rem 1.25rem 5rem;
	text-align: center;
	max-width: 640px;
}

.error-404__code {
	font-size: 4.5rem;
	font-weight: 700;
	color: var(--jmg-line);
	margin: 0;
	line-height: 1;
}

.error-404__title {
	margin: 0.5rem 0 1rem;
}

.error-404 .search-again {
	display: flex;
	justify-content: center;
	margin: 1.5rem 0;
}

.error-404__links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	margin: 1.5rem 0 0;
	padding: 0;
}
