/* ==========================================================================
   しろフェチ — Base Styles (フェーズ1: 現状再現用最小CSS)
   ========================================================================== */

:root {
    --color-bg: #f5f5f5;
    --color-bg-card: #ffffff;
    --color-bg-dark: #0f0f23;
    --color-text: #333333;
    --color-text-muted: #777777;
    --color-accent: #1a73e8;
    --color-accent-hover: #1558b0;
    --color-link: #1a73e8;
    --color-border: #e0e0e0;
    --color-cta: #e91e63;
    --color-cta-hover: #c2185b;
    --color-heading: #222222;
    --max-width: 1100px;
    --sidebar-width: 300px;
    --gap: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 15px;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Layout */
#wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }
#content { display: flex; gap: var(--gap); }
#main { flex: 1; min-width: 0; }
#sidebar { width: var(--sidebar-width); flex-shrink: 0; }

/* Mobile Menu */
.sf-mobile-nav { display: none; }

@media (max-width: 767px) {
    .sf-mobile-nav {
        display: block; position: sticky; top: 0; z-index: 1000;
        background: var(--color-bg-dark);
    }
    .sf-mobile-nav__bar {
        display: flex; align-items: center; padding: 0 12px; height: 50px;
    }
    .sf-mobile-nav__toggle {
        width: 40px; height: 40px; background: none; border: none;
        cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .sf-mobile-nav__icon,
    .sf-mobile-nav__icon::before,
    .sf-mobile-nav__icon::after {
        display: block; width: 22px; height: 2px; background: #fff;
        transition: transform 0.3s, opacity 0.3s;
    }
    .sf-mobile-nav__icon { position: relative; }
    .sf-mobile-nav__icon::before,
    .sf-mobile-nav__icon::after { content: ''; position: absolute; left: 0; }
    .sf-mobile-nav__icon::before { top: -7px; }
    .sf-mobile-nav__icon::after { top: 7px; }
    /* Open state */
    .sf-mobile-nav__toggle.is-open .sf-mobile-nav__icon { background: transparent; }
    .sf-mobile-nav__toggle.is-open .sf-mobile-nav__icon::before { top: 0; transform: rotate(45deg); }
    .sf-mobile-nav__toggle.is-open .sf-mobile-nav__icon::after { top: 0; transform: rotate(-45deg); }

    .sf-mobile-nav__logo { flex: 1; text-align: center; overflow: hidden; }
    .sf-mobile-nav__logo a {
        color: #fff; font-size: 13px; font-weight: bold;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
    }

    .sf-mobile-nav__drawer {
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
        background: #1a1a2e;
    }
    .sf-mobile-nav__drawer.is-open { max-height: 500px; }
    .sf-mobile-nav__list {
        list-style: none; padding: 0; margin: 0;
    }
    .sf-mobile-nav__list li { border-bottom: 1px solid #2a2a4a; }
    .sf-mobile-nav__list a {
        display: block; padding: 12px 20px; color: #e0e0e0;
        font-size: 14px;
    }
    .sf-mobile-nav__list a:hover { background: #2a2a4a; color: #fff; }

    /* PC header/nav を非表示 */
    .sf-header { display: none; }
    .sf-nav { display: none; }
    #wrapper { padding-top: 10px; }
}

/* Header (PC) */
.sf-header { background: #0f0f23; padding: 20px 0; }
.sf-header__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }
.sf-header__title { font-size: 24px; font-weight: bold; color: #fff; }
.sf-header__title a { color: #fff; }
.sf-header__title a:hover { color: #fff; text-decoration: none; }
.sf-header__tagline { font-size: 12px; color: #a0a0b0; margin-top: 4px; }

.sf-nav { background: #16213e; border-bottom: 1px solid #2a2a4a; }
.sf-nav__list {
    max-width: var(--max-width); margin: 0 auto; padding: 0 15px;
    list-style: none; display: flex; flex-wrap: wrap; gap: 0;
}
.sf-nav__item a {
    display: block; padding: 10px 16px; color: #e0e0e0;
    font-size: 13px; transition: background 0.2s; text-decoration: none;
}
.sf-nav__item a:hover { background: #2a2a4a; color: #fff; }

/* Breadcrumb */
.sf-breadcrumb { margin: 15px 0; font-size: 12px; color: var(--color-text-muted); }
.sf-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.sf-breadcrumb li:not(:last-child)::after { content: " > "; margin-left: 4px; }
.sf-breadcrumb a { color: var(--color-text-muted); }

/* Post Detail */
.sf-post { margin-bottom: 30px; }
.sf-post__header {
    background: var(--color-bg-card); border-radius: 8px;
    padding: 20px 24px; margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.sf-post__title { font-size: 22px; line-height: 1.4; margin-bottom: 12px; color: var(--color-heading); }
.sf-post__meta {
    font-size: 12px; color: var(--color-text-muted);
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
    padding-top: 10px; border-top: 1px solid #eee;
}
.sf-post__category {
    background: var(--color-accent); color: #fff; padding: 3px 10px;
    border-radius: 20px; font-size: 11px; font-weight: bold;
    transition: background 0.2s;
}
.sf-post__category:hover { background: var(--color-accent-hover); color: #fff; }
/* 作品タイトル（本文冒頭 — H3） */
.sf-product-title {
    font-size: 16px; line-height: 1.5; margin: 0 0 16px;
    padding: 0; border-left: none; color: #555; font-weight: 600;
    max-height: calc(16px * 1.5 * 2); overflow: hidden;
}
/* 作品情報（dl/dt/dd） */
.sf-product-info {
    margin: 0 0 20px; border: 1px solid var(--color-border);
    border-radius: 6px; overflow: hidden;
}
.sf-product-info__row {
    display: flex; border-bottom: 1px solid var(--color-border);
}
.sf-product-info__row:last-child { border-bottom: none; }
.sf-product-info__label {
    width: 120px; flex-shrink: 0; padding: 10px 14px;
    background: #f8f9fa; font-weight: 600; font-size: 14px; color: #555;
}
.sf-product-info__value {
    flex: 1; padding: 10px 14px; font-size: 14px; margin: 0;
}
@media (max-width: 767px) {
    .sf-product-info__row { flex-direction: column; }
    .sf-product-info__label {
        width: 100%; padding: 8px 12px 4px;
        font-size: 12px; color: #888;
    }
    .sf-product-info__value {
        padding: 0 12px 10px; font-size: 14px;
    }
}

.sf-post__featured { margin-bottom: 20px; }
.sf-post__featured img { width: 100%; border-radius: 4px; }

.sf-post__content {
    background: var(--color-bg-card); padding: 28px 30px; border-radius: 8px;
    margin-bottom: 20px; box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.sf-post__content h2 {
    font-size: 20px; margin: 32px 0 16px; padding: 10px 0 10px 14px;
    border-bottom: none; border-left: 4px solid var(--color-accent);
    color: var(--color-heading); line-height: 1.4;
}
.sf-post__content h3 { font-size: 17px; margin: 24px 0 10px; color: var(--color-heading); }
.sf-post__content p { margin-bottom: 15px; }
.sf-post__content table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.sf-post__content table { border-radius: 6px; overflow: hidden; border: 1px solid var(--color-border); }
.sf-post__content td, .sf-post__content th {
    border: 1px solid var(--color-border); padding: 10px 14px; font-size: 14px;
}
.sf-post__content th { background: #f0f0f5; white-space: nowrap; }
.sf-post__content td:first-child { background: #f8f9fa; font-weight: 600; color: #555; white-space: nowrap; }
.sf-post__content ul, .sf-post__content ol { margin: 0 0 15px 20px; }
.sf-post__content img { border-radius: 4px; margin: 5px 0; }

/* WP AFFINGER CTA button */
.sf-post__content .st-mybtn {
    text-align: center; margin: 20px 0;
}
.sf-post__content .st-mybtn a {
    display: inline-block; background: var(--color-cta); color: #fff;
    padding: 14px 40px; border-radius: 60px; font-size: 16px; font-weight: bold;
    text-decoration: none; transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    min-width: 60%; box-shadow: 0 3px 12px rgba(233,30,99,0.25);
}
.sf-post__content .st-mybtn a:hover {
    background: var(--color-cta-hover); color: #fff;
    box-shadow: 0 5px 20px rgba(233,30,99,0.35); transform: translateY(-1px);
}
.sf-post__content .st-mybtn .st-mybtn-text { margin: 0 8px; }
.sf-post__content .st-mybtn i { font-style: normal; }

/* WP AFFINGER mybox */
.sf-post__content .st-mybox {
    background: var(--color-bg-card); border: 1px solid var(--color-accent);
    border-radius: 4px; margin: 15px 0; overflow: hidden;
}
.sf-post__content .st-mybox-title {
    background: var(--color-accent); color: #fff; padding: 8px 12px;
    font-size: 14px; display: flex; align-items: center; gap: 6px;
}
.sf-post__content .st-in-mybox { padding: 12px 15px; font-size: 14px; line-height: 1.8; }

/* WP block compatibility */
.sf-post__content .wp-block-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 20px 0; padding: 0; border-radius: 6px; overflow: hidden; }
.sf-post__content .wp-block-gallery figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; }
.sf-post__content .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; transition: transform 0.3s; }
.sf-post__content .wp-block-gallery figure:hover img { transform: scale(1.05); }
.sf-post__content figure.wp-block-image { margin: 15px 0; }
.sf-post__content .has-text-align-center { text-align: center; }

/* Tags */
.sf-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.sf-post__tag {
    background: #f0f0f5; color: var(--color-text-muted);
    padding: 5px 12px; border-radius: 20px; font-size: 12px;
    border: 1px solid var(--color-border); transition: all 0.2s;
}
.sf-post__tag:hover { color: var(--color-accent); border-color: var(--color-accent); background: #eef2ff; }

/* CTA */
.sf-cta { text-align: center; margin: 25px 0; }
.sf-cta__button {
    display: inline-block; background: var(--color-cta); color: #fff;
    padding: 14px 40px; border-radius: 6px; font-size: 16px; font-weight: bold;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    text-decoration: none; box-shadow: 0 3px 12px rgba(233,30,99,0.25);
}
.sf-cta__button:hover {
    background: var(--color-cta-hover); color: #fff;
    box-shadow: 0 5px 20px rgba(233,30,99,0.35); transform: translateY(-1px);
}

/* Kanren (Related Posts) */
.sf-kanren { margin-top: 30px; }
.sf-kanren__section { margin-bottom: 36px; }
.sf-kanren__heading {
    font-size: 16px; color: var(--color-heading); margin-bottom: 6px;
    padding: 8px 0 8px 12px; border-bottom: none;
    border-left: 3px solid var(--color-accent);
}
.sf-kanren__sub {
    font-size: 13px; color: var(--color-text-muted);
    margin: 0 0 12px 0; padding-left: 15px;
}
.sf-kanren__list { display: flex; flex-wrap: wrap; gap: 12px; }
.sf-kanren__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sf-kanren__categories { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-kanren__category-chip {
    background: #f0f0f5; color: var(--color-text-muted);
    padding: 6px 14px; border-radius: 20px; font-size: 13px;
    border: 1px solid var(--color-border); transition: all 0.2s;
}
.sf-kanren__category-chip:hover, .sf-kanren__category-chip.is-current {
    border-color: var(--color-accent); color: var(--color-accent);
}
.sf-kanren__back {
    display: block; text-align: center; margin-top: 12px;
    color: var(--color-text-muted); font-size: 13px;
}

/* Post Card */
.sf-post-card { flex: 1 1 calc(50% - 6px); min-width: 0; }
.sf-post-card__link {
    display: flex; gap: 10px; padding: 10px;
    background: var(--color-bg-card); border-radius: 6px;
    transition: box-shadow 0.2s, transform 0.2s; color: var(--color-text);
    border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sf-post-card__link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); transform: translateY(-2px); }
.sf-post-card__thumb { width: 80px; flex-shrink: 0; }
.sf-post-card__thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; }
.sf-post-card__body { flex: 1; min-width: 0; }
.sf-post-card__cat { font-size: 10px; color: var(--color-accent); }
.sf-post-card__title {
    display: -webkit-box; font-size: 13px; line-height: 1.4; margin-top: 2px;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Grid Card */
.sf-grid-card__link {
    display: block; background: var(--color-bg-card); border-radius: 6px;
    overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; color: var(--color-text);
    border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sf-grid-card__link:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); transform: translateY(-2px); }
.sf-grid-card__thumb { flex-shrink: 0; }
.sf-grid-card__thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.sf-grid-card__body {
    padding: 8px 10px 10px; height: calc(1.4em * 3); overflow: hidden; position: relative; font-size: 13px; line-height: 1.4;
}
.sf-grid-card__body::after {
    content: ""; position: absolute; bottom: 0; right: 0;
    width: 40%; height: 1.4em;
    background: linear-gradient(to right, transparent, #fff);
}
.sf-grid-card__title {
    font-size: 14px; line-height: 1.6; margin: 0;
}

/* Small Card */
.sf-small-card__link {
    display: flex; gap: 10px; align-items: center; padding: 8px;
    color: var(--color-text); transition: background 0.2s; border-radius: 4px;
}
.sf-small-card__link:hover { background: #f0f0f5; }
.sf-small-card__thumb { width: 120px; flex-shrink: 0; }
.sf-small-card__thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }
.sf-small-card__body { flex: 1; min-width: 0; }
.sf-small-card__title { font-size: 13px; line-height: 1.4; font-weight: bold; color: var(--color-heading); }
.sf-small-card__meta { font-size: 11px; color: var(--color-text-muted); margin-top: 4px; display: flex; gap: 6px; align-items: center; }
.sf-small-card__cat {
    background: var(--color-accent); color: #fff; padding: 0 6px;
    border-radius: 2px; font-size: 10px; font-weight: bold;
}

/* Sidebar */
#sidebar { padding-top: 15px; }
.sf-side-sticky { position: sticky; top: 20px; }
.sf-side-sticky .sf-side-related {
    border-top: 3px solid var(--color-accent);
}
.sf-side-search, .sf-side-recent, .sf-side-categories, .sf-side-related,
.sf-side-banners, .sf-side-ranking-links {
    background: var(--color-bg-card); border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); padding: 16px;
    margin-bottom: 16px;
}
.sf-side-related__title, .sf-side-categories__title {
    font-size: 14px; color: var(--color-heading); margin-bottom: 10px;
    padding: 0 0 8px 10px; border-bottom: none;
    border-left: 3px solid var(--color-accent); font-weight: bold;
}
.sf-side-related__list { list-style: none; }
.sf-side-related__item { margin-bottom: 10px; }
.sf-side-related__item a { display: flex; gap: 8px; align-items: center; color: var(--color-text); }
.sf-side-related__item a:hover { color: var(--color-accent); }
.sf-side-related__item a:hover .sf-side-related__thumb {
    transform: scale(1.05); box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.sf-side-related__thumb {
    width: 60px; flex-shrink: 0; aspect-ratio: 3/4; object-fit: cover;
    border-radius: 4px; transition: transform 0.2s, box-shadow 0.2s;
}
.sf-side-related__text { font-size: 12px; line-height: 1.4; }
.sf-side-related__more {
    display: block; text-align: center; margin-top: 12px;
    font-size: 12px; color: var(--color-accent);
    padding: 8px; border: 1px solid var(--color-accent);
    border-radius: 4px; transition: background 0.2s, color 0.2s;
}
.sf-side-related__more:hover {
    background: var(--color-accent); color: #000;
}
.sf-side-categories__list { list-style: none; }
.sf-side-categories__list li { border-bottom: 1px solid var(--color-border); }
.sf-side-categories__list li:last-child { border-bottom: none; }
.sf-side-categories__list a {
    display: flex; align-items: center; padding: 10px 4px; font-size: 13px;
    color: var(--color-text); transition: padding-left 0.2s, color 0.2s;
}
.sf-side-categories__list a::before {
    content: '›'; margin-right: 8px; font-size: 16px; font-weight: bold;
    color: var(--color-accent); opacity: 0; transition: opacity 0.2s;
}
.sf-side-categories__list a:hover {
    color: var(--color-accent); padding-left: 8px;
}
.sf-side-categories__list a:hover::before { opacity: 1; }

/* Hero */
.sf-hero {
    height: 230px; background-size: cover; background-position: center;
    position: relative; margin-bottom: 20px; border-radius: 6px; overflow: hidden;
}
.sf-hero__overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.55);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px; backdrop-filter: blur(2px);
}
.sf-hero__title { color: #fff; font-size: 22px; font-weight: bold; margin-bottom: 8px; }
.sf-hero__sub { color: rgba(255,255,255,0.85); font-size: 14px; }

/* Intro Box */
.sf-intro-box {
    background: #f8faff; border: none; border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0; margin: 24px 0; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.sf-intro-box__title {
    background: var(--color-accent); padding: 10px 15px; font-size: 14px;
    font-weight: bold; color: #fff; display: flex; align-items: center; gap: 8px;
}
.sf-intro-box__icon { color: var(--color-accent); font-size: 16px; }
.sf-intro-box__body { padding: 15px; font-size: 14px; line-height: 1.8; }
.sf-intro-box__body p { margin-bottom: 10px; }
.sf-intro-box__body p:last-child { margin-bottom: 0; }

/* Slider */
.sf-slider-section { margin-bottom: 25px; }
.sf-slider-section__heading {
    font-size: 18px; color: var(--color-heading); margin-bottom: 14px;
    padding-left: 12px; border-left: 3px solid var(--color-accent);
}
.sf-slider { overflow: hidden; position: relative; }
.sf-slider__track {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px;
}
.sf-slider__track::-webkit-scrollbar { display: none; }
.sf-slider__item {
    flex: 0 0 calc(33.333% - 8px); scroll-snap-align: start; min-width: 0;
}
.sf-slider__link {
    display: block; background: var(--color-bg-card); border-radius: 6px;
    overflow: hidden; color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sf-slider__link:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.10); transform: translateY(-2px); color: var(--color-text); }
.sf-slider__thumb { position: relative; }
.sf-slider__thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.sf-slider__cat {
    position: absolute; top: 6px; left: 6px;
    background: var(--color-accent); color: #000; padding: 1px 8px;
    border-radius: 2px; font-size: 10px; font-weight: bold;
}
.sf-slider__date {
    position: absolute; bottom: 6px; left: 6px;
    color: #fff; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.sf-slider__body {
    padding: 8px 10px 10px; height: calc(1.4em * 3); overflow: hidden; position: relative; font-size: 13px; line-height: 1.4;
}
.sf-slider__body::after {
    content: ""; position: absolute; bottom: 0; right: 0;
    width: 40%; height: 1.4em;
    background: linear-gradient(to right, transparent, #fff);
}
.sf-slider__title {
    font-size: 14px; line-height: 1.6; margin: 0;
}
.sf-slider__nav {
    position: absolute; top: 50%; transform: translateY(-60%); z-index: 10;
    background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.sf-slider__nav:hover { background: rgba(0,0,0,0.85); }
.sf-slider__nav--prev { left: 4px; }
.sf-slider__nav--next { right: 4px; }

/* Ranking */
.sf-ranking { margin-bottom: 25px; }
.sf-ranking__heading { font-size: 18px; color: var(--color-heading); margin-bottom: 12px; }
.sf-ranking__list { display: flex; flex-direction: column; gap: 12px; }
.sf-ranking__link {
    display: flex; gap: 16px; padding: 14px; background: var(--color-bg-card);
    border-radius: 8px; color: var(--color-text); transition: box-shadow 0.2s;
    border: 1px solid var(--color-border); align-items: center;
}
.sf-ranking__link:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); color: var(--color-text); }
.sf-ranking__thumb {
    width: 80px; height: 80px; flex-shrink: 0; position: relative;
}
.sf-ranking__thumb img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--color-border);
}
.sf-ranking__badge {
    position: absolute; top: -6px; left: -6px;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: bold; z-index: 1;
}
.sf-ranking__badge--1 { color: #f5c518; background: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.sf-ranking__badge--2 { color: #aaa; background: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.sf-ranking__badge--3 { color: #cd7f32; background: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }
.sf-ranking__badge--4,
.sf-ranking__badge--5 {
    background: #e0e0e0; color: #555; font-size: 11px;
    width: 24px; height: 24px;
}
.sf-ranking__body { flex: 1; min-width: 0; }
.sf-ranking__title {
    font-size: 15px; font-weight: bold; color: var(--color-heading); line-height: 1.4; margin-bottom: 6px;
}
.sf-ranking__meta { font-size: 11px; color: var(--color-text-muted); margin-bottom: 6px; display: flex; gap: 8px; }
.sf-ranking__cat {
    background: var(--color-accent); color: #fff; padding: 0 6px;
    border-radius: 2px; font-size: 10px; font-weight: bold;
}
.sf-ranking__excerpt {
    font-size: 12px; color: var(--color-text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Page Top Button */
.sf-page-top {
    position: fixed; bottom: 20px; right: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--color-accent); color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: bold; text-decoration: none;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
    z-index: 900; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sf-page-top.is-visible { opacity: 1; visibility: visible; }
.sf-page-top:hover { background: var(--color-accent-hover); color: #000; }

/* Home */
.sf-home-posts__heading {
    font-size: 18px; color: var(--color-heading); margin: 20px 0 15px;
    padding-left: 12px; border-left: 3px solid var(--color-accent);
}
.sf-home-blocks { margin-bottom: 25px; }
.sf-home-blocks { margin-bottom: 10px; }
.sf-home-blocks__section { margin-bottom: 24px; }
.sf-home-blocks__heading {
    font-size: 16px; color: var(--color-heading); margin-bottom: 12px;
    padding-left: 12px; border-left: 3px solid var(--color-accent);
}
.sf-home-blocks__categories { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-home-blocks__cat-chip {
    background: var(--color-bg-card); color: var(--color-text-muted);
    padding: 8px 16px; border-radius: 20px; font-size: 13px;
    border: 1px solid var(--color-border); transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sf-home-blocks__cat-chip:hover {
    border-color: var(--color-accent); color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sf-home-blocks__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* Card List (3-column archive, WP post-card-list 再現) */
.sf-card-list {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.sf-card-list__item { min-width: 0; }
.sf-card-list__link {
    display: block; background: var(--color-bg-card); border-radius: 8px;
    overflow: hidden; color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sf-card-list__link:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-3px); color: var(--color-text); }
.sf-card-list__thumb { position: relative; overflow: hidden; }
.sf-card-list__thumb img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
    transition: transform 0.3s;
}
.sf-card-list__link:hover .sf-card-list__thumb img { transform: scale(1.05); }
.sf-card-list__body { padding: 12px 14px; }
.sf-card-list__cat {
    display: inline-block; background: var(--color-accent); color: #fff;
    padding: 2px 10px; border-radius: 20px; font-size: 10px; font-weight: bold;
    margin-right: 4px;
}
.sf-card-list__date { font-size: 11px; color: var(--color-text-muted); }
.sf-card-list__title {
    font-size: 14px; font-weight: bold; line-height: 1.5;
    margin: 8px 0; color: var(--color-heading);
}
.sf-card-list__excerpt {
    font-size: 12px; color: var(--color-text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Archive Header */
.sf-archive__header {
    margin-bottom: 20px; padding: 16px 20px;
    background: var(--color-bg-card); border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.sf-archive__title { font-size: 22px; color: var(--color-heading); }
.sf-archive__desc { font-size: 14px; color: var(--color-text-muted); margin-top: 8px; }

/* Category Hub */
.sf-cat-hero {
    margin-bottom: 24px; padding: 24px;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, #f8f4ff 100%);
    border-radius: 12px; border-left: 4px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sf-cat-hero__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-cat-hero__title { font-size: 24px; color: var(--color-heading); margin: 0; }
.sf-cat-hero__count {
    display: inline-block; padding: 2px 10px;
    background: var(--color-accent); color: #fff; border-radius: 12px;
    font-size: 12px; font-weight: bold; white-space: nowrap;
}
.sf-cat-hero__desc { font-size: 14px; color: var(--color-text-muted); margin-top: 12px; line-height: 1.7; }

.sf-cat-section { margin-bottom: 32px; }
.sf-cat-section__heading {
    font-size: 18px; color: var(--color-heading); margin-bottom: 16px;
    padding-bottom: 8px; border-bottom: 2px solid var(--color-border);
}
.sf-cat-section__icon { margin-right: 6px; }

/* 代表作品（横スクロール） */
.sf-cat-featured {
    display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.sf-cat-featured::-webkit-scrollbar { height: 4px; }
.sf-cat-featured::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.sf-cat-featured__card {
    flex: 0 0 200px; scroll-snap-align: start;
    background: var(--color-bg-card); border-radius: 8px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); text-decoration: none; color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sf-cat-featured__card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.sf-cat-featured__thumb { aspect-ratio: 16/10; overflow: hidden; }
.sf-cat-featured__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-cat-featured__title {
    padding: 10px 12px; margin: 0; font-size: 13px; font-weight: 600;
    line-height: 1.4; color: var(--color-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 関連タグチップ */
.sf-cat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-cat-tags__chip {
    display: inline-block; padding: 6px 14px; border-radius: 20px;
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    font-size: 13px; color: var(--color-text); text-decoration: none;
    transition: all 0.2s;
}
.sf-cat-tags__chip:hover { border-color: var(--color-accent); color: var(--color-accent); background: #faf5ff; }
.sf-cat-tags__count { font-size: 11px; color: var(--color-text-muted); }

/* 関連カテゴリ */
.sf-cat-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sf-cat-related__card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 16px 12px; background: var(--color-bg-card); border-radius: 8px;
    border: 1px solid var(--color-border); text-decoration: none;
    transition: all 0.2s;
}
.sf-cat-related__card:hover { border-color: var(--color-accent); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.sf-cat-related__name { font-size: 14px; font-weight: 600; color: var(--color-heading); }
.sf-cat-related__count { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

/* Tag Cloud */
.sf-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-tag-cloud__chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 20px;
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    font-size: 13px; color: var(--color-text); text-decoration: none;
    transition: all 0.2s;
}
.sf-tag-cloud__chip:hover { border-color: var(--color-accent); color: var(--color-accent); background: #faf5ff; }
.sf-tag-cloud__chip.is-current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); font-weight: bold; }
.sf-tag-cloud__count { font-size: 11px; opacity: 0.7; }

@media (max-width: 767px) {
    .sf-cat-hero { padding: 16px; }
    .sf-cat-hero__title { font-size: 20px; }
    .sf-cat-featured__card { flex: 0 0 160px; }
    .sf-cat-related { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* Pagination */
.sf-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0; }
.sf-pagination a, .sf-pagination span {
    padding: 8px 14px; border-radius: 6px; font-size: 13px;
    min-width: 40px; text-align: center;
}
.sf-pagination a {
    background: var(--color-bg-card); color: var(--color-text);
    border: 1px solid var(--color-border); text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.sf-pagination a:hover { border-color: var(--color-accent); color: var(--color-accent); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.sf-pagination .is-current { background: var(--color-accent); color: #fff; font-weight: bold; border: 1px solid var(--color-accent); }
.sf-pagination .is-disabled { color: var(--color-border); }
.sf-pagination__dots { color: var(--color-text-muted); }

/* Internal Links (回遊ブロック) */
.sf-ilinks {
    background: var(--color-bg); border: 1px solid var(--color-border);
    border-radius: 6px; padding: 15px; margin: 20px 0;
}
.sf-ilinks__heading {
    font-size: 13px; font-weight: bold; color: var(--color-accent);
    margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--color-border);
}
.sf-ilinks__list { display: flex; flex-direction: column; gap: 8px; }
.sf-ilinks__more {
    display: block; text-align: right; margin-top: 8px;
    font-size: 12px; color: var(--color-accent);
}

/* Sidebar Search */
.sf-side-search { margin-bottom: 20px; }
.sf-side-search__form { display: flex; gap: 0; }
.sf-side-search__input {
    flex: 1; padding: 10px 14px; border: 2px solid var(--color-border);
    border-right: none; border-radius: 20px 0 0 20px;
    background: var(--color-bg-card); color: var(--color-text); font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s;
}
.sf-side-search__input:focus {
    outline: none; border-color: var(--color-accent);
}
.sf-side-search__input::placeholder { color: var(--color-text-muted); }
.sf-side-search__btn {
    padding: 10px 16px; background: var(--color-accent); color: #000;
    border: 2px solid var(--color-accent); border-radius: 0 20px 20px 0;
    cursor: pointer; font-size: 16px; transition: background 0.2s, transform 0.2s;
}
.sf-side-search__btn:hover { background: var(--color-accent-hover); transform: scale(1.05); }

/* Sidebar Recent Posts */
.sf-side-recent { margin-bottom: 20px; }
.sf-side-recent__title {
    font-size: 14px; font-weight: bold; color: var(--color-heading); margin-bottom: 10px;
    padding: 0 0 8px 10px; border-bottom: none;
    border-left: 3px solid var(--color-accent);
}
.sf-side-recent__list { list-style: none; }
.sf-side-recent__item { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.sf-side-recent__item:last-child { border-bottom: none; }
.sf-side-recent__item a {
    display: flex; gap: 10px; align-items: flex-start;
    color: var(--color-text); font-size: 13px; line-height: 1.5;
    transition: color 0.2s;
}
.sf-side-recent__item a:hover { color: var(--color-accent); }
.sf-side-recent__item a:hover .sf-side-recent__thumb {
    transform: scale(1.05); box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.sf-side-recent__thumb {
    width: 72px; height: 54px; flex-shrink: 0;
    object-fit: cover; border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sf-side-recent__text {
    flex: 1; min-width: 0; font-size: 13px;
}

/* SNS Share Buttons */
.sf-sns { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.sf-sns__btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 14px; border-radius: 3px; font-size: 12px; font-weight: bold;
    color: #fff; text-decoration: none; border: none; cursor: pointer;
    transition: opacity 0.2s;
}
.sf-sns__btn:hover { opacity: 0.8; color: #fff; }
.sf-sns__btn--twitter { background: #000; }
.sf-sns__btn--facebook { background: #1877f2; }
.sf-sns__btn--pocket { background: #ef4056; }
.sf-sns__btn--hatena { background: #00a4de; }
.sf-sns__btn--line { background: #06c755; }
.sf-sns__btn--copy { background: #666; }

/* Sidebar Banners */
.sf-side-banner { margin-bottom: 20px; text-align: center; }
.sf-side-ranking { margin-bottom: 12px; }
.sf-side-ranking a { display: inline-block; margin: 0 4px 8px; }
.sf-side-ranking img { max-width: 100%; height: auto; }
.sf-side-ranking__text { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; line-height: 1.6; }
.sf-side-banners { margin-bottom: 20px; }
.sf-side-banners__item { margin-bottom: 12px; text-align: center; }
.sf-side-banners__item img { max-width: 100%; height: auto; }
.sf-side-ranking-links { margin-bottom: 20px; }
.sf-side-ranking-links__title {
    font-size: 14px; font-weight: bold; color: var(--color-heading); margin-bottom: 10px;
    padding: 0 0 8px 10px; border-bottom: none;
    border-left: 3px solid var(--color-accent);
}
.sf-side-ranking-links__link { display: block; margin-bottom: 8px; text-align: center; }
.sf-side-ranking-links__link img { max-width: 100%; height: auto; }

/* Static Pages (Privacy / Disclaimer) */
.sf-static-page { max-width: 800px; }
.sf-static-page__title {
    font-size: 24px; color: var(--color-heading); margin-bottom: 28px;
    padding-bottom: 12px; border-bottom: 2px solid var(--color-border);
}
.sf-static-page__section { margin-bottom: 28px; }
.sf-static-page__section h2 {
    font-size: 16px; font-weight: bold; color: var(--color-heading);
    margin-bottom: 10px; padding-left: 10px;
    border-left: 3px solid var(--color-accent);
}
.sf-static-page__section p { font-size: 14px; line-height: 1.8; color: var(--color-text); }
.sf-static-page__section a { color: var(--color-accent); }

/* Contact Form */
.sf-contact-form p { margin-bottom: 16px; }
.sf-contact-form label { font-size: 14px; color: var(--color-text); }
.sf-contact-form__input, .sf-contact-form__textarea {
    width: 100%; padding: 10px 12px; margin-top: 4px;
    background: var(--color-bg-card); color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: 4px; font-size: 14px;
}
.sf-contact-form__input:focus, .sf-contact-form__textarea:focus {
    outline: none; border-color: var(--color-accent);
}
.sf-contact-form__textarea { resize: vertical; }
.sf-contact-form__submit {
    background: var(--color-accent); color: #000; border: none;
    padding: 10px 30px; border-radius: 4px; font-size: 14px; font-weight: bold;
    cursor: pointer; transition: background 0.2s;
}
.sf-contact-form__submit:hover { background: var(--color-accent-hover); }
.sf-contact-form__error { color: #ef4056; font-size: 12px; display: block; margin-top: 4px; }
.sf-contact__success {
    background: rgba(6, 199, 85, 0.1); border: 1px solid #06c755;
    padding: 12px 16px; border-radius: 4px; margin-bottom: 20px; color: #06c755;
}

/* Footer */
/* Footer - 3 column layout */
.sf-footer { background: #1e2530; margin-top: 40px; color: #c0c4cc; }
.sf-footer__main { padding: 40px 0 30px; }
.sf-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sf-footer__main .sf-footer__inner {
    display: grid; grid-template-columns: 1.2fr 1fr 1.5fr; gap: 40px;
}
.sf-footer__site-name {
    font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 12px;
}
.sf-footer__desc { font-size: 13px; line-height: 1.8; color: #9098a6; }
.sf-footer__col-title {
    font-size: 14px; font-weight: bold; color: #e0e2e8; margin-bottom: 14px;
}
.sf-footer__col-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.sf-footer__col-list li { margin-bottom: 6px; }
.sf-footer__col-list a {
    color: #9098a6; font-size: 13px; transition: color 0.2s;
}
.sf-footer__col-list a:hover { color: var(--color-accent); }
/* Footer bottom bar */
.sf-footer__bottom {
    border-top: 1px solid #2e3544; padding: 16px 0;
}
.sf-footer__bottom .sf-footer__inner {
    display: flex; justify-content: space-between; align-items: center;
}
.sf-footer__copy { font-size: 12px; color: #6b7280; margin: 0; }
.sf-footer__affiliate { font-size: 11px; color: #4b5563; text-align: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #2a3140; }
.sf-footer__bottom-nav { display: flex; gap: 20px; }
.sf-footer__bottom-nav a {
    color: #6b7280; font-size: 12px; transition: color 0.2s;
}
.sf-footer__bottom-nav a:hover { color: var(--color-accent); }

/* Responsive */
@media (max-width: 767px) {
    #content { flex-direction: column; }
    #sidebar { width: 100%; }
    .sf-side-related { display: none; }
    .sf-footer__main .sf-footer__inner {
        grid-template-columns: 1fr; gap: 24px;
    }
    .sf-footer__bottom .sf-footer__inner {
        flex-direction: column; gap: 8px; text-align: center;
    }
    .sf-kanren__grid { grid-template-columns: repeat(2, 1fr); }
    .sf-home-blocks__grid { grid-template-columns: repeat(2, 1fr); }
    .sf-card-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sf-card-list__title { font-size: 13px; -webkit-line-clamp: 2; }
    .sf-card-list__excerpt { display: none; }
    .sf-post__content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); }
    .sf-post__header { padding: 14px 16px; margin-bottom: 12px; }
    .sf-post__title { font-size: 18px; margin-bottom: 8px; }
    .sf-post__meta { padding-top: 8px; gap: 8px; }
    .sf-post__content { padding: 18px 16px; }
    .sf-post__content h2 { font-size: 18px; margin: 24px 0 12px; padding: 8px 0 8px 12px; }
    .sf-pagination--pc-only { display: none; }
    /* 同じ傾向・よく見られている: スマホ3列グリッド（画像上・文字下） */
    .sf-kanren__list {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    }
    .sf-post-card__link { flex-direction: column; }
    .sf-post-card__thumb { width: 100%; }
    .sf-post-card__thumb img { aspect-ratio: 3/4; }
    .sf-post-card__title { font-size: 11px; -webkit-line-clamp: 2; }
    /* 次に読むおすすめ: タイトル2行制限 */
    .sf-grid-card__body { font-size: 11px; height: calc(1.4em * 3); }
    .sf-nav__list { overflow-x: auto; flex-wrap: nowrap; }
    .sf-slider__item { flex: 0 0 calc(50% - 6px); }
    .sf-slider__nav { width: 28px; height: 28px; font-size: 12px; }
    /* FAQ */
    .sf-faq__q { padding: 12px 14px 12px 42px; font-size: 14px; }
    .sf-faq__a { padding: 12px 14px 14px 42px; }
    .sf-faq__badge { width: 22px; height: 22px; font-size: 11px; left: 12px; }
    /* 注目シーンTOP3 */
    .sf-top3__num { width: 28px; height: 28px; font-size: 14px; }
    .sf-top3__text { font-size: 14px; }
    /* 評価カード */
    .sf-ratings__item { flex: 1 1 100%; }
    /* レビュアー総評 */
    .sf-reviewer-summary { padding: 16px 18px; }
    .sf-reviewer-summary::before { font-size: 36px; top: 4px; left: 8px; }
    .sf-reviewer-summary p { padding-left: 18px; }
    /* 比較ブロック */
    .sf-diff__row { grid-template-columns: 100px 1fr 36px; }
    .sf-diff__comment { padding-left: 0; }
}

@media (min-width: 768px) and (max-width: 959px) {
    .sf-kanren__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .sf-kanren__grid { grid-template-columns: repeat(4, 1fr); }
    .sf-home-blocks__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   SEO強化ブロック
   ========================================================================== */

/* --- ポジショニング --- */
.sf-positioning {
    background: #fafbfc;
    border: none;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.sf-positioning__label {
    display: inline-block;
    background: var(--color-accent, #e74c3c);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.sf-positioning__strengths {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.sf-positioning__strengths li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.6;
}
.sf-positioning__strengths li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent, #e74c3c);
    font-weight: 700;
}
.sf-positioning__who {
    font-size: 14px;
    color: #666;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* --- 同ジャンル比較 (差別化バー) --- */
.sf-diff {
    margin: 16px 0 24px;
}
.sf-diff__row {
    display: grid;
    grid-template-columns: 180px 1fr 40px;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}
.sf-diff__label {
    font-size: 14px;
    font-weight: 600;
}
.sf-diff__bar-wrap {
    background: #eaeaea;
    border-radius: 8px;
    height: 18px;
    overflow: hidden;
}
.sf-diff__bar {
    background: linear-gradient(90deg, var(--color-accent, #1a73e8), #64b5f6);
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}
.sf-diff__score {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-align: right;
}
.sf-diff__comment {
    grid-column: 1 / -1;
    font-size: 13px;
    color: #777;
    margin-top: -6px;
    padding-left: 180px;
}
@media (max-width: 599px) {
    .sf-diff__row {
        grid-template-columns: 100px 1fr 36px;
    }
    .sf-diff__comment {
        padding-left: 0;
    }
}

/* --- FAQ (アコーディオン) --- */
.sf-faq {
    margin: 16px 0 24px;
}
.sf-faq__item {
    border: none; border-radius: 8px; margin-bottom: 10px;
    overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sf-faq__q {
    padding: 14px 16px 14px 48px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    background: #f8f9fa; list-style: none;
    position: relative; padding-right: 40px;
    display: flex; align-items: center; gap: 10px;
}
.sf-faq__badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
}
.sf-faq__badge--q { background: var(--color-accent); color: #fff; }
.sf-faq__badge--a { background: #e8e8e8; color: #555; }
.sf-faq__q::-webkit-details-marker { display: none; }
.sf-faq__q::after {
    content: "+"; position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%); font-size: 20px; font-weight: 300;
    color: #999; transition: transform 0.2s;
}
details[open] .sf-faq__q::after { content: "\2212"; }
.sf-faq__a {
    padding: 14px 16px 16px 48px;
    font-size: 14px; line-height: 1.7; margin: 0; color: #444;
    position: relative;
}
.sf-faq__a .sf-faq__badge { top: 16px; transform: none; }
.sf-faq__a-text { display: block; }

/* --- 回遊ボックス --- */
.sf-browse-box {
    background: #f5f6f8; border-radius: 8px; padding: 20px;
    margin: 28px 0;
}
.sf-browse-box__heading {
    font-size: 15px; font-weight: bold; color: var(--color-heading);
    margin: 0 0 14px; padding-left: 10px;
    border-left: 3px solid var(--color-accent);
}
.sf-browse-box__grid {
    display: flex; flex-direction: column; gap: 10px;
}
.sf-browse-box__item {
    display: flex; flex-direction: row; background: #fff; border-radius: 6px;
    overflow: hidden; color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sf-browse-box__item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.10); transform: translateY(-2px);
}
.sf-browse-box__thumb { position: relative; width: 110px; flex-shrink: 0; }
.sf-browse-box__thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.sf-browse-box__cat {
    position: absolute; top: 4px; left: 4px;
    background: var(--color-accent); color: #fff;
    padding: 1px 6px; border-radius: 3px;
    font-size: 9px; font-weight: bold;
}
.sf-browse-box__title {
    padding: 8px 10px; font-size: 13px; line-height: 1.5; margin: 0;
}
@media (min-width: 768px) {
    .sf-browse-box__grid { flex-direction: row; gap: 12px; }
    .sf-browse-box__item { flex-direction: column; flex: 1; }
    .sf-browse-box__thumb { width: 100%; }
    .sf-browse-box__thumb img { aspect-ratio: 4/3; height: auto; }
    .sf-browse-box__cat { top: 6px; left: 6px; font-size: 10px; padding: 2px 8px; }
    .sf-browse-box__title { height: calc(13px * 1.5 * 2 + 16px); overflow: hidden; }
}

/* --- レビュアーの総評（引用ブロック） --- */
.sf-reviewer-summary {
    background: #fafbfc; border-left: 4px solid #aab;
    border-radius: 0 6px 6px 0; padding: 20px 24px;
    margin: 16px 0 24px; font-size: 15px; line-height: 1.8;
    color: #444; position: relative;
}
.sf-reviewer-summary::before {
    content: "\201C"; font-size: 48px; color: #ccc;
    position: absolute; top: 8px; left: 12px; line-height: 1;
}
.sf-reviewer-summary p { margin: 0; padding-left: 24px; }

/* --- 注目シーンTOP3 --- */
.sf-top3 {
    list-style: none; margin: 16px 0 24px; padding: 0;
    counter-reset: none;
}
.sf-top3__item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid #eee;
}
.sf-top3__item:last-child { border-bottom: none; }
.sf-top3__num {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--color-accent); color: #fff;
    font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.sf-top3__text {
    font-size: 15px; line-height: 1.6; padding-top: 4px;
}

/* --- メインビジュアル動画（記事冒頭のプレイヤー） --- */
.sf-main-video {
    margin: 0 0 20px;
}
.sf-main-video > div {
    width: 100%;
}

/* --- CTA補助テキスト --- */
.sf-cta-helper {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: var(--color-heading);
    margin: 24px 0 6px;
    padding: 10px 16px;
    background: #fff8f0;
    border-left: 3px solid var(--color-cta);
    border-radius: 0 4px 4px 0;
}

/* --- レビュー評価カード --- */
.sf-ratings {
    display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px;
}
.sf-ratings__item {
    flex: 1 1 calc(50% - 5px); min-width: 140px;
    background: #f8f9fa; border-radius: 8px; padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.sf-ratings__label {
    font-size: 14px; font-weight: 600; color: #444;
}
.sf-ratings__stars {
    font-size: 14px; color: #f5a623; letter-spacing: 1px;
}

/* --- Wide Card (同じ系統の作品) --- */
.sf-kanren__wide-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.sf-wide-card__link {
    display: block; background: var(--color-bg-card); border-radius: 6px;
    overflow: hidden; color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sf-wide-card__link:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10); transform: translateY(-2px);
}
.sf-wide-card__thumb {
    position: relative;
}
.sf-wide-card__thumb img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.sf-wide-card__cat {
    position: absolute; top: 8px; left: 8px;
    background: var(--color-accent); color: #fff;
    padding: 2px 10px; border-radius: 3px;
    font-size: 11px; font-weight: bold;
}
.sf-wide-card__body {
    padding: 10px 12px; height: calc(14px * 1.6 * 2 + 20px); overflow: hidden;
}
.sf-wide-card__title {
    font-size: 14px; margin: 0;
}
@media (max-width: 767px) {
    .sf-kanren__wide-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sf-wide-card__title { font-size: 12px; }
}

/* --- kanren アイコン --- */
.sf-kanren__icon {
    font-size: 16px; margin-right: 4px;
}

/* --- カテゴリチップ is-current 強調 --- */
.sf-kanren__category-chip.is-current {
    background: var(--color-accent); color: #fff;
    border-color: var(--color-accent);
}

/* ================================================
   AFFINGER互換CSS（WPインポート記事用）
   content_htmlをそのまま表示する際に最低限の見た目を保証する
   ================================================ */

/* --- 黒板リスト --- */
.st-blackboard-list {
    background: #2d3748; border-radius: 6px;
    padding: 16px 16px 16px 20px; list-style: none; margin: 16px 0;
}
.st-blackboard-list li {
    color: #fff; padding: 5px 0; font-size: 14px; line-height: 1.7;
    padding-left: 1.2em; position: relative;
}
.st-blackboard-list li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--color-accent); font-weight: bold;
}
.st-blackboard { background: #2d3748; color: #fff; border-radius: 6px; padding: 16px; margin: 16px 0; }
.st-blackboard-title-box { background: #1a202c; border-radius: 6px 6px 0 0; padding: 8px 14px; margin: 16px 0 0; }
.st-blackboard-title { color: #fff; font-weight: bold; font-size: 14px; }

/* --- チェックボックス・リスト系 --- */
.st-square-checkbox, .st-square-checkbox-nobox,
.st-list-check, .st-list-circle, .st-list-border, .st-list-no {
    list-style: none; padding-left: 0; margin: 12px 0;
}
.st-square-checkbox li, .st-square-checkbox-nobox li,
.st-list-check li {
    padding: 4px 0 4px 1.6em; position: relative; font-size: 14px; line-height: 1.7;
}
.st-square-checkbox li::before, .st-list-check li::before {
    content: '☑'; position: absolute; left: 0;
    color: var(--color-accent); font-size: 14px;
}
.st-square-checkbox-nobox li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent); }
.st-list-circle li { padding: 4px 0 4px 1.4em; position: relative; font-size: 14px; }
.st-list-circle li::before { content: '●'; position: absolute; left: 0; color: var(--color-accent); font-size: 10px; top: 8px; }
.st-list-border li { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.st-list-no { counter-reset: st-no; }
.st-list-no li { padding: 4px 0 4px 1.8em; position: relative; font-size: 14px; }
.st-list-no li::before { counter-increment: st-no; content: counter(st-no); position: absolute; left: 0; background: var(--color-accent); color: #000; border-radius: 50%; width: 1.4em; height: 1.4em; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; }

/* --- mybox（吹き出し風ボックス） --- */
.st-mybox {
    border: 2px solid var(--color-accent); border-radius: 8px;
    padding: 16px; margin: 16px 0; position: relative;
}
.st-mybox-title {
    background: var(--color-accent); color: #000 !important; font-weight: bold;
    font-size: 13px; padding: 4px 10px; border-radius: 4px;
    display: inline-block; margin-bottom: 8px;
}
.st-mybox-title-text { color: #000 !important; }
.st-memobox2 {
    background: #f8faff; border-left: 4px solid var(--color-accent);
    border-radius: 0 6px 6px 0; padding: 14px 16px; margin: 16px 0;
}
.st-memobox-title { font-weight: bold; font-size: 13px; color: var(--color-accent); margin-bottom: 6px; }

/* --- カードスタイル --- */
.st-cardstyle, .st-cardstyleb {
    border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden; margin: 16px 0;
}

/* --- matome・まとめボックス --- */
.st-matome {
    background: var(--color-bg); border: 2px solid var(--color-accent);
    border-radius: 8px; padding: 16px; margin: 20px 0;
}

/* --- ボタンラッパー（st-mybtnはp要素に付くコンテナ） --- */
.st-mybtn, .st-mybtn-noborder {
    display: block; text-align: center; margin: 16px auto;
}
.st-mybtn a, .st-mybtn-noborder a {
    display: inline-block; text-decoration: none;
}

/* --- リンクガイド --- */
.st-link-guide { margin: 12px 0; }
.st-link-guide-menu { list-style: none; padding: 0; }
.st-link-guide-menu li { padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }

/* --- ナビボックス --- */
.st-sc-listnavi-box { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 6px; padding: 14px; margin: 16px 0; }
.st-sc-listnavi { list-style: none; padding: 0; }
.st-sc-listnavi li { padding: 5px 0; font-size: 14px; }
