/*
 * thinx-article.css – お知らせの記事ページ（single-news.php）と 404（404.php）（v2.14.0）
 *
 * プライバシーポリシー（thinx-privacy.css）と同じ構成：中央の見出し（和文ラベル・英字ラベル・明朝の主見出し）
 * → カード → 下部のリンク。色・書体・余白は既存の下層ページに合わせる。
 * 全セレクタを #thxArticle でスコープ。
 */

/* 親テーマ（Hello Elementor）の .site-main は幅 1140px・左右余白付き、body は白。記事ページ・404 だけ外す */
body.thx-article-page { background-color: var(--thx-bg); }
body.thx-article-page .site-main {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

#thxArticle {
	--ar-accent:  var(--thx-accent);
	--ar-bg:      var(--thx-bg);
	--ar-card-bg: var(--thx-card-bg);
	--ar-border:  var(--thx-border);
	--ar-muted:   var(--thx-muted);

	background-color: var(--ar-bg);
	color: #ECE7DA;
	padding: 140px 0 100px;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	position: relative;
	overflow: hidden;
	min-height: 70vh;
}

#thxArticle::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(200,190,170,0.08) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(200,190,170,0.05) 1px, transparent 1px);
	background-size: 92px 92px;
	background-attachment: fixed;
	pointer-events: none;
	z-index: 1;
}

#thxArticle .thx-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 2;
}

/* --- 見出し --- */
#thxArticle .thx-article-header {
	text-align: center;
	margin-bottom: 60px;
}

#thxArticle .thx-article-title-ja {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--ar-accent);
	letter-spacing: 0.02em;
	margin-bottom: 4px;
}

#thxArticle .thx-article-label {
	display: block;
	position: relative;
	font-size: 13px;
	letter-spacing: 0.4em;
	color: var(--ar-muted);
	text-transform: uppercase;
	margin-bottom: 90px;
}

#thxArticle .thx-article-label::after {
	content: "";
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 2px;
	background: var(--ar-accent);
	opacity: 0.8;
}

#thxArticle .thx-article-meta {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

/* カテゴリ（お知らせ一覧の NEWS / REPORT ラベルと同じ） */
#thxArticle .thx-article-tag {
	display: inline-block;
	min-width: 100px;
	padding: 5px 12px;
	border: 1px solid var(--ar-accent);
	border-radius: 4px;
	color: var(--ar-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	box-sizing: border-box;
}

#thxArticle .thx-article-date {
	font-family: "Inter", sans-serif;
	font-size: 14px;
	color: var(--ar-muted);
}

#thxArticle .thx-article-title {
	margin: 0;
	font-family: Georgia, "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(24px, 3.4vw, 34px);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: #ECE7DA;
	word-break: auto-phrase; /* 語句の途中で折り返さない（対応ブラウザのみ） */
}

/* --- 本文カード --- */
#thxArticle .thx-article-card {
	background: var(--ar-card-bg);
	border: 1px solid var(--ar-border);
	border-radius: 24px;
	padding: 64px 60px;
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
}

#thxArticle .thx-article-body {
	font-size: 16px;
	line-height: 1.9;
	color: rgba(236, 231, 218, 0.9);
}

#thxArticle .thx-article-body > * { margin: 0 0 1.4em; }
#thxArticle .thx-article-body > *:last-child { margin-bottom: 0; }

#thxArticle .thx-article-body strong { color: #ECE7DA; font-weight: 700; }

#thxArticle .thx-article-body h2,
#thxArticle .thx-article-body h3 {
	font-size: 20px;
	font-weight: 800;
	color: var(--ar-accent);
	border-left: 3px solid var(--ar-accent);
	padding-left: 16px;
	letter-spacing: 0.05em;
	margin-top: 2em;
}

/* 本文のリンク（2.14.6）：下線は thinx-header.css の a { text-decoration: none !important } に負けていたため !important。
 * 訪問済みも同じ色、ホバー・押下中は親テーマ reset.css の #336（暗い紺）が出ないよう明るい青緑に。 */
#thxArticle .thx-article-body a,
#thxArticle .thx-article-body a:visited {
	color: var(--ar-accent);
	text-decoration: underline !important;
	text-decoration-color: rgba(var(--thx-accent-rgb), 0.55) !important;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s, text-decoration-color 0.2s;
}

#thxArticle .thx-article-body a:hover,
#thxArticle .thx-article-body a:active,
#thxArticle .thx-article-body a:focus-visible {
	color: var(--thx-accent-bright, #5BC7B8);
	text-decoration-color: currentColor !important;
}

/* 2.14.7：お知らせ #245 の記事ページの「関連ページ」3 リンクだけ下線を出さない（2026-11-26 ユーザー指示）。色・ホバー・フォーカスの枠は上の指定のまま。 */
body.postid-245 #thxArticle .thx-article-body a:is([href="/solutions/"], [href="/methodology/"], [href="/ai-platform/"]),
body.postid-245 #thxArticle .thx-article-body a:is([href="/solutions/"], [href="/methodology/"], [href="/ai-platform/"]):visited {
	text-decoration: none !important;
}

#thxArticle .thx-article-body ul,
#thxArticle .thx-article-body ol { padding-left: 1.4em; }

#thxArticle .thx-article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

/* --- 一覧へ戻る（プライバシーポリシーの「ページの先頭へ」と同じ型） --- */
#thxArticle .thx-article-footer {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--ar-border);
	text-align: center;
}

#thxArticle .thx-article-back {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--ar-muted);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.3s;
}

#thxArticle .thx-article-back:hover,
#thxArticle .thx-article-back:focus-visible { color: var(--ar-accent); }

#thxArticle .thx-article-back-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid currentColor;
	border-radius: 50%;
}

/* --- 404 --- */
#thxArticle.thx-notfound .thx-article-header { margin-bottom: 60px; }
#thxArticle.thx-notfound .thx-article-body { text-align: center; }
#thxArticle .thx-sp-br { display: none; }

#thxArticle .thx-notfound-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 40px 0 0;
	padding: 0;
}

/* 枠線は内側の span に描く（サイト共通 CSS の「a { border-bottom: none !important }」で a の下辺が消えるため） */
#thxArticle .thx-notfound-links a {
	display: inline-block;
	color: #ECE7DA;
	text-decoration: none;
	border-radius: 999px;
}

#thxArticle .thx-notfound-btn {
	display: block;
	padding: 14px 28px;
	border: 1px solid var(--ar-border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	transition: border-color 0.3s, color 0.3s;
}

#thxArticle .thx-notfound-links a:hover .thx-notfound-btn,
#thxArticle .thx-notfound-links a:focus-visible .thx-notfound-btn {
	border-color: var(--ar-accent);
	color: var(--ar-accent);
}

/* --- キーボード操作時の枠 --- */
#thxArticle a:focus-visible {
	outline: 2px solid var(--ar-accent);
	outline-offset: 4px;
}

@media (max-width: 768px) {
	#thxArticle { padding: 120px 0 80px; }
	#thxArticle .thx-article-label { margin-bottom: 70px; }
	#thxArticle .thx-article-card { padding: 40px 24px; border-radius: 16px; }
	#thxArticle .thx-article-body { font-size: 15px; }
	#thxArticle .thx-sp-br { display: inline; }
	#thxArticle.thx-notfound .thx-article-body { text-align: left; }
	#thxArticle.thx-notfound .thx-article-body br { display: none; }
	#thxArticle .thx-notfound-links { flex-direction: column; align-items: stretch; }
	#thxArticle .thx-notfound-links a { display: block; text-align: center; }
}
