/* ==========================================================================
   Article Detail Page (single-spot) — Standalone CSS
   ========================================================================== */

:root {
	--page-padding: 60px;
}

/* Reset WP global styles within article-detail scope */
.pgm-article-detail,
.pgm-article-detail *,
.pgm-article-detail *::before,
.pgm-article-detail *::after {
	box-sizing: border-box;
}
.pgm-article-detail {
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--contrast);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.pgm-article-detail h1,
.pgm-article-detail h2,
.pgm-article-detail h3,
.pgm-article-detail h4,
.pgm-article-detail h5,
.pgm-article-detail h6,
.pgm-article-detail p,
.pgm-article-detail ul,
.pgm-article-detail ol,
.pgm-article-detail figure,
.pgm-article-detail blockquote {
	margin: 0;
	padding: 0;
}
.pgm-article-detail img { max-width: 100%; display: block; height: auto; }
.pgm-article-detail a:not(.writer-link-btn):not(.article-tag) { text-decoration: none; color: inherit; }
.pgm-article-detail .article-body-content a { color: var(--wp--preset--color--primary) !important; text-decoration: underline !important; text-underline-offset: 3px; word-break: break-all; }

/* ===== Layout ===== */
.page-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 100px;
}
.content-width { width: 100%; max-width: calc(1400px + var(--page-padding) * 2); margin: 0 auto; padding-left: var(--page-padding); padding-right: var(--page-padding); }
.full-width { width: 100%; }

/* ===== Article Content Section ===== */
.article-content {
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--page-padding);
	padding-top: 50px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Title with left purple line */
.article-title-wrapper {
	display: flex;
	align-items: stretch;
	gap: 20px;
	min-height: 80px;
}
.article-title-line {
	width: 3px;
	background-color: var(--wp--preset--color--primary);
	flex-shrink: 0;
}
.article-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 40px;
	color: var(--wp--preset--color--primary);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Featured image */
.article-featured-image {
	aspect-ratio: 16/9;
	overflow: hidden;
}
.article-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Genre tag + Date row */
.article-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}
.genre-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	min-width: 52px;
	height: 26px;
	padding: 0 3px;
	text-align: center;
}
.article-date {
	font-family: var(--wp--preset--font-family--decorative);
	font-size: 20px;
	font-weight: 500;
	color: var(--wp--preset--color--english-text);
}

/* Tags */
.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.article-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	line-height: 22.824px;
	padding: 5px 10px;
	border-radius: 100px;
	white-space: nowrap;
	text-decoration: none;
}

/* Excerpt */
.article-excerpt {
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	line-height: 30px;
	color: var(--wp--preset--color--contrast);
	padding: 0 0 20px;
}

/* Body text */
.article-body-text {
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	line-height: 30px;
	color: var(--wp--preset--color--contrast);
}
/* 本文（the_content出力）のスタイル */
.article-body-content {
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	line-height: 30px;
	color: var(--wp--preset--color--contrast);
}
.article-body-content p {
	margin-bottom: 20px;
}
.article-body-content h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 60px;
	padding-bottom: 30px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 26px;
	letter-spacing: 0.13em;
	color: var(--wp--preset--color--primary);
}
.article-body-content h3 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 500;
	line-height: 26px;
	color: var(--wp--preset--color--primary);
	padding-top: 30px;
	padding-bottom: 10px;
}
.article-body-content h4 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--wp--preset--color--primary);
	padding-top: 20px;
	padding-bottom: 8px;
}
.article-body-content h2::before {
	content: "";
	width: 3px;
	align-self: stretch;
	background-color: var(--wp--preset--color--primary);
	flex-shrink: 0;
}
.article-body-content img {
	width: 100%;
	height: auto;
	margin: 24px 0;
}
.article-body-content figure {
	margin: 24px 0;
}
.article-body-content .wp-block-image {
	margin: 24px 0;
}
.article-body-content .wp-block-image img {
	margin: 0;
}

/* Links in article body — 上部の .pgm-article-detail .article-body-content a で !important 指定済み */
.article-body-content a:hover {
	color: var(--wp--preset--color--primary-dark) !important;
}

/* H2 heading inside article */
.article-h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 30px;
	padding-bottom: 10px;
	height: 66px;
}
.article-h2-bar {
	width: 3px;
	height: 21px;
	background-color: var(--wp--preset--color--primary);
	flex-shrink: 0;
}
.article-h2 h2 {
	font-family: var(--wp--preset--font-family--body);
	font-size: 24px;
	font-weight: 400;
	line-height: 26px;
	color: var(--wp--preset--color--primary);
}

/* ===== Ad Banner ===== */
.ad-banner-wrapper {
	width: 100%;
	padding: 0 var(--page-padding);
}
/* .ad-banner — theme.css に移動済み */

/* ===== Share Section ===== */
.share-section-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.share-en-title {
	font-family: var(--wp--preset--font-family--decorative);
	font-size: 54.387px;
	font-weight: 500;
	color: var(--wp--preset--color--primary-light);
	line-height: 1;
	margin-bottom: 0;
	text-align: center;
}
.share-section {
	width: 100%;
	background-color: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 40px var(--page-padding);
}
.share-label {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}
.share-label-deco {
	width: 8.5px;
	height: 12.5px;
	flex-shrink: 0;
}
.share-label-deco svg {
	width: 100%;
	height: 100%;
}
.share-label-deco--flip {
	transform: scaleX(-1);
}
.share-label span {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 14px;
	color: var(--wp--preset--color--primary);
	letter-spacing: 1.82px;
	text-align: center;
}
.share-icons {
	display: flex;
	align-items: center;
	gap: 25px;
}
.share-icons svg {
	width: 35px;
	height: 35px;
	color: var(--wp--preset--color--primary);
	fill: currentColor;
}
.share-url-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 15px;
	letter-spacing: 1.95px;
	padding: 15px 30px;
	border-radius: 100px;
	cursor: pointer;
	border: 2px solid var(--wp--preset--color--primary);
	transition: background-color 0.3s, color 0.3s;
}
.share-url-btn.is-copied {
	background-color: #fff;
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}
/* share-url-btn icon is inline SVG now */
.share-url-btn svg {
	width: 10px;
	height: 13px;
	flex-shrink: 0;
}

/* ===== Section Heading (3-layer) ===== */
/* セクション見出し＋中身をまとめるラッパー */
.section-group {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}
.section-heading {
	width: 100%;
	max-width: calc(1400px + var(--page-padding) * 2);
	padding: 0 var(--page-padding);
	position: relative;
}
.section-heading-inner {
	display: flex;
	align-items: flex-end;
	position: relative;
}
.section-heading-jp-wrapper {
	position: relative;
}
.section-heading-jp {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px;
	position: relative;
	z-index: 3;
	margin-bottom: -4px;
}
.section-heading-jp-icon {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}
.section-heading-jp-icon svg {
	width: 100%;
	height: 100%;
}
.section-heading-jp h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 40px;
	font-weight: 400;
	line-height: 46px;
	letter-spacing: 5.2px;
	color: var(--wp--preset--color--primary);
	white-space: nowrap;
}
/* 白帯はjp-wrapperの::afterで描画（jp-wrapperにz-indexなし → 子要素が独立してスタッキング） */
.section-heading-white-cover {
	display: none;
}
.section-heading-jp-wrapper::after {
	content: "";
	display: block;
	width: 100%;
	height: 14px;
	background-color: var(--wp--preset--color--white);
	position: relative;
	z-index: 1;
	margin-top: -18px;
}
/* Sub label above heading */
.section-heading-sub {
	position: relative;
	z-index: 4;
}
.section-heading-sub span {
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	color: var(--wp--preset--color--primary);
	text-align: center;
	position: relative;
	line-height: 1;
}
.section-heading-en {
	font-family: var(--wp--preset--font-family--decorative);
	font-size: 90px;
	font-weight: 500;
	color: var(--wp--preset--color--primary-light);
	line-height: 97px;
	white-space: nowrap;
	margin-left: -40px;
	margin-bottom: -8px;
	position: relative;
	z-index: 2;
}

/* ===== Photo Gallery ===== */
.photo-gallery {
	width: 100%;
	max-width: 1400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 25px;
}
.photo-gallery-row {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 0;
}
.photo-gallery-arrow {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.photo-gallery-arrow svg {
	width: 60px;
	height: 60px;
	color: var(--wp--preset--color--primary);
}
.photo-gallery-images {
	overflow: hidden;
	flex: 1;
	min-width: 0;
}
.photo-gallery-track {
	gap: 30px;
}
.photo-gallery-images img {
	width: 256px;
	height: 257px;
	object-fit: cover;
	flex-shrink: 0;
}
.photo-gallery-scrollbar {
	width: calc(100% - 120px);
	height: 2px;
	background-color: var(--wp--preset--color--english-text);
	position: relative;
}
.photo-gallery-scrollbar-thumb {
	height: 100%;
	background-color: var(--wp--preset--color--primary);
	position: absolute;
	left: 0;
	top: 0;
	transition: left 0.4s ease, width 0.4s ease;
}

/* ===== Lightbox ===== */
.pgm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	transition: opacity 0.25s;
}
.pgm-lightbox[aria-hidden="true"] {
	opacity: 0;
	pointer-events: none;
}
.pgm-lightbox[aria-hidden="false"] {
	opacity: 1;
}
.pgm-lightbox__img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
}

/* ===== Writer Section ===== */
.writer-wrapper {
	max-width: 1400px;
	width: 100%;
	padding: 0 var(--page-padding);
}
.writer-section {
	width: 100%;
	max-width: 1400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 3px;
	padding-bottom: 32px;
}
.writer-en-title {
	font-family: var(--wp--preset--font-family--decorative);
	font-size: 54.387px;
	font-weight: 500;
	color: var(--wp--preset--color--primary-light);
	text-align: center;
	line-height: 1;
	position: relative;
	z-index: 1;
	padding: 0 20px;
	background: linear-gradient(to bottom, var(--wp--preset--color--base) 50%, var(--wp--preset--color--white) 50%);
}
.writer-card {
	width: 100%;
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--english-text);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 50px;
	margin-top: -29px;
	position: relative;
	z-index: 0;
}
.writer-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.writer-name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 30px;
	font-weight: 400;
	line-height: 46px;
	letter-spacing: 3.9px;
	color: var(--wp--preset--color--primary);
}
.writer-bio {
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	line-height: 32px;
	color: var(--wp--preset--color--contrast);
	max-width: 500px;
}
.writer-link-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 14px;
	letter-spacing: 1.82px;
	padding: 10px 30px;
	border-radius: 100px;
	cursor: pointer;
	text-align: center;
	width: fit-content;
	text-decoration: none;
}
.writer-link-btn--sp { display: none; }
.writer-avatar {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	border: 3.9px solid var(--wp--preset--color--english-text);
	background-color: var(--wp--preset--color--white);
	flex-shrink: 0;
	overflow: hidden;
}
.writer-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===== Related / Recommended / Viewed Articles Card Grid ===== */
/* article-card / more-btn — theme.css に移動済み */

/* ===== PR Banner Grid（共通クラス pgm-pr-banner-* を使用） ===== */

/* ===== Instagram / LINE CTA / Follow Us / Ad Bottom / Breadcrumb — theme.css に移動済み ===== */

/* ===== Responsive ===== */

/* ===== CTA row: 縦並び — theme.css に移動済み ===== */
@media (max-width: 1150px) {
}

/* ===== Tablet (768px以下) ===== */
@media (max-width: 768px) {
	:root { --page-padding: 32px; }
	.page-wrapper { gap: 50px; }
	.section-group { gap: 20px; }

	/* セクション見出し: 中央揃え1列構造（Figma SP） */
	.section-heading-inner {
		flex-direction: column;
		align-items: center;
	}
	.section-heading-jp-wrapper { width: auto !important; }
	.section-heading-jp {
		justify-content: center;
	}
	.section-heading-jp h2 {
		font-size: 26px;
		letter-spacing: 3.38px;
	}
	.section-heading-jp-icon {
		width: 19px;
		height: 19px;
	}
	.section-heading-en {
		position: static;
		font-size: 12px;
		line-height: normal;
		margin-left: 0;
		margin-bottom: 0;
		color: var(--wp--preset--color--english-text);
		z-index: auto;
	}
	.section-heading-jp-wrapper::after {
		margin-top: -24px;
	}
	.section-heading-sub {
		margin-left: 0 !important;
		text-align: center;
	}

	/* 記事タイトル */
	.article-title {
		font-size: 18px;
		line-height: 24px;
	}
	.article-title-wrapper {
		gap: 13px;
		min-height: auto;
	}
	.article-title-line { width: 2px; }

	/* 記事メタ */
	.genre-badge { font-size: 12px; min-width: 40px; height: 16px; }
	.article-date { font-size: 12px; }
	.article-tag { font-size: 13px; padding: 5px 10px; }

	/* 記事本文 */
	.article-body-text { font-size: 15px; line-height: 26px; }
	.article-h2 h2 { font-size: 16px; }
	.article-h2-bar { height: 15px; width: 2px; }

	/* 記事本文（WPブロック版） */
	.article-body-content { font-size: 15px; line-height: 26px; }
	.article-body-content h2 { font-size: 16px; line-height: 22px; gap: 8px; padding-top: 20px; padding-bottom: 8px; }
	.article-body-content h2::before { width: 2px; }
	.article-body-content h3 { font-size: 15px; line-height: 22px; padding-top: 20px; padding-bottom: 8px; }
	.article-body-content h4 { font-size: 14px; line-height: 20px; padding-top: 15px; padding-bottom: 6px; }

	/* 記事カード SP — theme.css に移動済み */

	/* シェア */
	.share-en-title { font-size: 34px; }
	.share-section { padding: 30px var(--page-padding); }
	.share-icons svg { width: 30px; height: 30px; }

	.photo-gallery-scrollbar { width: calc(100% - 52px); }

	/* フォトギャラリー: 3枚×100px（Figma SP） */
	.photo-gallery-images img { width: 100px; height: 100px; }
	.photo-gallery-track { gap: 15px; }
	.photo-gallery-arrow { width: 26px; height: 26px; }
	.photo-gallery-arrow svg { width: 26px; height: 26px; }

	/* ライター */
	.writer-en-title {
		font-size: 34px;
	}
	.writer-card {
		margin-top: -17px;
	}
	.writer-card {
		padding: 24px;
		gap: 15px;
		flex-wrap: wrap;
	}
	.writer-link-btn--pc { display: none; }
	.writer-link-btn--sp { display: inline-flex; }
	.writer-avatar {
		width: 80px;
		height: 80px;
		border-radius: 50%;
		border-width: 2px;
	}
	.writer-name { font-size: 16.744px; letter-spacing: 2.18px; }
	.writer-bio { font-size: 15px; line-height: 26px; max-width: none; }
	.writer-link-btn { font-size: 14px; width: 100%; justify-content: center; }

	/* もっと見る — theme.css に移動済み */



	/* 共通セクションのレスポンシブは theme.css に移動済み */
}

/* ===== Small Mobile (393px以下) ===== */
@media (max-width: 393px) {
	:root { --page-padding: 32px; }
	.page-wrapper { gap: 40px; }
}

