/* ==========================================================================
   善 Zen theme — main stylesheet (prototype v0.5)
   Layout rhythm, button behaviour and motion timings follow measurements of
   the reference site (see docs/welmo-ui-notes.md). Code and colours are 善's own.
   Colours come from the 善 logo. Change the tokens below to restyle the site.
   ========================================================================== */

:root {
	--c-main: #00aeef;        /* logo cyan */
	--c-main-deep: #0078a8;   /* cyan for text / filled buttons (WCAG AA with white) */
	--c-main-dark: #005a80;   /* hover fill */
	--c-main-soft: #7fd6f7;
	--c-sub: #d9f3fd;         /* light cyan: markers, hover highlight (ref "sub color" role) */
	--c-line: #c8eefc;        /* big decorative scroll lines */
	--c-accent: #fff100;      /* logo yellow (small accents only) */
	--c-text: #595757;        /* logo gray */
	--c-heading: #3a3838;
	--c-muted: #807d7d;
	--c-border: #d6dde1;
	--c-bg: #ffffff;
	--c-tint: #eaf8fe;
	--c-tint-2: #f5fbfe;
	--c-footer: #3a3838;

	--f-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	--f-en: "Outfit", "Zen Kaku Gothic New", sans-serif;

	--w-container: 1280px;
	--w-narrow: 860px;
	--gutter: 40px;
	--section-y: 100px;
	--radius: 20px;
	--radius-s: 12px;
	--header-h: 66px;
	--header-top: 20px;

	/* motion (measured on ref) */
	--ease: cubic-bezier(.22, .61, .36, 1);
	--ease-expo: cubic-bezier(.19, 1, .22, 1);   /* mask wipe */
	--ease-draw: cubic-bezier(.5, 1, .89, 1);    /* line draw (power1.out) */
	--ease-inout: cubic-bezier(.45, 0, .55, 1);  /* fades (power1.inOut) */
	--t-btn: .2s;      /* read more fill */
	--t-nav: .3s;      /* nav pill */
	--t-marker: .35s;  /* title marker / footer link sweep */

	--glass-bg: rgba(255, 255, 255, .6);
	--glass-blur: blur(10px) saturate(1.8);
	--shadow-header: 0 3px 3px rgba(0, 40, 60, .12), 0 0 20px rgba(0, 40, 60, .08);
}

@media (max-width: 1023px) {
	:root { --header-h: 56px; --header-top: 10px; }
}
@media (max-width: 767px) {
	:root { --gutter: 20px; --section-y: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--header-top) + 24px); }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-ja);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: .04em;
	font-feature-settings: "palt";
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-main-deep); text-underline-offset: .2em; }
a:hover { color: var(--c-main-dark); }
h1, h2, h3, h4 { color: var(--c-heading); line-height: 1.5; font-weight: 700; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding: 0; }
address { font-style: normal; }
button { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--c-main); outline-offset: 3px; border-radius: 4px; }
.l-main:focus { outline: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000;
	background: var(--c-heading); color: #fff; padding: 12px 20px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: #fff; }
.u-center { text-align: center; }
.u-right { text-align: right; }
.u-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout ---------- */
.l-container {
	width: 100%;
	max-width: calc(var(--w-container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.l-container--narrow { max-width: calc(var(--w-narrow) + var(--gutter) * 2); }
.l-section { position: relative; padding-block: var(--section-y); }
.l-section > .l-container { position: relative; z-index: 1; }
.l-section--tint { background: var(--c-tint-2); }
.l-section--page { padding-top: 56px; }

/* glass panel (ref: blur(10px) saturate(1.8) + white 60%) */
.c-glass {
	background: var(--glass-bg);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

/* ---------- Header (floating glass bar, ref: top 20px / h66 / radius 20) ---------- */
.l-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	padding: var(--header-top) var(--header-top) 0;
	pointer-events: none;
}
.l-header__inner {
	position: relative; isolation: isolate;
	display: flex; align-items: center; gap: 24px;
	max-width: 1800px; margin-inline: auto;
	height: var(--header-h);
	padding: 0 12px 0 22px;
	border: 1px solid rgba(214, 221, 225, .9);
	border-radius: var(--radius);
	box-shadow: var(--shadow-header);
	pointer-events: auto;
	transition: box-shadow .4s var(--ease);
}
.l-header__glass {
	position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden;
	background: rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(12px) saturate(1.6);
	backdrop-filter: blur(12px) saturate(1.6);
	box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, .6), inset -1px -1px 1px 1px rgba(255, 255, 255, .5);
	transition: background .4s var(--ease);
}
.is-scrolled .l-header__glass { background: rgba(255, 255, 255, .78); }
.l-header__logo { margin: 0; line-height: 0; flex-shrink: 0; }
.l-header__logo a { display: inline-block; border-radius: 6px; }
.l-header__logo-img { width: auto; height: 40px; }

/* nav: English on top, small Japanese below; hover = pill fills (0.3s) */
.l-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.l-nav__list { display: flex; align-items: center; gap: 2px; margin: 0; list-style: none; }
.l-nav__list a, .l-nav__cta {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 48px; padding: .4em 1em; border-radius: 40px;
	text-decoration: none; text-align: center; line-height: 1;
	transition: background-color var(--t-nav) ease, color var(--t-nav) ease;
}
.l-nav__en { font-family: var(--f-en); font-weight: 500; font-size: 16px; letter-spacing: .02em; color: var(--c-main-deep); transition: color var(--t-nav) ease; }
.l-nav__ja { display: block; margin-top: .35em; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; color: var(--c-heading); transition: color var(--t-nav) ease; }
/* calm hover (v0.3.x): pale cyan pill, text keeps its colours (no solid-fill inversion) */
.l-nav__list a:hover, .l-nav__list a:focus-visible { background: var(--c-sub); }
.l-nav__list .current-menu-item > a, .l-nav__list .current_page_item > a, .l-nav__list .current-menu-ancestor > a { background: var(--c-tint); }
.l-nav__list .current-menu-item > a:hover, .l-nav__list .current_page_item > a:hover { background: var(--c-sub); }
.l-nav__cta { background: var(--c-main-deep); padding-inline: 1.3em; }
.l-nav__cta span { color: #fff; }
.l-nav__cta:hover, .l-nav__cta:focus-visible { background: var(--c-main-dark); }

.l-header__toggle { display: none; }

@media (max-width: 1100px) and (min-width: 1024px) {
	.l-nav__list a { padding-inline: .7em; }
}

@media (max-width: 1023px) {
	.l-header__inner { padding: 0 8px 0 16px; border-radius: 16px; }
	.l-header__logo-img { height: 34px; }
	.l-header__logo { position: relative; z-index: 3; }
	/* ref SP: 40px round button, three 20×2 bars, rotates 45° into a cross */
	.l-header__toggle {
		display: block; position: relative; z-index: 3;
		margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
		background: var(--c-main-deep); cursor: pointer;
		transition: transform .3s var(--ease), background-color .2s;
	}
	.l-header__toggle-bar {
		position: absolute; left: 12px; width: 20px; height: 2px; background: #fff; border-radius: 2px;
		transition: transform .25s var(--ease), opacity .2s;
	}
	.l-header__toggle-bar:nth-child(1) { top: 15px; }
	.l-header__toggle-bar:nth-child(2) { top: 21px; }
	.l-header__toggle-bar:nth-child(3) { top: 27px; }
	.l-header__toggle[aria-expanded="true"] { transform: rotate(45deg); }
	.l-header__toggle[aria-expanded="true"] .l-header__toggle-bar:nth-child(1) { transform: translateY(6px); }
	.l-header__toggle[aria-expanded="true"] .l-header__toggle-bar:nth-child(2) { opacity: 0; }
	.l-header__toggle[aria-expanded="true"] .l-header__toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(90deg); }

	.l-nav {
		position: fixed; inset: 0; z-index: 2;
		flex-direction: column; align-items: stretch; justify-content: center; gap: 24px;
		padding: 96px 28px 40px; margin: 0;
		background: rgba(255, 255, 255, .82);
		-webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
		visibility: hidden; opacity: 0; pointer-events: none;
		transition: opacity .2s ease, visibility 0s .2s;
		overflow-y: auto;
	}
	.is-nav-open .l-nav { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .2s ease; }
	.l-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
	.l-nav__list a, .l-nav__cta {
		flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 12px;
		padding: 12px 16px; border-radius: 14px;
		opacity: 0; transform: translateY(10px);
		transition: opacity .2s ease, transform .2s ease, background-color .3s, color .3s;
	}
	.l-nav__en { font-size: 26px; font-weight: 500; }
	.l-nav__ja { margin: 0; font-size: 12px; }
	.l-nav__cta { justify-content: center; padding: 16px; }
	.l-nav__cta .l-nav__en { font-size: 20px; }
	.is-nav-open .l-nav__list a, .is-nav-open .l-nav__cta { opacity: 1; transform: none; }
	/* ref: items appear one by one from 0.2s, every 0.1s */
	.is-nav-open .l-nav__list li:nth-child(1) a { transition-delay: .2s; }
	.is-nav-open .l-nav__list li:nth-child(2) a { transition-delay: .3s; }
	.is-nav-open .l-nav__list li:nth-child(3) a { transition-delay: .4s; }
	.is-nav-open .l-nav__list li:nth-child(4) a { transition-delay: .5s; }
	.is-nav-open .l-nav__list li:nth-child(5) a { transition-delay: .6s; }
	.is-nav-open .l-nav__list li:nth-child(6) a { transition-delay: .7s; }
	.is-nav-open .l-nav__list li:nth-child(n+7) a { transition-delay: .8s; }
	.is-nav-open .l-nav__cta { transition-delay: .8s; }
	.is-nav-open .l-nav__list a:hover, .is-nav-open .l-nav__cta:hover { transition-delay: 0s; }
	.is-nav-open { overflow: hidden; }
	.is-nav-open .l-header__inner { box-shadow: none; border-color: transparent; }
	.is-nav-open .l-header__glass { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Buttons & links ---------- */
.c-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.c-icon--chevron { width: 8px; height: 12px; }

/*
 * Base button = ref "read more":
 * text + small chevron, a 3px bar under it; on hover the bar grows up to cover the
 * whole label (0.2s), text turns white and the chevron nudges right.
 */
.c-btn {
	position: relative; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: 48px; padding: 10px 26px 10px 30px;
	color: var(--c-heading); font-weight: 700; font-size: 16px; line-height: 1.4; letter-spacing: .06em;
	text-decoration: none; background: none; border: 0; cursor: pointer;
	transition: color .3s ease;
}
.c-btn::after {
	content: ""; position: absolute; z-index: -1;
	left: -2px; right: -2px; bottom: -2px; height: 3px;
	background: var(--c-main); border-radius: 4px;
	transition: height .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.c-btn .c-icon { color: var(--c-main-deep); transition: transform .3s ease, color .3s ease; }
/* calm hover (v0.3.x): the bar rises as a pale tint, the text keeps its colour (no dark/white inversion) */
.c-btn:hover, .c-btn:focus-visible { color: var(--c-heading); }
.c-btn:hover::after, .c-btn:focus-visible::after { height: calc(100% + 4px); background: var(--c-sub); box-shadow: inset 0 -3px 0 var(--c-main); }
.c-btn:hover .c-icon, .c-btn:focus-visible .c-icon { color: var(--c-main-deep); transform: translateX(3px); }
.c-btn--back { flex-direction: row; }
.c-btn--back:hover .c-icon, .c-btn--back:focus-visible .c-icon { transform: translateX(-3px); }
.c-btn--back .c-icon { transform: scaleX(-1); }
.c-btn--back:hover .c-icon { transform: scaleX(-1) translateX(3px); }

/* on dark (statement band) */
.c-btn--light { color: #fff; }
.c-btn--light::after { background: #fff; }
.c-btn--light .c-icon { color: #fff; }
.c-btn--light:hover, .c-btn--light:focus-visible { color: #fff; }
.c-btn--light:hover::after, .c-btn--light:focus-visible::after { background: rgba(255, 255, 255, .14); box-shadow: inset 0 -3px 0 #fff; }
.c-btn--light:hover .c-icon, .c-btn--light:focus-visible .c-icon { color: #fff; }

/* filled pill: a darker fill sweeps in from the left */
.c-btn--primary {
	padding: 14px 30px 14px 34px; border-radius: 999px; overflow: hidden;
	background: var(--c-main-deep); color: #fff;
	box-shadow: 0 6px 18px rgba(0, 120, 168, .22);
	transition: color var(--t-btn) ease, box-shadow .3s var(--ease);
}
.c-btn--primary::after {
	left: 0; right: 0; top: 0; bottom: 0; height: auto; border-radius: 0;
	background: var(--c-main-dark);
	transform: scaleX(0); transform-origin: right center;
	transition: transform .35s var(--ease-expo);
}
.c-btn--primary .c-icon { color: #fff; }
.c-btn--primary:hover, .c-btn--primary:focus-visible { color: #fff; box-shadow: 0 10px 24px rgba(0, 90, 128, .28); }
.c-btn--primary:hover::after, .c-btn--primary:focus-visible::after { height: auto; background: var(--c-main-dark); box-shadow: none; transform: scaleX(1); transform-origin: left center; }
.c-btn--primary:hover .c-icon, .c-btn--primary:focus-visible .c-icon { color: #fff; }

/* legacy names used in page content */
.c-btn--outline { }
.c-btn--lg { min-height: 60px; font-size: 17px; }

.c-link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--c-main-deep); text-decoration: none; }
.c-link-arrow:hover .c-icon { transform: translateX(3px); }

.c-tag-tmp {
	display: inline-block; margin: 0 0 0 12px; padding: 0 8px;
	font-size: 11px; font-weight: 500; color: var(--c-muted); letter-spacing: .02em;
	border: 1px dashed var(--c-muted); border-radius: 4px; vertical-align: middle; line-height: 1.7;
}

/* ---------- Headings: huge English + small Japanese ---------- */
.c-heading { margin-bottom: 72px; }
.c-heading__en {
	margin: 0;
	font-family: var(--f-en); font-weight: 400;
	font-size: clamp(56px, 10.4vw, 160px); line-height: 1; letter-spacing: -.01em; padding-bottom: .12em;
	color: var(--c-heading);
}
.c-heading__en > span { position: relative; display: inline-block; vertical-align: top; } /* v0.6: no overflow clip — it cut the descenders (g, p, y) at line-height 1 */
.c-heading__ja { margin-top: 12px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.c-heading--center { text-align: center; }
.c-subheading { font-size: 22px; margin-bottom: 24px; }
.c-lead { max-width: 760px; margin: -32px 0 56px; font-size: 17px; line-height: 2; }
@media (max-width: 767px) {
	.c-heading { margin-bottom: 36px; }
	.c-heading__ja { margin-top: 8px; }
	.c-lead { margin: -12px 0 36px; font-size: 16px; }
}

/* ---------- Hero: v0.9.9「アイソメの街」 lives in assets/css/hero-town.css (front page only) ---------- */

/* ---------- Statement band (ref: full-width colour band, title left / text right with a rule) ---------- */
.p-statement {
	position: relative; overflow: hidden;
	background: var(--c-main-deep); color: #fff;
	padding-block: var(--section-y);
}
.p-statement__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: start; }
.p-statement__en { font-family: var(--f-en); font-size: 14px; letter-spacing: .3em; color: rgba(255, 255, 255, .85); margin-bottom: 16px; }
.p-statement__title { color: #fff; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.5; letter-spacing: .08em; }
.p-statement__text { border-left: 1px solid rgba(255, 255, 255, .8); padding-left: 3em; font-size: 17px; line-height: 2; }
.p-statement__more { margin-top: 32px; padding-left: 3em; }
.p-statement__ring { position: absolute; right: -6%; bottom: -38%; width: 520px; color: rgba(255, 255, 255, .14); z-index: 0; }
@media (max-width: 899px) {
	.p-statement__inner { grid-template-columns: 1fr; }
	.p-statement__text { padding-left: 1.4em; font-size: 16px; }
	.p-statement__more { padding-left: 1.4em; }
	.p-statement__ring { width: 300px; bottom: -20%; }
}

/* ---------- Decorative scroll lines (ref: thick round line drawn when section top hits 50%) ---------- */
.c-deco-line { position: absolute; left: 0; right: 0; top: -40px; height: min(640px, 90%); z-index: 0; pointer-events: none; overflow: hidden; }
.c-deco-line svg { width: 100%; height: 100%; }
.c-deco-line path { fill: none; stroke: var(--c-line); stroke-width: 120; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.c-deco-line.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.5s var(--ease-draw); }
html:not(.js) .c-deco-line path { stroke-dashoffset: 0; }
@media (max-width: 767px) { .c-deco-line path { stroke-width: 90; } .c-deco-line { height: 420px; } }

/* ---------- Top: news (vertical tabs + glass panel) ---------- */
.p-top-news__body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 100px; align-items: start; margin-bottom: 48px; }
.p-top-news__body:not(:has(.c-vtabs)) { grid-template-columns: 1fr; }
.p-top-news__panel { padding: 16px 40px; }
.p-top-news__tabpanel[hidden] { display: none; }
.p-top-news__tabpanel.is-fading { animation: zen-fade .3s ease both; }
@keyframes zen-fade { from { opacity: 0; } to { opacity: 1; } }
.p-top-news .c-news-list { border-top: 0; }
.p-top-news .c-news-list__item:last-child { border-bottom: 0; }
.c-vtabs { display: flex; flex-direction: column; gap: 6px; }
.c-vtabs__tab {
	display: block; width: 100%; text-align: left; cursor: pointer;
	min-height: 40px; padding: 6px 1.1em; border: 0; border-radius: 40px;
	background: #fff; color: var(--c-heading); font-size: 15px;
	transition: background-color 50ms ease-in-out, color 50ms ease-in-out;
}
.c-vtabs__tab:hover { background: #eef2f4; }
.c-vtabs__tab[aria-selected="true"] { background: var(--c-main-deep); color: #fff; }
@media (max-width: 899px) {
	.p-top-news__body { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
	.c-vtabs { flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.c-vtabs__tab { width: auto; border: 1px solid var(--c-border); }
	.p-top-news__panel { padding: 4px 20px; }
}

/* ---------- News list (thumb / date pill / category / title marker) ---------- */
.c-news-list { list-style: none; margin: 0; border-top: 1px solid var(--c-border); }
.c-news-list__item { border-bottom: 1px solid var(--c-border); }
.c-news-list__link { display: flex; align-items: center; gap: 30px; padding: 20px 0; color: var(--c-heading); text-decoration: none; }
.c-news-list__link:hover { color: var(--c-heading); }
.c-news-list__thumb { flex: 0 0 200px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--c-tint); }
.c-news-list__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.c-news-list__link:hover .c-news-list__thumb img { transform: scale(1.05); }
/* v0.9.1: wide banners (e.g. G-Labo / 大山崎 告知バナー) are shown whole instead of cropped */
.c-news-list__thumb img.is-banner, .p-single__thumb img.is-banner { object-fit: contain; background: var(--c-tint); }
.c-news-list__body { flex: 1; min-width: 0; }
.c-news-list__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.c-news-list__date {
	display: inline-block; padding: .3em 1em; border: 1px solid var(--c-heading); border-radius: 20px; background: #fff;
	font-family: var(--f-en); font-weight: 600; font-size: 12.8px; line-height: 1.2; letter-spacing: .04em; color: var(--c-heading);
}
.c-news-list__cat { font-size: 12.8px; font-weight: 700; color: var(--c-main-deep); }
.c-news-list__title { display: block; font-size: 17px; font-weight: 700; line-height: 1.7; }
.c-news-list__title > span {
	background: linear-gradient(var(--c-sub), var(--c-sub)) no-repeat right bottom / 0 100%;
	transition: background-size var(--t-marker);
	padding: .15em 0;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.c-news-list__link:hover .c-news-list__title > span, .c-news-list__link:focus-visible .c-news-list__title > span { background-size: 100% 100%; background-position-x: left; }
@media (max-width: 767px) {
	.c-news-list__link { gap: 16px; padding: 16px 0; align-items: flex-start; }
	.c-news-list__thumb { flex-basis: 96px; border-radius: 8px; }
	.c-news-list__title { font-size: 15px; }
}
.c-cat {
	display: inline-block; padding: 2px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 700; line-height: 1.8; white-space: nowrap;
	background: var(--c-tint); color: var(--c-main-deep);
}
.c-cat--report { background: #fffbd1; color: #6b6400; }
.c-empty { padding: 40px 0; color: var(--c-muted); text-align: center; }

/* ---------- Tabs (archives) ---------- */
.c-tabs { margin-bottom: 40px; }
.c-tabs ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; list-style: none; }
.c-tabs a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 4px 20px; border-radius: 40px;
	border: 1px solid var(--c-border); background: #fff; color: var(--c-heading); text-decoration: none; font-size: 15px;
	transition: background-color 50ms ease-in-out, color 50ms ease-in-out;
}
.c-tabs a:hover { background: #eef2f4; color: var(--c-heading); }
.c-tabs a[aria-current="page"] { background: var(--c-main-deep); border-color: var(--c-main-deep); color: #fff; }

/* ---------- Service cards ---------- */
.c-service-card {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 24px 60px;
	min-height: 400px; padding: 40px 60px;
	background: rgba(255, 255, 255, .72);
	-webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
	border: 2px solid var(--c-main); border-radius: var(--radius);
	transition: border-color .3s ease, box-shadow .4s var(--ease);
}
.c-service-card:hover { border-color: var(--c-main-deep); box-shadow: 0 18px 40px rgba(0, 80, 120, .1); }
.c-service-card__num { font-family: var(--f-en); font-size: 15px; font-weight: 500; letter-spacing: .2em; color: var(--c-main-deep); margin-bottom: 8px; }
.c-service-card__num::after { content: ""; display: inline-block; width: 40px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--c-main); }
.c-service-card__title { font-size: clamp(26px, 3vw, 40px); letter-spacing: .08em; line-height: 1.4; margin-bottom: 8px; }
.c-service-card__sub { font-size: 14px; color: var(--c-main-deep); font-weight: 700; margin-bottom: 12px; line-height: 1.6; }
.c-service-card__text { font-size: 17px; font-weight: 500; line-height: 1.9; margin-bottom: 28px; color: var(--c-heading); }
.c-service-card__more { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.c-service-card__media { border-radius: var(--radius-s); overflow: hidden; }
.c-service-card__media.has-image { overflow: visible; border-radius: 0; }
.c-service-card__media img, .c-service-card__media .c-illust { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.c-service-card:hover .c-service-card__media img, .c-service-card:hover .c-service-card__media .c-illust { transform: translateY(-6px); }
.c-illust { display: block; width: 100%; height: auto; }

/* top page: stacked cards (ref: Welmo), slow.
   Pure CSS sticky — every card pins below the header and the next one slides over it.
   Each card gets roughly 110–125vh of scroll (card height + --stack-gap) so it can be read
   before it is covered. main.js only sets --p (0→1) on the card underneath while the next
   card approaches: it scales down a little and a light veil dims it. No scroll-jacking.
   Mobile (<768px), short screens and reduced motion: a plain list with a fade-in. */
.c-service-stack { position: relative; display: grid; gap: 24px; margin-bottom: 56px; }
.c-service-stack__item { position: relative; }
.c-service-stack .c-service-card { background: #fff; }
@media (min-width: 768px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
	.c-service-stack {
		--stack-top: calc(var(--header-h) + var(--header-top) + 28px);
		--peek: 16px;
		--card-h: min(560px, calc(100vh - var(--stack-top) - var(--count, 4) * var(--peek) - 40px));
		--stack-gap: 58vh;
		display: block; margin-bottom: 72px;
	}
	.c-service-stack__item {
		position: sticky;
		top: calc(var(--stack-top) + var(--i, 0) * var(--peek));
		height: var(--card-h);
		transform-origin: 50% 0;
		transform: scale(calc(1 - var(--p, 0) * .05));
		will-change: transform;
	}
	.c-service-stack__item + .c-service-stack__item { margin-top: var(--stack-gap); }
	.c-service-stack .c-service-card {
		height: 100%; min-height: 0;
		grid-template-columns: minmax(0, 1fr) minmax(0, 44%); gap: 24px 56px;
		padding: clamp(32px, 4vw, 48px) clamp(32px, 4.4vw, 60px);
		box-shadow: 0 -6px 24px rgba(0, 60, 90, .06), 0 18px 40px rgba(0, 60, 90, .06);
		overflow: hidden;
	}
	/* light veil on the card underneath (opacity follows --p) */
	.c-service-stack .c-service-card::after {
		content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
		background: var(--c-tint-2); opacity: calc(var(--p, 0) * .55);
	}
	.c-service-stack .c-service-card__media { height: 100%; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-s); }
	.c-service-stack .c-service-card__media img,
	.c-service-stack .c-service-card__media .c-illust { width: 100%; height: auto; max-height: calc(var(--card-h) - 96px); object-fit: contain; }
	.c-service-stack .c-service-card__title { font-size: clamp(28px, 2.8vw, 40px); }
	.c-service-stack .c-service-card__text { font-size: 17px; }
	/* reveal: a calm fade only (no movement, the stack itself provides the motion) */
	.js .c-service-stack .c-service-card[data-reveal] { transform: none; transition: opacity .9s var(--ease-inout), border-color .3s ease; }
	.c-service-stack .c-service-card:hover .c-service-card__media img, .c-service-stack .c-service-card:hover .c-service-card__media .c-illust { transform: none; }
}
@media (min-width: 768px) and (max-width: 899px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
	.c-service-stack .c-service-card { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 20px 28px; padding: 28px; border-radius: var(--radius); }
	.c-service-stack .c-service-card__media { order: 0; max-width: none; }
}

/* service page: same cards, plain list */
.c-service-list { display: grid; gap: 40px; }
.c-service-list .c-service-card:nth-child(even) { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
.c-service-list .c-service-card:nth-child(even) .c-service-card__media { order: -1; }

@media (max-width: 899px) {
	.c-service-card,
	.c-service-list .c-service-card:nth-child(even) { grid-template-columns: 1fr; min-height: 0; padding: 30px 20px; border-radius: 15px; gap: 20px; }
	.c-service-card__media, .c-service-list .c-service-card:nth-child(even) .c-service-card__media { order: -1; max-width: 400px; }
	.c-service-card__text { font-size: 15px; margin-bottom: 20px; }
	.c-service-stack { margin-bottom: 40px; }
}

/* ---------- G-Labo ---------- */
.p-glabo-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 48px; }
.p-glabo-card__media { border-radius: var(--radius-s); overflow: hidden; }
.p-glabo-card__media img, .p-glabo-card__media .c-illust { display: block; width: 100%; height: auto; }
.p-glabo-card__catch { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--c-heading); line-height: 1.6; margin-bottom: 16px; word-break: auto-phrase; text-wrap: balance; }
.p-glabo-card__body .c-btn { margin-top: 28px; }

/* 累計参加者数 (count-up) + 主な活動 (stagger reveal) */
.p-glabo-stats { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.p-glabo-count {
	position: relative; overflow: hidden; padding: 40px 44px;
	border-radius: var(--radius); background: var(--c-tint); color: var(--c-text);
}
.p-glabo-count::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 20px solid rgba(0, 174, 239, .08); pointer-events: none; }
.p-glabo-count .c-admin-note { position: relative; z-index: 1; margin-bottom: 16px; }
.p-glabo-count__label { margin: 0 0 4px; font-weight: 700; color: var(--c-heading); font-size: 16px; letter-spacing: .1em; }
.p-glabo-count__num { margin: 0; line-height: 1; color: var(--c-main-deep); }
.p-glabo-count__figure { display: inline-flex; align-items: baseline; gap: .12em; }
.p-glabo-count__value { font-family: var(--f-en); font-weight: 500; font-size: clamp(72px, 9vw, 136px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.p-glabo-count__unit { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; }
.p-glabo-count__note { margin: 8px 0 0; font-size: 13px; color: var(--c-muted); }
.p-glabo-count__members { position: relative; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 15px; }
.p-glabo-count__members-label { display: block; font-size: 13px; color: var(--c-muted); margin-bottom: 4px; }
.p-glabo-count__members-list { display: block; font-weight: 700; color: var(--c-heading); line-height: 1.7; }
.p-glabo-acts { display: flex; flex-direction: column; justify-content: center; }
.p-glabo-acts__title { font-size: 18px; margin-bottom: 12px; }
.p-glabo-acts__list { margin: 0; list-style: none; display: grid; }
.p-glabo-acts__item { display: flex; align-items: baseline; gap: 20px; padding: 16px 4px; border-bottom: 1px solid var(--c-border); }
.p-glabo-acts__item:first-child { border-top: 1px solid var(--c-border); }
.p-glabo-acts__num { font-family: var(--f-en); font-size: 14px; color: var(--c-main-deep); letter-spacing: .08em; }
.p-glabo-acts__name { font-size: 18px; font-weight: 700; color: var(--c-heading); }
@media (max-width: 899px) {
	.p-glabo-stats { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
	.p-glabo-count { padding: 28px 24px; }
	.p-glabo-acts__item { padding: 14px 4px; }
	.p-glabo-acts__name { font-size: 16px; }
}
.c-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; list-style: none; }
.c-chips li { background: #fff; border: 1px solid var(--c-main-soft); color: var(--c-main-deep); border-radius: 999px; padding: 4px 16px; font-size: 14px; font-weight: 500; }
@media (max-width: 899px) { .p-glabo-card { grid-template-columns: 1fr; padding: 24px 20px 32px; gap: 24px; } }

/* 協業パートナー募集 (top page section + ゼンシン page related area) */
.p-partner { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: start; gap: 24px 48px; padding: 44px 48px; }
.p-partner__media { width: 160px; color: var(--c-main-soft); }
.p-partner__media img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); }
.p-partner__en { margin: 0 0 4px; font-family: var(--f-en); font-size: 14px; letter-spacing: .16em; color: var(--c-main-deep); }
.p-partner__title { font-size: 22px; margin-bottom: 12px; }
.p-partner__catch { margin: 0 0 12px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.6; color: var(--c-heading); }
.p-partner__text { font-size: 16px; line-height: 1.9; margin-bottom: 0; }
.p-partner__points-label { margin: 24px 0 8px; font-size: 14px; font-weight: 700; color: var(--c-text); }
.p-partner__points { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
.p-partner__points li { padding: 6px 18px; border: 1px solid var(--c-main-soft); border-radius: 999px; background: #fff; color: var(--c-main-deep); font-size: 15px; font-weight: 700; }
.p-partner__action { margin: 28px 0 0; }
.p-related .p-partner { margin-top: 32px; }
@media (max-width: 767px) {
	.p-partner { grid-template-columns: minmax(0, 1fr); padding: 28px 20px 32px; gap: 16px; }
	.p-partner__media { width: 88px; }
	.p-partner__points li { font-size: 14px; padding: 5px 14px; }
}

/* ---------- Lab cards ---------- */
.c-lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }
@media (max-width: 899px) { .c-lab-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 599px) { .c-lab-grid { grid-template-columns: 1fr; } }
.c-lab-card__link {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border-radius: var(--radius); overflow: hidden;
	border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none;
	transition: border-color .3s ease, box-shadow .4s var(--ease);
}
.c-lab-card__link:hover { border-color: var(--c-main); box-shadow: 0 14px 34px rgba(0, 80, 120, .1); color: var(--c-text); }
.c-lab-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-tint); }
.c-lab-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.c-lab-card__link:hover .c-lab-card__media img { transform: scale(1.05); }
.c-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-tint) 0%, var(--c-tint-2) 100%); color: var(--c-main-soft); }
.c-placeholder .c-ring { width: 34%; max-width: 96px; }
.c-lab-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.c-lab-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.c-lab-card__date { display: inline-block; padding: .3em 1em; border: 1px solid var(--c-heading); border-radius: 20px; font-family: var(--f-en); font-weight: 600; font-size: 12.8px; line-height: 1.2; color: var(--c-heading); }
.c-lab-card__title { font-size: 17px; line-height: 1.7; margin-bottom: 16px; }
.c-lab-card__title > span { background: linear-gradient(var(--c-sub), var(--c-sub)) no-repeat right bottom / 0 100%; transition: background-size var(--t-marker); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.c-lab-card__link:hover .c-lab-card__title > span, .c-lab-card__link:focus-visible .c-lab-card__title > span { background-size: 100% 100%; background-position-x: left; }
.c-lab-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-en); font-weight: 600; font-size: 14px; color: var(--c-main-deep); }
.c-lab-card__more .c-icon { transition: transform var(--t-btn) ease; }
.c-lab-card__link:hover .c-lab-card__more .c-icon { transform: translateX(3px); }

/*
 * ---------- Pre-footer CTA: two large link cards (お問い合わせ / 採用情報) ----------
 * Ref layout: two conversion cards side by side. Hover is deliberately calm (no white
 * inversion): a slight shade shift, a 3px lift, the link text underlines and the arrow nudges (0.3s ease).
 */
.p-cta { padding-block: var(--section-y); }
.p-cta__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.p-cta--single .p-cta__grid { grid-template-columns: minmax(0, 1fr); }
.p-cta__item { display: flex; }
.p-cta__card {
	--cta-bg: var(--c-main-deep); --cta-bg-hover: #006c98;
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; width: 100%; min-height: 360px;
	padding: 56px 48px 44px 44px; border-radius: var(--radius);
	background: var(--cta-bg); color: #fff; text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 90, 128, .12);
	transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.p-cta__card--recruit { --cta-bg: #00668f; --cta-bg-hover: #005a80; }
.p-cta__media { position: absolute; z-index: -1; right: 32px; top: 32px; width: 128px; color: rgba(255, 255, 255, .28); transition: transform .3s ease; }
.p-cta__media img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); }
.p-cta__body { display: flex; flex-direction: column; flex: 1; }
.p-cta__en { display: block; font-family: var(--f-en); font-size: clamp(44px, 5.6vw, 88px); line-height: 1; letter-spacing: -.01em; margin-bottom: 18px; color: #fff; }
.p-cta__title { display: block; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.5; margin-bottom: 10px; color: #fff; }
.p-cta__text { display: block; max-width: 32em; margin-bottom: 32px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.p-cta__more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 16px; font-weight: 700; color: #fff; }
.p-cta__more-text {
	padding-bottom: 2px;
	background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
	transition: background-size .3s ease;
}
.p-cta__arrow {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .6); color: #fff;
	transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}
.p-cta__card:hover, .p-cta__card:focus-visible { background: var(--cta-bg-hover); color: #fff; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 90, 128, .2); }
.p-cta__card:hover .p-cta__more-text, .p-cta__card:focus-visible .p-cta__more-text { background-size: 100% 1px; }
.p-cta__card:hover .p-cta__arrow, .p-cta__card:focus-visible .p-cta__arrow { transform: translateX(4px); background: rgba(255, 255, 255, .12); border-color: #fff; }
.p-cta__card:hover .p-cta__media, .p-cta__card:focus-visible .p-cta__media { transform: translateY(-4px); }
@media (max-width: 899px) {
	.p-cta__card { min-height: 300px; padding: 44px 32px 36px; }
}
@media (max-width: 767px) {
	.p-cta__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.p-cta__card { min-height: 0; padding: 36px 24px 28px; border-radius: 15px; }
	.p-cta__media { right: 20px; top: 20px; width: 72px; }
	.p-cta__text { margin-bottom: 24px; }
	.p-cta__arrow { width: 46px; height: 46px; }
}

/* ---------- Page header ---------- */
.p-page-header { position: relative; overflow: hidden; padding: calc(var(--header-h) + var(--header-top) + 56px) 0 72px; }
.p-page-header::before {
	content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%; border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 174, 239, .12), transparent 65%); pointer-events: none;
}
.p-page-header__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "crumb crumb" "text visual"; gap: 0 48px; align-items: end; }
.p-page-header .c-breadcrumb { grid-area: crumb; margin-bottom: 40px; }
.p-page-header__text { grid-area: text; }
.p-page-header__visual { grid-area: visual; justify-self: end; width: 100%; max-width: 420px; }
.p-page-header__visual img { display: block; width: 100%; height: auto; }
.p-page-header__ring { display: block; width: 62%; margin-left: auto; color: var(--c-line); }
.p-page-header__en { margin: 0 0 .12em; font-family: var(--f-en); font-weight: 400; font-size: clamp(56px, 10.4vw, 160px); line-height: 1; letter-spacing: -.01em; color: var(--c-heading); }
.p-page-header__en > span { position: relative; display: inline-block; vertical-align: top; } /* v0.6: no overflow clip (descenders of "Message", "Company", "Recruit"… were cut) */
.p-page-header__title { margin-top: 12px; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .1em; }
.p-page-header__lead { max-width: 720px; margin-top: 24px; font-size: 17px; line-height: 2; }
@media (max-width: 767px) {
	.p-page-header { padding: calc(var(--header-h) + var(--header-top) + 32px) 0 40px; }
	.p-page-header__inner { grid-template-columns: 1fr; grid-template-areas: "crumb" "visual" "text"; }
	.p-page-header .c-breadcrumb { margin-bottom: 24px; }
	.p-page-header__visual { justify-self: start; max-width: 220px; margin-bottom: 16px; }
	.p-page-header:not(.has-image) .p-page-header__visual { display: none; }
	.p-page-header__lead { font-size: 16px; }
}

/* v0.9.2: every crumb (links and the current item) is the same height and centred on one line */
.c-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.6; color: var(--c-muted); }
.c-breadcrumb li { display: inline-flex; align-items: center; min-height: 24px; font-size: inherit; line-height: inherit; }
.c-breadcrumb li + li::before { content: "›"; margin: 0 10px; color: var(--c-main-soft); }
.c-breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; color: var(--c-muted); text-decoration: none; }
.c-breadcrumb a:hover { color: var(--c-main-deep); text-decoration: underline; }
.c-breadcrumb [aria-current] { color: var(--c-text); overflow-wrap: anywhere; }

/* ---------- Single ---------- */
.p-single__header { position: relative; padding: calc(var(--header-h) + var(--header-top) + 56px) 0 100px; background: var(--c-tint-2); }
.p-single__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 32px 0 12px; font-family: var(--f-en); color: var(--c-muted); font-size: 15px; }
.p-single__title { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.6; }
.p-single__author { margin-top: 12px; font-size: 14px; color: var(--c-muted); }
.p-single__thumb { position: relative; z-index: 1; margin: -60px 0 32px; border-radius: var(--radius); overflow: hidden; }
.p-single__thumb img { display: block; width: 100%; max-height: 560px; object-fit: cover; object-position: 50% 45%; }
.p-single__thumb.is-placeholder { aspect-ratio: 16 / 9; }
.p-single__thumb.is-placeholder img { height: 100%; max-height: none; }
.p-single__panel { position: relative; z-index: 1; margin-top: -60px; padding: 48px 56px; background: rgba(255, 255, 255, .85); }
.p-single__thumb + .p-single__panel { margin-top: 0; }
.p-single > .l-container { padding-bottom: 96px; }
.p-single__back { margin-top: 56px; text-align: center; }
@media (max-width: 767px) { .p-single__panel { padding: 28px 20px; margin-top: -40px; } .p-single__header { padding-bottom: 72px; } }
/* 活動報告: 実施概要 / gallery / short video (v0.6) */
.c-report-summary { margin: 0 0 40px; }
.c-entry .c-report-summary__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; font-size: 18px; letter-spacing: .08em; }
.c-entry .c-report-summary__title::after, .c-entry .c-report-summary__title::before { display: none; }
.c-report-summary__mark { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c-main); }
.c-report-summary__mark::after { content: ""; position: absolute; right: -4px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.c-entry .c-report-summary__table { margin: 0; border-top: 2px solid var(--c-main); font-size: 15px; }
.c-entry .c-report-summary__table th { width: 9em; white-space: nowrap; }
.c-entry .c-report-summary__table td { overflow-wrap: anywhere; }
.c-entry .wp-block-gallery, .c-entry .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 32px 0; padding: 0; }
.c-entry .wp-block-gallery.has-nested-images figure.wp-block-image, .c-entry .gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; }
.c-entry .wp-block-gallery figure, .c-entry .gallery .gallery-icon { aspect-ratio: 4 / 3; border-radius: var(--radius-s); overflow: hidden; background: var(--c-tint); }
.c-entry .wp-block-gallery img, .c-entry .gallery img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border: 0 !important; }
.c-entry .wp-block-gallery figcaption, .c-entry .gallery-caption { font-size: 13px; color: var(--c-muted); }
.c-entry .gallery br { display: none; }
.c-report-video { margin: 32px auto 0; max-width: 300px; }
.c-report-video video { display: block; width: 100%; height: auto; border-radius: var(--radius-s); background: #000; }
.c-report-video figcaption { margin-top: 8px; font-size: 13px; color: var(--c-muted); text-align: center; }
@media (max-width: 767px) {
	.c-entry .c-report-summary__table th, .c-entry .c-report-summary__table td { display: block; width: 100%; }
	.c-entry .c-report-summary__table th { padding: 12px 4px 2px; background: none; font-size: 13px; color: var(--c-main-deep); }
	.c-entry .c-report-summary__table td { padding: 2px 4px 12px; }
	.c-entry .wp-block-gallery, .c-entry .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}


/* ---------- Entry content ---------- */
.c-entry { overflow-wrap: anywhere; }
.c-entry > * + * { margin-top: 1.4em; }
.c-entry h2 { font-size: 24px; margin-top: 2.4em; padding-bottom: 12px; border-bottom: 2px solid var(--c-tint); position: relative; }
.c-entry h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--c-main); }
.c-entry > h2:first-child { margin-top: 0; }
.c-entry h3 { font-size: 20px; margin-top: 2em; padding-left: 14px; border-left: 4px solid var(--c-main); }
.c-entry ul, .c-entry ol { padding-left: 1.4em; }
.c-entry li + li { margin-top: .4em; }
.c-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.c-entry th, .c-entry td { border-bottom: 1px solid var(--c-border); padding: 16px 12px; text-align: left; vertical-align: top; }
.c-entry th { width: 30%; color: var(--c-heading); background: var(--c-tint-2); font-weight: 700; }
.c-entry figure { margin-inline: 0; }
.c-entry .wp-block-table { overflow-x: auto; }
.c-entry .is-placeholder, .c-entry .zen-placeholder {
	border: 2px dashed var(--c-main-soft); border-radius: var(--radius-s); padding: 24px; background: var(--c-tint-2); color: var(--c-muted);
}
.c-entry .wp-block-table table { border-top: 1px solid var(--c-border); }
.c-entry .wp-block-table th, .c-entry .wp-block-table td { border: 0; border-bottom: 1px solid var(--c-border); }
@media (max-width: 599px) {
	.c-entry th, .c-entry td { display: block; width: 100%; }
	.c-entry th { border-bottom: 0; padding-bottom: 8px; }
	.c-entry td { padding-top: 8px; }
	.c-entry .wp-block-table th { border-bottom: 0; }
}

.p-guide { text-align: center; padding: 56px 32px; }
.p-guide__title { font-size: 24px; margin-bottom: 16px; }
.p-guide .c-btn { margin-top: 20px; }
@media (max-width: 767px) { .p-guide { padding: 40px 20px; } }

/* ---------- Pagination (50px circles; calm tint on hover) ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 50px; height: 50px; padding: 0 14px; border-radius: 50px;
	color: var(--c-heading); text-decoration: none; font-family: var(--f-en); font-weight: 500;
	transition: background-color .3s ease, color .3s ease;
}
.pagination .prev, .pagination .next { background: var(--c-sub); }
.pagination .page-numbers.current { background: var(--c-main-deep); color: #fff; }
/* calm hover (v0.3.x): pale tint + small lift instead of a solid fill and bounce */
.pagination a.page-numbers { transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.pagination a.page-numbers:hover, .pagination a.page-numbers:focus-visible { background: var(--c-tint); color: var(--c-main-deep); transform: translateY(-2px); }
.pagination .prev:hover, .pagination .next:hover { background: var(--c-line); }

/* ---------- Footer (dark; links get a colour sweep on hover) ---------- */
.l-footer { position: relative; z-index: 1; background: var(--c-footer); color: rgba(255, 255, 255, .86); font-size: 14px; padding-top: 72px; }
.l-footer__inner { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px 64px; padding-bottom: 48px; }
.l-footer__logo { display: inline-block; margin-bottom: 24px; padding: 14px 20px; border-radius: 14px; background: #fff; }
.l-footer__logo img { width: 200px; height: auto; display: block; }
.l-footer__address { line-height: 1.9; }
.l-footer__address strong { color: #fff; }
.l-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.l-footer__group { border-top: 1px solid rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .2); padding: 20px 0; align-self: start; }
.l-footer__group-title { font-family: var(--f-en); font-size: 13px; letter-spacing: .2em; color: rgba(255, 255, 255, .6); margin-bottom: 12px; }
.l-footer__list { list-style: none; margin: 0; display: grid; gap: 6px; }
.l-footer__nav > .l-footer__group:first-child { grid-column: span 2; }
.l-footer__nav > .l-footer__group:first-child .l-footer__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.l-footer__list a, .l-footer__related-name a, .l-footer__sub a {
	color: #fff; text-decoration: none; display: inline; padding: .3em .1em; line-height: 1.6;
	background: linear-gradient(var(--c-main-deep), var(--c-main-deep)) no-repeat right bottom / 0 100%;
	transition: background-size var(--t-marker);
}
.l-footer__list a:hover, .l-footer__list a:focus-visible,
.l-footer__related-name a:hover, .l-footer__related-name a:focus-visible,
.l-footer__sub a:hover, .l-footer__sub a:focus-visible { color: #fff; background-size: 100% 100%; background-position-x: left; }
.l-footer__related-name { font-weight: 700; color: #fff; margin-bottom: 8px; }
.l-footer__related-name a { display: inline-flex; align-items: center; gap: 6px; }
.l-footer__bottom { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
.l-footer__sub { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 24px; list-style: none; font-size: 12.8px; }
.l-footer__sub a { color: rgba(255, 255, 255, .55); transition: color .3s, background-size var(--t-marker); }
.l-footer__copy { margin: 0; text-align: center; font-family: var(--f-en); font-size: 12.8px; color: rgba(255, 255, 255, .7); }
@media (max-width: 899px) {
	.l-footer { padding-top: 48px; }
	.l-footer__inner { grid-template-columns: 1fr; gap: 32px; }
	.l-footer__nav { grid-template-columns: 1fr; }
	.l-footer__nav > .l-footer__group:first-child { grid-column: auto; }
	.l-footer__group + .l-footer__group { border-top: 0; }
	.l-footer__nav > .l-footer__group:first-child .l-footer__list { grid-template-columns: 1fr 1fr; }
	.l-footer__sub { justify-content: flex-start; }
}

/* ---------- Admin-only note (shown to editors only) ---------- */
.c-admin-note { margin: 0 0 8px; padding: 10px 16px; border: 1px dashed var(--c-muted); border-radius: 8px; background: #fffbe0; color: var(--c-heading); font-size: 13px; }

/* ---------- Related cards (ゼンシン page → G-Labo / AX研究所) ---------- */
.c-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.c-related__card {
	display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; align-items: center;
	padding: 28px; border: 1px solid var(--c-border); border-radius: var(--radius);
	background: rgba(255, 255, 255, .85); color: var(--c-text); text-decoration: none;
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.c-related__card:hover, .c-related__card:focus-visible { color: var(--c-text); border-color: var(--c-main-deep); box-shadow: 0 18px 40px rgba(0, 80, 120, .1); transform: translateY(-4px); }
.c-related__media { display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--c-tint); aspect-ratio: 4 / 3; }
.c-related__media img, .c-related__media .c-illust { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.c-related__card:hover .c-related__media img, .c-related__card:hover .c-related__media .c-illust { transform: scale(1.05); }
.c-related__body { display: block; }
.c-related__en { display: block; font-family: var(--f-en); font-size: 13px; letter-spacing: .2em; color: var(--c-main-deep); margin-bottom: 4px; }
.c-related__title { font-size: 22px; letter-spacing: .06em; margin-bottom: 8px; }
.c-related__text { display: block; font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.c-related__more { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--c-main-deep); }
.c-related__more .c-icon { transition: transform var(--t-btn) ease; }
.c-related__card:hover .c-related__more .c-icon { transform: translateX(3px); }
@media (max-width: 1023px) { .c-related { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .c-related__card { grid-template-columns: 1fr; padding: 20px; gap: 16px; } }

/* ---------- 代表メッセージ (v0.6: text left / portrait + cyan circle right) ---------- */
.p-page-header--simple .p-page-header__inner { grid-template-columns: 1fr; grid-template-areas: "crumb" "text"; }
.p-page-header--simple { padding-bottom: 24px; }
.p-message { overflow: hidden; overflow: clip; padding-top: 56px; }
.p-message__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); grid-template-areas: "body visual"; gap: 0 clamp(48px, 7vw, 104px); align-items: start; max-width: calc(1080px + var(--gutter) * 2); }
.p-message__body { grid-area: body; position: relative; z-index: 1; min-width: 0; }
.p-message__visual { grid-area: visual; position: sticky; top: calc(var(--header-h) + var(--header-top) + 48px); padding: 24px 0 40px; }
/* distance from the column's right edge to the viewport edge → the circle always bleeds a little at common widths */
.p-message__circle { position: absolute; z-index: 0; top: 50%; right: calc(-1 * min(max(var(--gutter), (100vw - 1080px) / 2) + 72px, 260px)); width: clamp(460px, 48vw, 600px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 36%, var(--c-sub) 0%, var(--c-line) 62%, #b5e7fb 100%); opacity: .85; transform: translateY(-50%); }
.p-message__dot { position: absolute; z-index: 2; left: -22px; bottom: 64px; width: 64px; aspect-ratio: 1; border-radius: 50%; background: var(--c-accent); }
.p-message__portrait { position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-tint); border-radius: 50% 50% 24px 24px / 40% 40% 24px 24px; box-shadow: 0 24px 48px -28px rgba(0, 90, 128, .45); }
/* landscape original (1200×900): the person stands slightly right of centre */
.p-message__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; transform: scale(1.22); transform-origin: 52% 66%; }
.p-message__placeholder { display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; height: 100%; color: var(--c-main-soft); background: linear-gradient(160deg, var(--c-tint) 0%, var(--c-tint-2) 100%); }
.p-message__placeholder .c-ring { width: 40%; }
.p-message__placeholder > span { font-family: var(--f-en); font-size: 13px; letter-spacing: .3em; color: var(--c-muted); }
.p-message__label { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--c-main-deep); }
.p-message__mark { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--c-main); flex: none; }
.p-message__mark::after { content: ""; position: absolute; right: -4px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
/* v0.9.5: the whole message in a pen-handwriting face (Klee One), upright — no rotation */
.p-message__body { --f-hand: "Klee One", "YuKyokasho", "Yu Kyokasho", "Hiragino Mincho ProN", serif; }
.p-message__label, .p-message__text, .p-message__sign-role { font-family: var(--f-hand); }
.p-message__text { font-size: 17px; line-height: 2.05; letter-spacing: .04em; color: #24323d; }
.p-message__text p { margin-bottom: 1.4em; }
.p-message__text h2[data-lead], .p-message__text h2 { margin: 0 0 1.1em; padding: 0; border: 0; font-family: var(--f-hand); font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.55; letter-spacing: .06em; color: var(--c-heading); }
.p-message__text h2::after, .p-message__text h2::before { display: none; }
.p-message__sign { margin-top: 40px; text-align: left; color: var(--c-heading); }
.p-message__sign-role { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .12em; color: var(--c-muted); }
/* handwritten signature: pen-style font, slight tilt, drawn in left → right like a pen stroke */
.p-message__sign-name { display: inline-block; margin: 0; padding: .05em .2em .05em 0; font-family: "Yuji Syuku", "YuKyokasho", "Hiragino Mincho ProN", serif; font-size: clamp(36px, 3.9vw, 46px); font-weight: 400; line-height: 1.4; letter-spacing: .03em; word-spacing: -.12em; color: #1c2742; -webkit-font-smoothing: antialiased; }
.p-message__sign-img { display: block; width: auto; max-width: min(240px, 70%); max-height: 96px; }
/* soft-edged left → right reveal (a feathered mask moves across, like ink being laid down) */
.js .p-message__sign-name, .js .p-message__sign-img { -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%); -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.js .p-message__sign.is-inview .p-message__sign-name, .js .p-message__sign.is-inview .p-message__sign-img { -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position 1.8s cubic-bezier(.45, .05, .35, 1) .55s, mask-position 1.8s cubic-bezier(.45, .05, .35, 1) .55s; }
.is-failsafe .p-message__sign-name, .is-failsafe .p-message__sign-img { -webkit-mask-image: none !important; mask-image: none !important; }
/* entrance: circle scales in → photo rises → text lines stagger (the wrapper itself does not fade) */
.js .p-message__inner[data-reveal] { opacity: 1; transform: none; transition: none; }
.js .p-message__circle { opacity: 0; transform: translateY(-50%) scale(.6); transition: opacity 1s var(--ease-inout) .15s, transform 1.3s var(--ease-expo) .15s; }
.js .p-message__dot { opacity: 0; transform: scale(0); transition: opacity .5s ease .9s, transform .8s cubic-bezier(.34, 1.56, .64, 1) .9s; }
.js .p-message__portrait { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-inout) .4s, transform 1.2s var(--ease) .4s; }
.js .p-message__label, .js .p-message__text > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-inout), transform .9s var(--ease); transition-delay: .6s; }
.js .p-message__text > :nth-child(1) { transition-delay: .7s; }
.js .p-message__text > :nth-child(2) { transition-delay: .82s; }
.js .p-message__text > :nth-child(3) { transition-delay: .94s; }
.js .p-message__text > :nth-child(4) { transition-delay: 1.06s; }
.js .p-message__text > :nth-child(5) { transition-delay: 1.18s; }
.js .p-message__text > :nth-child(n+6) { transition-delay: 1.3s; }
.p-message__inner.is-inview .p-message__circle { opacity: .85; transform: translateY(-50%) scale(1); }
.p-message__inner.is-inview .p-message__dot { opacity: 1; transform: none; }
.p-message__inner.is-inview .p-message__portrait, .p-message__inner.is-inview .p-message__label, .p-message__inner.is-inview .p-message__text > * { opacity: 1; transform: none; }
.is-failsafe .p-message__circle { opacity: .85 !important; transform: translateY(-50%) !important; }
.is-failsafe .p-message__dot, .is-failsafe .p-message__portrait, .is-failsafe .p-message__label, .is-failsafe .p-message__text > * { opacity: 1 !important; transform: none !important; }
/* v0.9.5 テキストフィル: main.js splits each block into lines of glyphs; they are inked left → right, line by line.
   The blocks themselves no longer fade/slide; the original text stays in the DOM for screen readers. */
.js .p-message__text.is-hand > * { opacity: 1; transform: none; transition: none; }
.p-hand__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.p-hand__ch { opacity: 0; transition: opacity .32s ease-out; transition-delay: var(--d, 0s); }
.is-written .p-hand__ch { opacity: 1; }
.is-failsafe .p-hand__ch { opacity: 1 !important; transition: none; }
@media (max-width: 899px) {
	.p-message { padding-top: 24px; }
	.p-message__inner { grid-template-columns: 1fr; grid-template-areas: "visual" "body"; gap: 40px; }
	.p-message__visual { position: relative; top: auto; width: min(62vw, 280px); margin-inline: auto; padding: 16px 0 24px; }
	.p-message__circle { width: min(108vw, 440px); right: auto; left: 18%; }
	.p-message__dot { left: -14px; bottom: 40px; width: 44px; }
	.p-message__text h2[data-lead], .p-message__text h2 { font-size: clamp(22px, 6.4vw, 28px); }
	.p-message__text { font-size: 16px; line-height: 2; letter-spacing: .03em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	/* hero (v0.8.3): base styles are the final state, so with animations off it is shown at once */
	.js [data-reveal],
	.js .p-page-header__title, .js .p-page-header__lead, .js .p-page-header__visual { opacity: 1 !important; transform: none !important; }
	.js [data-reveal="wipe"] > span, .js .p-page-header__en > span { color: inherit !important; }
	.js [data-reveal="wipe"] > span::after, .js .p-page-header__en > span::after { display: none; }
	.c-deco-line path { stroke-dashoffset: 0 !important; }
	.c-voice-slider__track { scroll-behavior: auto; }
	.c-member:hover .c-member__photo, .c-related__card:hover, .p-cta__card:hover, .p-cta__card:focus-visible, .pagination a.page-numbers:hover { transform: none; }
	.js .p-message__sign-name, .js .p-message__sign-img { -webkit-mask-image: none !important; mask-image: none !important; }
	.js .p-message__dot, .js .p-message__portrait, .js .p-message__label, .js .p-message__text > * { opacity: 1 !important; transform: none !important; }
	.p-hand__ch { opacity: 1 !important; }
	.js .p-message__circle { opacity: .85 !important; transform: translateY(-50%) !important; }
}

/* ==========================================================================
   v0.4 — 善のAX研究所 media (archive / article), forms, floating actions
   ========================================================================== */
:root {
	--c-attn: #e2663a;        /* gentle red-orange: first required field only */
	--c-attn-deep: #b8461f;   /* required badge / error text (AA on white) */
	--sticky-top: calc(var(--header-h) + var(--header-top) + 20px);
}

/* ---------- Category colours (chip / placeholder / tabs) ---------- */
.is-cat-generative-ai    { --cat: #00668f; --cat-bg: #e3f5fc; --cat-strong: #00aeef; }
.is-cat-google-workspace { --cat: #0b6e5b; --cat-bg: #e1f4ee; --cat-strong: #2fb393; }
.is-cat-gyomu-kaizen     { --cat: #6f5700; --cat-bg: #fff6c9; --cat-strong: #e9be00; }
.is-cat-kyouiku          { --cat: #5b3f9e; --cat-bg: #efe9fb; --cat-strong: #8a6ad6; } /* v0.9.29: 教育・学校 */
.is-cat-other            { --cat: var(--c-heading); --cat-bg: #eef2f4; --cat-strong: var(--c-muted); }

.c-lab-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: .2em .75em .2em .6em;
	border-radius: 4px; background: var(--cat-bg); color: var(--cat);
	font-size: 12.5px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; text-decoration: none;
}
.c-lab-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cat-strong); flex-shrink: 0; }
a.c-lab-chip { transition: filter .3s ease; }
a.c-lab-chip:hover { color: var(--cat); filter: brightness(.97); text-decoration: underline; }

/* eyecatch placeholder (no generated image yet) */
.c-lab-ph {
	position: relative; display: block; width: 100%; height: 100%; overflow: hidden; container-type: inline-size;
	background: radial-gradient(circle at 85% 15%, #fff 0, transparent 55%), linear-gradient(135deg, var(--cat-bg) 0%, #fff 100%);
	color: var(--cat);
}
.c-lab-ph__ring { position: absolute; right: -6%; top: -18%; width: 58%; color: var(--cat-strong); opacity: .35; }
.c-lab-ph__en { position: absolute; left: 7%; bottom: 24%; font-family: var(--f-en); font-size: clamp(14px, 8.5cqw, 64px); line-height: 1; letter-spacing: -.01em; color: var(--cat); opacity: .85; }
.c-lab-ph__ja { position: absolute; left: 7%; bottom: 11%; font-size: clamp(10px, 3.4cqw, 20px); font-weight: 700; color: var(--cat); }

/* ---------- Lab cards (v0.4 additions) ---------- */
.c-lab-card__meta { gap: 10px 12px; }
.c-lab-card__date { border-color: var(--c-border); color: var(--c-muted); font-weight: 500; }
.c-lab-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 599px) { .c-lab-grid--2 { grid-template-columns: minmax(0, 1fr); } }
.c-lab-card--feature .c-lab-card__body { padding: 24px 28px 28px; }
.c-lab-card--feature .c-lab-card__title { font-size: clamp(18px, 1.8vw, 22px); }
.c-lab-card__excerpt { margin: -4px 0 16px; font-size: 14px; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- /lab/ archive ---------- */
.p-lab { padding-bottom: var(--section-y); }
.p-lab-pickup { padding: 0 0 64px; }
.p-lab-pickup__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.p-lab-pickup__en { margin: 0; font-family: var(--f-en); font-size: clamp(34px, 4vw, 56px); line-height: 1; color: var(--c-heading); }
.p-lab-pickup__title { font-size: 17px; letter-spacing: .1em; }
.p-lab-pickup__title::before { content: ""; display: inline-block; width: 18px; height: 2px; margin: 0 10px 0 0; vertical-align: middle; background: var(--c-main); }
.p-lab-pickup__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.p-lab-rank { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-border); }
.p-lab-rank__link {
	display: grid; grid-template-columns: 40px 128px minmax(0, 1fr); gap: 16px; align-items: center;
	padding: 16px 4px; border-bottom: 1px solid var(--c-border); color: var(--c-heading); text-decoration: none;
	transition: background-color .3s ease;
}
.p-lab-rank__link:hover { background: var(--c-tint-2); color: var(--c-heading); }
.p-lab-rank__num { font-family: var(--f-en); font-size: 26px; line-height: 1; color: var(--c-main-deep); text-align: center; }
.p-lab-rank__thumb { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--c-tint); }
.p-lab-rank__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-lab-rank__thumb .c-lab-ph__en, .p-lab-rank__thumb .c-lab-ph__ja { display: none; }
.p-lab-rank__thumb .c-lab-ph__ring { right: 18%; top: 10%; width: 64%; }
.p-lab-rank__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.p-lab-rank__title { font-size: 15px; font-weight: 700; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-lab-rank__link:hover .p-lab-rank__title { text-decoration: underline; text-decoration-color: var(--c-main); text-underline-offset: .25em; }
@media (max-width: 899px) {
	.p-lab-pickup__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 599px) {
	.p-lab-rank__link { grid-template-columns: 28px 96px minmax(0, 1fr); gap: 12px; }
	.p-lab-rank__num { font-size: 20px; }
	.p-lab-rank__title { font-size: 14px; }
}

/* category tabs (links: no JS needed, aria-current marks the active one) */
.c-lab-tabs { margin: 0 0 40px; }
.c-lab-tabs ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 6px 0; list-style: none; }
.c-lab-tabs__link {
	position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 20px;
	border: 1px solid var(--c-border); border-radius: 999px; background: #fff;
	color: var(--c-heading); font-weight: 700; font-size: 15px; text-decoration: none;
	transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.c-lab-tabs__link[class*="is-cat-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat-strong); }
.c-lab-tabs__count { min-width: 1.8em; padding: 0 .5em; border-radius: 999px; background: var(--c-tint); color: var(--c-main-deep); font-family: var(--f-en); font-size: 12px; line-height: 1.8; text-align: center; }
.c-lab-tabs__link:hover { background: var(--c-tint-2); border-color: var(--c-main-soft); color: var(--c-heading); transform: translateY(-2px); }
.c-lab-tabs__link[aria-current="page"] { background: var(--c-main-deep); border-color: var(--c-main-deep); color: #fff; }
.c-lab-tabs__link[aria-current="page"]::before { background: #fff; }
.c-lab-tabs__link[aria-current="page"] .c-lab-tabs__count { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 767px) {
	.c-lab-tabs { margin: 0 calc(var(--gutter) * -1) 28px; }
	.c-lab-tabs ul { position: relative; flex-wrap: nowrap; overflow-x: auto; padding: 6px var(--gutter); scrollbar-width: none; }
	.c-lab-tabs ul::-webkit-scrollbar { display: none; }
	.c-lab-tabs li { flex-shrink: 0; }
	.c-lab-tabs__link { min-height: 42px; padding: 6px 16px; font-size: 14px; }
}

.p-lab__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.p-lab__list-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }
.p-lab__list-title { font-size: 20px; }
.p-lab__list-lead { flex-basis: 100%; order: 3; margin: 0; font-size: 14px; color: var(--c-muted); }
.p-lab__list-count { margin: 0 0 0 auto; font-family: var(--f-en); font-size: 14px; color: var(--c-muted); }
.p-lab__main .c-lab-grid { margin-bottom: 0; }
.p-lab__side { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1023px) {
	.p-lab__layout { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}

.c-side-box { padding: 22px 22px 24px; border: 1px solid var(--c-border); border-radius: var(--radius-s); background: #fff; }
.c-side-box__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--c-heading); letter-spacing: .08em; }
.c-side-box__title::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--c-main); }
.c-lab-search__field { display: flex; border: 1px solid #b9c4ca; border-radius: 999px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.c-lab-search__field:focus-within { border-color: var(--c-main-deep); box-shadow: 0 0 0 3px rgba(0, 174, 239, .22); }
.c-lab-search__field input { flex: 1; min-width: 0; padding: 10px 6px 10px 18px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--c-heading); }
.c-lab-search__field input:focus { outline: none; }
.c-lab-search__field button { display: grid; place-items: center; width: 46px; border: 0; background: var(--c-main-deep); color: #fff; cursor: pointer; transition: background-color .3s ease; }
.c-lab-search__field button:hover { background: var(--c-main-dark); }
.c-lab-search__field button:focus-visible { outline-offset: -4px; outline-color: #fff; }
.c-side-rank { margin: 0; padding: 0; list-style: none; }
.c-side-rank a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-border); color: var(--c-heading); font-size: 14px; line-height: 1.6; text-decoration: none; }
.c-side-rank li:last-child a { border-bottom: 0; }
.c-side-rank a:hover { color: var(--c-main-deep); text-decoration: underline; }
.c-side-rank__num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-tint); color: var(--c-main-deep); font-family: var(--f-en); font-size: 13px; }
.c-side-cats { margin: 0; padding: 0; list-style: none; }
.c-side-cats a { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px dashed var(--c-border); color: var(--c-heading); font-size: 15px; text-decoration: none; transition: color .3s ease; }
.c-side-cats li:last-child a { border-bottom: 0; }
.c-side-cats__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat-strong); flex-shrink: 0; }
.c-side-cats__count { margin-left: auto; font-family: var(--f-en); font-size: 13px; color: var(--c-muted); }
.c-side-cats a:hover, .c-side-cats a[aria-current="page"] { color: var(--c-main-deep); }
.c-side-cats a[aria-current="page"] { font-weight: 700; }
.c-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.c-tag-list a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #f1f5f7; color: var(--c-text); font-size: 13px; line-height: 1.6; text-decoration: none; transition: background-color .3s ease, color .3s ease; }
.c-tag-list a:hover { background: var(--c-sub); color: var(--c-heading); }
.c-tag-list a[aria-current="page"] { background: var(--c-main-deep); color: #fff; }
.c-side-consult { position: relative; overflow: hidden; border-color: var(--c-main-soft); background: linear-gradient(160deg, #fff 0%, var(--c-tint) 100%); }
.c-side-consult__en { margin: 0 0 4px; font-family: var(--f-en); font-size: 13px; color: var(--c-main-deep); letter-spacing: .08em; }
.c-side-consult__title { margin-bottom: 8px; font-size: 17px; font-weight: 700; color: var(--c-heading); }
.c-side-consult__text { font-size: 13.5px; margin-bottom: 16px; }
.c-side-consult .c-cut-btn { width: calc(100% - 12px); }

/* ---------- Diagonal-cut buttons (ref: article CTA), 善 colours ---------- */
.c-cut-btn {
	--cut-bg: var(--c-main-deep); --cut-bg-hover: var(--c-main-dark); --cut-fg: #fff; --cut-accent: var(--c-main);
	position: relative; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 56px; margin-right: 12px; padding: 12px 40px 12px 26px;
	color: var(--cut-fg); font-weight: 700; font-size: 15.5px; line-height: 1.4; letter-spacing: .06em; text-decoration: none;
}
.c-cut-btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cut-bg);
	clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
	transition: background-color .3s ease;
}
.c-cut-btn::after {
	content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(100% - 13px); width: 24px; background: var(--cut-accent);
	clip-path: polygon(18px 0, 24px 0, 6px 100%, 0 100%);
	transition: transform .3s ease;
}
.c-cut-btn .c-icon { color: currentColor; transition: transform .3s ease; }
.c-cut-btn:hover, .c-cut-btn:focus-visible { color: var(--cut-fg); }
.c-cut-btn:hover::before { background: var(--cut-bg-hover); }
.c-cut-btn:hover::after { transform: translateX(3px); }
.c-cut-btn:hover .c-icon { transform: translateX(3px); }
.c-cut-btn--light { --cut-bg: #dff3fb; --cut-bg-hover: #c9ecfa; --cut-fg: var(--c-main-dark); }

/* ---------- Article (single lab) ---------- */
.p-article__header { padding: calc(var(--header-h) + var(--header-top) + 40px) 0 44px; background: var(--c-tint-2); }
.p-article__head { max-width: 960px; margin-top: 28px; }
.p-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 14px; font-size: 14px; color: var(--c-muted); }
.p-article__meta time, .p-article__read { font-family: var(--f-en); }
.p-article__meta-label { margin-right: 6px; font-family: var(--f-ja); font-size: 12px; }
.p-article__title { font-size: clamp(24px, 3vw, 34px); line-height: 1.6; letter-spacing: .04em; }
.p-article__tags { margin-top: 18px; }
.p-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.p-article__main { min-width: 0; max-width: 820px; }
.p-article__eyecatch { margin: 0 0 40px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--c-tint); }
.p-article__eyecatch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-article__side { min-width: 0; }
/* v0.9.5 sidebar = sticky scrollspy 目次 + compact CTA; it stops at the end of the layout grid (never over the footer) */
.p-article__sticky { position: sticky; top: var(--sticky-top); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--sticky-top) - 24px); }
.p-article__form { max-width: 640px; margin: 56px auto 0; }
@media (min-width: 1024px) { .c-toc--inline { display: none; } }
@media (max-width: 1023px) {
	.p-article__layout { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-bottom: 72px; }
	.p-article__main { max-width: none; }
	.p-article__sticky { position: static; max-height: none; }
	.p-article__sticky > .c-spy { display: none; }
	.p-article__side { max-width: 640px; width: 100%; margin-inline: auto; }
}
@media (max-width: 767px) {
	.p-article__header { padding: calc(var(--header-h) + var(--header-top) + 24px) 0 28px; }
	.p-article__head { margin-top: 18px; }
	.p-article__layout { padding-top: 24px; }
	.p-article__eyecatch { margin-bottom: 28px; border-radius: 14px; }
}
#lab-consult { scroll-margin-top: var(--sticky-top); }

/* article body: h2 = left accent bar + light background, h3 = underline */
.c-entry--lab { font-size: 16.5px; line-height: 2; }
.c-entry--lab > * + * { margin-top: 1.5em; }
.c-entry--lab h2 {
	margin-top: 2.8em; padding: 14px 20px 14px 22px; border: 0; border-left: 6px solid var(--c-main);
	border-radius: 0 10px 10px 0; background: var(--c-tint); font-size: clamp(20px, 2.1vw, 24px); line-height: 1.6;
}
.c-entry--lab h2::after { content: none; }
.c-entry--lab h3 {
	position: relative; margin-top: 2.2em; padding: 0 0 10px; border: 0; border-bottom: 2px solid var(--c-border);
	font-size: clamp(18px, 1.8vw, 20px); line-height: 1.6;
}
.c-entry--lab h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--c-main); }
.c-entry--lab h4 { margin-top: 1.8em; font-size: 17px; color: var(--c-main-dark); }
.c-entry--lab h2, .c-entry--lab h3, .c-entry--lab h4 { scroll-margin-top: var(--sticky-top); }
.c-entry--lab strong { background: linear-gradient(transparent 64%, #fff59d 64%); color: var(--c-heading); }
.c-entry--lab blockquote { margin-inline: 0; padding: 16px 22px; border-left: 4px solid var(--c-main-soft); background: var(--c-tint-2); border-radius: 0 8px 8px 0; }
.c-entry--lab a:not([class]) { color: var(--c-main-deep); }
@media (max-width: 767px) { .c-entry--lab { font-size: 16px; line-height: 1.95; } .c-entry--lab h2 { padding: 12px 14px 12px 16px; } }

/* 目次 */
.c-toc { margin: 2.4em 0; padding: 24px 28px 20px; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-tint-2); line-height: 1.7; }
.c-entry--lab .c-toc { margin-top: 2.4em; }
.c-toc__title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font-size: 17px; font-weight: 700; color: var(--c-heading); }
.c-toc__en { font-family: var(--f-en); font-weight: 400; font-size: 13px; letter-spacing: .1em; color: var(--c-main-deep); order: 2; }
.c-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.c-entry .c-toc__list { padding-left: 0; }
.c-toc__item { margin: 0; }
.c-entry .c-toc__item + .c-toc__item { margin-top: 0; }
.c-toc__item a { display: block; padding: 7px 0; color: var(--c-heading); text-decoration: none; font-size: 15px; }
.c-toc__item a:hover { color: var(--c-main-deep); text-decoration: underline; }
.c-toc__item--h2 { counter-increment: toc; border-top: 1px dashed var(--c-border); }
.c-toc__item--h2:first-child { border-top: 0; }
.c-toc__item--h2 > a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); font-weight: 700; }
.c-toc__item--h2 > a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-en); font-weight: 500; color: var(--c-main-deep); }
.c-toc__item--h3 > a { position: relative; padding: 4px 0 4px 3.4em; font-size: 14px; color: var(--c-text); }
.c-toc__item--h3 > a::before { content: ""; position: absolute; left: 2.3em; top: 1.05em; width: 8px; height: 1px; background: var(--c-main-soft); }
.c-toc.is-collapsed .is-extra { display: none; }
.c-toc.is-collapsed .c-toc__list { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.c-toc__more {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 0; min-height: 40px; padding: 6px 22px;
	border: 1px solid var(--c-main-soft); border-radius: 999px; background: #fff; color: var(--c-main-deep);
	font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .3s ease;
}
.c-toc__more:hover { background: var(--c-tint); }
.c-toc__more-icon { width: 12px; height: 8px; transition: transform .3s ease; }
.c-toc__more[aria-expanded="true"] .c-toc__more-icon { transform: rotate(180deg); }
.c-toc__more[hidden] { display: none; }
@media (max-width: 767px) { .c-toc { padding: 20px 18px 16px; } }

/* v0.9.5 scrollspy 目次 (desktop sidebar + mobile drawer) */
.c-spy { display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto; padding: 20px 0 12px; border: 1px solid var(--c-border); border-radius: 14px; background: #fff; line-height: 1.6; }
.c-spy__title { display: flex; align-items: baseline; gap: 10px; margin: 0 20px 10px; font-size: 15px; font-weight: 700; color: var(--c-heading); }
.c-spy__en { order: 2; font-family: var(--f-en); font-weight: 400; font-size: 12px; letter-spacing: .1em; color: var(--c-main-deep); }
.c-spy__progress, .c-toc-drawer__progress { height: 3px; margin: 0 20px 8px; border-radius: 3px; background: var(--c-tint); overflow: hidden; }
.c-spy__bar { display: block; height: 100%; background: var(--c-main); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.c-spy__scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 8px; }
.c-spy__list, .c-spy__sub { margin: 0; padding: 0; list-style: none; }
.c-spy__list { counter-reset: spy; }
.c-spy__item--h2 { counter-increment: spy; }
.c-spy__link {
	position: relative; display: grid; grid-template-columns: 2em minmax(0, 1fr); padding: 7px 10px 7px 12px; border-radius: 8px;
	color: var(--c-text); font-size: 13.5px; text-decoration: none; transition: color .2s ease, background-color .2s ease;
}
.c-spy__item--h2 > .c-spy__link::before { content: counter(spy, decimal-leading-zero); font-family: var(--f-en); font-size: 12px; line-height: 1.95; color: var(--c-muted); }
.c-spy__item--h3 > .c-spy__link { display: block; padding: 5px 10px 5px calc(12px + 2em); font-size: 12.5px; }
.c-spy__link::after { content: ""; position: absolute; left: 2px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--c-main); opacity: 0; transition: opacity .2s ease; }
.c-spy__link:hover { color: var(--c-main-deep); background: var(--c-tint-2); }
.c-spy__link.is-active { color: var(--c-main-deep); font-weight: 700; background: var(--c-tint); }
.c-spy__link.is-active::after { opacity: 1; }
.c-spy__item--h2 > .c-spy__link.is-active::before, .c-spy__item.is-open > .c-spy__link::before { color: var(--c-main-deep); }
.js .c-spy:not(.c-spy--drawer) .c-spy__sub { display: none; }
.js .c-spy:not(.c-spy--drawer) .c-spy__item.is-open > .c-spy__sub { display: block; }

/* compact CTA under the sticky 目次 */
.c-side-cta { flex: none; padding: 18px 20px 16px; border-radius: 14px; background: var(--c-tint-2); border: 1px solid var(--c-border); text-align: center; }
.c-side-cta__logo { margin: 0 0 8px; }
.c-side-cta__logo img { display: block; width: 132px; height: auto; margin-inline: auto; }
.c-side-cta__text { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--c-heading); }
.c-side-cta__btn {
	display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 16px; border-radius: 999px;
	background: var(--c-main-deep); color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .06em; text-decoration: none;
	box-shadow: 0 8px 20px rgba(0, 70, 100, .2); transition: background-color .3s ease, transform .3s ease;
}
.c-side-cta__btn:hover, .c-side-cta__btn:focus-visible { background: var(--c-main-dark); color: #fff; transform: translateY(-1px); }
.c-side-cta__sub { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--c-main-deep); text-decoration: none; }
.c-side-cta__sub:hover { text-decoration: underline; }
.c-side-cta__sub .c-icon { width: 7px; height: 11px; }
/* short laptop screens: hide the 2nd text line so the 目次 keeps more room */
@media (min-width: 1024px) and (max-height: 760px) { .c-side-cta__more { display: none; } .c-side-cta { padding: 14px 16px; } .c-side-cta__logo { display: none; } }

/* tablet / mobile: floating 「目次」 button + bottom drawer */
.c-toc-fab { display: none; }
@media (max-width: 1023px) {
	.js .c-toc-fab:not([hidden]) {
		position: fixed; left: 20px; bottom: 20px; z-index: 91; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px;
		border: 1px solid var(--c-main-soft); border-radius: 999px; background: rgba(255, 255, 255, .96); color: var(--c-main-deep);
		font-size: 14px; font-weight: 700; letter-spacing: .06em; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 40, 60, .14);
		opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
	}
	.js .c-toc-fab.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.c-toc-fab .c-icon { width: 18px; height: 18px; }
}
@media (max-width: 767px) { .js .c-toc-fab:not([hidden]) { left: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); min-height: 40px; padding: 6px 14px; font-size: 13px; } }
.c-toc-drawer { position: fixed; inset: 0; z-index: 1100; }
.c-toc-drawer[hidden] { display: none; }
.c-toc-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 30, 45, .45); opacity: 0; transition: opacity .3s ease; }
.c-toc-drawer__panel {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: min(78vh, 640px);
	padding-bottom: env(safe-area-inset-bottom, 0px); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(0, 40, 60, .18);
	transform: translateY(100%); transition: transform .35s var(--ease);
}
.c-toc-drawer.is-open .c-toc-drawer__backdrop { opacity: 1; }
.c-toc-drawer.is-open .c-toc-drawer__panel { transform: none; }
.c-toc-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px 20px; }
.c-toc-drawer__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--c-heading); }
.c-toc-drawer__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-tint-2); color: var(--c-heading); font-size: 24px; line-height: 1; cursor: pointer; }
.c-toc-drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 16px; border: 0; border-radius: 0; }
.c-toc-drawer__body .c-spy__link { font-size: 14.5px; padding-block: 9px; }
.c-toc-drawer__body .c-spy__item--h3 > .c-spy__link { font-size: 13.5px; padding-block: 7px; }
html.is-drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .c-toc-drawer__panel, .c-toc-drawer__backdrop, .js .c-toc-fab:not([hidden]) { transition: none; } }

/* [zen_figure] */
.c-figure { margin: 2.2em 0; }
.c-entry .c-figure { margin-inline: 0; }
.c-figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--c-border); }
.c-figure__ph {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	aspect-ratio: 16 / 10; padding: 24px; border: 2px dashed var(--c-main-soft); border-radius: 12px;
	background: linear-gradient(135deg, var(--c-tint) 0%, var(--c-tint-2) 100%); text-align: center;
}
.c-figure__ring { width: 56px; color: var(--c-main-soft); }
.c-figure__ph-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--c-main-deep); }
.c-figure__ph-alt { max-width: 34em; font-size: 13px; line-height: 1.7; color: var(--c-muted); }
.c-figure__caption { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--c-muted); text-align: center; }
@media (max-width: 599px) { .c-figure__ph-alt { display: none; } }

/* [zen_cta] */
.c-lab-cta {
	position: relative; overflow: hidden; margin: 2.8em 0; padding: 36px 40px 34px;
	border: 1px solid var(--c-main-soft); border-radius: 16px;
	background: linear-gradient(135deg, #fff 0%, var(--c-tint) 100%);
}
.c-lab-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c-main-deep); }
.c-lab-cta__ring { position: absolute; right: -40px; top: -50px; width: 200px; color: var(--c-line); pointer-events: none; }
.c-entry .c-lab-cta > * + * { margin-top: 0; }
.c-lab-cta__en { position: relative; margin: 0 0 6px; font-family: var(--f-en); font-size: 14px; letter-spacing: .14em; color: var(--c-main-deep); }
.c-lab-cta__title { position: relative; margin: 0 0 10px; font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.6; color: var(--c-heading); }
.c-lab-cta__text { position: relative; margin: 0 0 22px; font-size: 15px; line-height: 1.9; }
.c-lab-cta__btns { position: relative; display: flex; flex-wrap: wrap; gap: 14px 10px; margin: 0; }
.c-entry .c-lab-cta__btns a { text-decoration: none; }
@media (max-width: 599px) {
	.c-lab-cta { padding: 28px 20px 26px 24px; }
	.c-lab-cta__btns .c-cut-btn { flex: 1 1 100%; }
}

/* share / author / prev-next */
.c-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.c-share__label { margin: 0; font-size: 14px; font-weight: 700; color: var(--c-heading); }
.c-share__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.c-share__btn {
	display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--c-border); border-radius: 999px;
	background: #fff; color: var(--c-heading); font-family: var(--f-en); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: background-color .3s ease, border-color .3s ease;
}
.c-share__btn--copy { font-family: var(--f-ja); }
.c-share__btn:hover { background: var(--c-tint); border-color: var(--c-main-soft); color: var(--c-heading); }
.c-author { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; margin-top: 40px; padding: 28px; border: 1px solid var(--c-border); border-radius: 16px; background: #fff; }
.c-author__icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--c-tint); }
.c-author__icon img { width: 50px; height: auto; }
.c-author__label { margin: 0 0 2px; font-size: 12px; color: var(--c-muted); letter-spacing: .08em; }
.c-author__name { font-size: 18px; margin-bottom: 8px; }
.c-author__text { font-size: 14.5px; line-height: 1.9; margin-bottom: 8px; }
.c-author__links { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; }
@media (max-width: 599px) { .c-author { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; } .c-author__icon { width: 64px; height: 64px; } .c-author__icon img { width: 36px; } }
.c-post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.c-post-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border: 1px solid var(--c-border); border-radius: 12px; background: #fff; color: var(--c-heading); text-decoration: none; transition: border-color .3s ease, background-color .3s ease; }
.c-post-nav__link--next { grid-column: 2; text-align: right; }
.c-post-nav__link:hover { border-color: var(--c-main-soft); background: var(--c-tint-2); color: var(--c-heading); }
.c-post-nav__label { font-size: 12.5px; color: var(--c-main-deep); font-weight: 700; }
.c-post-nav__link--prev .c-post-nav__label::before { content: "← "; }
.c-post-nav__link--next .c-post-nav__label::after { content: " →"; }
.c-post-nav__title { font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599px) { .c-post-nav { grid-template-columns: minmax(0, 1fr); } .c-post-nav__link--next { grid-column: auto; } }
.p-article-related__title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; }
.p-article-related__en { font-family: var(--f-en); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; color: var(--c-heading); }

/* ---------- Forms (shared: article sidebar + /contact/) ---------- */
.c-form-wrap { color: var(--c-text); }
.c-form-wrap__title { margin: 0 0 8px; font-size: 22px; color: var(--c-heading); }
.c-form-wrap__lead { margin: 0 0 18px; font-size: 14px; line-height: 1.8; }
.c-form-wrap__admin { margin-bottom: 16px; }
.c-form-wrap--sidebar {
	padding: 0 22px 22px; border: 1px solid var(--c-border); border-radius: 16px; background: #fff;
	box-shadow: 0 10px 30px rgba(0, 60, 90, .08); overflow: hidden;
}
.c-form-wrap--sidebar .c-form-wrap__title {
	margin: 0 -22px 16px; padding: 14px 20px; background: var(--c-main-deep); color: #fff;
	font-size: 17px; text-align: center; letter-spacing: .06em;
}
.c-form-wrap--sidebar .c-form-wrap__lead { font-size: 13px; margin-bottom: 14px; }
.c-form { margin: 0; }
.c-form__row { margin: 0 0 20px; }
.c-form-wrap--sidebar .c-form__row { margin-bottom: 13px; }
.c-form__fieldset { padding: 0; border: 0; min-width: 0; }
.c-form__label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 0; font-size: 14.5px; font-weight: 700; color: var(--c-heading); }
.c-form-wrap--sidebar .c-form__label { font-size: 13.5px; margin-bottom: 4px; }
.c-form__req, .c-form__opt { display: inline-block; padding: 0 .55em; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.7; letter-spacing: .04em; }
.c-form__req { background: var(--c-attn-deep); color: #fff; }
.c-form__opt { background: #eef2f4; color: var(--c-muted); }
.c-form__input {
	display: block; width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid #b4c0c6; border-radius: 8px; background: #fff;
	font: inherit; font-size: 16px; line-height: 1.6; color: var(--c-heading); letter-spacing: .02em;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.c-form-wrap--sidebar .c-form__input { min-height: 44px; padding: 8px 12px; }
.c-form__input::placeholder { color: #a3adb2; }
.c-form__input:hover { border-color: #8fa0a8; }
.c-form__input:focus { outline: none; border-color: var(--c-main-deep); box-shadow: 0 0 0 3px rgba(0, 174, 239, .25); }
.c-form__input:focus-visible { outline: none; }
.c-form__textarea { min-height: 120px; resize: vertical; }
.c-form__select-wrap { position: relative; display: block; max-width: 360px; }
.c-form__select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--c-main-deep); border-bottom: 2px solid var(--c-main-deep); transform: rotate(45deg); pointer-events: none; }
.c-form__select { padding-right: 44px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.c-form-wrap--sidebar .c-form__textarea { min-height: 92px; }
.c-form__input[aria-invalid="true"] { border-color: var(--c-attn-deep); background: #fff8f5; }
.c-form__note { margin: 5px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--c-muted); }
.c-form__error { margin: 5px 0 0; font-size: 13px; line-height: 1.6; font-weight: 700; color: var(--c-attn-deep); }
.c-form__error::before { content: "！"; }

/* gentle attention on the FIRST required field (企業名): soft red-orange outline, slow 2.4s pulse.
   Stops while focused, once filled (placeholder no longer shown) and after the first focus (.is-calm, main.js).
   No animation under prefers-reduced-motion (a static soft outline remains). */
.c-form__input--attention:placeholder-shown:not(:focus):not(.is-calm) {
	border-color: rgba(226, 102, 58, .7);
	animation: zen-attn 2.4s ease-in-out infinite;
}
@keyframes zen-attn {
	0%, 100% { box-shadow: 0 0 0 0 rgba(226, 102, 58, 0); }
	50% { box-shadow: 0 0 0 4px rgba(226, 102, 58, .2); }
}

.c-form__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.c-form__choice {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 12px;
	border: 1px solid #b4c0c6; border-radius: 999px; background: #fff; cursor: pointer; font-size: 14.5px; color: var(--c-heading);
	transition: border-color .2s ease, background-color .2s ease;
}
.c-form__choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-main-deep); }
.c-form__choice:hover { border-color: var(--c-main-soft); background: var(--c-tint-2); }
.c-form__choice:has(input:checked) { border-color: var(--c-main-deep); background: var(--c-tint); font-weight: 700; }
.c-form__choice:has(input:focus-visible) { outline: 3px solid var(--c-main); outline-offset: 2px; }
/* 採用について: 希望職種 (long labels → one per line) + parts toggled by main.js [data-zen-recruit] */
.c-form [hidden] { display: none !important; }
.c-form__req, .c-form__opt { flex: none; white-space: nowrap; }
.c-form__choices--stack { flex-direction: column; flex-wrap: nowrap; }
.c-form__choices--stack .c-form__choice { align-items: flex-start; padding: 11px 16px 11px 14px; border-radius: 10px; line-height: 1.55; }
.c-form__choices--stack .c-form__choice input { flex: none; margin-top: .15em; }
.c-form__fieldset[aria-invalid="true"] .c-form__choice { border-color: var(--c-attn-deep); }
/* thanks page after a 採用について submission: casual-interview booking (inc/forms.php zen_recruit_thanks_booking) */
.c-booking { margin: 2.5em 0 0; padding: 24px 22px; border: 1px solid var(--c-main-soft); border-radius: 14px; background: var(--c-tint); text-align: center; }
.c-booking__lead { margin: 0 0 .4em; font-size: 1.125em; font-weight: 700; color: var(--c-heading); }
.c-booking__text { margin: 0 0 1em; font-size: .9375em; color: var(--c-muted); }
.c-booking__action { margin: 0; }
.c-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.c-form__privacy { margin: 4px 0 16px; font-size: 12.5px; line-height: 1.7; color: var(--c-muted); }
.c-form__actions { margin: 0; text-align: center; }
.c-form__submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 320px; min-height: 54px; padding: 12px 28px;
	border: 0; border-radius: 10px; background: var(--c-main-deep); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .12em; cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 120, 168, .2); transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.c-form-wrap--sidebar .c-form__submit { max-width: none; }
.c-form__submit:hover { background: var(--c-main-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 90, 128, .24); }
.c-form__submit .c-icon { transition: transform .3s ease; }
.c-form__submit:hover .c-icon { transform: translateX(3px); }
.c-form__summary { margin: 0 0 20px; padding: 14px 18px; border: 2px solid var(--c-attn-deep); border-radius: 10px; background: #fff8f5; font-size: 14px; }
.c-form__summary:focus { outline: none; }
.c-form__summary-title { margin: 0 0 6px; font-weight: 700; color: var(--c-attn-deep); }
.c-form__summary ul { margin: 0; padding-left: 1.2em; }
.c-form__summary a { color: var(--c-attn-deep); }
.p-contact__form { margin-top: 48px; padding: 48px 56px; background: rgba(255, 255, 255, .9); }
.p-contact__intro + .p-contact__form { margin-top: 40px; }
#contact-form, #document-form { scroll-margin-top: var(--sticky-top); }
@media (max-width: 767px) { .p-contact__form { padding: 28px 20px; } }

/* ---------- 採用情報: 募集職種 (v0.8.4; メンバー紹介・先輩の声 are no longer shown) ---------- */
.p-jobs { position: relative; overflow: hidden; }
.p-jobs .l-container { position: relative; z-index: 1; }
.p-jobs__roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.p-jobs__role { padding: 36px 36px 40px; background: rgba(255, 255, 255, .92); }
.p-jobs__num { margin: 0 0 10px; font-family: var(--f-en); font-size: 13px; letter-spacing: .24em; color: var(--c-main-deep); }
.p-jobs__name { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; letter-spacing: .06em; }
.p-jobs__text { margin: 0; font-size: 15.5px; line-height: 2; }
.p-jobs__foot { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.p-jobs__note { margin: 0; font-weight: 700; letter-spacing: .06em; }
.p-jobs__notice { position: relative; overflow: hidden; max-width: 760px; margin-inline: auto; padding: 36px 40px; }
.p-jobs__notice > div { position: relative; z-index: 1; }
.p-jobs__ring { position: absolute; right: -60px; bottom: -80px; width: 240px; color: var(--c-tint); }
.p-jobs__content { max-width: 860px; margin: 48px auto 0; }
@media (max-width: 767px) {
	.p-jobs__roles { grid-template-columns: 1fr; gap: 18px; }
	.p-jobs__role { padding: 26px 22px 28px; }
	.p-jobs__text { font-size: 15px; line-height: 1.95; }
	.p-jobs__notice { padding: 26px 22px; }
}

/* ---------- Floating actions: 資料請求 + TOP (desktop) / bottom bar (mobile) ---------- */
.c-float {
	position: fixed; right: 20px; bottom: calc(20px + var(--float-lift, 0px)); z-index: 90;
	display: flex; flex-direction: row; align-items: center; gap: 12px; pointer-events: none;
}
.c-float > * { pointer-events: auto; }
.js .c-float { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .5s var(--ease-inout), transform .5s var(--ease), visibility 0s linear .5s; }
.js .c-float.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.c-float__bar { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.c-float__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px 10px 18px;
	border-radius: 999px; font-size: 14.5px; font-weight: 700; letter-spacing: .08em; text-decoration: none;
	transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.c-float__btn .c-icon { width: 20px; height: 20px; }
.c-float__btn--doc { background: var(--c-main-deep); color: #fff; box-shadow: 0 8px 22px rgba(0, 70, 100, .22); }
.c-float__btn--doc:hover { background: var(--c-main-dark); color: #fff; transform: translateY(-2px); }
.c-float__btn--consult { display: none; }
.c-float__top {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid var(--c-border); background: rgba(255, 255, 255, .94); color: var(--c-heading);
	font-family: var(--f-en); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 40, 60, .12); transition: background-color .3s ease, transform .3s ease, border-color .3s ease;
}
.c-float__top::before { content: ""; width: 7px; height: 7px; margin-bottom: -6px; border-top: 2px solid var(--c-main-deep); border-left: 2px solid var(--c-main-deep); transform: rotate(45deg); }
.c-float__top { grid-template-rows: auto auto; align-content: center; gap: 4px; }
.c-float__top:hover { background: var(--c-tint); border-color: var(--c-main-soft); color: var(--c-heading); transform: translateY(-2px); }
@media (max-width: 767px) {
	.c-float { left: 0; right: 0; bottom: 0; gap: 10px; flex-direction: column; align-items: stretch; }
	.c-float__bar {
		order: 2; flex-direction: row; align-items: stretch; gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-border); box-shadow: 0 -4px 16px rgba(0, 40, 60, .08);
	}
	.c-float__btn { flex: 1 1 0; min-height: 48px; padding: 8px 10px; border-radius: 10px; font-size: 14px; letter-spacing: .04em; box-shadow: none; }
	.c-float__btn--doc { background: #fff; color: var(--c-main-deep); border: 1.5px solid var(--c-main-deep); }
	.c-float__btn--doc:hover { background: var(--c-tint); color: var(--c-main-deep); transform: none; }
	.c-float__btn--consult { display: inline-flex; background: var(--c-main-deep); color: #fff; }
	.c-float__btn--consult:hover { background: var(--c-main-dark); color: #fff; }
	.c-float__top { order: 1; align-self: flex-end; width: 44px; height: 44px; margin-right: 12px; font-size: 11px; }
	.js .c-float.is-near { opacity: 0; visibility: hidden; transform: translateY(16px); transition-delay: 0s, 0s, .5s; }
}

@media (prefers-reduced-motion: reduce) {
	.c-form__input--attention:placeholder-shown:not(:focus):not(.is-calm) { animation: none; box-shadow: 0 0 0 3px rgba(226, 102, 58, .16); }
	.c-lab-tabs__link:hover, .c-form__submit:hover, .c-float__btn--doc:hover, .c-float__top:hover { transform: none; }
	.js .c-float, .js .c-float.is-near { transform: none; }
}

/* article tables */
.c-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-border); border-radius: 10px; }
.c-entry--lab .c-table-wrap table { min-width: 560px; margin: 0; font-size: 14.5px; line-height: 1.75; }
.c-entry--lab th, .c-entry--lab td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); }
.c-entry--lab thead th { width: auto; background: var(--c-tint); color: var(--c-heading); }
.c-entry--lab tbody th { width: auto; }
.c-entry--lab tbody tr:last-child > * { border-bottom: 0; }
.c-entry--lab td + td, .c-entry--lab th + th, .c-entry--lab th + td { border-left: 1px solid var(--c-border); }

/* sidebar form: compact, and its sticky box ends above the floating 資料請求 / TOP buttons (desktop) */
.c-form-wrap--sidebar { padding: 0 20px 18px; }
.c-form-wrap--sidebar .c-form-wrap__title { margin: 0 -20px 12px; padding: 12px 18px; }
.c-form-wrap--sidebar .c-form-wrap__lead { margin-bottom: 10px; line-height: 1.7; }
.c-form-wrap--sidebar .c-form__row { margin-bottom: 10px; }
.c-form-wrap--sidebar .c-form__input { min-height: 40px; padding: 7px 12px; font-size: 15px; }
.c-form-wrap--sidebar .c-form__textarea { min-height: 72px; }
.c-form-wrap--sidebar .c-form__note { margin-top: 3px; font-size: 12px; }
.c-form-wrap--sidebar .c-form__privacy { margin: 2px 0 10px; font-size: 12px; }
.c-form-wrap--sidebar .c-form__submit { min-height: 48px; }
.c-form-wrap--sidebar .c-form-wrap__admin { margin-bottom: 10px; padding: 6px 10px; font-size: 11.5px; line-height: 1.6; }
/* v0.9.5: the consultation form now sits at the end of the article (no longer in the sticky sidebar) */
.p-article__form .c-form-wrap--sidebar .c-form__input { min-height: 46px; font-size: 16px; }
.p-article__form .c-form-wrap--sidebar .c-form__textarea { min-height: 110px; }
@media (max-width: 767px) {
	.c-entry--lab .c-table-wrap th, .c-entry--lab .c-table-wrap td { display: table-cell; width: auto; padding: 10px 12px; border-bottom: 1px solid var(--c-border); }
	.c-entry--lab .c-table-wrap table { min-width: 520px; font-size: 14px; }
}

/* ==========================================================================
   v0.5 — admin-only notes (owner-input items). Never rendered for the public.
   ========================================================================== */
.c-entry .c-admin-note--block { margin: 1.2em 0; font-size: 13px; line-height: 1.8; }
.c-admin-note--dark { margin-top: 12px; background: #fffbe0; color: #3a3838; border-color: #c9b75a; }

/* ==========================================================================
   v0.5.1 — 会社情報の地図 / G-Labo Discord ボタン / 資料請求フォーム / フッターのアクセス
   ========================================================================== */
.c-map { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 420px; margin: 1.2em 0; border-radius: var(--radius-s); overflow: hidden; background: var(--c-tint-2); border: 1px solid var(--c-border); }
.c-map__frame { display: block; width: 100%; height: 100%; border: 0; }
@supports not (aspect-ratio: 16 / 9) { .c-map { height: 0; padding-top: 56.25%; } .c-map__frame { position: absolute; inset: 0; } }

.p-glabo-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.p-glabo-card__body .p-glabo-card__actions .c-btn { margin-top: 0; }
.p-glabo-card__actions .c-admin-note { flex-basis: 100%; margin: 0; }
.c-glabo-join { margin: 0; }
.c-glabo-join__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.c-glabo-join__btns .c-btn { margin-top: 0; }
.c-glabo-join__note { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--c-muted); }
.c-entry .c-glabo-join { margin: 1.4em 0; }
.c-entry .c-glabo-join__btn { text-decoration: none; }
.p-glabo-card__actions .c-glabo-join { flex-basis: 100%; }
.p-glabo-card__actions .c-admin-note + .c-btn, .p-glabo-card__actions .c-glabo-join + .c-btn { margin-top: 4px; }

.c-form__legend-note { margin-left: -4px; font-size: 12.5px; font-weight: 400; color: var(--c-muted); }
.c-form__fieldset .c-form__choices { margin-top: 2px; }

.l-footer__access { display: inline-block; margin-top: 4px; font-size: 13px; opacity: .85; }

/* ---------- 沿革 timeline ([zen_history] on /company/) ---------- */
.c-history { list-style: none; margin: 8px 0 48px; padding: 0; position: relative; }
.c-history > .c-history__item { margin: 0; }
.c-history__item::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(9em + 15px); width: 2px; background: var(--c-line); z-index: 0; }
.c-history__item:first-child::after { top: calc(14px + .8em); }
.c-history__item:last-child::after { bottom: auto; height: calc(14px + .8em); }
.c-history__item { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 0 32px; position: relative; padding: 14px 0; border-bottom: 1px solid var(--c-border); margin: 0; }
.c-history__item:last-child { border-bottom: 0; }
.c-history__item::before { content: ""; position: absolute; top: calc(14px + .8em - 6px); left: calc(9em + 10px); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c-main); box-sizing: border-box; z-index: 1; }
.c-history__date { font-family: var(--f-en); font-weight: 700; color: var(--c-main-deep); line-height: 1.6; white-space: nowrap; letter-spacing: .02em; }
.c-history__text { margin: 0; line-height: 1.6; color: var(--c-text); padding-left: 16px; }
@media (max-width: 599px) {
	.c-history__item::after { left: 5px; }
	.c-history__item:first-child::after { top: calc(12px + .8em); }
	.c-history__item:last-child::after { height: calc(12px + .8em); }
	.c-history__item { grid-template-columns: 1fr; gap: 2px; padding: 12px 0 12px 28px; }
	.c-history__item::before { left: 0; top: calc(12px + .8em - 6px); }
	.c-history__text { padding-left: 0; }
}

/* footer: keep the related company name on one line (no 「善ケ／ア」 break) */
.l-footer__nav > .l-footer__related { grid-column: span 2; }
.l-footer__related-name { white-space: nowrap; }
@media (max-width: 899px) {
	.l-footer__nav > .l-footer__related { grid-column: auto; }
}

/* ---------- v0.9.4: news default thumbnail (no featured image / no generated news-default.*) ---------- */
.c-placeholder--news {
	position: relative; overflow: hidden;
	background:
		radial-gradient(circle at 1px 1px, rgba(0, 120, 168, .13) 1px, transparent 1.6px) 0 0 / 14px 14px,
		linear-gradient(135deg, #f4fbfe 0%, #dcf3fc 55%, #c3eafa 100%);
	color: var(--c-main);
}
.c-placeholder--news .c-placeholder__ring { position: absolute; width: auto; max-width: none; height: 140%; opacity: .16; pointer-events: none; }
.c-placeholder--news .c-placeholder__ring--a { right: -18%; bottom: -55%; }
.c-placeholder--news .c-placeholder__ring--b { left: -22%; top: -70%; height: 110%; opacity: .1; }
.c-placeholder--news .c-placeholder__logo {
	position: relative; z-index: 1; display: block; width: 52%; max-width: 300px; height: auto !important; object-fit: contain !important;
	filter: drop-shadow(0 6px 14px rgba(0, 90, 128, .08));
}
.c-news-list__link:hover .c-news-list__thumb .c-placeholder__logo { transform: none; }
.p-single__thumb .c-placeholder--news .c-placeholder__logo { width: 40%; max-width: 340px; }

/* ---------- v0.9.4: related news (single post「その他のお知らせ」) as cards on tablet / desktop ---------- */
@media (min-width: 768px) {
	.c-news-list--cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border-top: 0; }
	.c-news-list--cards .c-news-list__item { border-bottom: 0; }
	.c-news-list--cards .c-news-list__link {
		flex-direction: column; align-items: stretch; gap: 0; height: 100%; padding: 0;
		background: #fff; border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden;
		transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
	}
	.c-news-list--cards .c-news-list__link:hover, .c-news-list--cards .c-news-list__link:focus-visible {
		transform: translateY(-3px); border-color: var(--c-main-soft); box-shadow: 0 12px 28px rgba(0, 80, 120, .09);
	}
	.c-news-list--cards .c-news-list__thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
	.c-news-list--cards .c-news-list__thumb img.is-banner { background: var(--c-tint-2); }
	.c-news-list--cards .c-news-list__link:hover .c-news-list__thumb img { transform: scale(1.03); }
	.c-news-list--cards .c-news-list__link:hover .c-news-list__thumb img.is-banner,
	.c-news-list--cards .c-news-list__link:hover .c-news-list__thumb .c-placeholder__logo { transform: none; }
	.c-news-list--cards .c-news-list__body { padding: 18px 20px 22px; }
	.c-news-list--cards .c-news-list__meta { margin-bottom: 10px; }
	.c-news-list--cards .c-news-list__title {
		font-size: 16px; line-height: 1.7;
		display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
	}
}
@media (min-width: 900px) {
	.c-news-list--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.c-news-list--cards .c-news-list__link:hover, .c-news-list--cards .c-news-list__link:focus-visible { transform: none; }
}

/* ---------- v0.9.4: column (lab) eyecatches are 16:9 (logo in the top-right corner) — no hover zoom that would clip it ---------- */
.c-lab-card__link:hover .c-lab-card__media img { transform: none; }

/* ==========================================================================
   v0.9.23 mobile QA (360–430px phones, 768px tablet): readable sizes, 44px tap targets, Japanese line breaks.
   Kept in one block so the reasons stay together; each rule names what the QA script flagged.
   ========================================================================== */
/* Japanese headings: break only between phrases. zen_wbr() (inc/template-tags.php) puts <wbr> between
   phrases (BudouX-style, done on the server so Safari gets it too); keep-all stops breaks inside a phrase
   (「つまずきやす/い」「チー/ム」), overflow-wrap is the safety net for one very long word. Chrome's own
   phrase splitter (auto-phrase) is used where available. */
.c-lab-card__title, .c-service-card__title, .p-statement__title, .p-single__title, .p-article__title,
.c-entry--lab h2, .c-entry--lab h3, .c-press-feature__title, .c-news-list__title {
	word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty;
}
@supports (word-break: auto-phrase) {
	.c-lab-card__title, .c-service-card__title, .p-statement__title, .p-single__title, .p-article__title,
	.c-entry--lab h2, .c-entry--lab h3, .c-press-feature__title, .c-news-list__title { word-break: auto-phrase; }
}
/* text under 12px: footer © (<small> made it 10.7px), form badges */
.l-footer__copy small { font-size: inherit; }
.c-form__req, .c-form__opt { font-size: 12px; }
@media (max-width: 1023px) {
	/* tap targets ≥ 44px (WCAG 2.5.5 / Apple HIG) */
	.l-header__logo a { display: inline-flex; align-items: center; min-height: 44px; }
	.c-vtabs__tab, .c-toc__more, .c-share__btn, .c-tabs a, .c-lab-tabs__link { min-height: 44px; }
	.c-share__btn--x { min-width: 44px; justify-content: center; }
	.c-breadcrumb li, .c-breadcrumb a { min-height: 44px; }
	.c-breadcrumb ol { gap: 0; }
	.l-footer__list { gap: 0 24px; }
	.l-footer__list a, .l-footer__sub a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
	.l-footer__sub { gap: 0 20px; }
	.c-tag-list a { display: inline-flex; align-items: center; min-height: 44px; }
	.c-side-cta__sub { min-height: 44px; }
	.c-toc__list a { min-height: 44px; align-content: center; }
}

/* v0.9.25: page held still while the G-Labo count-up and poppers play (see main.js holdScroll) */
html.is-scroll-held { overflow: hidden; scrollbar-gutter: stable; }
html.is-scroll-held body { touch-action: none; }

/* v0.9.32: recruit thanks → STEP 2 casual-interview booking (TimeRex embed) */
.c-booking__step { margin: 0 0 .5rem; font-weight: 800; font-size: .8125rem; letter-spacing: .16em; color: var(--c-primary, #02A2E0); }
.c-booking__calendar { min-height: 640px; margin-top: 1.5rem; border-radius: 1rem; overflow: hidden; background: #fff; }
.c-booking__alt { margin-top: 1rem; font-size: .875rem; }

/* v0.9.34: recruit thanks — booking first, clean centered block (no entry-heading decorations) */
.c-booking { margin: 0 0 3rem; text-align: center; }
.c-booking__lead { margin: .25rem 0 .75rem; padding: 0; border: 0; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.5; }
.c-booking__lead::before, .c-booking__lead::after { content: none !important; display: none !important; }
.c-booking__text { max-width: 36em; margin: 0 auto 1.25rem; line-height: 1.8; }
.c-booking__calendar { text-align: left; }
.c-entry--after-booking { font-size: .9375em; opacity: .9; }

.l-section--booking { padding-top: calc(var(--header-h, 88px) + 2rem); }
.l-section--booking .c-booking__step::before { content: attr(data-done) " ✓　"; letter-spacing: .04em; color: var(--c-heading); }

/* v0.9.36: booking block readability — darker text on the pale panel */
.c-booking { background: #f4fbfe; border-color: #bfe6f7; }
.c-booking__text { color: #1f3a4d; font-size: 1rem; font-weight: 500; }
.c-booking__lead { color: #043450; font-weight: 800; }
.c-booking__step { color: #00739c; font-size: .875rem; }
.l-section--booking .c-booking__step::before { color: #043450; }
.c-booking__alt { color: #1f3a4d; }
.c-entry--after-booking { opacity: 1; color: #1f3a4d; }

/* v0.9.37–39: thanks pages — darker text; links use the front page button style */
.page-template-default.page-child .c-entry p { color: #1f3a4d; font-size: 1.0625rem; line-height: 1.9; }
.c-thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 48px; margin: 2.5rem 0 0; }
.c-entry .c-thanks-actions a { text-decoration: none; }

/* v0.9.41: while the count-up holds the page, hide floating bars so the number and poppers are never covered */
html.is-scroll-held .zbc, html.is-scroll-held .c-float { opacity: 0 !important; visibility: hidden !important; transition: opacity .2s; }

/* v0.9.41: booking panel text — left-aligned, readable, no awkward centered wraps */
.c-booking { text-align: left; padding: 32px 36px; }
.c-booking__step { text-align: left; }
.c-booking__lead { text-align: left; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: .02em; }
.c-booking__text { max-width: none; margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.85; letter-spacing: .02em; color: #1f3a4d; }
.c-booking__alt { text-align: right; }
@media (max-width: 600px) { .c-booking { padding: 24px 18px; } }

/* v0.9.42: Gラボ ウェビナー参加者さま 個別相談のご予約 (/glabo-consult/, page-glabo-consult.php) — calendar slots in the first view:
   one small thank-you line + one short heading, no panel chrome, fallback link / note in small text below the calendar */
.l-section--glabo-consult { padding-top: calc(var(--header-h, 66px) + var(--header-top, 10px) + 12px); padding-bottom: 2rem; }
.c-booking--glabo { margin: 0; padding: 0; border: 0; background: none; }
.c-booking--glabo .c-booking__thanks { margin: 0 0 .125rem; font-size: .875rem; line-height: 1.5; color: #1f3a4d; }
.c-booking--glabo .c-booking__lead { margin: 0 0 .5rem; font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.4; color: #043450; }
.c-booking--glabo .c-booking__calendar { margin-top: 0; border-radius: 12px; }
.c-booking--glabo .c-booking__alt, .l-section--glabo-consult .c-entry--after-booking, .l-section--glabo-consult .c-entry--after-booking p { margin-top: .5rem; font-size: .8125rem; line-height: 1.7; color: #1f3a4d; text-align: left; }
.l-section--glabo-consult .c-entry--after-booking { margin-top: .25rem; }
@media (max-width: 600px) {
	.l-section--glabo-consult { padding-top: calc(var(--header-h, 66px) + var(--header-top, 10px) + 6px); }
	.l-section--glabo-consult .l-container { padding-inline: 12px; }
	.c-booking--glabo .c-booking__thanks { font-size: .8125rem; line-height: 1.4; letter-spacing: 0; }
	.c-booking--glabo .c-booking__lead { margin-bottom: .375rem; font-size: 1.0625rem; }
}
.p-glabo-next { padding-top: 2.5rem; background: #f4fbfe; }
.p-glabo-next__label { margin: 0 0 .25rem; font-weight: 800; font-size: .875rem; letter-spacing: .16em; color: #00739c; }
.p-glabo-next__title { margin: 0 0 1.5rem; font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 800; line-height: 1.5; color: #043450; }
.p-glabo-next__list { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.p-glabo-next__card { display: flex; flex-direction: column; height: 100%; padding: 20px 22px; border: 1px solid #bfe6f7; border-radius: 14px; background: #fff; color: #1f3a4d; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.p-glabo-next__card:hover, .p-glabo-next__card:focus-visible { border-color: var(--c-main); box-shadow: 0 8px 24px rgba(0, 120, 168, .12); transform: translateY(-2px); }
.p-glabo-next__card-label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: #00739c; }
.p-glabo-next__card-title { margin: .25rem 0 .4rem; font-size: 1.0625rem; font-weight: 800; line-height: 1.5; color: #043450; }
.p-glabo-next__card-text { flex: 1; font-size: 1rem; line-height: 1.85; color: #1f3a4d; }
.p-glabo-next__card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: .75rem; font-size: .9375rem; font-weight: 700; color: var(--c-main-deep); }
@media (min-width: 768px) { .p-glabo-next__list { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .p-glabo-next__card { transition: none; } .p-glabo-next__card:hover { transform: none; } }

/* v0.9.43: /glabo-consult/ cards — readable text: main body font, normal tracking, darker / heavier copy */
.p-glabo-next, .p-glabo-next__card { font-family: var(--f-ja); font-feature-settings: normal; }
.p-glabo-next__title { letter-spacing: .02em; font-weight: 700; color: #043450; }
.p-glabo-next__label, .p-glabo-next__card-label { font-family: var(--f-en); font-weight: 600; letter-spacing: .06em; }
.p-glabo-next__card-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: .01em; color: #043450; }
.p-glabo-next__card-text { font-size: 1rem; font-weight: 500; line-height: 1.8; letter-spacing: .01em; color: #1f3a4d; }
.p-glabo-next__card-more { letter-spacing: .02em; }

/* v0.9.47: /glabo-consult/ 「面談の前に」 cards redesigned (owner: ここのUI整えて、デザイン凝って) —
   illustration on top (desktop 2×2) / thumbnail left (phone), whole card is the link, lift + arrow slide on hover,
   keep-all + <wbr> so no line ends with a lone character. Overrides the 0.9.42–43 rules above. */
.p-glabo-next { position: relative; padding: 72px 0 88px; background: linear-gradient(180deg, #eef8fd 0%, #f7fbfe 55%, #fff 100%); overflow: hidden; }
.p-glabo-next::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0, 174, 239, .12), rgba(0, 174, 239, 0) 70%); pointer-events: none; }
.p-glabo-next .l-container { position: relative; max-width: 1040px; }
.p-glabo-next__head { margin: 0 0 36px; text-align: center; }
.p-glabo-next__label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--f-en); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; color: #00739c; }
.p-glabo-next__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent, #fdd804); box-shadow: 0 0 0 4px rgba(253, 216, 4, .25); }
.p-glabo-next__title { margin: 0; font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 700; line-height: 1.5; letter-spacing: .02em; color: #043450; word-break: keep-all; overflow-wrap: anywhere; }
.p-glabo-next__sub { margin: 10px 0 0; font-size: 1rem; font-weight: 500; line-height: 1.8; color: #1f3a4d; word-break: keep-all; }
.p-glabo-next__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.p-glabo-next__item { display: flex; min-width: 0; }
.p-glabo-next__card, .p-glabo-next__body { min-width: 0; }
.p-glabo-next__card {
	display: flex; flex-direction: column; width: 100%; height: auto; padding: 0; overflow: hidden; border: 1px solid #d6eef9; border-radius: 20px; background: #fff;
	box-shadow: 0 10px 30px rgba(4, 52, 80, .07); color: #1f3a4d; text-decoration: none;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1), border-color .35s;
}
.p-glabo-next__card:hover, .p-glabo-next__card:focus-visible { transform: translateY(-4px); border-color: #9fdcf5; box-shadow: 0 18px 40px rgba(4, 52, 80, .13); }
.p-glabo-next__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #eaf8fe, #f4fbfe); }
.p-glabo-next__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 10px 18px 0; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.p-glabo-next__card:hover .p-glabo-next__thumb img { transform: scale(1.04); }
.p-glabo-next__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 20px 24px 22px; }
.p-glabo-next__card-label { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #eaf8fe; font-family: var(--f-en); font-weight: 600; font-size: .6875rem; letter-spacing: .1em; color: #00739c; }
.p-glabo-next__card-title { margin: 4px 0 0; font-family: var(--f-ja); font-size: 1.125rem; font-weight: 700; line-height: 1.55; letter-spacing: .01em; color: #043450; word-break: keep-all; overflow-wrap: anywhere; }
.p-glabo-next__card-text { flex: 1; font-family: var(--f-ja); font-size: .9375rem; font-weight: 500; line-height: 1.8; letter-spacing: .01em; color: #1f3a4d; word-break: keep-all; overflow-wrap: anywhere; }
.p-glabo-next__card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .9375rem; font-weight: 700; letter-spacing: .02em; color: var(--c-main-deep); }
.p-glabo-next__arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-main-deep); color: #fff; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.p-glabo-next__arrow .c-icon { width: 8px; height: 12px; }
.p-glabo-next__card:hover .p-glabo-next__arrow { transform: translateX(5px); }
@media (max-width: 767px) {
	.p-glabo-next { padding: 48px 0 64px; }
	.p-glabo-next__head { margin-bottom: 24px; text-align: left; }
	.p-glabo-next__list { grid-template-columns: 1fr; gap: 14px; }
	.p-glabo-next__card { flex-direction: row; align-items: stretch; border-radius: 16px; }
	.p-glabo-next__thumb { flex: 0 0 112px; aspect-ratio: auto; }
	.p-glabo-next__thumb img { padding: 8px; object-position: center; }
	.p-glabo-next__body { padding: 14px 16px 16px; gap: 4px; }
	.p-glabo-next__card-title { font-size: 1rem; }
	.p-glabo-next__card-text { font-size: .875rem; line-height: 1.7; }
	.p-glabo-next__card-more { margin-top: 4px; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { .p-glabo-next__card, .p-glabo-next__thumb img, .p-glabo-next__arrow { transition: none; } .p-glabo-next__card:hover { transform: none; } }
