/* bousai-dx.jp 独自の追加（土台は style.css / pixel.css）。変数の名前は style.css のものを使う。 */
.small { font-size: .875rem; line-height: 1.7; color: var(--muted); }
.lead { font-size: 1.0625rem; line-height: 1.9; }

/* ホームの入口カード（準備中のものは、リンクなしで薄く表示） */
.entry > .hub { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--s4); }
.hub-card { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); min-width: 0; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--bevel-raised); }
.hub-card h3 { margin: 0; padding: 0 var(--s1); font-size: 1.0625rem; line-height: 1.5; }
.hub-card h3 a, .hub-card h3 a:visited { color: var(--text); text-decoration: none; }
.hub-card h3 a::after { content: ""; position: absolute; inset: 0; }
.hub-card:hover h3, .hub-card:focus-within h3 { background: var(--accent); color: var(--on-accent); }
.hub-card:hover h3 a, .hub-card:focus-within h3 a { color: var(--on-accent); }
.hub-card p { margin: 0; line-height: 1.7; }
.hub-card.is-soon { box-shadow: none; background: var(--surface-2); color: var(--muted); }
.hub-card.is-soon h3 { color: var(--muted); }
.badge { display: inline-block; padding: 0 var(--s2); font-family: var(--font-mono); font-size: .8125rem; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); }
.badge.is-live { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* お知らせ */
.news { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s4); }
.news dt { font-family: var(--font-mono); color: var(--muted); }
.news dd { margin: 0; }
@media (max-width: 30rem) { .news { grid-template-columns: 1fr; } .news dd { margin-bottom: var(--s2); } }

/* フォーム */
.site-form { display: grid; gap: var(--s4); padding: var(--s4); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--bevel-raised); }
.site-form label { display: grid; gap: var(--s1); font-size: .9375rem; font-weight: 700; }
.site-form label .small { font-weight: 400; }
.site-form input[type="text"], .site-form select, .site-form textarea { width: 100%; max-width: 100%; padding: var(--s2) var(--s3); font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--bevel-sunken); border-radius: 0; }
.site-form textarea { min-height: 9rem; line-height: 1.7; }
.site-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* bots fill this in; people never see it */
.site-form .is-err { color: var(--bq-ng, #a8231b); font-weight: 700; }
.site-form .is-ok { color: var(--bq-ok, #1b6e36); font-weight: 700; }
#contact-status { min-height: 1.7em; margin: 0; }
.site-foot .small { margin: 0; }

/* 広告の枠（テーマの .ad-slot に、AdSense の <ins> を入れる） */
.ad-slot .adsbygoogle { display: block; }
.entry .ad-slot, .kh-body > .ad-slot { clear: both; }

/* ホーム最上部のドット絵「地震ナマズ・津波スライム・雷ぐもが あらわれた！」（art\make_home_hero.py で描いた絵）。
   ゲームボーイと同じ横160ドットの白黒。背景は透明で、ページの地にキャラや建物だけが浮かぶ（まわりの白いふちで、暗い配色でも見える）。
   幅は 640px（ドット1つがぴったり 4px。本文の幅 42rem に収まる）。狭い画面では本文の幅いっぱいに縮む。
   絵の下に、RPG のメッセージ枠をつなげる（配色はページに合わせる） */
.entry > figure.rpg-scene { margin: var(--s5) auto; padding: 0; max-width: min(640px, var(--measure)); background: none; border: 0; box-shadow: none; }
.rpg-scene img { display: block; width: 100%; height: auto; margin: 0; image-rendering: pixelated; }
.rpg-msg { margin: var(--s2) 0 0; padding: var(--s2) var(--s4); background: var(--surface); color: var(--text); border: 4px double var(--border-strong); border-radius: 4px; font-size: 1.0625rem; font-weight: 700; line-height: 1.9; letter-spacing: .04em; }
.rpg-msg p { margin: 0; }
.rpg-msg .nb { white-space: nowrap; }
.rpg-msg p:first-child::before { content: "▶"; margin-right: .5em; color: #c98500; }
.rpg-cursor { display: inline-block; margin-left: .6em; color: #c98500; animation: rpg-blink 1s steps(1) infinite; }
@keyframes rpg-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rpg-cursor { animation: none; } }
@media (max-width: 30rem) { .rpg-msg { padding: var(--s1) var(--s3); font-size: 1rem; } }
