/* =========================================================
   記事本文・記事ページ（管理画面の編集画面でも同じ見た目になる）
   ========================================================= */

/* ---------- 記事ページの枠 ---------- */
.article__container { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter, 16px); }

.breadcrumb { padding: 14px 0 0; font-size: 12px; color: var(--steel, #6b7075); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "＞"; margin: 0 .5em; color: var(--line, #e4dfd8); }
.breadcrumb a { color: var(--steel, #6b7075); text-decoration: none; }
.breadcrumb a:hover { color: var(--oak-deep, #7a5b36); text-decoration: underline; }
.breadcrumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14em; }

.article__header { padding: 24px 0 20px; }
.article__cat {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: var(--oak-deep, #7a5b36);
	text-decoration: none;
	letter-spacing: .06em;
}
.article__title { margin-top: 6px; font-size: clamp(22px, 6vw, 30px); line-height: 1.55; letter-spacing: .04em; }
/* 言葉の途中で改行しない（区切りは inc/budoux.php が <wbr> で入れる。長すぎるときだけどこでも折り返す） */
.article__title,
.entry-content,
.card__title,
.mini-list__title { word-break: keep-all; overflow-wrap: break-word; } /* anywhere だと表のせまい列や行の整えで言葉の途中が切れる */
.entry-content .wp-block-column { word-break: keep-all; } /* WordPress のカラムブロックは break-word にしているので戻す */
.nitoru-nw { white-space: nowrap; } /* 数字と単位など、1行にまとめたい短い言葉（inc/budoux.php が付ける） */
.article__dates { margin: 12px 0 0; font-size: 13px; color: var(--steel, #6b7075); display: flex; gap: 16px; }

.article__eyecatch { margin: 0 calc(var(--gutter, 16px) * -1) 8px; }
.article__eyecatch img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }

.article__tags { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article__tags a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 4px 12px;
	background: var(--plaster, #f6f4f1);
	border-radius: 999px;
	font-size: 13px;
	color: var(--ink, #33312e);
	text-decoration: none;
}

.related { padding-bottom: 24px; }

/* ---------- 本文 ---------- */
.entry-content { font-size: 16px; line-height: 2; padding-top: 16px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.6em; }
.entry-content p { margin-top: 0; }

.entry-content h2 {
	margin: 2.8em 0 1.1em;
	padding: 0 0 .5em;
	font-size: 21px;
	line-height: 1.55;
	letter-spacing: .04em;
	border-bottom: 2px solid var(--ink, #33312e);
}
.entry-content h3 {
	margin: 2.2em 0 .9em;
	padding-left: .75em;
	font-size: 18px;
	line-height: 1.6;
	border-left: 3px solid var(--oak, #b8905f);
}
.entry-content h4 { margin: 1.8em 0 .6em; font-size: 16px; }

.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--oak, #b8905f); }

.entry-content strong { font-weight: 700; background: linear-gradient(transparent 62%, #efe3cf 62%); }

.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: 4px; }
.entry-content figcaption { font-size: 13px; color: var(--steel, #6b7075); text-align: center; margin-top: .6em; line-height: 1.6; }

/* 表：サイズ・寸法の記事でよく使う */
.entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.entry-content th,
.entry-content td { padding: 10px 12px; border: 1px solid var(--line, #e4dfd8); text-align: left; vertical-align: top; }
.entry-content th,
.entry-content td { min-width: 4.5em; }
.entry-content thead { border-bottom: 0; }
.entry-content thead th,
.entry-content tbody th { background: var(--plaster, #f6f4f1); font-weight: 700; white-space: nowrap; }
.entry-content .wp-block-table figcaption { text-align: left; }
.entry-content .house-table th { width: 45%; }

.entry-content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 1em;
	border-left: 3px solid var(--line, #e4dfd8);
	color: var(--steel, #6b7075);
}

/* ---------- 記事の枠（仕様書 12） ---------- */
.entry-content .nitoru-box-title { margin: 0 0 .5em; font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1.6; }

[class*="is-style-nitoru-"] > :last-child,
[class*="is-style-nitoru-"] > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
[class*="is-style-nitoru-"] ul,
[class*="is-style-nitoru-"] ol { margin: 0; }

/* この記事でわかること：図面の表題欄と同じ細い線の枠 */
.is-style-nitoru-points {
	padding: 18px 20px;
	border: 1px solid var(--ink, #33312e);
	border-radius: 2px;
}
.is-style-nitoru-points .nitoru-box-title { font-size: 14px; }
.is-style-nitoru-points ul { list-style: none; padding: 0; }
.is-style-nitoru-points li { position: relative; padding-left: 1.5em; }
.is-style-nitoru-points li::before {
	content: "";
	position: absolute;
	left: 0; top: .72em;
	width: .75em; height: 1px;
	background: var(--oak, #b8905f);
}

/* 我が家の場合：実例は面で目立たせる */
.is-style-nitoru-ourhome {
	padding: 20px;
	background: var(--plaster, #f6f4f1);
	border-radius: 6px;
}
.is-style-nitoru-ourhome .nitoru-box-title { color: var(--oak-deep, #7a5b36); }

/* よかったこと・気になったこと */
.is-style-nitoru-procon { gap: 12px !important; }
.is-style-nitoru-procon > .wp-block-column {
	padding: 16px 18px;
	border: 1px solid var(--line, #e4dfd8);
	border-radius: 6px;
}
.is-style-nitoru-procon > .wp-block-column > :last-child { margin-bottom: 0; }
.is-style-nitoru-procon > .wp-block-column:first-child .nitoru-box-title { color: var(--oak-deep, #7a5b36); }
.is-style-nitoru-procon > .wp-block-column:last-child .nitoru-box-title { color: var(--steel, #6b7075); }

/* 実際に住んでみて：建てる前 → 住んでみて の流れを線でつなぐ */
.is-style-nitoru-reallife {
	position: relative;
	padding-left: 22px;
}
.is-style-nitoru-reallife::before {
	content: "";
	position: absolute;
	left: 5px; top: .9em; bottom: .9em;
	width: 1px;
	background: var(--oak, #b8905f);
}
.is-style-nitoru-reallife .nitoru-box-title { position: relative; }
.is-style-nitoru-reallife .nitoru-box-title::before {
	content: "";
	position: absolute;
	left: -22px; top: .5em;
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--paper, #fff);
	border: 1px solid var(--oak, #b8905f);
}
.is-style-nitoru-reallife .nitoru-box-title ~ .nitoru-box-title::before { background: var(--oak, #b8905f); }
.is-style-nitoru-reallife p:not(.nitoru-box-title) { margin-bottom: 1.4em; }

/* まとめ */
.is-style-nitoru-summary {
	padding: 0 0 18px;
	border-bottom: 1px solid var(--line, #e4dfd8);
}

/* ひとことメモ */
.is-style-nitoru-note {
	padding: 14px 16px;
	border-left: 3px solid var(--oak, #b8905f);
	background: var(--plaster, #f6f4f1);
	font-size: 15px;
}

@media (min-width: 760px) {
	.article__eyecatch { margin-left: 0; margin-right: 0; }
	.article__eyecatch img { border-radius: 4px; }
	.entry-content h2 { font-size: 23px; }
	.article__header { padding-top: 36px; }
}

/* STEP 6：スマホで押しやすく */
.breadcrumb { padding-top: 4px; }
.breadcrumb a { display: inline-block; padding: 10px 0; }
.article__header { padding-top: 12px; }
.article__cat { display: inline-flex; align-items: center; min-height: 44px; }
.article__title { margin-top: 0; }
.article__tags a { min-height: 40px; }

/* にとるの吹き出し */
.is-style-nitoru-talk {
	position: relative;
	min-height: 56px;
	padding-left: 68px;
}
.is-style-nitoru-talk::before {
	content: "";
	position: absolute;
	left: 0; top: 0;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: #efe6d8 var(--nitoru-avatar, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M13 23.5 24 14l11 9.5V35a1 1 0 0 1-1 1H14a1 1 0 0 1-1-1z' fill='%23fff' stroke='%237a5b36' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M21 36v-7h6v7' fill='none' stroke='%237a5b36' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E")) center / cover no-repeat;
}
.is-style-nitoru-talk::after {
	content: "にとる";
	position: absolute;
	left: 0; top: 56px;
	width: 52px;
	text-align: center;
	font-size: 11px;
	color: var(--steel, #6b7075);
}
.is-style-nitoru-talk > p,
.is-style-nitoru-talk > .wp-block-group__inner-container {
	position: relative;
	padding: 14px 16px;
	border: 1px solid var(--line, #e4dfd8);
	border-radius: 12px;
	background: var(--paper, #fff);
}
.is-style-nitoru-talk > p::before,
.is-style-nitoru-talk > .wp-block-group__inner-container::before {
	content: "";
	position: absolute;
	left: -7px; top: 18px;
	width: 12px; height: 12px;
	background: inherit;
	border-left: 1px solid var(--line, #e4dfd8);
	border-bottom: 1px solid var(--line, #e4dfd8);
	transform: rotate(45deg);
}

/* 紹介記事のボタン（2026-10-03 参考：mugihotelhome 紹介解説。予約・相談のボタンを冒頭・特典の後・最後に） */
.entry-content .nitoru-cta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}
.entry-content .nitoru-cta .wp-block-button { width: 100%; }
.entry-content .nitoru-cta .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 20px;
	border: 1px solid var(--oak-deep, #7a5b36);
	border-radius: 999px;
	background: var(--oak-deep, #7a5b36);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
	line-height: 1.5;
	transition: opacity .2s;
}
.entry-content .nitoru-cta .wp-block-button__link:hover { opacity: .85; }
.entry-content .nitoru-cta .is-style-outline .wp-block-button__link {
	background: var(--paper, #fff);
	color: var(--oak-deep, #7a5b36);
}
.entry-content .nitoru-cta-note {
	margin-top: -.8em;
	font-size: 13px;
	color: var(--steel, #6b7075);
	text-align: center;
}

/* 紹介の使い方：番号つきのステップ */
.entry-content .nitoru-steps { list-style: none; padding: 0; counter-reset: step; }
.entry-content .nitoru-steps > li {
	position: relative;
	counter-increment: step;
	padding: 14px 16px 14px 60px;
	border: 1px solid var(--line, #e4dfd8);
	border-radius: 6px;
}
.entry-content .nitoru-steps > li + li { margin-top: 12px; }
.entry-content .nitoru-steps > li::before {
	content: "STEP" counter(step);
	position: absolute;
	left: 12px; top: 16px;
	width: 38px;
	font-family: "Josefin Sans", sans-serif;
	font-size: 11px;
	line-height: 1.3;
	color: var(--oak-deep, #7a5b36);
	text-align: center;
	word-break: break-all;
}

/* 特典の一覧表：番号の列はせまく */
.entry-content .nitoru-perk-table td:first-child { width: 3em; min-width: 3em; text-align: center; }

/* ---------- 記事ページのスマホ見直し（2026-10-08 本人要望「記事ページもスマホでみやすく」） ---------- */
@media (max-width: 959px) {
	/* パンくず：1行にして、長い記事名は「…」 */
	.breadcrumb ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
	.breadcrumb li { flex: none; }
	.breadcrumb li:last-child { flex: 1 1 auto; min-width: 0; }
	.breadcrumb li:last-child > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
	.breadcrumb { font-size: 11px; }
	/* タイトル・日付 */
	.article__title { font-size: 19px; line-height: 1.65; letter-spacing: .03em; }
	.article__dates { font-size: 12px; }
	/* 本文：1行に入る文字を増やして、行の頭に1〜2文字だけ落ちるのを減らす */
	.entry-content { font-size: 15px; line-height: 1.95; letter-spacing: .01em; }
	.entry-content p,
	.entry-content li { text-wrap: pretty; } /* 改行の位置は inc/budoux.php の <wbr>＋keep-all（auto-phrase は「おつき/あい」になるのでやめた・2026-11-05） */
	.entry-content h2 { font-size: 18px; line-height: 1.6; }
	.entry-content h3 { font-size: 16px; line-height: 1.6; }
	.entry-content h4 { font-size: 15px; }
	.entry-content table { font-size: 13px; }
	.entry-content td, .entry-content th { padding-left: 7px; padding-right: 7px; } /* 言葉の途中で切らなくても表が画面に入るように（2026-11-05） */
	.entry-content figcaption { font-size: 12px; }
	.entry-content .nitoru-box-title { font-size: 14px; }
}

/* ---------- 記事の見出し（h2）のイラスト（2026-10-08 本人要望「メリハリ」）：inc/article.php が見出しの言葉から class を付ける。ベージュの丸＋線のイラスト ---------- */
.entry-content h2.has-h2-icon::before {
	content: ""; display: block; width: 46px; height: 46px; margin: 0 0 10px; border-radius: 50%;
	background: var(--soft, #efe6d8) var(--h2-icon) no-repeat center / 30px 27px;
}
.entry-content h2.h2-icon--house { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 30V17L20 6l14 11v13'/%3E%3Cpath d='M16 30v-8h8v8'/%3E%3Cpath d='M2 30h36'/%3E%3C/svg%3E"); }
.entry-content h2.h2-icon--sofa { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 24v-7a3 3 0 0 1 3-3h22a3 3 0 0 1 3 3v7'/%3E%3Cpath d='M3 20a2 2 0 0 1 4 0v4h26v-4a2 2 0 0 1 4 0v8H3z'/%3E%3Cpath d='M7 28v3M33 28v3'/%3E%3C/svg%3E"); }
.entry-content h2.h2-icon--coin { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='17' cy='18' r='10'/%3E%3Cpath d='M17 12.5v11M13.5 16h7M13.5 20h7'/%3E%3Cpath d='M27.5 9a10 10 0 0 1 0 18'/%3E%3C/svg%3E"); }
.entry-content h2.h2-icon--key { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='18' r='7'/%3E%3Cpath d='M19 18h16M29 18v6M34 18v5'/%3E%3C/svg%3E"); }
.entry-content h2.h2-icon--leaf { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 32C8 16 18 8 34 6c-2 16-10 26-26 26z'/%3E%3Cpath d='M8 32 24 16'/%3E%3C/svg%3E"); }
.entry-content h2.h2-icon--check { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='18' r='14'/%3E%3Cpath d='M13.5 18.5l5 5L27 13.5'/%3E%3C/svg%3E"); }
.entry-content h2.h2-icon--chat { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h28v17H19l-7 6v-6H6z'/%3E%3Cpath d='M12 13.5h16M12 18.5h10'/%3E%3C/svg%3E"); }
.entry-content h2.h2-icon--bulb { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 3a10 10 0 0 0-6 18v4h12v-4a10 10 0 0 0-6-18z'/%3E%3Cpath d='M15.5 29h9M17 33h6'/%3E%3C/svg%3E"); }
.entry-content h2.h2-icon--plan { --h2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36' fill='none' stroke='%239a7444' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='32' height='28' rx='1'/%3E%3Cpath d='M4 17h14v15M18 4v6M24 17h12M24 17v7'/%3E%3C/svg%3E"); }
@media (max-width: 959px) { .entry-content h2.has-h2-icon::before { width: 42px; height: 42px; background-size: 27px 24px; } }

/* ---------- にとるの吹き出し：スマホ（2026-10-08 本人「吹き出しのバランス・改行がおかしい。もう少し小さく」） ---------- */
/* アイコンと「にとる」を上に1行で、吹き出しは横幅いっぱい（しっぽは上向き）。文字の折り返しが減る */
@media (max-width: 959px) {
	.is-style-nitoru-talk { padding-left: 0; padding-top: 46px; min-height: 0; }
	.is-style-nitoru-talk::before { width: 36px; height: 36px; }
	.is-style-nitoru-talk::after { left: 44px; top: 8px; width: auto; text-align: left; font-size: 12px; }
	.is-style-nitoru-talk > p,
	.is-style-nitoru-talk > .wp-block-group__inner-container { padding: 12px 14px; font-size: 13.5px; line-height: 1.85; }
	.is-style-nitoru-talk > p::before,
	.is-style-nitoru-talk > .wp-block-group__inner-container::before { left: 12px; top: -7px; border-bottom: 0; border-top: 1px solid var(--line, #e4dfd8); }
}
