/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   管理者入力の「改行・空行」を100%そのまま再現する
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ginga-column-entry .column-lead-box,
.ginga-column-entry .section-body {
	white-space: pre-wrap;
	line-height: 2;
	word-wrap: break-word;
	display: block;
}

/* 執筆者メッセージ（改行維持。色・行間は __body 内で指定） */
.ginga-column-entry .column-author-message {
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* コラム本文ブロック内の段落（行間・段落間を確保） */
.ginga-column-entry .section-body p {
	margin: 0 0 1.5em !important;
	padding: 0 !important;
	line-height: 2 !important;
}

.ginga-column-entry .section-body p:last-child {
	margin-bottom: 0 !important;
}

.ginga-column-entry .column-lead-box::before,
.ginga-column-entry .section-body::before {
	content: none !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   記事ページ：見出し・本文・アイキャッチ・引用
   （SWELL は .post_content。.p-postContent は未使用だが指定どおり併記）
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* H2見出し：背景を確実に消す（左ボーダーのみ）— .ginga-column-entry（single-column.php）内のみ */
.ginga-column-entry .p-postContent h2,
.ginga-column-entry .post_content h2,
.ginga-column-entry .swell-block-heading h2,
.ginga-column-entry h2.wp-block-heading,
.ginga-column-entry .post_content h2.column-h2 {
	background: transparent !important;
	background-color: transparent !important;
	border-left: 3px solid var(--depth-700) !important;
	border-bottom: none !important;
	border-top: none !important;
	border-right: none !important;
	padding: 8px 16px !important;
	font-family: "Shippori Mincho B1", "Shippori Mincho", serif;
	font-size: 18px !important;
	font-weight: 600;
	color: var(--depth-700) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin-top: 2em;
	margin-bottom: 1em;
	line-height: 1.5;
}

/* H3見出し（執筆者カード内の h3 は対象外）— コラム単体のみ */
.ginga-column-entry .p-postContent h3,
.ginga-column-entry .post_content h3.column-h3,
.ginga-column-entry .post_content h3.wp-block-heading,
.ginga-column-entry .swell-block-heading h3 {
	border-bottom: 1px solid var(--sacred-gold);
	border-left: none;
	padding-left: 0;
	padding-bottom: 6px;
	font-family: "Shippori Mincho B1", "Shippori Mincho", serif;
	font-size: 16px;
	color: var(--depth-500);
	background: transparent !important;
	margin-top: 1.5em;
	margin-bottom: 0.85em;
}

/* 本文行間 — コラム単体のみ */
.ginga-column-entry .p-postContent p,
.ginga-column-entry .post_content > p,
.ginga-column-entry .post_content .wp-block-paragraph,
.ginga-column-entry .post_content .wp-block-group p,
.ginga-column-entry .post_content .wp-block-column p {
	line-height: 2;
	margin-bottom: 1.5em;
	font-size: 15px;
}

.ginga-column-entry .post_content > p:last-child,
.ginga-column-entry .post_content .wp-block-group p:last-child {
	margin-bottom: 0;
}

/* Flexible「関連記事」ブロック：TOP と同じ ocean-column カードを記事内に配置 */
.ginga-column-entry .ginga-column-related-inline .ginga-column-related-inline__grid.ocean-column-container {
	padding: 12px 0 0;
}

.ginga-column-entry .ginga-column-related-inline .ocean-column-title {
	padding-top: 12px;
}

@media (max-width: 640px) {
	.ginga-column-entry .ginga-column-related-inline .ocean-column-container {
		grid-template-columns: 1fr;
	}
}

/* 関連記事：SWELL 投稿リスト（カード型）を記事内で使うとき */
.ginga-column-entry .ginga-column-related-inline .ginga-column-related-swell-card {
	margin-top: 0.75em;
}

.ginga-column-entry .post_content .column-author-card .column-author-message p {
	line-height: 1.75;
	margin: 0 0 0.75em;
	font-size: inherit;
}

.ginga-column-entry .post_content .column-author-card .column-author-message p:last-child {
	margin-bottom: 0;
}

/* リード文直下の目次 */
.ginga-column-entry .ginga-column-inline-toc {
	margin: 1.25em 0 2.25em;
}

/* 記事内画像の角丸（SWELL のアイキャッチクラスを含む）— ocean-column サムネは除外。コラム単体のみ */
.ginga-column-entry .p-postContent img:not(.ocean-column-thumb),
.ginga-column-entry .post_content img:not(.ocean-column-thumb),
.ginga-column-entry .wp-post-image:not(.ocean-column-thumb),
.ginga-column-entry .p-article__thumbnail img,
.ginga-column-entry .p-article__thumbnail .column-article-thumb,
.ginga-column-entry .p-articleThumb__img,
.ginga-column-entry figure.p-articleThumb img {
	border-radius: 8px;
}

/* 本文内の引用ブロック — コラム単体のみ */
.ginga-column-entry .p-postContent blockquote,
.ginga-column-entry .p-postContent .wp-block-quote,
.ginga-column-entry .post_content blockquote,
.ginga-column-entry .post_content .wp-block-quote {
	border-left: 2px solid var(--sys-border-light) !important;
	background: var(--mist-50) !important;
	padding: 16px 20px !important;
	color: var(--sys-text-secondary) !important;
	font-size: 14px !important;
}

/* コラム先頭リード（blockquote ではなく .column-lead-box）を同トーンで馴染ませる */
.ginga-column-entry .post_content .column-lead-box {
	border-left: none !important;
	background: var(--mist-100) !important;
	padding: 18px 22px !important;
	margin-bottom: 2.5em !important;
	color: var(--sys-text-secondary) !important;
	font-size: 14px !important;
	border-radius: 8px !important;
	box-shadow: none !important;
}

/* 記事タイトル — コラム単体のみ */
.ginga-column-entry .p-article__title {
	font-family: "Shippori Mincho B1", "Shippori Mincho", serif;
	font-size: clamp(20px, 3vw, 32px);
	line-height: 1.6;
	letter-spacing: 0.08em;
	color: var(--sys-text-primary);
}

/* 記事カテゴリ（ACF category / column_category）— カードの ocean-column-tag に近いトーン */
.ginga-column-entry .ginga-column-article-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0.75em 0 1em;
}

.ginga-column-entry .ginga-column-article-cat {
	display: inline-block;
	background: var(--horizon-light);
	color: var(--horizon-cta);
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 2px;
	font-weight: 500;
	line-height: 1.3;
}

.ginga-column-entry a.ginga-column-article-cat--link {
	text-decoration: none;
	color: var(--horizon-cta);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ginga-column-entry a.ginga-column-article-cat--link:hover {
	background: #d4e8f4;
	color: var(--horizon-hover);
}

/* 公開日・更新日 */
.ginga-column-entry .p-article__meta.c-postTimes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1.25em;
	margin-top: 0.5em;
	margin-bottom: 1em;
	color: var(--sys-text-tertiary);
}

/* 日付アイコンをやや薄くして主タイトルより控えめに */
.ginga-column-entry .p-article__meta.c-postTimes .icon-posted::before,
.ginga-column-entry .p-article__meta.c-postTimes .icon-modified::before {
	color: var(--sys-text-tertiary) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   執筆者カード：上＝顔写真＋肩書・名前／下＝自己紹介・資格（縦に伸びる）
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 見出しはカードの「直前」専用。本文の p 用ルール（line-height:2 等）を上書きし、カードとの間は 8px のみ */
.ginga-column-entry .post_content > p.column-author-lead {
	margin-top: 5em;
	margin-bottom: 8px !important;
	padding: 0;
	font-size: 11px !important;
	line-height: 1.4 !important;
	letter-spacing: 0.15em;
	color: var(--sys-text-tertiary);
}

/* 見出しの直下ではカードの margin-top:5em を付けない（ここが大きな空きの主因だった） */
.ginga-column-entry .post_content > p.column-author-lead + .column-author-card {
	margin-top: 0;
}

.ginga-column-entry .post_content .column-author-card {
	position: relative;
	margin-top: 5em;
	border: 0.5px solid var(--sys-border-light);
	border-radius: 12px;
	overflow: hidden;
	background: var(--mist-50);
}

.ginga-column-entry .post_content .column-author-card__topbar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 24px;
	background: var(--mist-100);
	border-bottom: 0.5px solid var(--sys-border-light);
}

.ginga-column-entry .post_content .column-author-card__topbar::before {
	display: none;
}

.ginga-column-entry .post_content .column-author-card .author-img {
	flex-shrink: 0;
	margin: 0;
	width: auto;
}

.ginga-column-entry .post_content .column-author-card__photo,
.ginga-column-entry .post_content .column-author-card .column-author-card__photo,
.ginga-column-entry .post_content .column-author-card img.column-author-card__photo {
	width: 56px !important;
	height: 56px !important;
	border-radius: 50% !important;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
	border: 0.5px solid var(--sys-border-light);
	background: var(--mist-50);
}

.ginga-column-entry .post_content .author-topbar-info {
	flex: 1;
	min-width: 0;
}

.ginga-column-entry .post_content .author-position {
	font-size: 11px;
	color: var(--sacred-gold, #a8956a);
	letter-spacing: 0.08em;
	margin: 0 0 2px !important;
	line-height: 1.4;
}

.ginga-column-entry .post_content .author-name {
	font-family: "Shippori Mincho B1", "Shippori Mincho", serif;
	font-size: 17px !important;
	font-weight: 600;
	color: var(--sys-text-primary);
	margin: 0 !important;
	line-height: 1.35;
}

.ginga-column-entry .post_content .author-name .author-name__link {
	color: inherit;
	text-decoration: none;
	font-weight: inherit;
	font-size: inherit;
	font-family: inherit;
}

.ginga-column-entry .post_content .author-name .author-name__link:hover {
	text-decoration: underline;
	color: var(--horizon-cta, #1b5e8c);
}

.ginga-column-entry .post_content .column-author-card__body {
	padding: 18px 24px;
}

.ginga-column-entry .post_content .column-author-card__body .column-author-message {
	margin-bottom: 0;
	font-size: 0.95em;
	color: var(--sys-text-secondary);
	line-height: 1.75;
}

.ginga-column-entry .post_content .column-author-card__body .column-author-message:not(:last-child) {
	margin-bottom: 14px;
}

.ginga-column-entry .post_content .author-qual {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 10px;
	padding-top: 12px;
	border-top: 0.5px solid var(--sys-border-light);
	font-size: 12px;
	color: var(--sys-text-secondary);
}

.ginga-column-entry .post_content .author-qual__label {
	font-size: 10px;
	color: var(--sacred-gold, #a8956a);
	letter-spacing: 0.08em;
	font-weight: 500;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.ginga-column-entry .post_content .column-author-card__topbar {
		padding: 14px 16px;
		gap: 12px;
	}

	.ginga-column-entry .post_content .column-author-card__body {
		padding: 16px;
	}
}

/* コラム詳細：関連エリア・おすすめプラン — 背景などを max-width 内に閉じず 100vw まで広げる */
.ginga-column-entry .post_content > .ginga-column-related-area,
.ginga-column-entry .post_content > .ginga-column-recommended-plans {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
	box-sizing: border-box;
	padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100vw - 100%) / 2));
	padding-right: max(16px, env(safe-area-inset-right, 0px), calc((100vw - 100%) / 2));
}

/* コラム詳細：関連エリア（リード＋チップを同一行で横並び、狭い幅では折り返し） */
.ginga-column-entry .ginga-column-related-area {
	margin-top: 3em;
	padding-top: 1.25em;
}

.ginga-column-entry .ginga-column-related-area__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.ginga-column-entry .ginga-column-related-area__lead {
	display: inline;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px;
	font-weight: 500;
	color: var(--sys-text-secondary);
	line-height: 1.5;
	flex: 0 1 auto;
	max-width: 100%;
}

.ginga-column-entry .ginga-column-related-area__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
}

.ginga-column-entry .ginga-column-related-area__chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--horizon-light);
	color: var(--horizon-cta);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.4;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ginga-column-entry .ginga-column-related-area__chip:hover {
	background: #d4e8f4; /* horizon-light より少し濃いホバー色 */
	color: var(--horizon-hover);
}

/* おすすめプラン：帯状背景。カードはサムネ＋名称・価格＋ボタンのティーザーのみ（説明文なし） */
.ginga-column-entry .ginga-column-recommended-plans {
	margin-top: 3em;
	padding-top: 1.75em;
	padding-bottom: 1.75em;
	border: none;
	border-radius: 0;
	background: var(--mist-100);
	box-shadow: none;
	box-sizing: border-box;
}

.ginga-column-entry .ginga-column-recommended-plans__title {
	text-align: left;
	font-family: "Shippori Mincho B1", "Shippori Mincho", serif;
	font-size: clamp(16px, 2.8vw, 19px);
	font-weight: 600;
	color: var(--sys-text-primary);
	letter-spacing: 0.06em;
	line-height: 1.45;
	margin: 0 0 1em !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
}

.ginga-column-entry .ginga-column-recommended-plans .ginga-column-related__plan-grid {
	margin-top: 0;
}

.ginga-column-entry .ginga-column-recommended-plans .plan-grid-scroll-container {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(0px, calc((100% - 280px) / 2));
	-webkit-overflow-scrolling: touch;
	padding-bottom: 14px;
}

.ginga-column-entry .ginga-column-recommended-plans .plan-grid {
	display: flex !important;
	align-items: stretch;
	gap: 20px !important;
	padding: 10px 0;
}

.ginga-column-entry .ginga-column-recommended-plans .plan-grid::before,
.ginga-column-entry .ginga-column-recommended-plans .plan-grid::after {
	content: "";
	width: max(0px, calc((100% - 280px) / 2));
	flex-shrink: 0;
}

.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser {
	flex: 0 0 280px;
	min-width: 280px;
	max-width: 280px;
	display: flex;
	flex-direction: column;
	height: auto;
}

/* 本文側の img 角丸ルールより優先して TOP と同じ見た目に合わせる */
.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser .ks-plan-thumb img {
	border-radius: 4px 4px 0 0 !important;
}

.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser .ks-plan-thumb {
	height: 140px;
}

.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser .ks-plan-header {
	padding: 14px 14px 12px !important;
	border-bottom: none;
	text-align: center;
}

.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser .ks-plan-name {
	font-size: 16px !important;
	margin-bottom: 6px !important;
}

.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser .ks-plan-price-box .p-num {
	font-size: 22px;
}

.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser .ks-plan-footer {
	margin-top: auto;
	padding: 0 14px 16px;
}

.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser .ks-plan-btn {
	padding: 11px 12px;
	font-size: 13px;
	background: var(--horizon-cta);
	border-color: var(--horizon-cta);
	color: #fff !important;
}

.ginga-column-entry .ginga-column-recommended-plans .ks-plan-card--column-teaser:hover .ks-plan-btn {
	background: var(--horizon-hover);
	border-color: var(--horizon-hover);
	color: #fff !important;
}

/* SWELL目次：タイトル横アイコンをヘッダー色と統一 */
.ginga-column-entry .ginga-column-inline-toc .p-toc__ttl {
	color: var(--depth-700);
}

.ginga-column-entry .ginga-column-inline-toc .p-toc__ttl::before {
	color: var(--depth-700);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   スタッフ紹介ページ（single-staff）— C案：コンパクトヘッダ＋資格バッジ
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ginga-staff-page-label {
	padding-top: 2em;
	margin-bottom: 1.5em;
}

.ginga-staff-page-eyebrow {
	margin-bottom: 10px;
}

.ginga-staff-page-title {
	margin-bottom: 0 !important;
}

.ginga-staff-single .ginga-staff-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 1.5em;
	margin-bottom: 1.5em;
	border-bottom: 0.5px solid var(--sys-border-light);
}

.ginga-staff-header__media {
	flex-shrink: 0;
}

.ginga-staff-header__photo {
	width: 80px !important;
	height: 80px !important;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	border: 2px solid var(--mist-100);
	outline: 1px solid var(--sys-border-light);
}

.ginga-staff-header__position {
	font-size: 11px;
	color: var(--sacred-gold);
	letter-spacing: 0.1em;
	margin: 0 0 4px !important;
}

.ginga-staff-header__title {
	font-family: "Shippori Mincho B1", serif;
	font-size: clamp(18px, 3vw, 24px) !important;
	font-weight: 600;
	color: var(--sys-text-primary);
	margin: 0 !important;
	letter-spacing: 0.06em;
}

.ginga-staff-single .ginga-staff-intro {
	font-size: 14px;
	color: var(--sys-text-secondary);
	line-height: 2;
	margin-bottom: 1.5em;
}

.ginga-staff-single .ginga-staff-intro p {
	margin: 0 0 1em;
}

.ginga-staff-single .ginga-staff-intro p:last-child {
	margin-bottom: 0;
}

.ginga-staff-single .ginga-staff-qual {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 12px 16px;
	background: var(--mist-100);
	border-radius: 6px;
	margin-bottom: 3em;
	font-size: 13px;
	color: var(--sys-text-secondary);
	border: none;
}

.ginga-staff-qual__label {
	font-size: 10px;
	color: var(--sacred-gold);
	letter-spacing: 0.1em;
	font-weight: 500;
	white-space: nowrap;
}

.ginga-staff-career {
	margin-top: 1em;
	padding: 14px 16px;
	background: var(--mist-50);
	border-left: 2px solid var(--sys-border-light);
	border-radius: 0 6px 6px 0;
}

.ginga-staff-career__label {
	display: block;
	font-size: 10px;
	color: var(--sacred-gold);
	letter-spacing: 0.1em;
	font-weight: 500;
	margin-bottom: 8px;
}

.ginga-staff-career__text {
	font-size: 13px;
	color: var(--sys-text-secondary);
	line-height: 1.9;
}

.ginga-staff-career__text p {
	margin: 0 0 0.75em !important;
}

.ginga-staff-career__text p:last-child {
	margin-bottom: 0 !important;
}

/* スタッフ詳細：モバイル時の可読性調整 */
.ginga-staff-single .ginga-staff-qual {
	flex-wrap: wrap;
}

.ginga-staff-single .ginga-staff-intro {
	white-space: normal;
}

.ginga-staff-no-posts {
	color: var(--sys-text-secondary);
	font-size: 0.95em;
	margin: 2em 0;
}

.ginga-staff-ocean-columns {
	margin-top: 0.5em;
}

@media (max-width: 768px) {
	.ginga-staff-header__photo {
		width: 64px !important;
		height: 64px !important;
	}
}

/* スタッフアーカイブページ */
.ginga-staff-archive__head {
	text-align: center;
	padding: 3em 0 2em;
  }
  
  .ginga-staff-archive__eyebrow {
	display: block;
	font-size: 10px;
	letter-spacing: 0.3em;
	color: var(--sacred-gold);
	margin-bottom: 6px;
  }

  .ginga-staff-archive__title {
	font-family: 'Shippori Mincho B1', serif;
	font-size: 22px;
	font-weight: 600;
	color: var(--sys-text-primary);
	letter-spacing: 0.1em;
	margin: 0 0 12px !important;
  }

  .ginga-staff-archive__divider {
	width: 28px;
	height: 1px;
	background: var(--sacred-gold);
	margin: 0 auto;
  }
  
  .ginga-staff-archive__list {
	max-width: 680px;
	margin: 0 auto;
	padding-bottom: 4em;
	display: flex;
	flex-direction: column;
	gap: 12px;
  }
  
  .ginga-staff-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--mist-50);
	border: 0.5px solid var(--sys-border-light);
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s;
  }

  .ginga-staff-card:hover {
	background: var(--mist-100);
  }
  
  .ginga-staff-card__img {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
  }
  
  .ginga-staff-card__img img {
	width: 64px !important;
	height: 64px !important;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid var(--mist-100);
	outline: 1px solid var(--sys-border-light);
  }

  .ginga-staff-card__img-placeholder {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--mist-300);
  }
  
  .ginga-staff-card__body {
	flex: 1;
	min-width: 0;
  }
  
  .ginga-staff-card__pos {
	font-size: 11px;
	color: var(--sacred-gold);
	letter-spacing: 0.08em;
	margin: 0 0 3px !important;
  }
  
  .ginga-staff-card__name {
	font-family: 'Shippori Mincho B1', serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--sys-text-primary);
	margin: 0 0 6px !important;
  }
  
  .ginga-staff-card__msg {
	font-size: 12px;
	color: var(--sys-text-secondary);
	line-height: 1.7;
	margin: 0 !important;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
  }
  
  .ginga-staff-card__arrow {
	font-size: 16px;
	color: var(--sys-text-tertiary);
	flex-shrink: 0;
  }

.ginga-staff-card__img {
	width: 56px !important;
	height: 56px !important;
}

.ginga-staff-card__img img,
.ginga-staff-card__img-placeholder {
	width: 56px !important;
	height: 56px !important;
}
