/* ━━━ プロフィール詳細 ヒーロー ━━━ */
.pd-hero {
	background: linear-gradient( 135deg, #0A0E1A 0%, #003FCC 60%, #0055FF 100% );
	padding: clamp( 2.5rem, 6vw, 4rem ) 0;
	color: #fff;
	position: relative;
	overflow: hidden;
}
.pd-hero::before {
	content: '';
	position: absolute;
	top: -40%; right: -5%;
	width: 420px; height: 420px;
	background: rgba( 255,255,255,.04 );
	border-radius: 50%;
	pointer-events: none;
}

/* 2カラムグリッド: 左=画像、右=情報 */
.pd-hero__inner {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: clamp( 1.5rem, 4vw, 2.5rem );
	align-items: center;
	position: relative;
}

/* 画像 */
.pd-hero__img-wrap {
	width: 180px;
	height: 180px;
	border-radius: var( --r-card );
	overflow: hidden;
	border: 3px solid rgba( 255,255,255,.3 );
	flex-shrink: 0;
	background: rgba( 255,255,255,.1 );
}
.pd-hero__img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}

/* テキスト情報エリア */
.pd-hero__info {
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

/* 役職バッジ */
.pd-hero__role {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	background: rgba( 255,255,255,.18 );
	padding: .2rem .9rem;
	border-radius: var( --r-pill );
	letter-spacing: .05em;
	align-self: flex-start;
}

/* 名前 */
.pd-hero__name {
	font-size: clamp( 2rem, 5vw, 2.8rem );
	font-weight: 900;
	line-height: 1.1;
	margin: 0;
	color: #fff;
}

/* 格言 */
.pd-hero__motto {
	font-size: .95rem;
	opacity: .75;
	font-style: italic;
	margin: 0;
}

/* ニックネーム */
.pd-hero__nickname {
	font-size: .85rem;
	opacity: .7;
	margin: 0;
}

/* 基本情報 (生年月日・出身地) */
.pd-hero__meta {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	margin: .4rem 0 0;
}
.pd-hero__meta-row {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: .5rem;
	font-size: .85rem;
}
.pd-hero__meta-row dt { opacity: .6; }
.pd-hero__meta-row dd { font-weight: 600; }

/* ━━━ ボディエリア ━━━ */
/* プロフィール詳細テンプレート専用: site-layout の上 padding を除去してアイキャッチを詰める */
.page-template-page-profile-detail-php .site-layout {
	padding-block-start: 1.5rem;
}

.pd-body {
	padding: 0 0 1rem;
}

/* ━━━ Gutenberg 本文コンテンツ ━━━ */
.pd-entry-content {
	line-height: 1.85;
	font-size: .95rem;
}

/* Separator ブロックを非表示 */
.pd-entry-content .wp-block-separator,
.pd-entry-content hr {
	display: none;
}

/* 見出し */
.pd-entry-content h2 {
	font-size: 1.1rem;
	font-weight: 800;
	margin: 2rem 0 .75rem;
	padding: .5rem .85rem;
	background: var( --c-blue-lt );
	border-left: 4px solid var( --c-blue );
	border-radius: 0 var( --r-sm ) var( --r-sm ) 0;
	color: var( --c-blue );
}
.pd-entry-content h2:first-child { margin-top: 0; }
.pd-entry-content h3 {
	font-size: 1rem;
	font-weight: 700;
	margin: 1.5rem 0 .5rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}
.pd-entry-content h3::before {
	content: '';
	display: inline-block;
	width: 6px; height: 6px;
	background: var( --c-blue );
	border-radius: 50%;
	flex-shrink: 0;
}
.pd-entry-content h4,
.pd-entry-content h5,
.pd-entry-content h6 {
	font-size: .88rem;
	font-weight: 700;
	color: var( --c-muted );
	margin: 1.25rem 0 .3rem;
}

/* 段落・リスト */
.pd-entry-content p { margin-bottom: .85rem; }
.pd-entry-content ul,
.pd-entry-content ol {
	padding-left: 1.4rem;
	margin-bottom: 1rem;
}
.pd-entry-content li { margin-bottom: .3rem; }

/* 画像 */
.pd-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var( --r-card );
	display: block;
}
.pd-entry-content figure {
	margin: 1rem 0 1.5rem;
}
.pd-entry-content figcaption {
	font-size: .78rem;
	color: var( --c-muted );
	text-align: center;
	margin-top: .4rem;
}
.pd-entry-content .wp-block-image.size-large img {
	box-shadow: var( --shadow-card );
}

/* ギャラリー */
.pd-entry-content .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: .75rem;
}
.pd-entry-content .wp-block-gallery figure { margin: 0; }
.pd-entry-content .wp-block-gallery img {
	width: 100%; height: 200px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

/* ━━━ メタフォールバック セクション共通 ━━━ */
.pd-section {
	background: #fff;
	border-radius: var( --r-card );
	box-shadow: var( --shadow-card );
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.25rem;
}
.pd-section__title {
	display: flex;
	align-items: center;
	gap: .55rem;
	font-size: 1rem;
	font-weight: 800;
	margin-bottom: 1rem;
}
.pd-section__icon {
	width: 28px; height: 28px;
	background: var( --c-blue-lt );
	border-radius: var( --r-sm );
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .95rem;
	flex-shrink: 0;
}

/* 所属リスト */
.pd-list { display: flex; flex-direction: column; }
.pd-list__item {
	padding: .45rem 0;
	border-bottom: 1px dashed var( --c-border );
	font-size: .9rem;
}
.pd-list__item:last-child { border-bottom: none; }

/* タイムライン */
.pd-timeline { display: flex; flex-direction: column; }
.pd-timeline__item {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 1rem;
	align-items: baseline;
	padding: .5rem 0;
	border-bottom: 1px dashed var( --c-border );
	font-size: .88rem;
}
.pd-timeline__item:last-child { border-bottom: none; }
.pd-timeline__date {
	color: var( --c-blue );
	font-weight: 700;
	font-size: .78rem;
	white-space: nowrap;
}

/* バッジ */
.pd-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.pd-badge {
	display: inline-flex;
	align-items: center;
	padding: .35rem 1rem;
	background: var( --c-blue-lt );
	color: var( --c-blue );
	border-radius: var( --r-pill );
	font-size: .82rem;
	font-weight: 700;
}

/* 趣味 */
.pd-hobbies { display: flex; flex-direction: column; }
.pd-hobby {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: .75rem 0;
	border-bottom: 1px dashed var( --c-border );
}
.pd-hobby:last-child { border-bottom: none; }
.pd-hobby__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: .1rem; }
.pd-hobby__title { font-size: .95rem; font-weight: 800; margin-bottom: .2rem; }
.pd-hobby__text { font-size: .85rem; color: var( --c-muted ); line-height: 1.75; }

/* ━━━ アイキャッチ画像 ━━━ */
.pd-eyecatch {
	margin-top: 0;
	margin-bottom: 1.5rem;
	border-radius: var( --r-card, .75rem );
	overflow: hidden;
	line-height: 0;
}
.pd-eyecatch img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* ━━━ 戻るリンク ━━━ */
.pd-back-link {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var( --c-border );
}
.pd-back-link a {
	font-size: .88rem;
	color: var( --c-blue );
	font-weight: 700;
	text-decoration: none;
}
.pd-back-link a:hover { text-decoration: underline; }

/* ━━━ レスポンシブ ━━━ */
@media ( max-width: 640px ) {
	.pd-hero__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.pd-hero__img-wrap {
		width: 130px; height: 130px;
		margin-inline: auto;
	}
	.pd-hero__role { align-self: center; }
	.pd-hero__meta { align-items: center; }
	.pd-hero__meta-row { grid-template-columns: 1fr; gap: .1rem; text-align: left; }
	.pd-timeline__item { grid-template-columns: 1fr; gap: .1rem; }
}
