/*
Theme Name: PLACE GA
Theme URI: https://eromanga.matome-place.com/
Description: momon:GA 風の構造（固定ヘッダー＋ドロワーメニュー、セクション別カードグリッド、タグ一覧）を、えろ漫画まとめPLACE の淡いピンクの配色とトップ画像で再構成したテーマ。
Author: 望月
Version: 1.26.13
Requires PHP: 7.2
Text Domain: place-ga
*/

:root{
  --bg:#ffeded;            /* 既存サイトの背景色 */
  --bg-card:#ffffff;
  --nav:#fce5f1;           /* 既存ナビ背景 */
  --accent:#ff5e5e;        /* 既存ナビ罫線 */
  --accent-strong:#ff0033; /* 既存ナビ文字 */
  --accent-rgb:255,94,94;  /* accent の RGB（影用） */
  --hd1:#5c0f24;           /* ストアサイト：ヘッダー濃色（上） */
  --hd2:#4a0b1d;           /* ストアサイト：ヘッダー濃色（下） */
  --band:#6d1430;          /* ストアサイト：説明帯 */
  --btn-bg:#f9c6d8;        /* ストアサイト：淡いボタン背景 */
  --btn-fg:#b8155a;        /* ストアサイト：淡いボタンの文字・枠線 */
  --pink:#ff8ac8;          /* ロゴのピンク寄り */
  --text:#555;
  --text-strong:#444;      /* タイトル等の濃い文字 */
  --muted:#999;
  --link:#6c9bd2;          /* 既存リンク色 */
  --border:#f6c9d9;
  --header-h:50px;
  --radius:10px;
  --font:"Sawarabi Mincho","Hiragino Mincho ProN","Yu Mincho",serif;
  --font-ui:"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.7;word-wrap:break-word}
a{color:var(--link);text-decoration:none}
a:hover{opacity:.8}
img{max-width:100%;height:auto;vertical-align:middle}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

/* ===== 固定ヘッダー ===== */
#header{position:fixed;top:0;left:0;right:0;height:var(--header-h);background:var(--nav);border-bottom:1px solid var(--accent);z-index:1000;transition:transform .3s}
.admin-bar #header{top:32px}
@media (max-width:782px){.admin-bar #header{top:46px}}
#header-in{position:relative;height:100%;max-width:1024px;margin:0 auto}
#logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap}
#logo a{display:block;line-height:1}
#logo img{height:32px;width:auto}
#logo .logo-text{font-family:var(--font-ui);font-weight:700;font-size:18px;color:var(--accent-strong)}
#logo .logo-mincho{font-family:"Shippori Mincho","Hiragino Mincho ProN",serif;font-weight:700;font-size:20px;letter-spacing:.08em;color:var(--text-strong)}
#logo .logo-mincho b{font-family:Montserrat,"Helvetica Neue",Arial,sans-serif;font-weight:800;letter-spacing:.18em;color:var(--accent-strong);margin-left:.15em;font-size:17px;vertical-align:1px}
.hbtn{position:absolute;top:0;width:var(--header-h);height:var(--header-h);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--accent-strong);font-size:22px}
#menu-open{left:0}
#search-open{right:0}
.unshown{display:none}

/* ドロワー（メニュー） */
#menu-content{position:fixed;top:0;left:0;bottom:0;width:300px;max-width:85vw;background:var(--bg-card);box-shadow:2px 0 12px rgba(0,0,0,.15);z-index:1100;transform:translateX(-100%);transition:transform .3s;overflow-y:auto;padding:20px 22px 40px}
#menu-input:checked ~ #menu-content{transform:translateX(0)}
#menu-input:checked ~ #menu-close{display:block}
#menu-close{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:1050;display:none;cursor:pointer}
#menu-content h2,#search-content h2{font-family:var(--font-ui);font-size:13px;color:var(--muted);margin:22px 0 8px;letter-spacing:.1em;border-bottom:1px solid var(--border);padding-bottom:4px}
#menu-content h2:first-child{margin-top:4px}
#menu-content ul{list-style:none;margin:0;padding:0}
#menu-content li a{display:block;padding:8px 4px;color:var(--text);border-bottom:1px dotted var(--border)}
#menu-content li a:before{content:"▸ ";color:var(--accent)}
#menu-content .sub-menu{padding-left:14px}

/* 検索パネル */
#search-content{position:fixed;top:var(--header-h);left:0;right:0;background:var(--bg-card);border-bottom:1px solid var(--accent);z-index:1100;transform:translateY(-120%);transition:transform .3s;padding:18px 20px 24px;max-height:80vh;overflow-y:auto}
.admin-bar #search-content{top:calc(var(--header-h) + 32px)}
#search-input:checked ~ #search-content{transform:translateY(0)}
#search-input:checked ~ #search-close{display:block}
#search-close{position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:1050;display:none;cursor:pointer}
#search-content .inner{max-width:1024px;margin:0 auto}
.search-form{display:flex;gap:8px}
.search-form input[type=search]{flex:1;padding:10px 14px;border:1px solid var(--border);border-radius:999px;font-size:16px;outline:none}
.search-form button{padding:10px 20px;border:none;border-radius:999px;background:var(--accent);color:#fff;font-size:15px;cursor:pointer}
.tag-search a{display:inline-block;margin:0 10px 8px 0;font-size:13px;color:var(--text)}
.tag-search a:before{content:"#";color:var(--accent)}

/* ===== トップ画像バンド ===== */
.home-d{margin-top:var(--header-h);position:relative;background:var(--bg) url() top center repeat;text-align:center;overflow:hidden}
.home-d .home-d-img{position:relative;max-width:1070px;margin:0 auto;line-height:0}
.home-d .home-d-img > img{width:100%;height:auto}
.home-d .home-logo{position:absolute;left:0;right:0;top:8%;line-height:0}
.home-d .home-logo img{max-height:90px;max-width:80%;width:auto;filter:drop-shadow(0 2px 4px rgba(255,255,255,.9))}
.home-d .home-title{position:absolute;left:0;right:0;top:20%;margin:0;color:var(--pink);font-size:40px;text-shadow:0 0 6px #fff}
.home-d p{margin:0 auto;max-width:1070px;font-size:14px;color:var(--text-strong);background:var(--nav);border-top:1px solid var(--accent);border-bottom:1px solid var(--accent);padding:10px 18px;line-height:1.7}
.page-d{margin-top:var(--header-h);background:var(--nav);border-bottom:1px solid var(--accent);padding:26px 16px;text-align:center}
.breadcrumb{font-family:var(--font-ui);font-size:11px;color:var(--muted);margin:0 0 8px}.breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:2px 0}.breadcrumb li+li::before{content:"＞";margin:0 4px;color:var(--muted)}.breadcrumb a{color:var(--muted);text-decoration:none}.breadcrumb a:hover{color:var(--accent-strong)}.breadcrumb span{color:var(--muted);max-width:60vw;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.page-d h1{margin:0;font-size:22px;color:var(--accent-strong);font-weight:700}
.page-d h1 small{font-family:var(--font-ui);display:block;font-size:12px;color:var(--muted);font-weight:400;letter-spacing:.1em}
.page-d .desc{font-size:13px;color:var(--muted);margin:6px 0 0}

/* ===== コンテナ ===== */
#container{max-width:1024px;margin:0 auto;padding:20px 20px 40px}
#main{width:100%}

/* 旧テーマから引き継いだトップ上部ウィジェット（バナー・ボタン・リンク） */
.home-top-widgets{max-width:900px;margin:10px auto 0;text-align:center;display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;align-items:start}
.home-top-widgets .widget{margin:0}
.home-top-widgets .widget:not(.widget_media_image),.home-top-widgets .home-links{grid-column:1 / -1}
.home-top-widgets .widget_media_image img{width:100%}
.home-top-widgets .widget img{border-radius:8px;box-shadow:0 2px 6px rgba(var(--accent-rgb),.15)}
.home-top-widgets figure{margin:0}
.home-top-widgets .wp-block-buttons{justify-content:center;gap:8px}
.home-top-widgets .wp-block-button__link{font-family:var(--font-ui);font-size:13px;padding:8px 18px;border-radius:999px}
.home-top-widgets .wp-block-search__label{font-size:12px;color:var(--muted)}
.home-top-widgets .wp-block-search__input{border:1px solid var(--border);border-radius:8px;padding:8px}
.home-top-widgets .wp-block-search__button{background:var(--accent);color:#fff;border:none;border-radius:8px;padding:8px 14px}
.home-links{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:10px 16px;font-size:14px;text-align:left}
.home-links p{margin:4px 0}
.home-links .widget{margin:0}

/* セクション見出し */
.home-h{display:flex;align-items:flex-end;justify-content:space-between;margin:34px 0 18px;border-bottom:2px solid var(--accent);padding-bottom:6px}
.home-h .h-wrap h3{margin:0;font-family:var(--font-ui);font-size:12px;font-weight:400;color:var(--muted);letter-spacing:.12em;text-transform:lowercase}
.home-h .h-wrap h2{margin:0;font-size:28px;color:var(--accent-strong);font-weight:700;line-height:1.2}
.home-h .more{font-size:15px;font-weight:700;color:var(--accent-strong);white-space:nowrap;margin-bottom:6px}
.home-h .more:before{content:"▸ ";color:var(--accent)}

/* ===== カードグリッド ===== */
.post-list{display:grid;grid-template-columns:repeat(4,1fr);gap:26px 20px}
.post-list > .card{position:relative;background:var(--bg-card);border-radius:var(--radius);box-shadow:0 2px 6px rgba(var(--accent-rgb),.12);overflow:hidden;transition:transform .15s,box-shadow .15s}
.post-list > .card > a{display:block;color:var(--text)}
.post-list > .card:hover{transform:translateY(-3px);box-shadow:0 6px 16px rgba(var(--accent-rgb),.22)}
.post-list > .card > a:hover{opacity:1}
/* お気に入りボタン */
.fav-btn{position:absolute;right:6px;top:6px;z-index:3;width:30px;height:30px;border-radius:50%;border:none;background:var(--bg-card);color:var(--accent);font-size:17px;line-height:30px;padding:0;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.fav-btn.is-fav{background:var(--accent);color:#fff}
.fav-btn-lg{position:static;width:auto;height:auto;border-radius:999px;padding:8px 18px;font-size:14px;margin-top:10px;font-family:var(--font-ui);line-height:1.4}
/* 横一列スクロール */
.post-row{position:relative}
.post-list-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;padding:6px 2px 12px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.post-list-row > .card{flex:0 0 calc((100% - 48px) / 4);scroll-snap-align:start}
.post-list-row .empty{width:100%}
.row-btn{position:absolute;top:40%;z-index:5;width:38px;height:38px;border-radius:50%;border:none;background:var(--bg-card);color:var(--accent);font-size:14px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2);transform:translateY(-50%)}
.row-btn:hover{background:var(--accent);color:#fff}
.row-prev{left:-14px}
.row-next{right:-14px}
.row-btn[disabled]{opacity:.25;cursor:default}
.post-rows-group > .row-btn{top:50%}
/* 12枚＝1パネル（4列×3段）で横スクロール */
.post-list-panel{display:grid;grid-template-columns:none;grid-template-rows:repeat(var(--rows,3),auto);grid-auto-flow:column;grid-auto-columns:calc((100% - 48px) / 4);gap:16px}
.post-list-panel > .card{flex:none}
.post-list-image{position:relative;width:100%;padding-top:var(--thumb-ratio,135%);background:var(--nav);overflow:hidden}
.post-list-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1} /* 切り抜かず全体を表示（トリミングしない） */
.post-list-image .noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--pink);font-size:40px}
.post-list-cat{position:absolute;left:8px;top:8px;background:rgba(var(--accent-rgb),.9);color:#fff;font-size:10px;padding:2px 8px;border-radius:999px;font-family:var(--font-ui)}
.post-list-like{position:absolute;right:8px;bottom:8px;z-index:3;background:rgba(0,0,0,.65);color:#fff;font-size:11px;padding:2px 9px;border-radius:12px;font-family:var(--font-ui)}
.post-list-like:before{content:"\1F441\FE0F ";font-size:12px}
.post-list .title{display:block;padding:8px 10px 2px;font-size:13px;line-height:1.5;height:calc(13px * 1.5 * 3 + 10px);overflow:hidden;color:var(--text-strong)}
.post-list-time{display:block;text-align:right;font-size:10px;color:var(--muted);padding:0 10px 8px;font-family:var(--font-ui)}
.post-list-time:before{content:"📅 "}
.empty{padding:30px;text-align:center;color:var(--muted)}

/* ページネーション */
.pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:40px 0 10px;font-family:var(--font-ui)}
.pagination .page-numbers{display:inline-block;min-width:36px;padding:7px 10px;text-align:center;border-radius:8px;background:var(--bg-card);border:1px solid var(--border);color:var(--text)}
.pagination .page-numbers.current{background:var(--accent);color:#fff;border-color:var(--accent)}
.pagination .dots{border:none;background:none}

/* ===== タグ一覧 ===== */
.tag-list{margin-top:10px;line-height:2.2}
.tag-list a{display:inline-block;margin:0 14px 4px 0;font-size:13px;color:var(--text)}
.tag-list a:before{content:"#";color:var(--accent)}
.tag-list a span{color:var(--muted);font-size:11px}

/* ===== 個別記事 ===== */
.single-wrap{background:var(--bg-card);border-radius:var(--radius);padding:26px 28px;box-shadow:0 2px 6px rgba(var(--accent-rgb),.12);margin-top:20px}
.single-wrap h1.entry-title{font-size:22px;color:var(--text-strong);margin:0 0 10px;line-height:1.5}
.entry-meta{font-family:var(--font-ui);font-size:12px;color:var(--muted);margin-bottom:16px}
.entry-meta a{color:var(--link)}
.entry-content img{display:block;margin:10px auto;border-radius:6px}
.entry-content{font-size:15px}
.source-btn{display:block;margin:26px auto 6px;max-width:520px;text-align:center;background:var(--accent);color:#fff!important;padding:14px 20px;border-radius:999px;font-size:16px;font-weight:700;box-shadow:0 4px 10px rgba(var(--accent-rgb),.3)}
.source-btn:hover{opacity:.9}
.entry-tags{margin-top:20px;line-height:2.2}
.entry-tags a{display:inline-block;margin-right:12px;font-size:13px;color:var(--text)}
.entry-tags a:before{content:"#";color:var(--accent)}
.post-nav{display:flex;justify-content:space-between;gap:12px;margin-top:24px;font-size:13px}
.related{margin-top:40px}

/* ===== 広告 ===== */
.ad-slot{display:flex;justify-content:center;align-items:flex-start;gap:16px;flex-wrap:wrap;margin:22px auto;max-width:100%}
.ad-unit{max-width:100%;overflow:hidden;text-align:center;line-height:0}
.ad-slot-top{margin-top:6px}
.single-wrap .ad-slot{margin:18px auto}

/* ===== お知らせ ===== */
.site-notice{max-width:720px;margin:18px auto 0;padding:8px 14px;font-size:12px;line-height:1.7;color:var(--muted);background:var(--bg-card);border-left:3px solid var(--accent);border-radius:6px;font-family:var(--font-ui)}

/* ===== アンケート ===== */
.survey{margin:12px auto 0;max-width:720px}
.survey-toggle{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:9px 14px;font-size:13px;color:var(--text);font-family:var(--font-ui);user-select:none}
.survey-toggle::-webkit-details-marker{display:none}
.survey-toggle-arrow{color:var(--accent);font-size:11px;transition:transform .2s}
.survey[open] .survey-toggle{border-radius:8px 8px 0 0}
.survey[open] .survey-toggle-arrow{transform:rotate(180deg)}
.survey[open] .survey-form,.survey[open] .survey-done{border-radius:0 0 var(--radius) var(--radius)}
.survey-form,.survey-done{background:var(--bg-card);border-radius:var(--radius);padding:22px 24px;box-shadow:0 2px 6px rgba(var(--accent-rgb),.12);max-width:720px;margin:0 auto}
.survey-lead{margin:0 0 14px;font-size:14px;color:var(--muted)}
.survey-q{margin-bottom:18px}
.survey-label{font-size:14px;font-weight:700;color:var(--text-strong);margin-bottom:8px}
.survey-scale{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;font-family:var(--font-ui)}
.survey-end{font-size:12px;color:var(--muted);white-space:nowrap;flex:0 0 auto}
.survey-scale label{cursor:pointer}
.survey-scale input{position:absolute;opacity:0;width:0;height:0}
.survey-scale span:not(.survey-end){display:inline-block;width:40px;height:40px;line-height:38px;text-align:center;border:1px solid var(--border);border-radius:50%;background:var(--bg-card);color:var(--text);font-size:15px;transition:all .15s}
.survey-scale label:hover span{border-color:var(--accent)}
.survey-scale input:checked + span{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}
.survey-form textarea{width:100%;border:1px solid var(--border);border-radius:8px;padding:10px;font-size:14px;font-family:inherit;resize:vertical}
.survey-hp{position:absolute;left:-9999px;top:-9999px}
.survey-submit{display:block;margin:6px auto 0;background:var(--accent);color:#fff;border:none;border-radius:999px;padding:12px 40px;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 4px 10px rgba(var(--accent-rgb),.3)}
.survey-submit[disabled]{opacity:.6;cursor:default}
.survey-msg{text-align:center;font-size:13px;color:var(--accent-strong);margin:10px 0 0;min-height:1em}
.survey-done{text-align:center;color:var(--accent-strong);font-weight:700}

/* ===== フッター ===== */
footer{text-align:center;padding:30px 20px 40px;font-size:12.8px;color:var(--muted);border-top:1px solid var(--border);background:var(--nav);font-family:var(--font-ui)}
footer .fnav a{margin:0 8px;color:var(--text)}
footer .copy{margin-top:10px}
#page-top{position:fixed;right:16px;bottom:16px;width:40px;height:40px;border-radius:8px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;opacity:.85;z-index:900}

/* ===== レスポンシブ ===== */
@media (max-width:900px){
  .post-list{grid-template-columns:repeat(3,1fr);gap:20px 14px}
  .post-list-row > .card{flex-basis:calc((100% - 28px) / 3)}
  .post-list-panel{grid-auto-columns:calc((100% - 28px) / 3)}
}
@media (max-width:600px){
  #container{padding:10px 10px 40px}
  .post-list{grid-template-columns:repeat(2,1fr);gap:16px 10px}
  .post-list-row{gap:10px}
  .post-list-row > .card{flex-basis:calc((100% - 10px) / 2.3)}
  .row-prev{left:-6px}.row-next{right:-6px}
  .post-list-panel{grid-auto-columns:calc((100% - 10px) / 2);gap:10px}
  .home-top-widgets{gap:6px}
  .home-h .h-wrap h2{font-size:22px}
  .home-d .home-logo img{max-height:44px}
  .home-d .home-title{font-size:24px}
  .home-d p{font-size:12px}
  .single-wrap{padding:16px 14px}
  .post-list .title{font-size:12px;height:calc(12px * 1.5 * 3 + 10px)}
}
/* アンケート：スマホでは1行に収まるよう縮小 */
@media (max-width:600px){
.survey-form,.survey-done{padding:16px 12px}
.survey-lead{font-size:13px}
.survey-label{font-size:13px}
.survey-scale{gap:5px;justify-content:space-between}
.survey-scale span:not(.survey-end){width:34px;height:34px;line-height:32px;font-size:14px}
.survey-end{font-size:11px;letter-spacing:-.02em}
}
@media (max-width:360px){
.survey-scale span:not(.survey-end){width:30px;height:30px;line-height:28px;font-size:13px}
.survey-end{font-size:10px}
}
.contact{font-family:var(--font-ui);font-size:11px;color:var(--muted);margin:6px 0 0}.contact a{color:var(--muted)}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:rgba(60,40,50,.92);color:#fff;font-family:var(--font-ui);font-size:13px;padding:10px 18px;border-radius:999px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:1000}.toast.show{opacity:1;transform:translate(-50%,0)}

/* ヘッダー下の検索窓（作品・キャラ検索の導線） */
.topsearch{margin-top:var(--header-h);background:var(--nav);border-bottom:1px solid var(--border);padding:10px 12px}
.topsearch + .home-d,.topsearch + .page-d,.topsearch + #container{margin-top:0}
.topsearch .search-form{max-width:720px;margin:0 auto}
.topsearch .search-form input[type=search]{background:var(--bg-card);color:var(--text-strong)}
.topsearch .search-form input[type=search]::placeholder{color:var(--muted);opacity:1}
.works-list a span{font-size:11px;color:var(--muted);margin-left:3px}
.topsearch-inline{margin:14px 0 4px;background:transparent;border:0;padding:0}
.topsearch-inline .search-form{max-width:none}
.topsearch-inline .search-form input[type=search]{border-color:var(--accent)}

/* ストア（作品紹介）ページ */
.ec-badge{position:absolute;left:8px;bottom:8px;z-index:3;background:rgba(255,255,255,.92);color:var(--text-strong);font-size:11px;font-weight:700;padding:2px 8px;border-radius:12px;font-family:var(--font-ui)}
.ec-badge-sale{background:var(--accent-strong);color:#fff}
.ec-item .ec-head{display:flex;gap:20px;align-items:flex-start;margin-bottom:20px}
.ec-item .ec-cover{flex:0 0 40%;max-width:360px}
.ec-item .ec-cover img{width:100%;height:auto;border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.15)}
.ec-item .ec-info{flex:1;min-width:0}
.ec-pricebox{font-size:22px;font-weight:700;color:var(--accent-strong);margin-bottom:10px}
.ec-pricebox .ec-list{font-size:14px;color:var(--muted);text-decoration:line-through;font-weight:400}
.ec-pricebox .ec-off{font-size:13px;background:var(--accent-strong);color:#fff;padding:2px 8px;border-radius:999px;vertical-align:middle}
.ec-pricebox .ec-until{font-size:12px;color:var(--muted);font-weight:400}
.ec-table{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:14px}
.ec-table th{text-align:left;width:7em;color:var(--muted);font-weight:400;padding:6px 4px;border-bottom:1px solid var(--border);vertical-align:top}
.ec-table td{padding:6px 4px;border-bottom:1px solid var(--border)}
.ec-tag{display:inline-block;margin:0 6px 4px 0;font-size:12px;padding:2px 8px;border-radius:999px;background:var(--nav);color:var(--text)}
.ec-btn{display:block;text-align:center;background:var(--accent);color:#fff!important;font-weight:700;padding:14px 18px;border-radius:999px;text-decoration:none;font-size:16px;box-shadow:0 3px 10px rgba(var(--accent-rgb),.35)}
.ec-btn:hover{background:var(--accent-strong)}
.ec-movie{margin:20px 0;position:relative;padding-top:66.6%}
.ec-movie iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.ec-samples{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;margin:20px 0}
.ec-samples img{width:100%;height:auto;border-radius:6px;border:1px solid var(--border)}
.ec-note{font-size:12px;color:var(--muted);margin-top:24px}
.ec-note .ec-btn{margin-top:10px;font-size:15px}
@media (max-width:640px){
  .ec-item .ec-head{flex-direction:column;gap:14px}
  .ec-item .ec-cover{flex:none;max-width:100%;width:100%}
  .ec-item .ec-cover img{max-height:70vh;width:auto;max-width:100%;display:block;margin:0 auto}
  .ec-samples{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  #logo{max-width:calc(100% - 110px);overflow:hidden;text-overflow:ellipsis}
  #logo .logo-mincho{font-size:15px;letter-spacing:.03em}
  #logo .logo-mincho b{font-size:13px}
}

/* 価格比較（販売ストア一覧） */
.ec-offers{margin-bottom:14px}
.ec-offers-h{font-size:12px;color:var(--muted);letter-spacing:.1em;margin-bottom:6px;display:flex;align-items:center;gap:8px}
.ec-excl,.ec-badge-ex{display:inline-block;background:#2b2226;color:#ffd700;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;letter-spacing:.05em}
.ec-badge-ex{position:absolute;left:8px;top:34px;z-index:3;font-size:10px}
.ec-offer{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;margin-bottom:6px;background:var(--bg-card);text-decoration:none;color:var(--text)}
.ec-offer:hover{border-color:var(--accent)}
.ec-offer-best{border:2px solid var(--accent);background:rgba(var(--accent-rgb),.05)}
.ec-offer-store{font-weight:700;min-width:5.5em;font-family:var(--font-ui)}
.ec-offer-store em{display:inline-block;font-style:normal;font-size:10px;background:var(--accent);color:#fff;padding:1px 6px;border-radius:999px;margin-left:6px;vertical-align:middle}
.ec-offer-price{flex:1}
.ec-offer-price .ec-price{font-size:18px;font-weight:700;color:var(--accent-strong)}
.ec-offer-price .ec-price-na{font-size:13px;color:var(--muted);font-weight:400}
.ec-offer-price .ec-list{font-size:12px;color:var(--muted);text-decoration:line-through}
.ec-offer-price .ec-off{font-size:11px;background:var(--accent-strong);color:#fff;padding:1px 6px;border-radius:999px;vertical-align:middle}
.ec-offer-price .ec-until{font-size:11px;color:var(--muted)}
.ec-offer-go{font-size:14px;font-weight:700;color:#fff;background:var(--accent);padding:8px 16px;border-radius:999px;white-space:nowrap;font-family:var(--font-ui);box-shadow:0 2px 6px rgba(var(--accent-rgb),.35)}
.ec-offer:hover .ec-offer-go{background:var(--accent-strong)}
.ec-badge small{font-weight:400;opacity:.8}
@media (max-width:640px){.ec-offer{flex-wrap:wrap;padding:8px 10px;row-gap:6px}.ec-offer-go{width:100%;text-align:center;padding:9px 12px;font-size:15px}.ec-disclaimer{font-size:11px;line-height:1.5}}
.post-list-image .ec-noimg{flex-direction:column;gap:6px;padding:12px;text-align:center;color:var(--muted);font-size:11px;line-height:1.5;background:repeating-linear-gradient(45deg,var(--nav) 0 8px,var(--bg-card) 8px 16px)}
.post-list-image .ec-noimg b{font-family:var(--font-ui);font-size:14px;letter-spacing:.2em;color:var(--muted)}
.post-list-image .ec-noimg small{font-size:10px;display:block}
.ec-cover-none{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:240px;border:1px dashed var(--border);border-radius:8px;color:var(--muted);text-align:center;padding:16px;font-size:12px;background:repeating-linear-gradient(45deg,var(--nav) 0 8px,var(--bg-card) 8px 16px)}
.ec-cover-none b{font-family:var(--font-ui);font-size:18px;letter-spacing:.2em}
.ec-disclaimer{font-size:11px;color:var(--muted);margin:4px 0 14px;line-height:1.5}

/* カタログ導線（作品形式タイル・絞り込み） */
.topsearch-type{padding:0 8px;border:1px solid var(--accent);border-radius:999px;background:var(--bg-card);color:var(--text-strong);font-size:14px;max-width:7em}
.cat-tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:10px}
@media (max-width:900px){.cat-tiles{grid-template-columns:repeat(3,1fr)}}
.cat-tile{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:64px;padding:12px 14px;background:var(--bg-card);border:1px solid var(--border);border-left:5px solid var(--accent);border-radius:10px;text-decoration:none;color:var(--text-strong);box-shadow:0 2px 6px rgba(var(--accent-rgb),.10);transition:transform .15s,box-shadow .15s}
.cat-tile:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(var(--accent-rgb),.2)}
.cat-tile-name{font-weight:700;font-size:15px}
.cat-tile-n{font-family:var(--font-ui);font-size:11px;color:var(--muted)}
#search-content .cat-tiles{margin:4px 0 8px}
#search-content .cat-tile{min-height:auto;padding:8px 10px;flex-direction:row;align-items:center;justify-content:space-between}
.cat-tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;margin:0 0 6px;scrollbar-width:none}
.cat-tab{flex:0 0 auto;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--bg-card);color:var(--text);text-decoration:none;font-size:13px;white-space:nowrap}
.cat-tab span{font-size:10px;color:var(--muted);margin-left:4px}
.cat-tab-on{background:var(--accent);border-color:var(--accent);color:#fff}.cat-tab-on span{color:rgba(255,255,255,.8)}
.cat-filter{background:var(--bg-card);border:1px solid var(--border);border-radius:10px;padding:10px 12px;margin-bottom:14px;font-family:var(--font-ui)}
.cat-filter-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.cat-active{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;color:var(--muted)}
.cat-active-h{margin-right:2px}
.cat-clear{font-size:12px;color:var(--accent-strong);margin-left:4px}
.cat-sort{font-size:12px;color:var(--muted);white-space:nowrap}
.cat-sort select{margin-left:6px;padding:5px 8px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);color:var(--text-strong);font-size:13px}
.cat-facets{margin-top:8px;border-top:1px solid var(--border)}
.cat-facet{border-bottom:1px solid var(--border)}
.cat-facet summary{cursor:pointer;padding:9px 4px;font-size:13px;font-weight:700;color:var(--text-strong);list-style:none;display:flex;align-items:center}
.cat-facet summary::-webkit-details-marker{display:none}
.cat-facet summary::before{content:"▸";color:var(--accent);margin-right:6px;font-size:11px;transition:transform .15s}
.cat-facet[open] summary::before{transform:rotate(90deg)}
.cat-facet summary small{font-weight:400;color:var(--muted);margin-left:6px;font-size:11px}
.cat-chips{display:flex;flex-wrap:wrap;gap:6px;padding:2px 4px 10px}
.cat-chips-many{max-height:150px;overflow-y:auto}
.cat-chip{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;border:1px solid var(--border);background:var(--nav);color:var(--text);text-decoration:none;font-size:12px;line-height:1.3}
.cat-chip span{font-size:10px;color:var(--muted);margin-left:4px}
.cat-chip:hover{border-color:var(--accent)}
.cat-chip-on{background:var(--accent);border-color:var(--accent);color:#fff}.cat-chip-on span{color:rgba(255,255,255,.85)}.cat-chip-on b{margin-left:5px;font-weight:400}
@media (max-width:600px){
  .cat-tiles{grid-template-columns:repeat(2,1fr);gap:8px}
  .cat-tile{min-height:auto;padding:10px 12px}
  .cat-tile-name{font-size:14px}
  .cat-filter-top{flex-direction:column;align-items:flex-start}
  .cat-sort{width:100%;display:flex;align-items:center}.cat-sort select{flex:1}
  .topsearch-type{font-size:13px;max-width:6em}
}

/* 検索付きプルダウン（絞り込み） */
.cat-selects{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 14px;padding:10px 4px 6px}
.cat-select label{display:block;font-size:12px;font-weight:700;color:var(--text-strong);margin-bottom:4px}
.cat-select label small{font-weight:400;color:var(--muted);margin-left:6px;font-size:11px}
.cat-select-box{position:relative}
.cat-select-box input{width:100%;box-sizing:border-box;padding:8px 44px 8px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;background:var(--bg-card);color:var(--text-strong);outline:none}
.cat-select-box input:focus{border-color:var(--accent)}
.cat-select-on input{border-color:var(--accent);background:rgba(var(--accent-rgb),.06);font-weight:700}
.cat-select-arrow{position:absolute;right:0;top:0;bottom:0;width:44px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:20px;line-height:1;border:0;background:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.cat-select-arrow:active{color:var(--accent)}
.cat-select-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:22px;height:22px;line-height:22px;text-align:center;border-radius:50%;background:var(--accent);color:#fff;text-decoration:none;font-size:13px}
.cat-select-list{position:absolute;left:0;right:0;top:calc(100% + 4px);max-height:240px;overflow-y:auto;margin:0;padding:4px 0;list-style:none;background:var(--bg-card);border:1px solid var(--border);border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.12);z-index:20}
.cat-select-list li a{display:flex;justify-content:space-between;align-items:center;padding:7px 12px;font-size:13px;color:var(--text);text-decoration:none}
.cat-select-list li a:hover,.cat-select-list li a.on{background:var(--nav);color:var(--accent-strong)}
.cat-select-list li a span{font-size:11px;color:var(--muted)}
.cat-select-empty{padding:8px 12px;font-size:12px;color:var(--muted)}
@media (max-width:600px){.cat-selects{grid-template-columns:1fr}.cat-select-box input{font-size:16px}}
.cat-price{display:flex;align-items:center;gap:10px;padding:10px 4px 4px;border-bottom:1px solid var(--border)}
.cat-price-h{font-size:12px;font-weight:700;color:var(--text-strong);white-space:nowrap}
.cat-price .cat-chips{padding:0}
@media (max-width:600px){.cat-price{flex-direction:column;align-items:flex-start;gap:6px}}

/* 絞り込みパネル：コンパクト化（ラベル：コントロール を横並び） */
.cat-filter{padding:8px 12px 6px}
.cat-result{font-size:13px;color:var(--muted)}.cat-result b{font-size:20px;color:var(--accent-strong);margin-right:2px}
.cat-active{padding:4px 0 6px}
.cat-facets{margin-top:4px}
.cat-price{padding:8px 0 6px;gap:8px}
.cat-price-h,.cat-select label{width:auto;min-width:4.6em;flex:none;margin:0;font-size:12px;font-weight:700;color:var(--text-strong);white-space:nowrap}
.cat-price-h::after,.cat-select label::after{content:"："}
.cat-selects{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 14px;padding:8px 0 2px}
.cat-select{display:flex;align-items:center;gap:6px}
.cat-select-box{flex:1;min-width:0}
.cat-select-box input{padding:6px 28px 6px 10px;font-size:13px}
.cat-chip{padding:4px 9px}
@media (max-width:600px){
  .cat-selects{grid-template-columns:1fr;gap:6px}
  .cat-price{flex-direction:row;align-items:flex-start;gap:8px}
  .cat-price .cat-chips{gap:5px}
  .cat-chip{padding:4px 8px;font-size:12px}
  .cat-filter-top{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px} /* 件数が4桁でも1行に */
  .cat-result{white-space:nowrap;flex:0 0 auto}.cat-result b{font-size:18px}
  .cat-sort{width:auto;flex:0 1 auto;min-width:0}.cat-sort .cat-sort-h{display:none}.cat-sort select{margin-left:0;padding:4px 4px;font-size:12px;min-width:0;max-width:100%}
  .cat-select-box input{font-size:16px;padding:5px 28px 5px 10px}
}
.cat-loading{opacity:.6;pointer-events:none}

/* 画像ポップアップ */
#ec-lightbox{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center}
#ec-lightbox[hidden]{display:none}
#ec-lightbox img{max-width:96vw;max-height:92vh;object-fit:contain;border-radius:4px;box-shadow:0 4px 30px rgba(0,0,0,.6)}
#ec-lightbox button{position:absolute;border:none;background:rgba(255,255,255,.15);color:#fff;cursor:pointer;border-radius:50%;width:44px;height:44px;font-size:26px;line-height:44px;padding:0}
#ec-lightbox button:hover{background:rgba(255,255,255,.3)}
.ec-lb-close{top:12px;right:12px;font-size:28px!important}
.ec-lb-prev{left:10px;top:50%;transform:translateY(-50%)}.ec-lb-next{right:10px;top:50%;transform:translateY(-50%)}
.ec-lb-n{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);color:#fff;font-family:var(--font-ui);font-size:12px;background:rgba(0,0,0,.5);padding:3px 10px;border-radius:999px}
.ec-samples a,.ec-cover a{cursor:zoom-in}
@media (max-width:600px){.ec-lb-prev,.ec-lb-next{display:none}}

/* 作品ページ・一覧ページの見出し帯をコンパクトに（タイトル大きく、余白小さく） */
.page-d-compact{padding:10px 16px 12px;background:linear-gradient(180deg,rgba(var(--accent-rgb),.13),rgba(var(--accent-rgb),.05));border-bottom:2px solid var(--accent)}
.page-d-compact .breadcrumb a,.page-d-compact .breadcrumb span{color:var(--text)}
.page-d-compact .breadcrumb{margin:0 0 4px}
.page-d-compact h1{font-size:34px;line-height:1.25}
.page-d-compact h1 small{display:none}
.page-d-compact .desc{margin:4px 0 0;font-size:12px}
.page-d-compact .fav-btn-lg{margin-top:6px;padding:5px 14px;font-size:13px}
.page-d-compact + #container{padding-top:12px}
@media (max-width:600px){.page-d-compact{padding:8px 12px 10px}.page-d-compact h1{font-size:24px}.page-d-compact + #container{padding-top:8px}}
.ec-table .ec-tag{margin:0 4px 4px 0;padding:2px 8px;background:rgba(var(--accent-rgb),.10);color:var(--accent-strong);border:1px solid rgba(var(--accent-rgb),.25);font-size:12px;line-height:1.4}
.ec-table .ec-tag:hover{background:var(--accent);color:#fff}

/* ストアサイトのカード：左上は作品形式ラベル（角丸なし・控えめ）、価格は大きく */
body.ec-store .post-list-cat{z-index:4;background:rgba(255,255,255,.96);color:var(--accent-strong);border:1px solid rgba(var(--accent-rgb),.45);border-radius:4px;font-size:11px;font-weight:700;padding:2px 7px;box-shadow:0 1px 4px rgba(0,0,0,.25)}
body.ec-store .ec-badge{font-size:13px;padding:3px 10px;border-radius:8px;white-space:nowrap;max-width:calc(100% - 64px);overflow:hidden;text-overflow:ellipsis;line-height:1.3;display:inline-flex;align-items:baseline;gap:4px}
body.ec-store .ec-badge em{font-style:normal;font-size:11px;font-weight:700;opacity:.9}
body.ec-store .ec-badge b{font-size:17px;font-weight:800;letter-spacing:.01em}
body.ec-store .ec-badge small{font-size:11px;margin-left:4px;opacity:.85}
@media (max-width:600px){body.ec-store .ec-badge{font-size:12px;padding:2px 8px;max-width:calc(100% - 16px)}body.ec-store .ec-badge b{font-size:16px}body.ec-store .ec-badge em{font-size:10px}body.ec-store .ec-badge small{display:none}body.ec-store .post-list-like{display:none}}

/* ストアサイト：ヘッダーと説明帯を濃いワインレッドに */
body.ec-store #header{background:linear-gradient(180deg,var(--hd1),var(--hd2));border-bottom:1px solid rgba(255,255,255,.18)}
body.ec-store #logo .logo-text,body.ec-store #logo .logo-mincho,body.ec-store #logo .logo-mincho b{color:#fff}
body.ec-store .hbtn{color:#fff}
body.ec-store .home-d p{background:var(--band);color:#fff;border-top:0;border-bottom:0;font-size:13px;padding:8px 16px}
body.ec-store .home-d-img img{display:block}

/* パネルの閉じるボタン（大きめ。スクロールしても右上に留まる） */
.panel-x{position:sticky;top:0;float:right;z-index:3;width:48px;height:48px;line-height:48px;text-align:center;border-radius:50%;background:var(--accent);color:#fff;font-size:32px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.25);margin:-8px -8px 0 8px}
.panel-x:hover{background:var(--accent-strong)}
#search-content .inner{position:relative}
#search-content h2:first-of-type,#menu-content h2:first-of-type{margin-top:8px}

/* カテゴリタイル：見出し級の存在感（中央寄せ・太字明朝・アイコン） */
body.ec-store .cat-tile{flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:0;min-height:0;padding:10px 10px 10px 54px;border:0;border-left:0;border-radius:12px;color:#fff;background:linear-gradient(160deg,rgba(255,255,255,.16),rgba(0,0,0,.10)),linear-gradient(160deg,var(--accent),var(--accent-strong));box-shadow:0 3px 10px rgba(var(--accent-rgb),.25);position:relative;overflow:hidden}
body.ec-store .cat-tile::after{content:"";position:absolute;inset:auto -30% -60% auto;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.07)}
body.ec-store .cat-tile:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(var(--accent-rgb),.32)}
body.ec-store .cat-tile-ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.16);color:#fff}
body.ec-store .cat-tile-ic svg{width:22px;height:22px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}
body.ec-store .cat-tile-ic svg{width:100%;height:100%}
body.ec-store .cat-tile-txt{display:flex;flex-direction:column;align-items:flex-start;line-height:1.25}
body.ec-store .cat-tile-name{font-family:"Shippori Mincho B1","Shippori Mincho","Hiragino Mincho ProN",serif;font-weight:800;font-size:16px;letter-spacing:.05em;color:#fff;-webkit-text-stroke:.35px #fff;paint-order:stroke fill;text-shadow:0 1px 0 rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.35)}
body.ec-store .cat-tile-n{font-size:11px;font-weight:400;color:#fff;opacity:.92;font-family:var(--font-ui);text-shadow:0 1px 3px rgba(0,0,0,.4)}
#search-content .cat-tile .cat-tile-ic{display:none}
#search-content .cat-tile{min-height:auto;padding:8px 10px;flex-direction:row;justify-content:center;gap:8px;border-radius:8px}
@media (max-width:600px){body.ec-store .cat-tile{padding:9px 6px 9px 50px}body.ec-store .cat-tile-ic{left:10px;width:30px;height:30px}body.ec-store .cat-tile-ic svg{width:19px;height:19px}body.ec-store .cat-tile-name{font-size:15px;letter-spacing:.02em}}

/* カテゴリ名：PCでは「・」で改行して2行に、スマホでは1行 */
body.ec-store .cat-tile-w2::before{content:"・"}
@media (min-width:901px){body.ec-store .cat-tile-w{display:block;line-height:1.2;white-space:nowrap}body.ec-store .cat-tile-w2::before{content:none}body.ec-store .cat-tile-name{font-size:15px;letter-spacing:0}body.ec-store .cat-tile{padding:8px 6px 8px 50px}body.ec-store .cat-tile-ic{left:10px;width:32px;height:32px}}

/* ストアサイト：検索窓まわりの余白を詰め、スマホで文字が切れないように */
body.ec-store .topsearch-inline{margin:4px 0 0}
body.ec-store .topsearch-inline + .home-h,body.ec-store .home-top-widgets + .home-h{margin-top:14px}
body.ec-store .topsearch-inline .search-form{gap:6px}
@media (max-width:600px){
  body.ec-store #container{padding-top:6px}
  body.ec-store .topsearch-inline .search-form input[type=search]{font-size:14px;padding:9px 10px;min-width:0}
  body.ec-store .topsearch-inline .search-form input[type=search]::placeholder{font-size:13px}
  body.ec-store .topsearch-type{max-width:5.2em;font-size:12px;padding:0 4px}
  body.ec-store .topsearch-inline .search-form button{padding:9px 12px;font-size:14px;white-space:nowrap}
  body.ec-store .home-h{margin:18px 0 10px}
}

/* スマホ専用の改行位置（説明文など） */
.br-sp{display:none}
@media (max-width:600px){
  .br-sp{display:block;height:0}
  body.ec-store .home-d p{font-size:10px;padding:4px 10px;line-height:1.45;text-align:center;letter-spacing:0}
  body.ec-store #logo .logo-mincho{font-size:16px;letter-spacing:0}
  body.ec-store #logo{max-width:calc(100% - 96px)}
}
body.ec-store #logo .logo-mincho{text-shadow:0 1px 0 rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.4)}
/* 2段ロゴ：サイト名（大）＋サブタイトル（小）。ヘッダー高さ 50px に収める */
#logo .logo-2l{display:flex;flex-direction:column;align-items:center;line-height:1.1}
#logo .logo-2l .logo-sub{display:block;font-family:var(--font-ui);font-weight:600;font-size:10px;letter-spacing:.04em;margin-top:2px;opacity:.9}
body.ec-store #logo .logo-2l{font-size:22px}
@media (max-width:600px){body.ec-store #logo .logo-2l{font-size:19px}#logo .logo-2l .logo-sub{font-size:9px;margin-top:1px}}
.age-site small{display:block;font-family:var(--font-ui);font-weight:600;font-size:13px;color:var(--muted);margin-top:4px;letter-spacing:.02em}
.ec-coming{background:var(--bg-card);border:1px dashed var(--border);border-radius:10px;padding:18px 12px;text-align:center;color:var(--muted);font-size:13px;margin:0}
.ec-badge .ec-low{font-style:normal;font-size:10px;font-weight:700;background:#ffd54a;color:#5a3a00;padding:1px 6px;border-radius:999px;margin-right:2px}
.ec-low-tag{display:inline-block;font-size:11px;font-weight:700;background:#ffd54a;color:#5a3a00;padding:1px 8px;border-radius:999px;margin-left:6px}

/* ストア別ランキングのタブ（下線型：カードの角と合わせて角丸を使わない） */
.rank-tabs{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;margin:-6px 0 12px;border-bottom:2px solid var(--border)}
.rank-tab{flex:0 0 auto;position:relative;border:0;background:transparent;color:var(--muted);font-family:var(--font-ui);font-size:14px;font-weight:700;letter-spacing:.02em;padding:10px 16px 9px;margin-bottom:-2px;border-bottom:2px solid transparent;border-radius:0;cursor:pointer;white-space:nowrap;transition:color .15s}
.rank-tab:hover{color:var(--accent-strong)}
.rank-tab.on{color:var(--accent-strong);box-shadow:inset 0 -3px 0 var(--accent-strong)}
@media (max-width:600px){.rank-tab{font-size:13px;padding:9px 12px 8px}}
/* 2段目のタブ（ストア別人気ランキングの作品形式）：丸いチップ状で1段目と区別 */
.rank-tabs.sub,.rank-tabs.pill{border-bottom:0;gap:6px;margin:0 0 10px;padding:0 2px}
.rank-tabs.pill{margin:0 0 10px}
.rank-tabs.pill .rank-tab{font-size:13px;padding:6px 14px}
.rank-tabs.sub .rank-tab,.rank-tabs.pill .rank-tab{font-size:12px;padding:5px 12px;margin:0;border:1px solid var(--border);border-radius:999px;color:var(--muted);background:#fff;line-height:1.3}
.rank-tabs.sub .rank-tab.on,.rank-tabs.pill .rank-tab.on{color:#fff;background:var(--accent-strong);border-color:var(--accent-strong);box-shadow:none}
body.ec-store .rank-tabs.sub,body.ec-store .rank-tabs.pill{margin:0 0 8px}
@media (max-width:600px){.rank-tabs.sub .rank-tab{font-size:12px;padding:5px 10px}.rank-tabs.pill .rank-tab{font-size:13px;padding:6px 12px}body.ec-store .rank-tabs.sub,body.ec-store .rank-tabs.pill{margin:0 0 6px}body.ec-store .rank-tabs.sub .rank-tab{padding:5px 10px}}

/* 年齢確認（18歳未満お断り） */
.pr-notice{margin-top:var(--header-h);font-size:11px;line-height:1.2;text-align:center;color:rgba(255,255,255,.88);background:var(--accent-strong);padding:5px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pr-notice + .home-d,.pr-notice + .page-d,.pr-notice + .topsearch,.pr-notice + #container{margin-top:0}
#age-gate{position:fixed;inset:0;z-index:3000;background:linear-gradient(160deg,var(--band),var(--hd2));display:flex;align-items:center;justify-content:center;padding:20px}
.age-ok #age-gate{display:none}
html:not(.age-ok) body{overflow:hidden}
.age-box{background:var(--bg-card);border-radius:14px;max-width:460px;width:100%;padding:26px 24px 20px;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.4)}
.age-site{word-break:keep-all;font-family:"Shippori Mincho B1","Shippori Mincho","Hiragino Mincho ProN",serif;font-weight:800;font-size:24px;line-height:1.35;color:var(--accent-strong);margin:0 0 10px;letter-spacing:.02em;text-shadow:0 1px 0 #fff,0 2px 6px rgba(var(--accent-rgb),.28)}
.age-box h2{font-size:17px;margin:0 0 12px;color:var(--muted);letter-spacing:.18em;font-weight:600}
.age-lead{font-size:14px;line-height:1.8;color:var(--text);margin:0 0 20px;text-wrap:balance}
.age-btns{display:flex;flex-direction:column;gap:10px}
.age-btns button,.age-btns a{display:block;width:100%;box-sizing:border-box;border:0;border-radius:999px;padding:13px 16px;font-size:16px;font-weight:700;font-family:inherit;cursor:pointer;text-decoration:none;line-height:1.3}
.age-btns button span,.age-btns a span{display:block;font-size:11px;font-weight:400;opacity:.85;margin-top:3px}
#age-yes{background:var(--accent);color:#fff;box-shadow:0 3px 10px rgba(var(--accent-rgb),.35)}
#age-yes:hover{background:var(--accent-strong)}
#age-no{background:var(--nav);color:var(--muted);border:1px solid var(--border)}
.age-note{font-size:11px;color:var(--muted);margin:16px 0 0;line-height:1.6}
@media (max-width:600px){.age-box{padding:22px 18px 16px}.age-site{font-size:21px}.age-box h2{font-size:15px}.age-lead{font-size:13px;line-height:1.7;margin-bottom:16px}}

/* ストアサイト：ボタンを淡いピンク面＋濃ピンク文字・細枠に（検索・カテゴリタイル・年齢確認） */
body.ec-store .search-form button,body.ec-store #age-yes{background:linear-gradient(160deg,rgba(255,255,255,.45),rgba(255,255,255,0)),var(--btn-bg);color:var(--btn-fg);border:1px solid var(--btn-fg);box-shadow:0 2px 8px rgba(var(--accent-rgb),.18)}
body.ec-store .search-form button:hover,body.ec-store #age-yes:hover{background:var(--btn-fg);color:#fff}
/* 検索ボタンはお気に入りの♥と同じ色（--accent）で塗る */
body.ec-store .search-form button{background:var(--accent);color:#fff;border:1px solid var(--accent);box-shadow:none}
body.ec-store .search-form button:hover{background:var(--accent-strong);border-color:var(--accent-strong)}
/* ストア作品カードの日付（取り込み日）は出さない（お気に入り等の JS 描画分も含む） */
body.ec-store .post-list-time{display:none}
body.ec-store .post-list .title{padding-bottom:10px}
/* PR 表示（景表法のため消せない）と説明帯は小さく */
body.ec-store .pr-notice{font-size:10px;padding:3px 10px;line-height:1.3}
body.ec-store .home-d p{font-size:12px;padding:6px 16px}
@media (max-width:600px){body.ec-store .pr-notice{font-size:9px;padding:3px 8px}body.ec-store .home-d p{font-size:9px;padding:4px 10px;line-height:1.4}}
/* PC 用ヘッダー（DLsite/FANZA 風）：☰・サイト名・検索窓の1段（2段目のカテゴリ行は 2026-09-26 に廃止） */
.hd-search,.hd-cats,.pc-side{display:none}
@media (min-width:901px){
  body.ec-store{--header-h:52px;--side-w:180px}
  body.ec-store #header{height:52px}
  body.ec-store .hbtn{width:52px;height:52px}
  body.ec-store #search-open{display:none}
  body.ec-store #logo{left:60px;top:26px;transform:translateY(-50%);max-width:none}
  body.ec-store .hd-search{display:block;position:absolute;left:270px;right:24px;top:9px;max-width:640px}
  body.ec-store .hd-search .search-form{gap:6px}
  body.ec-store .hd-search .search-form input[type=search]{padding:7px 12px;font-size:14px;background:#fff;color:var(--text-strong);border-color:transparent}
  body.ec-store .hd-search .search-form button{padding:7px 16px;font-size:14px;font-weight:800;white-space:nowrap;flex-shrink:0}
  body.ec-store .hd-search .topsearch-type{font-size:13px;max-width:6em;border-color:rgba(255,255,255,.5);background:#fff}
  body.ec-store .topsearch-inline{display:none}
  body.ec-store .topsearch{display:none} /* ヘッダーに検索窓があるので、ヘッダー下の検索バーは出さない */
  /* 左サイドバー（FANZA 風・常時表示）。本文はその分だけ右にずらす */
  body.ec-store{padding-left:var(--side-w)}
  body.ec-store .pc-side{display:block;position:fixed;top:var(--header-h);left:0;bottom:0;width:var(--side-w);box-sizing:border-box;overflow-y:auto;background:linear-gradient(180deg,var(--hd2),var(--hd2));border-right:1px solid rgba(255,255,255,.12);padding:10px 0 30px;z-index:900;font-family:var(--font-ui);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent} /* ヘッダーと同じ濃色 */
  body.ec-store .pc-side::-webkit-scrollbar{width:6px}
  body.ec-store .pc-side::-webkit-scrollbar-track{background:transparent}
  body.ec-store .pc-side::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:999px;border:1px solid transparent;background-clip:padding-box}
  body.ec-store .pc-side:hover::-webkit-scrollbar-thumb{background:rgba(238,102,153,.7);background-clip:padding-box}
  body.admin-bar.ec-store .pc-side{top:calc(var(--header-h) + 32px)}
  body.ec-store .pc-side h3{font-size:11px;letter-spacing:.12em;color:rgba(255,255,255,.55);margin:14px 12px 4px;padding:0;font-weight:700}
  body.ec-store .pc-side ul{list-style:none;margin:0;padding:0}
  body.ec-store .pc-side li a{display:flex;align-items:center;gap:7px;padding:7px 10px 7px 12px;color:#fff;text-decoration:none;font-size:13px;font-weight:600;line-height:1.3;border-left:3px solid transparent}
  body.ec-store .pc-side li a:hover{background:rgba(255,255,255,.1)}
  body.ec-store .pc-side li a.on{background:rgba(255,255,255,.14);color:var(--accent);border-left-color:var(--accent)}
  body.ec-store .pc-side .ic{display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0;font-size:15px}
  body.ec-store .home-d p,body.ec-store .home-d .home-d-img{max-width:none} /* 説明帯は本文幅いっぱいに（左右の空白をなくす） */
  body.ec-store .pc-side .ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  body.ec-store .pr-notice + .topsearch + .page-d,body.ec-store .pr-notice + .topsearch + #container,body.ec-store .pr-notice + .topsearch + .home-d{margin-top:0}
  body.ec-store .topsearch + .page-d,body.ec-store .topsearch + #container{margin-top:var(--header-h)}
}
body.ec-store .cat-tile{background:linear-gradient(160deg,rgba(255,255,255,.45),rgba(255,255,255,0)),var(--btn-bg);border:1px solid var(--btn-fg);color:var(--btn-fg);box-shadow:0 3px 10px rgba(var(--accent-rgb),.18)}
body.ec-store .cat-tile::after{background:rgba(255,255,255,.35)}
body.ec-store .cat-tile-ic{background:rgba(184,21,90,.12);color:var(--btn-fg)}
body.ec-store .cat-tile-ic svg{filter:none}
body.ec-store .cat-tile-name{color:var(--btn-fg);-webkit-text-stroke:0;text-shadow:none}
body.ec-store .cat-tile-n{color:var(--btn-fg);opacity:.85;text-shadow:none}
@media (max-width:600px){
  body.ec-store .search-form button{font-weight:800;-webkit-text-stroke:.3px currentColor;white-space:nowrap;flex-shrink:0}
  body.ec-store .search-form input{min-width:0}
  body.ec-store .cat-tile-name{font-weight:900;-webkit-text-stroke:.45px currentColor;paint-order:stroke fill}
  body.ec-store .cat-tile-n{font-weight:700;opacity:.95}
  body.ec-store #age-yes{font-weight:900;-webkit-text-stroke:.3px currentColor}
  body.ec-store #age-yes span{font-weight:700;opacity:.95}
}
@media (max-width:380px){body.ec-store .cat-tile{padding:8px 4px 8px 44px}body.ec-store .cat-tile-ic{left:8px;width:28px;height:28px}body.ec-store .cat-tile-ic svg{width:17px;height:17px}body.ec-store .cat-tile-name{font-size:13px;letter-spacing:0;-webkit-text-stroke:.35px currentColor}}

/* ---------- ストアサイト：見出しを帯状に、枠の間隔を詰める（v1.24.3） ---------- */
body.ec-store .home-h{margin:24px 0 12px;padding-bottom:5px;border-bottom:2px solid var(--accent)}
body.ec-store .home-h .h-wrap h3{font-size:11px;line-height:1.2}
body.ec-store .home-h .h-wrap h2{color:#9e1247;font-size:28px;font-weight:800;line-height:1.2;letter-spacing:.01em}
body.ec-store .home-h .more{color:#9e1247;margin-bottom:4px;font-size:14px}
body.ec-store .page-d h1{color:#9e1247;font-weight:800} /* 作品ページ・一覧ページの見出しも枠見出しと同じ濃さに */
@media (max-width:600px){ /* 一覧ページの作品形式タブ：横スクロールさせず全部を1行に収める */
  body.ec-store .cat-tabs{gap:4px;padding:2px 0 4px;margin:0 0 4px;overflow:hidden}
  body.ec-store .cat-tab{flex:1 1 0;min-width:0;padding:6px 0;text-align:center;font-size:12px}
  /* 絞り込み枠の「カテゴリ」行：見出しを出さず、チップを均等幅で1行に */
  body.ec-store .cat-types{display:block}
  body.ec-store .cat-types .cat-price-h{display:none}
  body.ec-store .cat-types .cat-chips{display:flex;flex-wrap:nowrap;gap:4px}
  body.ec-store .cat-types .cat-chip{flex:1 1 0;min-width:0;padding:5px 0;justify-content:center;text-align:center;font-size:12px;white-space:nowrap}
}
body.ec-store .topsearch-inline + .home-h,body.ec-store .home-top-widgets + .home-h{margin-top:12px}
body.ec-store .post-list-row{padding:4px 2px 8px}
body.ec-store .rank-tabs{margin:-2px 0 8px}
body.ec-store .rank-panel > .post-row{margin-top:0}
@media (max-width:600px){
  body.ec-store .home-h{margin:12px 0 8px;padding-bottom:4px}
  body.ec-store .home-h .h-wrap h3{display:none}
  body.ec-store .home-h .h-wrap h2{font-size:22px}
  body.ec-store .home-h .more{font-size:13px;margin-bottom:2px}
  body.ec-store .post-list-row{gap:8px;padding:2px 2px 6px}
  body.ec-store .post-list-row > .card{flex-basis:calc((100% - 8px) / 2.3)}
  body.ec-store .rank-tabs{margin:-2px 0 6px}
  body.ec-store .rank-tab{padding:7px 10px 6px}
  body.ec-store .post-list .title{padding:6px 8px 0;font-size:12px;line-height:1.45;height:calc(12px * 1.45 * 3 + 6px)}
  body.ec-store .post-list-time{padding:0 8px 6px;font-size:10px}
  body.ec-store .post-list .title{padding-bottom:8px}
  body.ec-store .ec-disclaimer{margin:4px 0 0;font-size:10px}
}

/* ---------- ストアサイト：カードを小さく敷き詰める（スマホ3列×3段／PC6列×2段）＋見出しF案（v1.24.32） ---------- */
body.ec-store .post-row .row-btn{display:none}
body.ec-store .post-list{grid-template-columns:repeat(4,1fr);gap:12px 10px} /* PC は4列（画像を大きく）v1.24.58 */
body.ec-store .post-list-row,body.ec-store .post-list-panel{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:none;grid-auto-rows:auto;grid-auto-flow:row;grid-auto-columns:auto;gap:10px 8px;overflow:visible;padding:0;scroll-snap-type:none}
body.ec-store .post-list-row > .card{flex:none;width:auto;min-width:0}
body.ec-store .post-row .post-list-row > .card:not(.card-more):nth-child(n+13){display:none} /* PC は4列×3段＝12枚まで。残りは「もっと見る」 */
body.ec-store .post-row .post-list-row.has-more > .card:not(.card-more):nth-child(n+12){display:none} /* 右下は「○○をもっと見る」タイル */
body.ec-store .post-list.post-list-row > .card.card-more{order:99;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;background:#fff;border:1px solid #2c3b64;border-radius:4px;color:#2c3b64;padding:12px;box-shadow:none;align-self:center;justify-self:center;width:88%;height:88%;box-sizing:border-box} /* 白地・細いネイビー枠、他のカードより一回り小さく中央に（v1.24.68） */
body.ec-store .post-list.post-list-row > .card.card-more:hover{background:#fce3ec;transform:none;box-shadow:none}
body.ec-store .post-list-row > .card-more span{font-size:18px;font-weight:700;line-height:1.5}
body.ec-store .post-list-row > .card-more b{display:block;font-size:22px;line-height:1.35;margin-bottom:10px;color:#cf2a68}
body.ec-store .post-list > .card{border-radius:4px;box-shadow:none;border:0;background:#fff} /* 枠線なし（v1.24.66） */
body.ec-store .post-list > .card:hover{transform:none;box-shadow:0 2px 8px rgba(207,42,104,.25)}
body.ec-store .post-list-image{padding-top:0;aspect-ratio:1/1;background:#fff} /* 画像まわりの余白は白（v1.24.66） */
body.ec-store .post-list-image img{padding:2px;box-sizing:border-box;background:#fff}
body.ec-store .post-list .title{font-size:11px;line-height:1.35;padding:2px 4px 3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:auto;max-height:2.8em;color:#333;font-weight:500}
body.ec-store .post-list-cat{font-size:11px;padding:0 4px;line-height:1.35;left:2px;top:2px;border-radius:2px;box-shadow:none}
body.ec-store .post-list-like{right:2px;bottom:24px;font-size:9px;padding:0 5px;border-radius:8px}
body.ec-store .post-list-like:before{font-size:10px}
body.ec-store .fav-btn{width:22px;height:22px;font-size:13px;line-height:22px;right:2px;top:2px;background:rgba(255,255,255,.85);box-shadow:none}
body.ec-store .fav-btn.is-fav{background:#cf2a68;color:#fff} /* マイリスト登録中は濃いピンクで分かるように */
/* 最安値の推移グラフ（v1.24.54） */
body.ec-store .ec-chart{margin:10px 0 0}
body.ec-store .ec-chart-h{font-size:13px;font-weight:700;color:#2c3b64;margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.ec-store .ec-chart-h small{font-weight:400;color:#777;font-size:11px;margin-left:8px}
body.ec-store .ec-chart svg{display:block;width:100%;height:auto;max-height:150px}
body.ec-store .ec-chart-cta{margin:6px 0 0;text-align:center}
body.ec-store .ec-chart-cta .fav-btn.fav-btn-lg{margin-top:0;font-size:13px;padding:6px 16px}

/* ---------- PC：ウィンドウ幅に応じて列数を変える（4〜6列、カード幅は約240〜280pxのまま）v1.24.59 ---------- */
@media (min-width:901px){
  body.ec-store #container{max-width:1720px}
  body.ec-store .post-list{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))} /* 一覧ページは幅に合わせて自動で列を増やす */
  body.ec-store .post-row{container-type:inline-size} /* 枠ごとの幅で列数を決める */
  @container (min-width:1250px){ /* 5列×3段＝15枚（タイルあり：14枚＋タイル） */
    body.ec-store .post-list-row,body.ec-store .post-list-panel{grid-template-columns:repeat(5,1fr)}
    body.ec-store .post-row .post-list-row > .card:not(.card-more):nth-child(n+12){display:block}
    body.ec-store .post-row .post-list-row > .card:not(.card-more):nth-child(n+16){display:none}
    body.ec-store .post-row .post-list-row.has-more > .card:not(.card-more):nth-child(n+15){display:none}
  }
  @container (min-width:1500px){ /* 6列×3段＝18枚（タイルあり：17枚＋タイル） */
    body.ec-store .post-list-row,body.ec-store .post-list-panel{grid-template-columns:repeat(6,1fr)}
    body.ec-store .post-row .post-list-row > .card:not(.card-more):nth-child(n+15){display:block}
    body.ec-store .post-row .post-list-row > .card:not(.card-more):nth-child(n+19){display:none}
    body.ec-store .post-row .post-list-row.has-more > .card:not(.card-more):nth-child(n+18){display:none}
  }
}

/* ---------- 作品ページ（スマホ）：検索窓なし → 大きな画像 → サンプル横並び → タイトル → マイリスト → 販売ストア（v1.24.40） ---------- */
body.ec-store .ec-mtitle{display:none} /* PC では従来どおり上部の見出しを使う */
body.ec-store.single .entry-tags{display:none} /* 本文末尾の #タグ一覧は出さない（ジャンルは表の中にある） */
@media (max-width:900px){
  body.ec-store.single .topsearch{display:none}
  body.ec-store.single .page-d-compact h1,body.ec-store.single .page-d-compact > .fav-btn-lg{display:none}
  body.ec-store.single .page-d-compact{padding:6px 12px 0;background:none;border:0;text-align:left} /* パンくずは枠なしでサムネの上に小さく */
  body.ec-store.single .page-d-compact .breadcrumb{margin:0;font-size:10px;color:var(--muted)}
  body.ec-store.single .page-d-compact .breadcrumb ol{justify-content:flex-start;flex-wrap:nowrap;overflow:hidden}
  body.ec-store.single .page-d-compact .breadcrumb a,body.ec-store.single .page-d-compact .breadcrumb span{color:var(--muted)}
  body.ec-store.single .page-d-compact .breadcrumb li{white-space:nowrap}
  body.ec-store.single .page-d-compact .breadcrumb li:last-child{min-width:0;overflow:hidden}
  body.ec-store.single .page-d-compact .breadcrumb span{max-width:100%}
  body.ec-store.single .page-d-compact + #container{padding-top:4px}
  body.ec-store.single .single-wrap{margin-top:0;padding:10px 10px 14px}
  body.ec-store.single .entry-meta{display:none}
  body.ec-store .ec-item{display:flex;flex-direction:column;gap:10px}
  body.ec-store .ec-item .ec-head{display:contents}
  body.ec-store .ec-item .ec-cover{order:1}
  body.ec-store .ec-item .ec-samples{order:2;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:0;padding:0 0 4px;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-snap-type:x proximity}
  body.ec-store .ec-item .ec-samples a{flex:0 0 auto;width:128px;height:96px;scroll-snap-align:start;background:#fbf4f7;border-radius:4px;overflow:hidden}
  body.ec-store .ec-item .ec-samples img{width:100%;height:100%;object-fit:cover;border-radius:4px;border:0;display:block} /* 幅を固定しないと遅延読み込みの画像が幅0のまま読まれない */
  body.ec-store .ec-item .ec-mtitle{order:3;display:block;text-align:center}
  body.ec-store .ec-item .ec-mtitle-t{margin:0 0 8px;font-size:15px;line-height:1.4;font-weight:700;color:#222;text-align:left}
  body.ec-store .ec-item .ec-mtitle .fav-btn.fav-btn-lg{margin-top:0}
  body.ec-store .ec-item .ec-info{order:4}
  body.ec-store .ec-item .ec-movie{order:5}
  body.ec-store .ec-item .ec-note{order:6;margin:0;font-size:9.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;color:#999} /* 出典の注記は1行に */
  body.ec-store .ec-item .ec-table{margin-bottom:0}
  body.ec-store .ec-item .ec-info{margin:0}
  body.ec-store.single .entry-content{margin:0;padding:0}
  body.ec-store.single .single-wrap{padding-bottom:8px}
}
body.ec-store .ec-badge{position:absolute;left:0;right:0;bottom:0;top:auto;display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:14px;padding:1px 4px;border-radius:0;background:rgba(207,42,104,.92);color:#fff;box-shadow:none;white-space:nowrap;overflow:visible;width:auto;max-width:none;min-width:100%;box-sizing:border-box;line-height:1.2}
body.ec-store .ec-badge b{font-size:15px;color:#fff;margin-left:auto;letter-spacing:-.02em}
body.ec-store .ec-badge em{font-size:12px;font-style:normal;background:#fff;color:#cf2a68;border-radius:3px;padding:0 3px;line-height:1.3;opacity:1}
body.ec-store .ec-badge small{font-size:11px;margin-left:0}
body.ec-store .ec-badge .ec-low{position:absolute;left:2px;top:auto;bottom:calc(100% + 2px);font-size:11px;background:#f2b100;color:#5a3d00;border-radius:3px;padding:0 3px;line-height:1.35;font-weight:800;margin:0}
body.ec-store .ec-badge-ex{left:2px;top:24px;font-size:9px;padding:1px 5px}
body.ec-store .post-list-time{display:none}
/* 見出し：帯にタブ型の見出しを載せる（F案） */
body.ec-store .home-h{border-bottom:2px solid #2c3b64;padding:0;margin:16px 0 8px;align-items:flex-end} /* 枠見出しはヘッダーと同じネイビー（価格の帯のピンクと区別） */
body.ec-store .home-h .h-wrap h3{display:none}
body.ec-store .home-h .h-wrap h2{display:inline-block;background:#2c3b64;color:#fff;font-size:19px;padding:6px 14px;border-radius:6px 6px 0 0;line-height:1.2;font-weight:700;letter-spacing:0}
body.ec-store .home-h .more{margin-bottom:6px;font-size:13px;color:#2c3b64}
body.ec-store .home-h .more:before{color:#2c3b64}
body.ec-store .rank-tabs{margin:0 0 6px}
body.ec-store .post-row{margin-bottom:0}
@media (max-width:900px){
  body.ec-store .post-list,body.ec-store .post-list-row,body.ec-store .post-list-panel{grid-template-columns:repeat(3,1fr);gap:6px 5px}
  body.ec-store .post-row .post-list-row > .card:nth-child(n+10){display:none} /* スマホは3列×3段 */
  body.ec-store .post-list.post-list-row > .card.card-more{display:none} /* タイルは PC のみ */
  body.ec-store .post-list .title{font-size:8.5px}
  body.ec-store .post-list-cat{font-size:9px}
  body.ec-store .fav-btn{width:18px;height:18px;font-size:11px;line-height:18px}
  body.ec-store .ec-badge{font-size:12px}
  body.ec-store .ec-badge b{font-size:13px}
  body.ec-store .ec-badge em{font-size:10px}
  body.ec-store .ec-badge small{display:none}
  body.ec-store .ec-badge .ec-low{font-size:9px}
  body.ec-store .post-list-like{display:none}
  body.ec-store .home-h{margin:12px 0 6px}
  body.ec-store .home-h .h-wrap h2{font-size:17px;padding:5px 12px}
  body.ec-store .home-h .more{font-size:12px;margin-bottom:5px}
}
/* 作品ページの大きな♡ボタンは小型化の対象外（スマホ用の指定より後ろ・強い指定で上書き） */
body.ec-store .fav-btn.fav-btn-lg{position:static;display:inline-block;width:auto;height:auto;border-radius:999px;padding:8px 18px;font-size:14px;line-height:1.4;background:var(--bg-card);box-shadow:0 1px 4px rgba(0,0,0,.2);white-space:nowrap;margin-top:10px}
body.ec-store .fav-btn.fav-btn-lg.is-fav{background:var(--accent);color:#fff}
/* トップのカテゴリパネル：薄ピンク一色・黒文字 */
body.ec-store .cat-tile{background:#fce3ec;color:#222}
body.ec-store .cat-tile::after{display:none}
body.ec-store .cat-tile-ic{background:rgba(0,0,0,.07);color:#222}
body.ec-store .cat-tile-name{color:#222;-webkit-text-stroke:0;text-shadow:none}
body.ec-store .cat-tile-n{color:#333;opacity:.8;text-shadow:none}
@media (max-width:600px){body.ec-store .cat-tile-name{-webkit-text-stroke:0}}

/* ---------- PC 作品ページ：作品名はサムネの下、「販売ストア」の位置にマイリストボタン（v1.24.77） ---------- */
@media (min-width:901px){
  body.ec-store.single .page-d-compact h1,body.ec-store.single .page-d-compact > .fav-btn-lg{display:none}
  body.ec-store.single .page-d-compact{padding:8px 20px 0;background:none;border:0;text-align:left} /* パンくずは枠なしでサムネの上に小さく（スマホと同じ） */
  body.ec-store.single .page-d-compact .breadcrumb{margin:0;font-size:11px;color:var(--muted)}
  body.ec-store.single .page-d-compact .breadcrumb ol{justify-content:flex-start}
  body.ec-store.single .page-d-compact .breadcrumb a,body.ec-store.single .page-d-compact .breadcrumb span{color:var(--muted)}
  body.ec-store.single .entry-meta{display:none} /* 「同人, 同人」のカテゴリ行は出さない */
  body.ec-store.single .single-wrap{margin-top:6px;padding-top:20px}
  body.ec-store .ec-item{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);grid-template-rows:auto auto 1fr auto auto;column-gap:20px;row-gap:0;align-items:start} /* 左列＝サムネ＋作品名＋サンプル画像、右列＝価格・情報（v1.24.89） */
  body.ec-store .ec-item .ec-head{display:contents;margin:0}
  body.ec-store .ec-item .ec-cover img{display:block}
  body.ec-store .ec-item .ec-cover{grid-column:1;grid-row:1;max-width:none}
  body.ec-store .ec-item .ec-mtitle{display:block;grid-column:1;grid-row:2;margin-top:10px}
  body.ec-store .ec-item{container-type:inline-size}
  body.ec-store .ec-item .ec-samples{grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin:12px 0 0;align-content:start} /* サムネ列の下に2列で並べる */
  body.ec-store .ec-item .ec-samples:has(a:nth-child(5)){max-height:calc((40cqw - 16px) * 3 / 4 + 6px);overflow-y:auto;padding-right:4px;scrollbar-width:thin} /* 5枚以上は2段（4枚）まで見せて、残りは枠内スクロール（v1.24.90） */
  body.ec-store .ec-item .ec-samples::-webkit-scrollbar{width:6px}
  body.ec-store .ec-item .ec-samples::-webkit-scrollbar-thumb{background:#e3c3cf;border-radius:999px}
  body.ec-store .ec-item .ec-samples a{display:block;aspect-ratio:4/3;background:#fff;border-radius:4px;overflow:hidden}
  body.ec-store .ec-item .ec-samples img{width:100%;height:100%;object-fit:cover;border-radius:4px;display:block}
  body.ec-store .ec-item .ec-info{grid-column:2;grid-row:1 / span 3}
  body.ec-store .ec-item .ec-movie{grid-column:1 / -1;grid-row:4}
  body.ec-store .ec-item .ec-note{grid-column:1 / -1;grid-row:5}
  body.ec-store .ec-item .ec-mtitle .fav-btn{display:none}
  body.ec-store .ec-item .ec-mtitle > p{margin:0}
  body.ec-store .ec-item .ec-mtitle-t{margin:0;font-size:17px;font-weight:700;line-height:1.45;color:#222}
  body.ec-store .ec-offers-h{margin-bottom:10px}
  body.ec-store .ec-offers-h .ec-offers-h-t{display:none}
  body.ec-store .ec-offers-h > p{margin:0;display:contents}
  body.ec-store .ec-offers-h .fav-btn.fav-btn-lg{margin:0;font-size:13px;padding:6px 16px}
}

/* ---------- PC：ヘッダーはスクロールで流れる（固定しない）＋ロゴをポップな太字フォントに（v1.24.69） ---------- */
body.ec-store #logo .logo-mincho{font-family:"Mochiy Pop One","Zen Maru Gothic","Hiragino Maru Gothic ProN",sans-serif;font-weight:400;letter-spacing:.04em}
@media (min-width:901px){
  body.ec-store #header{position:absolute}
  body.ec-store .pc-side{top:var(--header-h)} /* JS がスクロール量に合わせて top を詰める */
}

/* ---------- マイリスト枠：PC は1段（右端は「マイリストをもっと見る」タイル）、スマホは2段（v1.24.71） ---------- */
body.ec-store #home-fav .post-row .post-list-row > .card:not(.card-more):nth-child(n+4){display:none}
@media (min-width:901px){
  @container (min-width:1250px){ body.ec-store #home-fav .post-row .post-list-row > .card:not(.card-more):nth-child(n+4){display:block} body.ec-store #home-fav .post-row .post-list-row > .card:not(.card-more):nth-child(n+5){display:none} }
  @container (min-width:1500px){ body.ec-store #home-fav .post-row .post-list-row > .card:not(.card-more):nth-child(n+5){display:block} body.ec-store #home-fav .post-row .post-list-row > .card:not(.card-more):nth-child(n+6){display:none} }
}
@media (max-width:900px){
  body.ec-store #home-fav .post-row .post-list-row > .card:not(.card-more):nth-child(-n+6){display:block}
  body.ec-store #home-fav .post-row .post-list-row > .card:not(.card-more):nth-child(n+7){display:none}
}

@media (max-width:900px){ /* スマホ：枠見出し右の「もっと見る」を大きく太く（v1.24.72） */
  body.ec-store .home-h .more{font-size:15px;font-weight:800;margin-bottom:5px}
}

@media (max-width:900px){ /* スマホ作品ページ：「販売ストア」見出しを消し、マイリストボタンを小さく左寄せ、購入ボタンまでの隙間を詰める（v1.24.73） */
  body.ec-store.single .ec-offers-h{display:none}
  body.ec-store .ec-item{gap:6px}
  body.ec-store .ec-item .ec-mtitle{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left} /* flex にして行ボックス分の余白をなくす */
  body.ec-store .ec-item .ec-mtitle-t{margin:0}
  body.ec-store .ec-item .ec-mtitle .fav-btn.fav-btn-lg{font-size:12px;padding:5px 12px;margin:0}
  body.ec-store .ec-item .ec-samples{padding-bottom:0}
  body.ec-store .ec-item .ec-info{display:flex;flex-direction:column} /* wpautop の改行・空白による余白を消す */
  body.ec-store .ec-item .ec-info > br{display:none}
  body.ec-store .ec-item .ec-offers{margin-bottom:10px;display:flex;flex-direction:column}
  body.ec-store .ec-item .ec-offers > br,body.ec-store .ec-item .ec-mtitle > br{display:none}
  body.ec-store .ec-item .ec-mtitle > p,body.ec-store .ec-item .ec-offers > p{margin:0} /* wpautop がボタン・ストア枠を <p> で包む分の余白を消す */
}

/* ---------- PC：枠名を1.2倍、枠の境目（余白＋太い下線）を明確に（v1.24.61） ---------- */
@media (min-width:901px){
  body.ec-store .home-h{margin:44px 0 10px;border-bottom:3px solid #2c3b64}
  body.ec-store .home-h .h-wrap h2{font-size:23px;padding:7px 18px}
  body.ec-store .home-h .more{font-size:14px;margin-bottom:8px}
  body.ec-store .topsearch-inline + .home-h,body.ec-store .home-top-widgets + .home-h{margin-top:14px}
}

/* セール固定ページ（/sale/…）の見出し下：件数1行とストア／作品形式リンク（v1.24.94） */
.page-d .sale-lead{font-size:13px;color:var(--muted);margin:4px 0 0}
.sale-nav{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;align-items:center}
.sale-nav a{display:inline-block;padding:4px 11px;border:1px solid #e3c3cf;border-radius:999px;font-size:13px;line-height:1.4;color:var(--accent-strong);background:#fff;text-decoration:none}
.sale-nav a.on{background:var(--accent-strong);border-color:var(--accent-strong);color:#fff;font-weight:700}
.sale-nav .sale-nav-sep{width:1px;height:18px;background:#e3c3cf;margin:0 4px}
@media (max-width:640px){.sale-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.sale-nav::-webkit-scrollbar{display:none}.sale-nav a{white-space:nowrap;padding:4px 10px;font-size:12px}}
/* 作品ページ：グラフ下のセール履歴1行（v1.24.98） */
.ec-offers .ec-hist-txt{font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0 0}

/* 閲覧数バッジ（👁）はアクセス数が戻るまで全画面で非表示（2026-10-12）。戻すときは下の1行を削除 */
body.ec-store .post-list-like{display:none !important}

/* v1.25.0 マイリストのセール通知ボタン（push.js） */
.push-wrap{text-align:center;margin:0 0 14px}
.push-btn{display:inline-block;border:1px solid var(--accent);background:var(--bg-card);color:var(--accent-strong);font-weight:700;font-size:13px;padding:9px 18px;border-radius:999px;cursor:pointer;font-family:var(--font-ui)}
.push-btn.on{background:var(--accent);color:#fff;border-color:var(--accent)}
.push-btn:disabled{opacity:.6}
/* v1.25.1 トップの「♥ マイリスト」見出し横の通知ボタン */
.home-h .push-wrap{margin:0 auto 6px 16px}
.home-h .push-btn{font-size:12px;padding:6px 12px}
@media (max-width:600px){
  .home-h .push-wrap{margin:0 auto 2px 8px}
  .home-h .push-btn{font-size:11px;padding:5px 9px}
}
/* 実写版：配信形式・販売種別ごとの価格（2026-10-18） */
.ec-offer{flex-wrap:wrap}
.ec-tiers{flex-basis:100%;display:flex;flex-wrap:wrap;gap:4px 6px;margin-top:2px}
.ec-tier{font-size:12px;line-height:1.5;background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:1px 7px;color:var(--text);white-space:nowrap}
.ec-tier i{font-style:normal;color:var(--muted);margin-right:4px}
.ec-tier s{color:var(--muted);font-size:11px;margin-right:3px}
.ec-tier b{color:var(--accent-strong)}
/* えろくらべ：ジャンルのプルダウン（体型・タイプ・シチュを1行に3つ）と「比較で探す」 v1.26.4 */
.rc-sel{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0 2px}
.rc-sel-s{width:100%;min-width:0;height:40px;padding:0 26px 0 12px;border:1px solid var(--btn-fg,var(--border));border-radius:10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239a6f12' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center;-webkit-appearance:none;appearance:none;font-size:14px;font-weight:700;color:var(--text-strong);cursor:pointer}
@media (min-width:901px){.rc-sel{grid-template-columns:repeat(4,minmax(0,220px))}}
@media (max-width:600px){body.ec-store .cat-tile .cat-tile-w{white-space:nowrap}body.ec-store .rc-long .cat-tile-name{font-size:13px;letter-spacing:-.02em}} /* 7文字以上（ドキュメンタリー等）はスマホで小さめにして1行に収める 2026-10-18 */
@media (max-width:380px){body.ec-store .rc-long .cat-tile-name{font-size:12px}}
@media (max-width:600px){.rc-sel{gap:6px}.rc-sel-s{height:38px;padding:0 20px 0 8px;background-position:right 6px center;font-size:13px}}
.rc-genres{display:flex;flex-direction:column;gap:6px;margin:10px 0 4px}
.rc-g{display:flex;align-items:flex-start;gap:8px}
.rc-gh{flex:none;min-width:4.2em;padding-top:5px;font-size:12px;font-weight:700;color:var(--text-strong)}
.rc-g .cat-chips{padding:0;flex:1;min-width:0}
.rc-cmp .cat-tile-ic{font-size:0}
@media (max-width:600px){.rc-g{gap:6px}.rc-gh{min-width:3.6em;font-size:11px}.rc-g .cat-chip{padding:4px 8px;font-size:12px}}
/* えろくらべ：ヘッダーロゴ（天秤マーク＋明朝ロゴ＋サブタイトル。マークも文字もヘッダーの高さいっぱい）v1.26.8 */
body.ec-store #logo .rl-logo{display:flex;align-items:center;gap:7px;height:var(--header-h)}
body.ec-store #logo .rl-ic{display:block;height:calc(var(--header-h) - 6px);width:auto;flex:none}
body.ec-store #logo .rl-tx{display:flex;flex-direction:column;justify-content:center;height:calc(var(--header-h) - 6px);line-height:1}
body.ec-store #logo .rl-t{font-family:"Shippori Mincho B1","Shippori Mincho","Hiragino Mincho ProN",serif;font-weight:800;font-size:30px;line-height:1;letter-spacing:.05em;color:#fff}
body.ec-store #logo .rl-t em{font-style:normal;background:linear-gradient(180deg,#f6e3a6 0%,#d9ad4a 48%,#b8862a 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
body.ec-store #logo .rl-s{display:block;margin-top:3px;font-family:var(--font-ui);font-size:11px;font-weight:700;line-height:1;letter-spacing:.12em;color:#d9ad4a;white-space:nowrap}
@media (max-width:380px){body.ec-store #logo .rl-t{font-size:27px}body.ec-store #logo .rl-s{font-size:10px;letter-spacing:.06em}}
@media (min-width:901px){body.ec-store .hd-search{left:300px}} /* 天秤ロゴが広くなった分、PC の検索バーを右へ */
.sok-credit img{vertical-align:middle;display:inline-block}
.tstats{max-width:720px;margin:6px auto 0;padding:7px 9px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);text-align:left;font-family:var(--font-ui);font-size:12px;line-height:1.45;color:var(--text)} .tstats-r{display:flex;align-items:center;gap:7px} .tstats-r b{font-size:11px;white-space:nowrap;color:var(--text-strong)} .tstats-bar{flex:1;display:flex;gap:1px;height:18px;border-radius:4px;overflow:hidden} .tstats-bar i{font-style:normal;display:block;line-height:18px;text-align:center;min-width:0;padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;font-weight:700;color:#fff} .tstats-s{display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;margin:5px 0 0;font-size:11px;color:var(--muted)} .tstats-r+.tstats-s{margin-top:5px} .tstats-s:first-child{margin-top:0} .tstats-s strong{color:var(--accent-strong)} .tstats-btn{display:inline-block;padding:0 7px;border:1px solid var(--btn-fg);border-radius:99px;background:var(--btn-bg);color:var(--btn-fg);font-weight:700;line-height:20px;white-space:nowrap} /* 一覧ページの比較集計（2026-10-24 帯グラフ＋2行に変更） */
.ec-verdict{margin:6px 0 0;font-size:13px;font-weight:700;line-height:1.5;color:var(--text-strong)} .ec-verdict b{color:var(--accent-strong)} /* 作品ページの「比べた結果」の一文（2026-10-24） */
