/*
Theme Name: Motto Korea
Theme URI: https://motto-korea.example.com
Author: BSP Studio
Author URI: https://motto-korea.example.com
Description: 韓国総合情報サイト向けオリジナルWordPressテーマ。読みやすさとモバイルUX、SEO、AdSense運用を重視したエディトリアル系メディアテーマ。
Version: 1.3.51
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: motto-korea
*/

/* -----------------------------------------------------------
   1. 変数・リセット
----------------------------------------------------------- */
:root {
	--color-point: #d0574a;
	--color-point-dark: #b5453a;
	--color-text: #222222;
	--color-text-sub: #666666;
	--color-text-light: #999999;
	--color-border: #e8e6e3;
	--color-bg: #ffffff;
	--color-bg-soft: #faf9f7;
	--color-tag-bg: #f2f0ec;
	--color-point-soft: #f6ece9;

	--font-base: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
		"Yu Gothic", "Meiryo", "Segoe UI", sans-serif;

	--container-width: 1180px;
	--content-width: 760px;

	--radius-s: 4px;
	--radius-m: 8px;

	--space-xs: 8px;
	--space-s: 16px;
	--space-m: 24px;
	--space-l: 40px;
	--space-xl: 64px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font-base);
	color: var(--color-text);
	background: var(--color-bg);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	word-break: break-word;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	line-height: 1.5;
	font-weight: 700;
}

button {
	font-family: inherit;
	cursor: pointer;
}

input,
textarea,
select {
	font-family: inherit;
	font-size: 16px;
}

:focus-visible {
	outline: 2px solid var(--color-point);
	outline-offset: 2px;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--space-s);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--color-point);
	color: #fff;
	padding: 10px 16px;
	z-index: 10000;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
}

/* -----------------------------------------------------------
   2. ヘッダー
----------------------------------------------------------- */
.reading-progress {
	display: none;
}

.site-header {
	position: relative;
	z-index: 100;
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	height: 68px;
	gap: var(--space-s);
}

.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
	margin-right: auto;
}

.site-branding img {
	max-height: 52px;
	max-width: 200px;
	width: auto;
}

.site-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--color-text);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-title a {
	text-decoration: none;
}

.site-description {
	display: none;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.header-search-toggle,
.menu-toggle {
	background: none;
	border: none;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

.header-search-toggle svg,
.menu-toggle svg {
	width: 22px;
	height: 22px;
}

/* デスクトップナビ */
.primary-navigation {
	display: none;
}

.primary-navigation ul {
	display: flex;
	gap: var(--space-m);
}

.primary-navigation a {
	display: inline-block;
	padding: 8px 2px;
	font-size: 15px;
	font-weight: 600;
	position: relative;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
	color: var(--color-point);
	text-decoration: none;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a {
	color: var(--color-point);
}

/* モバイルナビ */
.mobile-navigation {
	position: fixed;
	inset: 0;
	background: var(--color-bg);
	z-index: 600;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
	padding: var(--space-s);
}

.mobile-navigation.is-open {
	transform: translateX(0);
}

/* ログイン時に表示される管理者バーとの重なりを防ぐ */
body.admin-bar .mobile-navigation {
	top: 46px;
}

@media (min-width: 783px) {
	body.admin-bar .mobile-navigation {
		top: 32px;
	}
}

.mobile-navigation-header {
	display: flex;
	justify-content: flex-end;
	margin-bottom: var(--space-s);
}

.mobile-nav-close {
	background: none;
	border: none;
	min-width: 44px;
	min-height: 44px;
}

.mobile-navigation ul {
	border-top: 1px solid var(--color-border);
}

.mobile-navigation li {
	border-bottom: 1px solid var(--color-border);
}

.mobile-navigation a {
	display: block;
	padding: 16px 4px;
	font-size: 17px;
	font-weight: 600;
}

body.mobile-nav-open {
	overflow: hidden;
}

.header-search-form {
	display: none;
	position: absolute;
	z-index: 1;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	padding: var(--space-s);
}

.header-search-form.is-open {
	display: block;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form__input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
}

.search-form__submit {
	padding: 10px 16px;
	background: var(--color-point);
	color: #fff;
	border: none;
	border-radius: var(--radius-s);
	font-weight: 600;
}

/* -----------------------------------------------------------
   3. レイアウト（メイン + サイドバー）
----------------------------------------------------------- */
.site-main-wrap {
	display: block;
	padding-top: var(--space-m);
	padding-bottom: var(--space-l);
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-l);
}

.content-area {
	min-width: 0;
}

.widget-area {
	min-width: 0;
}

/* -----------------------------------------------------------
   4. 記事カード
----------------------------------------------------------- */
.article-card {
	display: block;
}

.article-card__link {
	display: block;
}

.article-card__thumb {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius-m);
	background: var(--color-bg-soft);
}

.article-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.article-card__body {
	display: block;
}

.article-card__category {
	display: block;
	margin-top: var(--space-xs);
	font-size: 12px;
	font-weight: 700;
	color: var(--color-point);
	letter-spacing: 0.02em;
}

.article-card__title {
	font-size: 16px;
	line-height: 1.5;
	margin-top: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card__excerpt {
	font-size: 13px;
	color: var(--color-text-sub);
	margin-top: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-card__meta {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--color-text-light);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-s) var(--space-s);
}

.card-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-m);
}

.card-list .article-card__link {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: var(--space-s);
	align-items: center;
}

.card-list .article-card__thumb {
	grid-column: 1;
	aspect-ratio: 8 / 5;
}

.card-list .article-card__body {
	grid-column: 2;
	min-width: 0;
}

.card-list .article-card__title {
	font-size: 15px;
}

.card-list .article-card__excerpt {
	display: none;
}

/* -----------------------------------------------------------
   5. ホームセクション
----------------------------------------------------------- */
.home-section {
	margin-top: var(--space-xl);
}

.home-section:first-child {
	margin-top: 0;
}

.home-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--space-s);
	border-bottom: 2px solid var(--color-text);
	padding-bottom: 10px;
}

.home-section__title {
	font-size: 19px;
	font-weight: 800;
}

.home-section__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 24px;
}

.home-section__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--color-point);
	border-radius: 6px;
	color: var(--color-point);
	font-weight: 700;
	text-decoration: none;
}

.home-section__all:hover {
	background: var(--color-point);
	color: #fff;
	text-decoration: none;
}

.home-section__all:focus-visible {
	outline: 2px solid var(--color-point);
	outline-offset: 3px;
}

.hero-section {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-s);
}

.hero-main {
	position: relative;
}

.hero-main .article-card__thumb {
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-m);
}

.hero-main .article-card__title {
	font-size: 22px;
	font-weight: 800;
	-webkit-line-clamp: 3;
}

.hero-main .article-card__excerpt {
	display: none;
}

.hero-main .article-card__meta {
	font-size: 13px;
}

.hero-popular {
	min-width: 0;
}

.hero-popular .home-section__header,
.hero-popular .popular-tabs__nav {
	justify-content: center;
}

.hero-popular .popular-list {
	gap: var(--space-xs);
}

.hero-popular .popular-list .article-card__link {
	grid-template-columns: 26px 96px 1fr;
}

.hero-popular .popular-list .article-card__rank {
	font-size: 18px;
}

.hero-popular .popular-list .article-card__category {
	margin-top: 0;
	font-size: 11px;
}

.hero-popular .popular-list .article-card__title {
	font-size: 13px;
	line-height: 1.4;
}

.hero-popular .popular-list .article-card__meta {
	margin-top: 3px;
	font-size: 11px;
}

.popular-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
}

.popular-list .article-card__link {
	display: grid;
	grid-template-columns: 32px 72px 1fr;
	align-items: center;
	gap: var(--space-xs);
}

.popular-list .article-card__rank {
	grid-column: 1;
	font-size: 20px;
	font-weight: 800;
	color: var(--color-point);
	font-style: italic;
	text-align: center;
}

.popular-list .article-card__thumb {
	grid-column: 2;
	aspect-ratio: 8 / 5;
}

.popular-list .article-card__body {
	grid-column: 3;
	min-width: 0;
}

.popular-list .article-card__title {
	font-size: 14px;
	margin-top: 0;
}

.popular-tabs__nav {
	display: flex;
	gap: var(--space-xs);
	margin-bottom: var(--space-s);
}

.popular-tabs__btn {
	padding: 6px 16px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	background: var(--color-bg);
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-sub);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.popular-tabs__btn:hover {
	border-color: var(--color-point);
	color: var(--color-point);
}

.popular-tabs__btn.is-active {
	background: var(--color-point);
	border-color: var(--color-point);
	color: #fff;
}

.popular-tabs__panel[hidden] {
	display: none;
}

.empty-notice {
	padding: var(--space-l) var(--space-s);
	text-align: center;
	color: var(--color-text-light);
	background: var(--color-bg-soft);
	border-radius: var(--radius-m);
	font-size: 14px;
}

/* -----------------------------------------------------------
   6. パンくず
----------------------------------------------------------- */
.breadcrumb {
	font-size: 12px;
	color: var(--color-text-light);
	margin-bottom: var(--space-s);
	overflow-x: auto;
	white-space: nowrap;
}

.breadcrumb a {
	color: var(--color-text-sub);
}

.breadcrumb .sep {
	margin: 0 6px;
}

/* -----------------------------------------------------------
   7. 記事詳細
----------------------------------------------------------- */
.single-article {
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;
}

.article-header {
	margin-bottom: var(--space-m);
}

.article-category-label {
	display: inline-block;
	background: var(--color-point);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--radius-s);
	margin-bottom: var(--space-xs);
}

.article-title {
	font-size: 26px;
	line-height: 1.45;
	font-weight: 800;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-s);
	margin-top: var(--space-s);
	font-size: 13px;
	color: var(--color-text-light);
}

.article-thumb {
	margin: var(--space-m) 0;
	border-radius: var(--radius-m);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--color-bg-soft);
}

.article-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.article-body {
	font-size: 17px;
	line-height: 1.95;
	color: var(--color-text);
}

.article-body h2 {
	font-size: 22px;
	margin: var(--space-l) 0 var(--space-s);
	padding-bottom: 8px;
	border-bottom: 3px solid var(--color-point);
	scroll-margin-top: 80px;
}

.article-body h3 {
	font-size: 19px;
	margin: var(--space-m) 0 var(--space-xs);
	scroll-margin-top: 80px;
}

.article-body p {
	margin: 0 0 var(--space-m);
}

.article-body ul,
.article-body ol {
	margin: 0 0 var(--space-m);
	padding-left: 1.4em;
}

.article-body li {
	list-style: revert;
	margin-bottom: 6px;
}

.article-body img {
	border-radius: var(--radius-m);
	margin: var(--space-s) 0;
}

.article-body blockquote {
	margin: var(--space-m) 0;
	padding: var(--space-s) var(--space-m);
	background: var(--color-bg-soft);
	border-left: 4px solid var(--color-point);
	color: var(--color-text-sub);
}

.article-body strong {
	font-weight: 700;
	background: linear-gradient(transparent 55%, var(--color-point-soft) 55%);
}

/* 本文用ハイライトボックス（Gutenbergのグループ/段落ブロックに追加CSSクラスとして指定） */
.info-box {
	margin: var(--space-m) 0;
	padding: var(--space-s) var(--space-m);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-m);
	background: var(--color-bg-soft);
}

.info-box__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-sub);
}

.info-box p:last-child {
	margin-bottom: 0;
}

.info-box--point {
	border-color: var(--color-point);
	background: var(--color-point-soft);
}

.info-box--point .info-box__label {
	color: var(--color-point-dark);
}

.article-body a {
	color: var(--color-point);
	text-decoration: underline;
}

.article-body table {
	width: 100%;
	border-collapse: collapse;
	margin: var(--space-m) 0;
	font-size: 15px;
}

.article-body th,
.article-body td {
	border: 1px solid var(--color-border);
	padding: 8px 10px;
	text-align: left;
}

/* -----------------------------------------------------------
   8. 目次
----------------------------------------------------------- */
.toc {
	background: var(--color-bg-soft);
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-point);
	border-radius: var(--radius-m);
	margin: var(--space-m) 0;
}

.toc__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	padding: var(--space-s);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}

.toc__toggle-icon {
	color: var(--color-point);
	transition: transform 0.2s ease;
}

.toc.is-collapsed .toc__toggle-icon {
	transform: rotate(-90deg);
}

.toc__body {
	padding: 0 var(--space-s) var(--space-s);
}

.toc.is-collapsed .toc__body {
	display: none;
}

.toc__body ol {
	counter-reset: toc;
	list-style: none;
	margin: 0;
	padding: 0;
}

.toc__body > ol > li {
	position: relative;
	counter-increment: toc;
	margin-bottom: 10px;
	padding-left: 28px;
	font-size: 14px;
	font-weight: 700;
}

.toc__body > ol > li::before {
	content: counter(toc);
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--color-point);
	border-radius: 50%;
}

.toc__body a {
	color: var(--color-text);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.toc__body a:hover {
	color: var(--color-point);
	border-bottom-color: var(--color-point);
}

.toc__body ol ol {
	list-style: none;
	margin: 8px 0 0;
	padding-left: 1.2em;
}

.toc__body ol ol li {
	margin-bottom: 6px;
	padding-left: 0;
	font-size: 13px;
	font-weight: 400;
	color: var(--color-text-sub);
}

/* -----------------------------------------------------------
   9. 広告スロット
----------------------------------------------------------- */
.ad-slot {
	margin: var(--space-m) 0;
	text-align: center;
}

.ad-slot__label {
	font-size: 11px;
	color: var(--color-text-light);
	margin-bottom: 4px;
	letter-spacing: 0.05em;
}

.ad-slot__inner {
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ad-slot--sidebar .ad-slot__inner {
	min-height: 250px;
}

/* -----------------------------------------------------------
   10. 関連記事・前後記事
----------------------------------------------------------- */
.related-posts {
	margin-top: var(--space-xl);
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-s);
	margin-top: var(--space-l);
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-m);
}

.post-nav__item {
	min-width: 0;
}

.post-nav__label {
	font-size: 12px;
	color: var(--color-text-light);
	margin-bottom: 4px;
}

.post-nav__title {
	font-size: 14px;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-nav__next {
	text-align: right;
}

/* -----------------------------------------------------------
   11. 著者ボックス
----------------------------------------------------------- */
.author-box {
	display: flex;
	gap: var(--space-s);
	background: var(--color-bg-soft);
	border-radius: var(--radius-m);
	padding: var(--space-m);
	margin-top: var(--space-l);
	align-items: flex-start;
}

.author-box img {
	border-radius: 50%;
	width: 56px;
	height: 56px;
}

.author-box__name {
	font-weight: 700;
	margin-bottom: 4px;
}

.author-box__bio {
	font-size: 13px;
	color: var(--color-text-sub);
	line-height: 1.7;
}

/* -----------------------------------------------------------
   12. サイドバー
----------------------------------------------------------- */
.widget {
	margin-bottom: var(--space-l);
}

.widget-title {
	font-size: 16px;
	font-weight: 800;
	margin-bottom: var(--space-s);
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-text);
}

.widget ul li {
	margin-bottom: 10px;
}

.widget_categories ul li,
.widget_archive ul li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 14px;
}

.author-widget {
	text-align: center;
}

.author-widget img {
	border-radius: 50%;
	width: 72px;
	height: 72px;
	margin: 0 auto 10px;
}

.social-links {
	display: flex;
	gap: 10px;
	margin-top: var(--space-s);
}

.social-links a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-bg-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

.social-links svg {
	width: 18px;
	height: 18px;
}

/* -----------------------------------------------------------
   13. ページネーション
----------------------------------------------------------- */
.pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: var(--space-xl);
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
	font-size: 14px;
}

.pagination .current {
	background: var(--color-point);
	border-color: var(--color-point);
	color: #fff;
	font-weight: 700;
}

/* -----------------------------------------------------------
   14. アーカイブ・カテゴリー・検索・404
----------------------------------------------------------- */
.archive-header {
	margin-bottom: var(--space-l);
}

.archive-title {
	font-size: 24px;
	font-weight: 800;
}

.archive-description {
	margin-top: var(--space-xs);
	color: var(--color-text-sub);
	font-size: 14px;
	line-height: 1.8;
}

.state-page {
	max-width: 560px;
	margin: var(--space-xl) auto;
	text-align: center;
	padding: 0 var(--space-s);
}

.state-page__title {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: var(--space-s);
}

.state-page__desc {
	color: var(--color-text-sub);
	line-height: 1.9;
	margin-bottom: var(--space-l);
}

.state-page__search {
	margin-bottom: var(--space-l);
}

.state-page__links {
	display: flex;
	gap: var(--space-s);
	justify-content: center;
	flex-wrap: wrap;
}

.state-page__links a {
	padding: 10px 20px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
	font-weight: 600;
	font-size: 14px;
}

/* -----------------------------------------------------------
   15. フッター
----------------------------------------------------------- */
.site-footer {
	background: var(--color-bg-soft);
	border-top: 1px solid var(--color-border);
	margin-top: var(--space-l);
	padding: var(--space-m) 0 var(--space-s);
}

.footer-nav {
	margin-bottom: var(--space-s);
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-s) var(--space-m);
}

.footer-nav a {
	font-size: 14px;
	font-weight: 600;
}

.footer-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-s) var(--space-m);
	margin-bottom: var(--space-m);
	font-size: 13px;
	color: var(--color-text-sub);
}

.footer-social {
	margin-bottom: var(--space-m);
}

.footer-copyright {
	font-size: 12px;
	color: var(--color-text-light);
	text-align: center;
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-m);
}

/* -----------------------------------------------------------
   16. コメント
----------------------------------------------------------- */
.comments-area {
	max-width: var(--content-width);
	margin: var(--space-xl) auto 0;
}

.comments-title {
	font-size: 19px;
	font-weight: 800;
	margin-bottom: var(--space-m);
}

.comment-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-m);
}

.comment-body {
	border-bottom: 1px solid var(--color-border);
	padding-bottom: var(--space-m);
}

.comment-author {
	font-weight: 700;
	font-size: 14px;
}

.comment-metadata {
	font-size: 12px;
	color: var(--color-text-light);
	margin-bottom: 6px;
}

.comment-content p {
	font-size: 14px;
	line-height: 1.8;
	margin: 0;
}

.comment-reply-link {
	font-size: 12px;
	color: var(--color-point);
	font-weight: 600;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
	margin-bottom: var(--space-s);
}

.comment-respond textarea {
	min-height: 140px;
}

.comment-respond .form-submit input {
	background: var(--color-point);
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: var(--radius-s);
	font-weight: 700;
}

/* -----------------------------------------------------------
   16b. お問い合わせフォーム
----------------------------------------------------------- */
.contact-form {
	max-width: var(--content-width);
	margin: var(--space-l) auto 0;
}

.contact-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form__field {
	margin-bottom: var(--space-m);
}

.contact-form__field label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 6px;
}

.contact-form__required {
	color: var(--color-point);
	font-weight: 600;
	font-size: 12px;
	margin-left: 4px;
}

.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
	font-size: 15px;
	font-family: inherit;
}

.contact-form__field textarea {
	resize: vertical;
	min-height: 160px;
}

.contact-form__submit {
	margin-top: var(--space-l);
}

.contact-form__submit button {
	background: var(--color-point);
	color: #fff;
	border: none;
	padding: 14px 32px;
	border-radius: var(--radius-s);
	font-weight: 700;
	font-size: 15px;
}

.contact-form__notice {
	max-width: var(--content-width);
	margin: var(--space-l) auto 0;
	padding: var(--space-s);
	border-radius: var(--radius-s);
	font-size: 14px;
	font-weight: 600;
}

.contact-form__notice--success {
	background: #eaf6ee;
	color: #2a7a45;
}

.contact-form__notice--error {
	background: #fbeceb;
	color: var(--color-point-dark);
}

/* -----------------------------------------------------------
   17. アクセシビリティ関連
----------------------------------------------------------- */
.alignleft {
	float: left;
	margin-right: var(--space-s);
}

.alignright {
	float: right;
	margin-left: var(--space-s);
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* -----------------------------------------------------------
   18. レスポンシブ（タブレット / デスクトップ）
----------------------------------------------------------- */
@media (min-width: 768px) {
	.card-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.hero-section {
		grid-template-columns: 1.6fr 1fr;
	}

	.hero-main .article-card,
	.hero-main .article-card__link {
		height: 100%;
	}

	.hero-main .article-card__link,
	.hero-main .article-card__body {
		display: flex;
		flex-direction: column;
	}

	.hero-main .article-card__body {
		flex: 1;
	}

	.hero-main .article-card__excerpt {
		display: -webkit-box;
		font-size: 14px;
		line-height: 1.7;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.hero-main .article-card__meta {
		margin-top: auto;
	}

	.article-title {
		font-size: 30px;
	}

	.post-nav {
		gap: var(--space-m);
	}

	.site-branding img {
		max-width: 300px;
	}
}

@media (min-width: 1024px) {
	.reading-progress {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 3px;
		z-index: 501;
		pointer-events: none;
	}

	.reading-progress__bar {
		display: block;
		width: 100%;
		height: 100%;
		background: var(--color-point);
		transform: scaleX(0);
		transform-origin: left center;
		will-change: transform;
	}

	body.admin-bar .reading-progress {
		top: 32px;
	}

	.site-header-inner {
		height: 84px;
	}

	.site-branding img {
		max-height: 64px;
		max-width: 440px;
	}

	.primary-navigation {
		display: block;
	}

	.menu-toggle {
		display: none;
	}

	.mobile-navigation {
		display: none;
	}

	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.layout-with-sidebar.no-sidebar {
		grid-template-columns: 1fr;
	}

	.card-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.card-list .article-card {
		grid-template-columns: 160px 1fr;
	}

	.article-title {
		font-size: 32px;
	}

	.article-body {
		font-size: 18px;
	}
}

@media (min-width: 1180px) {
	.card-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* カテゴリー別セクション：常に1行のみ表示（カラム数に合わせて件数を絞る） */
.card-grid--one-row {
	grid-template-columns: repeat(2, 1fr);
}

.card-grid--one-row > *:nth-child(n+3) {
	display: none;
}

@media (min-width: 768px) {
	.card-grid--one-row {
		grid-template-columns: repeat(3, 1fr);
	}

	.card-grid--one-row > *:nth-child(3) {
		display: block;
	}

	.card-grid--one-row > *:nth-child(n+4) {
		display: none;
	}
}

@media (min-width: 1180px) {
	.card-grid--one-row {
		grid-template-columns: repeat(4, 1fr);
	}

	.card-grid--one-row > *:nth-child(n+4) {
		display: block;
	}
}

/* 新着記事：常に2行のみ表示（カラム数に合わせて件数を絞る） */
.card-grid--two-rows {
	grid-template-columns: repeat(2, 1fr);
}

.card-grid--two-rows > *:nth-child(n+5) {
	display: none;
}

@media (min-width: 768px) {
	.card-grid--two-rows {
		grid-template-columns: repeat(3, 1fr);
	}

	.card-grid--two-rows > *:nth-child(5),
	.card-grid--two-rows > *:nth-child(6) {
		display: block;
	}

	.card-grid--two-rows > *:nth-child(n+7) {
		display: none;
	}
}

@media (min-width: 1180px) {
	.card-grid--two-rows {
		grid-template-columns: repeat(4, 1fr);
	}

	.card-grid--two-rows > *:nth-child(n+7) {
		display: block;
	}
}

/* -----------------------------------------------------------
   19. 印刷
----------------------------------------------------------- */
@media print {
	.site-header,
	.site-footer,
	.ad-slot,
	.widget-area,
	.mobile-navigation {
		display: none !important;
	}
}
