/* フロントページ専用 — body.arabin-front-landing */

.arabin-front-landing .site-body {
	--arabin-ink: #1a2e24;
	--arabin-muted: #4a5c52;
	--arabin-cream: #f6f3ec;
	--arabin-accent: #b85c2e;
	--arabin-accent-soft: #e8d5c4;
	--arabin-line: rgba(26, 46, 36, 0.12);

	background: linear-gradient(180deg, rgba(246, 243, 236, 0.92) 0%, rgba(250, 248, 243, 0.98) 42%, rgba(246, 243, 236, 0.95) 100%);
}

.arabin-front-landing .site-body-container {
	background: transparent;
}

.arabin-front-landing .entry-body {
	font-size: 1.05rem;
	line-height: 1.85;
	color: var(--arabin-ink);
}

.arabin-front-landing .arabin-landing {
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	z-index: 0;
	padding: 2.15rem 1.1rem 2.9rem;
	background:
		repeating-linear-gradient(110deg, rgba(184, 92, 46, 0.05) 0 1px, rgba(232, 213, 196, 0.02) 1px 3px, transparent 3px 16px),
		radial-gradient(1000px 420px at 50% -120px, rgba(235, 228, 210, 0.97) 0%, rgba(235, 228, 210, 0.25) 55%, rgba(246, 243, 236, 0) 75%),
		linear-gradient(180deg, rgba(232, 225, 204, 0.98) 0%, rgba(246, 243, 236, 0.84) 35%, rgba(232, 225, 204, 0.96) 100%);
	border-radius: 1.25rem;
	box-shadow: 0 18px 52px rgba(26, 46, 36, 0.06);
}

.arabin-front-landing .arabin-landing > .wp-block-group.alignwide,
.arabin-front-landing .arabin-landing > .alignwide {
	max-width: 100%;
}

.arabin-front-landing .arabin-scroll-bg {
	display: none !important;
}

.arabin-front-landing .arabin-landing > :not(.arabin-scroll-bg) {
	position: relative;
	z-index: 1;
}

/* ----- 他ページ用：紙風パターン背景（PC・スマホ共通） ----- */
.arabin-paper-bg .entry-body {
	background:
		repeating-linear-gradient(110deg, rgba(184, 92, 46, 0.05) 0 1px, rgba(232, 213, 196, 0.02) 1px 3px, transparent 3px 16px),
		radial-gradient(820px 360px at 50% -120px, rgba(235, 228, 210, 0.9) 0%, rgba(235, 228, 210, 0.18) 55%, rgba(246, 243, 236, 0) 76%),
		linear-gradient(180deg, rgba(232, 225, 204, 0.96) 0%, rgba(246, 243, 236, 0.86) 100%);
	border-radius: 1.25rem;
	box-shadow: 0 18px 52px rgba(26, 46, 36, 0.04);
	padding: 1.7rem 1.15rem;
	overflow: hidden;
}

/* ----- 記事以外（本文周り/サイドバーの背面） ----- */
.arabin-paper-bg .site-body {
	background:
		repeating-linear-gradient(110deg, rgba(184, 92, 46, 0.03) 0 1px, rgba(232, 213, 196, 0.015) 1px 3px, transparent 3px 18px),
		radial-gradient(900px 420px at 50% -160px, rgba(235, 228, 210, 0.65) 0%, rgba(235, 228, 210, 0.18) 55%, rgba(246, 243, 236, 0) 78%),
		linear-gradient(180deg, rgba(246, 243, 236, 0.98) 0%, rgba(250, 248, 243, 0.995) 55%, rgba(246, 243, 236, 0.98) 100%);
}

.arabin-paper-bg .site-body-container {
	background:
		repeating-linear-gradient(110deg, rgba(184, 92, 46, 0.02) 0 1px, rgba(232, 213, 196, 0.01) 1px 3px, transparent 3px 18px),
		radial-gradient(900px 420px at 50% -160px, rgba(235, 228, 210, 0.55) 0%, rgba(235, 228, 210, 0.16) 55%, rgba(246, 243, 236, 0) 78%),
		linear-gradient(180deg, rgba(246, 243, 236, 0.98) 0%, rgba(250, 248, 243, 0.995) 55%, rgba(246, 243, 236, 0.98) 100%) !important;
}

.arabin-paper-bg .sideSection,
.arabin-paper-bg #main {
	background: transparent !important;
}

.arabin-paper-bg .main-section,
.arabin-paper-bg .mainSection,
.arabin-paper-bg .side-section {
	background: transparent !important;
}

/* ----- ヒーロー ----- */
.arabin-hero {
	position: relative;
	margin: -0.5rem calc(-50vw + 50%) 2.5rem;
	width: 100vw;
	max-width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 5vw, 3.25rem);
	background: linear-gradient(145deg, #1a3328 0%, #2a5a45 42%, #3d7a62 100%);
	color: #f4f1ea;
	text-align: center;
	box-shadow: 0 12px 40px rgba(26, 51, 40, 0.25);
}

.arabin-hero__inner {
	max-width: 36rem;
	margin: 0 auto;
}

.arabin-hero__badge {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e8e4dc;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.arabin-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.45rem, 4.2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.02em;
	text-wrap: balance;
}

.arabin-hero__lead {
	margin: 0 0 1.5rem;
	font-size: clamp(0.95rem, 2.4vw, 1.05rem);
	line-height: 1.75;
	opacity: 0.95;
	text-wrap: pretty;
}

.arabin-hero__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 0.65rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.arabin-hero__chips li {
	margin: 0;
	padding: 0.4rem 0.75rem;
	font-size: 0.8rem;
	line-height: 1.4;
	background: rgba(0, 0, 0, 0.15);
	border-radius: 0.35rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.arabin-scroll-hint {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.55rem 1.1rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a3328;
	background: #f4f1ea;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.arabin-scroll-hint:hover {
	color: #1a3328;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.arabin-scroll-hint::after {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-top: 0.1rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.arabin-story-anchor {
	display: block;
	height: 0;
	margin: 0;
	padding: 0;
	scroll-margin-top: 5.5rem;
}

/* ----- 導線パネル ----- */
.arabin-panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
	gap: 1rem;
	margin: 0 0 2.75rem;
	padding: 0;
}

.arabin-panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.15rem 1.25rem;
	text-decoration: none;
	color: inherit;
	background: var(--arabin-cream);
	border: 1px solid var(--arabin-line);
	border-radius: 0.65rem;
	box-shadow: 0 2px 12px rgba(26, 46, 36, 0.06);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.arabin-panel:hover {
	border-color: rgba(184, 92, 46, 0.45);
	box-shadow: 0 8px 28px rgba(26, 46, 36, 0.1);
	transform: translateY(-3px);
	color: inherit;
}

.arabin-panel:focus-visible {
	outline: 2px solid var(--arabin-accent);
	outline-offset: 2px;
}

.arabin-panel__tag {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--arabin-accent);
	margin-bottom: 0.35rem;
}

.arabin-panel__title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 0.35rem;
	color: var(--arabin-ink);
}

.arabin-panel__desc {
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--arabin-muted);
	margin: 0;
}

/* ----- 本文ブロックの読み心地 ----- */
.arabin-front-landing .arabin-landing h2,
.arabin-front-landing .arabin-landing .wp-block-heading:not(h1) {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	font-size: clamp(1.2rem, 2.5vw, 1.35rem);
	font-weight: 700;
	line-height: 1.4;
	border-bottom: 2px solid var(--arabin-accent-soft);
	scroll-margin-top: 5rem;
}

.arabin-front-landing .arabin-landing h2:first-child,
.arabin-front-landing .arabin-landing > h2:first-of-type,
.arabin-front-landing .arabin-landing > .wp-block-heading:first-child {
	margin-top: 0;
}

.arabin-front-landing .arabin-landing hr,
.arabin-front-landing .arabin-landing .wp-block-separator {
	margin: 2.25rem auto;
	max-width: 6rem;
	border: none;
	border-top: 2px solid var(--arabin-line);
	opacity: 1;
}

.arabin-front-landing .arabin-landing p {
	margin-bottom: 1.15rem;
}

.arabin-front-landing .arabin-landing a {
	color: #2563a8;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.arabin-front-landing .arabin-landing a:hover {
	color: #1d4ed8;
}

/* スクロール演出（JS で .is-visible を付与） */
.arabin-front-landing .arabin-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.arabin-front-landing .arabin-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.arabin-reveal,
	.arabin-panel,
	.arabin-scroll-hint {
		transition: none;
	}

	.arabin-front-landing .arabin-reveal {
		opacity: 1;
		transform: none;
	}

	.arabin-front-landing .arabin-scroll-bg {
		transition: none;
	}
}

/* ----- 基本背景（記事以外の"サイト全体"） ----- */
body.arabin-paper-bg {
	background:
		repeating-linear-gradient(110deg, rgba(184, 92, 46, 0.02) 0 1px, rgba(232, 213, 196, 0.008) 1px 3px, transparent 3px 20px),
		linear-gradient(180deg, rgba(246, 243, 236, 1) 0%, rgba(250, 248, 243, 1) 55%, rgba(246, 243, 236, 1) 100%)
		!important;
}

body.arabin-paper-bg .siteContent,
body.arabin-paper-bg .site-body,
body.arabin-paper-bg .site-body-container,
body.arabin-paper-bg .main-section,
body.arabin-paper-bg #main {
	background: transparent !important;
}

/* ----- スマホ向け：読みやすさ＋アクセント（背景はPCと統一） ----- */
@media (max-width: 768px) {
	.arabin-paper-bg .entry-body {
		line-height: 1.95;
	}

	.arabin-front-landing .arabin-landing h2,
	.arabin-front-landing .arabin-landing .wp-block-heading {
		text-shadow: none !important;
	}

	.arabin-paper-bg a,
	.arabin-front-landing .arabin-landing a {
		text-decoration-thickness: 2px;
		text-underline-offset: 0.2em;
	}

	.arabin-paper-bg .entry-body h2,
	.arabin-paper-bg .entry-body h3,
	.arabin-paper-bg .entry-body h4,
	.arabin-paper-bg .entry-body .wp-block-heading {
		position: relative;
		padding-left: 0.75rem;
		border-left: 6px solid rgba(184, 92, 46, 0.22);
	}

	.arabin-paper-bg .entry-body hr,
	.arabin-paper-bg .entry-body .wp-block-separator {
		border-top-color: rgba(184, 92, 46, 0.35) !important;
	}

	.arabin-paper-bg .entry-body blockquote {
		border-left: 6px solid rgba(184, 92, 46, 0.18);
		padding-left: 0.9rem;
	}
}

/* ----- シリーズナビ（BESS「次の記事へ」） ----- */
.arabin-series-nav {
	margin: 3rem 0 1.5rem;
	padding: 1.5rem 1.25rem;
	background:
		repeating-linear-gradient(110deg, rgba(184, 92, 46, 0.04) 0 1px, rgba(232, 213, 196, 0.015) 1px 3px, transparent 3px 18px),
		linear-gradient(180deg, rgba(246, 243, 236, 0.98) 0%, rgba(250, 248, 243, 0.98) 100%);
	border: 1px solid rgba(184, 92, 46, 0.18);
	border-radius: 0.75rem;
	text-align: center;
}

.arabin-series-nav__label {
	margin: 0 0 0.65rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #7a6a5a;
}

.arabin-series-nav__link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	color: #1a3328;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(184, 92, 46, 0.25);
	border-radius: 0.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.arabin-series-nav__link:hover {
	color: #1a3328;
	border-color: rgba(184, 92, 46, 0.5);
	box-shadow: 0 4px 16px rgba(26, 46, 36, 0.1);
	transform: translateY(-2px);
}

.arabin-series-nav__dir {
	font-size: 0.85rem;
	font-weight: 700;
	color: #b85c2e;
}

.arabin-series-nav__title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
}
