/*
 * Xwriter Interview theme.css
 * 依存ゼロ・ビルド工程なしの1ファイルCSS。カスタムプロパティベース。
 * !important は #toc_container（table-of-contents-plus プラグイン）上書きのみで使用。
 */

/* ============ 1. カスタムプロパティ ============ */
:root {
	--navy: #171951;
	--navy-deep: #0e0d3a;
	--navy-soft: #23265f;
	--teal: #20c3ac;
	--teal-cyan: #00b5c2;
	--teal-dark: #1a5152;
	--teal-grad: linear-gradient(90deg, #1b809e 0%, #298d94 50%, #3ead86 100%);
	--teal-grad-soft: linear-gradient(120deg, #20c3ac 0%, #00b5c2 100%);
	--ink: #23263a;
	--muted: #6b7280;
	--muted-light: #aeb4d0;
	--line: #e6e9f2;
	--line-dark: rgba(255, 255, 255, .14);
	--paper: #ffffff;
	--paper-2: #f5f7fb;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 18px 50px -20px rgba(23, 25, 81, .35);
	--shadow-sm: 0 6px 24px -12px rgba(23, 25, 81, .30);
	--font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", sans-serif;
	--font-serif: "Shippori Mincho", serif;
	--maxw: 1140px;
	--maxw-article: 760px;
	--ease: cubic-bezier(.22, .61, .36, 1);

	/* テーマ独自の追加変数 */
	--maxw-header: 900px;
	--maxw-thumb: 1000px;
	--gutter: 24px;
	--gutter-mobile: 16px;
	--header-h: 76px;
	--dur: 260ms;
}

/* ============ 2. リセット・ベース ============ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

/* overflow-x は body にのみ指定する（html にも付けると body へ伝播せず body がスクロールコンテナ化し、
   sticky ヘッダーと .xi-scroll-lock の背景スクロール固定が効かなくなる）。 */
body {
	margin: 0;
	min-width: 0;
	overflow-x: hidden;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* display:block は本文(.entry-content)の既存記事に影響するためここでは付けず、
   テーマ側の各画像セレクタで個別に指定する。 */
img,
svg,
video {
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0;
}

table {
	border-collapse: collapse;
}

:focus-visible {
	outline: 3px solid var(--teal-cyan);
	outline-offset: 2px;
	border-radius: 4px;
}

.xi-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--navy);
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
	border-radius: 0 0 var(--radius-sm) 0;
	font-size: 14px;
}

.xi-skip-link:focus {
	left: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
}

/* ============ 3. レイアウト（コンテナ・グリッド） ============ */
.xi-container,
.xi-container-article,
.xi-container-header,
.xi-container-thumb {
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.xi-container {
	max-width: var(--maxw);
}

.xi-container-article {
	max-width: var(--maxw-article);
}

.xi-container-header {
	max-width: var(--maxw-header);
}

.xi-container-thumb {
	max-width: var(--maxw-thumb);
}

.xi-section {
	padding: 72px 0;
}

.xi-grid {
	display: grid;
	gap: 28px;
	min-width: 0;
}

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

@media (max-width: 900px) {
	.xi-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.xi-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.xi-container,
	.xi-container-article,
	.xi-container-header,
	.xi-container-thumb {
		padding: 0 var(--gutter-mobile);
	}
}

@media (max-width: 899.98px) {
	.xi-section {
		padding: 48px 0;
	}
}

/* ============ 4. ボタン・テキストリンク ============ */
.xi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	padding: .8em 1.6em;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 700;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
	white-space: nowrap;
}

.xi-btn--teal {
	background: var(--teal-grad);
	color: #fff;
	box-shadow: var(--shadow-sm);
}

.xi-btn--teal:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.xi-btn--outline {
	border: 1.5px solid var(--navy);
	color: var(--navy);
	background: transparent;
}

.xi-btn--outline:hover {
	background: var(--navy);
	color: #fff;
}

.xi-btn--outline-light {
	border: 1.5px solid rgba(255, 255, 255, .6);
	color: #fff;
	background: transparent;
}

.xi-btn--outline-light:hover {
	background: #fff;
	color: var(--navy);
}

.xi-btn--lg {
	padding: 1em 2em;
	font-size: 15.5px;
}

.xi-text-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--teal-dark);
	text-decoration: underline;
	text-decoration-color: var(--teal);
}

.xi-text-link:hover {
	color: var(--teal);
}

/* ============ 5. ヘッダー・ナビゲーション ============ */
.xi-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.xi-header__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter);
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.xi-header__brand {
	min-width: 0;
}

.xi-header__logo {
	display: flex;
	align-items: center;
}

.xi-header__logo img {
	display: block;
	max-height: 44px;
	width: auto;
}

.xi-header__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.xi-header__logo-main {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 22px;
	color: var(--navy);
}

.xi-header__logo-sub {
	font-size: 11px;
	color: var(--muted);
	letter-spacing: .05em;
}

.xi-header__nav {
	min-width: 0;
}

.xi-nav-list {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}

.xi-nav-list a {
	display: inline-block;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink);
	white-space: nowrap;
}

.xi-nav-list a:hover {
	color: var(--teal-dark);
}

.xi-nav-list li.btn a {
	background: var(--teal-grad);
	color: #fff;
	padding: .55em 1.2em;
	border-radius: 999px;
	font-weight: 700;
}

.xi-header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	flex-shrink: 0;
}

.xi-header__burger-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.xi-header__burger[aria-expanded="true"] .xi-header__burger-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.xi-header__burger[aria-expanded="true"] .xi-header__burger-bar:nth-child(2) {
	opacity: 0;
}

.xi-header__burger[aria-expanded="true"] .xi-header__burger-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.xi-drawer {
	display: none;
	position: fixed;
	top: var(--header-h);
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--header-h));
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
	z-index: 490;
	overflow-y: auto;
	transform: translateY(-8px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur);
}

.xi-drawer.is-open {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.xi-drawer__nav {
	padding: 20px var(--gutter-mobile) 28px;
}

.xi-drawer-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.xi-drawer-list a {
	display: block;
	padding: .85em .2em;
	font-size: 16px;
	font-weight: 500;
	border-bottom: 1px solid var(--line);
	overflow-wrap: anywhere;
}

.xi-drawer-list li.btn a {
	background: var(--teal-grad);
	color: #fff;
	border-radius: var(--radius-sm);
	text-align: center;
	border-bottom: none;
	margin-top: 8px;
	padding: .8em 1em;
}

.xi-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(14, 13, 58, .45);
	z-index: 480;
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}

.xi-drawer-overlay.is-open {
	opacity: 1;
}

.xi-drawer-overlay[hidden] {
	display: none;
}

body.xi-scroll-lock {
	overflow: hidden;
}

@media (max-width: 899.98px) {
	.xi-header__nav {
		display: none;
	}

	.xi-header__burger {
		display: flex;
	}

	.xi-drawer {
		display: block;
	}
}

/* ============ 6. フッター ============ */
.xi-footer {
	background: var(--navy-deep);
	color: #fff;
	margin-top: 80px;
}

.xi-footer__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 56px var(--gutter) 32px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.xi-footer__logo {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 700;
}

.xi-footer__tagline {
	margin-top: .6em;
	color: var(--muted-light);
	font-size: 14px;
}

.xi-footer-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.xi-footer-list a {
	color: var(--muted-light);
	font-size: 14px;
}

.xi-footer-list a:hover {
	color: #fff;
}

.xi-footer__bottom {
	border-top: 1px solid var(--line-dark);
	padding: 20px var(--gutter);
	text-align: center;
	font-size: 13px;
	color: var(--muted-light);
}

.xi-footer__note {
	margin-left: .6em;
}

@media (max-width: 899.98px) {
	.xi-footer__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		text-align: center;
	}
}

/* ============ 7. ヒーロー（トップ） ============ */
.xi-hero {
	background: var(--navy-deep);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.xi-hero::after {
	content: "";
	position: absolute;
	top: -140px;
	right: -140px;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(32, 195, 172, .35), transparent 70%);
	pointer-events: none;
}

.xi-hero__inner {
	position: relative;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 72px var(--gutter) 64px;
	display: grid;
	grid-template-columns: minmax(0, 58%) minmax(0, 42%);
	gap: 48px;
	align-items: center;
}

.xi-hero__text {
	min-width: 0;
}

/* 取材する人を出さないときは1カラムのテキストヒーロー */
.xi-hero__inner--solo {
	grid-template-columns: minmax(0, 1fr);
}

.xi-hero__inner--solo .xi-hero__text {
	max-width: 760px;
}

.xi-hero__title {
	font-family: var(--font-serif);
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.35;
	margin: .5em 0 .6em;
	overflow-wrap: anywhere;
}

.xi-hero__sub {
	color: var(--muted-light);
	font-size: 16px;
	line-height: 1.9;
	max-width: 36em;
}

.xi-hero__actions {
	display: flex;
	gap: 14px;
	margin-top: 2em;
	flex-wrap: wrap;
}

.xi-hero__photo {
	min-width: 0;
}

.xi-hero__photo-frame {
	margin: 0 14px 14px 0;
}

.xi-hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 14px 14px 0 0 var(--teal);
}

.xi-hero__caption {
	margin-top: 1.4em;
	text-align: center;
}

.xi-hero__caption-name {
	display: block;
	font-weight: 700;
}

.xi-hero__caption-role {
	display: block;
	font-size: 13px;
	color: var(--muted-light);
	margin-top: .2em;
}

@media (max-width: 899.98px) {
	.xi-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		padding: 56px var(--gutter-mobile) 48px;
		gap: 32px;
	}

	.xi-hero__photo {
		max-width: 280px;
		margin: 8px auto 0;
	}
}

/* ============ 8. セクション見出し・eyebrow・チップ ============ */
.xi-eyebrow {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--teal-dark);
	text-transform: uppercase;
	margin-bottom: .6em;
}

.xi-eyebrow--light {
	color: var(--teal);
}

.xi-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}

.xi-section-head__title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: clamp(22px, 3.2vw, 30px);
	color: var(--navy);
}

.xi-section-head__link {
	font-size: 14px;
	font-weight: 700;
	color: var(--teal-dark);
	white-space: nowrap;
}

.xi-section-head__link:hover {
	color: var(--teal);
}

.xi-chip {
	display: inline-flex;
	align-items: center;
	padding: .35em 1em;
	border-radius: 999px;
	background: rgba(32, 195, 172, .12);
	color: var(--teal-dark);
	font-size: 12.5px;
	font-weight: 700;
	margin-bottom: 1em;
}

.xi-chip--small {
	margin: .2em 0 0;
	font-size: 12px;
	padding: .25em .8em;
}

.xi-guest-box__industry {
	margin: .1em 0 .4em;
}

.xi-chip--card {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--navy);
	color: #fff;
	margin-bottom: 0;
}

/* ============ 9. カード ============ */
.xi-card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
	min-width: 0;
}

.xi-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-sm);
}

.xi-card__link {
	display: block;
	color: inherit;
}

.xi-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--paper-2);
	overflow: hidden;
}

.xi-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 取材カードは人物写真(4:3想定)を上寄せでトリミング（顔が上半分にあるため） */
.xi-card--interview .xi-card__thumb img {
	object-position: center top;
}

.xi-card__thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
}

.xi-card__body {
	padding: 20px;
	min-width: 0;
}

.xi-card--interview .xi-card__title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.5;
	color: var(--navy);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: .6em;
	overflow-wrap: anywhere;
}

.xi-card--compact .xi-card__title {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: .6em;
	overflow-wrap: anywhere;
}

.xi-card__guest {
	font-size: 13.5px;
	color: var(--muted);
	margin-bottom: .3em;
	overflow-wrap: anywhere;
}

.xi-card__date,
.xi-card__reading {
	font-size: 12.5px;
	color: var(--muted);
}

.xi-card__meta {
	display: flex;
	align-items: center;
	gap: .4em;
}

.xi-card__dot {
	color: var(--muted-light);
}

/* ============ 10. 最新取材の大型カード ============ */
.xi-card-featured {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 36px;
	background: var(--paper);
}

.xi-card-featured__link {
	display: grid;
	grid-template-columns: minmax(0, 55%) minmax(0, 45%);
	min-width: 0;
	color: inherit;
}

.xi-card-featured__thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--paper-2);
	overflow: hidden;
}

.xi-card-featured__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xi-card-featured__thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
}

.xi-card-featured__body {
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.xi-card-featured__title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: clamp(20px, 2.4vw, 26px);
	color: var(--navy);
	line-height: 1.5;
	margin: .5em 0;
	overflow-wrap: anywhere;
}

.xi-card-featured__lead {
	font-size: 14.5px;
	color: var(--muted);
	line-height: 1.8;
	margin-bottom: .8em;
	overflow-wrap: anywhere;
}

.xi-card-featured__guest {
	font-size: 13.5px;
	color: var(--ink);
	margin-bottom: .3em;
	overflow-wrap: anywhere;
}

.xi-card-featured__date {
	font-size: 12.5px;
	color: var(--muted);
	margin-bottom: 1em;
}

.xi-card-featured__cta {
	font-size: 14px;
	font-weight: 700;
	color: var(--teal-dark);
}

@media (max-width: 899.98px) {
	.xi-card-featured__link {
		grid-template-columns: minmax(0, 1fr);
	}

	.xi-card-featured__thumb {
		aspect-ratio: 16 / 10;
	}

	.xi-card-featured__body {
		padding: 24px;
	}
}

/* ============ 11. 空状態 ============ */
.xi-empty-state {
	border: 1.5px dashed var(--line);
	border-radius: var(--radius);
	padding: 56px 24px;
	text-align: center;
	color: var(--muted);
}

.xi-empty-state form {
	margin-top: 1.4em;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

/* ============ 12. 取材する人（トップの帯 / プロフィールヒーロー） ============ */
.xi-section--profile {
	background: var(--paper-2);
}

.xi-profile-band {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 32px;
}

.xi-profile-band__photo img {
	display: block;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
}

.xi-profile-band__body {
	min-width: 0;
}

.xi-profile-band__name {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 20px;
	color: var(--navy);
}

.xi-profile-band__role {
	font-size: 13.5px;
	color: var(--muted);
	margin-top: .3em;
}

.xi-profile-band__intro {
	margin-top: .8em;
	color: var(--ink);
	line-height: 1.8;
	max-width: 44em;
	overflow-wrap: anywhere;
}

.xi-profile-band__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 1.2em;
	flex-wrap: wrap;
}

@media (max-width: 640px) {
	.xi-profile-band {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.xi-profile-band__photo {
		display: flex;
		justify-content: center;
	}

	.xi-profile-band__actions {
		justify-content: center;
	}
}

.xi-profile-hero {
	background: var(--paper-2);
	padding: 64px 0;
}

.xi-profile-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}

.xi-profile-hero__photo img {
	display: block;
	width: 100%;
	max-width: 360px;
	border-radius: var(--radius);
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.xi-profile-hero__body {
	min-width: 0;
}

.xi-profile-hero__name {
	font-family: var(--font-serif);
	font-size: clamp(26px, 3.6vw, 36px);
	color: var(--navy);
	margin: .4em 0 .3em;
	overflow-wrap: anywhere;
}

.xi-profile-hero__role {
	color: var(--muted);
	font-size: 15px;
	margin-bottom: .8em;
}

.xi-profile-hero__intro {
	line-height: 1.9;
	color: var(--ink);
	max-width: 44em;
	overflow-wrap: anywhere;
}

.xi-profile-hero__x {
	margin-top: 1em;
}

.xi-profile-hero__x a {
	color: var(--teal-dark);
	font-weight: 700;
}

@media (max-width: 899.98px) {
	.xi-profile-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
	}

	.xi-profile-hero__photo img {
		margin: 0 auto;
		max-width: 220px;
	}
}

/* ============ 13. CTA ============ */
.xi-cta {
	background: var(--navy);
	color: #fff;
	padding: 64px 0;
}

.xi-cta__inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
}

.xi-cta__text {
	min-width: 0;
}

.xi-cta__title {
	font-family: var(--font-serif);
	font-size: clamp(22px, 2.8vw, 28px);
	margin-bottom: .5em;
	overflow-wrap: anywhere;
}

.xi-cta__body {
	color: var(--muted-light);
	line-height: 1.8;
	max-width: 48em;
	overflow-wrap: anywhere;
}

@media (max-width: 899.98px) {
	.xi-cta__inner {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
		padding: 0 var(--gutter-mobile);
	}
}

/* ============ 14. 取材先プロフィール枠・取材した人枠 ============ */
.xi-guest-box {
	display: flex;
	gap: 18px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-2);
	margin: 1.6em 0;
	min-width: 0;
}

.xi-guest-box--short {
	align-items: center;
}

.xi-guest-box--full {
	align-items: flex-start;
}

.xi-guest-box__photo {
	flex-shrink: 0;
}

.xi-guest-box__photo img {
	display: block;
}

.xi-guest-box--short .xi-guest-box__photo img {
	width: 96px;
	height: 96px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

.xi-guest-box--full .xi-guest-box__photo img {
	width: 140px;
	height: 140px;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

.xi-guest-box__body {
	min-width: 0;
	flex: 1;
}

.xi-guest-box__label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--teal-dark);
	text-transform: uppercase;
	margin-bottom: .3em;
}

.xi-guest-box__name {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 17px;
	color: var(--navy);
	overflow-wrap: anywhere;
}

.xi-guest-box__role {
	font-size: 13.5px;
	color: var(--muted);
	margin-top: .2em;
	overflow-wrap: anywhere;
}

.xi-guest-box__url {
	margin-top: .6em;
	overflow-wrap: anywhere;
}

.xi-guest-box__url a {
	color: var(--teal-dark);
	font-size: 13.5px;
	word-break: break-all;
}

.xi-guest-box__profile {
	margin-top: .8em;
	font-size: 14.5px;
	line-height: 1.85;
	color: var(--ink);
}

.xi-guest-box__profile p {
	margin: 0 0 1em;
}

@media (max-width: 480px) {
	.xi-guest-box--full {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

.xi-ceo-box {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 28px 0;
	margin: 2em 0;
}

.xi-ceo-box__label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--muted);
	text-transform: uppercase;
	margin-bottom: .8em;
}

.xi-ceo-box__row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	min-width: 0;
}

.xi-ceo-box__img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.xi-ceo-box__body {
	min-width: 0;
}

.xi-ceo-box__name {
	font-weight: 700;
	color: var(--navy);
}

.xi-ceo-box__role {
	font-size: 13px;
	color: var(--muted);
	margin-top: .15em;
}

.xi-ceo-box__intro {
	font-size: 14px;
	color: var(--ink);
	margin-top: .5em;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.xi-ceo-box__link {
	margin-top: .5em;
}

.xi-ceo-box__link a {
	color: var(--teal-dark);
	font-weight: 700;
	font-size: 13.5px;
}

/* ============ 15. 記事詳細（ヘッダー・シェア・関連・前後ナビ） ============ */
.xi-single__header {
	padding-top: 48px;
	padding-bottom: 32px;
}

.xi-breadcrumb {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 1.2em;
	display: flex;
	align-items: center;
	gap: .4em;
	flex-wrap: wrap;
}

.xi-breadcrumb a {
	color: var(--muted);
}

.xi-breadcrumb a:hover {
	color: var(--teal-dark);
}

.xi-breadcrumb__sep {
	color: var(--muted-light);
}

.xi-single__title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.45;
	color: var(--navy);
	margin-bottom: .8em;
	overflow-wrap: anywhere;
}

.xi-single__meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13.5px;
	color: var(--muted);
}

.xi-single__thumb {
	margin-bottom: 48px;
}

.xi-single__thumb img {
	width: 100%;
	border-radius: var(--radius);
	display: block;
}

.xi-single__lead {
	margin-bottom: 40px;
	font-family: var(--font-serif);
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.9;
	color: var(--ink);
	padding-left: 1.2em;
	border-left: 3px solid var(--teal);
	overflow-wrap: anywhere;
}

.xi-single__after {
	margin-top: 56px;
}

.xi-single__after > * + * {
	margin-top: 40px;
}

.xi-share {
	padding: 28px 0;
	border-top: 1px solid var(--line);
}

.xi-share__label {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: .8em;
}

.xi-share__list {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.xi-share__link {
	display: inline-flex;
	align-items: center;
	padding: .6em 1.2em;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.xi-share__link:hover {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}

.xi-share__link--copy.is-copied {
	background: var(--teal);
	color: #fff;
	border-color: var(--teal);
}

.xi-post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.xi-post-nav__link {
	display: flex;
	flex-direction: column;
	gap: .4em;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	min-width: 0;
}

.xi-post-nav__link--next {
	text-align: right;
	align-items: flex-end;
}

.xi-post-nav__label {
	font-size: 12px;
	color: var(--muted);
	font-weight: 700;
}

.xi-post-nav__title {
	font-size: 14.5px;
	color: var(--ink);
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}

@media (max-width: 640px) {
	.xi-post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.xi-post-nav__link--next {
		text-align: left;
		align-items: flex-start;
	}
}

/* ============ 16. 本文（entry-content） ============ */
.entry-content {
	font-size: 16.5px;
	line-height: 1.95;
	color: var(--ink);
	overflow-wrap: anywhere;
	min-width: 0;
}

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

/* クラシック記事・ブロック共通の配置クラス（WP 標準）。既存記事の aligncenter 等を壊さないための最低限。 */
.entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignleft {
	float: left;
	margin: .4em 1.4em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: .4em 0 1em 1.4em;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .wp-caption-text {
	padding: .6em .9em;
	font-size: .85em;
	color: var(--muted);
	text-align: center;
}

.entry-content::after {
	content: "";
	display: block;
	clear: both;
}

.entry-content p {
	margin: 0 0 1.6em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.6em;
	padding-left: 1.4em;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin-bottom: .5em;
}

.entry-content h2 {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: clamp(22px, 3vw, 28px);
	color: var(--navy);
	margin: 2em 0 .8em;
	padding-bottom: .5em;
	border-bottom: 3px solid var(--teal);
	display: inline-block;
}

.entry-content h3 {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: clamp(18px, 2.4vw, 22px);
	color: var(--navy);
	margin: 1.8em 0 .7em;
	padding-left: .7em;
	border-left: 4px solid var(--teal);
}

.entry-content h4 {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 17px;
	color: var(--navy);
	margin: 1.6em 0 .6em;
}

.entry-content strong {
	color: var(--navy);
}

.entry-content a {
	color: var(--teal-dark);
	text-decoration: underline;
	text-decoration-color: var(--teal);
	text-underline-offset: .15em;
	transition: color var(--dur) var(--ease);
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1em 1.4em;
	border-left: 4px solid var(--teal);
	background: var(--paper-2);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--ink);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content figure {
	margin: 1.6em 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--paper-2);
}

.entry-content figcaption {
	padding: .6em .9em;
	font-size: .85em;
	color: var(--muted);
	text-align: center;
	background: var(--paper-2);
}

.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	margin: 1.6em 0;
	font-size: 15px;
	border-collapse: collapse;
}

.entry-content table th,
.entry-content table td {
	padding: .6em .9em;
	border: 1px solid var(--line);
	text-align: left;
}

.entry-content table thead th {
	background: var(--paper-2);
	font-weight: 700;
	color: var(--navy);
}

.entry-content table tbody tr:nth-child(even) {
	background: var(--paper-2);
}

.entry-content code {
	background: var(--paper-2);
	padding: .15em .4em;
	border-radius: 4px;
	font-size: .9em;
}

.entry-content pre {
	background: var(--navy-deep);
	color: #e8ecff;
	padding: 1.2em;
	border-radius: var(--radius-sm);
	overflow-x: auto;
	font-size: .85em;
	line-height: 1.7;
	margin: 1.6em 0;
}

.entry-content pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.entry-content mark {
	background: rgba(32, 195, 172, .22);
	color: inherit;
	padding: .05em .2em;
	border-radius: 3px;
}

.entry-content hr {
	border: none;
	border-top: 1px solid var(--line);
	margin: 2.4em 0;
}

.entry-content .xi-q {
	font-family: var(--font-serif);
	font-weight: 700;
	color: var(--navy);
	margin-top: 2em;
	padding-left: 1em;
	border-left: 3px solid var(--teal);
}

/* table-of-contents-plus（#toc_container）の局所上書き。
   プラグイン側スタイルの読み込み順に依存しないため、この箇所のみ !important を使用する。 */
#toc_container {
	background: var(--paper-2) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	padding: 1.2em 1.4em !important;
	margin: 0 0 2em !important;
	box-shadow: none !important;
	font-family: var(--font-sans) !important;
	float: none !important;
	width: auto !important;
}

#toc_container p.toc_title {
	font-family: var(--font-serif) !important;
	font-weight: 700 !important;
	color: var(--navy) !important;
	font-size: 16px !important;
	margin: 0 0 .6em !important;
}

#toc_container ul {
	margin: 0 !important;
	padding-left: 1.2em !important;
}

#toc_container li {
	margin-bottom: .3em !important;
}

#toc_container a {
	color: var(--teal-dark) !important;
	text-decoration: none !important;
}

#toc_container a:hover {
	color: var(--teal) !important;
	text-decoration: underline !important;
}

/* ============ 17. ページヘッダー（archive/home/search）・404 ============ */
.xi-page-header {
	background: var(--navy-deep);
	color: #fff;
	padding: 56px 0 40px;
}

.xi-page-header__title {
	font-family: var(--font-serif);
	font-size: clamp(26px, 3.6vw, 36px);
	margin: .4em 0 .5em;
	overflow-wrap: anywhere;
}

.xi-page-header__desc {
	color: var(--muted-light);
	line-height: 1.8;
	max-width: 56em;
	margin-bottom: .8em;
	overflow-wrap: anywhere;
}

.xi-page-header__count {
	font-size: 13px;
	color: var(--muted-light);
}

.xi-404 .xi-404__inner {
	text-align: center;
	padding-top: 64px;
	padding-bottom: 64px;
}

.xi-404__title {
	font-family: var(--font-serif);
	font-size: clamp(26px, 3.6vw, 34px);
	color: var(--navy);
	margin-bottom: .6em;
}

.xi-404__text {
	color: var(--muted);
	margin-bottom: 1.6em;
}

.xi-404__search {
	max-width: 420px;
	margin: 0 auto 2em;
}

.xi-404__links {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.xi-404__links a {
	color: var(--teal-dark);
	font-weight: 700;
	font-size: 14px;
}

/* ============ 18. 固定ページ・検索フォーム・ページネーション ============ */
.xi-page__header {
	padding-top: 56px;
	margin-bottom: 24px;
}

.xi-page__title {
	font-family: var(--font-serif);
	font-size: clamp(26px, 3.6vw, 36px);
	color: var(--navy);
	overflow-wrap: anywhere;
}

.xi-page__content {
	padding-bottom: 64px;
}

.xi-profile-hero + .xi-page .xi-page__content {
	padding-top: 56px;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
	padding: .7em 1em;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	background: var(--paper);
	color: var(--ink);
}

.search-form .search-submit {
	padding: .7em 1.4em;
	border-radius: 999px;
	background: var(--teal-grad);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	border: 0;
	flex-shrink: 0;
}

.pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.pagination .nav-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 .6em;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--ink);
}

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

.pagination .page-numbers.dots {
	border: none;
}

/* ============ 19. モーション低減設定（既存の transition 定義を上書き） ============ */
@media (prefers-reduced-motion: reduce) {
	.xi-header__burger-bar,
	.xi-drawer,
	.xi-drawer-overlay,
	.entry-content a,
	.xi-btn,
	.xi-card,
	.xi-share__link {
		transition-duration: .001ms;
	}

	.xi-btn--teal:hover,
	.xi-card:hover {
		transform: none;
	}
}
