/* 金のたまご農園：下層ページ（記事・固定ページ・一覧） */
.tmg-narrow { max-width: 808px; }
.tmg-h3 { margin: 0 0 16px; font-family: var(--tmg-serif); font-size: 22px; line-height: 1.5; font-weight: 700; }

/* 記事の頭 */
.tmg-article__head { padding-top: 48px; padding-bottom: 8px; }
.tmg-article__cat { margin-bottom: 12px; }
.tmg .tmg-article__cat a { color: var(--tmg-gold-text); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; }
.tmg-article__cat { margin-bottom: 4px; }
.tmg-article__title { margin: 0; font-family: var(--tmg-serif); font-weight: 700; font-size: clamp(24px, 4.2vw, 36px); line-height: 1.5; letter-spacing: .03em; overflow-wrap: anywhere; }
.tmg-article__meta { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--tmg-sub); }
.tmg-article__eye { margin: 28px auto 0; max-width: 908px; }
.tmg-article__eye img { display: block; width: 100%; height: auto; border-radius: 18px; }

/* 本文 */
.tmg-prose { padding-top: 28px; font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.tmg-prose > :first-child { margin-top: 0; }
.tmg-prose p { margin: 0 0 1.4em; }
.tmg-prose h2 { margin: 2.4em 0 .9em; padding: 0 0 .5em; font-family: var(--tmg-serif); font-size: 26px; line-height: 1.55; border-bottom: 2px solid var(--tmg-line); position: relative; }
.tmg-prose h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--tmg-gold); }
.tmg-prose h3 { margin: 2em 0 .8em; padding-left: 14px; font-size: 21px; line-height: 1.6; border-left: 4px solid var(--tmg-green); }
.tmg-prose h4 { margin: 1.8em 0 .6em; font-size: 18px; color: var(--tmg-green); }
.tmg-prose h5, .tmg-prose h6 { margin: 1.6em 0 .6em; font-size: 17px; }
.tmg-prose ul, .tmg-prose ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.tmg-prose li { margin: .3em 0; }
.tmg-prose li > ul, .tmg-prose li > ol { margin: .3em 0 0; }
.tmg-prose strong, .tmg-prose b { font-weight: 700; }
.tmg-prose mark { background: linear-gradient(transparent 55%, #F3E2A9 55%); color: inherit; }
.tmg-prose a { color: var(--tmg-green); text-decoration: underline; text-underline-offset: 3px; }
.tmg-prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--tmg-tint); border-left: 4px solid var(--tmg-green); border-radius: 0 12px 12px 0; color: #33413A; }
.tmg-prose blockquote > :last-child { margin-bottom: 0; }
.tmg-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--tmg-line); }
.tmg-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.tmg-prose figure { margin: 1.6em 0; max-width: 100%; }
.tmg-prose figcaption, .tmg-prose .wp-caption-text, .tmg-prose .wp-element-caption { margin-top: 8px; font-size: 14px; color: var(--tmg-sub); text-align: center; line-height: 1.7; }
.tmg-prose .wp-caption { max-width: 100%; }
.tmg-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.tmg-prose .alignleft { float: left; margin: .4em 1.4em 1em 0; max-width: 50%; }
.tmg-prose .alignright { float: right; margin: .4em 0 1em 1.4em; max-width: 50%; }
.tmg-prose::after { content: ""; display: table; clear: both; }
.tmg-prose iframe, .tmg-prose video, .tmg-prose embed, .tmg-prose object { max-width: 100%; }
.tmg-prose iframe[src*="youtube"], .tmg-prose iframe[src*="youtu.be"], .tmg-prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.tmg-prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.tmg-prose th, .tmg-prose td { padding: 10px 12px; border: 1px solid var(--tmg-line); text-align: left; vertical-align: top; }
.tmg-prose th, .tmg-prose thead td { background: var(--tmg-tint); font-weight: 700; }
.tmg-prose pre { margin: 1.6em 0; padding: 16px 18px; background: #1F2A25; color: #F3F1E8; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.tmg-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.tmg-prose :not(pre) > code { padding: 2px 6px; background: #F1F2EC; border-radius: 6px; }
.tmg-prose .wp-block-button__link, .tmg-prose .wp-block-button a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 24px; background: var(--tmg-green); color: #fff; text-decoration: none; font-weight: 700; }
.tmg-prose .wp-block-embed { margin: 1.6em 0; }
.tmg-prose .wp-block-embed__wrapper iframe { width: 100%; }
.tmg-prose .wp-block-table { overflow-x: auto; }
.tmg-prose .tmg-lesson, .tmg-prose .tmg-box { font-family: var(--tmg-sans); }

/* 記事の目次（Easy Table of Contents） */
.tmg-prose #ez-toc-container { display: block; width: auto; max-width: 100%; margin: 1.8em 0; padding: 18px 22px 14px; background: var(--tmg-tint); border: 0; border-left: 4px solid var(--tmg-green); border-radius: 0 16px 16px 0; box-shadow: none; font-size: 15px; line-height: 1.7; }
.tmg-prose #ez-toc-container .ez-toc-title-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.tmg-prose #ez-toc-container .ez-toc-title, .tmg-prose #ez-toc-container p.ez-toc-title { margin: 0; font-family: var(--tmg-serif); font-size: 18px; font-weight: 700; color: var(--tmg-ink); }
.tmg-prose #ez-toc-container .ez-toc-title-toggle a, .tmg-prose #ez-toc-container .ez-toc-btn { border-radius: 10px; border-color: #C9D3C7; background: #fff; }
.tmg-prose #ez-toc-container ul, .tmg-prose #ez-toc-container ol { margin: 0; padding-left: 0; list-style: none; }
.tmg-prose #ez-toc-container ul ul, .tmg-prose #ez-toc-container ol ol { margin: 0 0 0 1.1em; }
.tmg-prose #ez-toc-container li { margin: 0; padding: 0; }
.tmg-prose #ez-toc-container a { display: inline-block; padding: 4px 0; color: var(--tmg-green); text-decoration: none; }
.tmg-prose #ez-toc-container a:hover { text-decoration: underline; }
.tmg-prose #ez-toc-container nav > ul > li > a { font-weight: 700; color: var(--tmg-ink); }
.tmg-prose .ez-toc-counter nav ul li a::before { color: var(--tmg-gold-text); }

/* 記事の終わり */
.tmg-article__foot { padding-top: 24px; display: flex; flex-direction: column; gap: 24px; }
.tmg-chips { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tmg-chips__label { font-size: 13px; color: var(--tmg-sub); margin-right: 4px; }
.tmg .tmg-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--tmg-tint); color: var(--tmg-green); text-decoration: none; font-size: 14px; font-weight: 700; }
.tmg-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tmg .tmg-adjacent a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--tmg-line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--tmg-ink); font-size: 15px; line-height: 1.6; }
.tmg .tmg-adjacent a:hover { border-color: var(--tmg-green); }
.tmg-adjacent span { font-size: 13px; color: var(--tmg-green); font-weight: 700; }
.tmg-adjacent__next { text-align: right; grid-column: 2; }
.tmg-related { padding-bottom: 8px; }

/* 一覧のカード */
.tmg-pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tmg .tmg-pcard a { height: 100%; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--tmg-ink); background: #fff; border: 1px solid var(--tmg-line); border-radius: 18px; overflow: hidden; padding-bottom: 18px; }
.tmg .tmg-pcard a:hover { border-color: var(--tmg-green); }
.tmg .tmg-pcard a:hover .tmg-pcard__title { color: var(--tmg-green); }
.tmg-pcard__thumb { display: block; aspect-ratio: 16 / 9; background: var(--tmg-tint); overflow: hidden; }
.tmg-pcard__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tmg-pcard__noimg { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.tmg-pcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 18px 0; font-size: 13px; color: var(--tmg-sub); }
.tmg-pcard__cat { color: var(--tmg-green); font-weight: 700; }
.tmg-pcard__title { padding: 0 18px; font-size: 17px; font-weight: 700; line-height: 1.6; }
.tmg-pcard__ex { padding: 0 18px; font-size: 14px; color: var(--tmg-sub); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 一覧の頭・ページ送り・空 */
.tmg-pagehead__title--sm { font-size: clamp(26px, 4.4vw, 38px); overflow-wrap: anywhere; }
.tmg-search--page { padding: 18px 0 0; max-width: 640px; }
.tmg-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px 0 8px; }
.tmg .tmg-pager a, .tmg .tmg-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid var(--tmg-line); background: #fff; color: var(--tmg-ink); text-decoration: none; font-weight: 700; }
.tmg .tmg-pager .current { background: var(--tmg-green); border-color: var(--tmg-green); color: #fff; }
.tmg .tmg-pager .dots { border: 0; background: transparent; }
.tmg-pager--inpost { justify-content: flex-start; }
.tmg-empty { margin: 0 0 24px; color: var(--tmg-sub); }
.tmg-doors--sm .tmg-door { min-height: 0; }
.tmg-archive { padding-bottom: 72px; }

/* コメント */
.tmg-comments { padding-top: 48px; padding-bottom: 16px; }
.tmg-comments__list { list-style: none; margin: 0 0 32px; padding: 0; }
.tmg-comments__list .children { list-style: none; margin: 12px 0 0 20px; padding: 0; }
.tmg-comment { padding: 16px 0; border-top: 1px solid var(--tmg-line); }
.tmg-comment__head { font-size: 14px; color: var(--tmg-sub); }
.tmg-comment__head b { color: var(--tmg-ink); margin-right: 8px; }
.tmg-comment__body p { margin: 6px 0 0; }
.tmg-comment__reply { margin: 6px 0 0; font-size: 14px; }
.tmg .comment-form p { margin: 0 0 14px; }
.tmg .comment-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tmg .comment-form input[type="text"], .tmg .comment-form input[type="email"], .tmg .comment-form input[type="url"], .tmg .comment-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #C9CCC2; border-radius: 12px; font-size: 16px; font-family: inherit; background: #fff; }
.tmg .comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

@media (max-width: 640px) {
	.tmg-article__head { padding-top: 32px; }
	.tmg-article__eye { padding-left: 0; padding-right: 0; }
	.tmg-article__eye img { border-radius: 0; }
	.tmg-prose { font-size: 16px; line-height: 1.95; }
	.tmg-prose h2 { font-size: 22px; }
	.tmg-prose h3 { font-size: 19px; }
	.tmg-prose .alignleft, .tmg-prose .alignright { float: none; margin: 1em auto; max-width: 100%; }
	.tmg-prose table { display: block; overflow-x: auto; white-space: normal; -webkit-overflow-scrolling: touch; }
	.tmg-prose th, .tmg-prose td { min-width: 6.5em; }
	.tmg-adjacent { grid-template-columns: minmax(0, 1fr); }
	.tmg-adjacent__next { grid-column: 1; }
	.tmg-pcards { grid-template-columns: minmax(0, 1fr); }
}

/* 1.3.0 この記事の要点・書き手のリンク */
.tmg-article__by a { color: inherit; text-decoration: underline; text-decoration-color: var(--tmg-line); text-underline-offset: 3px; }
.tmg-article__by a:hover { color: var(--tmg-green); text-decoration-color: currentColor; }
.tmg-points { box-sizing: border-box; margin: 0 0 24px; padding: 18px 22px 16px; border-left: 3px solid var(--tmg-gold); background: var(--tmg-tint); border-radius: 0 12px 12px 0; color: var(--tmg-ink); }
.tmg-points__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--tmg-gold-text); }
.tmg-points__list { margin: 0; padding: 0 0 0 1.2em; font-size: 16px; line-height: 1.8; }
.tmg-points__list li { margin: 0 0 4px; padding: 0; }
.tmg-points__list li:last-child { margin-bottom: 0; }
@media (max-width: 480px) { .tmg-points { padding: 14px 16px 12px; } .tmg-points__list { font-size: 15px; } }
