/*
Theme Name: GAラボ
Theme URI: https://googleanalytics-laboratory.com/
Description: GAラボ（Google Analytics Laboratory）専用クラシックテーマ。
Author: Ryo Koriyama
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: galab
*/

/* =================================================================
   Tokens（README「Design Tokens」）
   ================================================================= */
:root {
	/* 夜色 */
	--night: #0A0A12;
	--night-header: rgba(10, 10, 18, 0.96);
	--night-card: #14142A;
	--night-bd: #2A2A44;
	--night-bd-2: #1E1E33;
	--night-bd-3: #23233A;
	--night-bd-4: #2E2E48;

	/* テキスト */
	--ink: #14142A;
	--body-ink: #22223A;
	--sub: #4A5568;
	--rule: #E2E5EA;
	--rule-soft: #EEEDF3;
	--input: #D9DCE6;
	--paper: #FFFFFF;
	--paper-tint: #F7F6FA;

	/* 夜背景上のテキスト */
	--on-night: #EDEAF2;
	--on-night-2: #D5D2E0;
	--on-night-3: #C9C6D6;
	--on-night-weak: #A9A6B8;
	--on-night-weak-2: #8E8AA3;

	/* アクセント */
	--sakura: #F2A7C3;
	--petal-1: #E8A5C4;
	--petal-2: #F7C6DA;
	--petal-3: #FBDDE8;
	--link: #1F5FD6;
	--link-hover: #14142A;
	--blue: #3D7BFF;
	--gold: #E3B65C;
	--gold-ink: #8A6516;
	--gold-rank: #C9962E;
	--support-bg: #FFFBF2;
	--support-bd: #E8D7A8;
	--support-hover: #F7EEDA;
	--signature: linear-gradient(90deg, #3D7BFF, #F2A7C3 55%, #E3B65C);

	/* カテゴリ（ファミリー） */
	--fam-ga: #3F7FD6;
	--fam-ga-bg: #E4EEFB;
	--fam-tag: #2E9D6E;
	--fam-tag-bg: #DFF3EA;
	--fam-viz: #8A63D2;
	--fam-viz-bg: #EEE7FA;
	--fam-use: #D9822B;
	--fam-use-bg: #FBEBDC;
	--fam-etc: #7A8394;
	--fam-etc-bg: #ECEEF1;

	/* タイポ */
	--font-base: Inter, "Noto Sans JP", system-ui, sans-serif;
	--font-jp: "Noto Sans JP", system-ui, sans-serif;
	--font-label: "Chakra Petch", sans-serif;
	--font-mono: "JetBrains Mono", monospace;
	--font-num: Inter, sans-serif;

	/* 角丸 */
	--r-card: 6px;
	--r-btn: 4px;
	--r-badge: 3px;

	/* レイアウト */
	--gutter: 24px;
	--head-max: 1152px;
	--body-max: 1200px;
	--main-max: 760px;
	--aside-max: 320px;
	--col-gap: 64px;
	--ease: 0.2s;
}

@media (max-width: 639px) {
	:root {
		--gutter: 16px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-base);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--link);
	transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

a:hover {
	color: var(--link-hover);
}

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

button {
	font-family: inherit;
}

[hidden] {
	display: none !important;
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-base);
	color: var(--ink);
}

.signature-line {
	height: 2px;
	background: var(--signature);
}

.signature-line--bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

.eyebrow {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--gold-ink);
	white-space: nowrap;
}

.eyebrow--13 {
	font-size: 13px;
}

.eyebrow--sm {
	font-size: 11px;
}

.eyebrow--gold {
	color: var(--gold);
}

.eyebrow--wide {
	letter-spacing: 0.16em;
}

.cat-dot {
	display: inline-block;
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--fam-etc);
}

.fam-ga { background: var(--fam-ga); }
.fam-tag { background: var(--fam-tag); }
.fam-viz { background: var(--fam-viz); }
.fam-use { background: var(--fam-use); }
.fam-etc { background: var(--fam-etc); }
.fam-bg-ga { background: var(--fam-ga-bg); }
.fam-bg-tag { background: var(--fam-tag-bg); }
.fam-bg-viz { background: var(--fam-viz-bg); }
.fam-bg-use { background: var(--fam-use-bg); }
.fam-bg-etc { background: var(--fam-etc-bg); }

.post-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--sub);
}

.post-meta time {
	font-family: var(--font-num);
}

.cat-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ink);
	font-weight: 700;
}

.post-meta--dark {
	color: var(--on-night-weak);
}

.post-meta--dark .cat-label {
	color: var(--on-night);
}

/* アバター（RK の上に画像。読み込み失敗時は RK が見える） */
.avatar {
	position: relative;
	flex: none;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	overflow: hidden;
	background: radial-gradient(circle at 70% 30%, rgba(242, 167, 195, 0.5), transparent 60%), var(--night-card);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-label);
	font-weight: 700;
	font-size: calc(var(--size) / 3);
	color: var(--on-night);
}

.avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* =================================================================
   Header
   ================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--night-header);
	color: var(--on-night);
	border-bottom: 1px solid var(--night-bd-2);
}

.site-header__inner {
	max-width: var(--head-max);
	margin: 0 auto;
	padding: 0 var(--gutter);
	height: 72px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.site-header__logo {
	display: block;
	flex: none;
	width: 200px;
	height: 44px;
}

.site-header__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
}

.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
}

.site-header__nav {
	display: flex;
	gap: 28px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.site-header__nav a {
	color: var(--on-night);
	text-decoration: none;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
	color: var(--sakura);
}

.site-header__icon {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--on-night);
}

.site-header__icon:hover {
	color: var(--sakura);
}

.site-header__menu {
	all: unset;
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.site-header__menu span {
	width: 22px;
	height: 2px;
	background: var(--on-night);
}

.site-header__menu span:last-child {
	width: 14px;
	margin-left: 8px;
}

@media (max-width: 1039px) {
	.site-header__logo {
		width: 150px;
	}
}

@media (max-width: 639px) {
	.site-header--home .site-header__inner {
		height: 60px;
	}

	.site-header--home .site-header__logo {
		width: 128px;
		height: 36px;
	}

	.site-header--home .site-header__nav {
		font-size: 13px;
	}
}

/* 記事ページ：幅が狭いとき本文幅に合わせ、ナビの代わりにメニューボタン */
.site-header--article .site-header__inner {
	padding: 0 24px;
}

@media (max-width: 1039px) {
	.site-header--article .site-header__inner,
	.reading-bar {
		max-width: var(--main-max);
	}

	.site-header--article .site-header__nav {
		display: none;
	}

	.site-header--article .site-header__menu {
		display: flex;
	}
}

/* サイトについて */
.site-header--about .site-header__inner {
	max-width: var(--body-max);
	padding: 0 24px;
	height: 64px;
}

.site-header--about .site-header__logo {
	width: 170px;
	height: 40px;
}

.site-header--about .site-header__nav {
	gap: 24px;
	overflow-x: auto;
}

/* ---------- 読了プログレスバー ---------- */
.reading-bar {
	position: relative;
	max-width: var(--head-max);
	margin: 0 auto;
	padding: 0 24px 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.reading-bar__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: start;
}

.reading-bar__segs {
	position: relative;
	display: flex;
	gap: 4px;
	align-items: flex-start;
	min-width: 0;
	overflow: hidden;
}

.rb-seg {
	position: relative;
	flex: 1 1 0px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 22px;
	padding-top: 4px;
	text-decoration: none;
}

.rb-seg.is-intro {
	min-width: 28px;
}

.reading-bar.has-labels .rb-seg {
	min-width: 48px;
}

.rb-track {
	position: relative;
	display: block;
	height: 3px;
	background: var(--night-bd-3);
	overflow: hidden;
}

.rb-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background: var(--blue);
}

.rb-seg.is-current .rb-fill {
	background: linear-gradient(90deg, #3D7BFF 0%, #3D7BFF 55%, #F2A7C3 100%);
}

.rb-label {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	overflow: hidden;
	color: var(--on-night-weak-2);
}

.rb-seg.is-current .rb-label {
	color: var(--gold);
}

.rb-seg.is-read .rb-label {
	color: var(--sakura);
}

.rb-label.is-hidden {
	visibility: hidden;
}

.reading-bar__counter {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--on-night-weak);
	white-space: nowrap;
}

.rb-word {
	display: none;
	color: var(--gold);
}

.reading-bar.show-word .rb-word {
	display: inline;
}

.rb-cur {
	font-size: 14px;
	color: var(--gold);
}

.rb-pct {
	color: var(--on-night);
}

.reading-bar__done {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--sakura);
	white-space: nowrap;
	animation: gaPop 0.5s ease-out 1;
}

.rb-diamond {
	width: 6px;
	height: 6px;
	background: var(--sakura);
	transform: rotate(45deg);
}

.rb-100 {
	font-size: 14px;
}

.reading-bar.is-done .rb-fill {
	background: linear-gradient(90deg, #F2A7C3, #FFD3E2);
}

.reading-bar.is-done .rb-label {
	color: var(--sakura);
}

.reading-bar__title {
	display: none;
	font-size: 13px;
	line-height: 1.5;
	font-weight: 700;
	color: var(--on-night);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.reading-bar:not(.has-labels) .reading-bar__title {
	display: block;
}

@keyframes gaPop {
	0% { transform: scale(0.6); opacity: 0; }
	60% { transform: scale(1.12); opacity: 1; }
	100% { transform: scale(1); }
}

@keyframes gaGlow {
	0% { box-shadow: 0 0 0 rgba(242, 167, 195, 0); }
	40% { box-shadow: 0 0 14px rgba(242, 167, 195, 0.9); }
	100% { box-shadow: 0 0 0 rgba(242, 167, 195, 0); }
}

@keyframes gaRing {
	0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
	100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@keyframes gaBurst {
	0% { transform: translate(0, 0) rotate(0deg) scale(0.4); opacity: 0; }
	15% { opacity: 1; }
	100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1); opacity: 0; }
}

.rb-seg.is-flash .rb-track {
	animation: gaGlow 1.4s ease-out 1;
	overflow: visible;
}

/* =================================================================
   Layout（本文＋サイドバー）
   ================================================================= */
.layout {
	width: 100%;
	max-width: var(--body-max);
	margin: 0 auto;
	padding: 48px var(--gutter) 96px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--col-gap);
	align-items: flex-start;
}

.layout__main {
	flex: 1 1 320px;
	min-width: 0;
	max-width: var(--main-max);
}

.layout__aside {
	flex: 1 1 280px;
	max-width: var(--aside-max);
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

@media (max-width: 1039px) {
	.layout__aside {
		max-width: var(--main-max);
	}
}

@media (max-width: 639px) {
	.layout {
		padding: 32px var(--gutter) 64px;
		gap: 48px;
	}
}

/* =================================================================
   Sidebar parts
   ================================================================= */
.search-form {
	display: flex;
	border: 1px solid var(--input);
	border-radius: var(--r-btn);
	overflow: hidden;
}

.search-form input {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0 14px;
	height: 46px;
	font-size: 15px;
	font-family: inherit;
	color: var(--ink);
	outline: none;
	background: var(--paper);
}

.search-form button {
	width: 46px;
	border: 0;
	background: var(--night);
	color: var(--on-night);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.search-form--dark {
	border-color: var(--night-bd-4);
}

.search-form--dark input {
	background: var(--night-card);
	color: var(--on-night);
}

.search-form--dark button {
	background: var(--blue);
	color: #FFFFFF;
}

.profile-card {
	border-radius: var(--r-card);
	overflow: hidden;
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--rule);
}

.profile-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.profile-card__who {
	display: flex;
	gap: 14px;
	align-items: center;
}

.profile-card__who .avatar {
	font-size: 19px;
}

.profile-card__name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.profile-card__name > span {
	font-size: 17px;
	font-weight: 700;
}

.profile-card__name a {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--sub);
	text-decoration: none;
}

.profile-card__name a:hover {
	color: var(--link);
}

.profile-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.85;
	color: var(--sub);
	text-wrap: pretty;
}

.profile-card__text a,
.author-box__body p a {
	color: var(--link);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.profile-card__text a:hover,
.author-box__body p a:hover {
	color: var(--night);
}

.follow-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.btn-follow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	border-radius: var(--r-btn);
	border: 1px solid var(--input);
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.btn-follow--x {
	grid-column: 1 / -1;
	border: 0;
	background: var(--night);
	color: #FFFFFF;
}

.btn-follow--x:hover {
	background: var(--link);
	color: #FFFFFF;
}

.btn-follow--li:hover {
	border-color: #0A66C2;
	color: #0A66C2;
}

.btn-follow--rss:hover {
	border-color: var(--link);
	color: var(--link);
}

.support-mini {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--support-bd);
	background: var(--support-bg);
	border-radius: var(--r-btn);
	overflow: hidden;
}

.support-mini__head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px 10px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--sub);
}

.support-mini a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-top: 1px solid var(--support-bd);
	font-size: 14px;
	font-weight: 700;
	color: var(--gold-ink);
	text-decoration: none;
}

.support-mini a:hover {
	background: var(--support-hover);
	color: var(--gold-ink);
}

.aside-title {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.aside-title > span:last-child {
	font-size: 16px;
	font-weight: 700;
}

.ranking {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

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

.ranking li {
	border-bottom: 1px solid var(--rule);
}

.ranking a {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 12px 0;
	text-decoration: none;
	color: var(--ink);
}

.ranking a:hover {
	color: var(--link);
}

.ranking__no {
	font-family: var(--font-label);
	font-weight: 700;
	font-size: 20px;
	color: var(--gold-rank);
	flex: none;
	width: 26px;
}

.ranking__title {
	font-size: 15px;
	line-height: 1.7;
	font-weight: 700;
}

.aside-cats {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aside-cats ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aside-cats a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	border-radius: var(--r-btn);
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
}

.aside-cats a:hover {
	border-color: var(--link);
	color: var(--link);
}

/* =================================================================
   Home: hero
   ================================================================= */
.hero {
	position: relative;
	overflow: hidden;
	color: var(--on-night);
	background: radial-gradient(circle at 85% 20%, rgba(242, 167, 195, 0.18), transparent 45%), radial-gradient(circle at 8% 100%, rgba(61, 123, 255, 0.18), transparent 50%), var(--night);
}

.hero__petals {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--head-max);
	margin: 0 auto;
	padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(32px, 5vw, 64px);
	display: flex;
	flex-wrap: wrap;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}

.hero__text {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hero__eyebrow {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.16em;
	color: var(--gold);
}

.hero__title {
	margin: 0;
	font-size: clamp(26px, 4vw, 44px);
	line-height: 1.4;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-wrap: pretty;
}

.hero__title span {
	display: inline-block;
}

.hero__lead {
	margin: 0;
	max-width: 30em;
	font-size: 15px;
	line-height: 1.9;
	color: var(--on-night-3);
	text-wrap: pretty;
}

@media (max-width: 639px) {
	.hero__text {
		gap: 14px;
	}
}

/* オープニング演出：見出しを1行ずつ、続いて説明文と最新記事カード（花吹雪は home.js） */
.galab-intro .hero__eyebrow,
.galab-intro .hero__title span,
.galab-intro .hero__lead,
.galab-intro .featured-card {
	animation: heroRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* オープニングがあるときは、幕が開き始めてから登場させる */
.galab-opening {
	--intro-wait: 1.03s;
}

.galab-intro .hero__eyebrow { animation-delay: calc(var(--intro-wait, 0s) + 0.2s); }
.galab-intro .hero__title span:nth-child(1) { animation-delay: calc(var(--intro-wait, 0s) + 0.35s); }
.galab-intro .hero__title span:nth-child(2) { animation-delay: calc(var(--intro-wait, 0s) + 0.5s); }
.galab-intro .hero__title span:nth-child(3) { animation-delay: calc(var(--intro-wait, 0s) + 0.65s); }
.galab-intro .hero__lead { animation-delay: calc(var(--intro-wait, 0s) + 0.85s); }
.galab-intro .featured-card { animation-delay: calc(var(--intro-wait, 0s) + 1s); }

/* ---------- オープニング（functions.php の .opening） ----------
   0〜0.8s 棒グラフが伸びる → 0.57〜1.08s 桜とロゴ文字 → 1.03〜1.7s 幕が上下に開く。
   飛ばす操作で .is-skip が付き、0.35s で開く。 */
.opening {
	display: none;
}

.galab-opening .opening {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 1000;
	pointer-events: none;
	animation: opEnd 0s linear 1.7s forwards;
}

.opening__half {
	position: absolute;
	left: 0;
	right: 0;
	height: 50.5%;
	background: var(--night);
	animation: opTop 0.67s cubic-bezier(0.7, 0, 0.2, 1) 1.03s forwards;
}

.opening__half--top {
	top: 0;
}

.opening__half--bottom {
	bottom: 0;
	animation-name: opBottom;
}

.opening__logo {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	animation: opLogoOut 0.27s ease-in 0.94s forwards;
}

.opening__icon {
	width: 96px;
	height: auto;
	overflow: visible;
}

.opening__bar,
.opening__petal {
	transform-box: fill-box;
}

.opening__bar {
	transform-origin: 50% 100%;
	animation: opBar 0.51s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.opening__bar:nth-of-type(1) { animation-delay: 0.05s; }
.opening__bar:nth-of-type(2) { animation-delay: 0.17s; }
.opening__bar:nth-of-type(3) { animation-delay: 0.29s; }

.opening__petal {
	transform-origin: 50% 100%;
	animation: opPetal 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 0.57s both;
}

.opening__petal--2 {
	animation-delay: 0.68s;
}

.opening__word {
	width: 118px;
	height: 46px;
	background-repeat: no-repeat;
	background-position: right center;
	background-size: auto 100%;
	animation: opWord 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.68s both;
}

.opening.is-skip,
.opening.is-skip .opening__half,
.opening.is-skip .opening__logo {
	animation-delay: 0s;
	animation-duration: 0.35s;
}

.opening.is-skip {
	animation: opEnd 0s linear 0.35s forwards;
}

@keyframes opBar {
	from { transform: scaleY(0); }
}

@keyframes opPetal {
	from { opacity: 0; transform: scale(0) rotate(-40deg); }
}

@keyframes opWord {
	from { opacity: 0; transform: translateX(-10px); }
}

@keyframes opLogoOut {
	to { opacity: 0; transform: scale(0.96); }
}

@keyframes opTop {
	to { transform: translateY(-100%); }
}

@keyframes opBottom {
	to { transform: translateY(100%); }
}

@keyframes opEnd {
	to { visibility: hidden; }
}

/* パターン B：0.1〜0.7s 中央に光の線が伸びる → 0.4〜1.2s 英字 → 1.03〜1.7s その線から幕が上下に開く */
.opening__lines {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.opening__line {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	margin-top: -1.5px;
	background: linear-gradient(90deg, transparent, #0A6CFF 20%, #9C8CFF 50%, #FF93B8 80%, transparent);
	box-shadow: 0 0 18px 3px rgba(126, 155, 255, 0.85), 0 0 48px 10px rgba(255, 147, 184, 0.4);
	transform: scaleX(0);
	animation: opLineIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards, opLineOut 0.45s ease-out 1.03s forwards;
}

.opening__tag {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(50% - 36px);
	text-align: center;
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.32em;
	background: linear-gradient(90deg, #7EA6FF, #FF93B8);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: opTagIn 0.5s ease-out 0.4s both, opLogoOut 0.27s ease-in 0.94s forwards;
}

/* パターン C：0〜0.22s 中央の光の線が伸びる → 0.08〜0.6s 線の上で棒グラフが伸びる → 0.36〜0.81s 桜とロゴ文字
   → ロゴを見せたまま 0.95〜1.5s 線から幕が上下に開き、ロゴは上の幕と一緒に上へ抜ける */
.galab-opening .opening--c:not(.is-skip) {
	animation-delay: 1.5s;
}

.opening--c .opening__half {
	animation-delay: 0.95s;
	animation-duration: 0.55s;
}

.opening--c .opening__line {
	animation: opLineIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) 0s forwards, opLineOut 0.4s ease-out 0.95s forwards;
}

.opening--c .opening__line::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 160px;
	height: 24px;
	margin: -12px 0 0 -80px;
	background: radial-gradient(ellipse at center, rgba(255, 226, 166, 0.9), rgba(227, 182, 92, 0.35) 40%, transparent 70%);
}

.opening--c .opening__logo {
	inset: auto 0 50% 0;
	align-items: flex-end;
	padding-bottom: 32px;
	animation: opLogoUp 0.55s cubic-bezier(0.7, 0, 0.2, 1) 0.95s forwards;
}

.opening--c .opening__bar { animation-duration: 0.38s; }
.opening--c .opening__bar:nth-of-type(1) { animation-delay: 0.08s; }
.opening--c .opening__bar:nth-of-type(2) { animation-delay: 0.15s; }
.opening--c .opening__bar:nth-of-type(3) { animation-delay: 0.22s; }
.opening--c .opening__petal { animation-delay: 0.36s; animation-duration: 0.36s; }
.opening--c .opening__petal--2 { animation-delay: 0.45s; }

.opening--c .opening__word {
	margin-bottom: 4px;
	animation-delay: 0.43s;
	animation-duration: 0.35s;
}

@keyframes opLogoUp {
	to { transform: translateY(-55vh); }
}

.opening.is-skip .opening__line,
.opening.is-skip .opening__tag {
	animation: opLogoOut 0.2s forwards;
}

@keyframes opLineIn {
	to { transform: scaleX(1); }
}

@keyframes opLineOut {
	to { opacity: 0; transform: scaleX(1) scaleY(6); }
}

@keyframes opTagIn {
	from { opacity: 0; letter-spacing: 0.6em; }
}

@media (min-width: 640px) {
	.opening__icon { width: 120px; }
	.opening__word { width: 144px; height: 56px; }
}

@keyframes heroRise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

.featured-card {
	flex: 1 1 300px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	border-radius: var(--r-card);
	overflow: hidden;
	background: var(--night-card);
	border: 1px solid var(--night-bd);
	color: var(--on-night);
	text-decoration: none;
}

.featured-card:hover {
	border-color: var(--sakura);
	color: var(--on-night);
}

.featured-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 1200 / 630;
	background: radial-gradient(circle at 80% 25%, rgba(242, 167, 195, 0.35), transparent 50%), radial-gradient(circle at 15% 90%, rgba(61, 123, 255, 0.35), transparent 55%), #1B1B30;
}

.featured-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.badge-latest {
	position: absolute;
	z-index: 1;
	top: 14px;
	left: 14px;
	font-family: var(--font-label);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.14em;
	color: var(--night);
	background: var(--gold);
	padding: 4px 8px;
	border-radius: var(--r-badge);
}

.featured-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.featured-card__title {
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.6;
	font-weight: 700;
	text-wrap: pretty;
}

/* =================================================================
   Home: list
   ================================================================= */
.home-main {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.list-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.list-head__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}

.section-title {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.section-title > span:last-child {
	font-size: 22px;
	font-weight: 700;
}

.list-count {
	font-size: 13px;
	color: var(--sub);
}

.list-count > span {
	font-family: var(--font-num);
	font-weight: 700;
	color: var(--ink);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.chips::-webkit-scrollbar {
	display: none;
}

.chip {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	white-space: nowrap;
	min-height: 36px;
	padding: 0 12px;
	border-radius: var(--r-btn);
	border: 1px solid var(--rule);
	background: var(--paper);
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.chip:hover {
	border-color: var(--ink);
}

.chip[aria-selected="true"] {
	border-color: var(--night);
	background: var(--night);
	color: #FFFFFF;
	font-weight: 700;
}

.chip:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

@media (max-width: 639px) {
	.chips {
		flex-wrap: nowrap;
		margin: 0 calc(var(--gutter) * -1);
		padding: 0 var(--gutter);
		scroll-padding: 0 var(--gutter);
	}

	.chip {
		min-height: 40px;
	}
}

.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 32px 24px;
}

.post-item {
	min-width: 0;
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--ink);
	text-decoration: none;
}

.post-card:hover {
	color: var(--link);
}

.post-card__thumb {
	display: block;
	aspect-ratio: 1200 / 630;
	border-radius: var(--r-card);
	overflow: hidden;
}

.post-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.post-card__title {
	font-size: 17px;
	line-height: 1.65;
	font-weight: 700;
	text-wrap: pretty;
}

@media (max-width: 639px) {
	.post-list {
		display: flex;
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--rule);
	}

	.post-item {
		border-bottom: 1px solid var(--rule);
	}

	.post-card {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 20px;
		align-items: center;
		padding: 16px 0;
	}

	.post-card__thumb {
		border-radius: var(--r-btn);
	}

	.post-card__body {
		gap: 8px;
	}

	.post-card__title {
		font-size: 15px;
	}
}

.list-empty {
	margin: 0;
	font-size: 15px;
	color: var(--sub);
}

.btn-more {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	align-self: center;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 28px;
	border-radius: var(--r-btn);
	border: 1px solid var(--ink);
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	transition: background-color var(--ease), color var(--ease);
}

.btn-more span {
	font-family: var(--font-num);
	font-size: 13px;
	font-weight: 400;
	color: var(--on-night-weak-2);
}

.btn-more:hover {
	background: var(--night);
	color: #FFFFFF;
}

.btn-more:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.plain-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.5;
}

.nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
	margin-top: auto;
	background: var(--night);
	color: var(--on-night-2);
}

.site-footer__inner {
	max-width: var(--body-max);
	margin: 0 auto;
	padding: 56px 24px 32px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

@media (max-width: 639px) {
	.site-footer--home .site-footer__inner {
		padding: 40px 16px 28px;
	}
}

.site-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	justify-content: space-between;
}

.site-footer__about {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 240px;
}

.site-footer__about img {
	display: block;
	width: 180px;
	height: auto;
}

.site-footer__lead {
	font-size: 14px;
	line-height: 1.8;
	color: var(--on-night-weak);
}

.site-footer__cats {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 2 1 360px;
}

.site-footer__cats ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 6px 24px;
}

.site-footer__site {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 200px;
}

.site-footer__site ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.site-footer__cats a,
.site-footer__site a {
	font-size: 15px;
	line-height: 2;
	color: var(--on-night-2);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--sakura);
}

.site-footer__copy {
	border-top: 1px solid var(--night-bd-3);
	padding-top: 20px;
	font-family: var(--font-label);
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--on-night-weak-2);
}

.text-logo {
	display: flex;
	align-items: baseline;
	font-size: 32px;
	line-height: 1;
	color: var(--on-night);
}

.text-logo span:first-child {
	font-family: var(--font-label);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.text-logo span:last-child {
	font-family: var(--font-jp);
	font-weight: 900;
	font-size: 0.92em;
	letter-spacing: 0.04em;
	margin-left: 0.06em;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--on-night-weak);
	padding-bottom: 24px;
	border-bottom: 1px solid var(--night-bd-3);
}

.breadcrumb a {
	color: var(--on-night-2);
	text-decoration: none;
}

.site-footer--about {
	color: var(--on-night-weak);
}

.site-footer--about .site-footer__inner {
	padding: 28px 24px;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

.site-footer__brand {
	font-family: var(--font-label);
	font-weight: 700;
	color: var(--on-night);
	letter-spacing: 0.08em;
}

.site-footer__brand span {
	font-weight: 600;
	color: var(--on-night-weak-2);
}

/* =================================================================
   Article
   ================================================================= */
.article-hero {
	position: relative;
	overflow: hidden;
	color: var(--on-night);
	background: radial-gradient(circle at 85% 20%, rgba(242, 167, 195, 0.18), transparent 45%), radial-gradient(circle at 8% 100%, rgba(61, 123, 255, 0.18), transparent 50%), var(--night);
}

.article-hero__inner {
	max-width: var(--head-max);
	margin: 0 auto;
	padding: clamp(24px, 4vw, 40px) 24px clamp(28px, 5vw, 56px);
	display: flex;
	flex-direction: column;
	gap: clamp(12px, 2vw, 20px);
}

@media (max-width: 1039px) {
	.article-hero__inner {
		max-width: var(--main-max);
	}
}

.article-hero__title {
	margin: 0;
	max-width: 24em;
	font-size: clamp(21px, 3.6vw, 40px);
	line-height: 1.45;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-wrap: pretty;
}

.article-hero__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	font-size: 13px;
	color: var(--on-night-weak);
}

.article-hero__dates time {
	font-family: var(--font-num);
	color: var(--on-night);
}

.layout--article {
	padding: 40px 24px 96px;
	--art-gap: 32px;
}

@media (max-width: 1039px) {
	.layout--article {
		--art-gap: 20px;
	}
}

.article {
	flex: 1 1 640px;
	min-width: 0;
	max-width: var(--main-max);
	display: flex;
	flex-direction: column;
	gap: var(--art-gap);
}

.article-eyecatch {
	aspect-ratio: 1200 / 630;
	border-radius: var(--r-card);
	overflow: hidden;
	background: radial-gradient(circle at 80% 25%, rgba(242, 167, 195, 0.35), transparent 50%), radial-gradient(circle at 15% 90%, rgba(61, 123, 255, 0.35), transparent 55%), var(--night-card);
}

.article-eyecatch__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- 折りたたみボックス（シェア・AI要約） ---------- */
.share-box,
.ai-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-radius: var(--r-card);
}

.ai-box {
	background: var(--paper-tint);
	padding: 16px 20px;
}

.box-toggle {
	all: unset;
	box-sizing: border-box;
	cursor: default;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 24px;
}

.box-toggle__title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
	overflow: hidden;
}

.box-toggle__label {
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
}

.box-toggle__chev {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--paper);
	border: 1px solid var(--rule);
	color: var(--ink);
	transition: transform 0.25s;
}

.js-collapse.is-open .box-toggle__chev {
	transform: rotate(180deg);
}

.sp-only {
	display: none;
}

.ai-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
}

.ai-grid a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 0 8px;
	white-space: nowrap;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--r-btn);
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.ai-grid a:hover {
	border-color: var(--link);
	color: var(--link);
}

.ai-logo {
	width: 18px;
	height: 18px;
	flex: none;
	background: center / contain no-repeat;
}

.ai-note {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--sub);
}

@media (max-width: 1039px) {
	.share-box,
	.ai-box {
		background: var(--paper-tint);
		padding: 8px 8px 8px 14px;
	}

	.ai-box {
		margin-top: -12px;
	}

	.box-toggle {
		cursor: pointer;
	}

	.box-toggle__label {
		font-size: 14px;
	}

	.sp-only {
		display: flex;
	}

	.box-toggle__label.sp-only {
		display: inline;
	}

	.js-collapse:not(.is-open) .box-body {
		display: none;
	}

	.ai-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- シェアボタン ---------- */
.share-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
}

.share-btn {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 48px;
	border-radius: var(--r-btn);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: #FFFFFF;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
	transition: filter var(--ease), transform var(--ease), color 0.3s, box-shadow 0.3s;
}

.share-btn:hover {
	filter: brightness(1.12);
	color: #FFFFFF;
}

.share-btn:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.share-btn--x { background: #0A0A0A; }
.share-btn--fb { background: #3B5998; }
.share-btn--hb { background: #2C6EBD; }
.share-btn--line { background: #06C755; }

.share-btn__hb {
	font-family: Verdana, sans-serif;
	font-weight: 900;
	font-size: 15px;
	line-height: 16px;
	letter-spacing: -0.02em;
}

.share-btn--copy {
	border: 2px solid transparent;
	white-space: nowrap;
	color: var(--ink);
	background: linear-gradient(115deg, #9DBBFF 0%, #F5B8CE 55%, #F7D49E 100%) border-box;
	box-shadow: none;
}

.share-btn--copy:hover {
	color: var(--ink);
}

.share-btn--copy.is-copied {
	color: #B8436F;
	background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, linear-gradient(115deg, #9DBBFF 0%, #F5B8CE 55%, #F7D49E 100%) border-box;
	box-shadow: 0 4px 16px rgba(242, 167, 195, 0.45);
}

.share-ripple {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%);
	animation: gaRing 0.6s ease-out forwards;
}

.share-btn--copy .share-ripple {
	background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%);
}

.petal-burst {
	position: fixed;
	pointer-events: none;
	z-index: 200;
}

.petal-burst span {
	position: absolute;
	border-radius: 100% 0 100% 0;
	opacity: 0;
}

@media (max-width: 1039px) {
	.share-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.share-grid .share-btn--copy {
		grid-column: 1 / -1;
		flex-direction: row;
	}
}

/* 記事末尾：はてブを独立させたぶん、残りのボタンの列数を減らす */
.share-grid--footer {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1039px) {
	.share-grid--footer {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- はてブで保存（タイトル下・記事末尾） ---------- */
.hb-later,
.hb-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: #FFFFFF;
	background: #2C6EBD;
	border-radius: var(--r-btn);
	transition: filter var(--ease);
}

.hb-later:hover,
.hb-save:hover {
	filter: brightness(1.12);
	color: #FFFFFF;
}

.hb-later:focus-visible,
.hb-save:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.hb-later {
	gap: 6px;
	padding: 4px 10px;
	font-size: 12px;
}

.hb-later .share-btn__hb {
	font-size: 12px;
	line-height: 1;
}

.hb-save {
	gap: 10px;
	width: 100%;
	min-height: 56px;
	padding: 8px 16px;
	font-size: 15px;
}

.share-grid--side,
.share-grid--sheet {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.share-grid--side .share-btn--copy,
.share-grid--sheet .share-btn--copy {
	grid-column: 1 / -1;
	flex-direction: row;
	gap: 8px;
}

/* ---------- 目次 ---------- */
.toc {
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	overflow: hidden;
}

.toc__head {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	background: var(--night);
	color: var(--on-night);
}

.toc__state {
	font-size: 13px;
	color: var(--on-night-weak);
}

.toc__list {
	list-style: none;
	margin: 0;
	padding: 12px 20px 16px;
	display: flex;
	flex-direction: column;
}

.toc.is-closed .toc__list {
	display: none;
}

.toc__list > li {
	border-bottom: 1px solid var(--rule-soft);
	padding: 10px 0;
}

.toc__list > li > a {
	display: flex;
	gap: 14px;
	align-items: baseline;
	color: var(--ink);
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.7;
}

.toc__list a:hover {
	color: var(--link);
}

.toc__no {
	font-family: var(--font-label);
	font-size: 13px;
	color: var(--gold-ink);
	flex: none;
}

.toc__list ul {
	list-style: none;
	margin: 4px 0 0;
	padding: 0 0 0 34px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.toc__list ul a {
	display: flex;
	gap: 8px;
	color: var(--sub);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.8;
}

.toc__dash {
	color: var(--sakura);
}

/* ---------- 本文 ---------- */
.entry {
	font-size: 18px;
	line-height: 1.95;
	color: var(--body-ink);
	overflow-wrap: anywhere;
}

.entry > * {
	margin-top: 0;
	margin-bottom: 0;
}

.entry > * + * {
	margin-top: var(--art-gap);
}

.entry p {
	margin: 0;
	text-wrap: pretty;
}

.entry * + p,
.entry p + * {
	margin-top: var(--art-gap);
}

.entry a {
	color: var(--link);
}

.entry strong {
	font-weight: 700;
}

.entry p > strong {
	background: linear-gradient(transparent 62%, #FCE1EB 62%);
}

.entry del,
.entry s {
	color: var(--sub);
	text-decoration-color: #C8264A;
	text-decoration-thickness: 2px;
}

.entry .chapter-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: calc(var(--art-gap) + 72px);
}

.entry > .chapter-head:first-child {
	margin-top: 0;
}

.chapter-head__label {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.12em;
	color: var(--gold-ink);
}

.entry h2 {
	margin: 0;
	font-size: clamp(22px, 2.6vw, 27px);
	line-height: 1.55;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink);
	scroll-margin-top: 160px;
	text-wrap: pretty;
}

.chapter-head__deco {
	display: flex;
	gap: 4px;
	margin-top: 6px;
}

.chapter-head__deco span {
	width: 40px;
	height: 2px;
	background: var(--blue);
}

.chapter-head__deco span + span {
	width: 12px;
	background: var(--sakura);
}

.entry h3 {
	margin: calc(var(--art-gap) + 40px) 0 0;
	font-size: clamp(19px, 2vw, 21px);
	line-height: 1.6;
	font-weight: 700;
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: 12px;
	scroll-margin-top: 120px;
}

.entry h3::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--blue);
	transform: rotate(45deg);
	flex: none;
}

.entry h4 {
	margin: calc(var(--art-gap) + 16px) 0 0;
	font-size: 18px;
	line-height: 1.7;
	font-weight: 700;
	color: var(--ink);
	display: flex;
	align-items: center;
	gap: 10px;
}

.entry h4::before {
	content: "";
	width: 12px;
	height: 2px;
	background: var(--sakura);
	flex: none;
}

.entry h5,
.entry h6 {
	margin: var(--art-gap) 0 0;
	font-size: 17px;
	color: var(--ink);
}

.entry ol {
	padding-left: 1.6em;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.entry ol > li {
	padding-left: 4px;
}

.entry ul {
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.entry ul > li,
.dot-list > li {
	position: relative;
	padding-left: 18px;
}

.entry ul > li::before,
.dot-list > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--blue);
}

.entry li > ul,
.entry li > ol {
	margin-top: 4px;
}

.entry img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	cursor: zoom-in;
}

.entry a img {
	cursor: pointer;
}

.entry figure,
.entry .wp-caption {
	margin: 0;
	max-width: 100%;
}

.entry figcaption,
.entry .wp-caption-text {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--sub);
}

.entry iframe {
	max-width: 100%;
}

.entry blockquote {
	margin: 0;
	padding: 20px 24px;
	background: var(--paper-tint);
	border-radius: var(--r-card);
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 17px;
	line-height: 1.9;
}

.entry blockquote::before {
	content: "\201C";
	font-family: var(--font-label);
	font-weight: 700;
	font-size: 40px;
	line-height: 0.6;
	color: var(--sakura);
}

.entry blockquote > * + * {
	margin-top: 0;
}

.entry blockquote cite {
	font-style: normal;
	font-size: 13px;
	color: var(--sub);
}

.entry code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	background: #F2F1F6;
	border: 1px solid var(--rule);
	padding: 1px 6px;
	border-radius: var(--r-badge);
	color: #B8336A;
}

.code-block {
	background: var(--night);
	border-radius: var(--r-card);
	overflow: hidden;
}

.code-block__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 8px 6px 16px;
	border-bottom: 1px solid var(--night-bd-3);
	font-family: var(--font-mono);
	font-size: 12px;
}

.code-block__lang {
	color: var(--gold);
}

.code-block__copy {
	all: unset;
	cursor: pointer;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid var(--night-bd-4);
	border-radius: var(--r-btn);
	color: var(--on-night-2);
	display: flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 12px;
}

.code-block__copy:hover {
	border-color: var(--sakura);
}

.code-block pre,
.entry pre {
	margin: 0;
	padding: 22px 24px;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.75;
	color: var(--on-night);
	background: var(--night);
	white-space: pre;
}

.entry pre code {
	all: unset;
}

/* 表 */
.table-scroll {
	overflow-x: auto;
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
}

.entry table {
	width: 100% !important;
	height: auto !important;
	min-width: 520px;
	border-collapse: collapse;
	border: 0;
	font-size: 16px;
	line-height: 1.8;
}

.entry table tr,
.entry table th,
.entry table td {
	height: auto !important;
	width: auto !important;
}

.entry table th,
.entry table td {
	text-align: left;
	padding: 14px 18px;
	vertical-align: top;
	border: 0;
	border-top: 1px solid var(--rule);
}

.entry table tr:first-child > * {
	border-top: 0;
}

.entry table th {
	font-weight: 700;
	background: var(--paper-tint);
	white-space: nowrap;
}

.entry table thead th {
	background: var(--night);
	color: var(--on-night);
}

.entry .table-scroll:has(.cps-table03) {
	border: 0;
	border-radius: 0;
}

.entry table.cps-table03 {
	border-top: 2px solid var(--ink);
}

.entry table.cps-table03 th,
.entry table.cps-table03 td {
	padding: 12px;
	border-top: 0;
	border-bottom: 1px solid var(--rule);
	background: none;
	color: inherit;
}

.entry table.cps-table03 tr:first-child > * {
	border-bottom-color: var(--ink);
	font-weight: 700;
}

/* ---------- JIN 由来の装飾クラス ---------- */
.entry .simple-box9,
.entry .simple-box1 {
	border: 1px solid var(--input);
	border-radius: var(--r-card);
	padding: 20px 24px;
	font-size: 17px;
	line-height: 1.9;
}

.entry .simple-box4,
.entry .simple-box7 {
	background: var(--paper-tint);
	border-radius: var(--r-card);
	padding: 22px 26px;
	font-size: 17px;
	line-height: 1.9;
}

.entry .concept-box6,
.entry .concept-box5,
.entry .concept-box2 {
	border-radius: var(--r-card);
	padding: 22px 26px;
	font-size: 17px;
	line-height: 1.9;
	background: #FBF6EA;
}

.entry .concept-box6::before,
.entry .concept-box5::before,
.entry .concept-box2::before {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.12em;
	line-height: 1.4;
	color: var(--gold-ink);
}

.entry .concept-box6::before {
	content: "◆ POINT";
}

.entry .concept-box5 {
	background: #E9F1FD;
}

.entry .concept-box5::before {
	content: "◆ REFERENCE";
	color: var(--link);
}

.entry .concept-box2 {
	background: #FBE4E9;
}

.entry .concept-box2::before {
	content: "◆ CAUTION";
	color: #9E1B38;
}

.entry [class*="-box"] > :first-child,
.entry .jin-iconbox-main > :first-child {
	margin-top: 0;
}

.entry [class*="-box"] > * + *,
.entry .jin-iconbox-main > * + * {
	margin-top: 12px;
}

.entry .kaisetsu-box1 {
	border: 1px solid var(--input);
	border-radius: var(--r-card);
	overflow: hidden;
}

.entry .kaisetsu-box1-title {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	background: var(--night-card);
	color: var(--on-night);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

.entry .kaisetsu-box1-title::before {
	content: "解説";
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--sakura);
	flex: none;
}

.entry .kaisetsu-box1-body {
	padding: 20px 24px;
	font-size: 17px;
	line-height: 1.9;
}

.entry .kaisetsu-box1-body > * + * {
	margin-top: 12px;
}

.entry .kaisetsu-box1 > * + * {
	margin-top: 0;
}

.entry .jin-iconbox {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 22px 24px;
	font-size: 17px;
	line-height: 1.9;
}

.entry .jin-iconbox::before {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F2A7C3' stroke-width='2.4'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.entry .jin-iconbox-main {
	flex: 1;
	min-width: 0;
}

.entry .jin-iconbox-main::before {
	content: "CHECK";
	display: block;
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.12em;
	line-height: 1.4;
	color: #B8336A;
	margin-bottom: 4px;
}

.entry .green-text { color: var(--link); font-weight: 700; }
.entry .yellow-text { color: var(--gold-ink); font-weight: 700; }
.entry .red-text { color: #9E1B38; font-weight: 700; }

/* ブログカード（JIN .content-line） */
.entry .content-line {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 12px 16px;
	font-size: 16px;
	line-height: 1.65;
}

.entry .content-line::before {
	content: "RELATED";
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--gold-ink);
}

.entry .content-line > * + * {
	margin-top: 0;
}

.entry .content-line a {
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.entry .content-line a:hover {
	color: var(--link);
}

.entry .content-line span[style] {
	font-size: inherit !important;
}

/* ---------- 記事末 ---------- */
#article-end {
	height: 0;
}

.article-cats {
	margin-top: 48px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 20px;
	border-top: 1px solid var(--rule);
}

.article-cats > div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.article-cats a {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
	border-radius: var(--r-badge);
	text-decoration: none;
}

.article-cats a:hover {
	filter: brightness(0.96);
	color: var(--ink);
}

.support {
	margin-top: 72px;
	scroll-margin-top: 120px;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	background: var(--paper);
	padding: clamp(24px, 4vw, 36px);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.support__line {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, #F2A7C3, #E3B65C);
}

.support__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.support__head h2 {
	margin: 0;
	font-size: clamp(20px, 2.4vw, 24px);
	line-height: 1.55;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.support__text {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 16px;
	line-height: 1.95;
	color: var(--body-ink);
}

.support p {
	margin: 0;
	text-wrap: pretty;
}

.support__block {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-top: 1px solid var(--rule-soft);
	padding-top: 18px;
	font-size: 16px;
	line-height: 1.9;
	color: var(--body-ink);
}

.support__sub {
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.dot-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dot-list--gold > li::before {
	background: var(--gold);
	top: 0.85em;
}

.support__steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 12px;
}

.support-step {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #FBF8F1;
	border: 1px solid #F0E6CC;
	border-radius: var(--r-card);
	padding: 18px;
	text-decoration: none;
	color: var(--ink);
}

.support-step--link:hover {
	border-color: var(--gold);
	color: var(--ink);
}

.support-step__no {
	font-size: 13px;
	font-weight: 700;
	color: var(--gold-ink);
}

.support-step__text {
	font-size: 14px;
	line-height: 1.7;
	color: var(--sub);
}

.support-step__btn {
	margin-top: auto;
	min-height: 44px;
	border: 1px solid var(--ink);
	border-radius: var(--r-btn);
	background: var(--ink);
	color: #FFFFFF;
	font: 700 14px var(--font-jp);
	cursor: pointer;
	transition: background-color var(--ease);
}

.support-step__btn:hover {
	background: #2A2A44;
}

.support-step__go {
	margin-top: auto;
	min-height: 44px;
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--link);
}

.support__thanks {
	font-size: 16px;
	line-height: 1.9;
	color: var(--body-ink);
}

.share-footer {
	margin-top: 56px;
	scroll-margin-top: 120px;
}

.share-footer__box {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--night);
	border-radius: var(--r-card) var(--r-card) 0 0;
	padding: 28px;
	color: var(--on-night);
}

.share-footer__title {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.share-footer__title > span:last-child {
	font-size: 18px;
	font-weight: 700;
}

.author-box {
	margin-top: calc(var(--art-gap) * -1);
	border: 1px solid var(--rule);
	border-top: 0;
	border-radius: 0 0 var(--r-card) var(--r-card);
	padding: 28px;
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.author-box .avatar {
	font-size: 24px;
}

.author-box__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.author-box__name {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
}

.author-box__name > span {
	font-size: 18px;
	font-weight: 700;
}

.author-box__name a {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--sub);
	text-decoration: none;
}

.author-box__name a:hover {
	color: var(--link);
}

.author-box__body p {
	margin: 0;
	font-size: 16px;
	line-height: 1.85;
	color: var(--sub);
	text-wrap: pretty;
}

.author-box__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.ab-btn {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border-radius: var(--r-btn);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ab-btn--dark {
	background: var(--night);
	color: var(--on-night);
}

.ab-btn--dark:hover {
	background: var(--link);
	color: #FFFFFF;
}

.ab-btn--gold {
	border: 1px solid var(--gold);
	color: var(--gold-ink);
}

.ab-btn--gold:hover {
	background: #FBF6EA;
	color: var(--gold-ink);
}

.ab-btn--line {
	border: 1px solid var(--rule);
	color: var(--ink);
}

.ab-btn--line:hover {
	border-color: var(--link);
	color: var(--link);
}

.related {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.related__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.related__head > span:last-child {
	font-size: 22px;
	font-weight: 700;
}

.related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.related__grid > a {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}

.related__grid > a:hover {
	color: var(--link);
}

.related__thumb {
	display: block;
	aspect-ratio: 1200 / 630;
	border-radius: var(--r-card);
	overflow: hidden;
	background: radial-gradient(circle at 75% 30%, rgba(242, 167, 195, 0.35), transparent 55%), radial-gradient(circle at 15% 90%, rgba(61, 123, 255, 0.35), transparent 55%), var(--night-card);
}

.related__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 12px;
	color: var(--sub);
}

.related__meta time {
	font-family: var(--font-num);
}

.related__cat {
	font-weight: 700;
	color: var(--ink);
	padding: 2px 8px;
	border-radius: var(--r-badge);
}

.related__title {
	font-size: 16px;
	line-height: 1.65;
	font-weight: 700;
}

.prev-next {
	margin-top: 32px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.prev-next a {
	border: 1px solid var(--rule);
	border-radius: var(--r-card);
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: var(--ink);
}

.prev-next a:hover {
	border-color: var(--link);
	color: var(--ink);
}

.prev-next a.is-next {
	text-align: right;
}

.prev-next__dir {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--sub);
}

.prev-next__title {
	font-size: 16px;
	line-height: 1.65;
	font-weight: 700;
}

/* ---------- 記事サイドバー：見出し（追従） ---------- */
.layout__aside--article {
	align-self: stretch;
}

.side-toc {
	position: sticky;
	top: 140px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 4px;
}

.side-toc__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.side-toc__pct {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 13px;
	color: var(--link);
}

.side-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--rule);
}

.side-toc__list > li {
	position: relative;
}

.side-toc__bar {
	position: absolute;
	left: -1px;
	top: 0;
	width: 2px;
	height: 0;
	background: var(--blue);
}

.side-toc__list > li.is-current .side-toc__bar {
	background: linear-gradient(180deg, #3D7BFF 0%, #3D7BFF 55%, #F2A7C3 100%);
}

.side-toc__list > li > a:not(.side-toc__sub) {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 9px 0 9px 16px;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.6;
	color: var(--sub);
}

.side-toc__list > li.is-current > a:not(.side-toc__sub) {
	color: var(--ink);
	font-weight: 700;
}

.side-toc__no {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	color: var(--on-night-weak-2);
	flex: none;
}

.side-toc__list > li.is-current .side-toc__no {
	color: var(--gold-ink);
}

.side-toc__sub {
	display: flex;
	gap: 8px;
	align-items: baseline;
	padding: 4px 0 6px 44px;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.6;
	color: var(--sub);
}

.side-toc__sub.is-active {
	color: var(--ink);
	font-weight: 700;
}

.side-toc__dot {
	width: 5px;
	height: 5px;
	flex: none;
	transform: translateY(-2px) rotate(45deg);
	background: var(--input);
}

.side-toc__sub.is-active .side-toc__dot {
	background: var(--sakura);
}

.side-toc a:hover {
	color: var(--link);
}

.side-toc__share {
	margin-top: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.side-toc__share-head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 18px;
}

.side-toc__rule {
	flex: 1;
	height: 1px;
	background: var(--rule-soft);
}

.side-toc__top {
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	border-radius: var(--r-btn);
	background: var(--night);
	color: var(--on-night);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

.side-toc__top .signature-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
}

.side-toc__top:hover {
	background: var(--link);
	color: #FFFFFF;
}

@media (max-width: 1039px) {
	.side-toc {
		display: none;
	}
}

/* ---------- 重ねもの ---------- */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 30;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--night);
	color: var(--on-night);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	text-decoration: none;
	box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--blue);
}

.to-top span {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 10px;
	letter-spacing: 0.1em;
	line-height: 1;
}

.to-top:hover {
	background: var(--link);
	color: var(--on-night);
}

.mob-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 30;
	background: rgba(10, 10, 18, 0.97);
	color: var(--on-night);
	padding-bottom: env(safe-area-inset-bottom);
}

.mob-bar__progress {
	display: block;
	height: 2px;
	background: var(--night-bd-3);
}

.mob-bar__progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #3D7BFF, #F2A7C3);
}

.mob-bar__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.mob-bar__grid > * {
	all: unset;
	cursor: pointer;
	min-height: 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	font-size: 12px;
	font-weight: 700;
	color: var(--on-night);
	text-decoration: none;
}

.mob-bar__grid > *:nth-child(2) {
	border-left: 1px solid var(--night-bd-3);
	border-right: 1px solid var(--night-bd-3);
}

.mob-bar__grid > [aria-expanded="true"] {
	color: var(--sakura);
}

.sheet-backdrop {
	position: fixed;
	inset: 0;
	z-index: 29;
	background: rgba(10, 10, 18, 0.35);
}

.share-sheet {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(70px + env(safe-area-inset-bottom));
	z-index: 31;
	background: var(--paper);
	border-radius: 8px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 12px 40px rgba(10, 10, 18, 0.35);
}

/* シェアシートの開閉（閉じるときは JS が .is-closing を付けてから hidden にする） */
@media (prefers-reduced-motion: no-preference) {
	.share-sheet:not([hidden]) {
		animation: sheetIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	.sheet-backdrop:not([hidden]) {
		animation: sheetFade 0.26s ease both;
	}

	.share-sheet.is-closing {
		animation: sheetOut 0.18s ease-in both;
	}

	.sheet-backdrop.is-closing {
		animation: sheetFade 0.18s ease-in reverse both;
	}
}

@keyframes sheetIn {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@keyframes sheetOut {
	to {
		opacity: 0;
		transform: translateY(16px);
	}
}

@keyframes sheetFade {
	from {
		opacity: 0;
	}
}

.share-sheet::after {
	content: "";
	position: absolute;
	bottom: -7px;
	left: 50%;
	width: 14px;
	height: 14px;
	background: var(--paper);
	transform: translateX(-50%) rotate(45deg);
}

.share-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.share-sheet__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.share-sheet__close {
	all: unset;
	cursor: pointer;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--paper-tint);
	color: var(--ink);
}

.site-menu {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	justify-content: flex-end;
}

.site-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 18, 0.6);
}

.site-menu__panel {
	position: relative;
	width: min(340px, 86vw);
	height: 100%;
	overflow-y: auto;
	background: var(--night);
	color: var(--on-night);
	display: flex;
	flex-direction: column;
}

.site-menu__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px 8px 24px;
	flex: none;
}

.site-menu__head button {
	all: unset;
	cursor: pointer;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--on-night);
}

.site-menu__body {
	padding: 0 24px 32px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.site-menu__links {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--night-bd-3);
}

.site-menu__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	border-bottom: 1px solid var(--night-bd-3);
	font-size: 16px;
	font-weight: 700;
	color: var(--on-night);
	text-decoration: none;
}

.site-menu__links a span {
	color: var(--on-night-weak-2);
}

.site-menu__group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.site-menu__cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.site-menu__cats a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--night-bd-4);
	border-radius: var(--r-btn);
	font-size: 14px;
	color: var(--on-night);
	text-decoration: none;
}

.site-menu__toc {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.site-menu__toc a {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 10px 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--on-night-2);
	text-decoration: none;
}

.site-menu__toc a span {
	font-family: var(--font-label);
	font-weight: 600;
	font-size: 12px;
	color: var(--gold);
	flex: none;
}

.follow-grid--menu .btn-follow--x {
	background: var(--night);
	box-shadow: inset 0 0 0 1px var(--night-bd-4);
}

.follow-grid--menu .btn-follow:not(.btn-follow--x) {
	color: var(--on-night);
	border-color: var(--night-bd-4);
}

.zoom {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(10, 10, 18, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 32px;
	cursor: zoom-out;
}

.zoom img {
	max-width: min(1200px, 100%);
	max-height: calc(100vh - 120px);
	border-radius: var(--r-card);
	background: #FFFFFF;
}

.zoom span {
	font-size: 13px;
	color: var(--on-night-2);
}

/* =================================================================
   About（サイトについて）
   ================================================================= */
body.galab-about {
	background: #07070D;
	color: var(--on-night);
}

body.galab-about .site {
	font-family: var(--font-jp);
	color: var(--on-night);
	background: radial-gradient(circle at 85% 10%, rgba(242, 167, 195, 0.16), transparent 40%), radial-gradient(circle at 5% 90%, rgba(61, 123, 255, 0.18), transparent 45%), #07070D;
}

body.galab-about a {
	color: #8FB4FF;
}

body.galab-about a:hover {
	color: var(--on-night);
}

body.galab-about .site-header__nav a {
	color: var(--on-night);
}

body.galab-about .site-header__nav a[aria-current="page"] {
	color: var(--sakura);
}

.mono {
	font-family: var(--font-mono);
}

.about-bar {
	border-bottom: 1px solid var(--night-bd-2);
}

.about-bar__inner {
	max-width: var(--body-max);
	margin: 0 auto;
	padding: 28px 24px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.about-bar__title {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.about-bar__crumb,
.about-bar__lead {
	font-size: 13px;
	color: var(--on-night-weak);
}

.about-bar__lead {
	font-size: 14px;
}

.about-bar h1 {
	margin: 0;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.about-bar__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
}

.pill {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--night-bd-4);
	border-radius: 18px;
	background: rgba(16, 16, 28, 0.92);
}

.pill--live {
	border: 0;
	background: rgba(46, 157, 110, 0.16);
	color: #7FD9A8;
	font-weight: 700;
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2E9D6E;
	animation: gaPulse 1.6s ease-out infinite;
}

@keyframes gaPulse {
	0% { box-shadow: 0 0 0 0 rgba(46, 157, 110, 0.55); }
	100% { box-shadow: 0 0 0 10px rgba(46, 157, 110, 0); }
}

.about-layout {
	max-width: var(--body-max);
	width: 100%;
	margin: 0 auto;
	padding: 24px;
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.report-nav {
	position: sticky;
	top: 88px;
	flex: none;
	width: 220px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
}

.report-nav .eyebrow {
	padding: 0 12px 8px;
}

body.galab-about .report-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	padding: 0 12px;
	border-radius: 0 19px 19px 0;
	color: var(--on-night-2);
	font-weight: 500;
	text-decoration: none;
}

body.galab-about .report-nav a:hover {
	background: rgba(255, 255, 255, 0.05);
}

body.galab-about .report-nav a.is-active {
	color: var(--sakura);
	background: rgba(242, 167, 195, 0.14);
	font-weight: 700;
}

.report-nav a span {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--on-night-weak-2);
	width: 16px;
}

@media (max-width: 999px) {
	.report-nav {
		display: none;
	}
}

.about-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rcard {
	scroll-margin-top: 88px;
	position: relative;
	border: 2px solid var(--night-bd-4);
	border-radius: 10px;
	background: rgba(16, 16, 28, 0.92);
	box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 5px var(--night-bd-3);
	overflow: hidden;
}

.rcard__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--night-bd-2);
}

.rcard__head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.rcard__head > span {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--on-night-weak-2);
}

.rcard__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rcard__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.9;
	color: var(--on-night-2);
	text-wrap: pretty;
}

.rcard--hero {
	border-color: var(--sakura);
	background: radial-gradient(120% 90% at 100% 0%, rgba(242, 167, 195, 0.18), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(61, 123, 255, 0.16), transparent 60%), rgba(16, 16, 28, 0.94);
	box-shadow: inset 0 0 0 4px var(--night), inset 0 0 0 5px #3A2A38, 0 0 40px rgba(242, 167, 195, 0.12);
	padding: clamp(22px, 4vw, 36px);
}

.rcard__line {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--signature);
}

.rcard__hero {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rcard__hero h2 {
	margin: 0;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.35;
	font-weight: 900;
	letter-spacing: 0.01em;
}

.grad-text {
	display: block;
	margin-top: 4px;
	font-family: var(--font-label);
	font-size: clamp(14px, 1.6vw, 17px);
	font-weight: 600;
	letter-spacing: 0.08em;
	background: linear-gradient(90deg, #8FB4FF, #F2A7C3 60%, #F7D49E);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.rcard__hero p {
	margin: 0;
	font-size: 15px;
	line-height: 1.95;
	color: var(--on-night-2);
	text-wrap: pretty;
}

.profile {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding: 24px 20px;
}

.avatar--about {
	background: radial-gradient(circle at 70% 30%, rgba(242, 167, 195, 0.5), transparent 60%), var(--on-night);
	font-size: 32px;
	box-shadow: 0 0 0 4px var(--night), 0 0 0 6px var(--sakura);
}

.profile__body {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.profile__name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 22px;
	font-weight: 700;
}

.profile__kana {
	font-size: 14px;
	font-weight: 500;
	color: var(--on-night-weak);
}

.profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

body.galab-about .sns-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 30px;
	padding: 0 12px 0 10px;
	border-radius: 15px;
	border: 1px solid #3A3A58;
	background: rgba(255, 255, 255, 0.03);
	font-size: 13px;
	font-weight: 500;
	color: var(--on-night);
	text-decoration: none;
}

.sns-pill--x {
	font-family: var(--font-mono);
}

body.galab-about .sns-pill--x:hover {
	border-color: var(--sakura);
	background: rgba(242, 167, 195, 0.1);
	color: var(--sakura);
}

body.galab-about .sns-pill--li:hover {
	border-color: #8FB4FF;
	background: rgba(143, 180, 255, 0.1);
	color: #8FB4FF;
}

.sns-pill__arrow {
	font-size: 11px;
	color: var(--on-night-weak-2);
}

.dim-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.dim-table th {
	text-align: left;
	font-weight: 700;
	color: var(--on-night-weak);
	font-size: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--night-bd-3);
}

.dim-table td {
	padding: 10px 0;
	border-bottom: 1px solid var(--night-bd-2);
	line-height: 1.7;
}

.dim-table td:first-child {
	padding-right: 16px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: #8FB4FF;
	white-space: nowrap;
}

.day {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: center;
}

.day__ring {
	position: relative;
	flex: none;
	width: 260px;
	height: 260px;
	margin: 0 auto;
}

.day__ring svg {
	display: block;
	overflow: visible;
}

.day__arc {
	cursor: pointer;
	stroke-width: 18;
	opacity: 0.55;
	transition: stroke-dasharray 1.1s cubic-bezier(0.2, 0.7, 0.3, 1), stroke-width 0.25s, opacity 0.25s, filter 0.25s;
}

.day__arc.is-on {
	stroke-width: 24;
	opacity: 1;
	filter: drop-shadow(0 0 6px var(--c));
}

.day__hour {
	font-family: var(--font-mono);
	font-size: 8px;
	fill: var(--on-night-weak-2);
}

.day__center {
	position: absolute;
	inset: 58px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
	pointer-events: none;
	background: radial-gradient(circle, rgba(16, 16, 28, 0.95) 60%, transparent 72%);
}

.day__range {
	font-family: var(--font-label);
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--on-night-weak-2);
}

.day__label {
	font-size: 17px;
	font-weight: 700;
}

.day__dur {
	font-family: var(--font-label);
	font-size: 22px;
	font-weight: 700;
	color: var(--on-night);
}

.day__list {
	flex: 1 1 280px;
	min-width: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.day__row {
	all: unset;
	box-sizing: border-box;
	cursor: pointer;
	width: 100%;
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto;
	gap: 4px 12px;
	align-items: center;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid transparent;
	transition: background-color 0.2s, border-color 0.2s;
}

.day__row.is-on {
	border-color: color-mix(in srgb, var(--c) 53%, transparent);
	background: rgba(255, 255, 255, 0.05);
}

.day__sw {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--c);
	box-shadow: 0 0 10px var(--c);
}

.day__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.day__txt span:first-child {
	font-size: 15px;
	font-weight: 700;
	color: var(--on-night);
}

.day__txt span:last-child {
	font-size: 13px;
	line-height: 1.6;
	color: var(--on-night-weak);
}

.day__time {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	font-family: var(--font-mono);
	white-space: nowrap;
}

.day__time span:first-child {
	font-size: 12px;
	color: var(--on-night-weak);
}

.day__time span:last-child {
	font-size: 13px;
	font-weight: 700;
	color: var(--on-night);
}

.mini-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 12px;
}

.rcard__body.mini-grid {
	display: grid;
}

.mini-card {
	border: 1px solid var(--night-bd-3);
	border-radius: var(--r-card);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mini-card__k {
	font-family: var(--font-mono);
	font-size: 12px;
	color: #2E9D6E;
}

.mini-card__t {
	font-size: 15px;
	font-weight: 700;
}

.mini-card__d {
	font-size: 14px;
	line-height: 1.8;
	color: var(--on-night-weak);
}

.rcard__body--learn {
	padding: 24px 20px;
	gap: 24px;
}

.learn-quote {
	margin: 0;
	font-size: 17px;
	line-height: 1.9;
	font-weight: 700;
	text-wrap: pretty;
}

#learn-fill {
	background-image: linear-gradient(90deg, #8FB4FF, #F2A7C3), linear-gradient(#4A4A68, #4A4A68);
	background-repeat: no-repeat;
	background-size: 100% 100%, 100% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.funnel {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: 12px;
}

.funnel__step {
	position: relative;
	cursor: default;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border-radius: 10px;
	border: 1px solid var(--night-bd-3);
	transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
}

.funnel__step.is-on {
	border-color: color-mix(in srgb, var(--c) 53%, transparent);
	background: rgba(255, 255, 255, 0.04);
	transform: translateY(-2px);
}

.funnel__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.funnel__no {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-label);
	font-weight: 700;
	font-size: 15px;
	color: var(--night);
	background: var(--c);
}

.funnel__step.is-on .funnel__no {
	box-shadow: 0 0 16px color-mix(in srgb, var(--c) 67%, transparent);
}

.funnel__ev {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--on-night-weak-2);
}

.funnel__t {
	font-size: 17px;
	font-weight: 700;
}

.funnel__d {
	font-size: 14px;
	line-height: 1.8;
	color: var(--on-night-weak);
}

.funnel__bar {
	margin-top: auto;
	height: 4px;
	border-radius: 2px;
	background: var(--night-bd-2);
	overflow: hidden;
}

.funnel__bar span {
	display: block;
	height: 100%;
	width: var(--w);
	background: var(--c);
	transition: width 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.is-pre .funnel__bar span {
	width: 0;
}

.loop-note {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--on-night-weak);
}

.loop-note > span:first-child,
.loop-note > span:last-child {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--night-bd-4));
}

.loop-note > span:last-child {
	background: linear-gradient(90deg, var(--night-bd-4), transparent);
}

.loop-note__k {
	font-family: var(--font-label);
	letter-spacing: 0.12em;
	color: var(--gold);
}

.themes {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.themes__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.themes__list span {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 16px;
	border: 1px solid var(--night-bd-4);
	background: var(--night);
	font-size: 13px;
	color: var(--on-night-2);
}

.rcard__body.event-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 12px;
}

.event-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--night-bd-3);
	border-radius: 10px;
	overflow: hidden;
	background: var(--night);
}

.event-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--night-bd-2);
	background: rgba(255, 255, 255, 0.02);
	font-family: var(--font-mono);
	font-size: 12px;
}

.event-card__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2E9D6E;
	box-shadow: 0 0 8px #2E9D6E;
}

.event-card__k {
	color: var(--on-night-weak-2);
}

.event-card__v {
	color: var(--sakura);
}

.event-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.event-card__body span:first-child {
	font-size: 17px;
	font-weight: 700;
}

.event-card__body span:last-child {
	font-size: 14px;
	line-height: 1.85;
	color: var(--on-night-weak);
	text-wrap: pretty;
}

.skills {
	padding: 8px 20px 16px;
}

.skills ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.skills li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--night-bd-2);
}

.skills__t {
	flex: 0 0 190px;
	font-size: 15px;
	font-weight: 700;
}

.skills__bar {
	flex: 1 1 200px;
	min-width: 0;
	display: flex;
	align-items: center;
}

.skills__track {
	position: relative;
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background: var(--night-bd-2);
	box-shadow: inset 0 0 0 1px var(--night-bd-3);
}

.skills__fill {
	position: relative;
	display: block;
	height: 100%;
	width: var(--v);
	border-radius: 4px;
	background: linear-gradient(90deg, #3D7BFF, #B39BE8 55%, #F2A7C3);
	transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1) var(--d);
	overflow: hidden;
}

.is-pre .skills__fill {
	width: 0;
	transition-delay: 0s;
}

.skills__shine {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 35%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	animation: skShine 2.8s ease-in-out var(--d) infinite;
}

@keyframes skShine {
	0% { transform: translateX(-120%); }
	60%, 100% { transform: translateX(320%); }
}

.skills__d {
	flex: 1 1 260px;
	min-width: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--on-night-weak);
}

.certs {
	padding: 4px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.certs ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 10px;
}

.certs li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border: 1px solid var(--night-bd-3);
	border-radius: var(--r-card);
	background: linear-gradient(135deg, rgba(143, 180, 255, 0.06), rgba(242, 167, 195, 0.06));
}

.certs__check {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #3D7BFF, #F2A7C3);
}

.certs__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.certs__txt span:first-child {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}

.certs__txt span:last-child {
	font-size: 12px;
	color: var(--on-night-weak);
}

.channel {
	border: 1px solid var(--night-bd-3);
	border-top: 3px solid var(--c);
	border-radius: var(--r-card);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.channel__ch {
	font-size: 12px;
	font-weight: 700;
	color: var(--on-night-weak);
}

.channel__t {
	font-size: 16px;
	font-weight: 700;
}

.channel__d {
	font-size: 14px;
	line-height: 1.8;
	color: var(--on-night-weak);
}

body.galab-about .channel__d a {
	color: var(--sakura);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(242, 167, 195, 0.5);
}

body.galab-about .channel__d a:hover {
	color: #FFFFFF;
}

.talks {
	padding: 0 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.talks ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.talks li {
	border-bottom: 1px solid var(--night-bd-2);
}

body.galab-about .talks a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 20px;
	padding: 12px 8px;
	margin: 0 -8px;
	border-radius: var(--r-card);
	color: var(--on-night);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

body.galab-about .talks a:hover {
	background: rgba(143, 180, 255, 0.08);
	color: #8FB4FF;
}

.talks__when {
	flex: 0 0 190px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.talks__date {
	width: 84px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--on-night-weak);
}

.talks__host {
	min-width: 64px;
	text-align: center;
	padding: 2px 8px;
	border-radius: var(--r-btn);
	font-size: 12px;
	font-weight: 700;
	color: var(--hc);
	background: var(--hb);
	border: 1px solid var(--hc);
}

.talks__t {
	flex: 1 1 300px;
	font-size: 14px;
	line-height: 1.75;
}

.talks__go {
	flex: none;
	font-size: 12px;
	color: var(--on-night-weak-2);
}

.hobby {
	background: rgba(242, 167, 195, 0.08);
	border: 1px solid #3A2A38;
	border-radius: var(--r-card);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hobby__k {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--sakura);
}

.hobby__t {
	font-size: 18px;
	font-weight: 700;
}

.hobby__d {
	font-size: 14px;
	line-height: 1.8;
	color: var(--on-night-weak);
}

.timeline {
	list-style: none;
	margin: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.timeline li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 16px;
}

.timeline__rail {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.timeline__dot {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #FFFFFF, #F2A7C3 45%, #B39BE8);
	box-shadow: 0 0 0 4px rgba(242, 167, 195, 0.18), 0 0 14px rgba(242, 167, 195, 0.7);
}

.timeline__line {
	flex: 1;
	width: 3px;
	margin-top: 4px;
	border-radius: 2px;
	background: linear-gradient(180deg, #F2A7C3, #8FB4FF);
}

.timeline__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
	padding: 14px 18px 16px;
	border-radius: 10px;
	border: 1px solid var(--night-bd-4);
	background: linear-gradient(135deg, rgba(143, 180, 255, 0.08), rgba(242, 167, 195, 0.08));
	transition: border-color 0.2s, transform 0.2s;
}

.timeline__card:hover {
	border-color: var(--sakura);
	transform: translateX(4px);
}

.timeline__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 14px;
}

.timeline__y {
	font-family: var(--font-label);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	background: linear-gradient(90deg, #8FB4FF, #F2A7C3);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.timeline__t {
	font-size: 16px;
	font-weight: 700;
	color: #FFFFFF;
}

.timeline__d {
	font-size: 14px;
	line-height: 1.8;
	color: var(--on-night-2);
}

.rcard--contact {
	padding: 24px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.contact__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.contact__text h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.contact__text span {
	font-size: 14px;
	color: var(--on-night-weak);
}

.contact__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.galab-about .c-btn {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: var(--r-btn);
	background: var(--on-night);
	color: var(--night);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

body.galab-about .c-btn:hover {
	background: var(--sakura);
	color: var(--night);
}

body.galab-about .c-btn--line {
	background: none;
	border: 1px solid var(--night-bd-4);
	color: var(--on-night);
}

body.galab-about .c-btn--line:hover {
	background: none;
	border-color: #8FB4FF;
	color: #8FB4FF;
}

/* 出現アニメーション（about.js が .is-pre を外す） */
@keyframes secSweep {
	0% { transform: translateX(-110%) skewX(-18deg); opacity: 0; }
	15% { opacity: 1; }
	100% { transform: translateX(260%) skewX(-18deg); opacity: 0; }
}

@keyframes secRing {
	0% { box-shadow: 0 0 0 0 rgba(242, 167, 195, 0); }
	30% { box-shadow: 0 0 0 2px rgba(242, 167, 195, 0.55), 0 0 40px rgba(143, 180, 255, 0.35); }
	100% { box-shadow: 0 0 0 0 rgba(242, 167, 195, 0); }
}

.sec-sweep {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	pointer-events: none;
	z-index: 2;
	background: linear-gradient(90deg, transparent, rgba(143, 180, 255, 0.16), rgba(242, 167, 195, 0.28), transparent);
	animation: secSweep 1.3s cubic-bezier(0.3, 0.6, 0.3, 1) 0.25s both;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* =================================================================
   デザインのコンテナは content-box（max-width の外側に padding が付く）。
   左右位置を合わせるため、該当箇所は padding 分を足した max-width にする。
   ================================================================= */
.site-header__inner,
.hero__inner,
.article-hero__inner,
.reading-bar {
	max-width: calc(var(--head-max) + var(--gutter) * 2);
}

.site-header--article .site-header__inner,
.article-hero__inner,
.reading-bar {
	max-width: calc(var(--head-max) + 48px);
}

@media (max-width: 1039px) {
	.site-header--article .site-header__inner,
	.article-hero__inner,
	.reading-bar {
		max-width: calc(var(--main-max) + 48px);
	}
}

.site-header--about .site-header__inner,
.about-bar__inner,
.site-footer__inner {
	max-width: calc(var(--body-max) + 48px);
}

@media (max-width: 639px) {
	.site-footer--home .site-footer__inner {
		max-width: calc(var(--body-max) + 32px);
	}
}

.share-box .box-toggle {
	min-height: 0;
}

/* プロフィール画像：読み込めたら下地（RK の代替表示）を消し、縁ににじませない */
.avatar:has(img) {
	background: none;
	color: transparent;
}

/* カテゴリ表示：ファミリー色の下地を敷いたラベル */
.cat-label {
	padding: 2px 8px;
	border-radius: var(--r-badge);
	line-height: 1.6;
	color: var(--ink);
}

.post-meta--dark .cat-label {
	color: var(--ink);
}

/* サイトについて：ヘッダーの「記事一覧」、最新の記事 */
body.galab-about .site-header__nav a:not([aria-current]):hover {
	color: var(--sakura);
}

@media (max-width: 639px) {
	.site-header--about .site-header__nav a[aria-current="page"] {
		display: none;
	}
}

.latest {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.latest li {
	border-bottom: 1px solid var(--night-bd-2);
}

body.galab-about .latest a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 0;
	color: var(--on-night);
	text-decoration: none;
}

body.galab-about .latest a:hover {
	color: #8FB4FF;
}

.latest__title {
	font-size: 15px;
	line-height: 1.7;
	font-weight: 700;
}

body.galab-about .latest__all {
	align-self: flex-start;
}

/* SP の追従フッターにページ末尾が隠れないよう、フッターの下に余白を取る */
@media (max-width: 1039px) {
	body.galab-article .site-footer,
	body.galab-about .site-footer {
		padding-bottom: calc(58px + env(safe-area-inset-bottom));
	}
}

/* =================================================================
   固定ページ（プライバシーポリシーなど）
   ================================================================= */
.layout--page {
	padding: 40px 24px 96px;
	--art-gap: 24px;
}

.page-main {
	flex: 1 1 auto;
	min-width: 0;
	max-width: var(--main-max);
}

.layout--page .entry {
	font-size: 16px;
	line-height: 1.9;
}

.layout--page .entry > h2 {
	margin-top: calc(var(--art-gap) + 40px);
	font-size: clamp(19px, 2.2vw, 22px);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rule);
	scroll-margin-top: 96px;
}

.layout--page .entry > h2:first-child {
	margin-top: 0;
}

.layout--page .entry table {
	min-width: 560px;
	font-size: 14px;
	line-height: 1.7;
}

.layout--page .entry table th,
.layout--page .entry table td {
	padding: 10px 14px;
	white-space: normal;
}

.page-meta {
	font-size: 13px;
	color: var(--sub);
}
