/* ===== 第2版の枠組みと部品（静的ページと同じ CSS）=====
   bin/wp_deploy.py --sync-frame が templates/assets/site.css（D4・sha1 ac3ec8493934）から写したもの。このファイルを直接直さない。
   写した節：1・2・3・4・5・6・9／写さない節：7・8（WordPress に無い部品で、WordPress・Cocoon の class と重なる）。
   .page で始まるセレクタは html body.sj2 #content-in.wrap に書き換えた（.page は WordPress の固定ページの body の class と重なるため）。写さないセレクタ：なし。 */
/* ============ 1 色と土台 ============ */
:root{
  --band:#163d33;
  --band-dark:#0f2c25;
  --accent:#c99a2e;
  --bg:#ffffff;
  --bg-soft:#f3f5f4;
  --rule:#e1e5e3;
  --ink:#1d2321;
  --ink2:#56605b;
  --link:#17604c;
  --cat-rate:#2f5d8a;
  --cat-market:#1f7a73;
  --cat-policy:#3d7a2e;
  --cat-stats:#5a6470;
  --cat-company:#8a5a2b;
  --cat-safety:#b03a2e;
  --cat-rate-bg:#eaeff3;
  --cat-market-bg:#e9f2f1;
  --cat-policy-bg:#ecf2ea;
  --cat-stats-bg:#eff0f1;
  --cat-company-bg:#f3efea;
  --cat-safety-bg:#f7ebea;
  --gutter:16px;
  --wrap:1160px;
  --side:320px;
  --gap:40px;
}
@media (min-width:768px){
  :root{--gutter:24px}
}

/* Windows の游ゴシックが細く出ないように、手元にある Medium・Bold を名前で当てる（local() だけ・ファイルの読み込みは起きない） */
@font-face{font-family:"SJ Yu Gothic";src:local("Yu Gothic Medium"),local("YuGothic-Medium");font-weight:400}
@font-face{font-family:"SJ Yu Gothic";src:local("Yu Gothic Bold"),local("YuGothic-Bold");font-weight:700}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","SJ Yu Gothic","Yu Gothic","YuGothic",Meiryo,sans-serif;
  font-size:16px;
  line-height:1.8;
  overflow-wrap:anywhere;
  display:flex;flex-direction:column;
  min-height:100vh;min-height:100dvh;
}
h1,h2,h3,h4{margin:0;color:var(--ink);font-weight:700;line-height:1.45;text-wrap:pretty;word-break:auto-phrase}
h1{font-size:22px}
h2{font-size:20px}
h3{font-size:17px}
@media (min-width:768px){
  h1{font-size:26px}
}
p,ul,ol,dl{margin:0 0 1em}
p,li,dd,td,th{text-wrap:pretty}
strong{font-weight:700}
img{max-width:100%;height:auto}
.nw{white-space:nowrap}

a{
  color:var(--link);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:.2em;
}
a:hover{text-decoration-thickness:2px}
a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* 外のサイトへ開くリンクの小さな矢印（読み上げには出さない）。リンクの最後の語（span.nw-end）の中に付けて離れないようにする */
a[target="_blank"] .nw-end::after,a[target="_blank"]:not(:has(.nw-end))::after{content:"\2197" / "";margin-left:.2em;font-size:.85em;text-decoration:none;display:inline-block}

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin-left:auto;margin-right:auto;
  padding-left:var(--gutter);padding-right:var(--gutter);
}

/* ============ 2 ヘッダー（1段目：白い地にロゴと今日の日付／2段目：深緑の帯のナビ） ============ */
.site-header{flex:none;background:var(--bg)}
.head-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding-top:8px;padding-bottom:8px}
.head-id{display:flex;align-items:center;gap:20px;min-width:0}
.logo{margin:0;min-width:0;font-weight:700;line-height:1.2;letter-spacing:.02em}
.logo a{display:inline-flex;align-items:center;gap:8px;color:var(--band);text-decoration:none}
.logo a:hover .logo-name{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.2em}
.logo-name{white-space:nowrap}
.ln-pre{font-size:14px;font-weight:700}
.ln-main{font-size:22px;font-weight:700}
.mark{display:block;flex:none;width:28px;height:28px}
.head-sub{display:none;margin:0;padding-left:20px;border-left:1px solid var(--rule);font-size:13px;line-height:1.5;color:var(--ink2);white-space:nowrap}
.mk-sq{fill:var(--band)}
.mk-house{fill:var(--bg)}
.mk-l1{fill:var(--accent)}
.mk-l2{fill:var(--band)}
.today{flex:none;margin:0;font-size:14px;line-height:1.4;color:var(--ink2);white-space:nowrap}
.today .y{display:none}
@media (min-width:481px){
  .today .y{display:inline}
}
@media (min-width:400px){
  .ln-pre{font-size:16px}
  .ln-main{font-size:24px}
}
@media (min-width:768px){
  .head-top{min-height:72px;gap:24px}
  .logo a{gap:10px}
  .mark{width:32px;height:32px}
  .ln-main{font-size:28px}
  .today{font-size:15px}
}
@media (min-width:1024px){
  .head-sub{display:block}
}

.band{background:var(--band)}
.band-list{
  display:flex;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 calc(var(--gutter) - 12px);
  list-style:none;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.band-list::-webkit-scrollbar{display:none}
.band-list li{flex:none}
.band a{
  display:flex;align-items:center;
  min-height:46px;
  padding:3px 12px 0;
  border-bottom:3px solid transparent;
  color:var(--bg);
  font-size:15px;font-weight:400;line-height:1.4;
  text-decoration:none;
  white-space:nowrap;
}
.band a:hover{background:var(--band-dark);color:var(--bg)}
.band a[aria-current="page"]{font-weight:700;border-bottom-color:var(--accent)}
@media (max-width:639px){
  .band-list{
    padding-right:24px;
    -webkit-mask-image:linear-gradient(90deg,var(--ink) calc(100% - 24px),transparent calc(100% + 16px));
    mask-image:linear-gradient(90deg,var(--ink) calc(100% - 24px),transparent calc(100% + 16px));
  }
}
@media (min-width:768px){
  .band a{min-height:50px;padding-left:16px;padding-right:16px;font-size:16px}
  .band-list{padding-left:calc(var(--gutter) - 16px);padding-right:calc(var(--gutter) - 16px)}
}

/* ============ 3 枠組み（PC 1024px 以上：メイン＋サイドの2列、その下に全幅の区画／それより狭いと1列で メイン → 全幅 → サイド） ============ */
html body.sj2 #content-in.wrap{
  flex:1 0 auto;
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"main" "wide" "side";align-items:start;
  padding-top:20px;padding-bottom:40px;
}
.main{grid-area:main;min-width:0}
.wide{grid-area:wide;min-width:0;margin-top:28px}
.side{grid-area:side;min-width:0;margin-top:28px}
@media (min-width:768px){
  .wide,.side{margin-top:40px}
}
@media (min-width:1024px){
  html body.sj2 #content-in.wrap{grid-template-columns:minmax(0,1fr) var(--side);grid-template-areas:"main side" "wide wide";column-gap:var(--gap);padding-top:28px;padding-bottom:48px}
  .side{margin-top:0}
}
.main > :first-child{margin-top:0}

/* パンくず（小さい文字・ページの上） */
.crumbs{margin:0 0 16px;font-size:14px;line-height:1.6;color:var(--ink2)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:0 8px;margin:0;padding:0;list-style:none}
.crumbs li{display:flex;align-items:center;gap:8px}
.crumbs li + li::before{content:"\FF1E" / "";color:var(--ink2)}
.crumbs a{display:inline-block;padding:4px 0;color:var(--ink2)}
.crumbs [aria-current]{padding:4px 0}

/* ============ 4 部品 ============ */
/* 節の見出し：下に深緑の 2px の線 */
.sec{margin:0 0 28px}
@media (min-width:768px){.sec{margin-bottom:40px}}
.main > .sec:last-child{margin-bottom:0}
.sec-h{
  margin:0 0 16px;
  padding:0 0 8px;
  border-bottom:2px solid var(--band);
  font-size:20px;line-height:28px;
}
.sec-sub{margin-left:6px;font-size:15px;font-weight:700;line-height:1;color:var(--ink2);white-space:nowrap}
.sec-lead{margin:-4px 0 16px;color:var(--ink2);font-size:15px}
.sec-more{margin:20px 0 0}

/* カテゴリのラベル（白い文字・角 3px）と日付 */
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0 0 4px;font-size:14px;line-height:1.5;color:var(--ink2)}
.cat{display:inline-block;padding:1px 6px;border-radius:2px;font-size:12px;font-weight:700;line-height:1.6;letter-spacing:.02em;white-space:nowrap}

/* ニュースの絵（16:9・D3。カテゴリの色の帯は絵の上辺に入っているので CSS では足さない）。カードの絵は薄い線で囲む */
.thumb{display:block;position:relative;aspect-ratio:16 / 9;overflow:hidden;background:var(--bg-soft)}
.thumb img{display:block;width:100%;height:100%;object-fit:cover}
.thumb.k-number,.thumb.k-text{outline:1px solid var(--rule);outline-offset:-1px}
/* カテゴリのラベル：淡い地＋その色の文字（design2.md 改訂2） */
.bg-rate{background:var(--cat-rate-bg);color:var(--cat-rate)}
.bg-market{background:var(--cat-market-bg);color:var(--cat-market)}
.bg-policy{background:var(--cat-policy-bg);color:var(--cat-policy)}
.bg-stats{background:var(--cat-stats-bg);color:var(--cat-stats)}
.bg-company{background:var(--cat-company-bg);color:var(--cat-company)}
.bg-safety{background:var(--cat-safety-bg);color:var(--cat-safety)}

/* カード全体がリンク：下線なし・ホバーで見出しの色を変える */
.story-link,.hcard,.ccard{display:block;color:inherit;text-decoration:none}
.story-link:hover .hl,.hcard:hover .hl,.ccard:hover .nm{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.story-link:focus-visible,.hcard:focus-visible,.ccard:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ボタン（深緑の面・白い文字・角 4px・高さ 44px 以上）／サブのボタン（白い地に深緑の枠） */
a.button{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;
  padding:9px 20px;
  border:1px solid var(--band);
  border-radius:4px;
  background:var(--band);
  color:var(--bg);
  font-size:16px;font-weight:700;line-height:1.4;text-align:center;
  text-decoration:none;
}
a.button:hover{background:var(--band-dark);border-color:var(--band-dark);color:var(--bg);text-decoration:none}
a.button.sub{background:var(--bg);color:var(--band)}
a.button.sub:hover{background:var(--bg-soft);color:var(--band)}
a.button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media (max-width:599px){
  .sec-more a.button,.actions a.button,.back a.button{display:flex;width:100%;padding-left:12px;padding-right:12px;font-size:15px}
}
/* 「›」付きの文字のリンク（節の終わり・サイド。面のボタンは主な入口だけ） */
a.more-link{display:inline-block;min-height:44px;padding:11px 0;color:var(--link);font-size:16px;font-weight:700;line-height:1.4;text-decoration:none}
a.more-link::after{content:"\203A" / "";display:inline-block;margin-left:6px;font-size:20px;line-height:1;vertical-align:-1px;text-decoration:none}
.side a.more-link{font-size:15px}
a.more-link:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.sec-more{text-align:right}
.sec-more-main{text-align:left}
.actions{margin:0}
.actions + .actions{margin-top:12px}

/* ============ 5 トップ ============ */
/* トップニュース（大）：600px 以上は横組み（左に画像＝記事枠の5割・右に文字）、スマホは画像が上。見出し PC 28px・行間 1.4（スマホ 22px）。スマホの要点は2行まで */
.lead-story{margin:0}
.lead-story .thumb{margin:0 0 12px}
.lead-story .hl{margin:2px 0 6px;font-size:22px;line-height:1.4}
.lead-story .pt{display:block;margin:0;font-size:16px;line-height:1.8;color:var(--ink)}
@media (max-width:599px){
  .lead-story .pt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
}
@media (min-width:600px){
  .lead-story .story-link{display:grid;grid-template-columns:50% minmax(0,1fr);column-gap:20px;align-items:start}
  .lead-story.no-img .story-link{display:block}
  .lead-story .thumb{margin:0}
  .lead-story .hl{margin-top:4px}
}
@media (min-width:768px){
  .lead-story .hl{font-size:28px;line-height:1.4}
}

/* トップニュース（小）：絵 150px（スマホ 120px）＋右に見出し 17px の横長の行。PC は2つ並べる */
.sub-stories{display:grid;grid-template-columns:minmax(0,1fr);margin:16px 0 0;border-top:1px solid var(--rule)}
.sub-story{border-bottom:1px solid var(--rule)}
.sub-story .story-link{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:start;padding:12px 0}
.sub-story.no-img .story-link{grid-template-columns:minmax(0,1fr)}
.sub-story .hl{margin:0;font-size:17px;font-weight:700;line-height:1.5;text-wrap:pretty;word-break:auto-phrase}
@media (min-width:768px){
  .sub-stories{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
  .sub-story .story-link{grid-template-columns:150px minmax(0,1fr);gap:14px}
}

/* これまでのニュース：日付（曜日つき）の小見出しで束ねた横長カード（左に絵 PC 160px・スマホ 120px、右にラベル・見出し・要点1行。行に日付は出さない） */
.past-day{margin:20px 0 6px;font-size:16px;line-height:1.5;color:var(--band)}
.past-news .sec-h + .past-day{margin-top:4px}
.hlist{margin:0;padding:0;list-style:none;border-top:1px solid var(--rule)}
.hlist > li{border-bottom:1px solid var(--rule)}
.hcard{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:start;padding:14px 0}
.hcard.no-img{grid-template-columns:minmax(0,1fr)}
.hbody{display:block;min-width:0}
.hcard .hl{margin:0;font-size:17px;line-height:1.5}
@media (max-width:767px){
  .hcard .hl,.sub-story .hl{word-break:normal;line-break:strict}
}
.hcard .pt{display:none;margin:0}
@media (min-width:768px){
  .hcard{grid-template-columns:160px minmax(0,1fr);gap:16px;padding:12px 0}
  .hcard.no-img{grid-template-columns:minmax(0,1fr)}
  .hcard .pt{display:block;margin:2px 0 0;font-size:16px;line-height:1.6;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* 会社のカード（格子）：アイキャッチ（下の小さな文字の帯は枠で切る：16:6.8・上に合わせる）＋会社名（太字）＋区分の小さなラベル */
.cgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin:0;padding:0;list-style:none}
.cgrid > li{display:flex}
.ccard{display:flex;flex-direction:column;width:100%;border:1px solid var(--rule);border-radius:4px;background:var(--bg);overflow:hidden}
.ccard .ph{display:block;aspect-ratio:16 / 6.8;overflow:hidden;background:var(--bg-soft);border-bottom:1px solid var(--rule)}
.ccard .ph img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.cbody{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px 10px 10px}
.ccard .nm{display:block;font-size:16px;font-weight:700;line-height:1.45}
.ccard .kind{display:inline-block;padding:1px 6px;border-radius:2px;background:var(--bg-soft);color:var(--ink2);font-size:12px;font-weight:700;line-height:1.6;word-break:auto-phrase}
@media (min-width:768px){
  .cgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}
  .ccard .nm{font-size:17px}
}
/* トップの全幅の区画（ハウスメーカーの評判）：スマホ2列・768px〜4列。段を半端にしない（4列は4の倍数・2列は2の倍数だけ見せる） */
.wide .sec-h{margin-bottom:12px}
@media (min-width:768px){
  .cgrid-wide{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .cgrid-wide > li.h4c{display:none}
}
@media (max-width:767px){
  .cgrid-wide > li.h2c{display:none}
}

/* ============ 6 サイド ============ */
.side-box{margin:0 0 32px}
.side-box:last-child{margin-bottom:0}
.side-h{margin:0 0 4px;padding:0 0 8px;border-bottom:2px solid var(--band);font-size:17px;line-height:28px}
.side-box.soft{padding:16px;background:var(--bg-soft);border-top:2px solid var(--band)}
.side-box.soft .side-h{border-bottom:0;padding-bottom:0;margin-bottom:8px}
.side-list{margin:0;padding:0;list-style:none}
.side-list li{border-bottom:1px solid var(--rule)}
.side-list a{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 0;color:var(--ink);font-size:15px;font-weight:700;line-height:1.5;text-decoration:none}
.side-list a:hover span{color:var(--link);text-decoration:underline;text-underline-offset:.2em}
.side-list img{flex:none;display:block;width:96px;height:41px;object-fit:cover;object-position:top;border:1px solid var(--rule)}
.side-more{margin:4px 0 0;text-align:right}
.side-box p{font-size:15px;line-height:1.8}
.side-box p.side-more{margin-top:4px}
.facts-cap{margin:0 0 6px;font-weight:700}
/* 日付ごとのニュース（新しい日から7日分）：日付（曜日つき）と本数。いまのページの日はリンクにしない */
.day-list{margin:0;padding:0;list-style:none}
.day-list li{border-bottom:1px solid var(--rule)}
.day-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:6px 0;color:var(--ink);font-size:15px;font-weight:700;line-height:1.5;text-decoration:none}
a.day-row:hover time{color:var(--link);text-decoration:underline;text-underline-offset:.2em}
.day-row[aria-current]{color:var(--ink2)}
.day-n{flex:none;color:var(--ink2);font-size:14px;font-weight:400}
.facts{margin:0;font-size:15px;line-height:1.6}
.facts dt{margin:8px 0 0;font-size:14px;font-weight:700;color:var(--ink2)}
.facts dd{margin:0}
@media (min-width:1024px){
  .is-top .side .side-box:first-child{margin-top:0}
}
/* PC：サイドの「宅建試験」「このサイトについて」は、下へ読み進めても画面の上に留める（右の列が長く空かないように） */
@media (min-width:1024px) and (min-height:720px){
  .side{align-self:stretch}
  .side-stick{position:sticky;top:16px}
}
/* トップのスマホ・タブレット：サイドの「ハウスメーカーの評判」はメインの格子と同じなので出さない */
@media (max-width:1023px){
  .is-top .side .side-hm{display:none}
}

/* ============ 9 フッター（深緑の帯・白い文字・3列。スマホは1列）＋最下段 ============ */
.site-footer{flex:none;background:var(--band);color:var(--bg)}
.foot-cols{display:grid;gap:12px;padding-top:24px;padding-bottom:24px}
.logo-foot a{color:var(--bg)}
.logo-foot .mk-sq{fill:var(--bg)}
.logo-foot .mk-house{fill:var(--band)}
.logo-foot .mk-l2{fill:var(--bg)}
.foot-tagline{margin:8px 0 0;font-size:14px;line-height:1.7;color:var(--bg-soft)}
.foot-nav{margin:0}
.foot-list{margin:0;padding:0;list-style:none}
.foot-list a{display:flex;align-items:center;min-height:44px;color:var(--bg);font-size:15px;line-height:1.4;text-decoration:none}
.foot-list a:hover{text-decoration:underline;text-underline-offset:.2em}
.foot-list a:focus-visible,.logo-foot a:focus-visible{outline-color:var(--accent)}
.foot-list{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}
@media (max-width:767px){
  .foot-info{border-top:1px solid var(--band-dark);padding-top:4px}
}
@media (min-width:768px){
  .foot-cols{grid-template-columns:minmax(0,1.3fr) minmax(0,1.2fr) minmax(0,.8fr);gap:32px;padding-top:28px;padding-bottom:28px}
  .foot-info{grid-template-columns:1fr}
}
.foot-bottom{background:var(--band-dark)}
.copy{margin:0 auto;padding-top:12px;padding-bottom:12px;font-size:14px;line-height:1.6;color:var(--rule)}

/* ===== 第2版 WordPress だけの部分（SJ-DESIGN-1122・D5。config/design2.md） =====
   ソースは /Users/az/projects/shukan-jutaku/templates/wp-child/sj2-wp.css 。サーバー上を直接直さない。
   サーバーの sj2.css ＝ sj2-frame.css（静的ページの templates/assets/site.css から bin/wp_deploy.py --sync-frame が写した枠組み・部品）＋ このファイル。
   ここは Cocoon の打ち消し・2列の枠（静的ページの .page と同じ値）・記事の本文・目次・表・広告の箱・関連記事・お問い合わせ・404 だけ。
   色は静的ページと同じ変数だけ。グラデーション・ぼかし・大きな角丸（4px まで）・影は使わない。 */

/* ---------- 0 もとの名前の色（広告の箱 sj-ads.php などが使う変数）も第2版の色にそろえる ---------- */
:root{
  --paper:var(--bg);
  --card:var(--bg);
  --green:var(--band);
  --green-dark:var(--band-dark);
  --green-wash:var(--bg-soft);
}

/* ---------- 1 土台（Cocoon の色・書体・幅の打ち消し） ---------- */
html body.sj2,
html body.sj2.public-page,
html body.sj2.ff-hiragino,
html body.sj2.fz-16px,
html body.sj2.fz-18px{
  background:var(--bg);
  color:var(--ink);
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic","YuGothic",Meiryo,sans-serif;
  font-size:16px;
  line-height:1.8;
  font-weight:400;
}
html body.sj2 button,html body.sj2 input,html body.sj2 select,html body.sj2 textarea{font-family:inherit}
html body.sj2 #container,
html body.sj2 .container{display:flex;flex-direction:column;flex:1 0 auto;min-height:100vh;min-height:100dvh;background:transparent;margin:0;padding:0;max-width:none;width:auto;box-shadow:none}
html body.sj2 .skip-link,html body.sj2 a.skip-link{background:var(--band);color:var(--bg);text-decoration:none}
html body.sj2 a{opacity:1}
/* Cocoon の .logo{text-align:center} を打ち消す（ヘッダーとフッターのロゴは左） */
html body.sj2 .site-header .logo,html body.sj2 .site-footer .logo{text-align:left;height:auto}

/* 2列の枠：静的ページの .page の決まりを、sj2-frame.css が #content-in に書き換えて写してある（格子・余白はそちら）。ここは Cocoon の幅と回り込みの打ち消しだけ */
html body.sj2 #content{flex:1 0 auto;margin:0;padding:0;background:transparent;width:auto}
html body.sj2 #content-in{width:100%;max-width:var(--wrap);margin-left:auto;margin-right:auto;float:none}
html body.sj2 #content-in::before,html body.sj2 #content-in::after{display:none;content:none}
html body.sj2 #main.main{
  width:auto;max-width:none;min-width:0;
  margin:0;padding:0;
  background:transparent;border:0;border-radius:0;box-shadow:none;
  float:none;
}
html body.sj2 #main.main > *{min-width:0;max-width:100%}
html body.sj2 .main-scroll,html body.sj2 #sidebar,html body.sj2 .sidebar,html body.sj2 #sidebar-scroll{display:none}
/* Cocoon のフッター（中身は出していない）は隠す。第2版のフッター（.site-footer）はそのあとに出る */
html body.sj2 #footer.footer{display:none}
/* Cocoon の飾り・要らないもの */
html body.sj2 .author-info,html body.sj2 .post-author,html body.sj2 .author-box,html body.sj2 .footer-meta,
html body.sj2 .sns-share,html body.sj2 .sns-follow,html body.sj2 .comment-area,html body.sj2 #comments,
html body.sj2 .go-to-top,html body.sj2 #go-to-top,html body.sj2 .mobile-menu-buttons,html body.sj2 .mobile-footer-menu-buttons,
html body.sj2 .ad-area,html body.sj2 .adsbygoogle,html body.sj2 .pager-post-navi,html body.sj2 .eye-catch .cat-label,
html body.sj2 .related-entry-card-thumb .cat-label,html body.sj2 .entry-card-thumb .cat-label{display:none}
/* PR の表記（投稿の上）は sj-ads.php の CSS のまま（広告まわりの見た目は係 N4 の持ち場・COMMON.md 12） */

/* 投稿は「パンくず → PR → 題名」の順に見せる（HTML の並びと構造化データはそのまま） */
html body.sj2.single #main.main{display:flex;flex-direction:column}
html body.sj2.single #main.main > #breadcrumb{order:-1}
html body.sj2.single #main.main > .pr-label{align-self:flex-start}

/* ---------- 2 パンくず（Cocoon のパンくずを静的ページの .crumbs と同じ見た目に。小さい文字・ページの上） ---------- */
html body.sj2 #breadcrumb.breadcrumb,
html body.sj2 .breadcrumb{
  display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;
  margin:0 0 16px;padding:0;
  background:none;border:0;
  font-size:14px;line-height:1.6;color:var(--ink2);
}
html body.sj2 .breadcrumb > div{display:flex;align-items:center;gap:8px;margin:0}
html body.sj2 .breadcrumb .fa,html body.sj2 .breadcrumb .sp{display:none}
html body.sj2 .breadcrumb > div + div::before{content:"\FF1E" / "";color:var(--ink2)}
html body.sj2 .breadcrumb a{display:inline-block;padding:4px 0;color:var(--ink2);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
html body.sj2 .breadcrumb a:hover{color:var(--link);text-decoration-thickness:2px}
html body.sj2 .breadcrumb span,html body.sj2 .breadcrumb-caption{font-size:14px;color:inherit}

/* ---------- 3 記事・固定ページの頭：題名 → 日付 → アイキャッチ ---------- */
html body.sj2 .article{margin:0;padding:0;background:transparent;border:0;box-shadow:none}
html body.sj2 .article-header{display:flex;flex-direction:column;margin:0 0 24px;padding:0;border:0}
html body.sj2 .article h1.entry-title,
html body.sj2 .entry-title{
  order:1;
  margin:0 0 10px;padding:0;
  background:none;border:0;
  font-size:22px;font-weight:700;line-height:1.45;color:var(--ink);
  text-wrap:pretty;word-break:auto-phrase;
}
@media (min-width:768px){
  html body.sj2 .article h1.entry-title,html body.sj2 .entry-title{font-size:26px;line-height:1.4}
}
html body.sj2 .article-header .date-tags{order:2}
html body.sj2 .article-header .eye-catch-wrap{order:3}
html body.sj2 .date-tags{
  display:flex;flex-wrap:wrap;gap:0 14px;justify-content:flex-start;align-items:center;
  margin:0 0 16px;padding:0;
  font-size:14px;line-height:1.6;color:var(--ink2);
}
html body.sj2 .date-tags *,html body.sj2 .date-tags .fa::before{font-size:14px!important;color:var(--ink2)}
html body.sj2 .date-tags .fa{margin-right:4px}
html body.sj2 .eye-catch-wrap{margin:0;padding:0}
html body.sj2 .eye-catch{margin:0;padding:0;line-height:0}
html body.sj2 .eye-catch img,html body.sj2 .eye-catch-image{display:block;width:100%;height:auto;margin:0;border-radius:0}
/* 固定ページ（フロント・お問い合わせ）は日付を出さない・題名のすぐ下に本文 */
html body.sj2.page .date-tags,html body.sj2.page .read-time{display:none}
html body.sj2.page .article-header{margin-bottom:12px}
html body.sj2.page .article h1.entry-title{margin-bottom:4px}

/* ---------- 4 本文（文字 16px・行間 1.8・節の見出しは下に深緑の 2px の線／小見出しは左に 4px の線＝静的ページの .prose と同じ） ---------- */
html body.sj2 .entry-content,
html body.sj2 .article .entry-content{
  margin:0;padding:0;background:transparent;border:0;
  font-size:16px;line-height:1.8;color:var(--ink);
}
html body.sj2 .entry-content > *:first-child{margin-top:0}
html body.sj2 .entry-content :where(p:not(.ds)){margin:0 0 1.4em;line-height:1.8}
html body.sj2 .entry-content :where(strong,b){font-weight:700;color:var(--ink)}
html body.sj2 .entry-content :where(a){color:var(--link)}
html body.sj2 .article .entry-content h2:not(.nm),
html body.sj2 .entry-content h2:not(.nm){
  margin:40px 0 14px;padding:0 0 8px;
  background:none;border:0;border-bottom:2px solid var(--band);border-radius:0;
  font-size:20px;font-weight:700;line-height:1.45;color:var(--ink);
  text-wrap:pretty;word-break:auto-phrase;
}
html body.sj2 .article .entry-content h3:not(.nm),
html body.sj2 .entry-content h3:not(.nm){
  margin:32px 0 10px;padding:2px 0 2px 10px;
  background:none;border:0;border-left:4px solid var(--band);border-radius:0;
  font-size:17px;font-weight:700;line-height:1.5;color:var(--ink);
  text-wrap:pretty;word-break:auto-phrase;
}
html body.sj2 .article .entry-content h4,html body.sj2 .entry-content h4,
html body.sj2 .entry-content h5,html body.sj2 .entry-content h6{
  margin:24px 0 6px;padding:0;
  background:none;border:0;
  font-size:16px;font-weight:700;line-height:1.6;color:var(--ink);
}
@media (min-width:768px){
  html body.sj2 .article .entry-content h3:not(.nm),html body.sj2 .entry-content h3:not(.nm){font-size:18px}
}
html body.sj2 .entry-content h2::before,html body.sj2 .entry-content h2::after,
html body.sj2 .entry-content h3::before,html body.sj2 .entry-content h3::after,
html body.sj2 .entry-content h4::before,html body.sj2 .entry-content h4::after{display:none;content:none}
html body.sj2 .entry-content :where(ul:not(.cgrid),ol){margin:0 0 1.4em;padding-left:1.5em}
html body.sj2 .entry-content :where(li){margin:.3em 0;line-height:1.8}
html body.sj2 .entry-content ul ul,html body.sj2 .entry-content ol ol{margin:.3em 0}
html body.sj2 .entry-content blockquote,html body.sj2 .entry-content .wp-block-quote{
  margin:0 0 1.4em;padding:0 0 0 14px;
  background:none;border:0;border-left:4px solid var(--rule);color:var(--ink);
}
html body.sj2 .entry-content blockquote::before,html body.sj2 .entry-content blockquote::after{display:none;content:none}
html body.sj2 .entry-content cite{font-style:normal;color:var(--ink2);font-size:14px}
html body.sj2 .entry-content :where(img:not(.ph > img)){max-width:100%;height:auto;border-radius:0}
html body.sj2 .entry-content :where(figure){margin:0 0 1.4em}
html body.sj2 .entry-content figcaption{margin-top:6px;font-size:14px;line-height:1.7;color:var(--ink2);text-align:left}
html body.sj2 .entry-content hr{border:0;border-top:1px solid var(--rule);margin:32px 0}

/* 表：本文の幅に収める（記事に直接書かれた「折り返さない・最小幅」を打ち消す）。収まらない表だけ表の箱の中で横に動く（ページ全体は動かない） */
html body.sj2 .entry-content figure.wp-block-table,
html body.sj2 .entry-content .table-wrap,
html body.sj2 .entry-content .sj-table-scroll{overflow-x:auto;max-width:100%;margin:0 0 1.4em;-webkit-overflow-scrolling:touch}
html body.sj2 .entry-content figure.wp-block-table table,html body.sj2 .entry-content .table-wrap table,html body.sj2 .entry-content .sj-table-scroll table{margin:0}
html body.sj2 .entry-content table{
  border-collapse:collapse;
  width:100%!important;max-width:100%!important;min-width:0!important;table-layout:auto!important;white-space:normal!important;
  margin:0 0 1.4em;background:transparent;line-height:1.65;overflow-wrap:break-word;
}
html body.sj2 .entry-content thead,html body.sj2 .entry-content tbody,html body.sj2 .entry-content tfoot{border:0;background:transparent}
html body.sj2 .entry-content table tr,
html body.sj2 .entry-content table tr:nth-of-type(odd),
html body.sj2 .entry-content table tr:nth-of-type(even){background:transparent!important;border:0}
html body.sj2 .entry-content table td,html body.sj2 .entry-content table th{
  min-width:3em!important;
  padding:8px 6px!important;
  border:1px solid var(--rule)!important;
  background-color:transparent!important;
  color:var(--ink)!important;
  font-size:15px!important;line-height:1.6!important;
  text-align:left;vertical-align:top;
  white-space:normal!important;overflow-wrap:break-word!important;word-break:auto-phrase;text-wrap:pretty;
}
html body.sj2 .entry-content table th{min-width:4em!important;background-color:var(--bg-soft)!important;font-weight:700}
@media (min-width:768px){
  html body.sj2 .entry-content table td,html body.sj2 .entry-content table th{font-size:16px!important;padding:8px 10px!important}
}

/* Cocoon の飾り（マーカー・囲み・吹き出し・ボタン）を第2版の色に */
html body.sj2 .entry-content .marker,html body.sj2 .entry-content .marker-under,html body.sj2 .entry-content .marker-red,html body.sj2 .entry-content .marker-blue,
html body.sj2 .entry-content .marker-under-red,html body.sj2 .entry-content .marker-under-blue{background:none;border-bottom:2px solid var(--accent);color:inherit;font-weight:inherit}
html body.sj2 .entry-content .bold-red,html body.sj2 .entry-content .red,html body.sj2 .entry-content .bold-blue,html body.sj2 .entry-content .blue,
html body.sj2 .entry-content .bold-orange,html body.sj2 .entry-content .orange,html body.sj2 .entry-content .bold-green,html body.sj2 .entry-content .green{color:var(--ink);font-weight:700}
html body.sj2 .entry-content [class*="has-"][class*="-color"]{color:inherit}
html body.sj2 .entry-content [class*="has-"][class*="-background-color"]{background-color:var(--bg-soft);color:var(--ink)}
html body.sj2 .entry-content .blank-box,
html body.sj2 .entry-content .sticky-box,html body.sj2 .entry-content .information-box,html body.sj2 .entry-content .question-box,
html body.sj2 .entry-content .alert-box,html body.sj2 .entry-content .memo-box,html body.sj2 .entry-content .comment-box,
html body.sj2 .entry-content .ok-box,html body.sj2 .entry-content .ng-box,html body.sj2 .entry-content .good-box,html body.sj2 .entry-content .bad-box,
html body.sj2 .entry-content .profile-box,html body.sj2 .entry-content .common-icon-box,html body.sj2 .entry-content .blank-box[class*="bb-"]{
  margin:0 0 1.4em;padding:14px 16px;
  background:var(--bg-soft);border:0;border-left:4px solid var(--band);border-radius:0;color:var(--ink);
}
html body.sj2 .entry-content .blank-box > *:last-child,html body.sj2 .entry-content [class$="-box"] > *:last-child{margin-bottom:0}
html body.sj2 .entry-content .blank-box::before,html body.sj2 .entry-content .blank-box::after,
html body.sj2 .entry-content [class$="-box"]::before,html body.sj2 .entry-content [class$="-box"]::after{display:none;content:none}
html body.sj2 .entry-content .btn,html body.sj2 .entry-content .wp-block-button__link,html body.sj2 .entry-content .wp-element-button,
html body.sj2 .entry-content [class*="btn-wrap"] a{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 20px;
  background:var(--band);color:var(--bg);border:1px solid var(--band);border-radius:4px;box-shadow:none;
  font-size:16px;font-weight:700;line-height:1.4;text-decoration:none;
}
html body.sj2 .entry-content .btn:hover,html body.sj2 .entry-content .wp-block-button__link:hover,html body.sj2 .entry-content [class*="btn-wrap"] a:hover{background:var(--band-dark);border-color:var(--band-dark);color:var(--bg);text-decoration:none}
html body.sj2 .entry-content [class*="btn-wrap"]{margin:0 0 1.4em;padding:0;background:none;border:0;box-shadow:none;text-align:center}
html body.sj2 .entry-content [class*="btn-wrap"] a::before,html body.sj2 .entry-content [class*="btn-wrap"] a::after{display:none;content:none}
html body.sj2 .entry-content .speech-wrap{color:var(--ink)}
html body.sj2 .entry-content .speech-balloon{background:var(--bg-soft);border:1px solid var(--rule);border-radius:4px}
html body.sj2 .entry-content .speech-balloon::before,html body.sj2 .entry-content .speech-balloon::after{display:none}

/* ---------- 5 目次（最初は閉じる・「開く／閉じる」。薄いグレーの面・上に深緑の線＝サイドの宅建の枠と同じ） ---------- */
html body.sj2 .toc,html body.sj2 #toc,html body.sj2 .article .toc,html body.sj2 .toc.toc-center{
  display:block;width:auto;max-width:none;
  margin:0 0 32px;padding:0;
  background:var(--bg-soft);border:0;border-top:2px solid var(--band);border-radius:0;box-shadow:none;
  color:var(--ink);font-size:15px;line-height:1.7;
}
html body.sj2 .toc .toc-title{
  display:flex;align-items:center;gap:12px;min-height:48px;margin:0;padding:10px 16px;
  background:none;border:0;
  font-size:16px;font-weight:700;line-height:1.5;color:var(--ink);text-align:left;cursor:pointer;
}
html body.sj2 .toc .toc-title::after,
html body.sj2 .toc .toc-checkbox + .toc-title::after,
html body.sj2 .toc .toc-checkbox:checked + .toc-title::after{
  margin:0;padding:0;border:0;background:none;
  color:var(--link)!important;font-size:14px!important;font-weight:400;text-decoration:underline;text-underline-offset:.2em;
}
html body.sj2 .toc .toc-content{padding:0 16px;background:none;border:0}
html body.sj2 .toc .toc-checkbox:checked ~ .toc-content{padding:0 16px 14px}
html body.sj2 .toc .toc-list,html body.sj2 .toc .toc-list ol{margin:0;padding-left:1.4em;background:none}
html body.sj2 .toc .toc-list li{margin:.3em 0;line-height:1.65}
html body.sj2 .toc a{color:var(--link)}

/* ---------- 6 広告の箱：見た目は係 N4（sj-ads.php）の持ち場（COMMON.md 12）。子テーマは箱の見た目を書かない ----------
   ここで書くのは、子テーマの決まり（静的ページから写した「外のサイトの矢印」）が箱の中に入り込まないようにすることだけ。
   本文の段落・画像などの決まりは :where() で弱くしてあり、sj-ads.php の CSS のほうが勝つ。 */
html body.sj2 .entry-content .sj-ad a::after,html body.sj2 .entry-content .sj-ad-inline a::after{content:none!important;display:none!important}

/* ---------- 7 記事の下：カテゴリ・関連記事（Cocoon の標準）・最新の住宅ニュース ---------- */
html body.sj2 .article-footer{margin:24px 0 0;padding:0}
html body.sj2 .entry-categories-tags{margin:0;padding:0}
html body.sj2 a.cat-link,html body.sj2 a.tag-link,
html body.sj2 .entry-categories-tags a{
  display:inline-flex;align-items:center;min-height:32px;margin:0 6px 6px 0;padding:2px 10px;
  background:var(--bg);border:1px solid var(--rule);border-radius:3px;
  color:var(--ink2);font-size:14px!important;line-height:1.5;text-decoration:none;
}
html body.sj2 a.cat-link:hover,html body.sj2 a.tag-link:hover{background:var(--bg-soft);color:var(--ink);text-decoration:underline}
html body.sj2 .entry-categories-tags .fa,html body.sj2 .entry-categories-tags .tax-icon{display:none}
html body.sj2 .under-entry-content{margin:0}
html body.sj2 .related-entries{margin:40px 0 0;padding:0;background:none;border:0}
html body.sj2 .related-entry-heading,
html body.sj2 .article .related-entry-heading{
  margin:0 0 4px;padding:0 0 8px;
  background:none;border:0;border-bottom:2px solid var(--band);border-radius:0;
  font-size:20px;font-weight:700;line-height:1.4;color:var(--ink);text-align:left;
}
html body.sj2 .related-entry-heading .main-caption,html body.sj2 .related-entry-heading .related-entry-main-heading{font-size:inherit;font-weight:inherit;color:inherit}
html body.sj2 .related-entry-heading .sub-caption{display:none}
html body.sj2 .related-list{margin:0;padding:0;display:block}
/* 関連記事の1本：静的ページの横長カード（.hcard）と同じ形。左に絵、右に題名 */
html body.sj2 a.related-entry-card-wrap{
  display:block;width:auto;margin:0;padding:14px 0;
  background:none;border:0;border-bottom:1px solid var(--rule);border-radius:0;box-shadow:none;
  color:var(--ink);text-decoration:none;
}
html body.sj2 a.related-entry-card-wrap:hover{background:none}
html body.sj2 a.related-entry-card-wrap:hover .related-entry-card-title{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
html body.sj2 a.related-entry-card-wrap:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
html body.sj2 .related-entry-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:start;margin:0;padding:0;width:auto;float:none}
/* Cocoon の回り込み解除（.cf::before・::after）が格子の行になって下に空きができるので出さない */
html body.sj2 .related-entry-card::before,html body.sj2 .related-entry-card::after,
html body.sj2 .entry-card::before,html body.sj2 .entry-card::after,
html body.sj2 .related-list::before,html body.sj2 .related-list::after{display:none;content:none}
html body.sj2 .related-entry-card-thumb{width:auto;margin:0;padding:0;float:none;position:relative;aspect-ratio:16 / 9;overflow:hidden;background:var(--bg-soft)}
html body.sj2 .related-entry-card-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
html body.sj2 .related-entry-card-content{margin:0;padding:0;width:auto;float:none}
html body.sj2 .related-entry-card-title,
html body.sj2 .article .related-entry-card-title{
  margin:0;padding:0;background:none;border:0;
  font-size:17px;font-weight:700;line-height:1.5;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
html body.sj2 .related-entry-card-snippet{display:none}
html body.sj2 .related-entry-card-meta{display:none}
@media (min-width:768px){
  html body.sj2 .related-entry-card{grid-template-columns:160px minmax(0,1fr);gap:20px}
  html body.sj2 a.related-entry-card-wrap{padding:16px 0}
  html body.sj2 .related-entry-card-title,html body.sj2 .article .related-entry-card-title{-webkit-line-clamp:2}
  html body.sj2 .related-entry-card-snippet{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0 0;font-size:15px;line-height:1.6;color:var(--ink2)}
}

/* 最新の住宅ニュース（記事の下・子テーマの sj_news_block）：静的ページの日付つきの見出しのリスト（.plain）と同じ */
html body.sj2 .sj-news{margin:40px 0 0}
html body.sj2 .sj-news .sj-news-heading,
html body.sj2 .article .sj-news .sj-news-heading{
  margin:0 0 4px;padding:0 0 8px;
  background:none;border:0;border-bottom:2px solid var(--band);border-radius:0;
  font-size:20px;font-weight:700;line-height:1.4;color:var(--ink);
}
html body.sj2 .sj-plain{margin:0 0 16px;padding:0;list-style:none}
html body.sj2 .sj-plain li{margin:0;padding:0;border:0;border-bottom:1px solid var(--rule);list-style:none}
html body.sj2 .sj-plain a{display:block;min-height:44px;padding:10px 0;color:var(--ink);font-weight:700;line-height:1.6;text-decoration:none;word-break:auto-phrase}
html body.sj2 .sj-plain a:hover{color:var(--link);text-decoration:underline;text-underline-offset:.2em}
html body.sj2 .sj-day-date{display:block;margin:0 0 2px;font-size:14px;font-weight:400;line-height:1.5;color:var(--ink2)}
html body.sj2 .sj-more,html body.sj2 .sj-news-link{margin:16px 0 0}
html body.sj2 .sj-more a,html body.sj2 .sj-news-link a{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 20px;
  background:var(--bg);border:1px solid var(--band);border-radius:4px;
  color:var(--band);font-size:16px;font-weight:700;line-height:1.4;text-decoration:none;
}
html body.sj2 .sj-more a:hover,html body.sj2 .sj-news-link a:hover{background:var(--bg-soft);color:var(--band)}
@media (max-width:599px){
  html body.sj2 .sj-more a,html body.sj2 .sj-news-link a{display:flex;width:100%}
}

/* ---------- 8 /housemaker/（固定ページ「ハウスメーカーの評判」）：会社のカードの格子（静的ページの .cgrid .ccard と同じ） ---------- */
html body.sj2 .sj-front{margin:0}
html body.sj2 .entry-content .sj-lead{margin:0 0 12px;font-size:16px;line-height:1.8;color:var(--ink)}
html body.sj2 .entry-content .sj-count{margin:0 0 16px;font-size:14px;line-height:1.6;color:var(--ink2)}
/* 大きさ・余白は静的ページから写した .cgrid・.ccard（sj2-frame.css）のまま。ここでは Cocoon と記事の本文の決まりが当たらないように打ち消すだけ */
html body.sj2 .entry-content ul.cgrid,html body.sj2 .article .entry-content ul.cgrid{margin:0;padding:0;list-style:none}
html body.sj2 .entry-content ul.cgrid > li{margin:0;padding:0;list-style:none}
html body.sj2 .entry-content a.ccard{color:inherit;text-decoration:none}
html body.sj2 .entry-content .ccard .ph img{border-radius:0;margin:0}
html body.sj2 .article .entry-content .ccard .nm{padding:0;background:none;border:0;border-radius:0;color:var(--ink)}
html body.sj2 .article .entry-content .ccard .nm::before,html body.sj2 .article .entry-content .ccard .nm::after{display:none;content:none}
html body.sj2 .article .entry-content a.ccard:hover .nm{color:var(--link)}

/* 190社の一覧：目次（区分へ・五十音の行へ）・区分の見出し（本文の節の見出しと同じ）・五十音の目次（行ごとの会社のリンク） */
html body.sj2 .entry-content .hm-index{margin:0 0 28px;padding:14px 16px 16px;background:var(--bg-soft);border-top:2px solid var(--band)}
@media (min-width:768px){html body.sj2 .entry-content .hm-index{margin-bottom:36px}}
html body.sj2 .entry-content .hm-index ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
html body.sj2 .entry-content .hm-index ul + ul{margin-top:12px}
html body.sj2 .entry-content .hm-index li{margin:0;padding:0;list-style:none;line-height:1.4}
html body.sj2 .entry-content .hm-jump a{display:inline-flex;align-items:center;min-height:44px;padding:6px 14px;background:var(--bg);border:1px solid var(--rule);border-radius:3px;color:var(--ink);font-size:15px;font-weight:700;line-height:1.4;text-decoration:none}
/* スマホ：区分へのボタンは同じ幅の2列（長い名前は折り返す） */
@media (max-width:767px){
  html body.sj2 .entry-content ul.hm-jump{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.sj2 .entry-content .hm-jump a{display:flex;width:100%;height:100%;padding:6px 10px;font-size:14px}
}
html body.sj2 .entry-content .kana-jump a,html body.sj2 .entry-content .kana-jump .off{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--rule);border-radius:3px;font-size:16px;font-weight:700;text-decoration:none}
html body.sj2 .entry-content .kana-jump a{background:var(--bg);color:var(--link)}
html body.sj2 .entry-content .kana-jump .off{background:transparent;border-color:transparent;color:var(--ink2);font-weight:400}
html body.sj2 .entry-content .hm-index a:hover{border-color:var(--band);color:var(--link);text-decoration:underline;text-underline-offset:.2em}
html body.sj2 .entry-content .hm-group{margin:0 0 40px;scroll-margin-top:16px}
html body.sj2 .entry-content .hm-group .hm-group-h,html body.sj2 .entry-content .hm-kana .hm-group-h{margin-top:0}
html body.sj2 .entry-content .hm-kana{margin:0;scroll-margin-top:16px}
html body.sj2 .entry-content .kana-row{margin:0 0 24px;scroll-margin-top:16px}
html body.sj2 .entry-content .kana-row .kana-h{margin:0 0 4px}
html body.sj2 .entry-content ul.kana-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));column-gap:16px;margin:0;padding:0;list-style:none}
html body.sj2 .entry-content .kana-list li{margin:0;padding:0;list-style:none;border-bottom:1px solid var(--rule)}
html body.sj2 .entry-content .kana-list a{display:flex;align-items:center;min-height:44px;padding:6px 0;color:var(--link);font-size:15px;font-weight:700;line-height:1.45;text-decoration:none}
html body.sj2 .entry-content .kana-list a:hover{color:var(--link);text-decoration:underline;text-underline-offset:.2em}

/* ---------- 9 Cocoon の一覧（カテゴリのページ）：横長カード ---------- */
html body.sj2 .list-title,html body.sj2 .archive-title{margin:0 0 16px;padding:0;background:none;border:0;font-size:22px;font-weight:700;line-height:1.45;color:var(--ink)}
html body.sj2 .archive-title .fa,html body.sj2 .list-title .fa{display:none}
@media (min-width:768px){html body.sj2 .list-title,html body.sj2 .archive-title{font-size:26px}}
html body.sj2 .list{margin:0;padding:0;border-top:1px solid var(--rule)}
html body.sj2 a.entry-card-wrap{display:block;width:auto;margin:0;padding:14px 0;background:none;border:0;border-bottom:1px solid var(--rule);border-radius:0;box-shadow:none;color:var(--ink);text-decoration:none}
html body.sj2 a.entry-card-wrap:hover{background:none}
html body.sj2 a.entry-card-wrap:hover .entry-card-title{color:var(--link);text-decoration:underline;text-underline-offset:.2em}
html body.sj2 .entry-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:start;margin:0;padding:0}
html body.sj2 .entry-card-thumb{width:auto;margin:0;float:none;aspect-ratio:16 / 9;overflow:hidden;background:var(--bg-soft)}
html body.sj2 .entry-card-thumb img{display:block;width:100%;height:100%;object-fit:cover}
html body.sj2 .entry-card-content{margin:0;padding:0;width:auto;float:none}
html body.sj2 .entry-card-title{margin:0;font-size:17px;font-weight:700;line-height:1.5;color:var(--ink)}
html body.sj2 .entry-card-snippet{display:none}
html body.sj2 .entry-card-meta,html body.sj2 .entry-card-meta *{font-size:14px!important;color:var(--ink2)}
@media (min-width:768px){
  html body.sj2 .entry-card{grid-template-columns:160px minmax(0,1fr);gap:20px}
  html body.sj2 .entry-card-snippet{display:block;margin:4px 0 0;font-size:15px;line-height:1.6;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
html body.sj2 .pagination{margin:24px 0 0}
html body.sj2 .pagination .page-numbers,html body.sj2 .pagination .page-numbers.dots{background:var(--bg);border:1px solid var(--rule);border-radius:4px;color:var(--ink)}
html body.sj2 .pagination .page-numbers.dots{border-color:transparent;color:var(--ink2)}
html body.sj2 .pagination a.page-numbers:hover{background:var(--bg-soft);color:var(--link)}
html body.sj2 .pagination .page-numbers.current{background:var(--band);border-color:var(--band);color:var(--bg)}
/* 「次のページ」（Cocoon の key-btn）：静的ページのサブのボタンと同じ（白い地に深緑の枠・角 4px・高さ 44px 以上） */
html body.sj2 .pagination-next{margin:24px 0 0}
html body.sj2 a.pagination-next-link,html body.sj2 a.pagination-next-link.key-btn{
  display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 20px;
  background:var(--bg);border:1px solid var(--band);border-radius:4px;box-shadow:none;
  color:var(--band);font-size:16px;font-weight:700;line-height:1.4;text-decoration:none;
}
html body.sj2 a.pagination-next-link:hover{background:var(--bg-soft);color:var(--band)}

/* ---------- 10 お問い合わせフォーム（Contact Form 7） ---------- */
html body.sj2 .wpcf7 form p{margin:0 0 1.2em}
html body.sj2 .wpcf7 label{display:block;font-weight:700;line-height:1.7;color:var(--ink)}
html body.sj2 .wpcf7 input[type="text"],html body.sj2 .wpcf7 input[type="email"],html body.sj2 .wpcf7 input[type="tel"],
html body.sj2 .wpcf7 input[type="url"],html body.sj2 .wpcf7 textarea,html body.sj2 .wpcf7 select{
  display:block;width:100%;max-width:none;margin-top:4px;
  padding:10px 12px;min-height:48px;
  font-size:16px;line-height:1.6;color:var(--ink);
  background:var(--bg);border:1px solid var(--rule);border-radius:4px;box-shadow:none;
}
html body.sj2 .wpcf7 textarea{min-height:200px}
html body.sj2 .wpcf7 input:focus,html body.sj2 .wpcf7 textarea:focus{outline:3px solid var(--accent);outline-offset:1px;border-color:var(--band)}
html body.sj2 .wpcf7 input[type="submit"],html body.sj2 .wpcf7 .wpcf7-submit{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:10px 20px;
  background:var(--band);color:var(--bg);border:1px solid var(--band);border-radius:4px;cursor:pointer;
  font-size:16px;font-weight:700;line-height:1.4;
}
html body.sj2 .wpcf7 input[type="submit"]:hover{background:var(--band-dark);border-color:var(--band-dark)}
@media (min-width:640px){html body.sj2 .wpcf7 input[type="submit"],html body.sj2 .wpcf7 .wpcf7-submit{display:inline-flex;width:auto;min-width:260px}}
html body.sj2 .wpcf7 .wpcf7-response-output{margin:1.2em 0 0;padding:10px 14px;border:1px solid var(--band);border-radius:4px;color:var(--ink);background:var(--bg-soft)}
html body.sj2 .wpcf7 .wpcf7-not-valid-tip{margin-top:4px;font-size:14px;color:var(--ink)}
html body.sj2 .wpcf7 .wpcf7-spinner{display:none}
html body.sj2 .wpcf7 .screen-reader-response{position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);height:1px;width:1px;margin:-1px;padding:0;border:0}

/* ---------- 11 404（静的ページの 404 と同じ2つのボタン） ---------- */
html body.sj2 img.not-found{display:none}
html body.sj2 .sj-404-links{display:block;margin-top:8px}
html body.sj2 .sj-404-links a.button{display:flex;width:100%}
html body.sj2 .sj-404-links a.button + a.button{margin-top:12px}
@media (min-width:640px){html body.sj2 .sj-404-links a.button{width:auto;max-width:360px}}

/* ---------- 12 サイド（静的ページの .side と同じ。WordPress の中では Cocoon の飾りを打ち消すだけ） ---------- */
html body.sj2 .side h2.side-h{background:none;color:var(--ink);border-radius:0}
html body.sj2 .side-list img{border-radius:0}
