/* へんたい同人拡張：作品記事・サークルページ共通 */
.hm-shops{display:grid;grid-template-columns:1fr;gap:10px;margin:8px 0}
@media (min-width:600px){.hm-shops{grid-template-columns:1fr 1fr}}
.hm-shop{border:1px solid #e4e2ea;border-radius:8px;padding:12px;display:flex;flex-direction:column}
.hm-shop .hm-btn{margin-top:auto}
.hm-shop-name{font-weight:700;font-size:15px}
.hm-shop-name small{font-weight:400;color:#74717f;font-size:12px;margin-left:6px}
.hm-now{font-size:14px;margin:6px 0 2px}
.hm-now b{font-size:28px;color:#c8372d;margin-right:6px}
.hm-tag{display:inline-block;background:#fff1ec;color:#c8372d;border:1px solid #f1c5bc;border-radius:3px;font-size:12px;padding:0 6px}
.hm-line{font-size:12.5px;color:#5d5a6a}
.hm-coupon{margin:8px 0;padding:8px 10px;border-radius:6px;background:#fff7e6;border:1px solid #f5d38a;font-size:13px;line-height:1.5}
.hm-coupon b{color:#b8600a;font-size:14px;display:block}
.hm-coupon small{color:#7a6a45;font-size:12px}
/* ボタン：まとめプラグインと同じ立体（グラデ＋影＋文字影） */
.hm-btn{display:block;text-align:center;color:#fff!important;text-decoration:none!important;font-weight:700;border-radius:8px;padding:12px 10px;font-size:15px;margin-top:8px;
 background:linear-gradient(180deg,#ff7a7a 0%,#ff3b3b 55%,#cc2f2f 100%);box-shadow:0 4px 0 #992323;text-shadow:0 1px 1px rgba(0,0,0,.35)}
.hm-btn.hm-btn-dl{background:linear-gradient(180deg,#6fa8f5 0%,#2f80ed 55%,#2566be 100%);box-shadow:0 4px 0 #1c4d8e}
.hm-btn.hm-btn-s{display:inline-block;padding:8px 16px;font-size:13px;margin:0}
.hm-note{font-size:13px;color:#5d5a6a;margin:8px 0}
.hm-key{background:#f6f5f9;border-left:4px solid #3d3a8c;padding:10px 14px;font-size:14px;margin:12px 0}
.hm-key b{display:block;margin-bottom:2px}
.hm-contains{padding-left:1.4em;margin:8px 0}
.hm-pages{font-size:12px;color:#74717f;margin-left:4px}
.hm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.hm-stores{display:grid;grid-template-columns:1fr;gap:12px;margin:8px 0}
@media (min-width:600px){.hm-stores{grid-template-columns:1fr 1fr}}
.hm-store{border:1px solid #e4e2ea;border-radius:8px;padding:10px;border-top:4px solid #ff3b3b}
.hm-store-dl{border-top-color:#2f80ed}
.hm-store-name{font-weight:700;font-size:14px;margin-bottom:6px}
.hm-store .hm-stats{margin:0}
.hm-store .hm-stat{padding:8px 6px 6px}
.hm-store .hm-stat b{font-size:17px}
.hm-store table.hm-rank{margin:0}
.hm-stat{border:1px solid #e4e2ea;border-radius:6px;padding:10px 10px 8px}
.hm-stat b{font-size:20px;display:block;line-height:1.2}
.hm-stat small{font-size:12px;color:#74717f;display:block;line-height:1.5}
.hm-stat small .d{display:block}
table.hm-rank{border-collapse:collapse;width:100%;font-size:13.5px;margin:8px 0}
table.hm-rank th,table.hm-rank td{border-bottom:1px solid #e4e2ea;padding:8px 6px;text-align:left}
table.hm-rank th{background:#f6f5f9;font-weight:600;font-size:12.5px}
.hm-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:8px 0}
@media (min-width:600px){.hm-cards{grid-template-columns:repeat(4,1fr)}}
.hm-card{border:1px solid #e4e2ea;border-radius:8px;overflow:hidden;background:#fff;display:flex;flex-direction:column;text-decoration:none!important;color:inherit!important}
.hm-card img{width:100%;height:auto;display:block;background:#f6f5f9}
.hm-card-t{font-size:13px;line-height:1.45;padding:8px 8px 2px;min-height:3.6em}
.hm-card-r{font-size:12px;color:#d69400;padding:0 8px 8px}
.hm-foot{font-size:13px;color:#5d5a6a;border-top:1px solid #e4e2ea;margin-top:26px;padding-top:10px}
/* サークルページ */
.hm-circle-wrap{max-width:860px;margin:0 auto;padding:0 16px 40px}
@media (min-width:600px){.hm-circle .hm-stats{grid-template-columns:repeat(4,1fr)}}
.hm-circle h1{font-size:21px;line-height:1.45;margin:16px 0 6px}
.hm-circle h2{font-size:17px;margin:28px 0 10px;padding-bottom:6px;border-bottom:2px solid #22212a}
.hm-circle h3{font-size:15px;margin:16px 0 6px}
.hm-meta{font-size:13px;color:#74717f}
.hm-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.hm-chips a{font-size:12px;background:#f6f5f9;border:1px solid #e4e2ea;border-radius:3px;padding:2px 8px;color:#22212a;text-decoration:none}
.hm-lead{background:#f6f5f9;border-left:4px solid #3d3a8c;padding:10px 14px;margin:10px 0 14px;font-size:14.5px}
.hm-lead p{margin:0}
.hm-dist{font-size:13.5px}
.hm-dist div{display:grid;grid-template-columns:84px 1fr 40px;align-items:center;gap:8px;margin:4px 0}
.hm-dist i{display:block;height:9px;background:#3d3a8c;border-radius:2px}
.hm-dist em{font-style:normal;text-align:right;color:#74717f;font-size:12px}
.hm-sale{background:#fff1ec;border:1px solid #f1c5bc;border-radius:6px;padding:10px 12px;font-size:14px;margin:14px 0}
.hm-sale b{color:#c8372d}
.hm-row{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #e4e2ea;align-items:flex-start}
.hm-row-thumb{width:160px;flex-shrink:0}
.hm-row-thumb img{width:100%;height:auto;border-radius:4px;display:block;background:#f6f5f9}
.hm-row-body{flex:1;min-width:0}
.hm-row-title{font-size:14.5px;margin:0;line-height:1.5}
.hm-num{font-size:12px;color:#3d3a8c;font-weight:700;margin-right:4px}
.hm-row-rev{font-size:12px;color:#d69400;margin:2px 0 0}
.hm-row-sub{font-size:12.5px;color:#74717f;margin:2px 0 0}
.hm-row-btns{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;align-items:center}
.hm-row-btns .hm-btn{margin:0}

/* 冒頭・サンプル・グラフ（モックv4） */
.hm-hero{display:flex;gap:12px;margin:10px 0;align-items:flex-start}
.hm-hero-pkg{width:240px;flex-shrink:0}
@media (max-width:520px){.hm-hero{flex-direction:column}.hm-hero-pkg{width:100%;max-width:360px}}
.hm-hero-pkg img{width:100%;height:auto;border-radius:4px;display:block}
.hm-hero-body{flex:1;min-width:0}
dl.hm-bib{margin:0;display:grid;grid-template-columns:max-content 1fr;gap:2px 12px;font-size:13.5px}
.hm-hero dl.hm-bib dt,.hm-hero dl.hm-bib dd{margin:0!important;padding:0!important;width:auto!important;min-width:0!important;float:none!important;font-weight:400;line-height:1.6}
.hm-hero dl.hm-bib dt{color:#74717f;white-space:nowrap}
.hm-chip{font-size:12px;background:#f6f5f9;border:1px solid #e4e2ea;border-radius:3px;padding:2px 8px;color:#22212a!important;text-decoration:none!important}
.hm-chip-circle{background:#ecebf7;border-color:#cfcde8;color:#3d3a8c!important}
.hm-samples{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:8px 0}
@media (min-width:600px){.hm-samples{grid-template-columns:repeat(3,1fr)}}
.hm-samples a{display:block}
.hm-samples img{width:100%;height:auto;display:block;border-radius:3px;background:#f6f5f9}
.hm-chart{border:1px solid #e4e2ea;border-radius:6px;padding:8px 8px 4px;margin:10px 0}
.hm-chart-cap{font-size:12.5px;display:flex;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.hm-chart-cap i{display:inline-block;width:14px;height:3px;vertical-align:middle;margin-right:4px}
.hm-chart svg{width:100%;height:130px;display:block}

/* スマホ（モックv7と同じ配置） */
@media (max-width:520px){
 .hm-stats{grid-template-columns:1fr;gap:4px}
 .hm-stat{display:grid;grid-template-columns:1fr auto;align-items:center;padding:6px 8px}
 .hm-stat b{font-size:15px;order:2;text-align:right}
 .hm-stat small{order:1;line-height:1.3}
 .hm-stat small .d{display:inline}
 .hm-stores{grid-template-columns:1fr}
 .hm-cards{grid-template-columns:repeat(2,1fr)}
 .hm-hero{flex-direction:column}
 .hm-hero-pkg{width:100%;max-width:360px}
}

/* サークルページ スマホ：表紙120px、レビュー行と補足行は出さない */
@media (max-width:520px){
 .hm-row-thumb{width:120px}
 .hm-row-rev,.hm-row-sub{display:none}
 .hm-row-pick .hm-keep{display:block}
 .hm-circle .hm-stats{grid-template-columns:1fr 1fr}
 .hm-circle .hm-stat{display:block}
 .hm-circle .hm-stat b{font-size:18px;order:0;text-align:left}
 .hm-circle .hm-stat small .d{display:block}
}

/* 原作ページ */
.hm-title h1{font-size:20px;line-height:1.45;margin:16px 0 6px}
.hm-title h2{font-size:17px;margin:28px 0 10px;padding-bottom:6px;border-bottom:2px solid #22212a}
.hm-stats4{grid-template-columns:repeat(4,1fr)}
.hm-filter{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;align-items:center}
.hm-filter b{font-size:12px;color:#74717f;margin-right:2px}
.hm-filter a{font-size:12px;background:#f6f5f9;border:1px solid #e4e2ea;border-radius:14px;padding:2px 10px;color:#22212a!important;text-decoration:none!important}
.hm-filter a.on{background:#3d3a8c;border-color:#3d3a8c;color:#fff!important}
.hm-art{display:inline-block;font-size:11px;background:#e6f4ea;color:#1f7a3a;border-radius:3px;padding:0 6px;margin-left:6px;vertical-align:middle}
.hm-num{display:inline-block;min-width:1.8em;font-weight:700;color:#3d3a8c;margin-right:4px}
.hm-kc{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 0}
.hm-kc span{font-size:11px;background:#ecebf7;border:1px solid #cfcde8;border-radius:12px;padding:0 8px;color:#3d3a8c}
.hm-price{font-size:15px;color:#c8372d;font-weight:700;margin-right:4px}
.hm-row-sub .hm-sp{display:none}
@media (max-width:520px){
 .hm-stats4{grid-template-columns:1fr 1fr}
 .hm-title .hm-row-rev{display:none}
 .hm-title .hm-row-sub{display:block}
 .hm-title .hm-row-sub .hm-pc{display:none}
 .hm-title .hm-row-sub .hm-sp{display:inline}
}

/* ブックス */
.hm-reserve{border:1px solid #f1c5bc;border-radius:8px;padding:10px 12px;margin:10px 0;font-size:14px;background:#fff1ec;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hm-reserve .hm-lab,.hm-latest .hm-lab{display:inline-block;background:#c8372d;color:#fff;font-size:11px;border-radius:3px;padding:1px 8px}
.hm-latest{border:2px solid #3d3a8c;border-radius:8px;padding:12px;margin:10px 0}
.hm-latest .hm-lab{background:#3d3a8c;margin-bottom:6px}
.hm-row-nob{border:none;padding:0 0 8px}
.hm-row-btns.hm-left .hm-btn{margin:0}
.hm-authors{display:flex;flex-wrap:wrap;gap:6px}
.hm-authors a,.hm-authors span{font-size:12.5px;border:1px solid #e4e2ea;border-radius:14px;padding:2px 10px;color:#22212a;text-decoration:none!important}
.hm-authors a.has{background:#ecebf7;border-color:#cfcde8;color:#3d3a8c!important}
.hm-tbwrap{overflow-x:auto}
@media (max-width:520px){.hm-tbwrap .hm-pc{display:none}.hm-tbwrap table{font-size:12.5px}.hm-tbwrap th,.hm-tbwrap td{padding:6px 4px}.hm-latest .hm-row-thumb{width:80px}}

.hm-edition{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px dashed #e4e2ea;margin-top:8px;padding-top:8px;font-size:13px}
.hm-edition b{color:#c8372d}

/* 試し読み：縦1列・順番・縦横比維持 */
.hm-tachi{display:flex;flex-direction:column;gap:6px;align-items:center;background:#f6f5f9;padding:8px;border-radius:8px}
.hm-tachi .hm-pg{position:relative;width:100%;max-width:640px;text-align:center}
.hm-tachi .hm-pg img{max-width:100%;width:auto;height:auto;display:block;margin:0 auto;border-radius:3px}
.hm-tachi .hm-pgn{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.55);color:#fff;font-size:11px;padding:1px 8px;border-radius:10px}
.hm-tachi-more{max-width:640px;margin:10px auto 0}
.hm-apimark{margin:24px 0 0;text-align:right;line-height:0}
.hm-apimark img{display:inline-block;width:135px;height:17px}
.hm-badge{display:inline-block;background:#3d3a8c;color:#fff;font-size:11px;border-radius:3px;padding:1px 8px;margin-left:6px;vertical-align:middle}

.hm-na{color:#74717f!important;font-size:16px!important}

/* 2.9: 店舗カード1枚は幅いっぱい／小ボタンは折り返さない／最新号の表紙は小さく／過去作品の表 */
.hm-shops.hm-shops-one{display:block}
.hm-shops.hm-shops-one .hm-shop{max-width:none}
.hm-btn.hm-btn-s{white-space:nowrap}
.hm-edition{flex-wrap:wrap}
.hm-edition .hm-btn-s{flex:0 0 auto}
.hm-row-small .hm-row-thumb{width:96px;flex:0 0 96px}
.hm-row-small .hm-row-title{font-size:15px}
.hm-tbwrap table{table-layout:auto;width:100%}
.hm-tbwrap td.hm-nw,.hm-tbwrap th{white-space:nowrap}
.hm-tbwrap td.hm-btns-inline .hm-btn{display:inline-block;margin:0 4px 0 0}
.hm-tbwrap td,.hm-tbwrap th{padding:8px 6px;font-size:13px;vertical-align:middle}
@media (max-width:640px){.hm-tbwrap .hm-pc{display:none}.hm-tbwrap td.hm-btns-inline .hm-btn{display:block;margin:0 0 4px}}

/* ブックスの書誌は少し大きく（表紙の横が空くので） */
.hm-hero.hm-hero-books dl.hm-bib{font-size:14.5px;gap:4px 12px}

/* ジャンルページ */
.hm-genre .hm-gsec{margin:28px 0 0}
.hm-genre .hm-gsub{margin:-4px 0 12px}
.hm-grow{position:relative;padding-left:38px}
.hm-grank{position:absolute;left:12px;top:14px;font-weight:700;font-size:16px;color:#6b7177;line-height:1}
.hm-grank.top{color:#e4353b}
.hm-gnone{display:inline-block;font-size:11px;background:#f3f4f6;color:#6b7177;padding:5px 8px;border-radius:4px}
.hm-gempty{border:1px dashed #d8d9dc;border-radius:6px;padding:22px;text-align:center;color:#6b7177;font-size:13px}
.hm-gmore{display:block;width:100%;text-align:center;background:#fff;border:1px solid #d8d9dc;border-radius:6px;padding:12px;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;margin-top:2px;color:inherit}
.hm-gmore:hover{border-color:#6b7177}
