/* =========================================================
   office_2026-9 / lotFile Creative Office
   モノトーン・大きな余白・編集的な雰囲気を基調としたスタイル
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
	--paper: #f7f6f3;
	--paper-alt: #efede8;
	--surface: #ffffff;
	--ink: #16150f;
	--ink-soft: #55534c;
	--ink-faint: #8a8779;
	--line: #dcd9d1;
	--line-strong: #16150f;
	--inverse-bg: #16150f;
	--inverse-fg: #f7f6f3;
	--inverse-line: rgba(247, 246, 243, 0.2);

	--font-display: "Newsreader", "Iowan Old Style", "Times New Roman", "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", ui-serif, serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
		"Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;

	--space-3xs: clamp(0.5rem, 0.46rem + 0.2vw, 0.625rem);
	--space-2xs: clamp(0.75rem, 0.68rem + 0.3vw, 1rem);
	--space-xs: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
	--space-sm: clamp(1.5rem, 1.32rem + 0.8vw, 2rem);
	--space-md: clamp(2.25rem, 1.85rem + 1.8vw, 3.25rem);
	--space-lg: clamp(3.5rem, 2.6rem + 3.6vw, 6rem);
	--space-xl: clamp(5rem, 3.3rem + 6.5vw, 9rem);

	--fs-sm: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
	--fs-body: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
	--fs-kicker: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
	--fs-h4: clamp(1.0625rem, 1.01rem + 0.25vw, 1.1875rem);
	--fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5625rem);
	--fs-h2: clamp(1.625rem, 1.4rem + 1.05vw, 2.25rem);
	--fs-h1: clamp(2rem, 1.6rem + 1.9vw, 3rem);
	--fs-hero: clamp(1.875rem, 1.5rem + 2vw, 2.5rem);

	--container: 1120px;
	--container-narrow: 46rem;

	--ease: cubic-bezier(0.4, 0, 0.2, 1);
	--radius-pill: 2px;
}

/* ログイン中（管理バー表示時）は編集者向けにダークモード表示にする */
body.admin-bar:not(.theme-light) {
	--paper: #16150f;
	--paper-alt: #201f18;
	--surface: #1c1b15;
	--ink: #f2f0ea;
	--ink-soft: #b9b6ac;
	--ink-faint: #86837a;
	--line: rgba(242, 240, 234, 0.14);
	--line-strong: #f2f0ea;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

html:focus-within {
	scroll-behavior: smooth;
}

/* ページ内目次のジャンプ先が、固定ヘッダーに隠れないようにする */
main section[id],
.content-duo-col[id],
.prose h2[id],
.prose h3[id] {
	scroll-margin-top: 96px;
}

.admin-bar main section[id],
.admin-bar .content-duo-col[id],
.admin-bar .prose h2[id],
.admin-bar .prose h3[id] {
	scroll-margin-top: 128px;
}

body {
	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.85;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

/* WP管理バー表示時：htmlに付くmargin-top分だけ、bodyの最小高さを差し引く
   （差し引かないと 100dvh + 管理バー分 で常に32px溢れ、ヒーロー下端がフッターの外に押し出される） */
body.admin-bar {
	min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		min-height: calc(100dvh - 46px);
	}
}

main {
	flex: 1;
}

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

a {
	color: inherit;
}

ul,
ol {
	padding: 0;
	margin: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
	margin: 0;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

legend {
	padding: 0;
	width: 100%;
}

::selection {
	background: var(--ink);
	color: var(--paper);
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--ink);
	color: var(--paper);
	padding: 0.75em 1.25em;
	z-index: 2000;
}

.skip-link:focus {
	left: var(--space-xs);
	top: var(--space-xs);
}

br.sp {
	display: none;
}

@media (max-width: 600px) {
	br.sp {
		display: block;
	}
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.wrap--narrow {
	max-width: calc(var(--container-narrow) + 6rem);
	padding-bottom: var(--space-xl);
}

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

.prose--center {
	margin-inline: auto;
	text-align: center;
}

.section {
	padding-block: var(--space-lg);
}

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

.section--tight {
	padding-block: var(--space-md);
}

.hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--space-sm) 0 var(--space-md);
}

/* ---------- 4. Typography ---------- */
h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

h1 {
	font-size: var(--fs-h1);
}

h2 {
	font-size: var(--fs-h2);
}

h3 {
	font-size: var(--fs-h3);
}

h4 {
	font-size: var(--fs-h4);
	font-family: var(--font-body);
	font-weight: 600;
}

.kicker {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--fs-kicker);
	letter-spacing: 0.06em;
	color: var(--ink-soft);
	margin: 0 0 var(--space-2xs);
}

.lede {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.85;
	color: var(--ink-soft);
}

.text-muted {
	color: var(--ink-soft);
}

/* ---------- 5. Buttons / CTA ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: var(--fs-sm);
	line-height: 1;
	letter-spacing: 0.02em;
	padding: 0.8em 1.5em;
	border-radius: var(--radius-pill);
	border: 1px solid var(--ink);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn--primary {
	background: var(--ink);
	color: var(--paper);
}

.btn--primary:hover {
	background: var(--ink-soft);
	border-color: var(--ink-soft);
}

.btn--ghost {
	background: transparent;
	color: var(--ink);
}

.btn--ghost:hover {
	background: rgba(22, 21, 15, 0.06);
}

.btn--on-inverse {
	border-color: var(--inverse-fg);
	color: var(--inverse-fg);
}

.btn--on-inverse.btn--primary {
	background: var(--inverse-fg);
	color: var(--ink);
}

.btn--on-inverse.btn--ghost:hover {
	background: rgba(247, 246, 243, 0.1);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-sm);
	align-items: center;
	margin-top: var(--space-xs);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	text-decoration: none;
	font-size: var(--fs-sm);
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.15em;
	transition: gap 0.2s var(--ease), opacity 0.2s var(--ease);
}

.link-arrow:hover {
	gap: 0.7em;
}

/* ---------- 6. Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding-block: 1.1rem;
}

.brand {
	text-decoration: none;
	color: var(--ink);
}

.brand-mark {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.75rem;
	letter-spacing: -0.01em;
}

.brand--inverse {
	color: var(--inverse-fg);
}

.site-nav-panel {
	display: flex;
	align-items: center;
	gap: var(--space-md);
}

.nav-list {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2vw, 2.25rem);
}

.nav-list>li {
	position: relative;
}

.nav-list a {
	display: inline-block;
	padding: 0.3em 0;
	font-size: var(--fs-sm);
	text-decoration: none;
	color: var(--ink);
	opacity: 0.72;
	transition: opacity 0.2s var(--ease);
}

.nav-list a:hover,
.nav-list .current-menu-item>a,
.nav-list .current-menu-parent>a {
	opacity: 1;
}

.nav-list .sub-menu {
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 220px;
	padding: 0.6rem 0;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: 0 16px 32px rgba(22, 21, 15, 0.08);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-list .sub-menu::before {
	content: "";
	position: absolute;
	inset: -14px 0 auto 0;
	height: 14px;
}

.nav-list li:hover>.sub-menu,
.nav-list li:focus-within>.sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.nav-list .sub-menu a {
	display: block;
	padding: 0.55rem 1.25rem;
	opacity: 0.75;
	white-space: nowrap;
}

.nav-list .sub-menu a:hover {
	opacity: 1;
	background: var(--paper-alt);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 18px;
	z-index: 1001;
}

.nav-toggle span {
	display: block;
	width: 100%;
	height: 1px;
	background: var(--ink);
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ログイン時のみ表示するダーク/ライト切り替え（PC幅限定） */
.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4em 0.9em;
	font-size: var(--fs-sm);
	letter-spacing: 0.02em;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	color: var(--ink-soft);
	flex-shrink: 0;
}

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

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

	.theme-toggle {
		display: none;
	}

	.site-nav-panel {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		gap: var(--space-lg);
		background: var(--inverse-bg);
		color: var(--inverse-fg);
		padding: var(--space-xl) clamp(1.5rem, 8vw, 3rem);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
	}

	.site-nav-panel.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.1rem;
		width: 100%;
	}

	.nav-list a {
		font-family: var(--font-display);
		font-size: clamp(1.5rem, 6vw, 2rem);
		color: var(--inverse-fg);
		opacity: 0.85;
	}

	.nav-list>li {
		width: 100%;
	}

	.nav-list .menu-item-has-children>a {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.nav-list .sub-menu {
		position: static;
		transform: none;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		max-height: 0;
		overflow: hidden;
		padding: 0;
		margin-top: 0;
		transition: max-height 0.3s var(--ease), margin-top 0.3s var(--ease);
	}

	.nav-list .sub-menu::before {
		display: none;
	}

	.nav-list li.is-open>.sub-menu {
		max-height: 400px;
		margin-top: 0.75rem;
		padding-left: 1rem;
	}

	.nav-list .sub-menu a {
		font-size: 1.05rem;
		padding: 0.5rem 0;
		color: var(--inverse-fg);
		opacity: 0.7;
	}

	.submenu-toggle {
		width: 44px;
		height: 44px;
		flex-shrink: 0;
		display: grid;
		place-items: center;
	}

	.submenu-toggle::before {
		content: "";
		width: 9px;
		height: 9px;
		border-right: 1px solid var(--inverse-fg);
		border-bottom: 1px solid var(--inverse-fg);
		transform: rotate(45deg);
		transition: transform 0.2s var(--ease);
	}

	.nav-list li.is-open .submenu-toggle::before {
		transform: rotate(225deg);
	}

	.nav-toggle.is-active span:nth-child(1) {
		transform: translateY(8.5px) rotate(45deg);
	}

	.nav-toggle.is-active span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle.is-active span:nth-child(3) {
		transform: translateY(-8.5px) rotate(-45deg);
	}

	body.nav-open {
		overflow: hidden;
	}
}

/* ---------- 7. Breadcrumb / page head ---------- */
.breadcrumb {
	padding-block: var(--space-2xs);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	font-size: var(--fs-sm);
	color: var(--ink-faint);
}

.breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: 0.5em;
	color: var(--line);
}

.breadcrumb a {
	text-decoration: none;
	color: var(--ink-faint);
}

.breadcrumb a:hover {
	color: var(--ink);
}

.breadcrumb li[aria-current] {
	color: var(--ink-soft);
}

.page-head {
	padding-block: var(--space-sm) var(--space-lg);
	max-width: 46rem;
}

.page-head h1 {
	margin-block: 0.2em 0.6em;
}

.page-lead {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.85;
	color: var(--ink-soft);
	white-space: pre-line;
}

/* ---------- 8. Home / hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: clamp(32rem, 62vw, 46rem);
	background: var(--paper);
}

/* 大きなランドスケープ画面では、旧サイトと同様に画面いっぱいのヒーローにする（ヘッダー分の高さを差し引く） */
@media (min-width: 1025px) and (orientation: landscape) {
	.hero {
		min-height: calc(100vh - 82px);
	}

	/* 管理バー表示時はさらにその高さぶん差し引く */
	.admin-bar .hero {
		min-height: calc(100vh - 82px - 32px);
	}
}

@media (min-width: 1025px) and (orientation: landscape) and (max-width: 782px) {
	.admin-bar .hero {
		min-height: calc(100vh - 82px - 46px);
	}
}

.hero-visual {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-cityscape {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	/* ヒーローの高さを画面に合わせて制御しているので、左右いっぱいまで拡大して敷き詰める */
	object-fit: cover;
	object-position: bottom;
	/* 画像の白地を背景色へ溶け込ませ、黒いシルエットだけを残す */
	mix-blend-mode: multiply;
}

/* ダークモード時：白地を溶け込ませつつ、シルエットは白く反転させる */
body.admin-bar:not(.theme-light) .hero-cityscape {
	filter: invert(1);
	mix-blend-mode: screen;
}

/* 画像下端のわずかな余白を、地面と同じ色で埋めて陸続きに見せる */
.hero-visual::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 40px;
	background: var(--ink);
	z-index: 1;
}

.helicopter {
	position: absolute;
	top: 20%;
	left: 8%;
	width: 48px;
	height: auto;
	filter: brightness(0);
	pointer-events: none;
	z-index: 1;
}

/* ダークモード時：黒シルエットのままだと見えなくなるため白く */
body.admin-bar:not(.theme-light) .helicopter {
	filter: brightness(0) invert(1);
}

@media (min-width: 769px) {
	.helicopter {
		width: 84px;
	}
}

/* ---------- 8b. 個別ページ：ヘッダー直下の帯ビジュアル ---------- */
/* 元サイトと同じく、切り抜かずに画像の縦横比のまま幅いっぱいに表示する */
.page-hero {
	position: relative;
	overflow: hidden;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.page-hero-visual {
	position: relative;
}

.page-hero-strip {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

body.admin-bar:not(.theme-light) .page-hero-strip {
	filter: invert(1);
	mix-blend-mode: screen;
}

.hero-text {
	padding-block: var(--space-lg) var(--space-md);
	border-bottom: 1px solid var(--line);
}

.hero-text-grid,
.page-head-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--space-lg);
	align-items: start;
}

.hero-text-main,
.page-head-main {
	max-width: 44rem;
}

@media (max-width: 860px) {

	.hero-text-grid,
	.page-head-grid {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}

	.hero-text-main,
	.page-head-main {
		max-width: none;
	}
}

.page-head-grid {
	padding-block: var(--space-sm) var(--space-md);
}

.page-head-grid .page-head {
	padding-block: 0;
}

/* ページ内目次（ヒーロー横） */
.index-list {
	display: flex;
	flex-direction: column;
}

.index-list a {
	display: flex;
	align-items: baseline;
	gap: var(--space-xs);
	padding-block: 0.9rem;
	border-top: 1px solid var(--line);
	text-decoration: none;
	color: var(--ink-soft);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--fs-sm);
	transition: color 0.2s var(--ease);
}

.index-list a:last-child {
	border-bottom: 1px solid var(--line);
}

.index-list a:hover {
	color: var(--ink);
}

.index-num {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	background: var(--ink-faint);
	font-size: 0;
	overflow: hidden;
	align-self: center;
}

/* セクション見出し（番号＋見出し） */
.section-num-head {
	display: flex;
	align-items: baseline;
	gap: var(--space-xs);
	margin-bottom: var(--space-sm);
}

.section-num-head .section-num {
	flex-shrink: 0;
	align-self: stretch;
	width: 3px;
	background: var(--ink-faint);
	font-size: 0;
	overflow: hidden;
}

.section-num-head h2,
.section-num-head h3 {
	margin: 0;
	font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem);
}

/* 01/02：2カラム（薄い背景＋罫線は画面幅いっぱいに） */
.content-duo {
	background: var(--paper-alt);
	border-block: 1px solid var(--line);
}

.content-duo-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-lg) var(--space-md);
}

.content-duo-col:last-child {
	border-left: 1px solid var(--line);
	padding-left: var(--space-md);
}

.content-duo-col p {
	color: var(--ink-soft);
	line-height: 2.1;
	margin-bottom: 1em;
}

@media (max-width: 760px) {
	.content-duo-grid {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}

	.content-duo-col:last-child {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--line);
		padding-top: var(--space-lg);
	}
}

/* 03：Servicesの3カラム */
.services-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
	margin-top: var(--space-md);
}

.services-columns .service-index {
	display: block;
	font-family: var(--font-display);
	font-style: italic;
	color: var(--ink-faint);
	margin-bottom: var(--space-xs);
}

.services-columns h3 {
	margin-bottom: 0.6em;
}

.services-columns p {
	color: var(--ink-soft);
	margin-bottom: var(--space-sm);
}

@media (max-width: 760px) {
	.services-columns {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}
}

/* 04：選ばれる理由の5カラム */
.reasons-columns {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--space-md);
	margin-top: var(--space-md);
}

.reason-col {
	padding-left: var(--space-sm);
	border-left: 1px solid var(--line);
}

.reason-col:first-child {
	padding-left: 0;
	border-left: 0;
}

.reason-col .reason-index {
	display: block;
	font-family: var(--font-display);
	font-style: italic;
	color: var(--ink-faint);
	margin-bottom: var(--space-xs);
}

.reason-col p {
	color: var(--ink-soft);
	margin: 0;
	text-align: center;
}

@media (max-width: 860px) {
	.reasons-columns {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-md) var(--space-sm);
	}

	.reason-col {
		padding-left: 0;
		border-left: 0;
		padding-top: var(--space-xs);
		border-top: 1px solid var(--line);
	}
}

.hero-kicker {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.05rem);
	color: var(--ink-soft);
	margin-bottom: var(--space-sm);
}

.hero-headline {
	font-size: var(--fs-hero);
	line-height: 1.15;
	margin-bottom: var(--space-sm);
}

.hero-lead {
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	line-height: 1.7;
	color: var(--ink-soft);
	max-width: 38rem;
	margin-bottom: var(--space-md);
}

/* ---------- 9. Services (Home + hub) ---------- */
.service-list {
	display: flex;
	flex-direction: column;
}

.service-row {
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	gap: var(--space-sm);
	padding-block: var(--space-md);
	border-top: 1px solid var(--line);
	text-decoration: none;
	color: inherit;
}

.service-list>a.service-row {
	transition: opacity 0.2s var(--ease);
}

.service-list>a.service-row:hover {
	opacity: 0.6;
}

.service-list> :last-child {
	border-bottom: 1px solid var(--line);
}

.service-index {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25rem;
	color: var(--ink-faint);
}

.service-body-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-sm);
	flex-wrap: wrap;
	margin-bottom: 0.5em;
}

.service-en {
	font-family: var(--font-display);
	font-style: italic;
	font-size: var(--fs-sm);
	color: var(--ink-faint);
}

.service-title {
	font-size: var(--fs-h3);
	font-family: var(--font-display);
	margin: 0.1em 0 0.5em;
}

.service-desc {
	max-width: 42rem;
	color: var(--ink-soft);
}

.service-row--muted {
	opacity: 0.75;
}

.service-row--muted .service-title {
	font-size: var(--fs-h4);
	font-family: var(--font-body);
	font-weight: 600;
}

@media (max-width: 600px) {
	.service-row {
		grid-template-columns: 1fr;
		gap: var(--space-2xs);
	}
}

/* ---------- 10. Reasons ---------- */
.reason-index {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--ink-faint);
}

/* ---------- 11. Teaser / CTA blocks ---------- */
.teaser-box {
	background: var(--surface);
	border: 1px solid var(--line);
	padding: clamp(2rem, 3vw, 3.5rem);
	display: grid;
	gap: var(--space-sm);
}

.cta-block {
	text-align: center;
	padding-block: var(--space-lg);
	border-top: 1px solid var(--line);
}

.cta-block .actions {
	justify-content: center;
	margin-top: var(--space-sm);
}

.pull-note {
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	padding-block: var(--space-md);
	max-width: 42rem;
}

.pull-note p:first-child {
	font-family: var(--font-display);
	font-size: var(--fs-h4);
	margin-bottom: 0.5em;
}

/* ---------- 12. Prose (WYSIWYG content) ---------- */
/* WordPressの本文（the_content）を、旧.content-blockと同じ「見出しごとに罫線区切り」の見た目にする */
.prose h2 {
	font-size: var(--fs-h3);
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	margin-bottom: 0.7em;
	border-top: 1px solid var(--line);
}

.prose > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.prose h3 {
	font-size: var(--fs-h4);
	font-family: var(--font-body);
	font-weight: 600;
	margin-top: var(--space-sm);
	margin-bottom: 0.6em;
}

.prose p {
	margin-bottom: 1.2em;
	color: var(--ink-soft);
}

/* 本文の最初の段落は、旧.page-lead相当のリード文として大きめに見せる */
.prose > p:first-of-type {
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.85;
}

.prose ul,
.prose ol {
	margin-bottom: 1.2em;
	padding-left: 1.25em;
}

.prose ul {
	list-style: disc;
}

.prose ul.tag-list {
	list-style: none;
	padding-left: 0;
}

.prose ol {
	list-style: decimal;
}

.prose li {
	margin-bottom: 0.4em;
	color: var(--ink-soft);
}

.prose a {
	color: var(--ink);
}

/* ---------- 13. Content sections (service detail pages) ---------- */
.content-block {
	padding-block: var(--space-md);
	border-top: 1px solid var(--line);
}

.content-block h2 {
	margin-bottom: 0.7em;
}

.content-block>p {
	color: var(--ink-soft);
	max-width: 42rem;
	margin-bottom: 1em;
}

.tag-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.6em 1.5em;
}

@media (max-width: 600px) {
	.tag-list {
		grid-template-columns: 1fr;
	}
}

.tag-list li {
	position: relative;
	padding-left: 1.2em;
	color: var(--ink-soft);
}

.tag-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75em;
	width: 6px;
	height: 1px;
	background: var(--ink-faint);
}

.process-list {
	counter-reset: process;
	display: grid;
	gap: var(--space-sm);
}

.process-list li {
	counter-increment: process;
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	gap: var(--space-xs);
}

.process-list li::before {
	content: counter(process, decimal-leading-zero);
	font-family: var(--font-display);
	font-style: italic;
	color: var(--ink-faint);
}

.process-list strong {
	grid-column: 2;
	display: block;
	margin-bottom: 0.3em;
}

.process-list span {
	grid-column: 2;
	color: var(--ink-soft);
}

.process-list span:empty {
	display: none;
}

.sub-section {
	margin-top: var(--space-sm);
}

.sub-section h3 {
	margin-bottom: 0.5em;
}

.sub-section p {
	color: var(--ink-soft);
	max-width: 42rem;
}

/* ---------- 14. Archive / works ---------- */
.archive-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-sm);
}

@media (max-width: 700px) {
	.archive-grid {
		grid-template-columns: 1fr;
	}
}

.archive-card {
	border: 1px solid var(--line);
	padding: clamp(1.5rem, 2.5vw, 2.5rem);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.archive-card:hover {
	border-color: var(--ink);
	background: var(--surface);
}

.archive-card .kicker {
	margin-bottom: var(--space-sm);
}

.archive-card h2 {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
	margin-bottom: var(--space-sm);
}

.archive-card p {
	color: var(--ink-soft);
	margin-bottom: var(--space-sm);
}

.archive-intro {
	max-width: 42rem;
	color: var(--ink-soft);
	padding-block: var(--space-sm) var(--space-md);
	border-top: 1px solid var(--line);
	margin-top: var(--space-md);
}

/* ---------- 15. Profile ---------- */
.profile-meta {
	display: grid;
	gap: 0.9rem;
	max-width: 42rem;
}

.profile-meta>div {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: var(--space-xs);
	padding-block: 0.6rem;
	border-top: 1px solid var(--line);
}

.profile-meta dt {
	color: var(--ink-faint);
	font-size: var(--fs-sm);
}

.timeline {
	display: grid;
	gap: 0;
	max-width: 42rem;
}

.timeline-item {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: var(--space-xs);
	padding-block: var(--space-xs);
	border-top: 1px solid var(--line);
}

.timeline> :last-child {
	border-bottom: 1px solid var(--line);
}

.timeline-year {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--ink-faint);
}

@media (max-width: 500px) {

	.profile-meta>div,
	.timeline-item {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}
}

/* ---------- 16. Estimate ---------- */
.estimate-form {
	display: grid;
	gap: var(--space-md);
	max-width: 42rem;
}

.field-group {
	display: grid;
	gap: 0.8rem;
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--line);
}

.field-group legend,
.field-group .field-label {
	font-weight: 600;
	font-size: var(--fs-body);
	padding: 0;
}

.field-hint {
	font-size: var(--fs-sm);
	color: var(--ink-faint);
}

.option-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.6rem;
}

.option {
	position: relative;
}

.option input {
	position: absolute;
	opacity: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.option span {
	display: block;
	padding: 0.75em 1em;
	border: 1px solid var(--line);
	font-size: var(--fs-sm);
	text-align: center;
	transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.option input:checked+span {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.option input:focus-visible+span {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.form-actions {
	display: flex;
	justify-content: center;
	padding-top: var(--space-xs);
}

.estimate-result {
	margin-top: var(--space-lg);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--ink);
	max-width: 42rem;
	display: none;
}

.estimate-result.is-visible {
	display: block;
}

.result-figure {
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
	margin-bottom: 0.3em;
}

.result-duration {
	color: var(--ink-soft);
	margin-bottom: var(--space-sm);
}

.result-note {
	font-size: var(--fs-sm);
	color: var(--ink-faint);
	margin-bottom: var(--space-sm);
}

.result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
}

/* ---------- 17. Contact form (Contact Form 7) ---------- */
.contact-notes {
	max-width: 42rem;
	display: grid;
	gap: 0.6rem;
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--line);
}

/* reCAPTCHA v3のバッジを隠す場合、Googleの利用規約により注意書きの表示が必須 */
.grecaptcha-badge {
	visibility: hidden;
}

.recaptcha-notice {
	margin-top: var(--space-sm);
	font-size: var(--fs-sm);
	color: var(--ink-faint);
}

.recaptcha-notice a {
	color: inherit;
	text-decoration: underline;
}

.contact-notes li {
	position: relative;
	padding-left: 1.2em;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
}

.contact-notes li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 6px;
	height: 1px;
	background: var(--ink-faint);
}

.wpcf7-form {
	max-width: 42rem;
}

.wpcf7-form p {
	margin: 0 0 1.4rem;
}

.wpcf7-form label {
	display: block;
	font-size: var(--fs-sm);
	margin-bottom: 0.5rem;
	color: var(--ink-soft);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	font: inherit;
	padding: 0.85em 1em;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 2px;
	transition: border-color 0.15s var(--ease);
}

.wpcf7-form textarea {
	min-height: 10rem;
	resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	border-color: var(--ink);
	outline: none;
}

.wpcf7-form .wpcf7-list-item {
	margin: 0;
}

.wpcf7-form input[type="submit"] {
	appearance: none;
	font: inherit;
	font-size: var(--fs-sm);
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius-pill);
	padding: 0.9em 2.25em;
	cursor: pointer;
	transition: background-color 0.2s var(--ease);
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--ink-soft);
}

.wpcf7-form .wpcf7-not-valid {
	border-color: #a33 !important;
}

.wpcf7-form .wpcf7-not-valid-tip {
	font-size: var(--fs-sm);
	color: #a33;
	margin-top: 0.4em;
}

.wpcf7-form .wpcf7-response-output {
	margin-top: var(--space-sm);
	padding: 1em 1.25em;
	border: 1px solid var(--line);
}


/* ---------- 18. Footer ---------- */
.site-footer {
	background: var(--inverse-bg);
	color: var(--inverse-fg);
	padding-block: var(--space-lg) var(--space-sm);
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: var(--space-lg);
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--inverse-line);
}

.footer-brand .brand-mark {
	font-size: 1.85rem;
}

.footer-tagline {
	margin-top: var(--space-xs);
	font-size: var(--fs-sm);
	line-height: 1.7;
	color: rgba(247, 246, 243, 0.7);
	max-width: 26rem;
}

.footer-nav .nav-list {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
}

.footer-nav .nav-list a {
	color: var(--inverse-fg);
	opacity: 0.75;
}

.footer-nav .nav-list a:hover {
	opacity: 1;
}

.footer-meta p {
	color: rgba(247, 246, 243, 0.7);
	font-size: var(--fs-sm);
	margin-bottom: 0.4em;
}

.footer-bottom {
	padding-top: var(--space-sm);
	text-align: center;
}

.copyright {
	font-size: var(--fs-sm);
	color: rgba(247, 246, 243, 0.55);
}

@media (max-width: 760px) {
	.footer-inner {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}
}

/* ---------- 19. Back to top ---------- */
.back-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
	z-index: 500;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ---------- 20. Mobile CTA bar ---------- */
.mobile-cta-bar {
	display: none;
}

@media (max-width: 640px) {
	body.has-mobile-cta .mobile-cta-bar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 800;
		gap: 0.6rem;
		padding: 0.75rem clamp(1rem, 4vw, 1.5rem);
		background: var(--surface);
		border-top: 1px solid var(--line);
		padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
	}

	body.has-mobile-cta .mobile-cta-bar .btn {
		flex: 1;
		justify-content: center;
	}

	body.has-mobile-cta .back-to-top {
		bottom: 5.5rem;
	}

	body.has-mobile-cta main {
		padding-bottom: 4.5rem;
	}
}