/* くらしのBASE 記事ページの見た目。土台は kb-base.css */
.ah { max-width: 880px; margin: 0 auto; padding: 48px var(--pad) 0; }
.ah-meta { display: flex; align-items: center; gap: 16px; }
.chip { display: inline-block; background: var(--red); color: var(--white); padding: 4px 14px; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.chip:hover { background: var(--red-deep); }
.ah-date { font-family: var(--en); font-size: 14px; font-weight: 500; color: var(--sub); letter-spacing: .06em; }
.ah-title { margin-top: 20px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.ah-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.ah-tags a { padding: 4px 12px; border-radius: 999px; background: var(--gray); font-size: 13px; font-weight: 700; }
.ah-tags a:hover { background: var(--ink); color: var(--white); }
.ah-eye { max-width: 1120px; margin: 40px auto 0; padding: 0 var(--pad); }
.ah-eye img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); background: var(--gray); }

/* ===== 本文 ===== */
.ab { max-width: 880px; margin: 0 auto; padding: 48px var(--pad) 0; font-size: 17px; line-height: 2; }
.ab > * + * { margin-top: 1.4em; }
.ab p { word-break: normal; }
.ab h2 { margin-top: 2.6em; padding: 4px 0 4px 18px; border-left: 8px solid var(--red); font-size: 26px; font-weight: 900; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.ab h3 { margin-top: 2em; font-size: 20px; font-weight: 900; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.ab h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 10px; vertical-align: 3px; }
.ab h2 + *, .ab h3 + * { margin-top: .9em; }
.ab strong { font-weight: 700; background: linear-gradient(transparent 68%, rgba(212,0,0,.16) 68%); }
.ab a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.ab ul, .ab ol { padding: 20px 24px; background: var(--gray); border-radius: 12px; }
.ab li { position: relative; padding-left: 22px; line-height: 1.85; }
.ab li + li { margin-top: 8px; }
.ab ul > li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; background: var(--red); }
.ab ol { counter-reset: n; }
.ab ol > li { counter-increment: n; padding-left: 30px; }
.ab ol > li::before { content: counter(n) "."; position: absolute; left: 0; font-family: var(--en); font-weight: 800; color: var(--red); }
.ab table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.ab th, .ab td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; word-break: keep-all; overflow-wrap: normal; }
.ab th { background: var(--gray); font-weight: 700; }
.ab .table-wrap { overflow-x: auto; }
.ab .table-wrap table { margin: 0; }
.ab .spec-note, .ab .note { font-size: 14px; color: var(--sub); line-height: 1.8; }
.ab .note { padding: 18px 22px; border-left: 6px solid var(--ink); background: var(--gray); border-radius: 0 12px 12px 0; color: var(--ink); }
.ab .plan-spec-table th { width: 32%; }
.ab .plan-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ab .plan-images img { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.ab .plan-images img:only-child { grid-column: 1 / -1; }
.ab .article-inline-image img { width: 100%; border-radius: 12px; }
.ab .article-inline-image.dyna-photo { max-width: 309px; }
.ab img { border-radius: 12px; }

/* ===== THE BASE の家づくり（OS の枠）と下の案内 ===== */
.os { max-width: 880px; margin: 72px auto 0; padding: 0 var(--pad); }
.os-in { position: relative; padding: 36px 40px 36px 40px; background: var(--ink); color: var(--white); border-radius: var(--radius); overflow: hidden; }
.os-in::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--red); }
.os-label { display: inline-block; background: var(--red); padding: 4px 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.os-body { margin-top: 16px; font-size: 15px; line-height: 2; color: rgba(255,255,255,.92); }
.acta { max-width: 880px; margin: 40px auto 0; padding: 0 var(--pad); text-align: center; }
.acta p { font-size: 16px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.acta .btn { margin-top: 20px; }

/* ===== 同じテーマの記事 ===== */
.related { margin-top: 96px; padding: 88px 0; background: var(--gray); }

@media (max-width: 720px) {
  .ah { padding-top: 32px; }
  .ah-eye { margin-top: 28px; }
  .ah-eye img { border-radius: 12px; }
  .ab { padding-top: 36px; font-size: 16px; line-height: 1.95; }
  .ab h2 { font-size: 21px; padding-left: 14px; border-left-width: 6px; }
  .ab h3 { font-size: 18px; }
  .ab ul, .ab ol { padding: 16px 18px; }
  .ab table { font-size: 14px; }
  .ab th, .ab td { padding: 10px; }
  .ab .plan-images { grid-template-columns: minmax(0, 1fr); }
  .os-in { padding: 28px 22px 28px 28px; }
  .related { margin-top: 72px; padding: 64px 0; }
}
