/*
Theme Name: GTAなう
Theme URI: https://gtanow.jp
Author: GTAなう編集部
Description: GTA6特化まとめサイト「GTAなう」専用テーマ。りんそく型3カラム構成（左：カテゴリ／タグ／最近のコメント／公式X、中央：記事リスト（最初の3レスまで表示・1ページ20件）、右：最新記事／人気記事／Amazonランキング／PR枠）。レスポンシブは3カラム→2カラム→1カラム（SP）の順に切り替わる。
Version: 1.2.12
License: GPL-2.0-or-later
Text Domain: gtanow
*/

/* ===== Design tokens (matome palette, light-only like real matome sites) ===== */
:root{
  --pink:#ff2e7e; --pink-d:#e91e63; --cyan:#00b8c4; --orange:#ff7a1a; --yellow:#ffb800;
  --vice-dark:#12101e;
  --m-navy:#0b3d66; --m-blue:#2f7fc1; --m-link:#0f5fa8; --m-cat:#f06400; --m-btn:#ff7b1c;
  --m-bg:#d7e7f5; --m-item:#f2f2f0; --m-widget:#e9e9e9; --m-ink:#1c1a26; --m-mut:#6f6f78;
  --font-round:"M PLUS Rounded 1c","Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic UI",sans-serif;
  --font-body:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Meiryo",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--m-bg);color:var(--m-ink);font-family:var(--font-body);line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;height:auto}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* site frame (mock: .site) */
.site{background:#fff;max-width:1180px;margin:10px auto;border:1px solid #b9cbdd;box-shadow:0 1px 4px rgba(11,61,102,.15)}
@media(max-width:560px){.site{margin:6px}}

/* ===== 1. utility bar ===== */
.util-bar{background:var(--m-navy);color:#dbe9f5;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:6px 12px;font-size:12px}
.util-bar a{color:#dbe9f5;text-decoration:none}
.util-bar a:hover{text-decoration:underline}
.util-bar ul{display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;margin:0;padding:0}
.util-bar ul li+li::before{content:"｜";margin-right:14px;color:#7ea6c6}
.util-search{margin-left:auto;display:flex;gap:0}
.util-search input{border:1px solid #7ea6c6;border-right:0;padding:4px 8px;font-size:12px;width:130px;font-family:inherit;background:#fff;color:#222}
.util-search button{border:1px solid #7ea6c6;background:#e8e8e8;color:#222;font-size:12px;padding:4px 10px;cursor:pointer;font-family:inherit;font-weight:700}
/* 検索結果ページ等の検索フォーム（searchform.php） */
.search-form{display:flex;gap:0;max-width:420px;margin:10px 0}
.search-form input{flex:1;min-width:0;border:1px solid #b9c9d6;border-right:0;padding:7px 10px;font-size:13px;font-family:inherit;background:#fff;color:#222}
.search-form button{flex:none;border:1px solid #b9c9d6;background:var(--m-navy);color:#fff;font-size:13px;padding:7px 16px;cursor:pointer;font-family:inherit;font-weight:700;white-space:nowrap}

/* ===== 2. breaking ticker ===== */
.ticker{display:flex;align-items:center;gap:10px;background:#fff3f3;border-bottom:2px solid #d92323;padding:7px 12px;font-size:13px}
.ticker-label{background:#d92323;color:#fff;font-weight:900;font-size:11.5px;padding:3px 9px;border-radius:3px;letter-spacing:.08em;flex:none}
.ticker-view{flex:1;min-width:0;font-weight:700;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ticker-view a{color:#222;text-decoration:none}
.ticker-view a:hover{color:var(--m-link);text-decoration:underline}
.ticker-nav{display:flex;gap:4px;flex:none}
.ticker-nav button{border:1px solid #e3b3b3;background:#fff;color:#a33;font-size:11px;padding:2px 8px;cursor:pointer;font-family:inherit;font-weight:700;border-radius:3px}

/* ===== 3. header banner (compressed, countdown inside) ===== */
.site-header{display:flex;flex-direction:column;gap:10px;padding:12px}
.logo-banner{position:relative;color:#fff;border-radius:8px;padding:14px 20px;display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:16px;min-height:112px;overflow:hidden;background-color:#17142e;background-image:linear-gradient(90deg,rgba(9,7,24,.82) 0%,rgba(9,7,24,.52) 42%,rgba(9,7,24,.06) 74%),linear-gradient(0deg,rgba(9,7,24,.58) 0%,rgba(9,7,24,0) 56%);background-size:cover;background-position:center 58%;background-repeat:no-repeat;box-shadow:inset 0 0 0 2px rgba(255,255,255,.15)}
.logo-banner a{text-decoration:none;color:#fff}
@media(max-width:560px){.logo-banner{min-height:96px;padding:12px 14px}.logo-banner .logo-tag{display:none}.logo-banner .banner-chip{display:none}.logo-banner .site-logo img.site-logo-img{height:42px}}
.banner-chip{position:absolute;top:12px;right:12px;background:rgba(9,7,24,.62);border:1px solid rgba(255,255,255,.35);color:#fff;font-size:10.5px;font-weight:900;letter-spacing:.14em;padding:5px 10px;border-radius:999px}
.site-logo{font-family:var(--font-round);font-weight:800;font-size:clamp(32px,4.6vw,42px);line-height:1;letter-spacing:.01em;text-shadow:0 2px 16px rgba(0,0,0,.6),0 1px 3px rgba(0,0,0,.65)}
.site-logo em{font-style:normal;color:var(--pink)}
.site-logo img.site-logo-img{display:block;height:62px;width:auto;filter:drop-shadow(0 2px 10px rgba(0,0,0,.45))}
.logo-sub{font-size:10.5px;letter-spacing:.28em;color:#aeeef2;margin-bottom:6px;font-weight:700;text-shadow:0 1px 6px rgba(0,0,0,.7)}
.logo-tag{font-size:12.5px;color:#fff;max-width:540px;font-weight:500;text-shadow:0 1px 8px rgba(0,0,0,.75);margin-top:7px;line-height:1.5}
.countdown-box{text-align:right;flex:none;background:rgba(9,7,24,.62);border:1px solid rgba(255,255,255,.3);border-radius:10px;padding:9px 12px}
.countdown-box .cd-label{font-size:10.5px;font-weight:900;letter-spacing:.1em;color:#ffb3d1}
.countdown-box .cd-num{font-family:var(--font-round);font-size:26px;font-weight:800;line-height:1.1}
.countdown-box .cd-date{font-size:11px;color:#cfc9ea}
@media(max-width:560px){.countdown-box .cd-num{font-size:20px}}

/* ===== 4. today strip + editor strip ===== */
.today-strip{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;background:#fff8ec;border:1px solid #ffe1a8;border-left:4px solid var(--orange);padding:9px 12px;margin:0 12px 10px;font-size:12.8px;color:#4a3500}
.today-strip b{color:#8a4b00}
.today-strip a{color:#4a3500;text-decoration:none}
.today-strip a:hover{text-decoration:underline}
.today-strip .next{margin-left:auto;font-weight:800;color:var(--m-link)}
.editor-strip{display:flex;gap:10px;align-items:flex-start;background:#fff3f8;border:1px solid #ffd1e3;padding:10px 12px;margin:0 12px 10px;font-size:13px;line-height:1.6;color:#3d2230}
.editor-strip .eav{width:34px;height:34px;border-radius:50%;background:var(--pink);color:#fff;display:grid;place-items:center;font-weight:900;flex:none}
.editor-strip b{color:var(--pink-d)}

/* ===== layout: 3 columns -> 2 columns -> 1 column (SP) ===== */
.site-cols{display:flex;gap:10px;padding:0 12px 14px;align-items:flex-start}
.site-cols>main,.site-cols>.article-main,.site-cols>.page-article{flex:1 1 auto;min-width:0}
.col-left{flex:0 0 216px;min-width:0}
.col-right{flex:0 0 216px;min-width:0}
/* 2カラムでは左列に両方のサイドバーを並べ、右列に本文を置く */
@media(max-width:1024px){
  .site-cols{
    display:grid;
    grid-template-columns:216px minmax(0,1fr);
    grid-template-rows:auto 1fr;
    grid-template-areas:"left main" "right main";
    align-items:start;
  }
  .site-cols>.col-left{grid-area:left}
  .site-cols>.col-right{grid-area:right}
  .site-cols>main,.site-cols>.article-main,.site-cols>.page-article{grid-area:main}
}
/* 1 column (SP): article first, then right sidebar, then left sidebar */
@media(max-width:640px){
  .site-cols{display:flex;flex-direction:column;padding:0 8px 12px}
  .site-cols>main,.site-cols>.article-main,.site-cols>.page-article{order:1;width:100%}
  .col-right{order:2;flex:1 1 auto;width:100%}
  .col-left{order:3;flex:1 1 auto;width:100%;display:block}
  .col-left .widget{margin-bottom:12px}
}

/* ===== 6. article list ===== */
.feed-head{display:flex;align-items:baseline;gap:10px;margin:2px 2px 8px;flex-wrap:wrap}
.feed-head h2{font-size:16px;margin:0;color:var(--m-navy)}
.feed-head span{font-size:12px;color:var(--m-mut)}
.post{display:flex;gap:12px;background:transparent;border:1px solid #ddd;padding:10px;margin-bottom:8px}
.post:hover{border-color:#a9c6de}
.post-thumb{flex:0 0 168px;max-width:42%}
@media(max-width:520px){.post-thumb{flex-basis:112px}}
.post-thumb img{width:100%;height:104px;object-fit:cover;display:block;border:1px solid #c9c9c9}
@media(max-width:520px){.post-thumb img{height:76px}}
.post-thumb .ph{height:104px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:13px;letter-spacing:.05em;text-align:center;padding:6px;border:1px solid #c9c9c9}
@media(max-width:520px){.post-thumb .ph{height:76px;font-size:11px}}
.post-body{flex:1;min-width:0;display:flex;flex-direction:column}
.post-meta{font-size:12px;color:#555}
.post-meta .cat{color:var(--m-cat);font-weight:700}
.post-meta .cat a{color:var(--m-cat);text-decoration:none}
.post h3,.post .post-title{font-size:16.5px;line-height:1.5;margin:4px 0 6px;color:var(--m-link);font-weight:700}
@media(max-width:520px){.post h3,.post .post-title{font-size:14.5px}}
.post h3 a,.post .post-title a{color:var(--m-link);text-decoration:none}
.post:hover h3 a,.post:hover .post-title a{text-decoration:underline}
.post-tags{display:flex;flex-wrap:wrap;gap:4px;margin:2px 0 6px}
.post-tags a,.post-tags span{font-size:10.8px;background:#eef4f9;border:1px solid #d3e0ec;color:#3d5a75;padding:1px 7px;border-radius:3px;text-decoration:none}
.post-foot{margin-top:auto;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cmt-link{font-size:12.5px;color:#7a6a53;font-weight:700;text-decoration:none}
.read-btn{margin-left:auto;background:linear-gradient(180deg,#ff9a3c,var(--m-btn));color:#fff;border:0;border-radius:5px;font-size:12.5px;font-weight:900;padding:6px 13px;cursor:pointer;font-family:inherit;white-space:nowrap;text-decoration:none;display:inline-block}
.react-n{font-size:11.5px;color:var(--pink-d);font-weight:800}

/* list preview: first replies shown inside the card */
.post-preview{border-top:1px dotted #cfd8de;margin-top:8px;padding-top:4px}

/* pagination */
.pager{display:flex;gap:4px;justify-content:center;align-items:center;padding:10px 0 4px;flex-wrap:wrap}
.pager a,.pager span{min-width:34px;text-align:center;padding:6px 8px;border:1px solid #c3d2de;background:#fff;font-size:13px;font-weight:700;color:var(--m-link);text-decoration:none}
.pager span.current{background:var(--m-navy);color:#fff;border-color:var(--m-navy)}
.pager a:hover{background:#eaf3fa}

/* ===== 7. sidebar widgets ===== */
.widget{border:1px solid #cfcfcf;margin-bottom:12px;background:#fff}
.widget-h,.widget .widget-title{background:var(--m-widget);background-image:radial-gradient(#c9c9c9 1px,transparent 1px);background-size:5px 5px;border-bottom:1px solid #cfcfcf;padding:7px 10px;font-size:13.5px;font-weight:900;color:#222;margin:0}
.widget-in{padding:10px}
.widget-in > *:first-child{margin-top:0}
.widget ul{margin:0;padding:0;list-style:none}
.pop-item{display:flex;gap:9px;padding:7px 0;border-bottom:1px dotted #d5d5d5;align-items:flex-start}
.pop-item:last-child{border-bottom:0}
.pop-rank{flex:none;width:20px;height:20px;background:var(--m-navy);color:#fff;font-size:12px;font-weight:900;display:grid;place-items:center;border-radius:3px;margin-top:1px}
.pop-rank.top{background:var(--m-cat)}
.pop-item img{width:64px;height:44px;object-fit:cover;flex:none;border:1px solid #ccc}
.pop-item .ph{width:64px;height:44px;flex:none;border:1px solid #ccc;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:900;text-align:center;padding:2px}
.pop-item p{margin:0;font-size:12.3px;line-height:1.5;color:#222}
.pop-item a{color:#222;text-decoration:none}
.pop-item:hover p a{color:var(--m-link);text-decoration:underline}
.pop-item .pc{font-size:11px;color:var(--m-cat);font-weight:800}
.rank-tabs{display:flex;gap:0;border-bottom:2px solid var(--m-navy)}
.rank-tabs button{flex:1;border:0;background:#f0f0f0;color:#555;font-size:12px;font-weight:900;padding:7px 2px;cursor:pointer;font-family:inherit;border-right:1px solid #ddd}
.rank-tabs button:last-child{border-right:0}
.rank-tabs button.active{background:var(--m-navy);color:#fff}
.rc-item{padding:7px 0;border-bottom:1px dotted #d5d5d5;font-size:12.3px;line-height:1.55}
.rc-item:last-child{border-bottom:0}
.rc-item a{text-decoration:none}
.rc-item:hover .rc-title{color:var(--m-link);text-decoration:underline}
.rc-title{color:#222;font-weight:700}
.rc-by{color:var(--m-cat);font-weight:800;font-size:11.5px}
.rc-time{color:var(--m-mut);font-size:11px}
.cat-list{list-style:none;margin:0;padding:0}
.cat-list li{border-bottom:1px solid #eee}
.cat-list a{display:flex;justify-content:space-between;align-items:center;padding:8px 4px;font-size:13.5px;text-decoration:none;color:#222}
.cat-list a:hover{color:var(--m-link)}
.cat-list .n{font-size:11.5px;color:var(--m-mut)}
.cat-list .arr{color:#b5b5b5;font-weight:900}
.tagcloud{display:flex;flex-wrap:wrap;gap:6px}
.tagcloud a{font-size:12px;border:1px solid #c3d2de;background:#f4f9fc;padding:3px 9px;border-radius:999px;text-decoration:none;color:var(--m-link)}
.count-widget{background:linear-gradient(135deg,#17142e,#3a1450);color:#fff;text-align:center}
.count-widget .widget-in{padding:14px 10px}
.count-big{font-family:var(--font-round);font-size:34px;font-weight:800;line-height:1.1}
.count-big small{font-size:13px;color:#ffb3d1}
.ad-box{border:1px solid #d8d8d8;background:repeating-linear-gradient(45deg,#fafafa,#fafafa 10px,#f3f3f3 10px,#f3f3f3 20px);color:#999;display:grid;place-items:center;text-align:center;font-size:12px;padding:22px 10px;line-height:1.6;margin-bottom:12px}
.ad-label{font-size:10.5px;color:#aaa;text-align:left;padding:4px 2px 0}
.x-box{background:#111;color:#fff;text-align:center;border-color:#111}
.x-box .widget-in{padding:14px 12px}
.x-box .x-btn{display:inline-block;background:#fff;color:#111;border:0;font-weight:900;border-radius:999px;padding:7px 18px;font-size:13px;font-family:inherit;text-decoration:none}
.mini-item{display:flex;gap:8px;padding:6px 0;border-bottom:1px dotted #d5d5d5;align-items:flex-start}
.mini-item:last-child{border-bottom:0}
.mini-item img{width:52px;height:38px;object-fit:cover;flex:none;border:1px solid #ccc}
.mini-item .ph{width:52px;height:38px;flex:none;border:1px solid #ccc;display:grid;place-items:center;color:#fff;font-size:9px;font-weight:900;text-align:center;padding:2px}
.mini-item p{margin:0;font-size:11.8px;line-height:1.5;color:#222}
.mini-item a{color:#222;text-decoration:none}
.mini-item:hover p a{color:var(--m-link);text-decoration:underline}
.mini-item .mc{font-size:10.8px;color:var(--m-cat);font-weight:800}
.mini-thumb{flex:none;display:block}
.mini-thumb .ph{width:52px;height:38px}
.pop-thumb{flex:none;display:block}
.pop-thumb .ph{width:64px;height:44px}

/* Amazon ranking links */
.amz-list{list-style:none;margin:0;padding:0}
.amz-list li{border-bottom:1px solid #eee}
.amz-list li:last-child{border-bottom:0}
.amz-list a{display:flex;justify-content:space-between;align-items:center;padding:8px 4px;font-size:13px;font-weight:700;text-decoration:none;color:var(--m-link)}
.amz-list a:hover{text-decoration:underline}
.amz-list .arr{color:#b5b5b5;font-weight:900}

/* ===== 8. footer ===== */
.site-foot{background:var(--m-navy);color:#cfe0ee;padding:16px;text-align:center;font-size:12px;line-height:1.9}
.site-foot .flogo{font-family:var(--font-round);font-size:20px;font-weight:800;color:#fff}
.site-foot .flogo em{font-style:normal;color:var(--pink)}
.site-foot .flogo img.site-logo-img{height:30px;width:auto;display:inline-block;vertical-align:middle}
.site-foot a{color:#cfe0ee;text-decoration:none;margin:0 6px}
.site-foot a:hover{text-decoration:underline}
.site-foot ul{display:inline-flex;flex-wrap:wrap;gap:0 4px;list-style:none;margin:0;padding:0;justify-content:center}

/* ===== Article page ===== */
.article-head-mini{display:flex;align-items:center;gap:12px;padding:10px 12px;border-bottom:3px solid var(--m-navy);flex-wrap:wrap}
.article-head-mini .site-logo{font-size:24px;color:var(--m-ink);text-shadow:none}
.article-head-mini .site-logo a{color:var(--m-ink);text-decoration:none}
.article-head-mini .site-logo em{color:var(--pink)}
.article-head-mini nav{margin-left:auto}
.article-head-mini nav ul{display:flex;gap:2px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.article-head-mini nav a{font-size:12.5px;font-weight:700;text-decoration:none;padding:6px 9px;color:#333;border-radius:4px;display:block}
.article-head-mini nav a:hover{background:#eaf3fa;color:var(--m-link)}
.article-main{padding:16px 16px 8px;min-width:0}
.crumbs{font-size:12px;color:var(--m-mut)}
.crumbs a{color:var(--m-link);text-decoration:none}
.article-main .entry-title{font-size:clamp(21px,3.4vw,27px);line-height:1.5;margin:10px 0 8px;font-weight:900;color:#111}
.entry-title,.post-card h3,.pop-item a{overflow-wrap:anywhere}
.art-meta{font-size:12.5px;color:var(--m-mut);display:flex;flex-wrap:wrap;gap:12px;border-bottom:1px solid #e3e3e3;padding-bottom:10px}
.art-meta .cat{color:var(--m-cat);font-weight:700}
.art-meta .cat a{color:var(--m-cat);text-decoration:none}
.art-meta .trust{font-weight:700}
.art-meta .to-comments{color:var(--pink-d);font-weight:700;text-decoration:none}
.share-row{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
.share-row a,.share-row button{border:0;color:#fff;font-weight:900;font-size:12.5px;padding:7px 14px;border-radius:5px;cursor:pointer;font-family:inherit;text-decoration:none;display:inline-block}
.sh-x{background:#111}.sh-line{background:#06c755}.sh-hatebu{background:#00a4de}.sh-copy{background:#666}
.entry-eyecatch img{width:100%;border-radius:8px;margin:6px 0 4px;aspect-ratio:2/1;object-fit:cover}
.eyecatch-caption{font-size:12px;color:var(--m-mut);margin:0}

/* --- article body grammar (editorial blocks used inside post content) --- */
.entry-content{font-size:15px;line-height:1.85}
.entry-content p{margin:0 0 1em}
.entry-content img{border-radius:6px}
.matome-lead{margin:16px 0 20px}
.matome-lead img{display:block;width:100%;height:auto;border-radius:6px}
.entry-content h2{font-size:20px;line-height:1.5;margin:1.4em 0 .6em}
.entry-content h3{font-size:17.5px;line-height:1.5;margin:1.3em 0 .5em}
.entry-content blockquote{border-left:4px solid #ddd;margin:1em 0;padding:4px 0 4px 14px;color:#333}
.entry-content .wp-block-embed,.entry-content figure{margin:1em auto;max-width:550px}
.entry-content iframe{max-width:100%}
.seed{border:1.5px dashed #c9c2e8;background:#f4f1ff;border-radius:10px;padding:13px 15px;margin:14px 0;color:var(--m-ink)}
.seed strong{color:#6c3df0}
.seed p{margin:6px 0 0;font-size:14px}
.seed .label,.label{font-size:11px;font-weight:900;letter-spacing:.08em}
.seed-source{margin-top:9px;padding-top:8px;border-top:1px dotted #b9b0e0;font-size:12px;color:#555}
.seed-source b{color:#333}
.seed-closing{border:1.5px dashed #ffb9d2;border-color:#ffd1e3;background:#fff3f8;border-radius:10px;padding:13px 15px;margin:14px 0}
.seed-closing .label{color:var(--pink-d);font-size:11px;font-weight:900;letter-spacing:.08em}
.seed-closing p{margin:6px 0 0;font-size:14px}
.section-title{display:flex;align-items:center;gap:10px;margin:24px 0 10px}
.section-title h3,.section-title h2{margin:0;font-size:17.5px}
.section-title::after{content:"";flex:1;height:1px;background:#e0e0e0}
.tag{display:inline-block;font-size:11px;font-weight:900;letter-spacing:.05em;padding:4px 8px;border-radius:5px;background:var(--pink);color:#fff;white-space:nowrap}
.tag.cyan{background:var(--cyan)}.tag.orange{background:var(--orange)}.tag.dark{background:#111;color:#fff}
.xcard,.reddit{border:1px solid #e2e2e2;border-radius:10px;padding:12px 13px;margin:9px 0;background:#fff}
.xhead,.rhead{display:flex;gap:10px;align-items:center}
.avatar{width:36px;height:36px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:900;color:#fff;font-size:14px}
.xcard p,.reddit p{margin:8px 0 0;font-size:14.5px}
.xfoot{font-size:12px;color:var(--m-mut);margin-top:9px;display:flex;gap:14px}
.reddit{border-left:4px solid var(--orange)}
.reddit .orig{font-size:12.5px;color:var(--m-mut);font-style:italic;margin-top:6px}
.res{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;font-weight:700;color:#222;margin:15px 0;line-height:1.75}
.res img{max-width:min(100%,480px);display:block;margin:6px 0}
.res b{color:#0a7a42}
.res-head{color:#888;font-size:12px;margin-bottom:3px}
.res.pick{color:#e60012;font-size:20px}
.res.pick.p2{color:#1565c0}
.res.pick.p3{color:#2e7d32}
.res.pick.p4{color:#7b1fa2}
.res.pick.p5{color:#ef6c00}
.reddit.pick,.xcard.pick{color:var(--pink-d)}
.reddit.pick p,.xcard.pick p{font-size:16px;font-weight:700}
.res.pick .res-head{color:inherit}

/* 記事一覧と個別記事のレス表示を共通の記事ルールに合わせる。 */
.entry-content .res,
.post-preview .res {
  font-family: var(--font-body);
  margin: 0 0 24px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.entry-content .res .res-head,
.post-preview .res .res-head {
  color: #595959;
  font-size: clamp(10px, 3.125vw, 12px);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 5px;
  -webkit-text-size-adjust: 100%;
}
.entry-content .res .res-head {
  white-space: nowrap;
  overflow-x: auto;
  overflow-wrap: normal;
}
.entry-content .res-head a[x-apple-data-detectors],
.entry-content .res-head a[href^="tel:"],
.post-preview .res-head a[x-apple-data-detectors],
.post-preview .res-head a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}
.entry-content .matome-reply-name,
.post-preview .matome-reply-name { color: #507451; font-weight: 700; }
.entry-content .res.op,
.post-preview .res.op { color: #8f0f24; }
.entry-content .res.op > .res-head .matome-reply-id,
.post-preview .res.op > .res-head .matome-reply-id {
  color: #e67373;
  background-color: #ddd;
  font-weight: 700;
}

.flow-note{background:#fff7e6;border:1px solid #ffe1a8;border-radius:10px;padding:11px 13px;font-size:13.5px;margin:14px 0;color:#5c4300}
.art-tags{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 2px}
.art-tags a{font-size:11.5px;background:#eef4f9;border:1px solid #d3e0ec;color:var(--m-link);padding:2px 9px;border-radius:3px;text-decoration:none}
.art-tags a:hover{background:#dbeaf6}
.source-box{font-size:12.5px;color:var(--m-mut);border-top:1px solid #e3e3e3;margin-top:20px;padding-top:12px}
.prevnext{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0 4px}
@media(max-width:520px){.prevnext{grid-template-columns:1fr}}
.prevnext a{border:1px solid #d5e2ec;background:#f4f9fc;padding:10px 12px;font-size:12.8px;text-decoration:none;color:var(--m-link);line-height:1.55;border-radius:6px}
.prevnext a span{display:block;font-size:11px;color:var(--m-mut);font-weight:900}
.prevnext .next-link{text-align:right}
.rel-list .post{margin-bottom:8px}

/* ===== Comments (WordPress standard, mock styling) ===== */
.comments{margin-top:26px;border-top:2px solid #e0e0e0;padding-top:18px;color:var(--m-ink)}
.cmt-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cmt-head h3{margin:0;font-size:18px}
.cmt-count{background:var(--pink);color:#fff;font-size:12px;font-weight:900;padding:3px 9px;border-radius:999px}
.cmt-note{font-size:12px;color:var(--m-mut);margin:8px 0 4px}
.comment-list{list-style:none;margin:0;padding:0}
.comment-list .children{list-style:none;margin:0 0 0 26px;padding:0}
.cmt{display:flex;gap:11px;padding:13px 2px;border-bottom:1px solid #e6e6e6}
.cmt .avatar{width:38px;height:38px;font-size:15px}
.cmt-main{flex:1;min-width:0}
.cmt-meta{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.cmt-name{font-weight:800;font-size:13.5px}
.cmt-name a{color:inherit;text-decoration:none}
.cmt-time{font-size:11.5px;color:var(--m-mut)}
.cmt-pin{font-size:10.5px;font-weight:900;background:#fff3f8;color:var(--pink-d);border:1px solid #ffd1e3;padding:2px 7px;border-radius:999px}
.cmt .cmt-body p{margin:4px 0 0;font-size:14.5px;line-height:1.65}
.cmt-actions{display:flex;gap:6px;margin-top:8px}
.cmt-actions a{border:1px solid #ddd;background:#fff;color:var(--m-mut);font-size:12px;font-weight:700;padding:5px 11px;border-radius:999px;text-decoration:none}
.cmt.pinned{background:#fffafc;border:1px solid #ffd1e3;border-radius:12px;padding:13px 11px;margin-top:10px}
.cmt-moderation{font-size:12px;color:var(--pink-d);margin-top:4px}
.comment-navigation{display:flex;gap:8px;justify-content:space-between;margin:12px 0;font-size:13px}
.comment-navigation a{color:var(--m-link);text-decoration:none;font-weight:700}
.cmt-form{margin-top:20px;background:#fafafa;border:1px solid #e2e2e2;border-radius:12px;padding:15px}
.cmt-form h3{margin:0 0 4px;font-size:15px}
.cmt-form .sub,.cmt-form .comment-notes{font-size:12px;color:var(--m-mut);margin:0 0 12px}
.cmt-form label{display:block;font-size:12.5px;font-weight:700;margin:0 0 4px}
.cmt-form input[type=text],.cmt-form input[type=email],.cmt-form input[type=url]{width:100%;border:1px solid #ddd;border-radius:8px;padding:10px 12px;font-size:14px;font-family:inherit;background:#fff;color:var(--m-ink);margin-bottom:10px}
.cmt-form textarea{width:100%;border:1px solid #ddd;border-radius:8px;padding:10px 12px;font-size:14.5px;font-family:inherit;background:#fff;color:var(--m-ink);min-height:88px;resize:vertical;line-height:1.6}
.cmt-form input:focus,.cmt-form textarea:focus{outline:2px solid var(--cyan);outline-offset:1px;border-color:transparent}
.cmt-form .form-submit{margin:12px 0 0}
.cmt-form .submit{background:var(--pink);color:#fff;border:0;padding:10px 22px;border-radius:999px;font-weight:900;font-size:14px;cursor:pointer;font-family:inherit}
.cmt-rule{font-size:11.5px;color:var(--m-mut)}
.no-comments{font-size:13px;color:var(--m-mut)}

/* ===== Archive / search / 404 ===== */
.archive-head{margin:2px 2px 10px}
.archive-head h1,.archive-head h2{font-size:18px;margin:0;color:var(--m-navy)}
.archive-head p{font-size:12.5px;color:var(--m-mut);margin:4px 0 0}
.page-article{padding:16px;min-width:0}
.page-article .entry-title{font-size:clamp(20px,3vw,25px);line-height:1.5;margin:6px 0 12px;font-weight:900;color:#111}

/* WordPress core alignment */
.alignleft{float:left;margin:0 1em 1em 0}
.alignright{float:right;margin:0 0 1em 1em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:12px;color:var(--m-mut);text-align:center}

/* ===== Shop box (affiliate) ===== */
.shop-list{list-style:none;margin:0;padding:0}
.shop-list li{margin:0}
.shop-list a{display:block;text-decoration:none;color:var(--m-ink);padding:2px 0}
.shop-name{display:block;font-weight:900;font-size:14px;line-height:1.4}
.shop-meta{display:block;font-size:11.5px;color:var(--m-mut);margin-top:2px;line-height:1.4}
.shop-btn{display:block;margin-top:8px;background:#bf0000;color:#fff;text-align:center;font-weight:900;font-size:13px;padding:8px 6px;border-radius:4px}
.shop-note{font-size:11px;color:var(--m-mut);margin-top:8px;line-height:1.5}
.shop-list li+li{margin-top:12px;border-top:1px dashed #d8d8d8;padding-top:10px}
.shop-btns{display:flex;gap:6px;margin-top:8px}
.shop-btns .shop-btn{flex:1;margin-top:0;font-size:12.5px;padding:8px 4px;text-decoration:none}
.shop-btns .shop-btn.rkt{background:#bf0000;color:#fff}
.shop-btns .shop-btn.amz{background:#ff9900;color:#111}
.shop-img{width:100%;height:auto;display:block;border-radius:4px;margin-bottom:6px}
.shop-price{display:block;font-weight:900;color:#bf0000;font-size:13px;margin-top:3px}

/* ===== v1.1.1 responsive card fixes (appended last on purpose: cascade order) ===== */
.site{overflow-x:clip}
.post-preview{min-width:0}
/* 2-column range: narrower list thumbnail so the preview keeps readable width */
@media(max-width:1024px){
  .post-thumb{flex-basis:128px}
  .post-thumb img,.post-thumb .ph{height:84px}
}
/* SP: stack the card vertically, thumbnail on top, preview full width */
@media(max-width:640px){
  .post{flex-direction:column;gap:8px}
  .post-thumb{flex:0 0 auto;max-width:100%}
  .post-thumb img{height:150px}
  .post-thumb .ph{height:150px}
}

/* ===== v1.1.2 rinsoku-style sidebar entries ===== */
.side-post{margin:0 0 20px}
.side-post:last-child{margin-bottom:4px}
.side-post-thumb{display:block;aspect-ratio:1/1;overflow:hidden;background:#f2f2f0}
.side-post-thumb img{width:100%;height:100%;object-fit:cover;display:block;border:0}
.side-post-thumb .ph{width:100%;height:100%;display:grid;place-items:center;color:#fff;font-weight:900;font-size:14px;text-align:center;padding:8px}
.side-post-title{margin:6px 0 0;font-size:13.5px;line-height:1.55;color:#222}
.side-post-title a{color:#222;text-decoration:none}
.side-post:hover .side-post-title a{color:var(--m-link);text-decoration:underline}
.pop-card{margin:0 0 14px}
.pop-card:last-child{margin-bottom:4px}
.pop-card-thumb{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#f2f2f0}
.pop-card-thumb img{width:100%;height:100%;object-fit:cover;display:block;border:0}
.pop-card-thumb .ph{width:100%;height:100%;display:grid;place-items:center;color:#fff;font-weight:900;font-size:13px;text-align:center;padding:8px}
.pop-badge{position:absolute;top:6px;right:6px;background:rgba(0,0,0,.78);color:#fff;font-size:11px;font-weight:800;padding:2px 7px;border-radius:3px}
.pop-card-title{margin:0;background:#111;padding:8px 10px;font-size:13px;line-height:1.5}
.pop-card-title a{color:#fff;text-decoration:none}
.pop-card:hover .pop-card-title a{text-decoration:underline}

/* ===== v1.2.0 rinsoku-style list cards + PV popular + Amazon products ===== */
.post{display:block;padding:14px 14px 22px;border-radius:8px;margin-bottom:16px}
.post-body{min-width:0}
.post h3,.post .post-title{font-size:24px;line-height:1.45;margin:0 0 22px;color:#111}
.post h3 a,.post .post-title a{color:#111;text-decoration:none}
.post h3 a:hover{text-decoration:underline}
@media(max-width:520px){.post h3,.post .post-title{font-size:19px}}
.post-wide{display:block;margin:0}
.post-wide img{width:100%;height:auto;max-height:430px;object-fit:cover;display:block;border:0}
.post-preview{border-top:0;margin-top:24px;padding-top:0;min-width:0}
.post-preview .res img{max-width:100%}
.post-foot{text-align:center;margin:14px 0 0}
.post-foot .read-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: none;
  box-shadow: none;
  color: var(--m-link);
  font-size: 15px;
  font-weight: 900;
}
.post-foot .read-btn:hover { text-decoration: underline; }
.post .post-meta{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:24px;font-size:12.5px;color:#777;white-space:normal}
.post-meta .cat a{background:#eef1f4;border-radius:999px;padding:1px 9px;color:#555;text-decoration:none}
.post-meta .cmt-link{color:#777;text-decoration:none}
.pager-top{display:none}
.pop-card--pv .pop-card-thumb{aspect-ratio:4/3}
.amz-item{border-bottom:1px solid #eee;padding:10px 0}
.amz-item:last-of-type{border-bottom:0}
.amz-img{display:block;text-align:center}
.amz-img img{max-width:100%;max-height:190px;width:auto;height:auto;display:inline-block;border:0}
.amz-title{margin:6px 0 0;font-size:13.5px;line-height:1.5}
.amz-title a{color:#1a5c2e;font-weight:700;text-decoration:none}
.amz-title a:hover{text-decoration:underline}
.amz-more{margin:10px 0 0;font-size:12.5px}
.amz-more a{color:var(--m-link)}
.amz-note{margin:6px 0 0;font-size:10.5px;color:#999;line-height:1.5}

.post-foot{justify-content:center}

.matome-affiliate{margin:48px 0 16px;text-align:center;color:#253040}
.matome-product-picture{margin:0 auto 6px}
.matome-product-picture a{display:inline-block}
.matome-affiliate p{margin:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.matome-shop-links{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.matome-shop-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--m-link);font-size:14px;text-decoration:underline}
.matome-product-picture > img{display:block;max-width:100%;max-height:264px;width:auto;height:auto;margin:auto}
.matome-shop-links a:first-child{font-weight:700}
.matome-affiliate-note{display:block;color:#525d6d;font-size:11px;line-height:1.45}

/* 関連記事は広い画面でサムネイル3列、狭い画面で画像付きの一覧にする。 */
.matome-related { margin: 26px 0; padding: 0 20px; }
.matome-related h2 { margin: 0 0 14px; font-size: 24px; line-height: 1.4; }
.matome-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.matome-related-grid li { min-width: 0; }
.matome-related-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--m-link);
  text-decoration: none;
}
.matome-related-thumb { display: block; overflow: hidden; aspect-ratio: 10 / 7; background: #e8e8e8; }
.matome-related-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.matome-related-title {
  position: absolute;
  inset: auto 0 0;
  padding: 4px 6px;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.matome-related-date { display: none; }
.matome-related-card:hover .matome-related-title,
.matome-related-card:focus-visible .matome-related-title { text-decoration: underline; }

@media (max-width: 767px) {
  .matome-related { padding: 0; }
  .matome-related h2 { margin-bottom: 15px; font-size: 14px; }
  .matome-related-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .matome-related-grid > li { border-top: 1px solid #dedede; }
  .matome-related-grid > li:nth-child(n + 6) { display: none; }
  .matome-related-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    padding: 10px 0;
  }
  .matome-related-thumb { grid-row: span 2; width: 44px; aspect-ratio: 1; }
  .matome-related-title { position: static; padding: 0; background: none; color: inherit; }
  .matome-related-date { display: block; color: #595959; font-size: 11px; }
}

/* 狭い画面でも見出し・画像・抜粋の間に余白を取る。 */
@media (max-width: 640px) {
  .post { padding: 12px 12px 18px; }
  .post h3, .post .post-title { margin-bottom: 16px; }
  .post-preview { margin-top: 16px; }
  .post .post-meta { margin-top: 16px; }
}

/* 左サイドバーの公式SNS（プロフィールカード） */
.col-left .widget.social-follow {
  --sf-ink: #1c1a26; --sf-sub: #6f6f78; --sf-lead: #4a4654;
  --sf-btn: #111; --sf-btn-ink: #fff; --sf-line: #ddd5e0; --sf-focus: #ff2e7e;
}
.social-follow .widget-in { display: grid; gap: 10px; }
.social-follow .sf-head { display: flex; align-items: center; gap: 10px; }
.social-follow .sf-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; object-fit: cover; box-shadow: 0 0 0 2px var(--sf-line);
}
.social-follow .sf-name { margin: 0; color: var(--sf-ink); font-size: 14px; font-weight: 900; line-height: 1.3; }
.social-follow .sf-id { margin: 2px 0 0; color: var(--sf-sub); font-size: 12px; }
.social-follow .sf-lead { margin: 0; color: var(--sf-lead); font-size: 12px; line-height: 1.7; }
.social-follow .sf-btn,
.social-follow .sf-rss {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; text-decoration: none;
}
.social-follow .sf-btn {
  min-height: 44px; padding: 8px 12px;
  background: var(--sf-btn); color: var(--sf-btn-ink);
  font-size: 14px; font-weight: 800;
  transition: transform .15s, filter .15s;
}
.social-follow .sf-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.social-follow .sf-rss {
  min-height: 34px; border: 1px solid var(--sf-line);
  color: var(--sf-ink); font-size: 12px; font-weight: 700;
}
.social-follow .sf-rss:hover { text-decoration: underline; }
.social-follow svg { flex: none; width: 17px; height: 17px; fill: currentColor; }
.social-follow .sf-rss svg { width: 13px; height: 13px; fill: #f58220; }
.social-follow a:focus-visible { outline: 2px solid var(--sf-focus); outline-offset: 2px; }

/* カテゴリ別Amazon売れ筋ランキング */
.amz-rankings section { margin-top: 12px; }
.amz-rankings section + section {
  padding-top: 12px;
  border-top: 1px solid #ddd;
}
.amz-rankings h3 { margin: 0; font-size: 13px; line-height: 1.5; }
.amz-rankings ol { margin: 0; padding: 0; list-style: none; }
.amz-rankings .amz-item { margin: 0; overflow-wrap: anywhere; }
.amz-rankings .amz-img { margin-bottom: 6px; }
