:root{
  --bg:#202124; --surface:#2d2e31; --surface-2:#3c4043; --line:#3c4043;
  --text:#e8eaed; --muted:#9aa0a6; --accent:#8ab4f8; --accent-ink:#202124;
  --c-lp:#8ab4f8; --c-auto:#81c995; --c-data:#fdd663; --c-video:#f28b82;
  --radius-btn:6px; --wrap:min(1200px,calc(100% - 48px));
  --f-jp:'Zen Kaku Gothic New',"Hiragino Sans","Noto Sans JP",sans-serif; --f-en:'Space Grotesk',var(--f-jp);
}
*{box-sizing:border-box}
html{word-break:auto-phrase;line-break:strict;overflow-wrap:break-word;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--f-jp);font-size:17px;line-height:1.8;-webkit-font-smoothing:antialiased;overflow-x:clip}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent)}
.zp{white-space:nowrap}
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;background:var(--accent);color:var(--accent-ink);padding:10px 16px;border-radius:var(--radius-btn);font-weight:700;text-decoration:none}
.skip-link:focus{top:12px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 24px;border-radius:var(--radius-btn);font-size:17px;font-weight:700;text-decoration:none;border:1px solid var(--line);color:var(--text);transition:transform .2s,background-color .2s}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}

/* ヘッダー */
.hd{position:fixed;inset:0 0 auto 0;z-index:50;transition:background-color .35s}
.hd .inner{width:min(1320px,calc(100% - 40px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0}
.hd .brand{color:var(--text);text-decoration:none;font-family:var(--f-en);font-weight:700;font-size:21px}
.hd nav{display:flex;align-items:center;gap:26px}
.hd nav a{color:var(--text);text-decoration:none;font-size:16px}
.hd nav .btn{min-height:44px;padding:8px 18px;font-size:16px}
.hd.solid{background:rgba(32,33,36,.9);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}


/* ===== 最初の画面（3D の弧） ===== */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:center;overflow:hidden;background:radial-gradient(70% 60% at 72% 52%,#2a2b2e 0%,#1d1e20 55%,#17181a 100%)}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(23,24,26,.94) 0%,rgba(23,24,26,.7) 36%,rgba(23,24,26,0) 60%);z-index:1;pointer-events:none}
.hero-inner{position:relative;z-index:3;width:min(1340px,calc(100% - 48px));margin:0 auto;padding:120px 0 72px}
.hero-copy{max-width:540px}
.hero h1{margin:0;font-size:clamp(38px,5.4vw,72px);line-height:1.25;font-weight:900}
.hero h1 .num{font-family:var(--f-en);color:var(--accent);font-size:1.2em}
.hero .sub{margin:22px 0 0;font-size:18px;color:var(--muted)}
.hero .acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
.stage3d{position:absolute;z-index:2;inset:0 0 0 47%}
.stage3d canvas{display:block;width:100%;height:100%;touch-action:pan-y;opacity:0;transition:opacity .8s}
.stage3d.ready canvas{opacity:1}
.stage3d .hint{position:absolute;right:clamp(20px,4vw,56px);bottom:32px;margin:0;font-size:16px;color:var(--muted);opacity:0;transition:opacity .6s}
.stage3d.ready .hint{opacity:1}
.arc-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;perspective:1400px;list-style:none;margin:0;padding:0 4%}
.arc-fallback li{flex:0 0 auto;width:15%;margin:0 -1.2%;transform:rotateY(var(--r)) translateZ(var(--z))}
.arc-fallback a{display:block;border-radius:6px;overflow:hidden}
.arc-fallback img{aspect-ratio:16/10;object-fit:cover;object-position:top;width:100%}
.stage3d.ready .arc-fallback{display:none}
.scroll-cue{position:absolute;z-index:3;left:50%;bottom:22px;width:2px;height:44px;background:linear-gradient(var(--text),transparent);animation:cue 1.8s ease-in-out infinite}
@keyframes cue{0%{transform:translateY(-10px);opacity:0}40%{opacity:1}100%{transform:translateY(14px);opacity:0}}
@media(max-width:900px){
  .hero{display:block;min-height:auto;background:radial-gradient(90% 50% at 50% 78%,#2a2b2e 0%,#17181a 100%)}
  .hero::before{background:linear-gradient(180deg,rgba(23,24,26,.92) 0%,rgba(23,24,26,.7) 60%,rgba(23,24,26,.2) 100%)}
  .hero-inner{padding:92px 0 0}
  .hero .acts .btn{flex:1 1 100%}
  .stage3d{position:relative;inset:auto;height:44vh;min-height:300px;max-height:420px}
  .arc-fallback li{width:30%;margin:0 -6%}
  .arc-fallback li:nth-child(1),.arc-fallback li:nth-child(7){display:none}
  .scroll-cue{display:none}
}

/* ===== 場面が変わるセクション（共通） =====
   セクションの高さ＝スクロールの長さ。中の .stick が画面に貼りつき、
   data-r="a b" を付けた要素に、その区間の進み具合 --t（0〜1）が入る */
.scene{position:relative;height:var(--len,520vh)}
.stick{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.scene [data-r]{--t:0}
/* 大きな種類の文字（動かない要素） */
.kind{position:absolute;left:clamp(16px,3vw,48px);bottom:clamp(10px,2vw,28px);margin:0;font-family:var(--f-en);font-weight:700;font-size:clamp(110px,19vw,300px);line-height:.8;letter-spacing:-.03em;color:transparent;-webkit-text-stroke:1.5px rgba(232,234,237,.16);pointer-events:none;user-select:none}
.kind b{color:var(--c);-webkit-text-stroke:0;opacity:.9}
.count{position:absolute;z-index:5;right:clamp(16px,3vw,48px);top:84px;margin:0;font-family:var(--f-en);font-size:16px;letter-spacing:.14em;color:var(--muted)}

/* 納品物が1枚ずつ前に出て、画面いっぱいに映る */
.deck{position:absolute;inset:0;display:grid;place-items:end center;padding-bottom:5vh;pointer-events:none}
.deck .enter{width:min(94vw,1320px);height:min(calc(100vh - 170px),800px);
  transform:perspective(1800px) translateY(calc((1 - var(--t))*26vh)) scale(calc(.3 + .7*var(--t))) rotateX(calc((1 - var(--t))*24deg));
  opacity:calc(var(--t)*1.8)}
.deck .exit{width:100%;height:100%;transform:translateX(calc(var(--t)*-118%)) rotate(calc(var(--t)*-5deg)) scale(calc(1 - var(--t)*.15));opacity:calc(1 - var(--t)*.4)}
.win{position:relative;width:100%;height:100%;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 40px 120px -30px rgba(0,0,0,.85);pointer-events:auto;display:flex;flex-direction:column}
.win .bar{flex:0 0 auto;display:flex;align-items:center;gap:7px;height:34px;padding:0 14px;background:#e9eaec}
.win .bar i{width:10px;height:10px;border-radius:50%;background:#c4c7cc}
.win .view{position:relative;flex:1 1 auto;overflow:hidden}
.win .view:has(img.narrow){background:#f7f3ec}
.win .view img.long.narrow{width:min(40%,460px);margin:0 auto;box-shadow:0 0 0 1px #e6dfd3}
.win .view img.long{width:100%;max-width:none;transform:translateY(calc(var(--t) * -1 * (var(--ih,0px) - var(--fh,0px))))}
.tag{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:linear-gradient(transparent,rgba(20,21,23,.86) 40%);color:var(--text)}
.tag b{font-size:18px}
.tag .btn{min-height:44px;padding:6px 16px;font-size:16px;pointer-events:auto}

/* 作業の流れ：白紙から LP が組み上がる */
.build{position:absolute;inset:0;display:grid;place-items:center;padding:96px 0 84px;opacity:var(--t)}
.build .win{width:min(94vw,1120px,calc((100vh - 250px)*1.6));height:auto;background:#2a2b2e}
.mock{position:relative;flex:none;width:100%;aspect-ratio:1.6;container-type:size;font-family:"Hiragino Mincho ProN","Yu Mincho",serif}
.mock .bg{position:absolute;inset:0;background:#fbf6ee;opacity:var(--t)}
.bl{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);border:1.5px dashed rgba(232,234,237,.55);border-radius:4px;transform-origin:left center;transform:scaleX(var(--t));opacity:min(1,calc(var(--t)*3))}
.bl.pill,.bl.pill .fill{border-radius:999px}
.bl.round,.bl.round .fill{border-radius:40% 40% 46% 46%}
.bl .fill{position:absolute;inset:-1.5px;border-radius:4px;opacity:var(--t);display:flex;align-items:center;justify-content:center;overflow:visible}
.mock .txt{opacity:var(--t);color:#4a3426;font-weight:700;white-space:nowrap;font-size:4.2cqw;line-height:1}
.mock .txt.s{font-size:1.5cqw;font-family:var(--f-jp);font-weight:500;color:#6b5546}
.mock .txt.w{color:#fff;font-family:var(--f-jp);font-size:1.6cqw}
.mock .txt.o{color:#d87436;font-family:var(--f-en);font-size:2cqw}
.final{position:absolute;inset:34px 0 0 0;background-size:100% 100%!important;background:#fff url(../../src/tex-lp-cafe.jpg) top/cover no-repeat;opacity:var(--t)}
.steps-bar{position:absolute;left:50%;bottom:clamp(16px,4vh,40px);transform:translateX(-50%);display:flex;gap:clamp(14px,3vw,36px);margin:0;padding:0;list-style:none}
.steps-bar li{position:relative;font-size:16px;color:var(--muted);padding-bottom:8px;white-space:nowrap}
.steps-bar li::after{content:"";position:absolute;left:0;bottom:0;height:3px;width:calc(var(--t)*100%);background:var(--c,var(--accent));border-radius:3px}
.steps-bar li[data-done]{color:var(--text)}


/* ===== 流れの部品（4つの場面で共通） ===== */
.cv{position:relative;width:100%;aspect-ratio:1.6;container-type:size;background:#26272a;overflow:hidden}
.it{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h)}
.it.pop{transform:scale(calc(.86 + .14*var(--t))) translateY(calc((1 - var(--t))*3cqh));opacity:var(--t)}
.it.drop{transform:translateY(calc((1 - var(--t))*-12cqh));opacity:var(--t)}
.it.arrow{height:2px!important;background:var(--c);transform-origin:left;transform:scaleX(var(--t))}
.it.arrow::after{content:"";position:absolute;right:-2px;top:-5px;border:6px solid transparent;border-left:9px solid var(--c);opacity:var(--t)}
.pane{border-radius:10px;overflow:hidden;background:#fff;color:#202124;box-shadow:0 18px 40px -18px rgba(0,0,0,.7)}
/* ホームページ */
.tile img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:6px;box-shadow:0 14px 30px -14px rgba(0,0,0,.8)}
.tile .pg{position:absolute;left:0;top:calc(100% + .8cqh);font-size:max(16px,1.6cqw);color:var(--text)}
.tile .ring{position:absolute;inset:-6px;border:3px solid var(--c);border-radius:9px;opacity:calc(var(--t) * (1 - var(--t)) * 4)}
.links{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.links path{fill:none;stroke:var(--c);stroke-width:.35;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--t));vector-effect:non-scaling-stroke;stroke-width:2px}
.it.whole{opacity:var(--t)}
.it.whole img{width:100%;height:100%;object-fit:cover;object-position:top}
/* 自動化 */
.form{display:flex;flex-direction:column;gap:1.4cqh;padding:3cqh 2cqw;height:100%;font-size:max(16px,1.4cqw)}
.form .fh{display:block;height:4cqh;background:#81c995;border-radius:4px;margin:-3cqh -2cqw 1cqh}
.form .fl{color:#5f6368}
.form .fi{display:block;border-bottom:2px solid #dadce0;min-height:4cqh;overflow:hidden}
.form .fi em{display:inline-block;font-style:normal;white-space:nowrap;clip-path:inset(0 calc((1 - var(--t))*100%) 0 0)}
.form .fb{margin-top:auto;align-self:flex-start;padding:.8cqh 2cqw;border-radius:6px;background:#1e8e3e;color:#fff;transform:scale(calc(1 - var(--t)*(1 - var(--t))*.6))}
.sheet{display:grid;align-content:start;height:100%;font-size:max(16px,1.35cqw);background:#fff}
.sheet .sr{display:grid;grid-template-columns:1fr 1.2fr .8fr;border-bottom:1px solid #e0e0e0;opacity:var(--t);transform:translateX(calc((1 - var(--t))*-4cqw))}
.sheet .sr span{padding:1.1cqh .8cqw;border-right:1px solid #e0e0e0;white-space:nowrap;overflow:hidden}
.sheet .sr.th{background:#e6f4ea;font-weight:700;opacity:1;transform:none}
.sheet .sr.new{background:rgba(129,201,149,.25)}
.clock{display:inline-block;font-family:var(--f-en);font-weight:700;font-size:max(18px,2.4cqw);color:var(--c)}
.mail{display:flex;flex-direction:column;gap:1.6cqh;padding:3cqh 1.6cqw;height:100%;font-size:max(16px,1.3cqw)}
.mail .ml{display:block;height:1.2cqh;border-radius:3px;background:#dadce0;transform-origin:left;transform:scaleX(var(--t))}
.mail .ml.s{width:60%}
.mail .mn{margin-top:auto;font-family:var(--f-en);font-weight:700;font-size:max(18px,2.6cqw);color:#1e8e3e;opacity:var(--t)}
/* データ */
.paper-w{background:#fbf8f1!important}
.paper{padding:3cqh 2cqw;height:100%;font-family:"Hiragino Maru Gothic ProN","Klee",var(--f-jp);color:#2c3e50}
.paper .pt{display:block;font-size:max(16px,1.6cqw);margin-bottom:2cqh;color:#202124}
.pq{position:relative;padding:1.6cqh 1cqw;border-bottom:1px dashed #c9c2b0;font-size:max(16px,1.5cqw)}
.pq .hl{position:absolute;inset:0;background:rgba(253,214,99,.45);opacity:calc(var(--t)*(1.6 - var(--t)))}
.pq .hw{position:relative;transform:rotate(-.6deg);display:inline-block}
.sheet.data .sr{grid-template-columns:1fr 1fr 1fr 1.2fr .6fr}
.sheet.data .sr.th{background:#fef7e0}
.sheet.data .sr.warn span:nth-child(3),.sheet.data .sr.warn span:nth-child(4){background:rgba(253,214,99,.35)}
.sheet .ok{color:#1e8e3e;font-weight:700;opacity:var(--t);text-align:center}
/* 動画 */
.screen{position:relative;width:100%;height:100%;border-radius:8px;overflow:hidden;background:#000}
.screen img{width:100%;height:100%;object-fit:cover}
.screen .play{position:absolute;left:50%;top:50%;width:0;height:0;margin:-3cqh 0 0 -1.4cqw;border:3cqh solid transparent;border-left:4.6cqh solid rgba(255,255,255,.85)}
.strip{position:relative;display:flex;gap:4px;height:100%}
.strip .fr{flex:1 1 0;min-width:0;height:100%;border-radius:3px;opacity:.8}
.fr{display:block;background:#fbf6ee url(../../src/long-lp-cafe.jpg) no-repeat;background-size:auto 900%}
.screen .fr.big{width:100%;height:100%;background-size:100% auto}
.phone .fr.ph{position:absolute;inset:0;background-size:auto 340%}
.phone::after{content:"";position:absolute;left:0;right:0;bottom:0;height:42%;background:linear-gradient(transparent,rgba(0,0,0,.78) 45%);pointer-events:none}
.phone .sub{z-index:2}.phone .prog{z-index:3}
.strip .sel{position:absolute;top:-6px;bottom:-6px;width:13%;left:calc(var(--t)*49%);border:3px solid var(--c);border-radius:6px;box-shadow:0 0 0 999px rgba(0,0,0,.35)}
.phone{position:relative;width:100%;height:100%;border-radius:22px;border:6px solid #111;overflow:hidden;background:#000}
.phone img{width:100%;height:100%;object-fit:cover;object-position:62% center}
.phone .sub{position:absolute;left:8%;right:8%;bottom:20%;text-align:center;font-weight:900;font-size:max(16px,2.2cqw);color:#fff;text-shadow:0 2px 0 #000,0 0 8px #000;opacity:var(--t);transform:translateY(calc((1 - var(--t))*2cqh))}
.phone .sub.b{bottom:13%}
.phone .prog{position:absolute;left:0;bottom:0;height:5px;width:calc(var(--t)*100%);background:var(--c)}
.links.m{display:none}
@media(max-width:900px){
  .cv{aspect-ratio:.64}
  .it{left:var(--mx,var(--x));top:var(--my,var(--y));width:var(--mw,var(--w));height:var(--mh,var(--h))}
  .it.arrow{transform:rotate(90deg) scaleX(var(--t))}
  .links{display:none}.links.m{display:block}
  .tile .pg{font-size:16px}
  .form{gap:.6cqh;padding:2cqh 4cqw}.form .fh{height:2cqh;margin:-2cqh -4cqw .4cqh}.form .fl{display:none}.form .fi{min-height:0;padding:.4cqh 0}
  .sheet .sr:nth-child(2),.sheet .sr:nth-child(3){display:none}
  .sheet.data .sr:nth-child(2),.sheet.data .sr:nth-child(3){display:grid}
  .sheet .sr span{padding:.7cqh 1.4cqw}
  .mail{gap:1cqh;padding:2cqh 4cqw}
  .paper{padding:2cqh 4cqw}.paper .pt{margin-bottom:.6cqh}.pq{padding:.9cqh 2cqw}
  .phone{border-radius:18px;border-width:4px}
  .phone .sub{font-size:18px;bottom:22%}.phone .sub.b{bottom:15%}
  .build .win{width:min(94vw,calc((100svh - 230px)*.64))}
}

/* 大きな種類の文字は地に溶かす（飾りの重ね方） */
.kind{mix-blend-mode:screen}
@media(max-width:768px){
  .hero h1{letter-spacing:0}
  .count{font-size:16px}
}
.scene-line{position:absolute;z-index:5;left:clamp(16px,3vw,48px);top:84px;margin:0;max-width:60vw;font-size:clamp(17px,1.6vw,20px);font-weight:700;color:var(--text)}
.scene-line::before{content:"";display:inline-block;width:10px;height:10px;margin-right:10px;border-radius:50%;background:var(--c);vertical-align:.08em}
@media(max-width:900px){.scene-line{top:76px;max-width:none;right:16px;font-size:16px}.count{display:none}}
/* 骨組み用の仮の場面 */
.todo .stick{display:grid;place-items:center}
.todo p.memo{margin:0;font-size:18px;color:var(--muted);text-align:center}

/* 最後の相談 */
.cta-end{min-height:90vh;display:grid;place-items:center;text-align:center;padding:120px 24px;background:radial-gradient(60% 50% at 50% 60%,rgba(138,180,248,.10),transparent 70%)}
.cta-end h2{margin:0;font-size:clamp(34px,5.4vw,72px);line-height:1.3;font-weight:900}
.cta-end .acts{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:40px}
.facts{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(24px,5vw,72px);margin:64px 0 0;padding:0;list-style:none}
.facts li{display:grid;justify-items:center;gap:4px}
.facts b{font-family:var(--f-en);font-size:clamp(40px,5vw,64px);line-height:1}
.facts span{font-size:16px;color:var(--muted)}

@media(max-width:900px){
  .deck .enter{width:94vw;height:68vh}
  .count{top:76px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ===== 共通：メニュー（スマホ）・フッター ===== */
.menu-btn{display:none;min-height:44px;min-width:44px;border:1px solid var(--line);border-radius:var(--radius-btn);background:transparent;color:var(--text);font:inherit;font-size:16px;padding:6px 14px}
.hd nav a[aria-current="page"]{color:var(--accent)}
@media(max-width:900px){
  .menu-btn{display:inline-flex;align-items:center}
  .hd nav{position:fixed;inset:66px 12px auto 12px;flex-direction:column;align-items:stretch;gap:0;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 20px 50px -20px rgba(0,0,0,.8);display:none}
  .hd nav.open{display:flex}
  .hd nav a{padding:14px 10px;border-bottom:1px solid var(--line)}
  .hd nav .btn{margin-top:10px;border-bottom:0}
}
.ft{border-top:1px solid var(--line);padding:56px 0 0;background:#1b1c1e}
.ft .in{width:var(--wrap);margin:0 auto;display:grid;grid-template-columns:1.1fr 2fr;gap:40px}
.ft .brand{color:var(--text);text-decoration:none;font-family:var(--f-en);font-weight:700;font-size:22px}
.ft-brand p{margin:14px 0 0;max-width:30em;font-size:16px;color:var(--muted)}
.ft-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.ft-map div{display:flex;flex-direction:column}
.ft-map b{font-size:16px;margin-bottom:6px}
.ft-map a{color:var(--muted);text-decoration:none;font-size:16px;min-height:40px;display:flex;align-items:center}
.ft-map a:hover{color:var(--text)}
.ft .cp{width:var(--wrap);margin:40px auto 0;padding:20px 0 32px;border-top:1px solid var(--line);font-family:var(--f-en);font-size:14px;color:var(--muted)}
@media(max-width:860px){.ft .in{grid-template-columns:1fr}.ft-map{grid-template-columns:1fr 1fr}}

/* ===== 下のページ ===== */
.page-hero{position:relative;padding:150px 0 72px;overflow:hidden;background:#17181a center/cover no-repeat}
.page-hero{background-size:58% auto!important;background-position:right -2% top 64px!important}
.page-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#17181a 0%,#17181a 40%,rgba(23,24,26,.78) 62%,rgba(23,24,26,.55)),linear-gradient(0deg,#17181a 0%,rgba(23,24,26,0) 40%)}
@media(max-width:860px){.page-hero{background-size:120% auto!important;background-position:left 30% top 56px!important}.page-hero::before{background:linear-gradient(0deg,#17181a 35%,rgba(23,24,26,.94))}}
.page-hero .wrap{position:relative}
.page-hero .word{position:absolute;right:-1vw;bottom:-.18em;margin:0;font-family:var(--f-en);font-weight:700;font-size:clamp(90px,16vw,240px);line-height:.8;color:transparent;-webkit-text-stroke:1.5px rgba(232,234,237,.14);pointer-events:none}
.page-hero h1{margin:0;max-width:16em;font-size:clamp(30px,4.4vw,54px);line-height:1.35;font-weight:900}
.page-hero p{margin:18px 0 0;max-width:34em;color:var(--muted);font-size:17px}
.crumb{margin:0 0 20px;font-size:16px;color:var(--muted)}.crumb a{color:var(--muted)}
.wrap{width:var(--wrap);margin:0 auto}
.blk{padding:clamp(64px,8vw,104px) 0;border-top:1px solid var(--line)}
.blk h2{margin:0 0 28px;font-size:clamp(24px,3vw,34px);line-height:1.45;font-weight:900}
.voices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.voices q{display:block;padding:28px 30px;border-left:3px solid var(--c,var(--accent));background:var(--surface);font-size:clamp(18px,2vw,22px);font-weight:700;line-height:1.7;quotes:"「" "」"}
.shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.shots a{display:block;color:var(--text);text-decoration:none;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);transition:transform .25s,border-color .25s}
.shots a:hover{transform:translateY(-4px);border-color:var(--c,var(--accent))}
.shots img{aspect-ratio:16/10;object-fit:cover;object-position:top;width:100%}
.shots span{display:flex;justify-content:space-between;gap:10px;padding:14px 18px;font-weight:700}
.shots span::after{content:"開く ↗";color:var(--accent);font-weight:500;white-space:nowrap}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}
.flowline{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0;padding:0;list-style:none;counter-reset:f}
.flowline li{position:relative;padding:20px;border:1px solid var(--line);border-radius:12px;font-size:17px}
.flowline li::before{counter-increment:f;content:counter(f,decimal-leading-zero);display:block;font-family:var(--f-en);font-weight:700;font-size:30px;color:var(--c,var(--accent));line-height:1;margin-bottom:10px}
.bigs{display:flex;flex-wrap:wrap;gap:clamp(24px,5vw,64px);margin:0;padding:0;list-style:none}
.bigs li{display:grid;gap:2px}
.bigs b{font-family:var(--f-en);font-size:clamp(44px,6vw,72px);line-height:1;color:var(--c,var(--text))}
.bigs span{font-size:16px;color:var(--muted)}
.ticks{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.ticks li{position:relative;padding-left:30px}
.ticks li::before{content:"";position:absolute;left:4px;top:.62em;width:12px;height:7px;border-left:2px solid var(--c,var(--accent));border-bottom:2px solid var(--c,var(--accent));transform:rotate(-45deg)}
.ticks.no li::before{width:14px;height:0;border-left:0;border-bottom:2px solid #f28b82;transform:none;top:.85em}
.table{width:100%;border-collapse:collapse;font-size:17px}
.table th,.table td{padding:16px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.table th{width:30%;color:var(--muted);font-weight:500}
.acc details{border-bottom:1px solid var(--line)}
.acc details:first-child{border-top:1px solid var(--line)}
.acc summary{list-style:none;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;padding:20px 4px;cursor:pointer;font-size:18px;font-weight:700;line-height:1.6}
.acc summary::-webkit-details-marker{display:none}
.acc summary::after{content:"+";font-family:var(--f-en);font-size:24px;color:var(--c,var(--accent))}
.acc details[open] summary::after{content:"−"}
.acc .a{padding:0 4px 22px;color:var(--muted)}
.acc h3{margin:36px 0 8px;font-size:16px;color:var(--muted);font-weight:500}
.cta-band{padding:clamp(72px,9vw,120px) 0;text-align:center;border-top:1px solid var(--line);background:radial-gradient(50% 60% at 50% 100%,rgba(138,180,248,.09),transparent 70%)}
.cta-band h2{margin:0;font-size:clamp(26px,3.6vw,42px);font-weight:900;line-height:1.4}
.cta-band .acts{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:30px}
.rel{display:flex;flex-wrap:wrap;gap:12px}
.rel a{display:inline-flex;align-items:center;min-height:48px;padding:10px 18px;border:1px solid var(--line);border-radius:var(--radius-btn);color:var(--text);text-decoration:none}
.rel a:hover{border-color:var(--accent)}
.rel .soon{display:inline-flex;align-items:center;min-height:48px;padding:10px 18px;border:1px dashed var(--line);border-radius:var(--radius-btn);color:var(--muted)}
.note{font-size:16px;color:var(--muted)}
.prose p{margin:0 0 1.2em;max-width:40em}
@media(max-width:480px){.page-hero h1{font-size:clamp(26px,7.4vw,32px)}.page-hero h1 .zp{white-space:normal}.cta-band h2 .zp{white-space:normal}}
@media(max-width:860px){.voices,.split{grid-template-columns:1fr}.page-hero{padding:120px 0 56px}.table th{width:36%}}
/* フォームの安全弁（将来フォームを手で貼ったときに、スマホではみ出さない） */
input,textarea,select{max-width:100%;box-sizing:border-box}
input[type=text],input[type=email],input[type=tel],input[type=url],textarea,select{width:100%;font-size:16px}

/* ===== ブログ（templates/blog-shared.css を暗い配色に合わせて足す） ===== */
:root{--ai:#8ab4f8;--ai2:#a6c6fa;--shu:#f28b82;--yama:#8ab4f8;--yama2:#a6c6fa;--kami:#2d2e31;--kami2:#26272a;--ink:#e8eaed;--body:#e8eaed}
/* blog-shared.css — ブログ（個別/一覧）・サイドバー・page-hero(marquee) の共通CSS断片。
   STEP 7 で各サイトの assets/css/_shared.css の末尾に追記して使う。
   前提トークン: --ai --ai2 --shu --yama --yama2 --kami --kami2 --ink --body --muted --line。
   ベースの .page-hero{...} は _shared.css に既にある前提（ここは marquee 追加と post/sidebar/archive）。 */

/* サイト側のリセット有無に依存しないための保険。padding を持つ箱が幅指定と足し算されて
   スマホで横スクロールを出す事故（375/390px）を防ぐ。 */
.post-wrap,.post-main,.post-side,.widget,.post-toc,.post-author,.post-body .cbox,
.post-body blockquote,.p-card,.p-card__bd{ box-sizing:border-box; }

/* ============ 固定ページ見出しヘッダー：右→左ギャラリー＋カラーオーバーレイ ============ */
.page-hero .wrap{ position:relative; z-index:3; }
.page-hero::before{ z-index:2; }
.page-hero__bg{ position:absolute; inset:0; z-index:0; overflow:hidden; display:flex; align-items:center; }
.page-hero__bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(105deg, rgba(20,59,107,.90) 0%, rgba(31,95,166,.78) 50%, rgba(20,59,107,.90) 100%); }
.page-hero__mq{ display:flex; width:max-content; height:100%; will-change:transform; animation:page-hero-mq 64s linear infinite; }
.page-hero__mq img{ height:100%; width:auto; aspect-ratio:4/3; object-fit:cover; display:block; flex:0 0 auto; }
@keyframes page-hero-mq{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .page-hero__mq{ animation:none; } }

/* ============ 投稿（single）ページ ============ */
.post-hero{ position:relative; overflow:hidden; color:#F1F4EF; padding:104px 0 70px; }
.post-hero__bg{ position:absolute; inset:0; z-index:0; }
.post-hero__bg img{ width:100%; height:100%; object-fit:cover; display:block; }
.post-hero__bg::after{ content:""; position:absolute; inset:0; background:linear-gradient(160deg, rgba(20,59,107,.74) 0%, rgba(15,40,80,.92) 100%); }
.post-hero::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:5px; background:linear-gradient(90deg,var(--shu),var(--yama)); z-index:2; }
.post-hero .wrap{ position:relative; z-index:1; max-width:860px; }
.post-hero__meta{ display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.post-hero__date{ font-family:'Space Grotesk',monospace; font-size:16px; letter-spacing:.06em; color:rgba(241,244,239,.82); }
.post-hero__cat{ font-size:16px; font-weight:700; letter-spacing:.08em; padding:4px 12px; border-radius:999px; color:#fff; background:var(--ai); }  /* 既定色（WPでis-*が付かない時用）。is-*が上書き */
.post-hero h1{ font-family:'Shippori Mincho',serif; font-weight:800; font-size:clamp(25px,3.8vw,40px); line-height:1.55; letter-spacing:.04em; margin:0; color:#F6F8F4; }
.post-hero .crumb{ font-family:'Space Grotesk',monospace; font-size:16px; letter-spacing:.18em; color:rgba(241,244,239,.6); margin:24px 0 0; }
.post-hero .crumb a{ color:rgba(241,244,239,.82); text-decoration:none; }

/* 投稿レイアウト：本文 + サイドバー */
.post-wrap{ display:grid; grid-template-columns:minmax(0,1fr) 312px; gap:52px; max-width:1140px; margin:0 auto; padding:56px 24px 96px; align-items:start; }
.post-main{ min-width:0; }
.post-figure{ margin:0 0 36px; }
.post-figure img{ width:100%; border-radius:14px; box-shadow:0 24px 50px -28px rgba(20,30,46,.5); display:block; }
/* --- 本文タイポグラフィ（読みやすさの主戦場）---
   ねらい：1段落＝1〜3文で改行多め／強調は黄色マーカー／H2とH3で階層が一目で分かる。
   --mark はマーカーの黄色。サイトのパレットに合わせて調整してよい（淡い黄色を保つこと）。 */
.post-body{ --mark:#FFE9A8; counter-reset:h2c; font-size:16.5px; line-height:2.05; color:var(--body);
  word-break:auto-phrase; text-wrap:pretty; }   /* 助詞が行頭に落ちるのを減らす（Chrome）。他ブラウザでは無視される */
.post-body > *:first-child{ margin-top:0; }
.post-body p{ font-size:inherit; line-height:inherit; color:inherit; margin:0 0 1.85em; }
.post-body .post-lead{ font-size:17.5px; color:var(--ink); line-height:2; font-weight:500; margin:0 0 2.2em; padding:0 0 1.6em; border-bottom:1px solid var(--line); }

/* 見出し：H2＝横線＋番号、H3＝黄色の縦バー。粒度の違いが見た目で分かるようにする */
.post-body h2,.post-body h3{ word-break:auto-phrase; text-wrap:pretty; scroll-margin-top:96px; }
.post-body h2{
  font-family:'Shippori Mincho',serif; font-size:clamp(21px,2.9vw,29px); font-weight:700;
  color:var(--ink); line-height:1.62; letter-spacing:.02em;
  margin:3.2em 0 1.1em; padding:0 0 .6em; border-bottom:1px solid var(--line); position:relative;
}
.post-body h2::before{
  counter-increment:h2c; content:counter(h2c,decimal-leading-zero);
  display:block; font-family:'Space Grotesk',monospace; font-size:16px; font-weight:700;
  letter-spacing:.18em; color:var(--shu); margin:0 0 .5em;
}
.post-body h2::after{ content:""; position:absolute; left:0; bottom:-1px; width:4em; height:3px; background:var(--yama); }
.post-body h3{
  font-family:'Shippori Mincho',serif; font-size:clamp(17px,2.1vw,21px); font-weight:700;
  color:var(--ink); line-height:1.65; margin:2.6em 0 .9em; padding-left:14px; border-left:4px solid var(--yama);
}
.post-body h2 + p,.post-body h3 + p{ margin-top:0; }
.post-body h2 + .post-img,.post-body h3 + .post-img{ margin-top:1.2em; }

/* 強調：太字は色を変えない。読ませたい「1文だけ」を黄色マーカー（記事全体で6〜10箇所）。
   マーカーの色はサイトのアクセントに合わせ替えてよい（医療系クライアントで緑を使った実例もある）。 */
.post-body strong{ font-weight:700; color:var(--ink); }
.post-body mark.marker{
  background:linear-gradient(transparent 60%, var(--mark) 60%);
  color:inherit; font-weight:700; padding:0 2px;
}
.post-body mark.marker strong{ font-weight:700; }
/* 短い注意語だけ色文字（「自己判断はせず」等）。1記事1〜2回まで */
.post-body .txt-alert{ color:var(--shu); font-weight:700; }

/* 枠3種：box＝チェック／warning＝注意・警告／remark＝穏やかな補足。役割で使い分け、混用しない */
.post-body .cbox{ margin:0 0 2em; padding:22px 26px 8px; border-radius:12px; border:1px solid var(--line); background:var(--kami2); border-left:4px solid var(--ai); }
.post-body .cbox__ttl{ font-family:'Shippori Mincho',serif; font-weight:700; font-size:16px; color:var(--ink); margin:0 0 .9em; }
.post-body .cbox > :last-child{ margin-bottom:1em; }
.post-body .cbox p{ font-size:16px; line-height:1.95; }
.post-body .cbox li{ margin-bottom:.55em; }
.post-body .cbox--warning{ background:#FDF4F1; border-color:#EFCDC1; border-left-color:var(--shu); }
.post-body .cbox--warning .cbox__ttl{ color:var(--shu); }
.post-body .cbox--remark{ background:#F5F7FA; border-color:#DFE5EC; border-left-color:var(--muted); }

/* リンク・コード */
.post-body a{ color:var(--shu); font-weight:700; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.post-body a:hover{ text-decoration-thickness:2px; }
.post-body code{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.92em; background:var(--kami2); border:1px solid var(--line); border-radius:5px; padding:1px 6px; }

/* リスト：行間を本文よりわずかに詰め、項目の頭を目立たせる */
.post-body ul,.post-body ol{ margin:0 0 1.85em; padding:0; list-style:none; }
.post-body li{ position:relative; padding-left:1.6em; margin:0 0 .7em; line-height:1.95; }
.post-body ul > li::before{ content:""; position:absolute; left:.35em; top:.78em; width:8px; height:8px; border-radius:50%; background:var(--yama); }
.post-body ol{ counter-reset:olc; }
.post-body ol > li{ padding-left:2em; }
.post-body ol > li::before{
  counter-increment:olc; content:counter(olc);
  position:absolute; left:0; top:.28em; width:1.5em; height:1.5em; border-radius:50%;
  background:var(--ai); color:#fff; font-family:'Space Grotesk',monospace; font-size:16px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.post-body li > ul,.post-body li > ol{ margin:.7em 0 0; }

/* 引用・画像・表 */
/* 引用＝他者の言葉。枠（.cbox）と見た目が被らないよう、背景は敷かず罫線だけで示す */
.post-body blockquote{ margin:.4em 0 2em; padding:2px 0 2px 26px; border-left:3px solid var(--line); }
.post-body blockquote p{ margin:0; font-size:16px; line-height:1.95; color:var(--muted); }
.post-body .post-img{ margin:0 0 2em; }
.post-body .post-img img{ width:100%; height:auto; border-radius:12px; display:block; }
.post-body .post-img figcaption{ margin-top:10px; font-size:16px; line-height:1.7; color:var(--muted); text-align:center; }
/* 表：横に広いときだけスクロールさせる。セルの文章は折り返してよい（nowrap にすると必ず横スクロールになる） */
.post-body table{ display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; margin:0 0 1.85em; font-size:16px; line-height:1.75; }
.post-body th,.post-body td{ border:1px solid var(--line); padding:10px 14px; text-align:left; vertical-align:top; min-width:6em; }
.post-body th{ background:var(--kami2); font-weight:700; color:var(--ink); white-space:nowrap; }

/* 目次：h2 が2つ以上のときだけ出る（build_blog_pages.py が生成） */
.post-toc{ margin:0 0 40px; border:1px solid var(--line); border-radius:12px; background:var(--kami2); padding:22px 26px 24px; }
.post-toc__ttl{ font-family:'Shippori Mincho',serif; font-size:16px; font-weight:700; color:var(--ink); margin:0 0 14px; padding-left:12px; border-left:4px solid var(--yama); }
.post-toc__list{ list-style:none; margin:0; padding:0; counter-reset:tocc; }
.post-toc__list li{ position:relative; padding-left:2em; margin:0 0 .6em; line-height:1.7; }
/* 番号は h2 の行だけに振る（h3 でも増やすと、本文の H2 番号とズレる） */
.post-toc__list li:not(.is-sub)::before{ counter-increment:tocc; content:counter(tocc,decimal-leading-zero); position:absolute; left:0; top:.15em; font-family:'Space Grotesk',monospace; font-size:16px; font-weight:700; color:var(--shu); }
.post-toc__list li.is-sub{ padding-left:3.2em; font-size:16px; }
.post-toc__list li.is-sub::before{ content:"—"; position:absolute; left:1.6em; top:.15em; color:var(--muted); }
.post-toc a{ color:var(--ink); text-decoration:none; font-size:16px; font-weight:500; }
.post-toc a:hover{ color:var(--shu); text-decoration:underline; text-underline-offset:3px; }
.post-foot{ margin:44px 0 0; }
.post-foot__bar{ border-top:1px solid var(--line); padding-top:28px; display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.post-foot__back{ display:inline-flex; align-items:center; gap:8px; text-decoration:none; font-weight:700; font-size:16px; color:var(--ink); }
.post-foot__back:hover{ color:var(--shu); }
.post-foot__cta{ display:inline-block; background:var(--ai); color:var(--kami); font-weight:700; font-size:16px; padding:12px 26px; border-radius:999px; text-decoration:none; transition:background .25s; }
.post-foot__cta:hover{ background:var(--shu); }

/* ============ 著者ボックス（この記事を書いた人）============ */
.post-author{ margin:52px 0 0; border:1px solid var(--line); border-radius:14px; background:var(--kami2); padding:26px 28px 28px; position:relative; }
.post-author__label{ position:absolute; top:-11px; left:24px; background:var(--ai); color:#fff; font-size:16px; font-weight:700; letter-spacing:.1em; padding:4px 14px; border-radius:999px; }
.post-author__row{ display:grid; grid-template-columns:88px 1fr; gap:22px; align-items:start; }
.post-author__ph{ width:88px; height:88px; object-fit:cover; border-radius:50%; display:block; border:3px solid #fff; box-shadow:0 10px 24px -14px rgba(20,30,46,.55); }
.post-author__bd{ min-width:0; }
.post-author__name{ font-family:'Shippori Mincho',serif; font-weight:700; font-size:17px; color:var(--ink); margin:2px 0 8px; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.post-author__role{ font-family:'Zen Kaku Gothic New',sans-serif; font-size:16px; font-weight:500; color:var(--muted); letter-spacing:.04em; }
.post-author__bio{ font-size:16px; line-height:1.95; color:var(--body); margin:0; }
.post-author__link{ display:inline-block; margin-top:12px; font-size:16px; font-weight:700; color:var(--shu); text-decoration:none; }
.post-author__link:hover{ text-decoration:underline; }
@media(max-width:680px){
  .post-author{ padding:24px 20px 22px; }
  .post-author__row{ grid-template-columns:64px 1fr; gap:16px; }
  .post-author__ph{ width:64px; height:64px; }
}

/* ============ サイドバー・ウィジェット ============ */
.post-side{ position:sticky; top:88px; display:flex; flex-direction:column; gap:26px; }
.widget{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px 22px 24px; }
.widget__ttl{ font-family:'Shippori Mincho',serif; font-size:16px; font-weight:700; color:var(--ink); margin:0 0 16px; padding-left:12px; border-left:4px solid var(--yama); letter-spacing:.04em; }
.w-search{ display:flex; gap:8px; }
.w-search input{ flex:1; min-width:0; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font-size:16px; font-family:inherit; background:var(--kami2); }
.w-search button{ border:none; background:var(--ai); color:#fff; border-radius:8px; padding:0 16px; font-weight:700; cursor:pointer; }
.w-recent{ display:flex; flex-direction:column; gap:14px; }
.w-recent a{ display:grid; grid-template-columns:70px 1fr; gap:12px; align-items:center; text-decoration:none; color:inherit; }
.w-recent a.is-noimg{ grid-template-columns:1fr; }        /* サムネ未生成のとき（空欄を作らない） */
.p-card.p-card--noimg{ grid-template-columns:1fr; }       /* 一覧カードも同様（後方の .p-card 定義に負けないよう詳細度を上げる） */
.w-recent img{ width:70px; height:48px; object-fit:cover; border-radius:7px; display:block; }
.w-recent div{ min-width:0; }
.w-recent b{ font-family:'Shippori Mincho',serif; font-weight:700; font-size:16px; line-height:1.5; color:var(--ink); display:block; }
.w-recent span{ font-family:'Space Grotesk',monospace; font-size:16px; color:var(--muted); letter-spacing:.06em; }
.w-recent a:hover b{ color:var(--shu); }
.w-list{ list-style:none; margin:0; padding:0; }
.w-list li{ border-bottom:1px dashed var(--line); }
.w-list li:last-child{ border-bottom:none; }
.w-list a{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 2px; text-decoration:none; color:var(--ink); font-size:16px; font-weight:500; }
.w-list a:hover{ color:var(--shu); }
.w-list .n{ font-family:'Space Grotesk',monospace; font-size:16px; color:var(--muted); background:var(--kami2); border-radius:999px; padding:2px 9px; }
.w-cta{ background:linear-gradient(160deg,#2A6FB5,var(--ai2)); border:none; color:#F1F4EF; }
.w-cta .widget__ttl{ color:#fff; border-color:var(--yama2); }
.w-cta p{ font-size:16px; line-height:1.85; color:rgba(241,244,239,.82); margin:0 0 16px; }
.w-cta a{ display:inline-block; background:var(--yama2); color:var(--ai2); font-weight:700; font-size:16px; padding:12px 28px; border-radius:999px; text-decoration:none; }
.w-cta a:hover{ background:#fff; }

/* ============ ブログ/お知らせ 一覧（archive）カード ============ */
.p-news{ max-width:940px; }
.p-newsgrid{ display:grid; gap:28px; }
.p-card{ display:grid; grid-template-columns:320px 1fr; text-decoration:none; color:inherit; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; transition:box-shadow .25s, transform .25s; }
.p-card:hover{ box-shadow:0 24px 46px -26px rgba(34,48,74,.5); transform:translateY(-3px); }
.p-card__ph{ overflow:hidden; background:var(--ai2); }
.p-card__ph img{ width:100%; height:100%; min-height:188px; object-fit:cover; display:block; transition:transform .5s; }
.p-card:hover .p-card__ph img{ transform:scale(1.05); }
.p-card__bd{ padding:26px 30px; display:flex; flex-direction:column; gap:10px; }
.p-card__meta{ display:flex; align-items:center; gap:12px; }
.p-card__date{ font-family:'Space Grotesk',monospace; font-size:16px; letter-spacing:.06em; color:var(--muted); }
.p-card__cat{ font-size:16px; font-weight:700; letter-spacing:.08em; padding:4px 12px; border-radius:999px; color:#fff; background:var(--ai); }  /* 既定色。is-*が上書き */
.p-card__ttl{ font-family:'Shippori Mincho',serif; font-size:clamp(18px,2.3vw,22px); font-weight:700; line-height:1.55; color:var(--ink); margin:0; }
.p-card__ex{ font-size:16px; line-height:1.9; color:var(--body); margin:0; }
.p-card__more{ margin-top:4px; font-family:'Space Grotesk',monospace; font-size:16px; letter-spacing:.14em; color:var(--shu); font-weight:700; }
.p-newsnote{ font-size:16px; color:var(--muted); margin:30px 0 0; }

/* ============ カテゴリ色（post-hero/p-card 共通の .is-*）============ */
.post-hero__cat.is-event,.p-card__cat.is-event{ background:var(--shu); }
.post-hero__cat.is-guide,.p-card__cat.is-guide{ background:var(--ai); }
.post-hero__cat.is-trail,.p-card__cat.is-trail{ background:#5f8a5a; }
.post-hero__cat.is-map,.p-card__cat.is-map{ background:var(--yama); color:var(--ai2); }
.post-hero__cat.is-info,.p-card__cat.is-info{ background:#7c7464; }

/* ============ レスポンシブ（モバイルは1列）============ */
@media(max-width:900px){ .post-wrap{ grid-template-columns:1fr; gap:40px; padding:44px 22px 72px; } .post-side{ position:static; } }
@media(max-width:680px){
  .post-hero{ padding:84px 0 52px; }
  .p-card{ grid-template-columns:1fr; }
  .p-card__ph img{ min-height:0; aspect-ratio:1200/630; }
  .p-card__bd{ padding:22px; }
  /* スマホの読みやすさ：文字はやや小さく、行間は詰めすぎない。見出し前後の余白は圧縮 */
  .post-body{ font-size:16px; line-height:1.98; }
  .post-body .post-lead{ font-size:16.5px; padding-bottom:1.3em; margin-bottom:1.9em; }
  .post-body h2{ margin:2.6em 0 .9em; }
  .post-body h3{ margin:2.1em 0 .8em; }
  .post-body li{ padding-left:1.5em; }
  .post-body blockquote{ padding:16px 18px; }
  .post-body .cbox{ padding:18px 20px 6px; }
  .post-toc{ padding:18px 20px 20px; margin-bottom:32px; }
  .post-toc__list li.is-sub{ padding-left:2.6em; }
  .post-toc__list li.is-sub::before{ left:1.2em; }
}

/* ブログの部品を暗い地に合わせる */
.page-hero__bg::after{background:linear-gradient(105deg,rgba(23,24,26,.94),rgba(23,24,26,.82) 50%,rgba(23,24,26,.94))}
.post-hero__bg::after{background:linear-gradient(160deg,rgba(23,24,26,.78),rgba(23,24,26,.94))}
.post-hero::after{background:var(--accent)}
.post-body,.post-main,.p-news{color:var(--text)}
.post-body a,.p-news a{color:var(--accent)}
.post-body mark,.post-body .mk{background:linear-gradient(transparent 60%,rgba(138,180,248,.35) 60%);color:var(--text)}
.post-body blockquote{border-color:var(--line);color:var(--muted)}
.widget,.post-toc,.post-author,.p-card,.post-body .cbox{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)}
.post-body .cbox *{color:inherit}
.p-card__ttl,.p-card__ttl a{color:var(--text)}
.p-card__ex,.p-card__date,.post-hero__date{color:var(--muted)}
.post-body{--mark:rgba(138,180,248,.38)}
.w-cta a{background:var(--accent)!important;color:var(--accent-ink)!important}
.w-cta p{color:var(--muted)!important}
.post-hero h1,.post-hero__ttl,.post-body h2,.post-body h3,.p-card__ttl,.widget__ttl,.post-toc,.post-author,.page-hero h1{font-family:var(--f-jp)!important}
.p-card__ph img{object-position:left center!important}
.widget input[type=search],.widget input[type=text]{background:var(--bg);color:var(--text);border:1px solid var(--line)}
