@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

/* =========================================================
   まとめアンテナ / 配布版テーマ "ACID WIRE"
   黒地 × 蛍光グリーン。カード型記事一覧・横スクロールタブ。
   ========================================================= */

:root {
    /* 白基調（配布版の既定テーマ） */
    --bg: #f6f7f4;
    --bg-2: #f1f3ee;
    --panel: #ffffff;
    --panel-2: #f1f3ee;
    --line: #dfe4da;
    --line-soft: #ebeee8;

    --acid: #2f7d4f;        /* 主役の色（深緑） */
    --acid-dim: #22603c;
    --hot: #c6453f;         /* 差し色（赤） */
    --cyan: #2b6cb0;        /* 補助（青） */

    --text: #1f2420;
    --text-dim: #5d665b;
    --text-faint: #8a9388;

    --radius: 8px;
    --shadow: 0 10px 24px -14px rgba(31, 36, 32, .35);
    --tap: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* 背景: 走査線 + 斜めのノイズ感 */
/* 背景の装飾は白基調では使わない */

.antena-app { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

.container {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
}

/* ============ ヘッダー ============ */
.site-header {
    position: relative;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.site-header::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, var(--acid), var(--cyan) 40%, var(--hot) 75%, var(--acid));
    opacity: .85;
}

.header-inner {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    padding: 18px 0 16px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--acid);
    color: #fff;
    border-radius: 10px;
}
.brand-icon svg { stroke: #fff !important; }

/* ヘッダーに出すツール名 */
.powered-by {
    margin: 2px 0 0;
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--acid-dim);
    opacity: .85;
}

.site-title {
    margin: 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: clamp(20px, 3.4vw, 28px);
    letter-spacing: .02em;
    line-height: 1.1;
    color: #fff;
}
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--acid); }

.site-description {
    margin: 4px 0 0;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--text-faint);
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.header-nav a {
    position: relative;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    border: 1px solid transparent;
    transition: color .18s var(--tap), border-color .18s var(--tap), background .18s var(--tap);
}
.header-nav a:hover { color: var(--acid); border-color: var(--line); background: rgba(182, 255, 46, .06); }
.header-nav a.active { color: #fff; background: var(--acid); border-color: var(--acid); }

/* ============ カテゴリタブ(横スクロール) ============ */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.category-list {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
}
.category-list::-webkit-scrollbar { display: none; }

.category-item { flex: 0 0 auto; }

.category-item a {
    display: block;
    padding: 7px 15px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-dim);
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    transition: all .18s var(--tap);
}
.category-item a:hover { color: var(--acid); border-color: var(--line); transform: translateY(-1px); }
.category-item a.active {
    color: #fff;
    background: var(--acid);
    border-color: var(--acid);
    font-weight: 700;
}

/* ============ 本文レイアウト ============ */
.main-content { padding: 28px 0 60px; }

.content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

/* 見出し */
section > h2, .section-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: 17px;
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--acid);
}

/* ============ 記事カード ============ */
.article-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.article-item {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 8px rgba(31,36,32,.06);
    transition: transform .2s var(--tap), border-color .2s var(--tap), box-shadow .2s var(--tap);
    animation: cardIn .45s var(--tap) both;
}
.article-item:nth-child(2n) { animation-delay: .04s; }
.article-item:nth-child(3n) { animation-delay: .08s; }
.article-item:nth-child(4n) { animation-delay: .12s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.article-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--acid), var(--cyan));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .25s var(--tap);
}
.article-item:hover {
    transform: translateY(-3px);
    border-color: var(--line);
    box-shadow: var(--shadow);
}
.article-item:hover::before { transform: scaleY(1); }

.article-item > a {
    display: flex !important;
    gap: 14px !important;
    padding: 12px;
    width: 100%;
    align-items: flex-start;
}

.article-thumb,
.article-no-thumb {
    flex: 0 0 116px;
    width: 116px;
    height: 84px;
    object-fit: cover;
    border-radius: 3px;
    background: var(--panel-2);
    border: 1px solid var(--line-soft);
}

.article-no-thumb {
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--acid-dim);
    background:
        repeating-linear-gradient(45deg, rgba(47, 125, 79, .06) 0 6px, transparent 6px 12px),
        var(--panel-2);
}

.article-info { min-width: 0; flex: 1; }

.article-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s var(--tap);
}
.article-item:hover .article-title { color: var(--acid); }

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--text-faint);
}

.article-site {
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: .02em;
}

.article-date::before { content: '● '; color: var(--acid-dim); font-size: 8px; vertical-align: middle; }

.article-category {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--hot);
    border: 1px solid rgba(255, 46, 136, .35);
    border-radius: 999px;
    background: rgba(255, 46, 136, .08);
}

/* 画像非表示モード */
.article-list.no-image .article-thumb,
.article-list.no-image .article-no-thumb { display: none; }

/* ============ サイドバー ============ */
.sidebar { display: grid; gap: 16px; position: sticky; top: 64px; }

.widget {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 16px;
}

.widget-title {
    margin: 0 0 14px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
}

.ranking-list { display: grid; gap: 10px; }

.ranking-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}
.ranking-item:last-child { border-bottom: 0; padding-bottom: 0; }

.ranking-number {
    flex: 0 0 24px;
    height: 24px;
    display: grid;
    place-items: center;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 900;
    font-size: 12px;
    color: var(--text-faint);
    background: var(--panel-2);
    border: 1px solid var(--line-soft);
}
.ranking-item:nth-child(1) .ranking-number { color: #fff; background: var(--acid); border-color: var(--acid); }
.ranking-item:nth-child(2) .ranking-number { color: #fff; background: var(--cyan); border-color: var(--cyan); }
.ranking-item:nth-child(3) .ranking-number { color: #fff; background: var(--hot); border-color: var(--hot); }

.ranking-content { min-width: 0; }

.ranking-title {
    display: block;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ranking-title:hover { color: var(--acid); }

.ranking-site { font-size: 10.5px; color: var(--text-faint); margin-top: 3px; }

/* ボタン */
.btn {
    display: inline-block;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    color: #fff;
    background: var(--acid);
    border: 1px solid var(--acid);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .18s var(--tap);
}
.btn:hover { background: var(--acid-dim); color: #fff; box-shadow: none; }

.btn-outline { background: transparent; color: var(--acid); }

/* 検索 */
.search-box { display: flex; gap: 6px; margin: 0 0 18px; }
.search-box input[type="text"],
.search-box input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}
.search-box input:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(182, 255, 46, .12); }

/* ============ ページネーション ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.pagination a {
    min-width: 38px;
    padding: 9px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    transition: all .18s var(--tap);
}
.pagination a:hover { color: var(--acid); border-color: var(--line); }
.pagination a.current { color: #fff; background: var(--acid); border-color: var(--acid); }

/* ============ フリースペース ============ */
/* フリースペースは「素の入れ物」。枠や背景を付けると、
   中身が小さいときに空っぽの白い箱に見えてしまう */
.freespace { margin: 20px 0; }
.freespace:empty { display: none; }
/* 横長カードは「1行に1枚」のもの。入れ物の幅いっぱいに使う。
   横に並べたい時は [card id=1,2,3] と書けば小カードの並びになる */
.freespace .ss-card-wide { max-width: none; }
.freespace .ss-card-wide .ss-card-img { flex: 0 0 168px; width: 168px; }
.freespace .ss-card-wide .ss-card-title { font-size: 14.5px; }

/* ============ フッター ============ */
.site-footer {
    margin-top: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
}
.site-footer a { color: var(--acid-dim); }
.site-footer a:hover { color: var(--acid); }

/* ============ 記事ページ・一覧ページ共通の補助 ============ */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
th { color: var(--text); font-weight: 700; background: var(--panel-2); }

.card, .panel, .box {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 16px;
}

input, select, textarea {
    background: var(--panel-2);
    border: 1px solid var(--line-soft);
    color: var(--text);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acid); }

/* ============ レスポンシブ ============ */
@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 680px) {
    body { font-size: 14px; }
    .article-list { grid-template-columns: minmax(0, 1fr); }
    .header-inner { padding: 14px 0 12px; gap: 12px; }
    .site-brand { width: 100%; }
    .header-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .header-nav::-webkit-scrollbar { display: none; }
    .article-thumb, .article-no-thumb { flex-basis: 96px; width: 96px; height: 72px; }
    .sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}


/* ============ 記事ページ ============ */
.article-page {
    max-width: 820px;
    margin-inline: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--acid); }

.article-head { margin-bottom: 20px; }

.article-head-title {
    margin: 0 0 12px;
    font-size: clamp(20px, 3.2vw, 26px);
    font-weight: 900;
    line-height: 1.55;
    color: var(--text);
}

.article-head-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-faint);
}
.article-head-meta .meta-site { color: var(--acid); font-weight: 700; }

/* メイン画像（大きくなりすぎないよう上限を付ける） */
.article-hero {
    margin: 0 0 22px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel-2);
    border: 1px solid var(--line);
    text-align: center;
}
.article-hero img {
    display: block;
    width: 100%;
    max-width: 640px;
    max-height: 420px;
    object-fit: contain;
    margin-inline: auto;
}

.article-body {
    font-size: 15.5px;
    line-height: 1.95;
    color: var(--text);
    margin-bottom: 24px;
}
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.article-body h2, .article-body h3 { font-weight: 900; margin: 1.6em 0 .6em; }
.article-body p { margin: 0 0 1.2em; }

.article-lead {
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--text-dim);
    margin-bottom: 24px;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--acid);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag-chip {
    padding: 5px 13px;
    font-size: 12.5px;
    color: var(--text-dim);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all .18s var(--tap);
}
.tag-chip:hover { color: var(--acid); border-color: var(--acid); }

/* 「続きを読む」ボタン */
.article-cta { text-align: center; margin: 30px 0 10px; }
.btn-read {
    display: inline-block;
    min-width: 280px;
    padding: 17px 44px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .04em;
    color: #fff;
    background: var(--acid);
    border: 1px solid var(--acid);
    border-radius: 8px;
    box-shadow: 0 8px 20px -10px var(--acid);
    transition: all .18s var(--tap);
}
.btn-read:hover { background: var(--acid-dim); border-color: var(--acid-dim); transform: translateY(-1px); }
.article-cta-note { margin: 10px 0 0; font-size: 11.5px; color: var(--text-faint); }

/* 関連記事（トップと同じカード。列数だけ調整） */
.related-section {
    margin-top: 42px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}
.related-section .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-section .article-thumb,
.related-section .article-no-thumb {
    flex: 0 0 104px;
    width: 104px;
    height: 76px;
}
.related-section .article-title { font-size: 13.5px; -webkit-line-clamp: 2; }

@media (max-width: 680px) {
    .article-hero img { max-height: 300px; }
    .btn-read { min-width: 0; width: 100%; padding: 15px 20px; font-size: 15px; }
    .related-section .article-list { grid-template-columns: minmax(0, 1fr); }
}


/* ============ 紹介カード（ショートコード） ============ */

/* auto-fill だとカードが2枚でも6列ぶんの枠が作られて右が空く。
   auto-fit なら枚数ぶんの列だけになり、幅を分け合って埋まる */
.ss-card-grid {
    display: grid;
    /* min(100%, ...) を挟まないと、入れ物より1枚の最小幅が広いときに
       カードがはみ出す（スマホで横長が潰れる原因になる） */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
    gap: 14px;
    margin: 24px 0;
    align-items: stretch;
}
/* 並べるカードが全部「横長」のときは、1枚あたりを広く取る
   （横長は画像＋文字が横に並ぶので、狭いと文字が潰れる） */
.ss-card-grid-wide {
    /* 記事の本文幅（約820px）でも2枚並ぶように380px。
       入れ物が380px未満のスマホでは自動で1列になる */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.ss-card-grid-wide .ss-card-wide { max-width: none; }
/* 横長と混ざったとき、小カード・縦型だけが不自然に大きくならないようにする */
.ss-card-grid-wide .ss-card-small,
.ss-card-grid-wide .ss-card-tall { max-width: 260px; justify-self: start; }

.ss-card {
    margin: 24px 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(31, 36, 32, .06);
    transition: transform .2s var(--tap), box-shadow .2s var(--tap), border-color .2s var(--tap);
}
.ss-card-grid .ss-card { margin: 0; height: 100%; }
/* 小カードは2枚だけ並べても1枚あたりを広げすぎない */
.ss-card-grid .ss-card-small { max-width: 240px; }
.ss-card:hover {
    transform: translateY(-2px);
    border-color: var(--acid);
    box-shadow: 0 10px 22px -14px rgba(31, 36, 32, .4);
}

.ss-card-link { display: block; color: inherit; height: 100%; }

/* 画像は「切らずに全体を見せる」。パッケージ画像は横長も縦長もあるため */
/* grid+place-items:center だと img の height:100% が解決できず
   object-fit が効かないまま箱からはみ出して切れる。flex+max-height で確実に収める */
.ss-card-img {
    position: relative;
    background: #f3f4f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ss-card-img img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ss-card-noimg { font-size: 11px; color: var(--text-faint); padding: 26px 0; }

.ss-card-body { padding: 12px 14px; }

.ss-card-title {
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ss-card-desc {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ss-card-price {
    display: inline-block;
    margin-top: 7px;
    font-size: 14.5px;
    font-weight: 900;
    color: var(--hot);
}

.ss-card-btn {
    display: block;
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: var(--acid);
    border-radius: 6px;
    transition: background .18s var(--tap);
}
.ss-card:hover .ss-card-btn { background: var(--acid-dim); }

/* ---- 横長：画像が左、文字が右 ---- */
.ss-card-wide { max-width: 520px; }
/* 画像の高さはカード高さに引き伸ばさない。
   引き伸ばすと縦長パッケージの左右にグレーの余白が出るため。 */
.ss-card-wide .ss-card-link { display: flex; align-items: center; }
.ss-card-wide .ss-card-img {
    flex: 0 0 132px;
    width: 132px;
    height: auto;
    align-self: center;
    background: transparent;
    padding: 12px 0 12px 12px;
    border-radius: 0;
}
.ss-card-wide .ss-card-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.ss-card-wide .ss-card-body {
    flex: 1;
    min-width: 0;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ss-card-wide .ss-card-title { font-size: 13px; }
/* ボタンは文字の幅ぶんだけ。横いっぱいに伸ばさない */
.ss-card-wide .ss-card-btn {
    margin-top: 10px;
    align-self: flex-start;
    width: auto;
    padding: 8px 20px;
    font-size: 12.5px;
}

/* ---- 縦型：画像が上 ---- */
.ss-card-tall { max-width: 260px; margin-inline: auto; }
/* 高さを決め打ちすると横長パッケージが切れるので、画像は自前の比率のまま */
.ss-card-tall .ss-card-img { height: auto; background: transparent; padding: 0; }
.ss-card-tall .ss-card-img img { width: 100%; max-height: none; }
.ss-card-tall .ss-card-body { padding: 12px 13px 14px; }
.ss-card-tall .ss-card-desc { margin-top: 5px; }
.ss-card-tall .ss-card-price { margin-top: 7px; }
.ss-card-tall .ss-card-btn { margin-top: 11px; padding: 10px 12px; font-size: 12.5px; }

/* ---- 小カード：一覧で並べる用 ---- */
.ss-card-small { max-width: 210px; }
/* （上の 240px 上限を使う。ここでの none 指定は取り消し） */
.ss-card-small .ss-card-img { height: 128px; padding: 6px; }
.ss-card-small .ss-card-body { padding: 10px 11px; }
.ss-card-small .ss-card-title { font-size: 12px; -webkit-line-clamp: 2; }
.ss-card-small .ss-card-desc { display: none; }
.ss-card-small .ss-card-price { font-size: 13px; margin-top: 5px; }
.ss-card-small .ss-card-btn { margin-top: 8px; padding: 7px 8px; font-size: 11.5px; }

/* ---- ボタンのみ ---- */
.ss-card-buttononly {
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    margin: 20px 0;
}
.ss-card-buttononly:hover { transform: none; box-shadow: none; }
.ss-card-buttononly .ss-card-btn {
    display: inline-block;
    min-width: 230px;
    margin: 0;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 16px -8px var(--acid);
}

@media (max-width: 680px) {
    .ss-card-wide .ss-card-link { flex-direction: column; }
    .ss-card-wide .ss-card-img { flex: none; width: 100%; height: 180px; }
    .ss-card-wide .ss-card-btn { align-self: stretch; }
    .ss-card-tall { max-width: 100%; }
    /* 小カードはスマホでも2列。横長は幅が要るので1列に落とす */
    .ss-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ss-card-grid-wide { grid-template-columns: 1fr; }
    .ss-card-buttononly .ss-card-btn { min-width: 0; width: 100%; }
}

/* =========================================================
   記事本文に挿入した作品パーツ（FANZA / DUGA）
   admin/articles.php の「作品を挿入」が吐くHTMLの見た目
   ========================================================= */
.ss-work {
    margin: 28px 0;
    padding: 20px 20px 22px;
    background: var(--panel, #fff);
    border: 1px solid var(--line, #e3e7df);
    border-radius: 12px;
}
.ss-work-title {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 800;
    color: var(--text, #1f2420);
}

/* パッケージ画像 */
.ss-work-package { margin: 0 0 14px; text-align: center; }
.ss-work-package img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* サンプル動画：横幅いっぱい・16:9 */
.ss-work-movie {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 16px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.ss-work-movie iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ss-work-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text, #1f2420);
}
/* ジャンル（FANZA / DUGA） */
.ss-work-genre {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}
.ss-work-genre span {
    display: inline-block;
    padding: 4px 11px;
    font-size: 12px;
    color: var(--text-dim, #6b7368);
    background: var(--panel-2, #f1f3ee);
    border: 1px solid var(--line, #e3e7df);
    border-radius: 999px;
}

.ss-work-meta {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-dim, #6b7368);
}

/* サンプル画像：大きさを揃えて大きく並べる */
/* 2列固定。枚数は偶数しか選ばせないので最終行が必ず埋まり、
   1枚だけ取り残されてスカスカになることがない */
.ss-work-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 0 18px;
}
.ss-work-gallery a {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f3ee;
}
.ss-work-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.ss-work-gallery a:hover img { transform: scale(1.06); }

.ss-work-price {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--price, #c0392b);
}

/* 購入ボタン */
.ss-work-cta { margin: 0; text-align: center; }
.ss-work-btn {
    display: inline-block;
    min-width: 280px;
    max-width: 100%;
    padding: 14px 32px;
    background: var(--accent, #2f7a4f);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: filter .2s ease, transform .2s ease;
}
.ss-work-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

@media (max-width: 600px) {
    .ss-work { padding: 16px 14px 18px; }
    .ss-work-title { font-size: 15px; }
    .ss-work-gallery { gap: 8px; }
    .ss-work-btn { min-width: 0; width: 100%; }
}

/* =========================================================
   デザイン切り替え（theme.php）用のレイアウト
   クラス名はすべて ss- で始まる（既存の見た目とぶつからないように）
   ========================================================= */

/* プレビュー中の帯 */
.ss-preview-bar {
    position: sticky; top: 0; z-index: 100;
    padding: 8px 16px;
    background: #ffd83d; color: #222;
    font-size: 13px; font-weight: 700; text-align: center;
}

/* --- 2ch風テキスト型 --- */
.ss-textlist {
    list-style: none; margin: 0; padding: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.ss-textlist li {
    display: flex; align-items: baseline; gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 14px; line-height: 1.6;
}
.ss-textlist li:last-child { border-bottom: 0; }
.ss-tl-time { flex: 0 0 auto; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ss-tl-title { flex: 1 1 auto; min-width: 0; color: var(--text); font-weight: 600; }
.ss-tl-title:hover { color: var(--acid); text-decoration: underline; }
.ss-tl-title:visited { color: var(--text-dim); }
.ss-tl-site { flex: 0 0 auto; max-width: 30%; font-size: 12px; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- カード型（タイル） --- */
.ss-tilegrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 16px;
}
.ss-tilegrid.is-news { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); margin: 16px 0; }
.ss-tile {
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s var(--tap), box-shadow .2s var(--tap);
}
.ss-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ss-tile-media {
    display: block; aspect-ratio: 16 / 10;
    background: repeating-linear-gradient(45deg, var(--panel-2) 0 8px, var(--bg-2) 8px 16px);
}
.ss-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.ss-tile-title {
    font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ss-tile:hover .ss-tile-title { color: var(--acid); }
.ss-tile-meta { font-size: 11px; color: var(--text-faint); }
.layout-card .content-wrapper { grid-template-columns: minmax(0, 1fr); }
.layout-card .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

/* --- ニュースサイト型 --- */
.ss-hero {
    position: relative; display: block;
    min-height: 260px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--acid-dim);
}
.ss-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-hero-body {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
    min-height: 260px; padding: 22px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78));
    color: #fff;
}
.ss-hero-label { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--hot); font-size: 11px; font-weight: 700; }
.ss-hero-title { font-size: 22px; font-weight: 900; line-height: 1.4; }
.ss-hero-meta { font-size: 12px; opacity: .85; }

/* --- ランキング重視型 --- */
.ss-rankboard {
    margin-bottom: 26px; padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.ss-rankboard-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px;
}
.ss-rank-row a { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.ss-rank-no {
    flex: 0 0 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; font-weight: 900; font-size: 15px;
    background: var(--panel-2); color: var(--text-dim);
}
.rank-1 .ss-rank-no { background: #e3b11c; color: #fff; }
.rank-2 .ss-rank-no { background: #a9b1ba; color: #fff; }
.rank-3 .ss-rank-no { background: #c27c3e; color: #fff; }
.ss-rank-thumb { flex: 0 0 64px; width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
.ss-rank-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-rank-title { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-rank-row a:hover .ss-rank-title { color: var(--acid); }
.ss-rank-site { font-size: 11px; color: var(--cyan); }

/* --- 暗い色のときの細かい調整 --- */
.scheme-night .article-category, .scheme-midnight .article-category { background: rgba(255,255,255,.06); }

/* --- スマホ --- */
@media (max-width: 680px) {
    .ss-rankboard-list { grid-template-columns: minmax(0, 1fr); }
    .ss-hero, .ss-hero-body { min-height: 200px; }
    .ss-hero-title { font-size: 18px; }
    .ss-textlist li { flex-wrap: wrap; gap: 4px 10px; }
    .ss-tl-title { flex-basis: 100%; order: 2; }
    .ss-tl-site { max-width: 60%; }
}

/* ロゴ画像を入れたとき（クモの巣マークの代わり） */
.brand-icon.brand-logo { background: none; width: auto; height: 46px; border-radius: 0; }
.brand-icon.brand-logo img { display: block; height: 46px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 600px) {
    .brand-icon.brand-logo img { max-width: 140px; }
}
/* スマホでメニューの文字が途中で折り返さないように（横にスクロールできる） */
@media (max-width: 680px) {
    .header-nav a { white-space: nowrap; flex: 0 0 auto; padding: 8px 12px; }
}

/* AIリライト記事の本文 */
.ss-ai-body h2 { font-size: 1.15em; margin: 1.6em 0 .6em; padding-left: .6em; border-left: 4px solid var(--acid); line-height: 1.5; }
.ss-ai-body p { margin: 0 0 1em; line-height: 1.95; }
.ss-ai-body ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.ss-ai-body li { margin: .3em 0; line-height: 1.8; }
.ss-ai-body strong { background: linear-gradient(transparent 62%, rgba(255, 214, 0, .45) 62%); }
.ss-ai-source { margin: 1.2em 0 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }
.ss-ai-source a { color: var(--acid); }

/* 記事一覧のサムネイルの大きさ（サイト設定で 小/中/大）。関連記事は今の大きさのまま */
.thumb-m .article-list .article-thumb,
.thumb-m .article-list .article-no-thumb { flex: 0 0 170px; width: 170px; height: 106px; }
.thumb-l .article-list .article-item > a { flex-direction: column; }
.thumb-l .article-list .article-thumb,
.thumb-l .article-list .article-no-thumb { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.thumb-m .related-section .article-thumb, .thumb-m .related-section .article-no-thumb,
.thumb-l .related-section .article-thumb, .thumb-l .related-section .article-no-thumb { flex: 0 0 104px; width: 104px; height: 76px; aspect-ratio: auto; }
.thumb-l .related-section .article-item > a { flex-direction: row; }
@media (max-width: 680px) {
    .thumb-m .article-list .article-thumb,
    .thumb-m .article-list .article-no-thumb { flex-basis: 128px; width: 128px; height: 80px; }
    .thumb-l .article-list .article-thumb,
    .thumb-l .article-list .article-no-thumb { flex-basis: auto; width: 100%; height: auto; }
}
