/* Site template - base stylesheet (made from the ONE PIECE toshidensetsu design, 2026-11-18).
   One stylesheet for all three trees (PC / iphone / m). ASCII only (pages are Shift_JIS).
   Every colour is a variable below. A site theme overrides some of them; nothing else changes per site.
   Do not edit this file for one site - put the site's colours in sites/<name>.json ("theme"). */
:root{
  /* --- the colours a site theme normally changes --- */
  --main:#0e1530;        /* dark brand colour: header, footer, titles, buttons */
  --main2:#1b2550;       /* partner of --main for the category-bar gradient */
  --header-bg:var(--main); /* band behind the header image: set it to the edge colour of img/header.jpg when that is not --main */
  --accent:#c8102e;      /* accent: heading bars, bullets, link hover */
  --highlight:#f0b429;   /* site name on the dark header, category bars, focus ring */
  --bg:#f4f1ea;          /* page background */
  --link:#1c4f9c;        /* text links */
  --soft:#f1f3f8;        /* heading background inside the article */
  --marker:#ffe46b;      /* highlighter under emphasised text */
  /* --- neutrals: usually left as they are --- */
  --ink:#1c2230; --muted:#6a7080; --strong:#111; --card:#ffffff; --line:#e3dfd3;
  --quote-bg:#faf9f5; --quote-ink:#444;
  --box-bg:#f7f6f2; --box-line:#d8d5cb; --box-dash:#dcd9cf;
  --next-bg:#fbfaf6; --next-line:#eeeade; --row-line:#efece2;
  --card-hover-line:#c9c4b4; --thumb-bg:#eceae3; --chip-bg:#f6f4ee;
  --foot-ink:#c9cde0; --foot-muted:#9aa0bb;
  /* --- text header (the low neon band used when the site config has "header") --- */
  --hd-bg:#07080d; --hd-neon:#ff3355; --hd-neon-ink:#ff6b80; --hd-gold:#ffd45e; --hd-sub:#a9b0cc;
  /* art shown on the right of the band: an image that already exists on the site, set per site by build_site.py (header.art) */
  --hd-art:none; --hd-art-w:0px; --hd-art-size:auto; --hd-art-pos:right top;
  --hd-art-w-sp:0px; --hd-art-size-sp:auto; --hd-art-pos-sp:right top;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","BIZ UDPGothic",Meiryo,sans-serif;
  font-size:17px; line-height:2; letter-spacing:.02em; text-align:left;
  overflow-wrap:anywhere; word-break:normal; -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; border:0; vertical-align:bottom}
video{max-width:100%}
a{color:var(--link); text-underline-offset:3px}
a:hover{color:var(--accent)}
h1,h2,h3,h4{margin:0; font-weight:700}
ul,ol{margin:0; padding:0}
p{margin:0}
table{border-collapse:collapse; max-width:100%; margin:16px 0; font-size:15px; line-height:1.7}
th,td{border:1px solid var(--line); padding:8px 12px; background:#fff}
th{background:var(--soft)}
blockquote{margin:16px 0; padding:12px 16px; border-left:4px solid var(--line); background:var(--quote-bg); color:var(--quote-ink)}

/* ---------- header ---------- */
#wrapper{min-height:100vh; display:flex; flex-direction:column}
header{background:var(--header-bg)}
#top{background:var(--main); border-bottom:1px solid rgba(255,255,255,.08)}
#top .inner{max-width:1100px; margin:0 auto; padding:7px 16px; text-align:center}
#top h1{font-size:12px; font-weight:600; letter-spacing:.16em; line-height:1.6}
#top h1 a{color:var(--highlight); text-decoration:none}
#headerbox{max-width:1100px; margin:0 auto; line-height:0}
#headerbox img{display:block; width:100%; height:auto}
#header{display:none}
/* text header: a low band made of text + CSS in place of the header image (owner 2026-11-18: the image header was too tall;
   chosen design "C1" = neon title on the left, the site's characters crisp on the right, only quiet motion).
   build_site.py puts <a class="site-head"> into #headerbox.hb-text. No <img>: the art is a CSS background (--hd-art). */
#headerbox.hb-text{max-width:none; line-height:1.3; position:relative; overflow:hidden; background:var(--hd-bg)}
#headerbox.hb-text{background:radial-gradient(38% 170% at 80% 40%,color-mix(in srgb,var(--accent) 38%,transparent),transparent 70%),var(--hd-bg)}
#headerbox.hb-text::before{content:""; position:absolute; inset:0; z-index:3; pointer-events:none; background:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px) 0 0/100% 4px}
#headerbox.hb-text::after{content:""; position:absolute; left:0; right:0; bottom:0; z-index:4; height:2px; background:linear-gradient(90deg,transparent,var(--hd-neon) 20%,var(--highlight) 50%,var(--hd-neon) 80%,transparent); background-size:200% 100%; animation:hdShine 4s linear infinite}
.site-head{position:relative; display:grid; grid-template-columns:auto auto 1fr; grid-template-areas:"tag title ." ". sub ."; align-items:center; align-content:center; column-gap:18px; row-gap:2px; max-width:1100px; height:92px; margin:0 auto; padding:0 16px; color:#fff; text-decoration:none}
.site-head:hover{color:#fff}
.site-head::after{content:""; position:absolute; z-index:0; right:0; top:0; bottom:0; width:var(--hd-art-w); background:var(--hd-art) var(--hd-art-pos)/var(--hd-art-size) no-repeat; -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 15%,#000 95%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 15%,#000 95%,transparent 100%); animation:hdDrift 16s ease-in-out infinite alternate}
.sh-tag,.sh-title,.sh-sub{position:relative; z-index:1}
.sh-tag{grid-area:tag; padding:4px 10px; border:1.5px solid var(--hd-neon); border-radius:4px; color:var(--hd-neon-ink); font-size:12px; font-weight:800; letter-spacing:.2em; line-height:1.6; background:rgba(7,8,13,.55); animation:hdFlick 4s steps(1) infinite}
.sh-tag{box-shadow:0 0 10px color-mix(in srgb,var(--hd-neon) 60%,transparent),inset 0 0 8px color-mix(in srgb,var(--hd-neon) 35%,transparent)}
.sh-title{grid-area:title; font-size:40px; font-weight:900; line-height:1.15; letter-spacing:.06em; white-space:nowrap; text-shadow:0 0 12px rgba(255,255,255,.35),0 2px 6px rgba(0,0,0,.8)}
.sh-title b{margin-left:.12em; font-weight:900; color:var(--hd-gold); text-shadow:0 2px 6px rgba(0,0,0,.8)}
.sh-title b{text-shadow:0 0 6px color-mix(in srgb,var(--highlight) 90%,transparent),0 0 22px color-mix(in srgb,var(--highlight) 55%,transparent),0 0 46px color-mix(in srgb,var(--accent) 65%,transparent),0 2px 6px rgba(0,0,0,.8)}
.sh-sub{grid-area:sub; font-size:11px; letter-spacing:.24em; color:var(--hd-sub); white-space:nowrap; text-shadow:0 1px 4px rgba(0,0,0,.9)}
@keyframes hdShine{0%{background-position:120% 0}100%{background-position:-100% 0}}
@keyframes hdFlick{0%,100%{opacity:1}91%{opacity:.35}93%{opacity:1}95%{opacity:.5}96%{opacity:1}}
@keyframes hdDrift{from{transform:translateX(0)}to{transform:translateX(-10px)}}
@media (prefers-reduced-motion:reduce){.sh-tag,#headerbox.hb-text::after,.site-head::after{animation:none}}
@media (max-width:1000px){
  .site-head::after{width:min(var(--hd-art-w),44vw)}
  .sh-title{font-size:34px}
}
@media (max-width:640px){
  .site-head{grid-template-columns:auto 1fr; grid-template-areas:"tag title"; column-gap:8px; height:56px; padding:0 14px}
  .sh-sub{display:none}
  .sh-tag{font-size:9.5px; padding:3px 6px; letter-spacing:.1em}
  .sh-title{font-size:22px; letter-spacing:.02em}
  .site-head::after{width:var(--hd-art-w-sp); background-position:var(--hd-art-pos-sp); background-size:var(--hd-art-size-sp); -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 30%); mask-image:linear-gradient(90deg,transparent 0,#000 30%)}
}
#siteNavibox{background:var(--bg)}
#siteNavi{max-width:1100px; margin:0 auto; padding:10px 16px 0; font-size:12.5px; line-height:1.6; color:var(--muted)}
#siteNavi a{color:var(--muted)}

/* ---------- layout ---------- */
#column2,#column1{width:100%; max-width:1100px; margin:0 auto; padding:0 16px; flex:1}
#layoutbox{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:36px; align-items:start; padding:20px 0 56px}
#column1 #layoutbox{grid-template-columns:minmax(0,1fr)}
#main{min-width:0; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:30px 34px 34px; box-shadow:0 1px 2px rgba(20,25,45,.04)}
#menu{min-width:0; font-size:14px; line-height:1.6}
/* some packages put the after-article block (#space2) next to #main instead of inside it (phone pages): show it as its own card,
   and keep the reading order article -> related/ranking -> sidebar on one-column layouts */
#layoutbox>#space2,#layoutbox>.freespace_sp{min-width:0; margin-top:0; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:6px 34px 30px; box-shadow:0 1px 2px rgba(20,25,45,.04); order:1}
#layoutbox>#menu{order:2}
#layoutbox>#pagetop{order:3}

/* ---------- article ---------- */
article>h2, article>h3{
  font-size:26px; line-height:1.45; letter-spacing:.01em; color:var(--main);
  padding:0 0 16px; margin:0 0 22px; border-bottom:3px solid var(--main); position:relative;
}
article>h2::after, article>h3::after{content:""; position:absolute; left:0; bottom:-3px; width:88px; height:3px; background:var(--accent)}
article>h2 span, article>h3 span{display:block}
/* date line under the article title (only on sites whose config has "article_dates") */
.post-date{margin:-10px 0 18px; font-size:12.5px; line-height:1.6; color:var(--muted); text-align:right}
#text1{min-width:0}
#text1 h3{
  margin:46px 0 20px; padding:13px 16px 13px 18px; font-size:20px; line-height:1.5; color:var(--main);
  background:var(--soft); border-left:5px solid var(--accent); border-radius:0 8px 8px 0;
}
#text1 h3 span{display:block}
#text1 h4{margin:30px 0 12px; font-size:18px; line-height:1.5; padding-left:12px; border-left:4px solid var(--highlight)}
#text1 b,#text1 strong{font-weight:700; color:var(--strong)}
.txt-img,.img-center{display:block; text-align:center; margin:6px 0}
#text1 .txt-img img,#text1 .img-center img{border-radius:8px}
.txt-img img[align="right"]{float:right; margin:4px 0 12px 20px; max-width:46%; border-radius:8px}
#text1::after{content:""; display:block; clear:both}
/* video embeds only. NEVER write a bare "iframe" selector: AdSense shows each ad in an iframe inside <ins class="adsbygoogle">,
   and a rule that reaches it squeezes or cuts the ad (this happened on 2026-11-18: in-article ads were forced to 16:9). */
#text1 iframe[src*="youtube.com"],#text1 iframe[src*="youtu.be"]{display:block; width:100%; max-width:560px; height:auto; aspect-ratio:16/9; margin:12px auto 0; border:0; border-radius:8px}
.ylw{background:linear-gradient(transparent 58%,var(--marker) 58%); font-weight:700}
.lbg{color:var(--muted); letter-spacing:.08em}
#text1 ul,#text1 ol{padding-left:1.4em}

/* key-point box */
.ylwbox{margin:22px 0; padding:16px 20px; background:var(--box-bg); border:1px solid var(--box-line); border-radius:10px}
.ylwbox ul{list-style:none; padding:0 !important}
.ylwbox li{position:relative; padding:5px 0 5px 20px; line-height:1.75}
.ylwbox li::before{content:""; position:absolute; left:2px; top:1em; width:8px; height:8px; border-radius:50%; background:var(--accent)}
.ylwbox li+li{border-top:1px dashed var(--box-dash)}
.ylwbox p{line-height:1.6}

/* next-to-read box */
.nextbox{margin:26px 0; padding:14px 18px 12px; background:var(--next-bg); border:1px solid var(--line); border-top:3px solid var(--highlight); border-radius:0 0 10px 10px}
.nextbox-title{font-size:14px; font-weight:700; color:var(--main); letter-spacing:.06em; line-height:1.6; margin-bottom:4px}
.nextbox ul{list-style:none; padding:0 !important}
.nextbox li{position:relative; padding:6px 0 6px 18px; font-size:15px; line-height:1.65; border-top:1px solid var(--next-line)}
.nextbox li:first-child{border-top:0}
.nextbox li::before{content:""; position:absolute; left:2px; top:.95em; width:7px; height:7px; border-right:2px solid var(--accent); border-top:2px solid var(--accent); transform:rotate(45deg)}
.nextbox a{color:var(--ink); text-decoration:none; font-weight:600}
.nextbox a:hover{color:var(--accent); text-decoration:underline}

/* sitemap page (heading text = "saito mappu" in katakana, written as escapes to keep this file ASCII) */
#sitemaps::before{content:"\30B5\30A4\30C8\30DE\30C3\30D7"; display:block; font-size:26px; font-weight:700; line-height:1.45; color:var(--main); padding:0 0 16px; margin:0 0 14px; border-bottom:3px solid var(--main)}
#sitemaps ul{list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px}
#sitemaps ul ul{display:block; padding-left:16px}
#sitemaps li{border-bottom:1px solid var(--row-line)}
#sitemaps a{position:relative; display:block; padding:9px 4px 9px 20px; font-size:15px; line-height:1.6; color:var(--ink); text-decoration:none}
#sitemaps a::before{content:""; position:absolute; left:3px; top:1.1em; width:7px; height:7px; border-right:2px solid var(--accent); border-top:2px solid var(--accent); transform:rotate(45deg)}
#sitemaps a:hover{color:var(--accent); text-decoration:underline}

/* ads: AdSense decides the size and position of <ins class="adsbygoogle"> and of everything inside it.
   No rule may match ins.adsbygoogle or the iframes inside it (no width/max-width/height/aspect-ratio/margin/overflow).
   A max-width here made the in-article ad box 32px narrower than the ad on phones (2026-11-18), so it was removed.
   "node view.mjs <site>.json ads" compares the ads with the original package on the real domain. */

/* ---------- index cards (top page, ranking) ---------- */
h3.idx-cat, #text1 h3.idx-cat{
  margin:38px 0 14px; padding:11px 16px; font-size:18px; line-height:1.4; color:#fff;
  background:linear-gradient(90deg,var(--main),var(--main2)); border-left:5px solid var(--highlight); border-radius:0 8px 8px 0;
}
.idx-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0 8px}
.idx-card{
  display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; align-items:center;
  padding:8px; background:#fff; border:1px solid var(--line); border-radius:10px;
  color:var(--ink); text-decoration:none; transition:box-shadow .15s,border-color .15s,transform .15s;
}
.idx-card:hover{border-color:var(--card-hover-line); box-shadow:0 4px 14px rgba(20,25,45,.10); transform:translateY(-1px); color:var(--ink)}
.idx-card img{width:110px; height:74px; object-fit:cover; border-radius:6px; background:var(--thumb-bg); display:block}
.idx-t{font-size:14px; font-weight:700; line-height:1.5; letter-spacing:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden}
/* the same cards in the newer packages' markup (mz-*): a.mz-gcard inside div.mz-grid; a.mz-card = one card per row;
   div.mz-next = the next-to-read box (heading div.mz-next-h + cards) */
.mz-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0 8px}
.mz-gcard,.mz-card{display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; align-items:center; padding:8px; background:#fff; border:1px solid var(--line); border-radius:10px; color:var(--ink); text-decoration:none; transition:box-shadow .15s,border-color .15s,transform .15s}
.mz-gcard:hover,.mz-card:hover{border-color:var(--card-hover-line); box-shadow:0 4px 14px rgba(20,25,45,.10); transform:translateY(-1px); color:var(--ink)}
.mz-gcard img,.mz-card img{width:110px; height:74px; object-fit:cover; border-radius:6px; background:var(--thumb-bg); display:block}
.mz-gcard>span,.mz-card>span{font-size:14px; font-weight:700; line-height:1.5; letter-spacing:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden}
.mz-card{margin:8px 0}
.mz-next{margin:26px 0; padding:14px 18px 12px; background:var(--next-bg); border:1px solid var(--line); border-top:3px solid var(--highlight); border-radius:0 0 10px 10px}
.mz-next-h{font-size:14px; font-weight:700; color:var(--main); letter-spacing:.06em; line-height:1.6; margin-bottom:4px}
/* related articles right after the article (same category) */
.rel-grid{margin:14px 0 26px}
/* full article list: first 10 cards, the rest opens with the "more" button (checkbox + label, no script) */
.more-toggle{position:absolute; width:1px; height:1px; margin:0; opacity:0; pointer-events:none}
.more-toggle:not(:checked) + div > a:nth-child(n+11){display:none}
.more-btn{display:block; max-width:340px; margin:16px auto 6px; padding:12px 18px; text-align:center; font-size:14.5px; font-weight:700; line-height:1.5; letter-spacing:.04em; color:var(--main); background:#fff; border:2px solid var(--main); border-radius:999px; cursor:pointer; transition:background .15s,color .15s}
.more-btn::after{content:""; display:inline-block; width:8px; height:8px; margin:0 0 3px 10px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg)}
.more-btn:hover{background:var(--main); color:#fff}
.more-toggle:checked ~ .more-btn{display:none}
.more-toggle:focus-visible ~ .more-btn{outline:3px solid var(--highlight); outline-offset:2px}
#space2,.freespace_sp{margin-top:36px; padding-top:8px; border-top:1px solid var(--line)}
#space2>h3,.freespace_sp>h3{margin:26px 0 14px; padding:11px 16px; font-size:18px; line-height:1.4; color:var(--main); background:var(--soft); border-left:5px solid var(--accent); border-radius:0 8px 8px 0}
#space2>a,.freespace_sp>a{font-size:14px}

/* ---------- sidebar ---------- */
#pickupentry,.menuitem{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; margin-bottom:20px}
#pickupentry .title,.menuitem h4{font-size:15px; font-weight:700; color:var(--main); line-height:1.5; padding-bottom:10px; margin-bottom:6px; border-bottom:2px solid var(--main)}
#pickup_list2{list-style:none; counter-reset:rank}
#pickup_list2 li{counter-increment:rank; border-top:1px solid var(--row-line)}
#pickup_list2 li:first-child{border-top:0}
#pickup_list2 a{position:relative; display:grid; grid-template-columns:96px minmax(0,1fr); gap:12px; align-items:center; padding:10px 0; color:var(--ink); text-decoration:none; font-size:13.5px; font-weight:700; line-height:1.5}
#pickup_list2 a:hover{color:var(--accent)}
#pickup_list2 .thumb{display:block; position:relative; line-height:0}
#pickup_list2 .thumb img{width:96px; height:64px; object-fit:cover; border-radius:6px; background:var(--thumb-bg)}
#pickup_list2 .thumb::before{content:counter(rank); position:absolute; left:-4px; top:-4px; min-width:20px; height:20px; padding:0 4px; border-radius:10px; background:var(--main); color:#fff; font-size:11px; font-weight:700; line-height:20px; text-align:center; letter-spacing:0}
#pickup_list2 li:first-child .thumb::before{background:var(--accent)}
.menubox{margin:0}
#menu1{list-style:none; display:flex; flex-wrap:wrap; gap:6px}
#menu1 li{margin:0}
#menu1 li.menu-cat{flex:0 0 100%; margin-top:14px; padding-left:8px; border-left:3px solid var(--highlight); font-size:12.5px; font-weight:700; color:var(--main); line-height:1.5}
#menu1 li.menu-cat:first-child{margin-top:4px}
#menu1 a{display:block; padding:3px 10px; font-size:12.5px; line-height:1.6; color:var(--ink); text-decoration:none; background:var(--chip-bg); border:1px solid var(--line); border-radius:999px}
#menu1 a:hover{background:var(--main); border-color:var(--main); color:#fff}
/* the same menu in the newer packages' markup: div.mz-side-cat (category name, may link to the category page) + ul.mz-side-list2 */
.mz-side-cat{margin:14px 0 6px; padding-left:8px; border-left:3px solid var(--highlight); font-size:12.5px; font-weight:700; color:var(--main); line-height:1.5}
.mz-side-cat:first-child{margin-top:4px}
.mz-side-cat a{color:inherit; text-decoration:none}
.mz-side-cat a:hover{color:var(--accent); text-decoration:underline}
.mz-side-list2{list-style:none; display:flex; flex-wrap:wrap; gap:6px}
.mz-side-list2 li{margin:0}
.mz-side-list2 a{display:block; padding:3px 10px; font-size:12.5px; line-height:1.6; color:var(--ink); text-decoration:none; background:var(--chip-bg); border:1px solid var(--line); border-radius:999px}
.mz-side-list2 a:hover{background:var(--main); border-color:var(--main); color:#fff}
/* pickup card: follows the scroll on wide screens (the page's own sticky.min.js moves it) */
.sticky{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; max-height:calc(100vh - 32px); overflow-y:auto; box-shadow:0 1px 2px rgba(20,25,45,.04)}
#space4{display:grid; grid-template-columns:72px minmax(0,1fr); gap:7px 12px; align-items:center; text-align:left !important; padding:0; overflow:visible}
#space4 br{display:none}
#space4>p{display:none}
#space4>span{grid-column:1/-1; font-size:14px; font-weight:700; line-height:1.5; color:var(--main) !important; padding-bottom:9px; margin-bottom:3px; border-bottom:2px solid var(--main)}
#space4>img{width:72px !important; height:48px; object-fit:cover; border-radius:6px; background:var(--thumb-bg); display:block}
#space4>a{font-size:13px; font-weight:700; line-height:1.45; color:var(--ink); text-decoration:none}
#space4>a:hover{color:var(--accent)}
#space4>.mz-pop-h{grid-column:1/-1; font-size:14px; font-weight:700; line-height:1.5; color:var(--main); padding-bottom:9px; margin-bottom:3px; border-bottom:2px solid var(--main)}

/* ---------- page top / footer ---------- */
#pagetop{margin:0}
#pagetop a{position:fixed; right:16px; bottom:76px; z-index:50; width:44px; height:44px; border-radius:50%; background:var(--main); color:#fff; font-size:0; text-decoration:none; box-shadow:0 4px 12px rgba(0,0,0,.25); opacity:.9}
#pagetop a::before{content:""; position:absolute; left:50%; top:54%; width:11px; height:11px; border-left:3px solid #fff; border-top:3px solid #fff; transform:translate(-50%,-50%) rotate(45deg)}
#footer{background:var(--main); color:var(--foot-ink); font-size:12.5px; line-height:1.8; text-align:center}
#footer .inner{max-width:1100px; margin:0 auto; padding:22px 16px 26px}
#footer a{color:#fff}
#footer span{display:inline-block; margin:0 10px 6px}
#footer small{display:block; font-size:11.5px; color:var(--foot-muted)}

/* ---------- narrow screens ---------- */
@media (max-width:900px){
  #layoutbox{grid-template-columns:minmax(0,1fr); gap:28px}
  .sticky{position:static !important; width:auto !important; left:auto !important; top:auto !important; max-height:none}
}
@media (max-width:640px){
  body{font-size:16.5px; line-height:1.95}
  #column2,#column1{padding:0}
  #siteNavi{padding:8px 14px 0; font-size:11.5px}
  #layoutbox{padding:10px 0 40px; gap:22px}
  #main{border-radius:0; border-left:0; border-right:0; padding:20px 16px 26px; box-shadow:none}
  #layoutbox>#space2,#layoutbox>.freespace_sp{border-radius:0; border-left:0; border-right:0; padding:4px 16px 26px; box-shadow:none}
  article>h2, article>h3{font-size:21px; padding-bottom:12px; margin-bottom:16px}
  .post-date{margin:-6px 0 14px; font-size:12px}
  #text1 h3{font-size:18px; margin:38px -16px 16px; padding:12px 16px; border-radius:0}
  h3.idx-cat, #text1 h3.idx-cat{margin:30px -16px 12px; border-radius:0; font-size:16.5px}
  #space2>h3,.freespace_sp>h3{margin:24px -16px 12px; border-radius:0; font-size:16.5px}
  .idx-grid{grid-template-columns:minmax(0,1fr); gap:8px}
  .idx-card{grid-template-columns:104px minmax(0,1fr); gap:10px; padding:7px}
  .idx-card img{width:104px; height:70px}
  .mz-grid{grid-template-columns:minmax(0,1fr); gap:8px}
  .mz-gcard,.mz-card{grid-template-columns:104px minmax(0,1fr); gap:10px; padding:7px}
  .mz-gcard img,.mz-card img{width:104px; height:70px}
  .mz-next{padding:12px 14px 10px}
  .txt-img img[align="right"]{float:none; display:block; margin:0 auto 12px; max-width:100%}
  #sitemaps::before{font-size:21px; padding-bottom:12px}
  #sitemaps ul{grid-template-columns:minmax(0,1fr)}
  .ylwbox{padding:14px 14px}
  .nextbox{padding:12px 14px 10px}
  #menu{padding:0 14px}
  #pagetop a{right:10px; bottom:72px; width:36px; height:36px; opacity:.72}
  #pagetop a::before{width:9px; height:9px}
}
@media print{ #menu,#pagetop,ins.adsbygoogle{display:none} #layoutbox{display:block} }

/* theme: pokemon */
:root{--main:#170d2e;--main2:#2f1d5a;--accent:#7a3fc8;--highlight:#ffcb05;--bg:#f3f0f8;--soft:#efe9f9}

/* parts "mz2": markup that first appeared in the packages of 2026-11-19 (Pokemon, Shin-chan).
   h3.mz-cath = a category heading on the top page (same look as h3.idx-cat);  p.mz-cath = a small category label above a list;
   div.mz-tgrid = a grid of a.mz-card (same grid as div.mz-grid).  Added only for sites whose config lists "parts": ["mz2"],
   so the stylesheets of the other sites do not change. ASCII only. No images. */
h3.mz-cath, #text1 h3.mz-cath{
  margin:38px 0 14px; padding:11px 16px; font-size:18px; line-height:1.4; color:#fff;
  background:linear-gradient(90deg,var(--main),var(--main2)); border-left:5px solid var(--highlight); border-radius:0 8px 8px 0;
}
h3.mz-cath span, #text1 h3.mz-cath span{color:#fff}
p.mz-cath{margin:24px 0 6px; padding:6px 12px; font-size:15.5px; font-weight:700; line-height:1.5; color:var(--main); background:var(--soft); border-left:5px solid var(--highlight); border-radius:0 6px 6px 0}
.mz-tgrid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0 8px}
.mz-tgrid .mz-card{margin:0}
/* phone pages of these packages put the article list at the very end of the page, straight inside #column1
   (a heading div.mz-pop-h + div.mz-grid, outside every card): give it the look of the after-article headings and side gutters */
#column1>.mz-pop-h{margin:26px 0 12px; padding:11px 16px; font-size:16.5px; font-weight:700; line-height:1.4; color:var(--main); background:var(--soft); border-left:5px solid var(--accent)}
#column1>.mz-grid{margin:0; padding:0 16px 8px}
#column1>.more-btn{margin-bottom:28px}
@media (max-width:640px){
  h3.mz-cath, #text1 h3.mz-cath{margin:30px -16px 12px; border-radius:0; font-size:16.5px}
  p.mz-cath{font-size:15px}
  .mz-tgrid{grid-template-columns:minmax(0,1fr); gap:8px}
}

/* header art: pokemon */
:root{--hd-art:url(./img/entry2.jpg?v=20261119b);--hd-art-w:132px;--hd-art-size:118px auto;--hd-art-pos:7px 9px;--hd-art-w-sp:62px;--hd-art-size-sp:56px auto;--hd-art-pos-sp:3px 4px}

/* header style "pk-moon" (Pokemon): Lavender Town at night. Deep purple sky, slow ghost fog, and a full moon at the
   right with Gengar inside it (the art is an image that is already on the server; its white background becomes the moon).
   ASCII only. No image is loaded here: the art comes from the variable --hd-art made by the site setting header.art. */
#headerbox.hb-text{background:linear-gradient(#0a0514,#170d2e 55%,#2a1850)}
#headerbox.hb-text::before{z-index:0; background:radial-gradient(34% 120% at 12% 118%,rgba(176,128,255,.34),transparent 70%),radial-gradient(30% 110% at 46% 126%,rgba(120,84,230,.30),transparent 70%),radial-gradient(36% 120% at 86% 122%,rgba(196,150,255,.26),transparent 70%); background-size:160% 100%; animation:pkFog 20s ease-in-out infinite alternate}
#headerbox.hb-text::after{z-index:1; height:2px; background:linear-gradient(90deg,transparent,#8f6bff 25%,#ff5a7a 50%,#8f6bff 75%,transparent); animation:none}
.site-head{z-index:2}
.site-head::after{content:none}
.sh-tag{border-color:#ff5a7a; color:#ff9db0; background:rgba(10,5,20,.6); box-shadow:0 0 10px rgba(255,90,122,.45),inset 0 0 8px rgba(255,90,122,.25)}
.sh-title{text-shadow:0 0 14px rgba(170,130,255,.65),0 2px 6px rgba(0,0,0,.9)}
.sh-title b{color:#ffcb05; text-shadow:0 0 8px rgba(255,203,5,.55),0 0 26px rgba(160,110,255,.7),0 2px 6px rgba(0,0,0,.9)}
.sh-sub{color:#b3a4dc}
/* the moon with Gengar */
.sh-art{position:absolute; z-index:0; right:56px; top:7px; width:var(--hd-art-w); height:var(--hd-art-w); border-radius:50%; background:var(--hd-art) var(--hd-art-pos)/var(--hd-art-size) no-repeat #f3ecc6; background-blend-mode:multiply; box-shadow:0 0 0 4px rgba(243,236,198,.14),0 0 44px rgba(243,236,198,.55); animation:pkMoon 7s ease-in-out infinite alternate}
@keyframes pkFog{from{background-position:0 0}to{background-position:100% 0}}
@keyframes pkMoon{from{box-shadow:0 0 0 4px rgba(243,236,198,.10),0 0 26px rgba(243,236,198,.35)}to{box-shadow:0 0 0 4px rgba(243,236,198,.18),0 0 54px rgba(243,236,198,.70)}}
@media (prefers-reduced-motion:reduce){#headerbox.hb-text::before,.sh-art{animation:none}}
@media (max-width:1000px){
  .sh-art{right:12px}
}
@media (max-width:640px){
  .site-head{column-gap:6px; padding:0 70px 0 10px}
  .sh-tag{font-size:9px; padding:2px 5px; letter-spacing:.06em}
  .sh-title{font-size:19px; letter-spacing:0}
  .sh-art{right:4px; top:5px; width:var(--hd-art-w-sp); height:var(--hd-art-w-sp); background-position:var(--hd-art-pos-sp); background-size:var(--hd-art-size-sp)}
}
