@import url('https://fonts.googleapis.com/css2?family=Anton&family=Dela+Gothic+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Noto+Sans+JP: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: 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 .pc-card-wide { max-width: none; }
.freespace .pc-card-wide .pc-card-img { flex: 0 0 168px; width: 168px; }
.freespace .pc-card-wide .pc-card-title { font-size: 14.5px; }
/* 横長カードを狭い所（サイドバー・スマホなど、カードの幅が400未満）に置いたときは、画像が上・文字が下に並べ替える
   （画像の幅を固定したままだと、文字が細く縦に詰まって崩れる） */
.pc-card-wide { container-type: inline-size; }
@container (max-width: 400px) {
    .pc-card.pc-card-wide .pc-card-link { flex-direction: column; align-items: stretch; }
    .pc-card.pc-card-wide .pc-card-img, .freespace .pc-card.pc-card-wide .pc-card-img { flex: 0 0 auto; width: 100%; padding: 10px 10px 0; }
    .pc-card.pc-card-wide .pc-card-img img { display: block; width: 100%; height: auto; }
    .pc-card.pc-card-wide .pc-card-body { padding: 10px 12px 12px; }
    .pc-card.pc-card-wide .pc-card-title, .freespace .pc-card.pc-card-wide .pc-card-title { font-size: 14px; }
}

/* ============ フッター ============ */
.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;
    text-align: center;
}
.article-hero img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    margin-inline: auto;
    border-radius: var(--radius);
}

.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 なら枚数ぶんの列だけになり、幅を分け合って埋まる */
.pc-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枚あたりを広く取る
   （横長は画像＋文字が横に並ぶので、狭いと文字が潰れる） */
.pc-card-grid-wide {
    /* 記事の本文幅（約820px）でも2枚並ぶように380px。
       入れ物が380px未満のスマホでは自動で1列になる */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.pc-card-grid-wide .pc-card-wide { max-width: none; }
/* 横長と混ざったとき、小カード・縦型だけが不自然に大きくならないようにする */
.pc-card-grid-wide .pc-card-small,
.pc-card-grid-wide .pc-card-tall { max-width: 260px; justify-self: start; }

.pc-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);
}
.pc-card-grid .pc-card { margin: 0; height: 100%; }
/* 小カードは2枚だけ並べても1枚あたりを広げすぎない */
.pc-card-grid .pc-card-small { max-width: 240px; }
.pc-card:hover {
    transform: translateY(-2px);
    border-color: var(--acid);
    box-shadow: 0 10px 22px -14px rgba(31, 36, 32, .4);
}

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

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

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

.pc-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;
}

.pc-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;
}

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

.pc-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);
}
.pc-card:hover .pc-card-btn { background: var(--acid-dim); }

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

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

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

/* ---- ボタンのみ ---- */
.pc-card-buttononly {
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    margin: 20px 0;
}
.pc-card-buttononly:hover { transform: none; box-shadow: none; }
.pc-card-buttononly .pc-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) {
    .pc-card-wide .pc-card-link { flex-direction: column; }
    .pc-card-wide .pc-card-img { flex: none; width: 100%; height: 180px; }
    .pc-card-wide .pc-card-btn { align-self: stretch; }
    .pc-card-tall { max-width: 100%; }
    /* 小カードはスマホでも2列。横長は幅が要るので1列に落とす */
    .pc-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pc-card-grid-wide { grid-template-columns: 1fr; }
    .pc-card-buttononly .pc-card-btn { min-width: 0; width: 100%; }
}

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

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

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

.pc-work-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--text, #1f2420);
}
/* ジャンル（FANZA / DUGA） */
.pc-work-genre {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}
.pc-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;
}

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

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

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

/* 購入ボタン */
.pc-work-cta { margin: 0; text-align: center; }
.pc-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;
}
.pc-work-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

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

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

/* プレビュー中の帯 */
.pc-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風テキスト型 --- */
.pc-textlist {
    list-style: none; margin: 0; padding: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.pc-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;
}
.pc-textlist li:last-child { border-bottom: 0; }
.pc-tl-time { flex: 0 0 auto; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.pc-tl-title { flex: 1 1 auto; min-width: 0; color: var(--text); font-weight: 600; }
.pc-tl-title:hover { color: var(--acid); text-decoration: underline; }
.pc-tl-title:visited { color: var(--text-dim); }
.pc-tl-site { flex: 0 0 auto; max-width: 30%; font-size: 12px; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- カード型（タイル） --- */
.pc-tilegrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 16px;
}
.pc-tilegrid.is-news { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); margin: 16px 0; }
.pc-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);
}
.pc-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-tile-media {
    display: block; aspect-ratio: 16 / 10;
    background: repeating-linear-gradient(45deg, var(--panel-2) 0 8px, var(--bg-2) 8px 16px);
}
.pc-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.pc-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;
}
.pc-tile:hover .pc-tile-title { color: var(--acid); }
.pc-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)); }

/* --- ニュースサイト型 --- */
.pc-hero {
    position: relative; display: block;
    min-height: 260px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--acid-dim);
}
.pc-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-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;
}
.pc-hero-label { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--hot); font-size: 11px; font-weight: 700; }
.pc-hero-title { font-size: 22px; font-weight: 900; line-height: 1.4; }
.pc-hero-meta { font-size: 12px; opacity: .85; }

/* --- ランキング重視型 --- */
.pc-rankboard {
    margin-bottom: 26px; padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.pc-rankboard-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px;
}
.pc-rank-row a { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.pc-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 .pc-rank-no { background: #e3b11c; color: #fff; }
.rank-2 .pc-rank-no { background: #a9b1ba; color: #fff; }
.rank-3 .pc-rank-no { background: #c27c3e; color: #fff; }
.pc-rank-thumb { flex: 0 0 64px; width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
.pc-rank-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-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; }
.pc-rank-row a:hover .pc-rank-title { color: var(--acid); }
.pc-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) {
    .pc-rankboard-list { grid-template-columns: minmax(0, 1fr); }
    .pc-hero, .pc-hero-body { min-height: 200px; }
    .pc-hero-title { font-size: 18px; }
    .pc-textlist li { flex-wrap: wrap; gap: 4px 10px; }
    .pc-tl-title { flex-basis: 100%; order: 2; }
    .pc-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リライト記事の本文 */
.pc-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; }
.pc-ai-body p { margin: 0 0 1em; line-height: 1.95; }
.pc-ai-body ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.pc-ai-body li { margin: .3em 0; line-height: 1.8; }
.pc-ai-body strong { background: linear-gradient(transparent 62%, rgba(255, 214, 0, .45) 62%); }
.pc-ai-source { margin: 1.2em 0 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.7; }
.pc-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; }
}

/* 固定ページ */
.pc-page { max-width: 820px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius, 8px); padding: 28px 30px; }
.pc-page-title { font-size: 24px; line-height: 1.5; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--acid); }
.pc-page-body h2 { font-size: 18px; margin: 1.8em 0 .6em; padding-left: .6em; border-left: 4px solid var(--acid); }
.pc-page-body p { line-height: 1.95; margin: 0 0 1em; }
@media (max-width: 680px) { .pc-page { padding: 20px 16px; } .pc-page-title { font-size: 20px; } }
/* フッターの固定ページリンク */
.footer-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 12px; font-size: 12.5px; }
.footer-pages a { color: var(--text-dim); text-decoration: none; }
.footer-pages a:hover { color: var(--acid); text-decoration: underline; }
/* お問い合わせフォーム */
.pc-contact { display: grid; gap: 14px; margin: 18px 0 0; position: relative; }
.pc-contact label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.pc-contact input, .pc-contact textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; font-weight: 400; box-sizing: border-box; }
.pc-contact button { justify-self: start; padding: 12px 34px; border: 0; border-radius: 999px; background: var(--acid); color: #fff; font-weight: 700; cursor: pointer; }
.pc-contact-msg { padding: 12px 14px; border-radius: 6px; font-size: 13.5px; margin: 0; }
.pc-contact-msg.ok { background: rgba(47, 125, 79, .1); color: var(--acid); }
.pc-contact-msg.ng { background: rgba(198, 69, 63, .1); color: var(--hot); }

/* 記事一覧の1件（全ページ共通の部品 renderArticleItem） */
.article-item > a { text-decoration: none; color: inherit; }
.article-thumb-wrap { position: relative; flex: 0 0 auto; display: block; line-height: 0; }
.article-thumb-wrap.is-badge-only { line-height: normal; }
.thumb-l .article-list .article-thumb-wrap { width: 100%; }
.rank-badge { position: absolute; left: -6px; top: -6px; z-index: 2; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; color: #fff; background: var(--text-faint); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.is-badge-only .rank-badge { position: static; }
.rank-badge.rank-1 { background: #d4a017; }
.rank-badge.rank-2 { background: #8f9aa5; }
.rank-badge.rank-3 { background: #b06d3b; }
.article-meta .article-site { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-clicks { font-size: 11px; color: var(--acid); }
/* サイドバーのカテゴリ一覧 */
.sb-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-cats a { padding: 6px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--text-dim); text-decoration: none; }
.sb-cats a:hover { color: var(--acid); border-color: var(--acid); }
/* AIで作った記事の画像 */
.pc-gen-figure { margin: 22px 0; }
.pc-gen-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* カテゴリの説明文（カテゴリページの見出しの下） */
.category-desc {
    margin: -8px 0 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dim, var(--text));
}

/* 記事に自動で差し込んだカード */
.pc-auto-cards { margin: 28px 0; }
.pc-auto-cards-head { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--text); }

/* ニュースサイト型：画像カードは3列×2段（スマホは2列×3段）、下の見出し一覧にも小さい画像 */
.pc-tilegrid.is-news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pc-tilegrid.is-news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pc-textlist.is-news li { align-items: center; }
.pc-tl-thumb { flex: 0 0 auto; width: 96px; height: 60px; border-radius: 6px; overflow: hidden; background: var(--panel-2); display: block; }
.pc-tl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
    .pc-textlist.is-news li { flex-wrap: nowrap; align-items: flex-start; }
    .pc-tl-thumb { width: 84px; height: 54px; order: 0; }
    .pc-textlist.is-news .pc-tl-time { display: none; }
    .pc-textlist.is-news .pc-tl-title { flex-basis: auto; order: 1; font-size: 13.5px; }
    .pc-textlist.is-news .pc-tl-site { display: none; }
}

/* =========================================================
   WordPressブログ型（layout-wpblog）
   サイト名を中央に大きく、その下にメニュー帯。記事はアイキャッチ付きのカードが2列。
   ========================================================= */
.layout-wpblog { background: var(--bg-2); }
.layout-wpblog .site-header { background: var(--panel); border-bottom: 0; }
.layout-wpblog .site-header::after { display: none; }
.layout-wpblog .header-inner { flex-direction: column; align-items: center; gap: 0; padding: 30px 0 0; text-align: center; }
.layout-wpblog .site-brand { margin: 0 auto 22px; justify-content: center; }
.layout-wpblog .site-title { font-size: 30px; letter-spacing: .04em; }
.layout-wpblog .site-description { margin-top: 6px; font-size: 13px; }
.layout-wpblog .header-nav {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    justify-content: center;
    gap: 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
}
.layout-wpblog .header-nav a {
    padding: 14px 22px;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    position: relative;
}
.layout-wpblog .header-nav a::after {
    content: '';
    position: absolute;
    left: 22px; right: 22px; bottom: 8px;
    height: 2px;
    background: var(--acid);
    transform: scaleX(0);
    transition: transform .2s var(--tap);
}
.layout-wpblog .header-nav a:hover { background: none; color: var(--acid); }
.layout-wpblog .header-nav a:hover::after,
.layout-wpblog .header-nav a.active::after { transform: scaleX(1); }
.layout-wpblog .header-nav a.active { background: none; color: var(--acid); }

.layout-wpblog .category-nav { background: var(--acid); border: 0; }
.layout-wpblog .category-list { justify-content: safe center; padding-block: 0; }
.layout-wpblog .category-item a {
    padding: 11px 16px;
    border: 0;
    border-radius: 0;
    background: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.layout-wpblog .category-item a:hover { color: #fff; background: rgba(255,255,255,.14); transform: none; }
.layout-wpblog .category-item a.active { color: #ffffff; background: rgba(255,255,255,.2); }

.layout-wpblog .main-content { padding-top: 34px; }
.layout-wpblog section > h2,
.layout-wpblog .section-title { border-left: 0; padding: 0 0 10px; border-bottom: 2px solid var(--acid); }

/* 記事カード */
.layout-wpblog .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.layout-wpblog .wp-post {
    display: block;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 18px -12px rgba(0,0,0,.25);
}
.layout-wpblog .wp-post::before { display: none; }
.layout-wpblog .wp-post:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 14px 28px -14px rgba(0,0,0,.35); }
.layout-wpblog .wp-post > a { display: block !important; padding: 0; }
/* 画像は切らずに全体を見せる（縦長のイラストでも頭が切れない。透明な部分は白） */
.wp-eye {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid var(--line-soft);
}
.wp-eye img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--tap); }
.wp-post:hover .wp-eye img { transform: scale(1.05); }
.wp-cat {
    position: absolute;
    left: 0; top: 12px;
    max-width: 80%;
    padding: 3px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: var(--acid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wp-eye .rank-badge { left: auto; right: 10px; top: 10px; }
.wp-post-body { padding: 14px 16px 16px; }
.layout-wpblog .wp-post .article-title { margin: 0 0 8px; font-size: 16px; line-height: 1.55; -webkit-line-clamp: 3; }
.wp-excerpt {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-faint); }
.wp-meta time { font-variant-numeric: tabular-nums; }
.wp-site { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-cat-text { color: var(--acid); font-weight: 700; }

/* 関連記事は3列の小さめカード */
.layout-wpblog .related-section .article-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.layout-wpblog .related-section .wp-excerpt { display: none; }
.layout-wpblog .related-section .wp-post .article-title { font-size: 13.5px; }

/* 記事ページ：白い紙面に載せる */
.layout-wpblog .article-page {
    padding: 34px 44px 40px;
    background: var(--panel);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.layout-wpblog .article-head-title { padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* サイドバー：見出しを色の帯に */
.layout-wpblog .widget { border: 0; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 0 16px 16px; overflow: hidden; }
.layout-wpblog .widget-title {
    margin: 0 -16px 14px;
    padding: 11px 16px;
    border: 0;
    background: var(--acid);
    color: #fff;
    font-size: 14px;
}
.layout-wpblog .widget.freespace { padding-top: 16px; }

.layout-wpblog .site-footer { background: #1f2326; color: rgba(255,255,255,.75); border-top: 0; }
.layout-wpblog .site-footer a { color: rgba(255,255,255,.9); }

@media (max-width: 680px) {
    .layout-wpblog .header-inner { padding-top: 18px; }
    .layout-wpblog .site-brand { margin-bottom: 14px; width: auto; }
    .layout-wpblog .site-title { font-size: 22px; }
    .layout-wpblog .header-nav { justify-content: flex-start; }
    .layout-wpblog .header-nav a { padding: 12px 14px; }
    .layout-wpblog .header-nav a::after { left: 14px; right: 14px; }
    .layout-wpblog .category-list { justify-content: flex-start; }
    .layout-wpblog .article-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .layout-wpblog .related-section .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-wpblog .article-page { padding: 22px 16px 26px; }
}

/* =========================================================
   モダンブログ型（layout-modern）
   白い紙面・角丸の大きな画像・英字の小見出し。上に記事画像のコラージュの看板とカテゴリのバナー
   ========================================================= */
.layout-modern { background: #ffffff; font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif; color: #1d2125; }
.layout-modern .site-title,
.layout-modern .widget-title,
.layout-modern section > h2 { font-family: 'Noto Sans JP', sans-serif; }

/* ヘッダー：左にサイト名、右にメニュー */
.layout-modern .site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #eceef0; overflow: visible; }
.layout-modern .site-header::after { display: none; }
.layout-modern .header-inner { padding: 14px 0; gap: 18px; }
.layout-modern .site-title { font-size: 22px; font-weight: 900; letter-spacing: .02em; }
.layout-modern .site-description { font-size: 11.5px; color: #8a9096; }
.layout-modern .powered-by { display: none; }
.layout-modern .header-nav { gap: 4px; }
.layout-modern .header-nav a { padding: 8px 14px; border: 0; border-radius: 999px; background: none; font-size: 13.5px; font-weight: 700; color: #3a4046; }
.layout-modern .header-nav a:hover { background: #f2f4f5; color: #1d2125; }
.layout-modern .header-nav a.active { background: #1d2125; color: #ffffff; }

/* カテゴリ：細い横並びの文字リンク。選んでいるものは色の付いた丸 */
.layout-modern .category-nav { background: #ffffff; border-bottom: 1px solid #eceef0; }
.layout-modern .category-list { padding-block: 10px; gap: 6px; }
.layout-modern .category-item a { padding: 6px 14px; border: 1px solid #e3e6e9; border-radius: 999px; background: #ffffff; font-size: 12.5px; font-weight: 700; color: #4b5258; }
.layout-modern .category-item a:hover { border-color: var(--acid); color: var(--acid); transform: none; }
.layout-modern .category-item a.active { background: var(--acid); border-color: var(--acid); color: #ffffff; }

.layout-modern .main-content { padding: 30px 0 70px; }
.layout-modern .container { width: min(1200px, 100% - 40px); }
.layout-modern .content-wrapper { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }

/* 小見出し：英字＋日本語 */
.mh-head { margin: 0 0 22px; }
.mh-en { margin: 0 0 2px; font-size: 11.5px; font-weight: 900; letter-spacing: .28em; color: var(--acid); }
.mh-head h2 { margin: 0; padding: 0; border: 0; font-size: 24px; font-weight: 900; letter-spacing: .02em; color: #1d2125; }
.layout-modern section > h2 { border-left: 0; padding-left: 0; font-size: 24px !important; font-weight: 900 !important; }
.layout-modern section > h2.section-title,
.layout-modern .section-title { padding: 0; border: 0; font-size: 22px; font-weight: 900; }

/* 看板 */
.mh-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 28px;
    margin: 0 0 40px;
    padding: 44px 44px;
    border-radius: var(--mh-r, 24px);
    color: #ffffff;
    overflow: hidden;
    --mh-c1: var(--acid);
    --mh-c2: var(--acid-dim);
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.18), transparent 40%),
        radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px) 0 0 / 18px 18px,
        linear-gradient(135deg, var(--mh-c1), var(--mh-c2) 55%, #12161a);
}
/* 看板の背景：黒（サイトの色をうっすら光らせる） */
.mh-hero.is-black {
    background:
        radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--acid) 45%, transparent), transparent 45%),
        radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 18px 18px,
        linear-gradient(135deg, #1a1d21, #0d0f11);
}
/* 看板の背景：ヘッダー画像（入れた画像の色のまま出す。看板の文字があるときだけ、文字の下を少し暗く） */
.mh-hero.is-image {
    background:
        var(--mh-img) center / cover no-repeat,
        #15181b;
    aspect-ratio: var(--mh-ar, 16 / 9);   /* 画像の比率どおりの高さにして、上下が切れないようにする */
    /* 最低の高さは決めない（決めると「高さ×比率」より細くなれず、狭い画面で横にはみ出す）。
       中身が比率の高さより大きいときは、はみ出さずに看板の方が伸びる */
    min-height: auto;
    overflow: visible;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.mh-hero.is-image .mh-hero-text { max-width: 520px; }
.mh-hero.is-image.has-text {
    background:
        linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.2) 45%, transparent 65%),
        var(--mh-img) center / cover no-repeat,
        #15181b;
}
@media (max-width: 760px) {
    .mh-hero.is-image { aspect-ratio: auto; min-height: 300px; background-position: 65% center, center; }
    .mh-hero.is-image.has-text { background-position: center, 65% center, center; }
}
.mh-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 900; letter-spacing: .32em; opacity: .8; }
.mh-title { word-break: keep-all; overflow-wrap: anywhere; margin: 0 0 14px; font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.2; letter-spacing: .02em; color: #ffffff; }
.mh-lead { margin: 0 0 24px; font-size: 14px; line-height: 1.9; opacity: .9; max-width: 34em; }
.mh-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: #ffffff; color: #1d2125; font-size: 13.5px; font-weight: 900; transition: transform .2s var(--tap), box-shadow .2s var(--tap); }
.mh-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0,0,0,.5); color: #1d2125; }
.mh-btn.is-ghost { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.mh-btn.is-ghost:hover { color: #ffffff; background: rgba(255,255,255,.1); }

.mh-collage { position: relative; height: 300px; }
.mh-tile { position: absolute; display: block; overflow: hidden; border-radius: var(--mh-r2, 14px); background: #ffffff; box-shadow: 0 18px 36px -16px rgba(0,0,0,.6); border: 4px solid #ffffff; transition: transform .35s var(--tap); animation: mhIn .7s var(--tap) both; }
.mh-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.mh-tile:hover { transform: translateY(-6px) rotate(0deg) !important; z-index: 5; }
.mh-tile.t1 { left: 4%;  top: 6%;  width: 44%; height: 58%; transform: rotate(-5deg); z-index: 3; }
.mh-tile.t2 { left: 46%; top: 0;   width: 40%; height: 50%; transform: rotate(4deg); animation-delay: .08s; z-index: 2; }
.mh-tile.t3 { left: 52%; top: 46%; width: 44%; height: 52%; transform: rotate(-3deg); animation-delay: .16s; z-index: 4; }
.mh-tile.t4 { left: 12%; top: 60%; width: 36%; height: 40%; transform: rotate(3deg); animation-delay: .24s; z-index: 1; }
.mh-tile.t5 { left: 82%; top: 20%; width: 22%; height: 30%; transform: rotate(8deg); animation-delay: .32s; z-index: 1; }
@keyframes mhIn { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* カテゴリのバナー */
.mh-cats { margin: 0 0 44px; }
.mh-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.mh-cat { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--mh-r2, 16px); overflow: hidden; background: linear-gradient(135deg, var(--acid), var(--acid-dim)); isolation: isolate; }
.mh-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .4s var(--tap); z-index: -1; }
.mh-cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.72)); z-index: 0; }
.mh-cat span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-size: 15px; font-weight: 900; color: #ffffff; letter-spacing: .04em; }
.mh-cat span::after { content: ' →'; font-weight: 700; opacity: .8; }
.mh-cat:hover img { transform: scale(1.07); }

/* 記事カード：箱にしない。角丸の大きな画像の下に文字 */
.layout-modern .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.layout-modern .wp-post { display: block; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; animation: cardIn .5s var(--tap) both; }
.layout-modern .wp-post::before { display: none; }
.layout-modern .wp-post:hover { transform: none; box-shadow: none; }
.layout-modern .wp-post > a { display: block !important; padding: 0; }
.layout-modern .wp-eye { border: 0; border-radius: var(--mh-r2, 16px); background: #f1f3f5; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.layout-modern .wp-eye img { object-fit: cover; object-position: 50% 30%; }
.layout-modern .wp-post:hover .wp-eye img { transform: scale(1.04); }
.layout-modern .wp-cat {
    left: 12px; top: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--acid);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.layout-modern .wp-post-body { padding: 14px 2px 0; }
.layout-modern .wp-post .article-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; line-height: 1.6; color: #1d2125; -webkit-line-clamp: 2; }
.layout-modern .wp-post:hover .article-title { color: var(--acid); }
.layout-modern .wp-excerpt { font-size: 13px; color: #6b7278; -webkit-line-clamp: 2; }
.layout-modern .wp-meta { gap: 4px 12px; font-size: 12px; color: #9aa1a7; }
.layout-modern .wp-meta time { font-weight: 500; letter-spacing: .04em; }
.layout-modern .wp-site { max-width: 60%; }
.layout-modern .wp-eye .rank-badge { border-radius: 999px; }

/* 関連記事 */
.layout-modern .related-section .article-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.layout-modern .related-section .wp-excerpt { display: none; }
.layout-modern .related-section .wp-post .article-title { font-size: 14px; }

/* 記事ページ */
.layout-modern .article-page { max-width: 780px; }
.layout-modern .article-head-title { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.5; }
.layout-modern .article-hero img { border-radius: var(--mh-r2, 16px); }
.layout-modern .pc-ai-body h2 { border-left: 0; padding: 0 0 .4em; border-bottom: 2px solid #eceef0; position: relative; }
.layout-modern .pc-ai-body h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 3em; height: 2px; background: var(--acid); }

/* サイドバー：箱にしない。見出しは英字の小見出し風、人気記事は画像付き */
.layout-modern .sidebar { gap: 36px; top: 90px; }
.layout-modern .widget { padding: 0; border: 0; background: none; box-shadow: none; }
.layout-modern .widget-title { margin: 0 0 16px; padding: 0 0 10px; border: 0; border-bottom: 2px solid #1d2125; font-size: 15px; font-weight: 900; color: #1d2125; }
.layout-modern .ranking-list { gap: 14px; }
.layout-modern .ranking-item { position: relative; align-items: center; gap: 12px; padding: 0; border: 0; }
.layout-modern .ranking-number { position: absolute; left: -6px; top: -6px; z-index: 2; width: 22px; height: 22px; flex: none; border: 0; border-radius: 999px; background: #1d2125; color: #ffffff; font-size: 11px; }
.layout-modern .ranking-thumb { flex: 0 0 84px; width: 84px; height: 60px; border-radius: var(--mh-r3, 10px); overflow: hidden; background: #f1f3f5; }
.layout-modern .ranking-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.layout-modern .ranking-title { font-size: 13px; font-weight: 700; line-height: 1.55; color: #1d2125; }
.layout-modern .ranking-site { font-size: 11px; color: #9aa1a7; }
.ranking-thumb { display: none; }
.layout-modern .ranking-thumb { display: block; }
.layout-modern .sb-cats { flex-direction: column; gap: 0; }
.layout-modern .sb-cats a { display: flex; justify-content: space-between; padding: 12px 2px; border: 0; border-bottom: 1px solid #eceef0; border-radius: 0; background: none; font-size: 13.5px; font-weight: 700; color: #3a4046; }
.layout-modern .sb-cats a::after { content: '→'; color: #b6bcc1; }
.layout-modern .sb-cats a:hover { color: var(--acid); }

/* ページ送り */
.layout-modern .pagination { margin-top: 48px; }
.layout-modern .pagination a { border-radius: 999px; border-color: #e3e6e9; }
.layout-modern .pagination a.current { background: #1d2125; border-color: #1d2125; }

/* フッター */
.layout-modern .site-footer { margin-top: 0; padding: 40px 0; background: #15181b; color: rgba(255,255,255,.6); border-top: 0; }
.layout-modern .site-footer a { color: rgba(255,255,255,.85); }

.layout-modern .ranking-item:not(:has(.ranking-thumb)) .ranking-number { position: static; flex: 0 0 22px; }
@media (max-width: 1024px) {
    .layout-modern .content-wrapper { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .layout-modern .sidebar { position: static; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .mh-hero { grid-template-columns: minmax(0, 1fr); padding: 30px 22px 26px; border-radius: var(--mh-r2, 18px); gap: 18px; }
    .mh-collage { height: 210px; }
    .layout-modern .header-inner { padding: 10px 0; }
    .layout-modern .site-header { position: static; }
}
@media (max-width: 680px) {
    .layout-modern .container { width: min(1200px, 100% - 32px); }
    .layout-modern .site-title { font-size: 19px; }
    .layout-modern .article-list { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .layout-modern .related-section .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mh-head h2 { font-size: 20px; }
    .mh-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mh-cat span { font-size: 13.5px; left: 10px; bottom: 9px; }
}

/* サイドバーのカテゴリ一覧：今開いているカテゴリ */
.sb-cats a.is-active { color: #ffffff; background: var(--acid); border-color: var(--acid); }
.layout-modern .sb-cats a.is-active { color: var(--acid); background: none; }
.layout-modern .sb-cats a.is-active::after { color: var(--acid); }

/* モダンブログ型：カテゴリページの見出し（最新記事の画像を敷く） */
.mh-cathead { position: relative; display: flex; align-items: flex-end; min-height: 190px; margin: 0 0 34px; padding: 28px 30px; border-radius: var(--mh-r, 20px); overflow: hidden; color: #ffffff; background: linear-gradient(135deg, var(--acid), var(--acid-dim)); isolation: isolate; }
.mh-cathead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.mh-cathead::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.35)); }
.mh-cathead-text { max-width: 640px; }
.mh-cathead .mh-en { color: #ffffff; opacity: .8; }
.layout-modern section > .mh-cathead h2 { margin: 2px 0 8px; font-size: 30px !important; color: #ffffff; }
.mh-cathead p:last-child:not(.mh-en) { margin: 0; font-size: 13px; line-height: 1.8; opacity: .92; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 680px) {
    .mh-cathead { min-height: 150px; padding: 20px 18px; border-radius: var(--mh-r2, 16px); }
    .layout-modern section > .mh-cathead h2 { font-size: 24px !important; }
}

/* カード：広告タグそのまま（iframe・スクリプトのバナー）。枠を付けず、タグどおりの大きさで出す */
.pc-adtag { margin: 24px 0; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; text-align: center; line-height: 0; contain: inline-size; }
.sidebar > *, .widget.freespace { min-width: 0; }
.pc-adtag-in { display: inline-block; transform-origin: top left; text-align: left; }
.pc-adtag-in iframe { max-width: none; display: block; }
.pc-card-grid .pc-adtag { margin: 0; }

/* 公開側の「サイト登録」フォーム（管理画面の部品名を使っているので、公開側でも見た目を付ける） */
.pc-register-form { position: relative; }
.pc-register-form .form-group { margin: 0 0 18px; }
.pc-register-form .form-group label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.pc-register-form .form-group input,
.pc-register-form .form-group select,
.pc-register-form .form-group textarea { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; box-sizing: border-box; }
.pc-register-form .hint { margin: 6px 0 0; font-size: 12px; color: var(--text-dim); }
.message { padding: 12px 14px; border-radius: 6px; font-size: 13.5px; line-height: 1.7; }
.message.success { background: rgba(47, 125, 79, .1); color: var(--acid); }
.message.error { background: rgba(198, 69, 63, .1); color: var(--hot); }

/* ===== トップの「記事のある投稿」の枠（設定はオリジナル記事の画面） ===== */
.pc-feat.is-top { margin: 0 0 34px; }
.pc-feat.is-posts { margin: 0 0 36px; }
.pc-feat-head { margin: 0 0 16px; }
.pc-feat-en { margin: 0 0 2px; font-size: 11.5px; font-weight: 900; letter-spacing: .28em; color: var(--hot); }
.pc-feat-head h2 { margin: 0; padding: 0; border: 0; font-size: 22px; font-weight: 900; color: var(--text); }
.pc-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.pc-feat-card { max-width: 560px; display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .25s var(--tap); }
.pc-feat-card:hover { transform: translateY(-3px); }
.pc-feat-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-soft); }
.pc-feat-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-feat-cat { z-index: 1; position: absolute; left: 10px; top: 10px; padding: 3px 10px; font-size: 11px; font-weight: 800; color: #1d2125; background: rgba(255, 255, 255, .92); border-radius: 999px; }
.pc-feat-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.pc-feat-title { font-size: 14.5px; font-weight: 800; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-feat-body time { font-size: 12px; color: var(--text-faint); }
@media (max-width: 640px) {
    .pc-feat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pc-feat-title { font-size: 13px; }
    .pc-feat-body { padding: 10px; }
}

/* カードを「1行に◯枚」で並べる（[card id=1,2,3 cols=3]）。スマホでは3枚・4枚の指定も2枚ずつ */
.pc-card-grid.pc-card-cols { grid-template-columns: repeat(var(--pc-cols, 2), minmax(0, 1fr)); }
.pc-card-grid.pc-cols-2 { --pc-cols: 2; }
.pc-card-grid.pc-cols-3 { --pc-cols: 3; }
.pc-card-grid.pc-cols-4 { --pc-cols: 4; }
.pc-card-grid.pc-card-cols .pc-card-wide, .pc-card-grid.pc-card-cols .pc-card-small, .pc-card-grid.pc-card-cols .pc-card-tall { max-width: none; justify-self: stretch; }
@media (max-width: 680px) {
    .pc-card-grid.pc-cols-3, .pc-card-grid.pc-cols-4 { --pc-cols: 2; }
}

/* 広告（AdSense・忍者AdMax）の枠 */
.pc-ad { margin: 22px 0; text-align: center; min-height: 0; }
.pc-ad-label { margin: 0 0 6px; font-size: 11px; letter-spacing: .12em; color: var(--text-faint, #8a8578); }
.pc-ad-admax { display: flex; justify-content: center; }
.sidebar .pc-ad { margin: 0; }


/* ==========================================================
   BREAK の形（どの色の組み合わせでも共通）
   角をとがらせ、黒の太い枠とずらしたベタの影。黄色×黒のテープ。見出しは極太の字
   ========================================================== */
.ed-break { --bk-ink: #111111; --bk-yellow: #ffe100; --bk-tape: repeating-linear-gradient(-45deg, #ffe100 0 14px, #111111 14px 28px); }
/* 上の帯 */
.ed-break .site-header { border-bottom: 4px solid var(--bk-ink); box-shadow: none; }
.ed-break .site-title, .ed-break .site-title a { font-family: var(--bk-en); font-weight: var(--bk-w); letter-spacing: .04em; text-transform: var(--bk-case); }
.ed-break .brand-icon, .ed-break .site-brand svg, .ed-break .site-brand img { border-radius: 0 !important; }
.ed-break .header-nav a { border-radius: 0; border: 2px solid transparent; font-weight: 800; }
.ed-break .header-nav a.active { background: var(--bk-ink); color: var(--bk-yellow); border-color: var(--bk-ink); box-shadow: 3px 3px 0 var(--acid); }
.ed-break .category-nav { border-bottom: 2px solid var(--bk-ink); }
.ed-break .category-item a { border-radius: 0; border: 2px solid var(--bk-ink); font-weight: 800; background: var(--panel); }
.ed-break .category-item a:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--bk-ink); }
.ed-break .category-item.active a, .ed-break .category-item a.active { background: var(--bk-yellow); color: var(--bk-ink); border-color: var(--bk-ink); box-shadow: 3px 3px 0 var(--acid); }

/* 看板：角ばった黒枠＋ベタの影、上にテープ。写真は傾けず、黒枠の格子に並べる */
.ed-break .mh-hero { border-radius: 0; border: 4px solid var(--bk-ink); box-shadow: 10px 10px 0 var(--bk-ink); padding-top: 58px; }
.ed-break .mh-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--bk-tape); border-bottom: 3px solid var(--bk-ink); z-index: 2; }
/* 背景に画像を入れたときは、黄色と黒のテープを出さない（画像をそのまま見せる） */
.ed-break .mh-hero.is-image { padding-top: 44px; }
.ed-break .mh-hero.is-image::before { display: none; }
.ed-break .mh-hero.no-tape::before { display: none; }   /* サイト設定「看板の上のしましまの線」で「出さない」 */
.mh-hero.is-image .mh-btn { text-shadow: none; }
/* 看板の影：細い／なし（サイト設定の「看板の影」） */
.ed-break .mh-hero.sh-small { box-shadow: 5px 5px 0 var(--bk-ink); }
.ed-break .mh-hero.sh-small .mh-tile { box-shadow: 3px 3px 0 var(--bk-ink); }
.ed-break .mh-hero.sh-none { box-shadow: none; }
.ed-break .mh-hero.sh-none .mh-tile { box-shadow: none; }
/* 看板の縁：細い／なし（サイト設定の「看板の縁」） */
.ed-break .mh-hero.bd-small { border-width: 2px; }
.ed-break .mh-hero.bd-small .mh-tile { border-width: 2px; }
.ed-break .mh-hero.bd-none { border: 0; }
.ed-break .mh-hero.bd-none .mh-tile { border: 3px solid #ffffff; }
.mh-hero.sh-none .mh-tile { box-shadow: none; }
/* 看板の縁：細い／なし（サイト設定の「看板の縁」） */
.ed-break .mh-hero.bd-small { border-width: 2px; }
.ed-break .mh-hero.bd-small .mh-tile { border-width: 2px; }
.ed-break .mh-hero.bd-none { border: 0; }
.ed-break .mh-hero.bd-none .mh-tile { border: 3px solid #ffffff; }
.ed-break .mh-title { font-family: var(--bk-head); font-weight: var(--bk-w); letter-spacing: .02em; }
.ed-break .mh-title::after { content: ''; display: block; width: 96px; height: 10px; margin-top: 14px; background: var(--bk-yellow); box-shadow: 4px 4px 0 var(--bk-ink); }
.ed-break .mh-btn { border-radius: 0; border: 3px solid var(--bk-ink); background: var(--bk-yellow); color: var(--bk-ink); box-shadow: 5px 5px 0 var(--bk-ink); font-weight: 900; }
.ed-break .mh-btn.is-ghost { background: #ffffff; color: var(--bk-ink); }
.ed-break .mh-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--bk-ink); }
.ed-break .mh-collage { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; align-self: center; }
/* 記事の画像は横16:縦9が多いので、枠も同じ形にして左右が切れないように */
.ed-break .mh-tile { aspect-ratio: 16 / 9; }
.ed-break .mh-tile img { object-position: 50% 50%; }
.ed-break .mh-tile { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; transform: none !important; border-radius: 0; border: 3px solid var(--bk-ink); box-shadow: 5px 5px 0 var(--bk-ink); }
.ed-break .mh-tile.t1 { grid-column: span 2; grid-row: span 2; }
.ed-break .mh-tile:hover { transform: translate(-3px, -3px) !important; box-shadow: 8px 8px 0 var(--bk-yellow); }
.ed-break .mh-collage.n1 .mh-tile.t1, .ed-break .mh-collage.n2 .mh-tile.t1 { grid-column: span 3; }

/* 見出し：英字は黒い札に黄色、日本語は極太 */
.ed-break .mh-en { display: inline-block; padding: 3px 10px; background: var(--bk-ink); color: var(--bk-yellow); font-family: var(--bk-en); letter-spacing: .24em; transform: rotate(-2deg); }
.ed-break .mh-head h2, .ed-break .section-title { font-family: var(--bk-head); font-weight: var(--bk-w); }

/* カテゴリのバナー */
.ed-break .mh-cat { border-radius: 0; border: 3px solid var(--bk-ink); box-shadow: 5px 5px 0 var(--bk-ink); }
.ed-break .mh-cat span { background: var(--bk-ink); color: var(--bk-yellow); padding: 4px 10px; left: 0; bottom: 0; }
.ed-break .mh-cat:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--acid); }

/* 記事のカード：黒枠＋ベタの影。1本目は横2列ぶんの大きさ（雑誌の表紙のように） */
.ed-break .wp-post { border-radius: 0; }
.ed-break .wp-eye, .ed-break.layout-modern .wp-eye { border-radius: 0; border: 3px solid var(--bk-ink); box-shadow: 6px 6px 0 var(--bk-ink); }
.ed-break .wp-post:hover .wp-eye { box-shadow: 8px 8px 0 var(--acid); transform: translate(-2px, -2px); }
.ed-break .wp-eye { transition: transform .2s, box-shadow .2s; }
.ed-break .wp-cat, .ed-break.layout-modern .wp-cat { border-radius: 0; background: var(--bk-yellow); color: var(--bk-ink); border: 2px solid var(--bk-ink); font-weight: 900; box-shadow: 2px 2px 0 var(--bk-ink); }
.ed-break .article-title { font-weight: 900; }
/* 1本目も大きくせず、全部2つ並び（よくある形。正方形の商品画像を横長の大枠に入れると左右が白く空くため） */
/* 記事の画像は切らずに全部見せる（楽天などの正方形の商品画像が、横長の枠で上下を切られないように。余りは白） */
.ed-break .wp-eye, .ed-break.layout-modern .wp-eye { background: #ffffff; }
.ed-break .wp-eye img, .ed-break.layout-modern .wp-eye img { object-fit: contain; object-position: 50% 50%; }

/* 右の列：見出しは黒い帯、順位は黄色の四角 */
.ed-break .widget-title { background: var(--bk-ink); color: #ffffff; padding: 8px 12px; border: 0; font-family: var(--bk-head); font-weight: var(--bk-w); }
.ed-break .widget-title::before, .ed-break .widget-title::after { display: none; }
.ed-break .ranking-number { border-radius: 0 !important; background: var(--bk-yellow) !important; color: var(--bk-ink) !important; border: 2px solid var(--bk-ink); font-family: var(--bk-en); }
.ed-break .ranking-thumb, .ed-break .ranking-thumb img { border-radius: 0; }

/* 一番下：テープの帯 */
.ed-break .site-footer { position: relative; border-top: 0; }
.ed-break .site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--bk-tape); }
.ed-break .pagination a, .ed-break .pagination span { border-radius: 0; border: 2px solid var(--bk-ink); }

@media (max-width: 760px) {
    .ed-break .mh-hero { box-shadow: 6px 6px 0 var(--bk-ink); padding-top: 40px; }
    .ed-break .mh-collage { gap: 6px; }
}

/* カード：ショップのボタンを並べる（Rinker と同じ形） */
.pc-rk { margin: 24px 0; }
.pc-rk-box { display: flex; gap: 18px; align-items: flex-start; padding: 18px; background: #ffffff; border: 1px solid #e3e3e3; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.08); color: #333; }
.pc-rk-image { flex: 0 0 140px; text-align: center; }
.pc-rk-image img { display: block; max-width: 140px; max-height: 160px; width: auto; height: auto; margin: 0 auto; }
.pc-rk-info { flex: 1 1 auto; min-width: 0; }
.pc-rk-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.55; }
.pc-rk-title a, .pc-rk-title span { color: #2b6cb0; text-decoration: none; }
.pc-rk-title a, .pc-rk-title span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }   /* 長い商品名は3行まで */
.pc-rk-brand { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }   /* 説明は2行まで */
.pc-rk-title a:hover { text-decoration: underline; }
.pc-rk-brand { margin: 0 0 4px; font-size: 12px; color: #777; line-height: 1.6; }
.pc-rk-price { margin: 0 0 10px; font-size: 13px; color: #555; }
.pc-rk-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pc-rk-links li { flex: 1 1 120px; max-width: 200px; margin: 0; padding: 0; list-style: none; }
.pc-rk-links li::before, .pc-rk-links li::marker { content: none; }
.pc-rk-links a { display: block; padding: 8px 10px; font-size: 13px; font-weight: 700; color: #ffffff !important; text-align: center; text-decoration: none !important; border-radius: 3px; box-shadow: 0 2px 0 rgba(0,0,0,.15); line-height: 1.4; }
.pc-rk-links a:hover { opacity: .85; }
/* カードの幅が狭いとき（スマホ・2列に並べたとき）は、画像を上にして、ボタンは横いっぱいに縦に並べる */
.pc-rk { container-type: inline-size; }
@container (max-width: 460px) {
    .pc-rk-box { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
    .pc-rk-image { flex: 0 0 auto; }
    .pc-rk-image img { max-width: 100%; max-height: 180px; }
    .pc-rk-links { flex-direction: column; gap: 8px; }
    .pc-rk-links li { flex: 0 0 auto; max-width: none; width: 100%; }
    .pc-rk-links a { padding: 11px 10px; font-size: 14px; }
}
/* スマホでは、ショップのボタンのカードを2列にしない（1枚ずつ縦に並べる） */
@media (max-width: 680px) {
    .pc-card-grid:has(> .pc-rk) { grid-template-columns: minmax(0, 1fr) !important; }
}

/* 目次（大見出しが3つ以上の記事） */
.pc-toc { margin: 24px 0 28px; padding: 16px 20px 14px; background: var(--panel-2, #f6f6f6); border: 1px solid var(--line, #ddd); border-radius: 8px; }
.pc-toc-head { margin: 0 0 8px; font-weight: 900; font-size: 15px; }
.pc-toc ol { margin: 0; padding-left: 1.4em; line-height: 1.9; font-size: 14px; }
.pc-toc ol ol { padding-left: 1.2em; font-size: 13px; list-style: disc; }
.pc-toc a { color: var(--text, #222); text-decoration: none; }
.pc-toc a:hover { color: var(--acid); text-decoration: underline; }
.ed-break .pc-toc { background: #fffdf5; border: 3px solid #111; border-radius: 0; box-shadow: 6px 6px 0 #111; }
.ed-break .pc-toc-head { display: inline-block; padding: 2px 10px; background: #111; color: #ffe100; font-family: var(--bk-en); letter-spacing: .14em; }
.article-body h2[id], .article-body h3[id] { scroll-margin-top: 80px; }

/* シェアボタン（記事の下） */
.pc-share { margin: 28px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pc-share-head { font-weight: 900; letter-spacing: .14em; font-size: 13px; }
.pc-share-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-share-b { display: inline-block; padding: 7px 12px; font-size: 13px; font-weight: 700; line-height: 1.2; color: #fff; text-decoration: none; border: 0; border-radius: 6px; cursor: pointer; font-family: inherit; }
.pc-share-b:hover { opacity: .85; color: #fff; }
.pc-share-x { background: #000000; } .pc-share-line { background: #06c755; } .pc-share-hb { background: #00a4de; }
.pc-share-fb { background: #1877f2; } .pc-share-pin { background: #e60023; } .pc-share-copy { background: #555555; }
.ed-break .pc-share { padding: 12px 14px; border: 3px solid #111; background: #ffe100; box-shadow: 6px 6px 0 #111; }
.ed-break .pc-share-head { padding: 2px 10px; background: #111; color: #ffe100; font-family: var(--bk-en); }
.ed-break .pc-share-b { border-radius: 0; border: 2px solid #111; }

/* 値下がり・売り切れの印（楽天の商品記事） */
.pc-price-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 22px; padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.pc-price-badge b { display: inline-block; padding: 2px 10px; font-weight: 900; letter-spacing: .06em; }
.pc-price-badge s { opacity: .6; }
.pc-price-badge strong { font-size: 1.15em; }
.pc-price-badge.is-down { background: #fff1f1; border: 2px solid #e8384f; }
.pc-price-badge.is-down b { background: #e8384f; color: #ffffff; }
.pc-price-badge.is-down strong { color: #e8384f; }
.pc-price-badge.is-gone { background: #f3f3f3; border: 2px solid #888888; }
.pc-price-badge.is-gone b { background: #555555; color: #ffffff; }
.ed-break .pc-price-badge { border-radius: 0; border-width: 3px; box-shadow: 6px 6px 0 #111; }
.ed-break .pc-price-badge.is-down b { font-family: var(--bk-head); }


/* =========================================================
   楽天の商品の並び（記事の下の同じジャンルの人気ランキング・子カテゴリの人気商品）
   ========================================================= */
.pc-rw { margin: 34px 0; }
.article-body .pc-rw-head, .pc-rw .pc-rw-head { margin: 0 0 14px; padding: 0 0 0 12px; border: 0; border-left: 5px solid var(--acid); background: none; font-size: 18px; font-weight: 900; line-height: 1.4; color: var(--text); }
.pc-rw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pc-rw-grid.n4, .pc-rw-grid.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* 4個・8個のときは4列（6個は3列×2段） */
.pc-rw-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--text); text-decoration: none; }
.pc-rw-img { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #ffffff; border: 1px solid var(--line, #e5e5e5); }
.pc-rw-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s ease; }   /* 商品の画像は切らずに全部見せる */
.pc-rw-item:hover .pc-rw-img img { transform: scale(1.04); }
.pc-rw-own, .pc-rw-rank { position: absolute; left: 6px; top: 6px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 900; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pc-rw-own { background: var(--hot, #c6453f); color: #ffffff; }   /* 自分の記事がある商品の印 */
.pc-rw-rank { background: #1d2125; color: #ffd400; }               /* 楽天ランキングの順位 */
.pc-rw-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.5; }
.pc-rw-item:hover .pc-rw-title { color: var(--acid); }
.pc-rw-price { font-size: 13px; font-weight: 900; color: var(--hot, #c6453f); }
@media (max-width: 760px) { .pc-rw-grid, .pc-rw-grid.n4, .pc-rw-grid.n8 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .pc-rw .pc-rw-head { font-size: 16px; } }

/* 値下がり中の商品（トップは横に並べる・サイドバーは縦の一覧） */
.pc-pd.is-top { margin: 0 0 28px; padding: 16px; border: 3px solid var(--hot, #c6453f); border-radius: 10px; background: color-mix(in srgb, var(--hot, #c6453f) 5%, #ffffff); }
.pc-pd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.pc-pd-head h2 { margin: 0; padding: 0; border: 0; background: none; font-size: 19px; font-weight: 900; color: var(--hot, #c6453f); }
.pc-pd-head span { font-size: 12px; color: var(--text-dim, #6b7280); }
.pc-pd-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.pc-pd-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--text); text-decoration: none; scroll-snap-align: start; }
.pc-pd-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #ffffff; border: 1px solid var(--line, #e5e5e5); }
.pc-pd-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pc-pd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-pd-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.pc-pd-price { font-size: 12px; color: var(--text-dim, #6b7280); }
.pc-pd-price b { font-size: 14px; color: var(--hot, #c6453f); }
.pc-pd-off { align-self: flex-start; padding: 1px 7px; border-radius: 4px; background: var(--hot, #c6453f); color: #ffffff; font-size: 11px; font-weight: 900; }
.pc-pd.is-side { display: flex; flex-direction: column; gap: 12px; }
.pc-pd.is-side .pc-pd-item { flex-direction: row; align-items: flex-start; gap: 10px; }
.pc-pd.is-side .pc-pd-img { flex: 0 0 72px; width: 72px; }

/* 子カテゴリ：親のページの子カテゴリの一覧と、子カテゴリごとの欄 */
.pc-subcat-up { margin: 0 0 12px; font-size: 13px; }
.pc-subcat-up a { color: var(--acid); font-weight: 700; text-decoration: none; }
.pc-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pc-subcats a { padding: 7px 14px; border: 1.5px solid var(--acid); border-radius: 999px; background: var(--panel, #fff); color: var(--acid); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.pc-subcats a:hover { background: var(--acid); color: #ffffff; }
.pc-subcat-sec { margin: 0 0 36px; }
.pc-subcat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 2px solid var(--acid); }
.pc-subcat-head h2 { margin: 0; padding: 0; border: 0; background: none; font-size: 19px; font-weight: 900; color: var(--text); }
.pc-subcat-head a { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--acid); text-decoration: none; }
.pc-subcat-sub { margin: 18px 0 10px; font-size: 14px; font-weight: 900; color: var(--text); }
.pc-subcat-all { margin-top: 10px; }
/* サイドバーのカテゴリ一覧：子カテゴリは親の下に1段下げる */
.sb-cats a.is-child { padding-left: 26px !important; }
.sb-cat-branch { margin-right: 6px; opacity: .45; font-weight: 400; }

/* 影（サイト全体）：出さない（サイト設定「影（サイト全体）」）。ボタン・記事の画像・看板などの影をまとめて消す */
.ed-break.no-shadow *, .ed-break.no-shadow *::before, .ed-break.no-shadow *::after { box-shadow: none !important; }

/* 見出しの書体（サイト設定「見出しの書体」）。今までの書体＝ブレイク（Dela Gothic One＋英字は Anton） */
.ed-break { --bk-head: 'Dela Gothic One', 'Anton', sans-serif; --bk-en: 'Anton', 'Dela Gothic One', sans-serif; --bk-w: 400; --bk-case: uppercase; }
.ed-break.font-simple { --bk-head: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; --bk-en: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif; --bk-w: 700; --bk-case: none; }
.ed-break.font-gothic { --bk-head: 'Noto Sans JP', sans-serif; --bk-en: 'Noto Sans JP', sans-serif; --bk-w: 900; --bk-case: none; }
.ed-break.font-maru { --bk-head: 'M PLUS Rounded 1c', sans-serif; --bk-en: 'M PLUS Rounded 1c', sans-serif; --bk-w: 800; --bk-case: none; }
.ed-break.font-mincho { --bk-head: 'Zen Old Mincho', serif; --bk-en: 'Zen Old Mincho', serif; --bk-w: 900; --bk-case: none; }
