/**
 * Rakushigo AI - 記事/固定ページ用CSS
 * is_singular() のときだけ読み込まれる。
 */

/* --- 記事ヘッダー周り --- */
.rax-article__cats a {
	text-decoration: none;
	font-weight: 600;
}
.rax-article__title {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
.rax-article__meta {
	align-items: center;
	color: var(--wp--preset--color--sub, #6b6b6b);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line, #e6e6e6);
}
.rax-article__author {
	font-size: 0.9rem;
}
.rax-article__dates {
	color: var(--wp--preset--color--sub, #6b6b6b);
}
/* 公開日と更新日を見分けやすくラベル付け */
.rax-date-published::before {
	content: "公開：";
}
.rax-date-modified::before {
	content: "更新：";
}
.rax-article__thumb {
	margin-bottom: 2rem;
}
.rax-article__thumb img {
	width: 100%;
	height: auto;
}

/* --- 本文の読みやすさ --- */
.rax-article__body {
	font-size: 1.0625rem;
	line-height: 1.9;
}
.rax-article__body > * {
	margin-top: 1.6em;
	margin-bottom: 1.6em;
}
.rax-article__body h2 {
	margin-top: 2.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp--preset--color--line, #e6e6e6);
}
.rax-article__body h3 {
	margin-top: 2rem;
	padding-left: 0.6rem;
	border-left: 4px solid var(--wp--preset--color--ink, #141414);
}
.rax-article__body img {
	height: auto;
}

/* --- 目次（プラグイン出力を想定した最低限の体裁） --- */
.rax-article__body .rax-toc,
.rax-article__body #toc_container,
.rax-article__body .ez-toc-container {
	background: var(--wp--preset--color--faint, #f4f4f4);
	border: 1px solid var(--wp--preset--color--line, #e6e6e6);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	font-size: 0.95rem;
}

/* --- FAQ（details/summary） --- */
.rax-faq .wp-block-details {
	border: 1px solid var(--wp--preset--color--line, #e6e6e6);
	border-radius: 8px;
	padding: 0.5rem 1rem;
	margin-bottom: 0.75rem;
	background: #fff;
}
.rax-faq .wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	padding: 0.5rem 0;
}
.rax-faq .wp-block-details[open] summary {
	border-bottom: 1px solid var(--wp--preset--color--line, #e6e6e6);
	margin-bottom: 0.5rem;
}

/* --- ツールカードのボタン内テキストが空のときの体裁維持 --- */
.rax-toolcard__head {
	gap: 0.75rem;
}

/* --- 記事下ナビ（前後記事） --- */
.rax-post-nav {
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--line, #e6e6e6);
}
.rax-post-nav .wp-block-post-navigation-link {
	flex: 1 1 45%;
	font-size: 0.95rem;
}
.rax-post-nav .post-navigation-link-next {
	text-align: right;
}

/* --- 著者ボックス --- */
.rax-authorbox {
	margin-top: 2rem;
}

/* --- コメント --- */
.rax-comments {
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--line, #e6e6e6);
}

/* --- 関連記事の画像 --- */
.rax-related .rax-tile img {
	width: 100%;
	height: auto;
}

/* --- レスポンシブ：前後記事を縦積み --- */
@media (max-width: 600px) {
	.rax-post-nav .wp-block-post-navigation-link {
		flex-basis: 100%;
	}
	.rax-post-nav .post-navigation-link-next {
		text-align: left;
	}
}
