/*
Theme Name: NoteStyle
Theme URI:
Author: Claude Code
Author URI:
Description: note風の記事一覧トップを持つシンプルなテーマ。ヒーローエリア無し、上部にサイト名とグローバルメニューのみ。会員登録と会員限定記事に対応。
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: notestyle
*/

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
    --radius: 8px;
    --header-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --footer-bg: #1a1a2e;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: clip;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: var(--header-bg);
    padding: 0;
    margin-bottom: 0;
    position: relative;
}

/* スティッキーヘッダー(スクロール時に出現) */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

.sticky-header.is-visible {
    transform: translateY(0);
}

/* スティッキーフリースペース */
.sticky-freespace {
    background: var(--primary-color, #4a90a4);
    padding: 6px 0;
    font-size: 0.85rem;
    overflow: visible;
}

.sticky-freespace .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    overflow: visible;
}

.sticky-freespace a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: background 0.2s;
}

.sticky-freespace a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* スティッキーリンクカード */
.sticky-link-cards {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sticky-link-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sticky-link-card:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.sticky-link-card img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
}

/* スティッキーフリースペース内のリンクカード */
.sticky-freespace .widget {
    margin: 0;
    padding: 0;
}

.sticky-freespace .widget-title {
    display: none;
}

/* リンクカード - 本文部分のみ非表示、背景色変更可能 */
.sticky-freespace .tuuhan-linkcard {
    margin: 0 !important;
    border-radius: 8px !important;
    overflow: visible !important;
    background: var(--sticky-linkcard-bg-color, #ffffff) !important;
}

.sticky-freespace .tuuhan-linkcard-image {
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sticky-freespace .tuuhan-linkcard-image img,
.sticky-freespace .tuuhan-linkcard img {
    width: auto !important;
    height: var(--sticky-freespace-img-height, 50px) !important;
    max-height: var(--sticky-freespace-img-height, 50px) !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

.sticky-freespace .tuuhan-linkcard-body {
    display: none !important;
}

/* スティッキーフリースペース内の画像(直接img) */
.sticky-freespace img,
.sticky-header .sticky-freespace img {
    height: var(--sticky-freespace-img-height, 50px) !important;
    max-height: var(--sticky-freespace-img-height, 50px) !important;
    width: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* スティッキーナビ */
.sticky-nav {
    background: var(--sticky-nav-bg-color, #2c3e50);
    padding: 0;
    position: relative;
}

.sticky-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sticky-nav-text-color, #ffffff);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.sticky-logo img {
    height: 28px;
    width: auto;
}

.sticky-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.sticky-nav li {
    position: relative;
}

.sticky-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--sticky-nav-text-color, #ffffff);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sticky-nav a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* スティッキーモバイルトグル */
.sticky-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
}

.sticky-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--sticky-nav-text-color, #ffffff);
    transition: all 0.3s;
}

/* スティッキーメニューオーバーレイ */
.sticky-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9998;
}

.sticky-header.menu-open .sticky-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* ハンバーガーメニュー(モバイル用ウィジェットエリア) */
.sticky-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
}

.sticky-header.menu-open .sticky-mobile-menu {
    display: block;
}

.sticky-mobile-menu-inner {
    padding: 15px;
}

.sticky-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-mobile-menu li {
    border-bottom: 1px solid #eee;
}

.sticky-mobile-menu li:last-child {
    border-bottom: none;
}

.sticky-mobile-menu a {
    display: block;
    padding: 12px 10px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.sticky-mobile-menu a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

.sticky-mobile-menu .sticky-menu-widget {
    margin-bottom: 15px;
}

.sticky-mobile-menu .sticky-menu-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

/* デスクトップではハンバーガーメニューを非表示 */
@media (min-width: 769px) {
    .sticky-mobile-menu {
        display: none !important;
    }
    .sticky-nav .sticky-desktop-menu {
        display: flex;
    }
}

/* モバイルではデスクトップメニューを非表示 */
@media (max-width: 768px) {
    .sticky-nav .sticky-desktop-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .sticky-freespace {
        padding: 4px 0 !important;
    }

    .sticky-freespace .container {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px !important;
    }

    .sticky-freespace .container::-webkit-scrollbar {
        display: none;
    }

    .sticky-freespace .tuuhan-linkcard-image img {
        max-height: var(--sticky-freespace-img-height, 50px);
        height: auto;
        width: auto;
        object-fit: contain;
    }

    .sticky-freespace .tuuhan-linkcard {
        border-radius: 6px;
    }

    .sticky-freespace .tuuhan-linkcard-image {
        height: var(--sticky-freespace-img-height, 50px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sticky-link-cards {
        gap: 6px;
        flex-wrap: nowrap;
    }

    .sticky-link-card {
        padding: 2px 8px;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .sticky-link-card img {
        width: 16px;
        height: 16px;
    }

    .sticky-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg-color, #f5f5f5);
        flex-direction: column;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
    }

    .sticky-nav.nav-open ul {
        display: flex;
    }

    .sticky-mobile-toggle {
        display: flex;
    }

    /* スティッキーナビをコンパクトに */
    .sticky-nav .container {
        padding: 6px 10px;
    }

    .sticky-logo {
        font-size: 0.85rem;
    }

    .sticky-logo img {
        height: 22px;
    }
}

/* ヘッダー上部(ロゴエリア) */
.header-top {
    padding: 20px 0;
    background: linear-gradient(135deg, var(--header-bg) 0%, rgba(0,0,0,0.2) 100%);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.site-logo:hover {
    text-decoration: none;
    color: #fff;
    transform: scale(1.02);
}

/* ロゴ中央寄せ */
.site-header.logo-center .header-top .container {
    justify-content: center;
    flex-wrap: wrap;
}

.site-header.logo-center .site-logo {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.site-header.logo-center .mobile-menu-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.site-header.logo-center .header-top .container {
    position: relative;
}

/* グローバルナビゲーション */
.site-nav {
    background: var(--nav-bg-color, #f5f5f5);
    padding: 0;
    position: relative;
}

/* メニューとヒーローの境界線(グラデーション) */
.site-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.3) 20%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.3) 80%,
        transparent 100%);
}

.site-nav .container {
    display: flex;
    justify-content: center;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

.site-nav li {
    position: relative;
}

.site-nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* メニューアイテム区切り線 */
.site-nav li:not(:last-child) a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
}

/* ホバーエフェクト */
.site-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.site-nav a:hover {
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
}

.site-nav a:hover::before {
    width: 80%;
}

/* アクティブメニュー */
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
    color: #fff;
}

.site-nav .current-menu-item a::before,
.site-nav .current_page_item a::before {
    width: 80%;
}

/* サブメニュー(ドロップダウン) */
.site-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(30, 30, 50, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    flex-direction: column;
    z-index: 100;
}

.site-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav .sub-menu li {
    width: 100%;
}

.site-nav .sub-menu a {
    padding: 12px 20px;
    font-size: 0.9rem;
    text-transform: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-nav .sub-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.site-nav .sub-menu a::after {
    display: none;
}

.site-nav .sub-menu a:hover {
    background: rgba(102, 126, 234, 0.3);
    padding-left: 25px;
}

/* Main */
.site-main {
    padding: 30px 0;
    overflow: visible;
    max-width: 100%;
}

/* Product Grid Layouts */
.product-grid {
    display: grid;
    gap: 20px;
}

/* Default: 4 columns */
.product-grid.layout-default {
    grid-template-columns: repeat(4, 1fr);
}

/* Grid 5 columns */
.product-grid.layout-grid5 {
    grid-template-columns: repeat(5, 1fr);
}

/* Grid 4 columns */
.product-grid.layout-grid4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Grid 3 columns */
.product-grid.layout-grid3 {
    grid-template-columns: repeat(3, 1fr);
}

/* List layout */
.product-grid.layout-list {
    grid-template-columns: 1fr;
}

.product-grid.layout-list .product-card {
    display: flex;
    gap: 20px;
}

.product-grid.layout-list .product-card-image {
    width: 200px;
    flex-shrink: 0;
}

/* List 2 columns */
.product-grid.layout-list2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-grid.layout-list2 .product-card {
    display: flex;
    gap: 15px;
}

.product-grid.layout-list2 .product-card-image {
    width: 120px;
    flex-shrink: 0;
}

/* Magazine layout */
.product-grid.layout-magazine {
    grid-template-columns: repeat(3, 1fr);
}

.product-grid.layout-magazine .product-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* Pinterest layout */
.product-grid.layout-pinterest {
    columns: 4;
    column-gap: 20px;
}

.product-grid.layout-pinterest .product-card {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* Wide 2 columns */
.product-grid.layout-wide2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Ranking layout */
.product-grid.layout-ranking {
    grid-template-columns: 1fr;
    counter-reset: ranking;
}

.product-grid.layout-ranking .product-card {
    display: flex;
    gap: 20px;
    position: relative;
    padding-left: 60px;
}

.product-grid.layout-ranking .product-card::before {
    counter-increment: ranking;
    content: counter(ranking);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.product-grid.layout-ranking .product-card:nth-child(1)::before {
    background: #ffd700;
    color: #333;
}

.product-grid.layout-ranking .product-card:nth-child(2)::before {
    background: #c0c0c0;
    color: #333;
}

.product-grid.layout-ranking .product-card:nth-child(3)::before {
    background: #cd7f32;
}

.product-grid.layout-ranking .product-card-image {
    width: 150px;
    flex-shrink: 0;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #eee;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 15px;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-title a {
    color: var(--text-color);
}

.product-card-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.product-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-color);
}

.product-card-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.product-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-color);
    border-radius: 3px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Badge */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
}

/* Single Product */
.single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-main-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: var(--primary-color);
}

.product-info h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-price-box {
    background: var(--bg-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.product-price-box .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.product-buy-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: var(--radius);
    text-align: center;
    transition: background 0.2s;
}

.product-buy-btn:hover {
    background: #0056b3;
    text-decoration: none;
    color: #fff;
}

/* Sidebar */
.sidebar {
    min-width: 0;
    align-self: stretch;
    height: 100%;
}

/* 通常サイドバー(追従しない) */
.sidebar-main {
    margin-bottom: 20px;
}

/* 追従サイドバー */
.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height, 80px) + 20px);
}

.sidebar-sticky.stick-top {
    top: calc(var(--header-height, 80px) + 20px);
    bottom: auto;
}

.sidebar-sticky.stick-bottom {
    top: auto;
    bottom: 20px;
}

/* サイドバー親要素のoverflow無効化(sticky追従のため必須) */
#secondary,
.sidebar,
.sidebar-inner,
.widget-area {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .sidebar {
        align-self: start;
    }
}

/* ウィジェット共通 */
.sidebar-widget,
.sidebar .widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-widget:last-child,
.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3,
.sidebar-widget .widget-title,
.sidebar .widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

/* 最新記事ウィジェット */
.sidebar .widget_recent_entries ul,
.sidebar .wp-block-latest-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget_recent_entries li,
.sidebar .wp-block-latest-posts li {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar .widget_recent_entries li:last-child,
.sidebar .wp-block-latest-posts li:last-child {
    margin-bottom: 0;
}

.sidebar .widget_recent_entries li:hover,
.sidebar .wp-block-latest-posts li:hover {
    background: var(--primary-color);
}

.sidebar .widget_recent_entries a,
.sidebar .wp-block-latest-posts a {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    text-decoration: none;
}

.sidebar .widget_recent_entries li:hover a,
.sidebar .wp-block-latest-posts li:hover a {
    color: #fff;
}

.sidebar .widget_recent_entries .post-date,
.sidebar .wp-block-latest-posts__post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.sidebar .widget_recent_entries li:hover .post-date {
    color: rgba(255,255,255,0.7);
}

/* カテゴリーウィジェット */
.sidebar .widget_categories ul,
.sidebar .wp-block-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget_categories li {
    margin-bottom: 0;
}

.sidebar .widget_categories a,
.sidebar .wp-block-categories a {
    display: block;
    padding: 10px 14px;
    background: var(--bg-color);
    border-radius: 6px;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar .widget_categories a:hover,
.sidebar .wp-block-categories a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* アーカイブウィジェット */
.sidebar .widget_archive ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget_archive a {
    display: block;
    padding: 10px 14px;
    background: var(--bg-color);
    border-radius: 6px;
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar .widget_archive a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 最近のコメントウィジェット */
.sidebar .widget_recent_comments ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget_recent_comments li {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sidebar .widget_recent_comments li:last-child {
    margin-bottom: 0;
}

.sidebar .widget_recent_comments a {
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar .widget_recent_comments a:hover {
    text-decoration: underline;
}

/* 検索ウィジェット */
.sidebar .widget_search .search-form,
.sidebar .wp-block-search {
    display: flex;
    gap: 8px;
}

.sidebar .widget_search .search-field,
.sidebar .wp-block-search__input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-color);
}

.sidebar .widget_search .search-field:focus,
.sidebar .wp-block-search__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sidebar .widget_search .search-submit,
.sidebar .wp-block-search__button {
    padding: 10px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar .widget_search .search-submit:hover,
.sidebar .wp-block-search__button:hover {
    background: var(--primary-dark);
}

/* タグクラウド */
.sidebar .widget_tag_cloud .tagcloud,
.sidebar .wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar .widget_tag_cloud a,
.sidebar .wp-block-tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem !important;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar .widget_tag_cloud a:hover,
.sidebar .wp-block-tag-cloud a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* メタウィジェット */
.sidebar .widget_meta ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget_meta a {
    display: block;
    padding: 8px 14px;
    color: var(--text-color);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar .widget_meta a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* カスタムHTMLウィジェット */
.sidebar .widget_custom_html {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* テキストウィジェット */
.sidebar .widget_text {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* カレンダーウィジェット */
.sidebar .widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sidebar .widget_calendar th,
.sidebar .widget_calendar td {
    text-align: center;
    padding: 8px;
}

.sidebar .widget_calendar th {
    background: var(--bg-color);
    font-weight: 600;
}

.sidebar .widget_calendar td a {
    display: block;
    background: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

/* レガシークラス用(互換性) */
.category-list,
.tag-cloud {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin-bottom: 0;
}

.category-list a {
    display: block;
    padding: 10px 14px;
    background: var(--bg-color);
    border-radius: 6px;
    margin-bottom: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.category-list a:hover {
    background: var(--primary-color);
    color: #fff;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: var(--card-bg);
    border-radius: 4px;
    color: var(--text-color);
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.pagination .current {
    background: var(--primary-color);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #888;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

/* 背景画像が設定されていない場合のみグラデーション */
.hero-section:not([style*="url"]) {
    background-image: linear-gradient(135deg, var(--primary-color), #6366f1);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Hero Slider */
.hero-section.has-slider {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    overflow: hidden;
}

.hero-section.has-slider::before {
    display: none !important;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider-item.active {
    opacity: 1;
}

/* Slide effect */
.hero-slider[data-effect="slide"] .hero-slider-item {
    opacity: 1;
    transition: transform 0.8s ease-in-out;
    transform: translateX(100%);
}

.hero-slider[data-effect="slide"] .hero-slider-item.active {
    transform: translateX(0);
    z-index: 2;
}

.hero-slider[data-effect="slide"] .hero-slider-item.prev {
    transform: translateX(-100%);
    z-index: 1;
}

/* Zoom effect */
.hero-slider[data-effect="zoom"] .hero-slider-item {
    transition: opacity 1.2s ease-in-out, transform 8s ease-out;
    transform: scale(1);
}

.hero-slider[data-effect="zoom"] .hero-slider-item.active {
    transform: scale(1.1);
}

/* Ken Burns effect (映画風ゆっくりズーム&パン) */
.hero-slider[data-effect="kenburns"] .hero-slider-item {
    transition: opacity 1.5s ease-in-out;
    animation: none;
}

.hero-slider[data-effect="kenburns"] .hero-slider-item.active {
    opacity: 1;
    animation: kenburns 8s ease-out forwards;
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -1%); }
}

/* Blur fade effect */
.hero-slider[data-effect="blur"] .hero-slider-item {
    transition: opacity 0.8s ease-in-out, filter 0.8s ease-in-out;
    filter: blur(20px);
}

.hero-slider[data-effect="blur"] .hero-slider-item.active {
    opacity: 1;
    filter: blur(0);
}

.hero-slider[data-effect="blur"] .hero-slider-item.prev {
    filter: blur(20px);
}

/* 3D Flip effect */
.hero-slider[data-effect="flip"] {
    perspective: 1500px;
}

.hero-slider[data-effect="flip"] .hero-slider-item {
    opacity: 1;
    transition: transform 0.8s ease-in-out;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.hero-slider[data-effect="flip"] .hero-slider-item.active {
    transform: rotateY(0deg);
    z-index: 2;
}

.hero-slider[data-effect="flip"] .hero-slider-item.prev {
    transform: rotateY(-180deg);
    z-index: 1;
}

/* Cube effect */
.hero-slider[data-effect="cube"] {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.hero-slider[data-effect="cube"] .hero-slider-item {
    opacity: 1;
    transition: transform 1s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform: translateZ(-50vh) rotateY(90deg);
    transform-origin: center center;
}

.hero-slider[data-effect="cube"] .hero-slider-item.active {
    transform: translateZ(0) rotateY(0deg);
    z-index: 2;
}

.hero-slider[data-effect="cube"] .hero-slider-item.prev {
    transform: translateZ(-50vh) rotateY(-90deg);
    z-index: 1;
}

/* Iris (円形) effect */
.hero-slider[data-effect="iris"] .hero-slider-item {
    transition: clip-path 1s ease-in-out, opacity 0.5s ease-in-out;
    clip-path: circle(0% at 50% 50%);
    opacity: 1;
}

.hero-slider[data-effect="iris"] .hero-slider-item.active {
    clip-path: circle(150% at 50% 50%);
    z-index: 2;
}

.hero-slider[data-effect="iris"] .hero-slider-item.prev {
    clip-path: circle(150% at 50% 50%);
    z-index: 1;
}

.hero-section.has-slider .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section.has-slider .hero-particles {
    z-index: 1;
}

/* =====================================
 * 個別スライドエフェクト
 * 各画像ごとに異なるエフェクトを適用可能
 * ===================================== */

/* 基本: 全スライドは最初は非表示 */
.hero-slider-item {
    opacity: 0;
    transform: none;
    transition: opacity 1s ease, transform 1s ease, filter 0.8s ease;
}

.hero-slider-item.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider-item.leaving {
    z-index: 1;
}

/* フェード */
.hero-slider-item.effect-fade {
    transition: opacity 1s ease-in-out;
}

/* ズームイン */
.hero-slider-item.effect-zoom-in {
    transform: scale(0.9);
    transition: opacity 1s ease, transform 6s ease-out;
}
.hero-slider-item.effect-zoom-in.active {
    transform: scale(1.05);
}

/* ズームアウト */
.hero-slider-item.effect-zoom-out {
    transform: scale(1.15);
    transition: opacity 1s ease, transform 6s ease-out;
}
.hero-slider-item.effect-zoom-out.active {
    transform: scale(1);
}

/* ケンバーンズ(映画風) */
.hero-slider-item.effect-kenburns.active {
    animation: kenburns-individual 8s ease-out forwards;
}
@keyframes kenburns-individual {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -1%); }
}

/* ブラーフェード */
.hero-slider-item.effect-blur {
    filter: blur(20px);
    transition: opacity 0.8s ease, filter 0.8s ease;
}
.hero-slider-item.effect-blur.active {
    filter: blur(0);
}
.hero-slider-item.effect-blur.leaving {
    filter: blur(20px);
}

/* スライド(左から) */
.hero-slider-item.effect-slide-left {
    transform: translateX(-100%);
    opacity: 1;
    transition: transform 0.8s ease-in-out;
}
.hero-slider-item.effect-slide-left.active {
    transform: translateX(0);
}
.hero-slider-item.effect-slide-left.leaving {
    transform: translateX(100%);
}

/* スライド(右から) */
.hero-slider-item.effect-slide-right {
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.8s ease-in-out;
}
.hero-slider-item.effect-slide-right.active {
    transform: translateX(0);
}
.hero-slider-item.effect-slide-right.leaving {
    transform: translateX(-100%);
}

/* スライド(下から) */
.hero-slider-item.effect-slide-up {
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.8s ease-in-out;
}
.hero-slider-item.effect-slide-up.active {
    transform: translateY(0);
}
.hero-slider-item.effect-slide-up.leaving {
    transform: translateY(-100%);
}

/* Freespace */
.freespace {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid.layout-default,
    .product-grid.layout-grid5,
    .product-grid.layout-grid4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid.layout-pinterest {
        columns: 3;
    }

    .single-product {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid.layout-default,
    .product-grid.layout-grid5,
    .product-grid.layout-grid4,
    .product-grid.layout-grid3,
    .product-grid.layout-wide2,
    .product-grid.layout-list2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid.layout-magazine {
        grid-template-columns: 1fr;
    }

    .product-grid.layout-magazine .product-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .product-grid.layout-pinterest {
        columns: 2;
    }

    .product-grid.layout-list .product-card,
    .product-grid.layout-list2 .product-card {
        flex-direction: column;
    }

    .product-grid.layout-list .product-card-image,
    .product-grid.layout-list2 .product-card-image {
        width: 100%;
    }

    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .site-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .product-grid.layout-default,
    .product-grid.layout-grid5,
    .product-grid.layout-grid4,
    .product-grid.layout-grid3,
    .product-grid.layout-wide2,
    .product-grid.layout-list2 {
        grid-template-columns: 1fr;
    }

    .product-grid.layout-pinterest {
        columns: 1;
    }
}

/* ===============================
   追加スタイル
   =============================== */

/* Site Content Layout */
.site-content {
    display: grid;
    gap: 30px;
    align-items: stretch;
}

.site-content.has-sidebar {
    grid-template-columns: 1fr 300px;
}

.site-content.has-sidebar.sidebar-left {
    grid-template-columns: 300px 1fr;
}

.site-content.has-sidebar.sidebar-left .sidebar {
    order: -1;
}

.site-content.no-sidebar {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .site-content.has-sidebar,
    .site-content.has-sidebar.sidebar-left {
        grid-template-columns: 1fr;
    }

    .site-content.has-sidebar.sidebar-left .sidebar {
        order: 0;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .header-top .container {
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        background: rgba(20, 20, 40, 0.98);
        backdrop-filter: blur(10px);
    }

    .site-nav.active {
        display: block;
    }

    .site-nav .container {
        padding: 0;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav a {
        padding: 15px 20px;
        text-transform: none;
        font-size: 1rem;
        justify-content: flex-start;
    }

    .site-nav li:not(:last-child) a::after {
        display: none;
    }

    .site-nav a::before {
        left: 0;
        transform: none;
        width: 3px;
        height: 100%;
        bottom: auto;
        top: 0;
        border-radius: 0 3px 3px 0;
    }

    .site-nav a:hover::before {
        width: 3px;
    }

    .site-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
        box-shadow: none;
    }

    .site-nav .sub-menu a {
        padding-left: 40px;
    }
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Archive Header */
.archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.archive-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.archive-description {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.archive-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Layout Switcher */
.layout-switcher {
    display: flex;
    gap: 5px;
    margin-top: 15px;
}

.layout-btn {
    padding: 8px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.layout-btn:hover,
.layout-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Single Product Additions */
.product-maker,
.product-content-id,
.product-categories {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.product-maker .label,
.product-content-id .label,
.product-categories .label {
    color: var(--text-muted);
    margin-right: 8px;
}

.category-link {
    display: inline-block;
    margin-right: 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.product-rating .stars {
    color: #ffc107;
}

.product-rating .star.empty {
    color: #ddd;
}

.product-rating .rating-value {
    font-weight: bold;
}

.product-rating .review-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sale-info {
    margin-bottom: 5px;
}

.sale-info .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 10px;
}

.sale-info .discount-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
}

.product-tags {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-tags .label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Related Products */
.related-products {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-title {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.error-404 p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-search {
    max-width: 400px;
    margin: 0 auto 30px;
}

.error-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-color-hover, #0056b3);
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
    text-decoration: none;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-form .search-submit {
    padding: 12px 25px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .search-submit:hover {
    background: var(--primary-color-hover, #0056b3);
}

/* Search Result Item */
.search-result-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.search-result-item .entry-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.search-result-item .entry-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.search-result-item .entry-meta span {
    margin-right: 15px;
}

.search-result-item .entry-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.no-results h2 {
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Animations */
.animate-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Card Price Styles */
.product-card-price .sale-price {
    color: var(--sale-price-color, var(--accent-color));
    font-weight: bold;
}

.product-card-price .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 8px;
}

/* Block Styles */
.is-style-gradient .wp-block-button__link {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.is-style-outline-primary .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.is-style-outline-primary .wp-block-button__link:hover {
    background: var(--primary-color);
    color: #fff;
}

.is-style-shine .wp-block-button__link {
    position: relative;
    overflow: hidden;
}

.is-style-shine .wp-block-button__link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    100% {
        left: 100%;
    }
}

.is-style-shadow .wp-block-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.is-style-border .wp-block-image img {
    border: 3px solid var(--border-color);
}

.is-style-card .wp-block-group {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.is-style-gradient-bg .wp-block-group {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
}

/* Hero Section with Variables */
.hero-section {
    color: var(--hero-text-color, #fff);
}
.hero-section:not([style*="url"]) {
    background-image: linear-gradient(135deg, var(--hero-bg-color-1, var(--primary-color)), var(--hero-bg-color-2, #6366f1));
}

/* Sidebar Styles with Variables */
.sidebar {
    background: var(--sidebar-bg-color, var(--card-bg));
}

.sidebar-widget h3 {
    color: var(--sidebar-title-color, var(--text-color));
    border-bottom-color: var(--sidebar-title-border-color, var(--primary-color));
}

/* Ranking Colors with Variables */
.product-grid.layout-ranking .product-card:nth-child(1)::before {
    background: var(--rank1-color, #ffd700);
}

.product-grid.layout-ranking .product-card:nth-child(2)::before {
    background: var(--rank2-color, #c0c0c0);
}

.product-grid.layout-ranking .product-card:nth-child(3)::before {
    background: var(--rank3-color, #cd7f32);
}

.product-grid.layout-ranking .product-card:nth-child(n+4)::before {
    background: var(--rank-default-color, var(--primary-color));
}

/* Pagination with Variables */
.pagination a,
.pagination span {
    background: var(--pagination-bg-color, var(--card-bg));
    color: var(--pagination-text-color, var(--text-color));
}

.pagination .current {
    background: var(--pagination-active-bg-color, var(--primary-color));
    color: var(--pagination-active-text-color, #fff);
}

/* Tags with Variables */
.tag-cloud a,
.product-tag {
    background: var(--tag-bg-color, var(--bg-color));
    color: var(--tag-text-color, var(--text-muted));
}

.tag-cloud a:hover {
    background: var(--tag-bg-hover-color, var(--primary-color));
    color: var(--tag-text-hover-color, #fff);
}

/* Header with Variables */
.site-header {
    background: var(--header-bg-color, var(--card-bg));
}

.site-logo {
    color: var(--header-text-color, var(--text-color));
    font-size: var(--header-title-size, 24px);
}

.site-nav a {
    color: var(--nav-link-color, var(--text-color));
    font-size: var(--nav-font-size, 15px);
}

.site-nav a:hover {
    color: var(--nav-link-hover-color, var(--primary-color));
}

/* Footer with Variables */
.site-footer {
    background: var(--footer-bg-color, #333);
    color: var(--footer-text-color, #fff);
}

.footer-widget a {
    color: var(--footer-link-color, #ccc);
}

.footer-widget a:hover {
    color: var(--footer-link-hover-color, #fff);
}

/* Buttons with Variables */
.product-buy-btn {
    background: var(--buy-button-bg-color, var(--primary-color));
    border-radius: var(--button-radius, var(--radius));
}

.product-buy-btn:hover {
    background: var(--buy-button-bg-hover-color, #0056b3);
}

/* Card with Variables */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
}

.product-card-title a {
    color: var(--card-title-color, var(--text-color));
}

.product-card-title a:hover {
    color: var(--card-title-hover-color, var(--primary-color));
}

.product-card-price {
    color: var(--price-color, var(--accent-color));
}

.product-badge {
    background: var(--badge-bg-color, var(--accent-color));
    color: var(--badge-text-color, #fff);
}

/* ===============================
   ブログ投稿用スタイル
   =============================== */

/* 投稿カード */
.post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

/* アイキャッチがない場合のプレースホルダー */
.post-card-image:empty::before,
.post-card .no-thumbnail {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.post-card .no-thumbnail::after {
    content: 'No Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.9rem;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s;
}

.post-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title a {
    color: var(--text-color);
}

.post-card-title a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-card-meta .post-category a {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    align-self: flex-start;
    transition: background 0.2s;
}

.read-more:hover {
    text-decoration: none;
    background: var(--primary-color-hover, #0056b3);
    color: #fff;
}

/* ========================================
   投稿リスト レイアウトバリエーション
======================================== */

/* グリッド5列 */
.post-list.layout-grid5 {
    grid-template-columns: repeat(5, 1fr);
}

/* グリッド4列 */
.post-list.layout-grid4 {
    grid-template-columns: repeat(4, 1fr);
}

/* グリッド3列 */
.post-list.layout-grid3 {
    grid-template-columns: repeat(3, 1fr);
}

/* グリッド2列 */
.post-list.layout-grid2 {
    grid-template-columns: repeat(2, 1fr);
}

/* リスト1列(横長カード) */
.post-list.layout-list {
    grid-template-columns: 1fr;
}
.post-list.layout-list .post-card {
    flex-direction: row;
    max-height: 200px;
}
.post-list.layout-list .post-card-image {
    width: 280px;
    min-width: 280px;
    aspect-ratio: auto;
    height: 100%;
}
.post-list.layout-list .post-card-body {
    padding: 20px;
}
.post-list.layout-list .post-card-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
}

/* リスト2列 */
.post-list.layout-list2 {
    grid-template-columns: repeat(2, 1fr);
}
.post-list.layout-list2 .post-card {
    flex-direction: row;
}
.post-list.layout-list2 .post-card-image {
    width: 180px;
    min-width: 180px;
    aspect-ratio: auto;
    height: 100%;
}

/* ビッグカード */
.post-list.layout-big {
    grid-template-columns: 1fr;
    gap: 30px;
}
.post-list.layout-big .post-card-image {
    aspect-ratio: 21/9;
}
.post-list.layout-big .post-card-body {
    padding: 25px;
}
.post-list.layout-big .post-card-title {
    font-size: 1.4rem;
    -webkit-line-clamp: 3;
}
.post-list.layout-big .post-card-excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 4;
}

/* シンプルリスト */
.post-list.layout-simple {
    grid-template-columns: 1fr;
    gap: 0;
}
.post-list.layout-simple .post-card {
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    border-radius: 0;
    padding: 15px 0;
}
.post-list.layout-simple .post-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-light, #f8f9fa);
}
.post-list.layout-simple .post-card-image {
    width: 80px;
    min-width: 80px;
    height: 80px;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
}
.post-list.layout-simple .post-card-body {
    padding: 0 0 0 15px;
}
.post-list.layout-simple .post-card-title {
    font-size: 1rem;
    margin-bottom: 5px;
}
.post-list.layout-simple .post-card-excerpt {
    display: none;
}
.post-list.layout-simple .read-more {
    display: none;
}

/* テキストのみ */
.post-list.layout-text-only {
    grid-template-columns: 1fr;
    gap: 0;
}
.post-list.layout-text-only .post-card {
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    border-radius: 0;
    padding: 20px 0;
}
.post-list.layout-text-only .post-card:hover {
    transform: none;
    box-shadow: none;
}
.post-list.layout-text-only .post-card-image {
    display: none;
}
.post-list.layout-text-only .post-card-body {
    padding: 0;
}
.post-list.layout-text-only .post-card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.post-list.layout-text-only .post-card-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.post-list.layout-text-only .read-more {
    display: none;
}

/* マガジン風 */
.post-list.layout-magazine {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.post-list.layout-magazine .post-card:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
}
.post-list.layout-magazine .post-card:first-child .post-card-image {
    aspect-ratio: 4/3;
}
.post-list.layout-magazine .post-card:first-child .post-card-title {
    font-size: 1.3rem;
}
.post-list.layout-magazine .post-card:not(:first-child) {
    flex-direction: row;
}
.post-list.layout-magazine .post-card:not(:first-child) .post-card-image {
    width: 120px;
    min-width: 120px;
    aspect-ratio: 1;
}
.post-list.layout-magazine .post-card:not(:first-child) .post-card-excerpt {
    display: none;
}

/* ピンタレスト風 */
.post-list.layout-pinterest {
    display: block;
    column-count: 3;
    column-gap: 20px;
}
.post-list.layout-pinterest .post-card {
    break-inside: avoid;
    margin-bottom: 20px;
}
.post-list.layout-pinterest .post-card-image {
    aspect-ratio: auto;
}
.post-list.layout-pinterest .post-card-image img {
    height: auto;
}

/* ワイド2列 */
.post-list.layout-wide2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.post-list.layout-wide2 .post-card-image {
    aspect-ratio: 21/9;
}

/* ランキング */
.post-list.layout-ranking {
    grid-template-columns: 1fr;
    counter-reset: ranking;
}
.post-list.layout-ranking .post-card {
    flex-direction: row;
    position: relative;
    padding-left: 60px;
}
.post-list.layout-ranking .post-card::before {
    counter-increment: ranking;
    content: counter(ranking);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.post-list.layout-ranking .post-card:nth-child(1)::before {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #333;
}
.post-list.layout-ranking .post-card:nth-child(2)::before {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    color: #333;
}
.post-list.layout-ranking .post-card:nth-child(3)::before {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #fff;
}
.post-list.layout-ranking .post-card-image {
    width: 150px;
    min-width: 150px;
    aspect-ratio: 16/9;
}

/* 記事詳細ページ */
.single-post,
.single-page {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 100%;
}

.post-thumbnail {
    margin-bottom: 0;
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
    max-height: 600px;
}

/* サムネイル画像の統一スタイル */
.thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ウィジェット内のサムネイル */
.widget-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-post-item:last-child {
    border-bottom: none;
}

.widget-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-post-content {
    flex: 1;
    min-width: 0;
}

.widget-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-post-title a {
    color: var(--text-color);
}

.widget-post-title a:hover {
    color: var(--primary-color);
}

.widget-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.entry-header {
    padding: 30px 30px 20px;
}

.entry-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-meta a {
    color: var(--primary-color);
}

.entry-content {
    padding: 0 30px 30px;
    line-height: 1.8;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* === 絶対に壊れない対策 === */
.entry-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.entry-content img {
    max-width: 100% !important;
    height: auto !important;
}

.entry-content video,
.entry-content embed,
.entry-content object {
    max-width: 100% !important;
}

/* iframe(YouTube等)は高さを維持 */
.entry-content iframe {
    max-width: 100% !important;
}

.entry-content table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
    word-break: break-word;
}

.entry-content pre,
.entry-content code {
    overflow-x: auto;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
}

.entry-content figure {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.entry-content blockquote {
    max-width: 100%;
    overflow: hidden;
}

.entry-content div {
    max-width: 100%;
}

.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th,
.entry-content span {
    word-break: break-word;
    overflow-wrap: break-word;
}

.entry-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.entry-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.entry-content h4 {
    font-size: 1.1rem;
    margin: 25px 0 10px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5em 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    margin: 1.5em 0;
    padding: 20px 25px;
    background: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* WordPressブロック画像対応 */
.entry-content figure {
    margin: 1.5em 0;
    max-width: 100%;
}

.entry-content figure img {
    display: block;
    max-width: 100%;
    height: auto;
}

.entry-content .wp-block-image {
    max-width: 100%;
    margin: 1.5em 0;
}

.entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.entry-content .wp-block-image.aligncenter {
    text-align: center;
}

.entry-content .wp-block-image.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.entry-content .wp-block-image.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

/* 幅広・全幅画像の制限 */
.entry-content .alignwide,
.entry-content .alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* iframe・動画埋め込み対応 */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
    max-width: 100%;
}

/* 動画埋め込み(YouTube/Vimeo等) */
.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.entry-content .wp-block-embed-youtube .wp-block-embed__wrapper,
.entry-content .wp-block-embed-vimeo .wp-block-embed__wrapper,
.entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe,
.entry-content .wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.entry-content .wp-block-embed-vimeo .wp-block-embed__wrapper iframe,
.entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ブログカード/リンクカード */
.entry-content .wp-block-embed.is-type-wp-embed,
.entry-content .wp-block-embed.wp-embed-aspect-16-9:not(.is-type-video) {
    max-width: 100%;
}

/* 長いURL対策 */
.entry-content .wp-block-embed__wrapper {
    word-break: break-all;
    overflow-wrap: break-word;
    overflow: hidden;
    max-width: 100%;
}

/* ブログカード用(YouTube/Vimeo/動画は除外) */
.entry-content .wp-block-embed.is-type-wp-embed .wp-block-embed__wrapper,
.entry-content .wp-block-embed:not(.is-type-video):not(.wp-block-embed-youtube):not(.wp-block-embed-vimeo):not(.wp-embed-aspect-16-9) .wp-block-embed__wrapper {
    position: static;
    padding-bottom: 0;
    height: auto;
}

.entry-content .wp-block-embed.is-type-wp-embed .wp-block-embed__wrapper iframe,
.entry-content .wp-block-embed:not(.is-type-video):not(.wp-block-embed-youtube):not(.wp-block-embed-vimeo):not(.wp-embed-aspect-16-9) .wp-block-embed__wrapper iframe {
    position: static;
    width: 100%;
    height: auto;
    min-height: 160px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.entry-content .wp-block-embed.is-type-wp-embed .wp-block-embed__wrapper iframe:hover,
.entry-content .wp-block-embed:not(.is-type-video):not(.wp-block-embed-youtube):not(.wp-block-embed-vimeo):not(.wp-embed-aspect-16-9) .wp-block-embed__wrapper iframe:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* WordPress埋め込みカード内部スタイル */
.wp-embedded-content {
    border-radius: 12px !important;
    overflow: hidden;
}

/* ブログカードリンク(a直接) */
.entry-content a.blog-card,
.entry-content .blog-card-link {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.entry-content a.blog-card:hover,
.entry-content .blog-card-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.blog-card-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #888;
}

.blog-card-meta img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

/* tuuhan-blogcard リンクカード */
.tuuhan-blogcard,
.sidebar .tuuhan-blogcard,
.sidebar-widget .tuuhan-blogcard {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
    margin: 0 0 15px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-left: none !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.tuuhan-blogcard:hover,
.sidebar .tuuhan-blogcard:hover {
    border-color: var(--primary-color, #007bff) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px) !important;
    background: #fff !important;
}

.tuuhan-blogcard-thumb,
.tuuhan-blogcard-image {
    flex-shrink: 0 !important;
    width: 100px !important;
    height: 70px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
}

.tuuhan-blogcard-thumb img,
.tuuhan-blogcard-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.tuuhan-blogcard-body,
.tuuhan-blogcard-content {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    word-break: break-word !important;
}

.tuuhan-blogcard-title,
.sidebar .tuuhan-blogcard-title {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    background: none !important;
    border: none !important;
}

.tuuhan-blogcard:hover .tuuhan-blogcard-title {
    color: var(--primary-color, #007bff) !important;
}

/* tuuhan-linkcard ウィジェット */
.tuuhan-linkcard {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

.tuuhan-linkcard-image {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.tuuhan-linkcard-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.tuuhan-linkcard:hover .tuuhan-linkcard-image img {
    transform: scale(1.05);
}

.tuuhan-linkcard-body {
    padding: 15px;
}

.tuuhan-linkcard-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tuuhan-linkcard-title:hover {
    color: var(--primary-color, #007bff);
}

.tuuhan-linkcard-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px;
}

.tuuhan-linkcard-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color, #007bff);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tuuhan-linkcard-btn:hover {
    background: var(--primary-color-hover, #0056b3);
    transform: translateY(-1px);
}

.tuuhan-blogcard-desc {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tuuhan-blogcard-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #999;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tuuhan-blogcard-domain {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.tuuhan-blogcard-favicon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.tuuhan-blogcard-arrow {
    flex-shrink: 0;
    color: #ccc;
    transition: color 0.2s, transform 0.2s;
}

.tuuhan-blogcard:hover .tuuhan-blogcard-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .tuuhan-blogcard {
        flex-direction: column;
        align-items: stretch;
    }
    .tuuhan-blogcard-thumb {
        width: 100%;
        height: 160px;
    }
    .tuuhan-blogcard-arrow {
        display: none;
    }
}

/* 内部リンクカード(blockquote形式の場合) */
.entry-content blockquote.wp-embedded-content {
    margin: 1.5em 0;
    padding: 0;
    border: none;
    background: none;
}

/* =====================================
 * 自動ブログカード(SWELL互換)
 * URLテキストから自動生成されるカード
 * ===================================== */
.tuuhan-auto-blogcard {
    display: block;
    margin: 2em 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
}

.tuuhan-auto-blogcard:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.tuuhan-auto-blogcard-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.tuuhan-auto-blogcard-label {
    display: block;
    background: var(--primary-color, #667eea);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    letter-spacing: 0.05em;
}

.tuuhan-auto-blogcard.is-external .tuuhan-auto-blogcard-label {
    background: #6b7280;
}

.tuuhan-auto-blogcard-inner {
    display: flex;
    align-items: stretch;
}

.tuuhan-auto-blogcard-thumb {
    flex-shrink: 0;
    width: 160px;
    min-height: 120px;
    overflow: hidden;
    background: #f3f4f6;
}

.tuuhan-auto-blogcard-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tuuhan-auto-blogcard-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.tuuhan-auto-blogcard-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tuuhan-auto-blogcard:hover .tuuhan-auto-blogcard-title {
    color: var(--primary-color, #667eea);
}

.tuuhan-auto-blogcard-desc {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tuuhan-auto-blogcard-domain {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: auto;
}

.tuuhan-auto-blogcard-favicon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

/* p-blogCard(SWELL互換クラス) */
.p-blogCard {
    margin: 2em 0;
}

@media (max-width: 600px) {
    .tuuhan-auto-blogcard-inner {
        flex-direction: column;
    }
    .tuuhan-auto-blogcard-thumb {
        width: 100%;
        height: 180px;
        min-height: auto;
    }
    .tuuhan-auto-blogcard-content {
        padding: 14px 16px;
    }
    .tuuhan-auto-blogcard-title {
        font-size: 0.95rem;
    }
}

/* 全てのリンクで長いURLを折り返し */
.entry-content a {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    max-width: 100%;
}

.entry-content a:not(.tuuhan-btn):not(.tuuhan-blogcard):not(.tuuhan-button) {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ボタンリンクは白文字・下線なし */
.entry-content a.tuuhan-btn,
.entry-content a.tuuhan-button {
    color: #fff !important;
    text-decoration: none !important;
}

.entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5em 0;
}

.entry-content code {
    background: var(--bg-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
    border: 1px solid #e5e7eb;
    padding: 12px 16px;
    text-align: left;
}

.entry-content thead th,
.wp-block-table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.entry-content tbody tr:nth-child(even),
.wp-block-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.entry-content tbody tr:hover,
.wp-block-table tbody tr:hover {
    background: #f3f4f6;
}

.entry-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags .tags-label {
    color: var(--text-muted);
}

.post-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.post-tags a:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* コメントエリア */
.comments-area {
    margin-top: 40px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-body {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.comment-content {
    grid-column: 2;
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 1em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    grid-column: 2;
    margin-top: 10px;
}

.reply a {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.children {
    list-style: none;
    margin: 0;
    padding-left: 40px;
}

/* コメントフォーム */
.comment-form {
    margin-top: 30px;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 15px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form .form-submit input {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .form-submit input:hover {
    background: var(--primary-color-hover, #0056b3);
}

.comment-notes {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.comment-awaiting-moderation {
    color: #856404;
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.no-comments {
    color: var(--text-muted);
    font-style: italic;
}

/* ページリンク */
.page-links {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-links a,
.page-links span {
    display: inline-block;
    padding: 5px 12px;
    margin-right: 5px;
    background: var(--bg-color);
    border-radius: 4px;
}

.page-links a:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* ウィジェットエリア */
.widget-area {
    margin-bottom: 30px;
}

.widget-single-top-area,
.widget-single-bottom-area,
.widget-before-related-area,
.widget-after-related-area,
.widget-before-comments-area,
.widget-home-top-area,
.widget-home-bottom-area {
    margin-bottom: 25px;
}

/* ウィジェットエリア内の個別ウィジェット */
.widget-single-top-area > .widget,
.widget-single-bottom-area > .widget,
.widget-before-related-area > .widget,
.widget-after-related-area > .widget,
.widget-before-comments-area > .widget,
.widget-home-top-area > .widget,
.widget-home-bottom-area > .widget {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.widget-single-top-area > .widget:last-child,
.widget-single-bottom-area > .widget:last-child,
.widget-before-related-area > .widget:last-child,
.widget-after-related-area > .widget:last-child,
.widget-before-comments-area > .widget:last-child,
.widget-home-top-area > .widget:last-child,
.widget-home-bottom-area > .widget:last-child {
    margin-bottom: 0;
}

.widget-single-top-area {
    margin: 20px 30px;
}

.widget-single-bottom-area {
    margin: 0 30px 20px;
}

/* レスポンシブ: ブログ */
@media (max-width: 1024px) {
    .post-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-list.layout-grid5,
    .post-list.layout-grid4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .post-list.layout-pinterest {
        column-count: 2;
    }
    .post-list.layout-magazine .post-card:not(:first-child) .post-card-image {
        width: 100px;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .post-list {
        grid-template-columns: 1fr;
    }
    .post-list.layout-grid5,
    .post-list.layout-grid4,
    .post-list.layout-grid3,
    .post-list.layout-grid2,
    .post-list.layout-list2,
    .post-list.layout-wide2 {
        grid-template-columns: 1fr;
    }
    .post-list.layout-list .post-card,
    .post-list.layout-list2 .post-card {
        flex-direction: column;
        max-height: none;
    }
    .post-list.layout-list .post-card-image,
    .post-list.layout-list2 .post-card-image {
        width: 100%;
        min-width: auto;
        aspect-ratio: 16/9;
    }
    .post-list.layout-magazine {
        grid-template-columns: 1fr;
    }
    .post-list.layout-magazine .post-card:first-child {
        grid-column: 1;
        grid-row: auto;
    }
    .post-list.layout-magazine .post-card:not(:first-child) {
        flex-direction: column;
    }
    .post-list.layout-magazine .post-card:not(:first-child) .post-card-image {
        width: 100%;
        min-width: auto;
        aspect-ratio: 16/9;
    }
    .post-list.layout-pinterest {
        column-count: 1;
    }
    .post-list.layout-ranking .post-card {
        padding-left: 50px;
    }
    .post-list.layout-ranking .post-card::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        left: 10px;
    }
    .post-list.layout-ranking .post-card-image {
        width: 120px;
        min-width: 120px;
    }

    .post-card-image {
        aspect-ratio: 16/9;
    }

    .entry-header,
    .entry-content,
    .entry-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .entry-title {
        font-size: 1.4rem;
    }

    .comment-body {
        grid-template-columns: 1fr;
    }

    .comment-content,
    .reply {
        grid-column: 1;
    }

    .children {
        padding-left: 20px;
    }
}

/* ===============================
   見出しデザイン
   =============================== */

/* 記事内見出し共通 */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
    margin: 2em 0 1em 0;
    line-height: 1.4;
}

/* H2: 左ボーダー (デフォルト) */
.entry-content h2.heading-border_left,
.entry-content h2 {
    padding: 0.8em 1em;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.1), transparent);
    border-left: 5px solid var(--h2-color, #667eea);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--h2-text-color, #333);
}

/* H2: 下線 */
.entry-content h2.heading-border_bottom {
    padding: 0.5em 0;
    border-bottom: 3px solid var(--h2-color, #667eea);
    background: none;
    border-left: none;
}

/* H2: 二重下線 */
.entry-content h2.heading-border_double {
    padding: 0.5em 0;
    border-bottom: 3px double var(--h2-color, #667eea);
    background: none;
    border-left: none;
}

/* H2: 背景塗り */
.entry-content h2.heading-background {
    padding: 0.8em 1.2em;
    background: var(--h2-color, #667eea) !important;
    color: #fff;
    border-radius: 6px;
    border-left: none;
    box-shadow: none;
}

/* H2: グラデーション背景 */
.entry-content h2.heading-gradient {
    padding: 0.8em 1.2em;
    background: linear-gradient(135deg, var(--h2-color, #667eea), var(--secondary-color, #764ba2)) !important;
    color: #fff;
    border-radius: 6px;
    border-left: none;
    box-shadow: none;
}

/* H2: 吹き出し風 */
.entry-content h2.heading-balloon {
    position: relative;
    padding: 0.8em 1.2em;
    background: var(--h2-color, #667eea) !important;
    color: #fff;
    border-radius: 6px;
    border-left: none;
    box-shadow: none;
}
.entry-content h2.heading-balloon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--h2-color, #667eea) transparent transparent;
}

/* H2: リボン風 */
.entry-content h2.heading-ribbon {
    position: relative;
    padding: 0.8em 1.5em 0.8em 2em;
    background: var(--h2-color, #667eea) !important;
    color: #fff;
    border-left: none;
    margin-left: -20px;
    margin-right: -20px;
    box-shadow: none;
}
.entry-content h2.heading-ribbon::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    border: none;
    border-left: solid 10px transparent;
    border-right: solid 10px var(--h2-color-dark, #5a67d8);
    border-top: solid 10px var(--h2-color-dark, #5a67d8);
    border-bottom: solid 10px transparent;
}
.entry-content h2.heading-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    border: none;
    border-left: solid 10px var(--h2-color-dark, #5a67d8);
    border-right: solid 10px transparent;
    border-top: solid 10px var(--h2-color-dark, #5a67d8);
    border-bottom: solid 10px transparent;
}

/* H2: 括弧風 */
.entry-content h2.heading-bracket {
    position: relative;
    padding: 0.5em 1.5em;
    background: none;
    border-left: none;
}
.entry-content h2.heading-bracket::before,
.entry-content h2.heading-bracket::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    border: 3px solid var(--h2-color, #667eea);
}
.entry-content h2.heading-bracket::before {
    left: 0;
    top: 0;
    border-right: none;
}
.entry-content h2.heading-bracket::after {
    right: 0;
    top: 0;
    border-left: none;
}

/* H2: ストライプ背景 */
.entry-content h2.heading-stripe {
    padding: 0.8em 1.2em;
    background: repeating-linear-gradient(
        -45deg,
        var(--h2-color, #667eea),
        var(--h2-color, #667eea) 3px,
        rgba(102, 126, 234, 0.7) 3px,
        rgba(102, 126, 234, 0.7) 6px
    ) !important;
    color: #fff;
    border-radius: 6px;
    border-left: none;
    box-shadow: none;
}

/* H2: シンプル */
.entry-content h2.heading-simple {
    padding: 0;
    background: none;
    border: none;
    font-weight: 700;
}

/* H3スタイル - カスタマイザーで動的に出力されるため、ここでは基本スタイルのみ */
/* 見出しデザインはカスタマイザーで設定 */

/* H4スタイル - カスタマイザーで動的に出力されるため、ここでは基本スタイルのみ */
/* 見出しデザインはカスタマイザーで設定 */

/* 以下は互換性のためのフォールバック */
.entry-content h4.heading-border_left {
    padding: 0.4em 0.8em;
    border-left: 3px solid var(--h4-color, #667eea);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--h4-text-color, #333);
}

.entry-content h4.heading-border_bottom {
    padding: 0.4em 0;
    border-left: none;
    border-bottom: 2px solid var(--h4-color, #667eea);
}

.entry-content h4.heading-icon::before {
    content: '\25A0';
    color: var(--h4-color, #667eea);
    margin-right: 8px;
}

.entry-content h4.heading-simple {
    padding: 0;
    border: none;
}

/* H5スタイル */
.entry-content h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--h5-text-color, #333);
    padding-left: 0.5em;
    border-left: 2px solid var(--h5-color, #667eea);
}

/* ===============================
   リストデザイン
   =============================== */

/* 記事内リスト共通(Gutenbergブロックスタイルは除外) */
.entry-content ul:not(.wp-block-list),
.entry-content ol:not(.wp-block-list) {
    margin: 1.5em 0;
    padding: 1.2em 1.5em 1.2em 2.5em;
    background: var(--list-bg-color, #f8f9ff);
    border-radius: 8px;
    border: 1px solid var(--list-border-color, rgba(102, 126, 234, 0.2));
}

.entry-content ul:not(.wp-block-list) li,
.entry-content ol:not(.wp-block-list) li {
    padding: 0.5em 0;
    line-height: 1.7;
}

/* UL: チェックマーク */
.entry-content ul.list-check,
.entry-content ul:not(.wp-block-list):not(.toc-list) {
    list-style: none;
    padding-left: 1.5em;
}

/* UL: デフォルトチェックマーク (SWELLスタイルは除外) */
.entry-content ul.list-check:not([class*="is-style-"]) li::before,
.entry-content ul:not(.wp-block-list):not(.toc-list):not([class*="is-style-"]) li::before {
    content: '\2713';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--list-icon-color, #667eea);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 10px;
    margin-left: -30px;
}

/* UL: 矢印 */
.entry-content ul.list-arrow li::before {
    content: '\276F';
    background: none;
    color: var(--list-icon-color, #667eea);
    font-size: 0.9rem;
    width: auto;
    height: auto;
}

/* UL: 四角 */
.entry-content ul.list-square li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--list-icon-color, #667eea);
    border-radius: 2px;
}

/* UL: 丸(塗り) */
.entry-content ul.list-circle li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--list-icon-color, #667eea);
    border-radius: 50%;
}

/* UL: 星 */
.entry-content ul.list-star li::before {
    content: '\2605';
    background: none;
    color: var(--list-icon-color, #667eea);
    font-size: 1rem;
    width: auto;
    height: auto;
}

/* UL: OKマーク(緑) */
.entry-content ul.list-good li::before {
    content: '\25CB';
    background: #10b981;
    color: #fff;
    font-size: 0.8rem;
}

/* UL: NGマーク(赤) */
.entry-content ul.list-bad li::before {
    content: '\2715';
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
}

/* UL: 注意マーク */
.entry-content ul.list-caution li::before {
    content: '!';
    background: #f59e0b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
}

/* UL: 疑問マーク */
.entry-content ul.list-question li::before {
    content: '?';
    background: #8b5cf6;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

/* UL: ハート */
.entry-content ul.list-heart li::before {
    content: '\2665';
    background: none;
    color: #ec4899;
    font-size: 1rem;
    width: auto;
    height: auto;
}

/* UL: ポイント(数字付き) */
.entry-content ul.list-point {
    counter-reset: point-counter;
}
.entry-content ul.list-point li {
    counter-increment: point-counter;
}
.entry-content ul.list-point li::before {
    content: counter(point-counter);
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 0.75rem;
}

/* UL: シンプル(背景なし) */
.entry-content ul.list-simple {
    background: none;
    border: none;
    padding: 0 0 0 1.5em;
}
.entry-content ul.list-simple li {
    border-bottom: 1px dashed var(--border-color, #e0e0e0);
    padding: 0.8em 0;
}
.entry-content ul.list-simple li:last-child {
    border-bottom: none;
}
.entry-content ul.list-simple li::before {
    content: '\2022';
    background: none;
    color: var(--list-icon-color, #667eea);
    font-size: 1.5rem;
    width: auto;
    height: auto;
    margin-left: -20px;
    line-height: 1;
}

/* UL: タイムライン風 */
.entry-content ul.list-timeline {
    background: none;
    border: none;
    border-left: 3px solid var(--list-icon-color, #667eea);
    padding: 0 0 0 25px;
    margin-left: 10px;
}
.entry-content ul.list-timeline li {
    position: relative;
    padding: 15px 0;
    border-bottom: none;
}
.entry-content ul.list-timeline li::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--list-icon-color, #667eea);
    border-radius: 50%;
    margin: 0;
}

/* UL: グラデーション背景 */
.entry-content ul.list-gradient {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: none;
    border-left: 4px solid var(--list-icon-color, #667eea);
}

/* UL: カード風 */
.entry-content ul.list-card {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.entry-content ul.list-card li {
    background: var(--card-bg, #fff);
    padding: 15px 15px 15px 45px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}
.entry-content ul.list-card li::before {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* UL: ボーダー強調 */
.entry-content ul.list-border {
    background: none;
    border: 2px solid var(--list-icon-color, #667eea);
    border-radius: 12px;
}

/* UL: ストライプ背景 */
.entry-content ul.list-stripe {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 45px,
        rgba(102, 126, 234, 0.05) 45px,
        rgba(102, 126, 234, 0.05) 90px
    );
    border: 1px solid var(--list-border-color, rgba(102, 126, 234, 0.2));
}

/* UL: デフォルト */
.entry-content ul.list-default {
    list-style: disc;
    padding-left: 2.5em;
}
.entry-content ul.list-default li::before {
    content: none;
}

/* OL: 番号リスト (チェックリストスタイルは除外) */
.entry-content ol:not(.is-style-check_list):not(.is-style-bad_list) {
    list-style: none;
    counter-reset: ol-counter;
    padding-left: 1.5em;
}

.entry-content ol:not(.is-style-check_list):not(.is-style-bad_list) li {
    counter-increment: ol-counter;
}

.entry-content ol:not(.is-style-check_list):not(.is-style-bad_list) li::before {
    content: counter(ol-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--list-icon-color, #667eea);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 10px;
    margin-left: -36px;
}

/* OL: 四角囲み */
.entry-content ol.list-square li::before {
    border-radius: 4px;
}

/* OL: グラデーション */
.entry-content ol.list-gradient li::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* OL: アウトライン */
.entry-content ol.list-outline li::before {
    background: transparent;
    border: 2px solid var(--list-icon-color, #667eea);
    color: var(--list-icon-color, #667eea);
}

/* OL: 大きい数字 */
.entry-content ol.list-big-number {
    background: none;
    border: none;
    padding: 0;
}
.entry-content ol.list-big-number li {
    padding: 15px 0 15px 50px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}
.entry-content ol.list-big-number li:last-child {
    border-bottom: none;
}
.entry-content ol.list-big-number li::before {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-left: -50px;
}

/* OL: ステップ風 */
.entry-content ol.list-step {
    background: none;
    border: none;
    padding: 0;
}
.entry-content ol.list-step li {
    background: var(--card-bg, #fff);
    padding: 20px 20px 20px 70px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}
.entry-content ol.list-step li::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin: 0;
}

/* OL: タイムライン */
.entry-content ol.list-timeline {
    background: none;
    border: none;
    border-left: 3px solid var(--list-icon-color, #667eea);
    padding: 0 0 0 35px;
    margin-left: 15px;
}
.entry-content ol.list-timeline li {
    position: relative;
    padding: 15px 0;
}
.entry-content ol.list-timeline li::before {
    position: absolute;
    left: -48px;
    top: 12px;
    margin: 0;
}

/* リストボーダーなし */
.entry-content ul.no-border,
.entry-content ol.no-border {
    background: none;
    border: none;
    padding: 0 0 0 2em;
}

/* ネストリスト */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 0.5em 0;
    padding: 0.5em 0 0.5em 1.5em;
    background: rgba(255,255,255,0.5);
    border: none;
}

/* ===============================
   関連記事セクション
   =============================== */

.related-posts-section {
    margin: 50px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.related-posts-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding: 0 0 12px 0;
    border-bottom: 3px solid #667eea;
}

.related-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.related-posts-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.related-posts-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.related-posts-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.related-post-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.related-post-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-thumb {
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    overflow: hidden;
    background: #e0e0e0;
}

.related-post-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-card:hover .related-post-thumb img {
    transform: scale(1.05);
}

.related-post-noimage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.related-post-body {
    padding: 15px;
}

.related-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 8px 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    font-size: 0.8rem;
    color: #888;
    display: block;
}

@media (max-width: 768px) {
    .related-posts-grid.cols-3,
    .related-posts-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .related-posts-grid,
    .related-posts-grid.cols-2,
    .related-posts-grid.cols-3,
    .related-posts-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   ヒーローエリアアニメーション
   =============================== */

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--hero-text-color, #fff);
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        padding: 40px 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* 画像なしの場合：不透明グラデーション */
.hero-section:not([style*="background-image"])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--hero-bg-color-1, #667eea) 0%, var(--hero-bg-color-2, #764ba2) 100%);
    z-index: 0;
}

/* 画像ありの場合：半透明オーバーレイ */
.hero-section[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/* カスタムオーバーレイ */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* グラデーションオーバーレイ(下から暗く) */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* テキスト影 */
.hero-text-shadow .hero-content h1,
.hero-text-shadow .hero-content p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* テキスト縁取り */
.hero-text-outline .hero-content h1,
.hero-text-outline .hero-content p {
    -webkit-text-stroke: 1px var(--hero-outline-color, #000);
    text-shadow:
        1px 1px 0 var(--hero-outline-color, #000),
        -1px -1px 0 var(--hero-outline-color, #000),
        1px -1px 0 var(--hero-outline-color, #000),
        -1px 1px 0 var(--hero-outline-color, #000),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    paint-order: stroke fill;
}

/* 縁取り + 影の組み合わせ */
.hero-text-shadow.hero-text-outline .hero-content h1,
.hero-text-shadow.hero-text-outline .hero-content p {
    -webkit-text-stroke: 1px var(--hero-outline-color, #000);
    text-shadow:
        1px 1px 0 var(--hero-outline-color, #000),
        -1px -1px 0 var(--hero-outline-color, #000),
        1px -1px 0 var(--hero-outline-color, #000),
        -1px 1px 0 var(--hero-outline-color, #000),
        0 4px 15px rgba(0, 0, 0, 0.7);
}

/* ディープブルー(画像なし) */
.hero-animation-deepblue:not([style*="background-image"])::before {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d2137 100%);
}
/* ディープブルー(画像あり：青みがかったオーバーレイ) */
.hero-animation-deepblue[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.7) 0%, rgba(26, 54, 93, 0.5) 100%);
}
.hero-animation-deepblue::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.2) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* ダークモード風(画像なし) */
.hero-animation-dark:not([style*="background-image"])::before {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
/* ダークモード風(画像あり) */
.hero-animation-dark[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(15, 52, 96, 0.5) 100%);
}

/* オーシャンブルー(画像なし) */
.hero-animation-ocean:not([style*="background-image"])::before {
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
}
/* オーシャンブルー(画像あり) */
.hero-animation-ocean[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.6) 0%, rgba(0, 180, 216, 0.4) 100%);
}

/* サンセット(画像なし) */
.hero-animation-sunset:not([style*="background-image"])::before {
    background: linear-gradient(135deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
}
/* サンセット(画像あり) */
.hero-animation-sunset[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.5) 0%, rgba(58, 12, 163, 0.5) 100%);
}

/* フォレスト(画像なし) */
.hero-animation-forest:not([style*="background-image"])::before {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #74c69d 100%);
}
/* フォレスト(画像あり) */
.hero-animation-forest[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.6) 0%, rgba(116, 198, 157, 0.4) 100%);
}

/* 幾何学パターン(画像なし) */
.hero-animation-geometric:not([style*="background-image"])::before {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}
/* 幾何学パターン(画像あり) */
.hero-animation-geometric[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.6) 0%, rgba(45, 90, 135, 0.4) 100%);
}
.hero-animation-geometric::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%),
        linear-gradient(150deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%),
        linear-gradient(30deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%),
        linear-gradient(150deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    z-index: 1;
    pointer-events: none;
}

/* グリッドパターン(画像なし) */
.hero-animation-grid:not([style*="background-image"])::before {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
/* グリッドパターン(画像あり) */
.hero-animation-grid[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(22, 33, 62, 0.4) 100%);
}
.hero-animation-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* グロー効果(画像なし) */
.hero-animation-glow:not([style*="background-image"])::before {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
}
/* グロー効果(画像あり) */
.hero-animation-glow[style*="background-image"]::before {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.5) 0%, rgba(26, 26, 62, 0.3) 100%);
}
.hero-animation-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
    z-index: 1;
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

/* パーティクル(画像あり用オーバーレイ) */
.hero-animation-particles[style*="background-image"]::before {
    background: rgba(0, 0, 0, 0.4);
}

/* 波(画像あり用オーバーレイ) */
.hero-animation-wave[style*="background-image"]::before {
    background: rgba(0, 0, 0, 0.3);
}

/* なし(画像あり用 - 薄いオーバーレイのみ) */
.hero-animation-none[style*="background-image"]::before {
    background: rgba(0, 0, 0, 0.2);
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ヒーローコンテンツ */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CTA画像 */
.hero-cta-image {
    margin: 0 auto;
}
.hero-cta-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-cta-image a:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* CTA配置：テキスト下 */
.hero-cta-bottom .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-cta-bottom .hero-text-content {
    margin-bottom: 30px;
}
.hero-cta-bottom .hero-cta-image {
    margin-top: 20px;
}

/* CTA配置：テキスト右 */
.hero-cta-right .hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
}
.hero-cta-right .hero-text-content {
    flex: 1;
    max-width: 500px;
}
.hero-cta-right .hero-cta-image {
    flex: 0 0 auto;
}

/* CTA配置：テキスト左 */
.hero-cta-left .hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: left;
}
.hero-cta-left .hero-text-content {
    flex: 1;
    max-width: 500px;
}
.hero-cta-left .hero-cta-image {
    flex: 0 0 auto;
}

/* CTA配置：中央(テキスト置換) */
.hero-cta-center .hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-cta-center .hero-cta-image {
    margin: 0 auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-cta-right .hero-content,
    .hero-cta-left .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-cta-right .hero-text-content,
    .hero-cta-left .hero-text-content {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .hero-cta-image {
        max-width: 90% !important;
    }
}

/* ヒーローCTAボタン */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.hero-btn {
    --btn-color: #667eea;
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 通常スタイル */
.hero-btn-normal {
    background: var(--btn-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-btn-normal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #fff;
}

/* キラキラスタイル */
.hero-btn-shine {
    background: var(--btn-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: btn-shine 2s infinite;
}
@keyframes btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}
.hero-btn-shine:hover {
    transform: scale(1.05);
    color: #fff;
}

/* グラデーションスタイル */
.hero-btn-gradient {
    background: linear-gradient(135deg, var(--btn-color), color-mix(in srgb, var(--btn-color) 70%, #000));
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.hero-btn-gradient:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--btn-color) 80%, #fff), var(--btn-color));
    transform: translateY(-2px);
    color: #fff;
}

/* アウトラインスタイル */
.hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid var(--btn-color);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.hero-btn-outline:hover {
    background: var(--btn-color);
    color: #fff;
    transform: scale(1.05);
}

/* 光るスタイル */
.hero-btn-glow {
    background: var(--btn-color);
    color: #fff;
    box-shadow: 0 0 20px var(--btn-color), 0 0 40px rgba(255,255,255,0.2);
    animation: btn-glow 2s ease-in-out infinite alternate;
}
@keyframes btn-glow {
    from { box-shadow: 0 0 20px var(--btn-color), 0 0 40px rgba(255,255,255,0.2); }
    to { box-shadow: 0 0 30px var(--btn-color), 0 0 60px var(--btn-color); }
}
.hero-btn-glow:hover {
    transform: scale(1.05);
    color: #fff;
}

/* パルススタイル */
.hero-btn-pulse {
    background: var(--btn-color);
    color: #fff;
    animation: btn-pulse 1.5s ease-in-out infinite;
}
@keyframes btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.hero-btn-pulse:hover {
    animation: none;
    transform: scale(1.1);
    color: #fff;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-btn {
        width: 80%;
        text-align: center;
    }
}

/* ヒーロー内ナビ */
.hero-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.hero-nav-item:hover {
    opacity: 1;
    transform: translateY(-3px);
    text-decoration: none;
    color: #fff;
}

.hero-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.hero-nav-text {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .hero-nav {
        flex-wrap: wrap;
        gap: 15px;
    }
    .hero-nav-item {
        flex: 0 0 calc(33.333% - 10px);
    }
}

/* 浮遊するパーティクル */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-particles span {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: particle-float 15s infinite;
}

.hero-particles span:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.hero-particles span:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.hero-particles span:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 13s; }
.hero-particles span:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 15s; }
.hero-particles span:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 11s; }
.hero-particles span:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 14s; }
.hero-particles span:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 12s; }
.hero-particles span:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 13s; }
.hero-particles span:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 15s; }
.hero-particles span:nth-child(10) { left: 95%; animation-delay: 0s; animation-duration: 16s; }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* グラデーション波 */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-color);
    clip-path: polygon(
        0 100%,
        100% 100%,
        100% 50%,
        85% 55%,
        70% 45%,
        55% 55%,
        40% 45%,
        25% 55%,
        10% 45%,
        0 50%
    );
    z-index: 2;
}

/* テキストアニメーション */
.hero-content {
    position: relative;
    z-index: 3;
    animation: hero-fadeInUp 1s ease-out;
}

.hero-section h1 {
    animation: hero-slideIn 0.8s ease-out;
}

.hero-section p {
    animation: hero-slideIn 0.8s ease-out 0.2s both;
}

@keyframes hero-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* グロー効果 */
.hero-section.glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: hero-glow 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes hero-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }
}

/* ===============================
   テーマ専用ウィジェット
   =============================== */

/* プロフィールウィジェット */
.widget-profile {
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 4px solid var(--profile-avatar-border-color, var(--primary-color));
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 枠線なしの場合 */
.profile-avatar.no-border {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.profile-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

.profile-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.profile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s;
}

.profile-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* 人気記事ウィジェット */
.widget-popular-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: popular-counter;
}

.widget-popular-posts li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    counter-increment: popular-counter;
}

.widget-popular-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-rank {
    position: relative;
    flex-shrink: 0;
}

.popular-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-rank::before {
    content: counter(popular-counter);
    position: absolute;
    top: -5px;
    left: -5px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.widget-popular-posts li:nth-child(1) .popular-post-rank::before {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #333;
}

.widget-popular-posts li:nth-child(2) .popular-post-rank::before {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
}

.widget-popular-posts li:nth-child(3) .popular-post-rank::before {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
}

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

.popular-post-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.popular-post-title a:hover {
    color: var(--primary-color);
}

.popular-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* CTAウィジェット */
.widget-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color, #764ba2) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}

.widget-cta .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.cta-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--primary-color);
}

/* 目次ウィジェット */
.widget-toc {
    /* stickyはサイドバー全体で制御 */
}

.widget-toc .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.widget-toc .toc-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.widget-toc .toc-list li:last-child {
    border-bottom: none;
}

.widget-toc .toc-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.widget-toc .toc-list a::before {
    content: '\25B6';
    font-size: 0.6rem;
    color: var(--primary-color);
}

.widget-toc .toc-list a:hover {
    color: var(--primary-color);
}

.widget-toc .toc-list .toc-h3 {
    padding-left: 1em;
}

.widget-toc .toc-list .toc-h4 {
    padding-left: 2em;
}

/* 目次と見出しの間隔調整 */
.entry-content .widget-toc,
.entry-content .toc-container,
.entry-content #toc_container,
.entry-content .ez-toc-container {
    margin-bottom: 40px !important;
}

/* TOC内の余白を二重にしない */
.widget-toc .toc-list {
    padding: 0 !important;
}

/* 広告ウィジェット */
.widget-ad {
    padding: 0;
    background: none;
    box-shadow: none;
}

.widget-ad .ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 5px;
}

.widget-ad .ad-content {
    text-align: center;
}

.widget-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ボックスナビウィジェット */
.widget-box-nav .box-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.widget-box-nav .box-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--bg-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.widget-box-nav .box-nav-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.widget-box-nav .box-nav-icon {
    font-size: 1.5rem;
}

.widget-box-nav .box-nav-label {
    font-size: 0.85rem;
    font-weight: 500;
}

/* プロフィールデフォルトアバター */
.profile-avatar-default {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #764ba2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-default span {
    font-size: 3rem;
    filter: brightness(0) invert(1);
}

/* 新着記事ウィジェット - モダンカードデザイン */
.widget-new-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.new-post-item {
    display: flex;
    gap: 15px;
    padding: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.new-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.new-post-item:last-child {
    margin-bottom: 0;
}

.new-post-thumb {
    width: 120px;
    min-width: 120px;
    height: 90px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    position: relative;
}

.new-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.new-post-item:hover .new-post-thumb img {
    transform: scale(1.05);
}

.new-post-thumb .no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
}

.new-post-thumb .no-thumb::after {
    content: "\1F4F7";
}

.new-post-info {
    flex: 1;
    min-width: 0;
    padding: 12px 15px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.new-post-cat {
    font-size: 0.7rem;
    color: #fff;
    background: var(--primary-color);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
    width: fit-content;
}

.new-post-cat a {
    color: inherit;
    text-decoration: none;
}

.new-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.new-post-title a:hover {
    color: var(--primary-color);
}

.new-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.new-post-date::before {
    content: "\1F4C5";
    font-size: 0.7rem;
}

/* レスポンシブ - 新着記事 */
@media (max-width: 480px) {
    .new-post-thumb {
        width: 100px;
        min-width: 100px;
        height: 75px;
    }

    .new-post-info {
        padding: 10px 12px 10px 0;
    }

    .new-post-title {
        font-size: 0.85rem;
    }
}

/* 人気記事ウィジェット ランキングバッジ */
.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.popular-post-item:last-child {
    border-bottom: none;
}

.popular-rank-badge {
    position: absolute;
    top: 8px;
    left: -5px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popular-post-item.rank-1 .popular-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

.popular-post-item.rank-2 .popular-rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.popular-post-item.rank-3 .popular-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

/* 広告コードウィジェット */
.widget-ad-code {
    text-align: center;
}

.widget-ad-code .ad-pc,
.widget-ad-code .ad-sp {
    margin: 0 auto;
}

.hide-on-sp {
    display: block;
}

.hide-on-pc {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-sp {
        display: none;
    }
    .hide-on-pc {
        display: block;
    }
}

/* SNSリンクウィジェット */
.widget-sns-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.widget-sns-links .sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.widget-sns-links .sns-link .sns-label {
    color: #fff;
}

.widget-sns-links .sns-x {
    background: #000;
}

.widget-sns-links .sns-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.widget-sns-links .sns-youtube {
    background: #ff0000;
}

.widget-sns-links .sns-facebook {
    background: #1877f2;
}

.widget-sns-links .sns-tiktok {
    background: #000;
}

.widget-sns-links .sns-line {
    background: #00c300;
}

.widget-sns-links .sns-rss {
    background: #f26522;
}

.widget-sns-links .sns-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ブログカードウィジェット */
.widget-blog-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.widget-blog-card .blog-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.widget-blog-card .blog-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.widget-blog-card .blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.widget-blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.widget-blog-card .blog-card-content {
    padding: 15px;
    background: var(--bg-color);
}

.widget-blog-card .blog-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-blog-card .blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-blog-card .blog-card-url {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-blog-card.external .blog-card-content {
    border-left: 3px solid var(--primary-color);
}

/* テーマ専用カテゴリーウィジェット */
.sidebar .tuuhan_category_widget ul,
.sidebar .widget_categories ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar .tuuhan_category_widget li,
.sidebar .widget_categories li {
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background: var(--bg-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: all 0.2s !important;
}

.sidebar .tuuhan_category_widget li:hover,
.sidebar .widget_categories li:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.sidebar .tuuhan_category_widget li:hover a,
.sidebar .widget_categories li:hover a {
    color: #fff !important;
}

.sidebar .tuuhan_category_widget a,
.sidebar .widget_categories a {
    display: inline !important;
    padding: 0 !important;
    background: transparent !important;
    flex: 1 !important;
    border-radius: 6px !important;
    margin-bottom: 0 !important;
    color: var(--text-color) !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.sidebar .tuuhan_category_widget a:hover,
.sidebar .widget_categories a:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* カテゴリー件数 - 横並び */
.sidebar .widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .widget_categories li a {
    flex: 1;
}

.sidebar .widget_categories .count {
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
    font-size: 0.8em;
}

/* カテゴリー件数を横並びにする - 強制 */
.widget_categories ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.widget_categories li {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

.widget_categories li:last-child {
    border-bottom: none !important;
}

.widget_categories li a {
    flex: 1 !important;
    margin-bottom: 0 !important;
    display: inline !important;
}

.widget_categories li a,
.wp-block-categories li a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.widget_categories li a .cat-count,
.widget_categories li a .count,
.wp-block-categories li a .cat-count {
    margin-left: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.widget_categories .cat-count,
.widget_categories .count {
    margin-left: auto !important;
    padding: 2px 10px !important;
    background: rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
    font-size: 0.85em !important;
    color: #666 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* カテゴリウィジェット - 件数がテキストノードの場合の対応 */
.widget_categories li {
    font-size: 0 !important;
}

.widget_categories li a,
.widget_categories li .cat-count,
.widget_categories li .count {
    font-size: 1rem !important;
}

/* サイドバー: カテゴリ件数を同一行に固定(ブロック/クラシック両対応) */
.sidebar .widget_categories li,
.sidebar .wp-block-categories li {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.sidebar .wp-block-categories li {
    background: var(--bg-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 10px 14px !important;
}

.sidebar .widget_categories li a,
.sidebar .wp-block-categories li a {
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.sidebar .widget_categories .cat-count,
.sidebar .widget_categories .count,
.sidebar .wp-block-categories__count {
    margin-left: auto !important;
    padding: 2px 10px !important;
    background: rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;
    font-size: 0.85em !important;
    color: #666 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* FANZAランキングウィジェット */
.widget-fanza-ranking {
    padding: 0;
}

.widget-fanza-ranking .fanza-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-fanza-ranking .fanza-item:last-child {
    border-bottom: none;
}

.widget-fanza-ranking .fanza-thumb {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.widget-fanza-ranking .fanza-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-fanza-ranking .fanza-info {
    flex: 1;
    min-width: 0;
}

.widget-fanza-ranking .fanza-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-fanza-ranking .fanza-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* FANZAショートコード */
.fanza-shortcode {
    margin: 20px 0;
}

.fanza-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
}

.fanza-list-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fanza-list-items .fanza-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fanza-list-items .fanza-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.fanza-item-image {
    width: 120px;
    flex-shrink: 0;
}

.fanza-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fanza-item-info {
    flex: 1;
    padding: 10px 12px;
    background: rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
}

.fanza-item-title {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-color);
}

.fanza-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fanza-item:hover .fanza-item-title {
    color: var(--accent-color);
}

/* FANZAグリッドデザイン */
.fanza-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.fanza-grid-items .fanza-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fanza-grid-items .fanza-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fanza-grid-items .fanza-item-image {
    width: 100%;
    background: #f5f5f5;
}

.fanza-grid-items .fanza-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fanza-grid-items .fanza-item-info {
    padding: 8px 10px;
    background: rgba(0,0,0,0.03);
}

.fanza-grid-items .fanza-item-title {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FANZAスライダーデザイン */
.fanza-slider-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.fanza-slider-items::-webkit-scrollbar {
    height: 6px;
}

.fanza-slider-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.fanza-slider-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.fanza-slider-items .fanza-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.fanza-slider-items .fanza-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fanza-slider-items .fanza-item-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.fanza-slider-items .fanza-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fanza-slider-items .fanza-item-info {
    padding: 8px 10px;
    background: rgba(0,0,0,0.03);
}

.fanza-slider-items .fanza-item-title {
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* FANZAランキングデザイン */
.fanza-ranking-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fanza-ranking-items .fanza-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: relative;
    transition: background 0.2s;
}

.fanza-ranking-items .fanza-item:last-child {
    border-bottom: none;
}

.fanza-ranking-items .fanza-item:hover {
    background: #f9f9f9;
}

.fanza-ranking-items .fanza-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* ランキングバッジ */
.fanza-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--rank-default-color, #888);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 1位 金 */
.fanza-ranking-items .fanza-item.rank-1 .fanza-rank {
    background: linear-gradient(135deg, var(--rank1-color, #ffd700), #ffb300);
    color: #333;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

/* 2位 銀 */
.fanza-ranking-items .fanza-item.rank-2 .fanza-rank {
    background: linear-gradient(135deg, var(--rank2-color, #c0c0c0), #a0a0a0);
    color: #333;
    width: 40px;
    height: 40px;
}

/* 3位 銅 */
.fanza-ranking-items .fanza-item.rank-3 .fanza-rank {
    background: linear-gradient(135deg, var(--rank3-color, #cd7f32), #b8860b);
    color: #fff;
    width: 40px;
    height: 40px;
}

/* 1〜3位の特別スタイル */
.fanza-ranking-items .fanza-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 179, 0, 0.05));
    border-left: 4px solid var(--rank1-color, #ffd700);
}

.fanza-ranking-items .fanza-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.08), rgba(160, 160, 160, 0.05));
    border-left: 4px solid var(--rank2-color, #c0c0c0);
}

.fanza-ranking-items .fanza-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.08), rgba(184, 134, 11, 0.05));
    border-left: 4px solid var(--rank3-color, #cd7f32);
}

.fanza-ranking-items .fanza-item-image {
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.fanza-ranking-items .fanza-item.rank-1 .fanza-item-image {
    width: 120px;
    height: 90px;
}

.fanza-ranking-items .fanza-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fanza-ranking-items .fanza-item-info {
    flex: 1;
    min-width: 0;
}

.fanza-ranking-items .fanza-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fanza-ranking-items .fanza-item.rank-1 .fanza-item-title {
    font-size: 1.05rem;
    font-weight: 600;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .fanza-ranking-items .fanza-item {
        padding: 12px;
        gap: 10px;
    }

    .fanza-ranking-items .fanza-item a {
        gap: 10px;
    }

    .fanza-rank {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .fanza-ranking-items .fanza-item.rank-1 .fanza-rank {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .fanza-ranking-items .fanza-item-image {
        width: 70px;
        height: 52px;
    }

    .fanza-ranking-items .fanza-item.rank-1 .fanza-item-image {
        width: 85px;
        height: 64px;
    }

    .fanza-ranking-items .fanza-item-title {
        font-size: 0.85rem;
    }
}

/* カテゴリーウィジェット(テーマ専用) */
.widget-categories-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.widget-categories-list li {
    margin-bottom: 0 !important;
}

.widget-categories-list a {
    display: block !important;
    padding: 10px 14px !important;
    background: var(--bg-color) !important;
    border-radius: 6px !important;
    margin-bottom: 6px !important;
    color: var(--text-color) !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.widget-categories-list a:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.widget-categories-list .children {
    margin-left: 15px !important;
    margin-top: 6px !important;
}

.widget-categories-list .children a {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    background: rgba(102, 126, 234, 0.1) !important;
}

/* 検索ウィジェット(テーマ専用) */
.widget-search-form .search-form {
    display: flex;
    gap: 8px;
}

.widget-search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--bg-color);
}

.widget-search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.widget-search-form .search-submit {
    padding: 10px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.widget-search-form .search-submit:hover {
    background: var(--primary-dark);
}

/* テキストウィジェット(テーマ専用) */
.widget-text-content {
    font-size: 0.9rem;
    line-height: 1.7;
}

.widget-text-content p:last-child {
    margin-bottom: 0;
}

/* カスタムHTMLウィジェット(テーマ専用) */
.widget-custom-html {
    font-size: 0.9rem;
    line-height: 1.7;
}

.widget-custom-html img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   SNSシェアボタン
   ========================================================================== */
.share-buttons {
    margin: 40px 0;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.share-buttons-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: center;
}

.share-buttons-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-icon svg {
    width: 18px;
    height: 18px;
}

.share-text {
    white-space: nowrap;
}

/* 各SNSのカラー */
.share-twitter {
    background: #000000;
}

.share-twitter:hover {
    background: #333333;
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #166FE5;
}

.share-line {
    background: #00B900;
}

.share-line:hover {
    background: #00A300;
}

.share-hatena {
    background: #00A4DE;
}

.share-hatena:hover {
    background: #0093C7;
}

.share-pocket {
    background: #EF4056;
}

.share-pocket:hover {
    background: #D83A4C;
}

.share-pinterest {
    background: #E60023;
}

.share-pinterest:hover {
    background: #D00020;
}

.share-copy {
    background: #6c757d;
}

.share-copy:hover {
    background: #5a6268;
}

/* アイコンのみスタイル */
.share-style-icon-only .share-btn {
    padding: 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.share-style-icon-only .share-buttons-list {
    gap: 12px;
}

/* テキストのみスタイル */
.share-style-text-only .share-icon {
    display: none;
}

.share-style-text-only .share-btn {
    padding: 10px 20px;
}

/* コンパクトスタイル */
.share-style-compact .share-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.share-style-compact .share-icon svg {
    width: 16px;
    height: 16px;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .share-buttons {
        padding: 20px 15px;
    }

    .share-buttons-list {
        gap: 8px;
    }

    .share-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .share-icon svg {
        width: 16px;
        height: 16px;
    }

    .share-style-icon-only .share-btn {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   パンくずナビ
   ========================================================================== */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: var(--text-secondary);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* パンくずナビ - コンテナ内配置 */
.breadcrumb-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* パンくずナビ - 背景付きスタイル */
.breadcrumb-with-bg {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-with-bg .breadcrumb {
    padding: 12px 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        padding: 12px 0;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }

    .breadcrumb-item {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .breadcrumb-item.current {
        max-width: 200px;
    }
}

/* ==========================================================================
   ショートコード - ボックス装飾
   ========================================================================== */
.tuuhan-box {
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
    position: relative;
}

.tuuhan-box .box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.tuuhan-box .box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

.tuuhan-box .box-content {
    line-height: 1.7;
}

.tuuhan-box .box-content p:last-child {
    margin-bottom: 0;
}

/* ボックスタイプ別カラー */
.box-info {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
}

.box-info .box-icon {
    background: #2196F3;
    color: #fff;
}

.box-warning {
    background: #fff8e6;
    border-left: 4px solid #ff9800;
}

.box-warning .box-icon {
    background: #ff9800;
    color: #fff;
}

.box-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.box-success .box-icon {
    background: #4caf50;
    color: #fff;
}

.box-danger {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.box-danger .box-icon {
    background: #f44336;
    color: #fff;
}

.box-memo {
    background: #f5f5f5;
    border-left: 4px solid #9e9e9e;
}

.box-memo .box-icon {
    background: #9e9e9e;
    color: #fff;
}

.box-point {
    background: #fff3e0;
    border-left: 4px solid #ff5722;
}

.box-point .box-icon {
    background: #ff5722;
    color: #fff;
}

/* ==========================================================================
   Gutenbergブロック版 BOXスタイル(フロントエンド用)
   ========================================================================== */
.tuuhan-box.tuuhan-box-info,
.tuuhan-box.tuuhan-box-warning,
.tuuhan-box.tuuhan-box-success,
.tuuhan-box.tuuhan-box-danger,
.tuuhan-box.tuuhan-box-memo,
.tuuhan-box.tuuhan-box-point {
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
    position: relative;
}

.tuuhan-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
}

.tuuhan-box-title::before {
    font-size: 1.2em;
    margin-right: 4px;
}

.tuuhan-box-content {
    line-height: 1.7;
}

.tuuhan-box-content p:last-child {
    margin-bottom: 0;
}

/* Gutenberg BOX - info */
.tuuhan-box-info {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
}
.tuuhan-box-info .tuuhan-box-title::before {
    content: "\2139";
    color: #2196F3;
}

/* Gutenberg BOX - warning */
.tuuhan-box-warning {
    background: #fff8e6;
    border-left: 4px solid #ff9800;
}
.tuuhan-box-warning .tuuhan-box-title::before {
    content: "\26A0";
    color: #ff9800;
}

/* Gutenberg BOX - success */
.tuuhan-box-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}
.tuuhan-box-success .tuuhan-box-title::before {
    content: "\2713";
    color: #4caf50;
}

/* Gutenberg BOX - danger */
.tuuhan-box-danger {
    background: #ffebee;
    border-left: 4px solid #f44336;
}
.tuuhan-box-danger .tuuhan-box-title::before {
    content: "\2716";
    color: #f44336;
}

/* Gutenberg BOX - memo */
.tuuhan-box-memo {
    background: #f5f5f5;
    border-left: 4px solid #9e9e9e;
}
.tuuhan-box-memo .tuuhan-box-title::before {
    content: "\270E";
    color: #9e9e9e;
}

/* Gutenberg BOX - point */
.tuuhan-box-point {
    background: #fff3e0;
    border-left: 4px solid #ff5722;
}
.tuuhan-box-point .tuuhan-box-title::before {
    content: "\2605";
    color: #ff5722;
}

/* ==========================================================================
   ショートコード - アラート
   ========================================================================== */
.tuuhan-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin: 25px 0;
    border-radius: 8px;
}

.tuuhan-alert .alert-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tuuhan-alert .alert-content {
    flex: 1;
    line-height: 1.6;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
}

/* ==========================================================================
   ショートコード - ボタン
   ========================================================================== */
.tuuhan-btn-wrap {
    text-align: center;
    margin: 1.5em 0;
}

.tuuhan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.tuuhan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ボタンカラー - !importantで上書き防止 */
.tuuhan-btn.btn-primary,
.entry-content .tuuhan-btn.btn-primary,
a.tuuhan-btn.btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.tuuhan-btn.btn-primary:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.tuuhan-btn.btn-secondary,
.entry-content .tuuhan-btn.btn-secondary,
a.tuuhan-btn.btn-secondary {
    background: #6c757d !important;
    color: #fff !important;
    text-decoration: none !important;
}

.tuuhan-btn.btn-secondary:hover {
    background: #5a6268 !important;
    color: #fff !important;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-accent,
.tuuhan-btn.btn-accent {
    background: var(--accent-color, #ff9800) !important;
    color: #fff !important;
}

.btn-accent:hover,
.tuuhan-btn.btn-accent:hover {
    background: #f57c00 !important;
    color: #fff !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ボタンサイズ */
.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-medium {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    display: flex;
}

/* =====================================
 * ボタンアニメーション
 * anim="shine/pulse/bounce/shake/glow/float/ripple"
 * ===================================== */

/* シャイン(光が横切る) */
.btn-anim-shine {
    position: relative;
    overflow: hidden;
}
.btn-anim-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: btn-shine 2.5s infinite;
}
@keyframes btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* パルス(脈動) */
.btn-anim-pulse {
    animation: btn-pulse 2s infinite;
}
@keyframes btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* バウンス(跳ねる) */
.btn-anim-bounce {
    animation: btn-bounce 2s infinite;
}
@keyframes btn-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* シェイク(揺れる) */
.btn-anim-shake {
    animation: btn-shake 3s infinite;
}
@keyframes btn-shake {
    0%, 90%, 100% { transform: translateX(0); }
    92%, 96% { transform: translateX(-4px); }
    94%, 98% { transform: translateX(4px); }
}

/* グロー(光る) */
.btn-anim-glow {
    animation: btn-glow 2s infinite;
}
@keyframes btn-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(102, 126, 234, 0.4); }
}

/* フロート(浮遊) */
.btn-anim-float {
    animation: btn-float 3s ease-in-out infinite;
}
@keyframes btn-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* リップル(波紋) - ホバー時 */
.btn-anim-ripple {
    position: relative;
    overflow: hidden;
}
.btn-anim-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-anim-ripple:hover::after {
    width: 300px;
    height: 300px;
}

/* ハートビート(心拍) */
.btn-anim-heartbeat {
    animation: btn-heartbeat 1.5s infinite;
}
@keyframes btn-heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* スイング(振り子) */
.btn-anim-swing {
    animation: btn-swing 2s infinite;
    transform-origin: top center;
}
@keyframes btn-swing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(3deg); }
    40% { transform: rotate(-3deg); }
    60% { transform: rotate(2deg); }
    80% { transform: rotate(-2deg); }
}

/* ==========================================================================
   ショートコード - 吹き出し
   ========================================================================== */
.tuuhan-balloon {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    align-items: flex-start;
}

.tuuhan-balloon.balloon-right {
    flex-direction: row-reverse;
}

.balloon-avatar {
    flex-shrink: 0;
    text-align: center;
    width: 70px;
}

.balloon-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.balloon-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    margin: 0 auto;
}

.balloon-name {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 500;
}

.balloon-text {
    position: relative;
    background: #f5f5f5;
    padding: 15px 20px;
    border-radius: 12px;
    max-width: calc(100% - 100px);
    line-height: 1.7;
    width: fit-content;
}

.balloon-left .balloon-text::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 18px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #f5f5f5 transparent transparent;
}

.balloon-right .balloon-text::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 18px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #f5f5f5;
}

@media (max-width: 600px) {
    .balloon-avatar { width: 55px; }
    .balloon-avatar img { width: 50px; height: 50px; }
    .balloon-text { padding: 12px 15px; font-size: 0.9em; }
}

/* 吹き出しデザイン: シャープ */
.tuuhan-balloon.balloon-sharp .balloon-text {
    border-radius: 0;
}

/* 吹き出しデザイン: まんまる */
.tuuhan-balloon.balloon-round .balloon-text {
    border-radius: 25px;
    padding: 18px 25px;
}

/* 吹き出しデザイン: 考え中(もくもく) */
.tuuhan-balloon.balloon-think .balloon-text {
    border-radius: 20px;
    box-shadow: none;
}
.tuuhan-balloon.balloon-think .balloon-text::before {
    display: none !important;
}

/* 吹き出しデザイン: LINE風 */
.tuuhan-balloon.balloon-line .balloon-text {
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.tuuhan-balloon.balloon-line.balloon-left .balloon-text {
    border-bottom-left-radius: 4px;
}
.tuuhan-balloon.balloon-line.balloon-right .balloon-text {
    border-bottom-right-radius: 4px;
}
.tuuhan-balloon.balloon-line .balloon-text::before {
    display: none;
}

/* ==========================================================================
   ショートコード - アコーディオン
   ========================================================================== */
.tuuhan-accordion {
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.tuuhan-accordion summary {
    padding: 15px 20px;
    padding-right: 45px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    list-style: none;
}

.tuuhan-accordion summary::-webkit-details-marker {
    display: none;
}

.tuuhan-accordion summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.tuuhan-accordion[open] summary::after {
    content: '-';
}

.accordion-content {
    padding: 20px;
    line-height: 1.7;
}

/* Gutenbergブロック用アコーディオン */
.tuuhan-accordion .accordion-header {
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.tuuhan-accordion .accordion-header:hover {
    background: #f0f0f0;
}

.tuuhan-accordion .accordion-title {
    flex: 1;
}

.tuuhan-accordion .accordion-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* div構造のアコーディオン(JS制御) */
.tuuhan-accordion:not(details) .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 0;
}

.tuuhan-accordion.is-open .accordion-content {
    border-top: 1px solid var(--border-color);
}

/* details要素のアコーディオン(ネイティブ制御) */
details.tuuhan-accordion .accordion-content {
    max-height: none;
    overflow: visible;
    padding: 20px;
    line-height: 1.8;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   ショートコード - タブ
   ========================================================================== */
.tuuhan-tabs {
    margin: 25px 0;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    gap: 0;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.tabs-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ==========================================================================
   ショートコード - マーカー
   ========================================================================== */
.tuuhan-marker {
    padding: 2px 0;
    background: linear-gradient(transparent 60%, var(--marker-color, #ffff00) 60%);
}

.marker-yellow {
    --marker-color: #ffff00;
}

.marker-pink {
    --marker-color: #ffb6c1;
}

.marker-blue {
    --marker-color: #87ceeb;
}

.marker-green {
    --marker-color: #90ee90;
}

.marker-orange {
    --marker-color: #ffa500;
}

/* ==========================================================================
   ショートコード - 中央揃え
   ========================================================================== */
.tuuhan-center {
    text-align: center;
}

/* ==========================================================================
   ショートコード - スタイル付きリスト
   ========================================================================== */
.tuuhan-list {
    list-style: none;
    padding: 20px 25px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.tuuhan-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    line-height: 1.6;
}

.tuuhan-list li::before {
    position: absolute;
    left: 0;
    top: 8px;
}

/* チェックリスト */
.list-check li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* 矢印リスト */
.list-arrow li::before {
    content: '>';
    color: var(--primary-color);
    font-weight: bold;
}

/* ドットリスト */
.list-dot li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 14px;
}

/* 番号リスト */
.tuuhan-numlist {
    padding: 20px 25px 20px 45px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.tuuhan-numlist li {
    padding: 8px 0;
    line-height: 1.6;
}

.tuuhan-numlist li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================================================
   ショートコード - 評価(星)
   ========================================================================== */
.tuuhan-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tuuhan-rating .star {
    font-size: 1.2rem;
}

.tuuhan-rating .star.filled {
    color: #ffc107;
}

.tuuhan-rating .star.half {
    color: #ffc107;
    position: relative;
}

.tuuhan-rating .star.empty {
    color: #e0e0e0;
}

.tuuhan-rating .rating-score {
    margin-left: 8px;
    font-weight: 600;
    color: var(--text-color);
}

/* ==========================================================================
   ショートコード - カラム
   ========================================================================== */
.tuuhan-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tuuhan-col {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .tuuhan-columns {
        flex-direction: column;
    }

    .tuuhan-col {
        width: 100% !important;
        flex: none !important;
    }
}

/* ==========================================================================
   ショートコード - 区切り線
   ========================================================================== */
.tuuhan-divider {
    border: none;
    border-top-width: 1px;
    width: 100%;
}

/* ==========================================================================
   ショートコード - 参考リンク
   ========================================================================== */
.tuuhan-sanko {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.sanko-label {
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.tuuhan-sanko a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

.tuuhan-sanko a:hover .sanko-title {
    text-decoration: underline;
}

.sanko-title {
    color: var(--primary-color);
    font-weight: 500;
}

.sanko-site {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   ショートコード - PC/SP切り替え
   ========================================================================== */
.tuuhan-pc-only {
    display: block;
}

.tuuhan-sp-only {
    display: none;
}

@media (max-width: 768px) {
    .tuuhan-pc-only {
        display: none;
    }

    .tuuhan-sp-only {
        display: block;
    }
}

/* ==========================================================================
   プロフィールウィジェット - 背景画像対応
   ========================================================================== */
.widget-profile.has-bg-image {
    position: relative;
    padding: 30px 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.widget-profile.has-bg-image .profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.widget-profile.has-bg-image .profile-avatar,
.widget-profile.has-bg-image .profile-name,
.widget-profile.has-bg-image .profile-title,
.widget-profile.has-bg-image .profile-description,
.widget-profile.has-bg-image .profile-social,
.widget-profile.has-bg-image .widget-title {
    position: relative;
    z-index: 2;
}

.widget-profile.has-bg-image .profile-name,
.widget-profile.has-bg-image .profile-description {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.widget-profile.has-bg-image .profile-title {
    color: rgba(255, 255, 255, 0.85);
}

.widget-profile.has-bg-image .profile-avatar {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.widget-profile.has-bg-image .profile-social a {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(5px);
}

.widget-profile.has-bg-image .profile-social a:hover {
    background: #fff;
    color: var(--primary-color);
}

/* プロフィール背景画像 - タイトル下から開始 */
.widget-profile.has-bg-image {
    background: none !important;
    padding: 0 !important;
}

.widget-profile.has-bg-image > .widget-title {
    position: relative;
    z-index: 3;
    background: transparent;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.widget-profile.has-bg-image .profile-content-wrap {
    position: relative;
    padding: 30px 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.widget-profile.has-bg-image .profile-content-wrap .profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.widget-profile.has-bg-image .profile-content-wrap .profile-avatar,
.widget-profile.has-bg-image .profile-content-wrap .profile-name,
.widget-profile.has-bg-image .profile-content-wrap .profile-title,
.widget-profile.has-bg-image .profile-content-wrap .profile-description,
.widget-profile.has-bg-image .profile-content-wrap .profile-social,
.widget-profile.has-bg-image .profile-content-wrap .profile-button {
    position: relative;
    z-index: 2;
}

/* プロフィールボタン */
.profile-button {
    margin-top: 15px;
    text-align: center;
}

.profile-btn {
    display: inline-block;
    padding: 10px 25px;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* 背景画像なしの場合のprofile-content-wrap */
.widget-profile .profile-content-wrap {
    padding: 20px;
    border-radius: var(--radius);
}

.widget-profile .profile-content {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   人気記事ウィジェット - モダンカードデザイン強化
   ========================================================================== */
/* カスタムウィジェット用 */
.widget-popular-posts {
    padding: 0;
}

.widget-popular-posts ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-popular-posts li.popular-post-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    margin: 0 !important;
}

.widget-popular-posts li.popular-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.widget-popular-posts .popular-rank-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.widget-popular-posts li.rank-1 .popular-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

.widget-popular-posts li.rank-2 .popular-rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.widget-popular-posts li.rank-3 .popular-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.widget-popular-posts .popular-post-thumb {
    width: 100px;
    min-width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.widget-popular-posts .popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget-popular-posts li.popular-post-item:hover .popular-post-thumb img {
    transform: scale(1.05);
}

.widget-popular-posts .popular-post-thumb .no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.widget-popular-posts .popular-post-thumb .no-thumb::after {
    content: "\1F4F7";
    font-size: 24px;
}

.widget-popular-posts .popular-post-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-popular-posts .popular-post-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-popular-posts .popular-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.widget-popular-posts .popular-post-title a:hover {
    color: var(--primary-color);
}

.widget-popular-posts .popular-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 人気記事グリッド表示 */
.widget-popular-posts.display-grid .popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.widget-popular-posts.display-grid .popular-grid-item {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.widget-popular-posts.display-grid .popular-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.widget-popular-posts.display-grid .popular-post-thumb {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.widget-popular-posts.display-grid .popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget-popular-posts.display-grid .popular-grid-item:hover .popular-post-thumb img {
    transform: scale(1.05);
}

.widget-popular-posts.display-grid .popular-post-info {
    padding: 10px;
}

.widget-popular-posts.display-grid .popular-post-title {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-popular-posts.display-grid .popular-rank-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
}

.widget-popular-posts.display-grid .popular-grid-item.rank-1 .popular-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

.widget-popular-posts.display-grid .popular-grid-item.rank-2 .popular-rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.widget-popular-posts.display-grid .popular-grid-item.rank-3 .popular-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

/* 人気記事スライダー表示 */
.widget-popular-posts.display-slider .popular-slider-wrap {
    position: relative;
    overflow: hidden;
}

.widget-popular-posts.display-slider .popular-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.widget-popular-posts.display-slider .popular-slider::-webkit-scrollbar {
    display: none;
}

.widget-popular-posts.display-slider .popular-slide {
    flex: 0 0 200px;
    min-width: 200px;
    scroll-snap-align: start;
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.widget-popular-posts.display-slider .popular-slide:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.widget-popular-posts.display-slider .popular-post-thumb {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.widget-popular-posts.display-slider .popular-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.widget-popular-posts.display-slider .popular-slide:hover .popular-post-thumb img {
    transform: scale(1.05);
}

.widget-popular-posts.display-slider .popular-post-info {
    padding: 12px;
}

.widget-popular-posts.display-slider .popular-post-title {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.widget-popular-posts.display-slider .popular-rank-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
}

.widget-popular-posts.display-slider .popular-slide:nth-child(1) .popular-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

.widget-popular-posts.display-slider .popular-slide:nth-child(2) .popular-rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.widget-popular-posts.display-slider .popular-slide:nth-child(3) .popular-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

/* WordPress標準最近の投稿ウィジェット強化 */
.sidebar .widget_recent_entries ul,
.sidebar .wp_rp_content {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar .widget_recent_entries li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar .widget_recent_entries li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sidebar .widget_recent_entries li:last-child {
    margin-bottom: 0;
}

.sidebar .widget_recent_entries li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar .widget_recent_entries li a:hover {
    color: var(--primary-color);
}

.sidebar .widget_recent_entries .post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   関連記事 - グリッドカードデザイン
   ========================================================================== */
/* 関連記事セクション共通 */
.related-posts,
.related-entries,
.related_posts,
.yarpp-related,
.jp-relatedposts,
.jetpack-related-posts,
#related_post,
.content-related {
    margin: 40px 0;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.related-posts-title,
.related-entries-title,
.yarpp-related h3,
.jp-relatedposts-headline,
.related-posts h3,
.related-posts h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.related-posts-grid,
.related-posts ul,
.related-entries ul,
.yarpp-related ul,
.jp-relatedposts-items,
.related_posts ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 480px) {
    .related-posts-grid,
    .related-posts ul,
    .related-entries ul,
    .yarpp-related ul,
    .jp-relatedposts-items,
    .related_posts ul {
        grid-template-columns: 1fr;
    }
}

.related-posts li,
.related-entries li,
.yarpp-related li,
.jp-relatedposts-post,
.related_posts li,
.related-post-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.related-posts li:hover,
.related-entries li:hover,
.yarpp-related li:hover,
.jp-relatedposts-post:hover,
.related_posts li:hover,
.related-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-posts li a,
.related-entries li a,
.yarpp-related li a,
.jp-relatedposts-post a,
.related_posts li a,
.related-post-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 関連記事サムネイル */
.related-posts li img,
.related-entries li img,
.yarpp-related li img,
.jp-relatedposts-post img,
.related_posts li img,
.related-post-thumb {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.related-posts li:hover img,
.related-entries li:hover img,
.yarpp-related li:hover img,
.jp-relatedposts-post:hover img,
.related_posts li:hover img {
    transform: scale(1.05);
}

/* 関連記事テキスト */
.related-posts li .related-title,
.related-posts li a span,
.related-entries li .entry-title,
.yarpp-related li .yarpp-title,
.jp-relatedposts-post-title,
.related_posts li .title,
.related-post-info {
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-posts li a:hover .related-title,
.yarpp-related li a:hover .yarpp-title,
.jp-relatedposts-post-title a:hover {
    color: var(--primary-color);
}

/* 関連記事日付 */
.related-posts li .related-date,
.jp-relatedposts-post-date {
    padding: 0 12px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Jetpack関連記事特別対応 */
.jp-relatedposts-items {
    display: grid !important;
}

.jp-relatedposts-post {
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}

.jp-relatedposts-post-context {
    display: none;
}

/* JETP関連記事対応 */
.jetp-related-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.jetp-related-posts article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.jetp-related-posts article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* WordPress Recent Posts with Thumbnails対応 */
.sidebar ul.rpwwt-widget {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar .rpwwt-widget li {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.sidebar .rpwwt-widget li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sidebar .rpwwt-widget .rpwwt-post-image {
    width: 80px;
    min-width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar .rpwwt-widget .rpwwt-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   関連記事 - テーマ専用スタイル
   ========================================================================== */
.related-posts-section {
    margin: 50px 0;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.related-posts-section .section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-posts-section .section-title::before {
    content: "\1F4D1";
    font-size: 1.1rem;
}

.related-posts-grid {
    display: grid;
    gap: 20px;
}

.related-posts-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.related-posts-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.related-posts-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .related-posts-grid.cols-3,
    .related-posts-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related-posts-section {
        padding: 20px;
        margin: 30px 0;
    }

    .related-posts-grid.cols-2,
    .related-posts-grid.cols-3,
    .related-posts-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

.related-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-post-card a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-post-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-card:hover .related-post-thumb img {
    transform: scale(1.08);
}

.related-post-noimage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
    color: #aaa;
    font-size: 0.85rem;
}

.related-post-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.related-post-card:hover .related-post-title {
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-post-date::before {
    content: "\1F4C5";
    font-size: 0.7rem;
}

/* ==========================================================================
   WordPress Popular Posts プラグイン対応
   ========================================================================== */
.sidebar .wpp-list,
.sidebar .popular-posts-list,
.sidebar ul.wpp-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar .wpp-list li,
.sidebar .popular-posts-list li {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    list-style: none !important;
}

.sidebar .wpp-list li:hover,
.sidebar .popular-posts-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sidebar .wpp-list li:last-child,
.sidebar .popular-posts-list li:last-child {
    margin-bottom: 0;
}

.sidebar .wpp-thumbnail,
.sidebar .popular-posts-list img {
    width: 80px !important;
    min-width: 80px;
    height: 60px !important;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar .wpp-item-data,
.sidebar .wpp-post-title,
.sidebar .popular-posts-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar .wpp-post-title:hover {
    color: var(--primary-color);
}

.sidebar .wpp-views,
.sidebar .wpp-comments,
.sidebar .wpp-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Simple Popular Posts対応 */
.sidebar .simple-popular-posts li {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    list-style: none !important;
}

/* Jenga Popular Posts対応 */
.sidebar .jenga-popular-posts li {
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 汎用：サイドバー内のリスト形式ウィジェット改善 */
.sidebar .widget ul:not(.children) {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar .widget ul:not(.children) > li {
    padding: 10px 12px;
    background: var(--bg-color);
    border-radius: 6px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.sidebar .widget ul:not(.children) > li:hover {
    background: var(--primary-color);
}

.sidebar .widget ul:not(.children) > li:hover a {
    color: #fff;
}

.sidebar .widget ul:not(.children) > li:last-child {
    margin-bottom: 0;
}

.sidebar .widget ul:not(.children) > li > a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

/* 番号付きリスト(人気記事など)をオーバーライド */
.sidebar .widget ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    counter-reset: ranking;
}

.sidebar .widget ol > li {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    counter-increment: ranking;
}

.sidebar .widget ol > li::before {
    content: counter(ranking);
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.sidebar .widget ol > li:nth-child(1)::before {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
}

.sidebar .widget ol > li:nth-child(2)::before {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
}

.sidebar .widget ol > li:nth-child(3)::before {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.sidebar .widget ol > li:last-child {
    margin-bottom: 0;
}

.sidebar .widget ol > li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

.sidebar .widget ol > li a:hover {
    color: var(--primary-color);
}

.sidebar .widget ol > li img {
    width: 80px;
    min-width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* ============================================
   Hero Area Multiple Buttons
============================================ */
.p-mainVisual__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.p-mainVisual__btns .c-mvBtn {
    margin: 0;
}

@media (max-width: 767px) {
    .p-mainVisual__btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .p-mainVisual__btns .c-mvBtn {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   Extended Heading Designs
============================================ */

/* H2 - Gradient Background */
.post_content h2.-gradient,
.c-postContent h2.-gradient {
    background: linear-gradient(135deg, var(--color_htag, #333) 0%, color-mix(in srgb, var(--color_htag, #333), white 30%) 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    border: none;
}

/* H2 - Shadow */
.post_content h2.-shadow,
.c-postContent h2.-shadow {
    background: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--color_htag, #333);
}

/* H2 - Rounded Box */
.post_content h2.-rounded,
.c-postContent h2.-rounded {
    background: color-mix(in srgb, var(--color_htag, #333), white 90%);
    padding: 14px 24px;
    border-radius: 50px;
    text-align: center;
    border: none;
}

/* H2 - Thick Underline */
.post_content h2.-underline,
.c-postContent h2.-underline {
    padding-bottom: 10px;
    border-bottom: 4px solid var(--color_htag, #333);
    background: none;
}

/* H2 - Dotted Border */
.post_content h2.-dotted,
.c-postContent h2.-dotted {
    padding: 12px 20px;
    border: 2px dashed var(--color_htag, #333);
    border-radius: 8px;
    background: none;
}

/* H2 - Ribbon Style */
.post_content h2.-ribbon,
.c-postContent h2.-ribbon {
    position: relative;
    background: var(--color_htag, #333);
    color: #fff;
    padding: 12px 30px;
    margin-left: -15px;
    margin-right: -15px;
}
.post_content h2.-ribbon::before,
.c-postContent h2.-ribbon::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    border-left: 8px solid transparent;
    border-top: 8px solid color-mix(in srgb, var(--color_htag, #333), black 30%);
}
.post_content h2.-ribbon::after,
.c-postContent h2.-ribbon::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    border-right: 8px solid transparent;
    border-top: 8px solid color-mix(in srgb, var(--color_htag, #333), black 30%);
}

/* H3 - Speech Bubble */
.post_content h3.-speech,
.c-postContent h3.-speech {
    position: relative;
    background: color-mix(in srgb, var(--color_htag, #333), white 85%);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.post_content h3.-speech::after,
.c-postContent h3.-speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 8px 0;
    border-style: solid;
    border-color: color-mix(in srgb, var(--color_htag, #333), white 85%) transparent transparent;
}

/* H3 - Marker Style */
.post_content h3.-marker,
.c-postContent h3.-marker {
    background: linear-gradient(transparent 60%, color-mix(in srgb, var(--color_htag, #333), white 70%) 60%);
    display: inline;
    padding: 0 4px;
}

/* H3 - Ribbon Left */
.post_content h3.-ribbon_l,
.c-postContent h3.-ribbon_l {
    position: relative;
    padding-left: 20px;
}
.post_content h3.-ribbon_l::before,
.c-postContent h3.-ribbon_l::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--color_htag, #333);
    border-radius: 3px;
}

/* H3 - Dotted Bottom */
.post_content h3.-dotted_b,
.c-postContent h3.-dotted_b {
    padding-bottom: 8px;
    border-bottom: 2px dotted var(--color_htag, #333);
}

/* H3 - Accent Line */
.post_content h3.-accent,
.c-postContent h3.-accent {
    padding-left: 15px;
    border-left: 3px solid var(--color_htag, #333);
    background: linear-gradient(90deg, color-mix(in srgb, var(--color_htag, #333), white 95%) 0%, transparent 100%);
}

/* H4 - Arrow Icon */
.post_content h4.-arrow,
.c-postContent h4.-arrow {
    padding-left: 1.5em;
    position: relative;
}
.post_content h4.-arrow::before,
.c-postContent h4.-arrow::before {
    content: '\25B6';
    position: absolute;
    left: 0;
    color: var(--color_htag, #333);
    font-size: 0.7em;
}

/* H4 - Dot Icon */
.post_content h4.-dot,
.c-postContent h4.-dot {
    padding-left: 1.5em;
    position: relative;
}
.post_content h4.-dot::before,
.c-postContent h4.-dot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--color_htag, #333);
    border-radius: 50%;
}

/* H4 - Number Style */
.post_content h4.-number,
.c-postContent h4.-number {
    counter-increment: h4-counter;
    padding-left: 2em;
    position: relative;
}
.post_content h4.-number::before,
.c-postContent h4.-number::before {
    content: counter(h4-counter);
    position: absolute;
    left: 0;
    background: var(--color_htag, #333);
    color: #fff;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}
.post_content,
.c-postContent {
    counter-reset: h4-counter;
}

/* H4 - Underline */
.post_content h4.-underline_h4,
.c-postContent h4.-underline_h4 {
    padding-bottom: 5px;
    border-bottom: 2px solid var(--color_htag, #333);
}

/* H4 - Bracket */
.post_content h4.-bracket,
.c-postContent h4.-bracket {
    padding: 0 10px;
}
.post_content h4.-bracket::before,
.c-postContent h4.-bracket::before {
    content: '[';
    color: var(--color_htag, #333);
    font-weight: bold;
    margin-right: 5px;
}
.post_content h4.-bracket::after,
.c-postContent h4.-bracket::after {
    content: ']';
    color: var(--color_htag, #333);
    font-weight: bold;
    margin-left: 5px;
}

/* ==========================================================================
   コアブロック - リストスタイル (フロントエンド)
   ========================================================================== */

/* チェックリスト (背景色クラスを尊重) */
.wp-block-list.is-style-check:not(.has-background) {
    list-style: none;
    padding: 15px 15px 15px 20px;
    background: #f0fdf4;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}
.wp-block-list.is-style-check.has-background {
    list-style: none;
    padding: 15px 15px 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}
.wp-block-list.is-style-check.has-black-background-color {
    background: #000 !important;
    border-left-color: #4fc3f7;
}
.wp-block-list.is-style-check.has-black-background-color li {
    color: #fff !important;
}
.wp-block-list.is-style-check.has-black-background-color li::before {
    color: #4fc3f7 !important;
}
.wp-block-list.is-style-check li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}
.wp-block-list.is-style-check li:last-child {
    margin-bottom: 0;
}
.wp-block-list.is-style-check li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 良い点リスト */
.wp-block-list.is-style-good {
    list-style: none;
    padding-left: 0;
    background: #e8f5e9;
    padding: 15px 15px 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}
.wp-block-list.is-style-good li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}
.wp-block-list.is-style-good li::before {
    content: "\25CB";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 悪い点リスト */
.wp-block-list.is-style-bad {
    list-style: none;
    padding-left: 0;
    background: #ffebee;
    padding: 15px 15px 15px 20px;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}
.wp-block-list.is-style-bad li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}
.wp-block-list.is-style-bad li::before {
    content: "\2716";
    position: absolute;
    left: 0;
    color: #e74c3c;
}

/* 丸数字リスト */
.wp-block-list.is-style-number-circle {
    list-style: none;
    padding: 15px 15px 15px 20px;
    background: #f0f7ff;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    counter-reset: circle-counter;
}
.wp-block-list.is-style-number-circle li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    counter-increment: circle-counter;
}
.wp-block-list.is-style-number-circle li:last-child {
    margin-bottom: 0;
}
.wp-block-list.is-style-number-circle li::before {
    content: counter(circle-counter);
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 三角リスト */
.wp-block-list.is-style-triangle {
    list-style: none;
    padding-left: 0;
}
.wp-block-list.is-style-triangle li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}
.wp-block-list.is-style-triangle li::before {
    content: "\25B6";
    position: absolute;
    left: 0;
    color: #0073aa;
    font-size: 0.7em;
    top: 4px;
}

/* 矢印リスト */
.wp-block-list.is-style-arrow {
    list-style: none;
    padding-left: 0;
}
.wp-block-list.is-style-arrow li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}
.wp-block-list.is-style-arrow li::before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: #0073aa;
    font-weight: bold;
}

/* 星リスト */
.wp-block-list.is-style-star {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.wp-block-list.is-style-star li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
    list-style: none !important;
}
.wp-block-list.is-style-star li::marker {
    content: none !important;
    display: none !important;
}
.wp-block-list.is-style-star li::before {
    content: "\2605" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: #f9a825 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* 注意リスト */
.wp-block-list.is-style-caution {
    list-style: none;
    padding: 15px 15px 15px 20px;
    background: #fff3e0;
    border-radius: 6px;
    border-left: 4px solid #ff9800;
}
.wp-block-list.is-style-caution li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
}
.wp-block-list.is-style-caution li:last-child {
    margin-bottom: 0;
}
.wp-block-list.is-style-caution li::before {
    content: "\26A0";
    position: absolute;
    left: 0;
    color: #ff9800;
}

/* ノート風リスト */
.wp-block-list.is-style-note {
    list-style: none;
    padding: 30px 20px 20px 25px;
    background: #fffde7;
    border: 2px solid #fff59d;
    border-radius: 8px;
    position: relative;
    margin-left: 0;
    margin-right: 0;
}
.wp-block-list.is-style-note::before {
    content: "\270E";
    position: absolute;
    top: 8px;
    left: 8px;
    background: transparent;
    padding: 0;
    color: #f9a825;
    font-size: 20px;
    line-height: 1;
}
.wp-block-list.is-style-note li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 12px;
    list-style: none;
}
.wp-block-list.is-style-note li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.wp-block-list.is-style-note li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #f9a825;
    border-radius: 50%;
}

/* ==========================================================================
   コアブロック - 段落スタイル
   ========================================================================== */

/* 黄マーカー */
.wp-block-paragraph.is-style-marker-yellow {
    background: linear-gradient(transparent 60%, #fff59d 60%);
    display: inline;
    padding: 0 4px;
}

/* ピンクマーカー */
.wp-block-paragraph.is-style-marker-pink {
    background: linear-gradient(transparent 60%, #f8bbd9 60%);
    display: inline;
    padding: 0 4px;
}

/* 青マーカー */
.wp-block-paragraph.is-style-marker-blue {
    background: linear-gradient(transparent 60%, #bbdefb 60%);
    display: inline;
    padding: 0 4px;
}

/* 左線 */
.wp-block-paragraph.is-style-border-left {
    border-left: 4px solid #0073aa;
    padding-left: 16px;
    margin-left: 0;
}

/* グレーボックス */
.wp-block-paragraph.is-style-box-gray {
    background: #f5f5f5;
    padding: 16px 20px;
    border-radius: 6px;
}

/* ==========================================================================
   コアブロック - 見出しスタイル
   ========================================================================== */

/* 下線 */
.wp-block-heading.is-style-border-bottom {
    border-bottom: 3px solid #0073aa;
    padding-bottom: 10px;
}

/* 左線アクセント */
.wp-block-heading.is-style-border-left-accent {
    border-left: 5px solid #0073aa;
    padding-left: 15px;
    background: #f8f9fa;
    padding: 12px 15px;
}

/* 背景付き */
.wp-block-heading.is-style-background {
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
}

/* 吹き出し風 */
.wp-block-heading.is-style-speech {
    position: relative;
    background: #f5f5f5;
    padding: 12px 20px;
    border-radius: 6px;
}
.wp-block-heading.is-style-speech::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    border: 10px solid transparent;
    border-top-color: #f5f5f5;
    border-bottom: 0;
}

/* ==========================================================================
   コアブロック - 画像スタイル
   ========================================================================== */

/* 影付き */
.wp-block-image.is-style-shadow img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* 枠線 */
.wp-block-image.is-style-border img {
    border: 3px solid #e0e0e0;
}

/* 角丸 */
.wp-block-image.is-style-rounded img {
    border-radius: 12px;
}

/* ==========================================================================
   コアブロック - グループスタイル
   ========================================================================== */

/* 枠線ボックス */
.wp-block-group.is-style-box-border {
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
}

/* 影付きボックス */
.wp-block-group.is-style-box-shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}

/* グレーボックス */
.wp-block-group.is-style-box-gray {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

/* アクセントボックス */
.wp-block-group.is-style-box-accent {
    border-left: 5px solid #0073aa;
    padding: 20px;
    background: #f8f9fa;
}

/* ==========================================================================
   インラインマーカー(文字選択して適用)
   ========================================================================== */

.tuuhan-marker {
    background: linear-gradient(transparent 60%, var(--marker-color) 60%);
    padding: 0 4px;
}

.tuuhan-marker-yellow { background: linear-gradient(transparent 60%, #fff59d 60%); }
.tuuhan-marker-pink { background: linear-gradient(transparent 60%, #f8bbd9 60%); }
.tuuhan-marker-blue { background: linear-gradient(transparent 60%, #bbdefb 60%); }
.tuuhan-marker-green { background: linear-gradient(transparent 60%, #c8e6c9 60%); }
.tuuhan-marker-orange { background: linear-gradient(transparent 60%, #ffe0b2 60%); }

/* 赤文字 */
.tuuhan-red-text {
    color: #e74c3c;
    font-weight: bold;
}

/* 太字強調 */
.tuuhan-bold-text {
    font-weight: 700;
}

/* ==========================================================================
   コアブロック - 見出しスタイル(H2-H5対応) - 追加分
   ========================================================================== */

/* 二重線 */
.wp-block-heading.is-style-border-double {
    border-bottom: 4px double #0073aa;
    padding-bottom: 10px;
}

/* 左線(太) */
.wp-block-heading.is-style-border-left-big {
    border-left: 8px solid #0073aa;
    padding-left: 15px;
    background: linear-gradient(90deg, #f0f7ff 0%, transparent 100%);
    padding: 12px 15px;
}

/* ストライプ背景 */
.wp-block-heading.is-style-background-stripe {
    background: repeating-linear-gradient(
        -45deg,
        #0073aa,
        #0073aa 10px,
        #005a87 10px,
        #005a87 20px
    );
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
}

/* グラデーション */
.wp-block-heading.is-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
}

/* 吹き出し(丸) */
.wp-block-heading.is-style-balloon {
    position: relative;
    background: #0073aa;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    display: inline-block;
}
.wp-block-heading.is-style-balloon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 30px;
    border: 8px solid transparent;
    border-top-color: #0073aa;
    border-bottom: 0;
}

/* リボン */
.wp-block-heading.is-style-ribbon {
    position: relative;
    background: var(--h2-color, #0073aa);
    color: #fff;
    padding: 12px 30px;
    margin: 20px 25px 30px 25px;
    text-align: center;
    box-shadow:
        -8px 8px 0 0 rgba(0,0,0,0.15),
        8px 8px 0 0 rgba(0,0,0,0.15);
}
/* 左の尖り */
.wp-block-heading.is-style-ribbon::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22px solid var(--h2-color, #0073aa);
    border-bottom: 22px solid var(--h2-color, #0073aa);
    border-left: 25px solid transparent;
}
/* 右の尖り */
.wp-block-heading.is-style-ribbon::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22px solid var(--h2-color, #0073aa);
    border-bottom: 22px solid var(--h2-color, #0073aa);
    border-right: 25px solid transparent;
}

/* セクション */
.wp-block-heading.is-style-section {
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}
.wp-block-heading.is-style-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0073aa;
}

/* ステップ */
.wp-block-heading.is-style-step {
    position: relative;
    padding-left: 50px;
    counter-increment: step-counter;
    color: #333;
}
.wp-block-heading.is-style-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* カッコ */
.wp-block-heading.is-style-bracket {
    position: relative;
    padding: 0 20px;
    display: inline-block;
}
.wp-block-heading.is-style-bracket::before {
    content: '[';
    color: #0073aa;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 8px;
}
.wp-block-heading.is-style-bracket::after {
    content: ']';
    color: #0073aa;
    font-weight: bold;
    font-size: 1.2em;
    margin-left: 8px;
}

/* 影付き */
.wp-block-heading.is-style-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* マーカー風 */
.wp-block-heading.is-style-marker {
    background: linear-gradient(transparent 60%, #fff59d 60%);
    display: inline;
    padding: 0 8px;
}

/* ステップカウンターのリセット */
.post-content,
.entry-content,
article {
    counter-reset: step-counter;
    overflow: hidden;
    max-width: 100%;
}

/* ==========================================================================
   ブロックスタイル優先(カスタマイザーより投稿設定を優先)
   ========================================================================== */

/* リスト - チェック (背景色クラスを尊重) */
.entry-content .wp-block-list.is-style-check:not(.has-background) {
    list-style: none !important;
    padding: 15px 15px 15px 20px !important;
    background: #f0fdf4 !important;
    border: none !important;
    border-left: 4px solid #27ae60 !important;
    border-radius: 6px !important;
}
.entry-content .wp-block-list.is-style-check.has-background {
    list-style: none !important;
    padding: 15px 15px 15px 20px !important;
    border: none !important;
    border-left: 4px solid #27ae60 !important;
    border-radius: 6px !important;
}
.entry-content .wp-block-list.is-style-check.has-black-background-color {
    background: #000 !important;
    border-left-color: #4fc3f7 !important;
}
.entry-content .wp-block-list.is-style-check.has-black-background-color li {
    color: #fff !important;
}
.entry-content .wp-block-list.is-style-check.has-black-background-color li::before {
    color: #4fc3f7 !important;
}
.entry-content .wp-block-list.is-style-check li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
}
.entry-content .wp-block-list.is-style-check li:last-child {
    margin-bottom: 0 !important;
}
.entry-content .wp-block-list.is-style-check li::before {
    content: "\2713" !important;
    position: absolute !important;
    left: 0 !important;
    color: #27ae60 !important;
    font-weight: bold !important;
    font-size: 1em !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    border-radius: 0 !important;
}

/* リスト - 良い点 */
.entry-content .wp-block-list.is-style-good {
    list-style: none !important;
    list-style-type: none !important;
    padding: 15px 15px 15px 20px !important;
    background: #e8f5e9 !important;
    border: none !important;
    border-left: 4px solid #27ae60 !important;
    border-radius: 6px !important;
}
.entry-content .wp-block-list.is-style-good li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
    list-style: none !important;
}
.entry-content .wp-block-list.is-style-good li::marker {
    content: none !important;
    display: none !important;
}
.entry-content .wp-block-list.is-style-good li::before {
    content: "\25CB" !important;
    position: absolute !important;
    left: 0 !important;
    color: #27ae60 !important;
    background: none !important;
    font-weight: bold !important;
    font-size: 1em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* リスト - 悪い点 */
.entry-content .wp-block-list.is-style-bad {
    list-style: none !important;
    list-style-type: none !important;
    padding: 15px 15px 15px 20px !important;
    background: #ffebee !important;
    border: none !important;
    border-left: 4px solid #e74c3c !important;
    border-radius: 6px !important;
}
.entry-content .wp-block-list.is-style-bad li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
    list-style: none !important;
}
.entry-content .wp-block-list.is-style-bad li::marker {
    content: none !important;
    display: none !important;
}
.entry-content .wp-block-list.is-style-bad li::before {
    content: "\2716" !important;
    position: absolute !important;
    left: 0 !important;
    color: #e74c3c !important;
    background: none !important;
    font-size: 1em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* リスト - 丸数字 */
.entry-content .wp-block-list.is-style-number-circle {
    list-style: none !important;
    padding: 15px 15px 15px 40px !important;
    counter-reset: circle-counter !important;
    background: #f0f7ff !important;
    border: none !important;
    border-left: 4px solid #0073aa !important;
    border-radius: 6px !important;
}
.entry-content .wp-block-list.is-style-number-circle li {
    position: relative !important;
    counter-increment: circle-counter !important;
    padding-left: 28px !important;
    margin-bottom: 10px !important;
    border-bottom: none !important;
}
.entry-content .wp-block-list.is-style-number-circle li:last-child {
    margin-bottom: 0 !important;
}
.entry-content .wp-block-list.is-style-number-circle li::before {
    content: counter(circle-counter) !important;
    position: absolute !important;
    left: 0 !important;
    width: 22px !important;
    height: 22px !important;
    background: #0073aa !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

/* リスト - 三角 */
.entry-content .wp-block-list.is-style-triangle {
    list-style: none !important;
    padding-left: 5px !important;
}
.entry-content .wp-block-list.is-style-triangle li {
    position: relative !important;
    padding-left: 20px !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
}
.entry-content .wp-block-list.is-style-triangle li::before {
    content: "\25B6" !important;
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    color: #0073aa !important;
    background: none !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* リスト - 矢印 */
.entry-content .wp-block-list.is-style-arrow {
    list-style: none !important;
    padding-left: 5px !important;
}
.entry-content .wp-block-list.is-style-arrow li {
    position: relative !important;
    padding-left: 20px !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
}
.entry-content .wp-block-list.is-style-arrow li::before {
    content: "\2192" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: #0073aa !important;
    font-weight: bold !important;
    font-size: 18px !important;
    line-height: 1 !important;
    background: none !important;
}

/* リスト - 星 */
.entry-content .wp-block-list.is-style-star,
.entry-content ul.is-style-star,
ul.is-style-star {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.entry-content .wp-block-list.is-style-star li,
.entry-content ul.is-style-star li,
ul.is-style-star li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 12px !important;
    border-bottom: none !important;
    line-height: 1.6 !important;
    list-style: none !important;
    list-style-type: none !important;
}
.entry-content .wp-block-list.is-style-star li::marker,
.entry-content ul.is-style-star li::marker,
ul.is-style-star li::marker {
    content: none !important;
    display: none !important;
}
.entry-content .wp-block-list.is-style-star li::before,
.entry-content ul.is-style-star li::before,
ul.is-style-star li::before {
    content: "\2605" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: #f9a825 !important;
    background: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* リスト - 注意 */
.entry-content .wp-block-list.is-style-caution {
    list-style: none !important;
    padding: 15px 15px 15px 20px !important;
    background: #fff3e0 !important;
    border: none !important;
    border-left: 4px solid #ff9800 !important;
    border-radius: 6px !important;
}
.entry-content .wp-block-list.is-style-caution li {
    position: relative !important;
    padding-left: 22px !important;
    margin-bottom: 8px !important;
    border-bottom: none !important;
}
.entry-content .wp-block-list.is-style-caution li:last-child {
    margin-bottom: 0 !important;
}
.entry-content .wp-block-list.is-style-caution li::before {
    content: "\26A0" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #ff9800 !important;
    background: none !important;
    font-size: 1em !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* リスト - ノート風 */
.entry-content .wp-block-list.is-style-note {
    list-style: none !important;
    list-style-type: none !important;
    padding: 30px 20px 20px 25px !important;
    background: #fffde7 !important;
    border: 2px solid #fff59d !important;
    border-radius: 8px !important;
    position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.entry-content .wp-block-list.is-style-note::before {
    content: "\270E" !important;
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: transparent !important;
    padding: 0 !important;
    color: #f9a825 !important;
    font-size: 20px !important;
    line-height: 1 !important;
}
.entry-content .wp-block-list.is-style-note li {
    position: relative !important;
    padding-left: 25px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px dashed #ddd !important;
    padding-bottom: 12px !important;
    list-style: none !important;
}
.entry-content .wp-block-list.is-style-note li::marker {
    content: none !important;
    display: none !important;
}
.entry-content .wp-block-list.is-style-note li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.entry-content .wp-block-list.is-style-note li::before {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 8px !important;
    width: 8px !important;
    height: 8px !important;
    background: #f9a825 !important;
    border-radius: 50% !important;
}

/* 見出し - 下線 */
.entry-content h2.is-style-border-bottom,
.entry-content h3.is-style-border-bottom,
.entry-content h4.is-style-border-bottom,
.entry-content h5.is-style-border-bottom,
.entry-content .wp-block-heading.is-style-border-bottom {
    border-bottom: 3px solid #0073aa !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    padding: 0 0 10px 0 !important;
    color: #333 !important;
}

/* 見出し - 二重線 */
.entry-content .wp-block-heading.is-style-border-double {
    border-bottom: 4px double #0073aa !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    padding: 0 0 10px 0 !important;
    color: #333 !important;
}

/* 見出し - 左線アクセント */
.entry-content .wp-block-heading.is-style-border-left-accent {
    border-left: 5px solid #0073aa !important;
    border-bottom: none !important;
    border-right: none !important;
    background: #f8f9fa !important;
    padding: 12px 15px !important;
    color: #333 !important;
}

/* 見出し - 左線(太) */
.entry-content .wp-block-heading.is-style-border-left-big {
    border-left: 8px solid #0073aa !important;
    border-bottom: none !important;
    border-right: none !important;
    background: linear-gradient(90deg, #f0f7ff 0%, transparent 100%) !important;
    padding: 12px 15px !important;
    color: #333 !important;
}

/* 見出し - 背景付き */
.entry-content .wp-block-heading.is-style-background {
    background: #0073aa !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 4px !important;
}

/* 見出し - ストライプ */
.entry-content .wp-block-heading.is-style-background-stripe {
    background: repeating-linear-gradient(-45deg, #0073aa, #0073aa 10px, #005a87 10px, #005a87 20px) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border: none !important;
}

/* 見出し - グラデーション */
.entry-content .wp-block-heading.is-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border: none !important;
}

/* 見出し - 吹き出し風 */
.entry-content .wp-block-heading.is-style-speech {
    background: #f5f5f5 !important;
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    position: relative !important;
    color: #333 !important;
}
.entry-content .wp-block-heading.is-style-speech::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 20px !important;
    border: 10px solid transparent !important;
    border-top-color: #f5f5f5 !important;
}

/* 見出し - 吹き出し(丸) */
.entry-content .wp-block-heading.is-style-balloon {
    background: #0073aa !important;
    color: #fff !important;
    padding: 12px 20px !important;
    border-radius: 30px !important;
    display: inline-block !important;
    border: none !important;
}

/* 見出し - リボン */
.entry-content .wp-block-heading.is-style-ribbon {
    background: #0073aa !important;
    color: #fff !important;
    padding: 12px 20px 12px 25px !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    border: none !important;
}

/* 見出し - セクション */
.entry-content .wp-block-heading.is-style-section {
    text-align: center !important;
    padding-bottom: 15px !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    color: #333 !important;
}
.entry-content .wp-block-heading.is-style-section::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: #0073aa !important;
}

/* 見出し - ステップ */
.entry-content .wp-block-heading.is-style-step {
    padding-left: 50px !important;
    background: transparent !important;
    border: none !important;
    counter-increment: step-counter !important;
    color: #333 !important;
}
.entry-content .wp-block-heading.is-style-step::before {
    content: counter(step-counter) !important;
    width: 36px !important;
    height: 36px !important;
    background: #0073aa !important;
    color: #fff !important;
    border-radius: 50% !important;
}

/* 見出し - カッコ */
.entry-content .wp-block-heading.is-style-bracket {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
}
.entry-content .wp-block-heading.is-style-bracket::before {
    content: '[' !important;
    color: #0073aa !important;
}
.entry-content .wp-block-heading.is-style-bracket::after {
    content: ']' !important;
    color: #0073aa !important;
}

/* 見出し - 影付き */
.entry-content .wp-block-heading.is-style-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2) !important;
    border-bottom: 2px solid #e0e0e0 !important;
    border-left: none !important;
    background: transparent !important;
    color: #333 !important;
}

/* 見出し - マーカー風 */
.entry-content .wp-block-heading.is-style-marker {
    background: linear-gradient(transparent 60%, #fff59d 60%) !important;
    display: inline !important;
    border: none !important;
    color: #333 !important;
}

/* 見出し - チェックマーク */
.entry-content .wp-block-heading.is-style-check,
.entry-content h2.heading-check,
.entry-content h3.heading-check,
.entry-content h4.heading-check {
    position: relative !important;
    padding-left: 40px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #e0e0e0 !important;
    padding-bottom: 10px !important;
}

.entry-content .wp-block-heading.is-style-check::before,
.entry-content h2.heading-check::before,
.entry-content h3.heading-check::before,
.entry-content h4.heading-check::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
}

.entry-content .wp-block-heading.is-style-check::after,
.entry-content h2.heading-check::after,
.entry-content h3.heading-check::after,
.entry-content h4.heading-check::after {
    content: "" !important;
    position: absolute !important;
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-60%) rotate(45deg) !important;
    width: 8px !important;
    height: 14px !important;
    border: solid #fff !important;
    border-width: 0 3px 3px 0 !important;
}

/* 見出し - チェックマーク(四角) */
.entry-content .wp-block-heading.is-style-check-square,
.entry-content h2.heading-check-square,
.entry-content h3.heading-check-square,
.entry-content h4.heading-check-square {
    position: relative !important;
    padding-left: 38px !important;
    background: transparent !important;
    border: none !important;
    border-left: 4px solid #10b981 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.entry-content .wp-block-heading.is-style-check-square::before,
.entry-content h2.heading-check-square::before,
.entry-content h3.heading-check-square::before,
.entry-content h4.heading-check-square::before {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 22px !important;
    height: 22px !important;
    background: #10b981 !important;
    border-radius: 4px !important;
}

.entry-content .wp-block-heading.is-style-check-square::after,
.entry-content h2.heading-check-square::after,
.entry-content h3.heading-check-square::after,
.entry-content h4.heading-check-square::after {
    content: "" !important;
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-60%) rotate(45deg) !important;
    width: 6px !important;
    height: 12px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
}

/* 見出し - チェックマーク(背景付き) */
.entry-content .wp-block-heading.is-style-check-bg,
.entry-content h2.heading-check-bg,
.entry-content h3.heading-check-bg,
.entry-content h4.heading-check-bg {
    position: relative !important;
    padding: 12px 16px 12px 48px !important;
    background: #ecfdf5 !important;
    border: none !important;
    border-left: 4px solid #10b981 !important;
    border-radius: 0 8px 8px 0 !important;
}

.entry-content .wp-block-heading.is-style-check-bg::before,
.entry-content h2.heading-check-bg::before,
.entry-content h3.heading-check-bg::before,
.entry-content h4.heading-check-bg::before {
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: #10b981 !important;
    border-radius: 50% !important;
}

.entry-content .wp-block-heading.is-style-check-bg::after,
.entry-content h2.heading-check-bg::after,
.entry-content h3.heading-check-bg::after,
.entry-content h4.heading-check-bg::after {
    content: "" !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-60%) rotate(45deg) !important;
    width: 6px !important;
    height: 12px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
}

/* 見出し - チェックマーク(シンプル) */
.entry-content .wp-block-heading.is-style-check-simple,
.entry-content h2.heading-check-simple,
.entry-content h3.heading-check-simple,
.entry-content h4.heading-check-simple {
    position: relative !important;
    padding-left: 32px !important;
    background: transparent !important;
    border: none !important;
}

.entry-content .wp-block-heading.is-style-check-simple::before,
.entry-content h2.heading-check-simple::before,
.entry-content h3.heading-check-simple::before,
.entry-content h4.heading-check-simple::before {
    content: "" !important;
    position: absolute !important;
    left: 2px !important;
    top: 50% !important;
    transform: translateY(-60%) rotate(45deg) !important;
    width: 10px !important;
    height: 18px !important;
    border: solid #10b981 !important;
    border-width: 0 4px 4px 0 !important;
}

/* =====================================================
   SEO - パンくずリスト
===================================================== */
.breadcrumb {
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #ccc;
    margin: 0 4px;
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

/* =====================================================
   SEO - 関連記事
===================================================== */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.related-posts-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.related-post-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-post-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.related-post-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-item:hover .related-post-thumb img {
    transform: scale(1.05);
}

.related-post-thumb .no-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.related-post-title {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================
   SEO - 前後記事ナビゲーション
===================================================== */
.post-navigation {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    width: 100%;
}

.post-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.post-nav-link {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    display: flex;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.post-nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    border-color: var(--primary-color);
}

.post-nav-link.post-nav-empty {
    visibility: hidden;
}

/* サムネイル */
.post-nav-thumb {
    width: 120px;
    min-width: 120px;
    height: 100px;
    overflow: hidden;
    background: #f0f0f0;
}

.post-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-nav-link:hover .post-nav-thumb img {
    transform: scale(1.05);
}

.post-nav-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebef 100%);
}

.post-nav-no-thumb svg {
    width: 36px;
    height: 36px;
    color: #ccc;
}

/* コンテンツ部分 */
.post-nav-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* ラベル(前の記事/次の記事) */
.post-nav-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-nav-label svg {
    flex-shrink: 0;
}

/* カテゴリー */
.post-nav-category {
    font-size: 10px;
    color: #fff;
    background: var(--primary-color);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 6px;
    max-width: fit-content;
}

/* タイトル */
.post-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.post-nav-link:hover .post-nav-title {
    color: var(--primary-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .post-nav-links {
        flex-direction: column;
    }

    .post-nav-link {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .post-nav-link.post-nav-empty {
        display: none;
    }
}

@media (max-width: 480px) {
    .post-nav-thumb {
        width: 90px;
        min-width: 90px;
        height: 80px;
    }

    .post-nav-content {
        padding: 12px 14px;
    }

    .post-nav-title {
        font-size: 13px;
    }
}

/* =====================================================
   DUGA商品スタイル
===================================================== */
.duga-products {
    margin: 20px 0;
}

.duga-products .widget-title,
.duga-products-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e91e63;
    color: var(--text-color);
}

/* DUGAグリッドデザイン */
.duga-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.duga-grid-items .duga-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.duga-grid-items .duga-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(233,30,99,0.2);
}

.duga-grid-items .duga-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.duga-grid-items .duga-item-image {
    width: 100%;
    background: #f5f5f5;
}

.duga-grid-items .duga-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.duga-grid-items .duga-item-info {
    padding: 8px 10px;
    background: rgba(233,30,99,0.03);
}

.duga-grid-items .duga-item-title {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
}

.duga-item:hover .duga-item-title {
    color: #e91e63;
}

/* DUGAスライダーデザイン */
.duga-slider-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.duga-slider-items::-webkit-scrollbar {
    height: 6px;
}

.duga-slider-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.duga-slider-items::-webkit-scrollbar-thumb {
    background: #e91e63;
    border-radius: 3px;
}

.duga-slider-items .duga-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.duga-slider-items .duga-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.duga-slider-items .duga-item-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.duga-slider-items .duga-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.duga-slider-items .duga-item-info {
    padding: 8px 10px;
    background: rgba(233,30,99,0.03);
}

.duga-slider-items .duga-item-title {
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

/* =====================================================
   楽天商品スタイル
===================================================== */
.rakuten-products {
    margin: 20px 0;
}

.rakuten-products .widget-title,
.rakuten-products-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bf0000;
    color: var(--text-color);
}

/* 楽天グリッドデザイン */
.rakuten-products.rakuten-grid-items,
.rakuten-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.rakuten-grid-items .rakuten-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rakuten-grid-items .rakuten-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(191,0,0,0.15);
}

.rakuten-grid-items .rakuten-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rakuten-grid-items .rakuten-item-image {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.rakuten-grid-items .rakuten-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rakuten-grid-items .rakuten-item-info {
    padding: 10px 12px;
    background: #fff;
}

.rakuten-grid-items .rakuten-item-title {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
    margin-bottom: 6px;
}

.rakuten-item:hover .rakuten-item-title {
    color: #bf0000;
}

.rakuten-item-price {
    display: none;
}

.rakuten-item-shop {
    display: none;
}

/* 楽天スライダーデザイン */
.rakuten-products.rakuten-slider-items,
.rakuten-slider-items {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.rakuten-slider-items::-webkit-scrollbar {
    height: 6px;
}

.rakuten-slider-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.rakuten-slider-items::-webkit-scrollbar-thumb {
    background: #bf0000;
    border-radius: 3px;
}

.rakuten-slider-items .rakuten-item {
    flex: 0 0 180px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.rakuten-slider-items .rakuten-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rakuten-slider-items .rakuten-item-image {
    width: 100%;
    height: 150px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rakuten-slider-items .rakuten-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rakuten-slider-items .rakuten-item-info {
    padding: 10px;
    background: #fff;
}

.rakuten-slider-items .rakuten-item-title {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    margin-bottom: 5px;
}

/* =====================================================
   Amazon商品スタイル
===================================================== */
.amazon-products {
    margin: 20px 0;
}

.amazon-products .widget-title,
.amazon-products-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9900;
    color: var(--text-color);
}

/* Amazonグリッドデザイン */
.amazon-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.amazon-grid-items .amazon-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.amazon-grid-items .amazon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255,153,0,0.2);
}

.amazon-grid-items .amazon-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.amazon-grid-items .amazon-item-image {
    width: 100%;
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.amazon-grid-items .amazon-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.amazon-grid-items .amazon-item-info {
    padding: 10px 12px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.amazon-grid-items .amazon-item-title {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color);
    margin-bottom: 6px;
}

.amazon-item:hover .amazon-item-title {
    color: #c45500;
}

.amazon-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #b12704;
}

.amazon-item-prime {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.65rem;
    background: #232f3e;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Amazonスライダーデザイン */
.amazon-slider-items {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.amazon-slider-items::-webkit-scrollbar {
    height: 6px;
}

.amazon-slider-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.amazon-slider-items::-webkit-scrollbar-thumb {
    background: #ff9900;
    border-radius: 3px;
}

.amazon-slider-items .amazon-item {
    flex: 0 0 180px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.amazon-slider-items .amazon-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.amazon-slider-items .amazon-item-image {
    width: 100%;
    height: 150px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.amazon-slider-items .amazon-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.amazon-slider-items .amazon-item-info {
    padding: 10px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.amazon-slider-items .amazon-item-title {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    margin-bottom: 5px;
}

/* エラーメッセージ共通 */
.duga-error,
.rakuten-error,
.amazon-error {
    padding: 15px;
    background: #fff3f3;
    border: 1px solid #ffcccc;
    border-radius: 6px;
    color: #cc0000;
    font-size: 0.9rem;
    text-align: center;
}

/* DUGAリストデザイン */
.duga-list-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.duga-list-items .duga-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.duga-list-items .duga-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.duga-list-items .duga-item-image {
    width: 120px;
    flex-shrink: 0;
}

.duga-list-items .duga-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

.duga-list-items .duga-item-info {
    flex: 1;
    padding: 10px 12px;
    background: rgba(233,30,99,0.03);
    display: flex;
    align-items: center;
}

.duga-list-items .duga-item-title {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* 楽天リストデザイン */
.rakuten-list-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rakuten-list-items .rakuten-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.rakuten-list-items .rakuten-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.rakuten-list-items .rakuten-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rakuten-list-items .rakuten-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rakuten-list-items .rakuten-item-info {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rakuten-list-items .rakuten-item-title {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 5px;
}

.rakuten-list-items .rakuten-item-price {
    display: none;
}

/* Amazonリストデザイン */
.amazon-list-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amazon-list-items .amazon-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
}

.amazon-list-items .amazon-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.amazon-list-items .amazon-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.amazon-list-items .amazon-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.amazon-list-items .amazon-item-info {
    flex: 1;
    padding: 10px 12px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #eee;
}

.amazon-list-items .amazon-item-title {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 5px;
}

.amazon-list-items .amazon-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #b12704;
}

/* =============================================================
   商品カード(Product Card)
   ============================================================= */

/* 単体カード共通 */
.tuuhan-product-card {
    display: block;
    margin: 20px 0;
}

.tuuhan-product-card a {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tuuhan-product-card a:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    text-decoration: none;
}

/* カードタイトルのリセット(entry-content内のh4スタイルを除外) */
.tuuhan-product-card .card-title::before,
.tuuhan-product-card .card-title::after,
.tuuhan-product-cards .card-title::before,
.tuuhan-product-cards .card-title::after,
.tuuhan-card-item .card-title::before,
.tuuhan-card-item .card-title::after,
.tuuhan-ranking-item .ranking-title::before,
.tuuhan-ranking-item .ranking-title::after {
    content: none !important;
    display: none !important;
}

.tuuhan-product-card .card-title,
.tuuhan-product-cards .card-title,
.tuuhan-card-item .card-title,
.tuuhan-ranking-item .ranking-title {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: block;
    position: relative;
}

/* 縦型デザイン(デフォルト) */
.tuuhan-card-vertical .card-image,
.tuuhan-card-default .card-image {
    width: 100%;
    overflow: hidden;
}

.tuuhan-card-vertical .card-image img,
.tuuhan-card-default .card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tuuhan-card-vertical .card-body,
.tuuhan-card-default .card-body {
    padding: 15px;
}

.tuuhan-card-vertical .card-title,
.tuuhan-card-default .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tuuhan-card-vertical .card-price,
.tuuhan-card-default .card-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
}

.tuuhan-card-vertical .card-source,
.tuuhan-card-default .card-source {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #666;
}

.tuuhan-card-vertical .card-source-fanza,
.tuuhan-card-default .card-source-fanza {
    background: #667eea;
    color: #fff;
}

.tuuhan-card-vertical .card-source-duga,
.tuuhan-card-default .card-source-duga {
    background: #ff6600;
    color: #fff;
}

.tuuhan-card-vertical .card-source-amazon,
.tuuhan-card-default .card-source-amazon {
    background: #ff9900;
    color: #fff;
}

/* 横型デザイン */
.tuuhan-card-horizontal a {
    display: flex;
    align-items: stretch;
}

.tuuhan-card-horizontal .card-image {
    width: 150px;
    min-width: 150px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tuuhan-card-horizontal .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tuuhan-card-horizontal .card-body {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tuuhan-card-horizontal .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.tuuhan-card-horizontal .card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 8px;
}

.tuuhan-card-horizontal .card-source {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #666;
    align-self: flex-start;
}

/* シンプルデザイン */
.tuuhan-card-simple a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: none;
    background: transparent;
}

.tuuhan-card-simple .card-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.tuuhan-card-simple .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tuuhan-card-simple .card-body {
    flex: 1;
    min-width: 0;
}

.tuuhan-card-simple .card-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tuuhan-card-simple .card-price {
    font-size: 0.85rem;
    color: #e74c3c;
    font-weight: 600;
}

.tuuhan-card-simple .card-source {
    display: none;
}

/* カード風デザイン */
.tuuhan-card-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tuuhan-card-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.tuuhan-card-card .card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.tuuhan-card-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tuuhan-card-card:hover .card-image img {
    transform: scale(1.05);
}

.tuuhan-card-card .card-body {
    padding: 20px;
}

.tuuhan-card-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tuuhan-card-card .card-description {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

.tuuhan-card-card .card-price {
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: 700;
}

/* 枠付きデザイン */
.tuuhan-card-bordered {
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.tuuhan-card-bordered::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #667eea);
}

.tuuhan-card-bordered .card-image {
    padding: 15px 15px 0;
}

.tuuhan-card-bordered .card-image img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.tuuhan-card-bordered .card-body {
    padding: 15px 20px 20px;
}

.tuuhan-card-bordered .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.tuuhan-card-bordered .card-description {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 10px;
}

.tuuhan-card-bordered .card-price {
    font-size: 1.15rem;
    color: #e74c3c;
    font-weight: 700;
}

/* ミニマルデザイン */
.tuuhan-card-minimal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: transparent;
    border-bottom: 1px solid #eee;
}

.tuuhan-card-minimal:last-child {
    border-bottom: none;
}

.tuuhan-card-minimal .card-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.tuuhan-card-minimal .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tuuhan-card-minimal .card-body {
    flex: 1;
    padding: 0;
}

.tuuhan-card-minimal .card-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.tuuhan-card-minimal .card-price {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 600;
}

.tuuhan-card-minimal .card-source {
    display: none;
}

/* 注目デザイン(大) */
.tuuhan-card-featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    position: relative;
}

.tuuhan-card-featured .card-image {
    position: relative;
}

.tuuhan-card-featured .card-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.tuuhan-card-featured .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.tuuhan-card-featured .card-body {
    padding: 25px;
}

.tuuhan-card-featured .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tuuhan-card-featured .card-title a {
    color: #fff;
}

.tuuhan-card-featured .card-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0 0 15px;
    line-height: 1.6;
}

.tuuhan-card-featured .card-price {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: 800;
}

.tuuhan-card-featured .card-buttons .card-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.tuuhan-card-featured .card-buttons .card-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* コンパクトデザイン */
.tuuhan-card-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.tuuhan-card-compact .card-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.tuuhan-card-compact .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tuuhan-card-compact .card-body {
    flex: 1;
    padding: 0;
    min-width: 0;
}

.tuuhan-card-compact .card-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tuuhan-card-compact .card-price {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 600;
}

.tuuhan-card-compact .card-source {
    font-size: 0.7rem;
    padding: 2px 6px;
}

.tuuhan-card-compact .card-buttons {
    margin-top: 6px;
}

.tuuhan-card-compact .card-buttons .card-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
}

/* 複数カード表示 */
.tuuhan-product-cards {
    margin: 25px 0;
}

/* グリッドデザイン */
.tuuhan-cards-grid {
    display: grid;
    gap: 20px;
}

.tuuhan-cards-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tuuhan-cards-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tuuhan-cards-cols-4 { grid-template-columns: repeat(4, 1fr); }
.tuuhan-cards-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 768px) {
    .tuuhan-cards-cols-3,
    .tuuhan-cards-cols-4,
    .tuuhan-cards-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tuuhan-cards-cols-2,
    .tuuhan-cards-cols-3,
    .tuuhan-cards-cols-4,
    .tuuhan-cards-cols-5 {
        grid-template-columns: 1fr;
    }
}

.tuuhan-card-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tuuhan-card-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.tuuhan-card-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tuuhan-card-item .card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tuuhan-card-item .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tuuhan-card-item .card-body {
    padding: 12px;
}

.tuuhan-card-item .card-title {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tuuhan-card-item .card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #e74c3c;
}

/* リストデザイン */
.tuuhan-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tuuhan-cards-list .tuuhan-card-item a {
    display: flex;
    align-items: center;
}

.tuuhan-cards-list .tuuhan-card-item .card-image {
    width: 100px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}

.tuuhan-cards-list .tuuhan-card-item .card-body {
    flex: 1;
    padding: 12px 15px;
}

/* カルーセルデザイン */
.tuuhan-cards-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.tuuhan-cards-carousel::-webkit-scrollbar {
    height: 6px;
}

.tuuhan-cards-carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.tuuhan-cards-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.tuuhan-cards-carousel .tuuhan-card-item {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .tuuhan-cards-carousel .tuuhan-card-item {
        flex: 0 0 160px;
    }
}

/* 横型レスポンシブ */
@media (max-width: 480px) {
    .tuuhan-card-horizontal a {
        flex-direction: column;
    }

    .tuuhan-card-horizontal .card-image {
        width: 100%;
        min-width: unset;
        aspect-ratio: 16/9;
    }
}

/* H2/H3前ウィジェットエリア */
.widget-before-first-h2,
.widget-before-first-h3 {
    margin: 30px 0;
    clear: both;
}

.widget-before-first-h2 > .widget-area,
.widget-before-first-h3 > .widget-area {
    margin-bottom: 0;
}

/* ========================================
   追加表示形式 - カルーセル/マソンリー/マガジン等
======================================== */

/* カルーセル(横スクロール) */
.fanza-carousel-items,
.rakuten-carousel-items,
.amazon-carousel-items,
.duga-carousel-items,
.tuuhan-cards-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
}

.fanza-carousel-items::-webkit-scrollbar,
.rakuten-carousel-items::-webkit-scrollbar,
.amazon-carousel-items::-webkit-scrollbar,
.duga-carousel-items::-webkit-scrollbar {
    height: 6px;
}

.fanza-carousel-items::-webkit-scrollbar-thumb,
.rakuten-carousel-items::-webkit-scrollbar-thumb,
.amazon-carousel-items::-webkit-scrollbar-thumb,
.duga-carousel-items::-webkit-scrollbar-thumb {
    background: var(--primary-color, #667eea);
    border-radius: 3px;
}

.fanza-carousel-items .fanza-item,
.rakuten-carousel-items .rakuten-item,
.amazon-carousel-items .amazon-item,
.duga-carousel-items .duga-item,
.tuuhan-cards-carousel .tuuhan-card-item {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

/* マソンリー(Pinterest風) */
.fanza-masonry-items,
.rakuten-masonry-items,
.amazon-masonry-items,
.duga-masonry-items,
.tuuhan-cards-masonry {
    column-count: 3;
    column-gap: 15px;
}

.fanza-masonry-items .fanza-item,
.rakuten-masonry-items .rakuten-item,
.amazon-masonry-items .amazon-item,
.duga-masonry-items .duga-item,
.tuuhan-cards-masonry .tuuhan-card-item {
    break-inside: avoid;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .fanza-masonry-items,
    .rakuten-masonry-items,
    .amazon-masonry-items,
    .duga-masonry-items {
        column-count: 2;
    }
}

/* マガジン(雑誌風 - 1大+複数小) */
.fanza-magazine-items,
.rakuten-magazine-items,
.amazon-magazine-items,
.duga-magazine-items,
.tuuhan-cards-magazine {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}

.fanza-magazine-items .fanza-item:first-child,
.rakuten-magazine-items .rakuten-item:first-child,
.amazon-magazine-items .amazon-item:first-child,
.duga-magazine-items .duga-item:first-child,
.tuuhan-cards-magazine .tuuhan-card-item:first-child {
    grid-row: 1 / 3;
}

.fanza-magazine-items .fanza-item:first-child .fanza-item-image,
.rakuten-magazine-items .rakuten-item:first-child .rakuten-item-image,
.amazon-magazine-items .amazon-item:first-child .amazon-item-image {
    height: 300px;
}

@media (max-width: 768px) {
    .fanza-magazine-items,
    .rakuten-magazine-items,
    .amazon-magazine-items,
    .duga-magazine-items {
        grid-template-columns: 1fr;
    }
    .fanza-magazine-items .fanza-item:first-child,
    .rakuten-magazine-items .rakuten-item:first-child {
        grid-row: auto;
    }
}

/* サイドバー内のマガジンスタイル(狭いエリア用) */
.sidebar .fanza-magazine-items,
.sidebar .rakuten-magazine-items,
.sidebar .amazon-magazine-items,
.sidebar .duga-magazine-items,
.widget-area .fanza-magazine-items,
.widget-area .rakuten-magazine-items,
.widget-area .amazon-magazine-items,
.widget-area .duga-magazine-items,
.widget .fanza-magazine-items,
.widget .rakuten-magazine-items,
.widget .amazon-magazine-items,
.widget .duga-magazine-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    grid-template-columns: unset !important;
}

.sidebar .fanza-magazine-items .fanza-item,
.sidebar .rakuten-magazine-items .rakuten-item,
.sidebar .amazon-magazine-items .amazon-item,
.sidebar .duga-magazine-items .duga-item,
.widget-area .fanza-magazine-items .fanza-item,
.widget-area .rakuten-magazine-items .rakuten-item,
.widget-area .amazon-magazine-items .amazon-item,
.widget-area .duga-magazine-items .duga-item,
.widget .fanza-magazine-items .fanza-item,
.widget .rakuten-magazine-items .rakuten-item,
.widget .amazon-magazine-items .amazon-item,
.widget .duga-magazine-items .duga-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    grid-row: unset !important;
}

.sidebar .fanza-magazine-items .fanza-item a,
.sidebar .rakuten-magazine-items .rakuten-item a,
.sidebar .amazon-magazine-items .amazon-item a,
.sidebar .duga-magazine-items .duga-item a,
.widget-area .fanza-magazine-items .fanza-item a,
.widget-area .rakuten-magazine-items .rakuten-item a,
.widget-area .amazon-magazine-items .amazon-item a,
.widget-area .duga-magazine-items .duga-item a,
.widget .fanza-magazine-items .fanza-item a,
.widget .rakuten-magazine-items .rakuten-item a,
.widget .amazon-magazine-items .amazon-item a,
.widget .duga-magazine-items .duga-item a {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.sidebar .fanza-magazine-items .fanza-item-image,
.sidebar .rakuten-magazine-items .rakuten-item-image,
.sidebar .amazon-magazine-items .amazon-item-image,
.sidebar .duga-magazine-items .duga-item-image,
.widget-area .fanza-magazine-items .fanza-item-image,
.widget-area .rakuten-magazine-items .rakuten-item-image,
.widget-area .amazon-magazine-items .amazon-item-image,
.widget-area .duga-magazine-items .duga-item-image,
.widget .fanza-magazine-items .fanza-item-image,
.widget .rakuten-magazine-items .rakuten-item-image,
.widget .amazon-magazine-items .amazon-item-image,
.widget .duga-magazine-items .duga-item-image {
    width: 80px !important;
    min-width: 80px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
}

.sidebar .fanza-magazine-items .fanza-item:first-child .fanza-item-image,
.sidebar .rakuten-magazine-items .rakuten-item:first-child .rakuten-item-image,
.sidebar .amazon-magazine-items .amazon-item:first-child .amazon-item-image,
.widget-area .fanza-magazine-items .fanza-item:first-child .fanza-item-image,
.widget-area .rakuten-magazine-items .rakuten-item:first-child .rakuten-item-image,
.widget-area .amazon-magazine-items .amazon-item:first-child .amazon-item-image,
.widget .fanza-magazine-items .fanza-item:first-child .fanza-item-image,
.widget .rakuten-magazine-items .rakuten-item:first-child .rakuten-item-image,
.widget .amazon-magazine-items .amazon-item:first-child .amazon-item-image {
    width: 80px !important;
    height: 60px !important;
}

.sidebar .fanza-magazine-items .fanza-item-info,
.sidebar .rakuten-magazine-items .rakuten-item-info,
.sidebar .amazon-magazine-items .amazon-item-info,
.sidebar .duga-magazine-items .duga-item-info,
.widget-area .fanza-magazine-items .fanza-item-info,
.widget-area .rakuten-magazine-items .rakuten-item-info,
.widget-area .amazon-magazine-items .amazon-item-info,
.widget-area .duga-magazine-items .duga-item-info,
.widget .fanza-magazine-items .fanza-item-info,
.widget .rakuten-magazine-items .rakuten-item-info,
.widget .amazon-magazine-items .amazon-item-info,
.widget .duga-magazine-items .duga-item-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.sidebar .fanza-magazine-items .fanza-item-title,
.sidebar .rakuten-magazine-items .rakuten-item-title,
.sidebar .amazon-magazine-items .amazon-item-title,
.sidebar .duga-magazine-items .duga-item-title,
.widget-area .fanza-magazine-items .fanza-item-title,
.widget-area .rakuten-magazine-items .rakuten-item-title,
.widget-area .amazon-magazine-items .amazon-item-title,
.widget-area .duga-magazine-items .duga-item-title,
.widget .fanza-magazine-items .fanza-item-title,
.widget .rakuten-magazine-items .rakuten-item-title,
.widget .amazon-magazine-items .amazon-item-title,
.widget .duga-magazine-items .duga-item-title {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* サイドバー内のランキングスタイル */
.sidebar .fanza-ranking-items,
.sidebar .duga-ranking-items,
.sidebar .rakuten-ranking-items,
.sidebar .amazon-ranking-items,
.widget-area .fanza-ranking-items,
.widget-area .duga-ranking-items,
.widget-area .rakuten-ranking-items,
.widget-area .amazon-ranking-items,
.widget .fanza-ranking-items,
.widget .duga-ranking-items,
.widget .rakuten-ranking-items,
.widget .amazon-ranking-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.sidebar .fanza-ranking-items .fanza-item,
.sidebar .duga-ranking-items .duga-item,
.sidebar .rakuten-ranking-items .rakuten-item,
.sidebar .amazon-ranking-items .amazon-item,
.widget-area .fanza-ranking-items .fanza-item,
.widget-area .duga-ranking-items .duga-item,
.widget-area .rakuten-ranking-items .rakuten-item,
.widget-area .amazon-ranking-items .amazon-item,
.widget .fanza-ranking-items .fanza-item,
.widget .duga-ranking-items .duga-item,
.widget .rakuten-ranking-items .rakuten-item,
.widget .amazon-ranking-items .amazon-item {
    padding: 10px !important;
    border-radius: 8px !important;
}

.sidebar .fanza-ranking-items .fanza-item a,
.sidebar .duga-ranking-items .duga-item a,
.sidebar .rakuten-ranking-items .rakuten-item a,
.sidebar .amazon-ranking-items .amazon-item a,
.widget-area .fanza-ranking-items .fanza-item a,
.widget-area .duga-ranking-items .duga-item a,
.widget-area .rakuten-ranking-items .rakuten-item a,
.widget-area .amazon-ranking-items .amazon-item a,
.widget .fanza-ranking-items .fanza-item a,
.widget .duga-ranking-items .duga-item a,
.widget .rakuten-ranking-items .rakuten-item a,
.widget .amazon-ranking-items .amazon-item a {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

.sidebar .fanza-ranking-items .fanza-rank,
.sidebar .duga-ranking-items .duga-rank,
.sidebar .rakuten-ranking-items .rakuten-rank,
.sidebar .amazon-ranking-items .amazon-rank,
.widget .fanza-ranking-items .fanza-rank,
.widget .duga-ranking-items .duga-rank,
.widget .rakuten-ranking-items .rakuten-rank,
.widget .amazon-ranking-items .amazon-rank {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
}

.sidebar .fanza-ranking-items .fanza-item-image,
.sidebar .duga-ranking-items .duga-item-image,
.sidebar .rakuten-ranking-items .rakuten-item-image,
.sidebar .amazon-ranking-items .amazon-item-image,
.widget .fanza-ranking-items .fanza-item-image,
.widget .duga-ranking-items .duga-item-image,
.widget .rakuten-ranking-items .rakuten-item-image,
.widget .amazon-ranking-items .amazon-item-image {
    width: 70px !important;
    min-width: 70px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
}

.sidebar .fanza-ranking-items .fanza-item.rank-1 .fanza-item-image,
.sidebar .duga-ranking-items .duga-item.rank-1 .duga-item-image,
.sidebar .rakuten-ranking-items .rakuten-item.rank-1 .rakuten-item-image,
.sidebar .amazon-ranking-items .amazon-item.rank-1 .amazon-item-image,
.widget .fanza-ranking-items .fanza-item.rank-1 .fanza-item-image,
.widget .duga-ranking-items .duga-item.rank-1 .duga-item-image,
.widget .rakuten-ranking-items .rakuten-item.rank-1 .rakuten-item-image,
.widget .amazon-ranking-items .amazon-item.rank-1 .amazon-item-image {
    width: 80px !important;
    height: 60px !important;
}

.sidebar .fanza-ranking-items .fanza-item-info,
.sidebar .duga-ranking-items .duga-item-info,
.sidebar .rakuten-ranking-items .rakuten-item-info,
.sidebar .amazon-ranking-items .amazon-item-info,
.widget .fanza-ranking-items .fanza-item-info,
.widget .duga-ranking-items .duga-item-info,
.widget .rakuten-ranking-items .rakuten-item-info,
.widget .amazon-ranking-items .amazon-item-info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.sidebar .fanza-ranking-items .fanza-item-title,
.sidebar .duga-ranking-items .duga-item-title,
.sidebar .rakuten-ranking-items .rakuten-item-title,
.sidebar .amazon-ranking-items .amazon-item-title,
.widget .fanza-ranking-items .fanza-item-title,
.widget .duga-ranking-items .duga-item-title,
.widget .rakuten-ranking-items .rakuten-item-title,
.widget .amazon-ranking-items .amazon-item-title {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.sidebar .fanza-ranking-items .fanza-item-actress,
.sidebar .fanza-ranking-items .fanza-item-price,
.sidebar .fanza-item-actress,
.sidebar .fanza-item-price,
.widget .fanza-ranking-items .fanza-item-actress,
.widget .fanza-ranking-items .fanza-item-price,
.widget .fanza-item-actress,
.widget .fanza-item-price,
.sidebar .fanza-item-info .fanza-item-price,
.widget .fanza-item-info .fanza-item-price {
    display: none !important;
}

/* サイドバー FANZAタイトル - 2行に制限 */
.sidebar .fanza-item-title,
.widget .fanza-item-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    max-height: 2.8em !important;
}

/* サイドバー FANZA アイテム整理 */
.sidebar .fanza-item,
.widget .fanza-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.sidebar .fanza-item:last-child,
.widget .fanza-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .fanza-item-info,
.widget .fanza-item-info {
    padding: 8px 0 0 0;
}

/* コンパクト(小さめリスト) */
.fanza-compact-items,
.rakuten-compact-items,
.amazon-compact-items,
.duga-compact-items,
.tuuhan-cards-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fanza-compact-items .fanza-item,
.rakuten-compact-items .rakuten-item,
.amazon-compact-items .amazon-item,
.duga-compact-items .duga-item,
.tuuhan-cards-compact .tuuhan-card-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--card-bg, #fff);
    border-radius: 6px;
    border: 1px solid #eee;
}

.fanza-compact-items .fanza-item-image,
.rakuten-compact-items .rakuten-item-image,
.amazon-compact-items .amazon-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.fanza-compact-items .fanza-item-title,
.rakuten-compact-items .rakuten-item-title,
.amazon-compact-items .amazon-item-title {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* タイル(正方形グリッド) */
.fanza-tile-items,
.rakuten-tile-items,
.amazon-tile-items,
.duga-tile-items,
.tuuhan-cards-tile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.fanza-tile-items .fanza-item,
.rakuten-tile-items .rakuten-item,
.amazon-tile-items .amazon-item,
.duga-tile-items .duga-item,
.tuuhan-cards-tile .tuuhan-card-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.fanza-tile-items .fanza-item-image,
.rakuten-tile-items .rakuten-item-image,
.amazon-tile-items .amazon-item-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.fanza-tile-items .fanza-item-image img,
.rakuten-tile-items .rakuten-item-image img,
.amazon-tile-items .amazon-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fanza-tile-items .fanza-item-title,
.rakuten-tile-items .rakuten-item-title,
.amazon-tile-items .amazon-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 0.75rem;
}

/* バナー(横長1列) */
.fanza-banner-items,
.rakuten-banner-items,
.amazon-banner-items,
.duga-banner-items,
.tuuhan-cards-banner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fanza-banner-items .fanza-item,
.rakuten-banner-items .rakuten-item,
.amazon-banner-items .amazon-item {
    display: flex;
    background: var(--card-bg, #fff);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fanza-banner-items .fanza-item-image,
.rakuten-banner-items .rakuten-item-image,
.amazon-banner-items .amazon-item-image {
    width: 200px;
    flex-shrink: 0;
}

.fanza-banner-items .fanza-item-info,
.rakuten-banner-items .rakuten-item-info,
.amazon-banner-items .amazon-item-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================
   商品カード ボタン
======================================== */
.tuuhan-product-card .card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tuuhan-product-card .card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--btn-color, #667eea);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.tuuhan-product-card .card-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ボタン1個: 幅100% */
.tuuhan-product-card.btn-count-1 .card-buttons {
    flex-direction: column;
}

.tuuhan-product-card.btn-count-1 .card-btn {
    flex: none;
    width: 100%;
}

/* ボタン2個: 横並び */
.tuuhan-product-card.btn-count-2 .card-btn {
    flex: 1 1 calc(50% - 4px);
}

/* ボタン3個以上: グリッド */
.tuuhan-product-card.btn-count-3 .card-btn,
.tuuhan-product-card.btn-count-4 .card-btn {
    flex: 1 1 calc(50% - 4px);
}

/* 水平デザイン時のボタン配置 */
.tuuhan-card-horizontal.has-buttons {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
}

.tuuhan-card-horizontal.has-buttons .card-image {
    grid-column: 1;
    grid-row: 1;
}

.tuuhan-card-horizontal.has-buttons .card-body {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tuuhan-card-horizontal.has-buttons .card-buttons {
    grid-column: 3;
    grid-row: 1;
    flex-direction: column;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 1px solid #eee;
    min-width: 140px;
}

.tuuhan-card-horizontal.has-buttons .card-btn {
    flex: none;
    width: 100%;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .tuuhan-card-horizontal.has-buttons {
        grid-template-columns: 1fr;
    }

    .tuuhan-card-horizontal.has-buttons .card-image,
    .tuuhan-card-horizontal.has-buttons .card-body,
    .tuuhan-card-horizontal.has-buttons .card-buttons {
        grid-column: 1;
        grid-row: auto;
    }

    .tuuhan-card-horizontal.has-buttons .card-buttons {
        border-left: none;
        border-top: 1px solid #eee;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ========================================
   目次(TOC)アニメーション
======================================== */

/* 目次コンテナ */
.toc-widget,
.tuuhan-toc,
.toc-container {
    animation: tocFadeIn 0.5s ease-out;
}

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

/* 目次タイトル(クリックで開閉) */
.toc-toggle-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toc-toggle-title:hover {
    filter: brightness(1.1);
}

.toc-toggle-title::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.toc-collapsed .toc-toggle-title::after {
    transform: rotate(-135deg);
}

/* 目次リスト */
.toc-list {
    list-style: none;
    margin: 0;
    padding: 15px;
    max-height: none !important;
    overflow: visible !important;
}

/* サイドバーの目次 */
.sidebar .toc-list,
.widget-area .toc-list {
    max-height: none !important;
    overflow: visible !important;
}

.toc-collapsed .toc-list {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

/* 目次アイテム */
.toc-list li {
    position: relative;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color, #e0e0e0);
}
.toc-list li::before {
    content: none !important;
    display: none !important;
}

.toc-list li:last-child {
    border-bottom: none;
}

/* ホバーエフェクト - シンプルに色変更のみ */
.toc-list li:hover a {
    color: var(--primary-color, #667eea);
}

/* アクティブ(現在読んでいる見出し) */
.toc-list li.toc-active a {
    color: var(--primary-color, #667eea);
    font-weight: 600;
}

/* リンクスタイル */
.toc-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    color: var(--primary-color, #667eea);
}

/* ネスト(H3, H4用) */
.toc-list .toc-h3 {
    padding-left: 35px;
    font-size: 0.85rem;
}

.toc-list .toc-h4 {
    padding-left: 50px;
    font-size: 0.8rem;
}

/* スクロールバーカスタマイズ */
.toc-list::-webkit-scrollbar {
    width: 4px;
}

.toc-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.toc-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 2px;
}

.toc-list::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* プログレスバー(読み進め具合) */
.toc-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.2s ease;
    border-radius: 0 0 8px 8px;
    display: none;
}

/* サイドバー固定時 */
.sidebar-sticky .widget-toc,
.sidebar-sticky .toc-widget {
    position: sticky;
    top: 20px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .toc-list {
        max-height: 300px;
    }

    .toc-toggle-title {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

/* =====================================================
   追加ウィジェットデザインパターン
===================================================== */

/* ===== カードデザイン ===== */
.fanza-card-items,
.duga-card-items,
.rakuten-card-items,
.amazon-card-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.fanza-card-items .fanza-item,
.duga-card-items .duga-item,
.rakuten-card-items .rakuten-item,
.amazon-card-items .amazon-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.fanza-card-items .fanza-item:hover,
.duga-card-items .duga-item:hover,
.rakuten-card-items .rakuten-item:hover,
.amazon-card-items .amazon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.fanza-card-items .fanza-item a,
.duga-card-items .duga-item a,
.rakuten-card-items .rakuten-item a,
.amazon-card-items .amazon-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.fanza-card-items .fanza-item-image,
.duga-card-items .duga-item-image,
.rakuten-card-items .rakuten-item-image,
.amazon-card-items .amazon-item-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}

.fanza-card-items .fanza-item-image img,
.duga-card-items .duga-item-image img,
.rakuten-card-items .rakuten-item-image img,
.amazon-card-items .amazon-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.fanza-card-items .fanza-item:hover .fanza-item-image img,
.duga-card-items .duga-item:hover .duga-item-image img,
.rakuten-card-items .rakuten-item:hover .rakuten-item-image img,
.amazon-card-items .amazon-item:hover .amazon-item-image img {
    transform: scale(1.05);
}

.fanza-card-items .fanza-item-info,
.duga-card-items .duga-item-info,
.rakuten-card-items .rakuten-item-info,
.amazon-card-items .amazon-item-info {
    padding: 15px;
}

.fanza-card-items .fanza-item-title,
.duga-card-items .duga-item-title,
.rakuten-card-items .rakuten-item-title,
.amazon-card-items .amazon-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fanza-card-items .fanza-item-actress,
.rakuten-card-items .rakuten-item-shop {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.fanza-card-items .fanza-item-price,
.duga-card-items .duga-item-price,
.rakuten-card-items .rakuten-item-price,
.amazon-card-items .amazon-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #e74c3c;
}

/* ===== 横型デザイン ===== */
.fanza-horizontal-items,
.duga-horizontal-items,
.rakuten-horizontal-items,
.amazon-horizontal-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fanza-horizontal-items .fanza-item,
.duga-horizontal-items .duga-item,
.rakuten-horizontal-items .rakuten-item,
.amazon-horizontal-items .amazon-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    position: relative;
}

.fanza-horizontal-items .fanza-item:hover,
.duga-horizontal-items .duga-item:hover,
.rakuten-horizontal-items .rakuten-item:hover,
.amazon-horizontal-items .amazon-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.fanza-horizontal-items .fanza-item a,
.duga-horizontal-items .duga-item a,
.rakuten-horizontal-items .rakuten-item a,
.amazon-horizontal-items .amazon-item a {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.fanza-horizontal-items .fanza-item-image,
.duga-horizontal-items .duga-item-image,
.rakuten-horizontal-items .rakuten-item-image,
.amazon-horizontal-items .amazon-item-image {
    width: 150px;
    flex-shrink: 0;
    overflow: hidden;
}

.fanza-horizontal-items .fanza-item-image img,
.duga-horizontal-items .duga-item-image img,
.rakuten-horizontal-items .rakuten-item-image img,
.amazon-horizontal-items .amazon-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fanza-horizontal-items .fanza-item-info,
.duga-horizontal-items .duga-item-info,
.rakuten-horizontal-items .rakuten-item-info,
.amazon-horizontal-items .amazon-item-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fanza-horizontal-items .fanza-item-title,
.duga-horizontal-items .duga-item-title,
.rakuten-horizontal-items .rakuten-item-title,
.amazon-horizontal-items .amazon-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
}

.fanza-horizontal-items .fanza-item-actress,
.rakuten-horizontal-items .rakuten-item-shop {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
}

.fanza-horizontal-items .fanza-item-price,
.duga-horizontal-items .duga-item-price,
.rakuten-horizontal-items .rakuten-item-price,
.amazon-horizontal-items .amazon-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c;
}

/* 横型ランク表示 */
.fanza-horizontal-items .fanza-rank,
.duga-horizontal-items .duga-rank,
.rakuten-horizontal-items .rakuten-rank,
.amazon-horizontal-items .amazon-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* ===== ランキングデザイン ===== */
.fanza-ranking-items,
.duga-ranking-items,
.rakuten-ranking-items,
.amazon-ranking-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fanza-ranking-items .fanza-item,
.duga-ranking-items .duga-item,
.rakuten-ranking-items .rakuten-item,
.amazon-ranking-items .amazon-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    position: relative;
}

.fanza-ranking-items .fanza-item a,
.duga-ranking-items .duga-item a,
.rakuten-ranking-items .rakuten-item a,
.amazon-ranking-items .amazon-item a {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

/* ランクバッジ共通 */
.fanza-rank,
.duga-rank,
.rakuten-rank,
.amazon-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

/* Top 3 特別カラー */
.fanza-item.rank-1 .fanza-rank,
.duga-item.rank-1 .duga-rank,
.rakuten-item.rank-1 .rakuten-rank,
.amazon-item.rank-1 .amazon-rank {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
}

.fanza-item.rank-2 .fanza-rank,
.duga-item.rank-2 .duga-rank,
.rakuten-item.rank-2 .rakuten-rank,
.amazon-item.rank-2 .amazon-rank {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.5);
}

.fanza-item.rank-3 .fanza-rank,
.duga-item.rank-3 .duga-rank,
.rakuten-item.rank-3 .rakuten-rank,
.amazon-item.rank-3 .amazon-rank {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.5);
}

/* ランキング画像 */
.fanza-ranking-items .fanza-item-image,
.duga-ranking-items .duga-item-image,
.rakuten-ranking-items .rakuten-item-image,
.amazon-ranking-items .amazon-item-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.fanza-ranking-items .fanza-item-image img,
.duga-ranking-items .duga-item-image img,
.rakuten-ranking-items .rakuten-item-image img,
.amazon-ranking-items .amazon-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 1位特別スタイル */
.fanza-ranking-items .fanza-item.rank-1,
.duga-ranking-items .duga-item.rank-1,
.rakuten-ranking-items .rakuten-item.rank-1,
.amazon-ranking-items .amazon-item.rank-1 {
    background: linear-gradient(135deg, #fffef0 0%, #fff9e6 100%);
    border: 2px solid #ffd700;
}

.fanza-ranking-items .fanza-item.rank-1 .fanza-item-image,
.duga-ranking-items .duga-item.rank-1 .duga-item-image,
.rakuten-ranking-items .rakuten-item.rank-1 .rakuten-item-image,
.amazon-ranking-items .amazon-item.rank-1 .amazon-item-image {
    width: 100px;
    height: 75px;
}

/* ランキングタイトル */
.fanza-ranking-items .fanza-item-title,
.duga-ranking-items .duga-item-title,
.rakuten-ranking-items .rakuten-item-title,
.amazon-ranking-items .amazon-item-title {
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .fanza-card-items,
    .duga-card-items,
    .rakuten-card-items,
    .amazon-card-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fanza-horizontal-items .fanza-item-image,
    .duga-horizontal-items .duga-item-image,
    .rakuten-horizontal-items .rakuten-item-image,
    .amazon-horizontal-items .amazon-item-image {
        width: 100px;
    }

    .fanza-ranking-items .fanza-item a,
    .duga-ranking-items .duga-item a,
    .rakuten-ranking-items .rakuten-item a,
    .amazon-ranking-items .amazon-item a {
        padding: 10px;
        gap: 10px;
    }

    .fanza-rank,
    .duga-rank,
    .rakuten-rank,
    .amazon-rank {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .fanza-item.rank-1 .fanza-rank,
    .duga-item.rank-1 .duga-rank {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   商品カード ランキングデザイン(おしゃれ版)
   ========================================================================== */
.tuuhan-cards-ranking {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tuuhan-ranking-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 20px;
    background: #fff;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.tuuhan-ranking-item:last-child {
    border-bottom: none;
}

/* 順位バッジ - 上部に配置、カスタマイザー連動 */
.tuuhan-ranking-item .ranking-badge {
    display: none;
}

/* 順位を商品名の前に表示 */
.tuuhan-ranking-item .ranking-title::before {
    content: attr(data-rank);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    border-radius: 50%;
    background: var(--rank-default-color, #007bff);
    vertical-align: middle;
}

.tuuhan-ranking-item.rank-1 .ranking-title::before {
    background: linear-gradient(135deg, var(--rank1-color, #ffd700), #f0c000);
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.tuuhan-ranking-item.rank-2 .ranking-title::before {
    background: linear-gradient(135deg, var(--rank2-color, #c0c0c0), #a0a0a0);
}

.tuuhan-ranking-item.rank-3 .ranking-title::before {
    background: linear-gradient(135deg, var(--rank3-color, #cd7f32), #b07030);
}

/* 画像 */
.tuuhan-ranking-item .ranking-image {
    flex-shrink: 0;
    width: 180px;
}

.tuuhan-ranking-item .ranking-image a {
    display: block;
}

.tuuhan-ranking-item .ranking-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* コンテンツ */
.tuuhan-ranking-item .ranking-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* タイトル */
.tuuhan-ranking-item .ranking-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.5;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tuuhan-ranking-item .ranking-title a {
    color: #333;
    text-decoration: none;
}

.tuuhan-ranking-item .ranking-title a:hover {
    color: var(--primary-color, #007bff);
}

/* 星評価(オプション) */
.tuuhan-ranking-item .ranking-stars {
    color: #ffb400;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* 価格(オプション表示) */
.tuuhan-ranking-item .ranking-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 8px 0;
}

/* 説明文 */
.tuuhan-ranking-item .ranking-description {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
}

/* ボタンエリア */
.tuuhan-ranking-item .ranking-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.tuuhan-ranking-item .ranking-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    background: var(--btn-color, #3498db);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.tuuhan-ranking-item .ranking-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ボタン1個の場合 - 横幅いっぱい */
.tuuhan-ranking-item.btn-count-1 .ranking-buttons {
    grid-template-columns: 1fr;
}

.tuuhan-ranking-item.btn-count-1 .ranking-btn {
    padding: 16px 30px;
    font-size: 1rem;
}

/* ボタン0個(デフォルトボタン)の場合 */
.tuuhan-ranking-item.btn-count-0 .ranking-buttons {
    grid-template-columns: 1fr;
}

/* 1位は特別強調 */
.tuuhan-ranking-item.rank-1 {
    background: linear-gradient(135deg, #fffef8 0%, #fff 100%);
    border-left: 4px solid var(--rank1-color, #ffd700);
    padding-left: 20px;
}

.tuuhan-ranking-item.rank-1 .ranking-title {
    font-size: 1.3rem;
}

.tuuhan-ranking-item.rank-1 .ranking-image {
    width: 200px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .tuuhan-ranking-item {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }

    .tuuhan-ranking-item .ranking-image,
    .tuuhan-ranking-item.rank-1 .ranking-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .tuuhan-ranking-item .ranking-title,
    .tuuhan-ranking-item.rank-1 .ranking-title {
        font-size: 1.1rem;
    }

    .tuuhan-ranking-item .ranking-title::before {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .tuuhan-ranking-item .ranking-buttons {
        grid-template-columns: 1fr;
    }

    .tuuhan-ranking-item .ranking-btn {
        padding: 14px 20px;
    }
}

/* ==========================================================================
   BOXブロック アイコン追加
   ========================================================================== */
.tuuhan-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    font-size: 1rem;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
}

.tuuhan-box-info .tuuhan-box-icon { background: #2196F3; }
.tuuhan-box-warning .tuuhan-box-icon { background: #ff9800; }
.tuuhan-box-success .tuuhan-box-icon { background: #4caf50; }
.tuuhan-box-danger .tuuhan-box-icon { background: #f44336; }
.tuuhan-box-memo .tuuhan-box-icon { background: #9e9e9e; }
.tuuhan-box-point .tuuhan-box-icon { background: #ff5722; }

/* ==========================================================================
   ウィジェット内パーツ間隔調整
   ========================================================================== */
/* ウィジェット間の間隔を広げる */
.sidebar .widget,
.sidebar-widget,
.widget-area .widget {
    margin-bottom: 30px !important;
}

/* ウィジェットタイトル後の間隔 */
.sidebar .widget-title,
.sidebar-widget .widget-title,
.sidebar-widget h3,
.widget-area .widget-title {
    margin-bottom: 20px !important;
}

/* ウィジェット内のショートコード・ブロック間隔 */
.sidebar .widget > *:not(:last-child),
.widget-area .widget > *:not(:last-child) {
    margin-bottom: 15px;
}

/* ランキング系ウィジェットの間隔 */
.widget .fanza-shortcode,
.widget .duga-shortcode,
.widget .rakuten-shortcode,
.widget .amazon-shortcode,
.widget .tuuhan-product-cards,
.widget .tuuhan-product-card {
    margin-top: 15px;
}

/* ウィジェット内の見出しタグ周りの間隔 */
.sidebar .widget h2,
.sidebar .widget h3,
.sidebar .widget h4,
.widget-area .widget h2,
.widget-area .widget h3,
.widget-area .widget h4 {
    margin-top: 20px;
    margin-bottom: 15px;
}

.sidebar .widget h2:first-child,
.sidebar .widget h3:first-child,
.sidebar .widget h4:first-child,
.widget-area .widget h2:first-child,
.widget-area .widget h3:first-child,
.widget-area .widget h4:first-child {
    margin-top: 0;
}

/* 連続するパーツ間の間隔 */
.sidebar .widget .fanza-item + .fanza-item,
.sidebar .widget .duga-item + .duga-item,
.sidebar .widget .rakuten-item + .rakuten-item,
.sidebar .widget .amazon-item + .amazon-item {
    margin-top: 12px;
}

/* ウィジェット内のBOX間隔 */
.sidebar .widget .tuuhan-box,
.widget-area .widget .tuuhan-box {
    margin: 15px 0;
}

/* ウィジェット内のボタン間隔 */
.sidebar .widget .tuuhan-btn,
.widget-area .widget .tuuhan-btn {
    margin: 10px 0;
}

/* ========================================
   ランキングアイテムブロック
======================================== */
.tuuhan-ranking-item {
    position: relative !important;
    display: block !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 30px 20px 20px !important;
    margin: 30px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    writing-mode: horizontal-tb !important;
}

/* ランキングバッジ */
.tuuhan-ranking-item .rank-badge {
    position: absolute !important;
    top: -15px !important;
    left: 20px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 20px !important;
    color: #fff !important;
    background: #9e9e9e !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2) !important;
    writing-mode: horizontal-tb !important;
}

.tuuhan-ranking-item .rank-badge .crown {
    font-size: 14px !important;
    position: absolute !important;
    top: -10px !important;
}

.tuuhan-ranking-item .rank-badge.rank-gold {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%) !important;
}

.tuuhan-ranking-item .rank-badge.rank-silver {
    background: linear-gradient(135deg, #90a4ae 0%, #607d8b 100%) !important;
}

.tuuhan-ranking-item .rank-badge.rank-bronze {
    background: linear-gradient(135deg, #a1887f 0%, #795548 100%) !important;
}

/* ヘッダー(タイトル+星) */
.tuuhan-ranking-item .ranking-header {
    display: block !important;
    margin-left: 60px !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: none !important;
    writing-mode: horizontal-tb !important;
}

.tuuhan-ranking-item .ranking-title {
    display: block !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #333 !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
}

.tuuhan-ranking-item .ranking-stars {
    display: flex !important;
    flex-direction: row !important;
    gap: 2px !important;
    writing-mode: horizontal-tb !important;
}

.tuuhan-ranking-item .ranking-stars .star {
    font-size: 18px !important;
    display: inline !important;
}

.tuuhan-ranking-item .ranking-stars .star.filled {
    color: #ffc107 !important;
}

.tuuhan-ranking-item .ranking-stars .star.half {
    color: #ffc107 !important;
    opacity: 0.6 !important;
}

.tuuhan-ranking-item .ranking-stars .star.empty {
    color: #e0e0e0 !important;
}

/* 本文(画像+特徴) */
.tuuhan-ranking-item .ranking-body {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    margin-bottom: 15px !important;
    writing-mode: horizontal-tb !important;
}

.tuuhan-ranking-item .ranking-image {
    flex-shrink: 0 !important;
    width: 180px !important;
    writing-mode: horizontal-tb !important;
}

.tuuhan-ranking-item .ranking-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

.tuuhan-ranking-item .ranking-info {
    flex: 1 !important;
    writing-mode: horizontal-tb !important;
}

/* ラベル */
.tuuhan-ranking-item .ranking-label {
    display: inline-block !important;
    background: #fff3e0 !important;
    color: #e65100 !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    writing-mode: horizontal-tb !important;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    display: inline-block;
}

/* 特徴リスト */
.tuuhan-ranking-item .ranking-features {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    writing-mode: horizontal-tb !important;
}

.tuuhan-ranking-item .ranking-features li {
    position: relative !important;
    display: block !important;
    padding: 6px 0 6px 20px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    border-bottom: 1px dotted #eee !important;
    writing-mode: horizontal-tb !important;
}

.tuuhan-ranking-item .ranking-features li:last-child {
    border-bottom: none !important;
}

.tuuhan-ranking-item .ranking-features li::before {
    content: '\2022' !important;
    position: absolute !important;
    left: 0 !important;
    color: #ff9800 !important;
    font-weight: bold !important;
}

/* 説明文 */
.tuuhan-ranking-item .ranking-description {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #555 !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #fafafa !important;
    border-radius: 6px !important;
    writing-mode: horizontal-tb !important;
}

/* ボタンエリア */
.tuuhan-ranking-item .ranking-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    writing-mode: horizontal-tb !important;
}

.tuuhan-ranking-item .ranking-btn {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 20px !important;
    writing-mode: horizontal-tb !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.tuuhan-ranking-item .ranking-btn .arrow {
    font-size: 12px !important;
    display: inline !important;
}

.tuuhan-ranking-item .ranking-btn-buy {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(255,152,0,0.3) !important;
}

.tuuhan-ranking-item .ranking-btn-buy:hover {
    background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 12px rgba(255,152,0,0.4) !important;
    text-decoration: none !important;
    color: #fff !important;
}

.tuuhan-ranking-item .ranking-btn-detail {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}

.tuuhan-ranking-item .ranking-btn-detail:hover {
    background: #eeeeee !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
    color: #333 !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .tuuhan-ranking-item .ranking-body {
        flex-direction: column !important;
    }

    .tuuhan-ranking-item .ranking-image {
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto !important;
    }

    .tuuhan-ranking-item .ranking-buttons {
        flex-direction: column !important;
    }

    .tuuhan-ranking-item .ranking-header {
        margin-left: 50px !important;
    }
}

/* TOCの下に強制スペーサー */
.entry-content > .widget-before-first-h2::after {
    content: "";
    display: block;
    height: 24px;
}

/* 目次の進捗バーを非表示 */
.toc-progress {
    display: none !important;
    height: 0 !important;
}

/* ランキングアイテム アニメーション */
@keyframes rankingFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rankingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tuuhan-ranking-item {
    animation: rankingFadeIn 0.6s ease-out !important;
}

.tuuhan-ranking-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    transition: all 0.3s ease !important;
}

.tuuhan-ranking-item .rank-badge {
    animation: rankingPulse 2s ease-in-out infinite !important;
}

.tuuhan-ranking-item .ranking-btn {
    transition: all 0.3s ease !important;
}

.tuuhan-ranking-item .ranking-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
}

.tuuhan-ranking-item .ranking-image img {
    transition: transform 0.3s ease !important;
}

.tuuhan-ranking-item:hover .ranking-image img {
    transform: scale(1.03) !important;
}

/* ========================================
   記事単位レイアウト設定
======================================== */

/* 1カラム(サイドバー非表示) */
body.no-sidebar .sidebar,
body.no-sidebar .widget-area,
body.layout-1column .sidebar,
body.layout-1column .widget-area {
    display: none !important;
}

body.no-sidebar .site-content,
body.layout-1column .site-content {
    display: block !important;
}

body.no-sidebar .main-content,
body.no-sidebar .content-area,
body.layout-1column .main-content,
body.layout-1column .content-area {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* ワイド(フル幅) */
body.layout-wide .main-content,
body.layout-wide .content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 30px !important;
}

body.layout-wide .sidebar,
body.layout-wide .widget-area {
    display: none !important;
}

body.layout-wide .entry-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* 2カラム強制 */
body.layout-2column .sidebar,
body.layout-2column .widget-area {
    display: block !important;
}

/* ========================================
   モーダル/オーバーレイ
======================================== */

/* モーダルトリガーボタン */
.tuuhan-modal-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tuuhan-modal-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* モーダル本体 */
.tuuhan-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.tuuhan-modal.is-active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.tuuhan-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.tuuhan-modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.tuuhan-modal-small .tuuhan-modal-container { width: 90%; max-width: 400px; }
.tuuhan-modal-medium .tuuhan-modal-container { width: 90%; max-width: 600px; }
.tuuhan-modal-large .tuuhan-modal-container { width: 90%; max-width: 900px; }

.tuuhan-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.tuuhan-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.tuuhan-modal-content {
    padding: 30px;
}

/* モーダルアニメーション */
.tuuhan-modal-default .tuuhan-modal-container {
    animation: modalFadeIn 0.3s ease;
}

.tuuhan-modal-scale .tuuhan-modal-container {
    animation: modalScaleIn 0.3s ease;
}

.tuuhan-modal-slide .tuuhan-modal-container {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* オーバーレイ通知 */
.tuuhan-overlay {
    position: fixed;
    z-index: 99990;
    max-width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tuuhan-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.tuuhan-overlay-bottom-right { bottom: 20px; right: 20px; }
.tuuhan-overlay-bottom-left { bottom: 20px; left: 20px; }
.tuuhan-overlay-top-right { top: 20px; right: 20px; }
.tuuhan-overlay-top-left { top: 20px; left: 20px; }
.tuuhan-overlay-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }
.tuuhan-overlay-top-center { top: 20px; left: 50%; transform: translateX(-50%); }

/* 最下部バナー形式 */
.tuuhan-overlay-bottom-bar {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    width: 100%;
    border-radius: 0;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.tuuhan-overlay-bottom-bar .tuuhan-overlay-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tuuhan-overlay-bottom-bar .tuuhan-overlay-title {
    margin: 0 !important;
    font-size: 1rem;
    white-space: nowrap;
}

.tuuhan-overlay-bottom-bar .tuuhan-overlay-text {
    margin: 0 !important;
    flex: 1;
    font-size: 0.9rem;
}

.tuuhan-overlay-bottom-bar .tuuhan-overlay-btn {
    flex-shrink: 0;
    padding: 8px 20px !important;
    font-size: 0.9rem;
}

.tuuhan-overlay-bottom-bar .tuuhan-overlay-close {
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
}

/* スマホ用バナー */
@media (max-width: 768px) {
    .tuuhan-overlay-bottom-bar {
        padding: 8px 12px;
    }

    .tuuhan-overlay-bottom-bar .tuuhan-overlay-content {
        gap: 10px;
    }

    .tuuhan-overlay-bottom-bar .tuuhan-overlay-title {
        font-size: 0.85rem;
    }

    .tuuhan-overlay-bottom-bar .tuuhan-overlay-text {
        display: none;
    }

    .tuuhan-overlay-bottom-bar .tuuhan-overlay-btn {
        padding: 6px 14px !important;
        font-size: 0.8rem;
    }

    .tuuhan-overlay-bottom-bar .tuuhan-overlay-close {
        width: 24px;
        height: 24px;
        font-size: 14px;
        right: 8px;
    }
}

/* オーバーレイ画像 */
.tuuhan-overlay-image {
    margin-bottom: 10px;
    text-align: center;
}

.tuuhan-overlay-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

.tuuhan-overlay-image a {
    display: block;
}

/* 画像のみモード */
.tuuhan-overlay-image-only {
    padding: 10px !important;
    background: transparent !important;
}

.tuuhan-overlay-image-only .tuuhan-overlay-image {
    margin: 0;
}

.tuuhan-overlay-image-only .tuuhan-overlay-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tuuhan-overlay-image-only .tuuhan-overlay-close {
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
}

/* 最下部バナーでの画像 */
.tuuhan-overlay-bottom-bar .tuuhan-overlay-image {
    margin: 0;
    flex-shrink: 0;
}

.tuuhan-overlay-bottom-bar .tuuhan-overlay-image img {
    max-height: 50px;
    width: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .tuuhan-overlay-bottom-bar .tuuhan-overlay-image img {
        max-height: 40px;
    }

    .tuuhan-overlay-image-only {
        padding: 8px !important;
    }

    .tuuhan-overlay-image-only .tuuhan-overlay-image img {
        max-width: 90vw;
        max-height: 70vh;
    }
}

.tuuhan-overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tuuhan-overlay-close:hover {
    background: #e0e0e0;
}

/* オーバーレイアニメーション */
.tuuhan-overlay-slide {
    animation: overlaySlideIn 0.4s ease;
}

.tuuhan-overlay-fade {
    animation: overlayFadeIn 0.4s ease;
}

@keyframes overlaySlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================================
   Diver/DVAUX ボタン互換
   ===================================================== */
.wp-block-dvaux-button,
.wp-block-dvaux-button.button {
    text-align: center;
    margin: 1.5em 0;
}

.wp-block-dvaux-button .dvaux-button_link,
.dvaux-button_link {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.wp-block-dvaux-button .dvaux-button_link:hover,
.dvaux-button_link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0.9;
}

/* Word Balloon プラグイン互換 */
.wp-block-word-balloon-word-balloon-block {
    margin: 1.5em 0;
}

/* ==========================================================================
   LP (Landing Page) スタイル - Premium Edition
   ========================================================================== */

/* LP ページ基本設定 */
.lp-page {
    --lp-content-width: 900px;
    --lp-bg-color: #ffffff;
    --lp-bg-color2: #f0f0f0;
    --lp-content-bg-color: #ffffff;
    --lp-padding: 2vw;
    --lp-inner-padding: 2vw;
}

@media (min-width: 600px) {
    .lp-page {
        --lp-padding: 16px;
        --lp-inner-padding: 40px;
    }
}

/* LP ヘッダー */
.lp-header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lp-header .header-top {
    padding: 15px 0;
}

.lp-header .site-nav {
    display: none;
}

/* ==========================================================================
   背景パターンオーバーレイ
   ========================================================================== */
.lp-pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.lp-pattern-dots {
    background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.lp-pattern-grid {
    background-image:
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.lp-pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0,0,0,0.03) 10px,
        rgba(0,0,0,0.03) 20px
    );
}

.lp-pattern-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
}

.lp-pattern-wave {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 T100 10' stroke='rgba(0,0,0,0.05)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100px 20px;
}

.lp-pattern-geometric {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(0,0,0,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.lp-pattern-topography {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 50 Q30 30 50 50 T90 50' stroke='rgba(0,0,0,0.03)' fill='none'/%3E%3Cpath d='M10 70 Q30 50 50 70 T90 70' stroke='rgba(0,0,0,0.03)' fill='none'/%3E%3Cpath d='M10 30 Q30 10 50 30 T90 30' stroke='rgba(0,0,0,0.03)' fill='none'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

/* ==========================================================================
   ヒーロー画像スタイル
   ========================================================================== */
.lp-hero-image {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    position: relative;
    overflow: hidden;
}

.lp-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* パララックス効果 */
.lp-hero-fullwidth-parallax {
    height: 60vh;
    min-height: 400px;
}

.lp-hero-fullwidth-parallax .lp-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

@supports (background-attachment: fixed) {
    .lp-hero-fullwidth-parallax .lp-hero-img {
        position: fixed;
        height: 100vh;
    }
}

/* オーバーレイ付き */
.lp-hero-fullwidth-overlay {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.lp-hero-fullwidth-overlay .lp-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-hero-title-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.lp-title-overlay {
    color: #fff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ==========================================================================
   LP ラッパー・コンテンツ
   ========================================================================== */
.lp-wrapper {
    padding: 40px var(--lp-padding);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.lp-content {
    max-width: var(--lp-content-width);
    margin: 0 auto;
    box-sizing: content-box;
}

.lp-content-inner {
    position: relative;
    margin: 0 auto;
    max-width: calc(var(--lp-content-width) + var(--lp-inner-padding) * 2);
}

/* ==========================================================================
   コンテンツスタイル
   ========================================================================== */

/* 線で囲む */
.lp-style-border .lp-content-inner {
    border: 1px solid var(--border-color, #e0e0e0);
    background: var(--lp-content-bg-color);
    padding: var(--lp-inner-padding);
    border-radius: 8px;
}

/* シャドウ */
.lp-style-shadow .lp-content-inner {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: var(--lp-content-bg-color);
    padding: var(--lp-inner-padding);
    border-radius: 12px;
}

/* ディープシャドウ */
.lp-style-shadow-deep .lp-content-inner {
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 4px 8px rgba(0,0,0,0.04),
        0 8px 16px rgba(0,0,0,0.04),
        0 16px 32px rgba(0,0,0,0.04),
        0 32px 64px rgba(0,0,0,0.04);
    background: var(--lp-content-bg-color);
    padding: var(--lp-inner-padding);
    border-radius: 16px;
}

/* グラスモーフィズム */
.lp-style-glass .lp-content-inner {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: var(--lp-inner-padding);
    border-radius: 20px;
}

/* ニューモーフィズム */
.lp-style-neumorphism .lp-content-inner {
    background: var(--lp-content-bg-color, #e0e5ec);
    box-shadow:
        20px 20px 60px rgba(0,0,0,0.1),
        -20px -20px 60px rgba(255,255,255,0.8);
    padding: var(--lp-inner-padding);
    border-radius: 24px;
}

/* グラデーションボーダー */
.lp-style-gradient-border .lp-content-inner {
    background: var(--lp-content-bg-color);
    padding: var(--lp-inner-padding);
    border-radius: 16px;
    position: relative;
}

.lp-style-gradient-border .lp-content-inner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 18px;
    z-index: -1;
}

/* ペーパースタイル */
.lp-style-paper .lp-content-inner {
    background: var(--lp-content-bg-color);
    padding: var(--lp-inner-padding);
    box-shadow:
        0 1px 1px rgba(0,0,0,0.05),
        0 2px 2px rgba(0,0,0,0.05),
        0 4px 4px rgba(0,0,0,0.05),
        0 8px 8px rgba(0,0,0,0.05);
    border-radius: 2px;
    position: relative;
}

.lp-style-paper .lp-content-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    pointer-events: none;
}

/* ==========================================================================
   タイトルスタイル
   ========================================================================== */
.lp-title {
    font-size: 2em;
    text-align: center;
    margin: 30px 0;
    line-height: 1.4;
    color: var(--text-color, #333);
}

.lp-title-show-left {
    text-align: left;
}

.lp-title-show-large {
    font-size: 2.5em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lp-title-show-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   サムネイルスタイル
   ========================================================================== */
.lp-thumbnail {
    margin: 0 0 30px 0;
}

.lp-thumb-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius, 8px);
}

.lp-thumb-inner-rounded .lp-thumb-img {
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* ==========================================================================
   スクロールアニメーション
   ========================================================================== */
.lp-anim-fade-up .lp-post-content > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-anim-fade-up .lp-post-content > *.lp-animated {
    opacity: 1;
    transform: translateY(0);
}

.lp-anim-fade-in .lp-post-content > * {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.lp-anim-fade-in .lp-post-content > *.lp-animated {
    opacity: 1;
}

.lp-anim-slide-left .lp-post-content > * {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-anim-slide-left .lp-post-content > *.lp-animated {
    opacity: 1;
    transform: translateX(0);
}

.lp-anim-slide-right .lp-post-content > * {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-anim-slide-right .lp-post-content > *.lp-animated {
    opacity: 1;
    transform: translateX(0);
}

.lp-anim-zoom .lp-post-content > * {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-anim-zoom .lp-post-content > *.lp-animated {
    opacity: 1;
    transform: scale(1);
}

.lp-anim-blur .lp-post-content > * {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.lp-anim-blur .lp-post-content > *.lp-animated {
    opacity: 1;
    filter: blur(0);
}

/* ==========================================================================
   CTAボタンスタイル
   ========================================================================== */

/* グロー効果 */
.lp-cta-glow .wp-block-button__link,
.lp-cta-glow .wp-block-buttons .wp-block-button__link {
    box-shadow: 0 0 20px currentColor;
    transition: box-shadow 0.3s ease;
}

.lp-cta-glow .wp-block-button__link:hover {
    box-shadow: 0 0 30px currentColor, 0 0 60px currentColor;
}

/* グラデーション */
.lp-cta-gradient .wp-block-button__link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-cta-gradient .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* 3D効果 */
.lp-cta-3d .wp-block-button__link {
    box-shadow: 0 6px 0 rgba(0,0,0,0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.lp-cta-3d .wp-block-button__link:hover {
    transform: translateY(3px);
    box-shadow: 0 3px 0 rgba(0,0,0,0.2);
}

.lp-cta-3d .wp-block-button__link:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 rgba(0,0,0,0.2);
}

/* アウトライン→フィル */
.lp-cta-outline-fill .wp-block-button__link {
    background: transparent !important;
    border: 2px solid currentColor;
    transition: background 0.3s ease, color 0.3s ease;
}

.lp-cta-outline-fill .wp-block-button__link:hover {
    background: var(--primary-color, #4a90a4) !important;
    color: #fff !important;
}

/* シャイン効果 */
.lp-cta-shine .wp-block-button__link {
    position: relative;
    overflow: hidden;
}

.lp-cta-shine .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: lpShine 3s infinite;
}

@keyframes lpShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* パルス効果 */
.lp-cta-pulse .wp-block-button__link {
    animation: lpPulse 2s infinite;
}

@keyframes lpPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* マグネティック効果用スタイル */
.lp-cta-magnetic .wp-block-button__link {
    transition: transform 0.2s ease;
}

/* ==========================================================================
   LP 本文コンテンツ
   ========================================================================== */
.lp-post-content {
    margin-bottom: 0;
    padding: 0;
}

.lp-post-content:first-child {
    margin-top: 0;
}

/* alignfull 対応 */
.lp-style-border .lp-post-content .alignfull,
.lp-style-shadow .lp-post-content .alignfull,
.lp-style-shadow-deep .lp-post-content .alignfull,
.lp-style-glass .lp-post-content .alignfull,
.lp-style-neumorphism .lp-post-content .alignfull,
.lp-style-gradient-border .lp-post-content .alignfull,
.lp-style-paper .lp-post-content .alignfull {
    margin-left: calc(0px - var(--lp-inner-padding));
    margin-right: calc(0px - var(--lp-inner-padding));
    width: calc(100% + var(--lp-inner-padding) * 2);
    max-width: none;
}

/* h2 はみ出し対応 */
.lp-style-border .lp-post-content > h2,
.lp-style-shadow .lp-post-content > h2,
.lp-style-shadow-deep .lp-post-content > h2 {
    margin-left: calc(0px - var(--lp-inner-padding));
    margin-right: calc(0px - var(--lp-inner-padding));
    padding-left: var(--lp-inner-padding);
    padding-right: var(--lp-inner-padding);
}

/* alignwide 対応 */
@media (min-width: 960px) {
    .lp-style-border .lp-post-content .alignwide,
    .lp-style-shadow .lp-post-content .alignwide,
    .lp-style-shadow-deep .lp-post-content .alignwide {
        margin-left: calc(0px - var(--lp-inner-padding) / 2);
        margin-right: calc(0px - var(--lp-inner-padding) / 2);
        width: calc(100% + var(--lp-inner-padding));
        max-width: none;
    }
}

/* ==========================================================================
   LP フッター
   ========================================================================== */
.lp-footer {
    margin-top: 60px;
    padding: 30px 0;
    background: var(--footer-bg-color, #333);
    color: var(--footer-text-color, #fff);
    position: relative;
    z-index: 1;
}

.lp-footer .footer-copyright {
    text-align: center;
}

/* ヘッダー/フッター非表示時 */
.lp-no-header .site-header,
.lp-no-header .sticky-header,
.lp-no-header .lp-header {
    display: none !important;
}

.lp-no-footer .site-footer,
.lp-no-footer .lp-footer {
    display: none !important;
}

/* ==========================================================================
   LP モバイル対応
   ========================================================================== */
@media (max-width: 767px) {
    .lp-title {
        font-size: 1.5em;
        margin: 20px 0;
    }

    .lp-title-show-large {
        font-size: 1.8em;
    }

    .lp-style-border .lp-content-inner,
    .lp-style-shadow .lp-content-inner,
    .lp-style-shadow-deep .lp-content-inner,
    .lp-style-glass .lp-content-inner,
    .lp-style-neumorphism .lp-content-inner,
    .lp-style-gradient-border .lp-content-inner,
    .lp-style-paper .lp-content-inner {
        padding: 20px;
        border-radius: 12px;
    }

    .lp-style-border .lp-post-content .alignfull,
    .lp-style-shadow .lp-post-content .alignfull {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .lp-hero-fullwidth-parallax {
        height: 40vh;
        min-height: 300px;
    }
}

/* ============================================================
   NoteStyle — ヘッダー / 記事一覧 / 会員登録
   ここから下が改造版で追加した部分
   ============================================================ */

:root{
  --ns-ink:#242424;
  --ns-sub:#7b7b7b;
  --ns-line:#e6e6e6;
  --ns-bg:#ffffff;
  --ns-accent:#2cb696;
  --ns-radius:8px;
  --ns-max:720px;
}

body{
  background:var(--ns-bg);
  color:var(--ns-ink);
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* ---- ヘッダー ---- */
.ns-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--ns-line);
}
.ns-header__inner{
  max-width:1000px; margin:0 auto; padding:0 20px;
  height:60px; display:flex; align-items:center; gap:22px;
}
.ns-header__brand{ text-decoration:none; color:inherit; flex-shrink:0; }
.ns-header__title{ font-size:19px; font-weight:800; letter-spacing:.02em; }
.ns-header__right{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.ns-header__link{
  font-size:13px; font-weight:700; color:var(--ns-ink); text-decoration:none;
  border:1px solid var(--ns-line); border-radius:999px; padding:7px 15px;
  transition:background .15s ease, border-color .15s ease;
}
.ns-header__link:hover{ background:var(--ns-ink); color:#fff; border-color:var(--ns-ink); }

.ns-nav__list{ list-style:none; margin:0; padding:0; display:flex; gap:20px; }
.ns-nav__list a{
  font-size:14px; font-weight:600; color:var(--ns-ink); text-decoration:none;
  padding:6px 0; border-bottom:2px solid transparent; transition:border-color .15s ease;
}
.ns-nav__list a:hover{ border-bottom-color:var(--ns-ink); }

.ns-burger{ display:none; background:none; border:0; padding:8px; cursor:pointer; }
.ns-burger span{ display:block; width:20px; height:2px; background:var(--ns-ink); margin:4px 0; transition:.2s; }
.ns-drawer{ border-top:1px solid var(--ns-line); background:#fff; }
.ns-drawer__list{ list-style:none; margin:0; padding:8px 20px 16px; }
.ns-drawer__list a{ display:block; padding:12px 0; color:var(--ns-ink); text-decoration:none; font-weight:600; border-bottom:1px solid var(--ns-line); }

@media(max-width:768px){
  .ns-nav{ display:none; }
  .ns-burger{ display:block; }
  .ns-header__inner{ height:54px; padding:0 14px; }
  .ns-header__title{ font-size:17px; }
}

/* ---- 本文エリア ---- */
.ns-main{ padding:34px 0 70px; }
.ns-container{ max-width:var(--ns-max); margin:0 auto; padding:0 20px; }

/* ---- 記事一覧（note風） ---- */
.ns-list{ list-style:none; margin:0; padding:0; }
.ns-card{ border-bottom:1px solid var(--ns-line); }
.ns-card__link{
  display:flex; gap:20px; align-items:flex-start;
  padding:22px 4px; text-decoration:none; color:inherit;
  transition:background .15s ease;
}
.ns-card__link:hover{ background:#fafafa; }
.ns-card__body{ flex:1; min-width:0; }
.ns-card__meta{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-size:12px; color:var(--ns-sub); margin-bottom:7px;
}
.ns-card__cat{ font-weight:700; color:var(--ns-accent); }
.ns-badge-lock{
  font-weight:700; color:#8a6d00; background:#fff3cd;
  border-radius:4px; padding:2px 7px; font-size:11px;
}
.ns-card__title{
  font-size:18px; font-weight:800; line-height:1.5; margin:0 0 7px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.ns-card__excerpt{
  font-size:13.5px; color:var(--ns-sub); line-height:1.75; margin:0;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.ns-card__thumb{ flex-shrink:0; width:128px; height:96px; border-radius:var(--ns-radius); overflow:hidden; background:#f2f2f2; }
.ns-card__thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

@media(max-width:600px){
  .ns-card__link{ gap:13px; padding:17px 2px; }
  .ns-card__thumb{ width:88px; height:66px; }
  .ns-card__title{ font-size:16px; }
  .ns-card__excerpt{ -webkit-line-clamp:2; font-size:12.5px; }
}

.ns-empty{ color:var(--ns-sub); padding:50px 0; text-align:center; }

/* ページ送り */
.ns-main .navigation.pagination{ margin-top:36px; }
.ns-main .nav-links{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.ns-main .page-numbers{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 12px;
  border:1px solid var(--ns-line); border-radius:999px;
  color:var(--ns-ink); text-decoration:none; font-size:14px; font-weight:700;
}
.ns-main .page-numbers.current{ background:var(--ns-ink); color:#fff; border-color:var(--ns-ink); }
.ns-main .page-numbers:hover{ border-color:var(--ns-ink); }

/* ---- 会員限定 ---- */
.ns-locked-intro{ position:relative; }
.ns-locked-intro::after{
  content:""; display:block; height:80px; margin-top:-80px;
  background:linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 90%);
  position:relative; pointer-events:none;
}

/* ---- 会員登録フォーム ---- */
.ns-signup{
  border:1px solid var(--ns-line); border-radius:12px;
  padding:26px 24px; margin:28px 0; background:#fff;
}
.ns-signup--gate{ border-color:var(--ns-ink); box-shadow:0 6px 24px rgba(0,0,0,.06); }
.ns-signup__title{ font-size:18px; font-weight:800; margin:0 0 8px; }
.ns-signup__desc{ font-size:13.5px; color:var(--ns-sub); margin:0 0 18px; line-height:1.75; }
.ns-signup__error{
  background:#ffeceb; color:#a5261c; border-radius:6px;
  padding:10px 12px; font-size:13px; font-weight:700; margin:0 0 14px;
}
.ns-field{ display:block; margin-bottom:14px; }
.ns-field span{ display:block; font-size:12.5px; font-weight:700; margin-bottom:6px; }
.ns-field input{
  width:100%; padding:12px 13px; font-size:15px;
  border:1px solid #d5d5d5; border-radius:8px; background:#fff;
  font-family:inherit; outline:none; transition:border-color .15s ease, box-shadow .15s ease;
}
.ns-field input:focus{ border-color:var(--ns-accent); box-shadow:0 0 0 3px rgba(44,182,150,.16); }
.ns-signup__button{
  width:100%; padding:13px; font-size:15px; font-weight:800; color:#fff;
  background:var(--ns-ink); border:0; border-radius:999px; cursor:pointer;
  font-family:inherit; transition:opacity .15s ease, transform .12s ease;
}
.ns-signup__button:hover{ opacity:.85; transform:translateY(-1px); }
.ns-signup__login{ font-size:13px; color:var(--ns-sub); margin:14px 0 0; text-align:center; }
.ns-signup__login a{ color:var(--ns-ink); font-weight:700; }
.ns-signup--done{ background:#f6fbf9; border-color:#cfe9e1; }
.ns-signup--done p{ margin:0; font-size:14px; font-weight:700; }
.ns-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* サムネイルが無い記事のプレースホルダー */
.ns-card__thumb.is-empty{
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#f5f7f6 0%,#e8efec 100%);
  border:1px solid var(--ns-line);
}
.ns-card__initial{
  font-size:30px; font-weight:900; color:#b9c6c1; line-height:1;
  user-select:none;
}
@media(max-width:600px){ .ns-card__initial{ font-size:22px; } }

/* ---- フッター（NoteStyle）---- */
/* 記事が少ない時でも黒帯が画面下に張り付くよう、全体を縦方向のフレックスにする */
html{ height:100%; }
body{ min-height:100%; display:flex; flex-direction:column; }
.ns-main{ flex:1 0 auto; }
.ns-footer{ flex-shrink:0; }

.ns-footer{
  background:#2b2f33; color:rgba(255,255,255,.72);
  padding:30px 20px; margin-top:50px; text-align:center;
}
.ns-footer__inner{ max-width:var(--ns-max); margin:0 auto; }
.ns-footer__nav{
  list-style:none; margin:0 0 14px; padding:0;
  display:flex; justify-content:center; flex-wrap:wrap; gap:8px 22px;
}
.ns-footer__nav a{
  color:rgba(255,255,255,.8); text-decoration:none; font-size:13.5px; font-weight:600;
}
.ns-footer__nav a:hover{ color:#fff; text-decoration:underline; }
.ns-footer__copy{ margin:0; font-size:12.5px; color:rgba(255,255,255,.55); }

@media(max-width:600px){
  .ns-footer{ padding:24px 16px; margin-top:36px; }
  .ns-footer__nav{ gap:6px 16px; margin-bottom:12px; }
}

/* 保存できた時の表示 */
.ns-signup__ok{
  background:#e8f7f0; color:#0b5f43; border-radius:6px;
  padding:10px 12px; font-size:13px; font-weight:700; margin:0 0 14px;
}

/* チェックボックス付きの項目 */
.ns-field--check{ display:flex; align-items:flex-start; gap:9px; }
.ns-field--check input{ width:auto; margin-top:3px; }
.ns-field--check span{ font-weight:600; font-size:13.5px; margin:0; }

/* ---- 目次（NoteStyle）---- */
.ns-toc{
  margin:34px 0; border:1px solid var(--ns-line); border-radius:12px;
  background:#fbfbfa; overflow:hidden;
}
.ns-toc__head{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  background:none; border:0; padding:15px 18px; cursor:pointer;
  font-family:inherit; text-align:left;
}
.ns-toc__label{
  font-size:13px; font-weight:900; letter-spacing:.14em; color:var(--ns-ink);
  display:flex; align-items:center; gap:9px;
}
.ns-toc__label::before{
  content:""; width:4px; height:15px; background:var(--ns-accent); border-radius:2px;
}
.ns-toc__toggle{
  width:9px; height:9px; border-right:2px solid var(--ns-sub); border-bottom:2px solid var(--ns-sub);
  transform:rotate(45deg); transition:transform .2s ease; margin-top:-4px;
}
.ns-toc__head[aria-expanded="false"] .ns-toc__toggle{ transform:rotate(-135deg); margin-top:3px; }

.ns-toc__list{ list-style:none; margin:0; padding:0 18px 16px; }
.ns-toc__item a{
  display:flex; gap:12px; align-items:baseline;
  padding:8px 0; text-decoration:none; color:var(--ns-ink);
  border-bottom:1px dashed var(--grid, #ececec);
}
.ns-toc__item:last-child a{ border-bottom:0; }
.ns-toc__item a:hover .ns-toc__text{ color:var(--ns-accent); text-decoration:underline; }
.ns-toc__num{
  font-size:11px; font-weight:900; color:var(--ns-accent);
  letter-spacing:.06em; flex-shrink:0; min-width:20px;
}
.ns-toc__text{ font-size:14px; font-weight:700; line-height:1.6; transition:color .15s ease; }
.ns-toc__item--h3{ padding-left:22px; }
.ns-toc__item--h3 .ns-toc__num{ opacity:.55; font-weight:700; }
.ns-toc__item--h3 .ns-toc__text{ font-size:13px; font-weight:600; color:#4a545c; }

/* 見出しに飛んだ時、固定ヘッダーの下に隠れないようにする */
.ns-main h2, .ns-main h3{ scroll-margin-top:78px; }

@media(max-width:600px){
  .ns-toc{ margin:26px 0; }
  .ns-toc__head{ padding:13px 15px; }
  .ns-toc__list{ padding:0 15px 14px; }
  .ns-toc__text{ font-size:13.5px; }
}

/* 元テーマのリスト装飾が目次に効いてしまうので打ち消す */
.ns-toc .ns-toc__list{ list-style:none !important; counter-reset:none !important; background:none !important; padding-left:18px; }
.ns-toc .ns-toc__list li{ background:none !important; margin:0 !important; padding-left:0 !important; }
.ns-toc .ns-toc__list li::before,
.ns-toc .ns-toc__list li::marker{ content:none !important; display:none !important; background:none !important; }
.ns-toc a{ color:var(--ns-ink) !important; text-decoration:none !important; background:none !important; }
.ns-toc a:hover .ns-toc__text{ color:var(--ns-accent) !important; text-decoration:underline !important; }
.ns-toc .ns-toc__num{ color:var(--ns-accent) !important; }

/* ---- 記事の見出し（NoteStyle）---- */
/* 元テーマの青いグラデ帯を打ち消して、文字で読ませる形にする */
.entry-content h2,
.entry-content h3,
.entry-content h4{
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  color:var(--ns-ink) !important;
}
/* 見出しの装飾（リボン・チェック等）はカスタマイザーの設定に任せる */

/* 見出しの色・枠線・背景はカスタマイザーの「見出し設定」に任せる。
   ここでは太さと字間だけ整える */
.entry-content h2{ font-weight:900; letter-spacing:.01em; }
.entry-content h3{ font-weight:800; }
.entry-content h4{ font-weight:800; }

/* 本文まわりの読みやすさ */
.entry-content p{ line-height:2; margin:0 0 1.6em; }   /* 文字サイズはカスタマイザーの設定に任せる */
.entry-content a{ color:var(--ns-accent); text-decoration:underline; text-underline-offset:3px; }
.entry-content img{ border-radius:8px; }
.entry-content ul, .entry-content ol{ line-height:1.95; margin:0 0 1.6em; padding-left:1.4em; }
.entry-content blockquote{
  margin:28px 0; padding:14px 18px; border-left:4px solid var(--ns-line);
  background:#fafafa; color:#4a545c; font-size:15px;
}

@media(max-width:600px){
  .entry-content p{ line-height:1.95; }
}

/* ---- 記事ページを1カラムにする（NoteStyle）---- */
/* 元テーマは「本文＋サイドバー」の2カラム。720pxの枠に押し込むと本文が潰れるため、
   サイドバーを出さず、本文を枠いっぱいに広げる。
   ★消すのはサイドバーの中だけ。記事上部・記事下部などのウィジェットは
     同じ .widget-area というクラスを使っているので、巻き込んで消さないこと */
.ns-main .sidebar,
.ns-main aside.sidebar,
.ns-main #secondary,
.ns-main .sidebar .widget-area,
.ns-main aside.sidebar .widget-area,
.ns-main #secondary .widget-area{ display:none !important; }

/* 記事の中に置くウィジェットは出す */
.ns-main .widget-single-top-area,
.ns-main .widget-single-bottom-area,
.ns-main .widget-single-top-area .widget-area,
.ns-main .widget-single-bottom-area .widget-area{ display:block !important; }

.ns-main .content-area,
.ns-main .site-content,
.ns-main .content-wrapper,
.ns-main .main-content{
  display:block !important;
  grid-template-columns:none !important;
  width:100% !important;
  max-width:100% !important;
  float:none !important;
  margin:0 !important;
  gap:0 !important;
}
.ns-main article,
.ns-main .entry-content,
.ns-main .post-content{
  width:100% !important;
  max-width:100% !important;
  float:none !important;
}

/* 記事タイトル */
.ns-main .entry-title,
.ns-main h1.entry-title{
  background:none !important; border:0 !important; box-shadow:none !important;
  font-size:28px !important; font-weight:900 !important; line-height:1.5 !important;
  padding:0 !important; margin:0 0 14px !important; color:var(--ns-ink) !important;
}
.ns-main .entry-title::before,
.ns-main .entry-title::after{ content:none !important; display:none !important; }

@media(max-width:600px){
  .ns-main .entry-title, .ns-main h1.entry-title{ font-size:22px !important; }
}

/* ---- 見出し ----
   黒塗り・白文字はCSSで固定せず、カスタマイザーの
   「見出し設定」→ H2/H3デザイン・背景色・文字色 で設定してある。
   ここでCSSを固定すると社長が管理画面から変更できなくなるため、
   余白と行間だけを整える（色・デザインには触らない）。 */
html body .entry-content h2{
  margin:56px 0 20px;
  line-height:1.6;
}
html body .entry-content h3{
  margin:40px 0 16px;
  line-height:1.6;
}
html body .entry-content h4{
  margin:30px 0 12px;
}

@media(max-width:600px){
  html body .entry-content h2{ margin:42px 0 16px; }
  html body .entry-content h3{ margin:32px 0 14px; }
}

/* iPhoneは16px未満の入力欄をタップすると画面が勝手に拡大するので、16pxを下回らせない */
.ns-field input,
.ns-signup__form input,
.ns-header input,
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], textarea{
  font-size:16px !important;
}

/* ---- メニューが増えた時：2行にせず横スクロールさせる ---- */
.ns-nav{
  min-width:0;                 /* 縮められるようにする */
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;        /* スクロールバーは出さない */
  mask-image:linear-gradient(to right, #000 calc(100% - 24px), transparent);
}
.ns-nav::-webkit-scrollbar{ display:none; }
.ns-nav__list{
  flex-wrap:nowrap;            /* 折り返さない */
  white-space:nowrap;
  width:max-content;
}
.ns-nav__list a{ white-space:nowrap; }

/* ---- 横スクロールできることを分かるように見せる ---- */
.ns-navwrap{ position:relative; min-width:0; flex:1; display:flex; }
.ns-navwrap .ns-nav{ mask-image:none; }

/* 右端・左端のぼかし（続きがある側だけ出る） */
.ns-navwrap::after,
.ns-navwrap::before{
  content:""; position:absolute; top:0; bottom:0; width:46px;
  pointer-events:none; opacity:0; transition:opacity .2s ease; z-index:2;
}
.ns-navwrap::after{
  right:0;
  background:linear-gradient(to left, #fff 30%, rgba(255,255,255,0));
}
.ns-navwrap::before{
  left:0;
  background:linear-gradient(to right, #fff 30%, rgba(255,255,255,0));
}
.ns-navwrap.can-right::after{ opacity:1; }
.ns-navwrap.can-left::before{ opacity:1; }

/* 「まだ続きがあるよ」の矢印 */
.ns-navwrap__arrow{
  position:absolute; top:50%; right:4px; transform:translateY(-50%);
  width:24px; height:24px; border-radius:50%;
  background:var(--ns-ink); color:#fff; border:0; cursor:pointer;
  display:none; align-items:center; justify-content:center;
  font-size:11px; line-height:1; z-index:3; padding:0;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  animation:ns-nudge 1.6s ease-in-out infinite;
}
.ns-navwrap.can-right .ns-navwrap__arrow{ display:flex; }
@keyframes ns-nudge{
  0%,100%{ transform:translateY(-50%) translateX(0); }
  50%{ transform:translateY(-50%) translateX(3px); }
}

/* ---- 全記事一覧（サイトマップ）---- */
.ns-sitemap__group{ margin:0 0 42px; }
html body .ns-sitemap__cat{
  background:var(--ns-ink) !important; color:#fff !important;
  border:0 !important; border-radius:6px !important;
  padding:12px 16px !important; margin:0 0 14px !important;
  font-size:17px !important; font-weight:900 !important;
  display:flex !important; align-items:center; gap:10px;
}
.ns-sitemap__cat a{ color:#fff !important; text-decoration:none !important; }
.ns-sitemap__cat a:hover{ text-decoration:underline !important; }
.ns-sitemap__count{
  font-size:11.5px; font-weight:700; background:rgba(255,255,255,.18);
  padding:3px 9px; border-radius:999px;
}
.ns-sitemap__list{ list-style:none !important; margin:0 !important; padding:0 !important; }
.ns-sitemap__item{ border-bottom:1px solid var(--ns-line); }
.ns-sitemap__item:last-child{ border-bottom:0; }
.ns-sitemap__item a{
  display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
  padding:11px 4px; text-decoration:none !important; color:var(--ns-ink) !important;
}
.ns-sitemap__item a:hover{ background:#fafafa; }
.ns-sitemap__item a:hover .ns-sitemap__title{ color:var(--ns-accent) !important; text-decoration:underline; }
.ns-sitemap__date{ font-size:12px; color:var(--ns-sub); flex-shrink:0; font-variant-numeric:tabular-nums; }
.ns-sitemap__title{ font-size:14.5px; font-weight:700; line-height:1.6; flex:1; min-width:0; }

@media(max-width:600px){
  html body .ns-sitemap__cat{ font-size:15px !important; padding:10px 13px !important; }
  .ns-sitemap__item a{ gap:4px 10px; padding:10px 2px; }
  .ns-sitemap__title{ font-size:13.5px; width:100%; }
}

/* 今いるカテゴリを目立たせる */
.ns-nav__list li.is-current a{ border-bottom-color:var(--ns-ink); color:var(--ns-ink); }

/* ---- 一覧サムネの比率を画像に合わせる（文字が切れるのを防ぐ）---- */
/* サムネは16:9で作られているので、枠も16:9にする。
   4:3の枠に入れると object-fit:cover が左右を削り、文字が欠ける */
html body .ns-card .ns-card__thumb{
  width:168px !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:16/9 !important;
}
html body .ns-card .ns-card__thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
@media(max-width:600px){
  html body .ns-card .ns-card__thumb{ width:120px !important; }
}

/* ---- 文字装飾（なぞって適用するツール用）----
   新しい通販テーマ(avspa正本)から移植。
   エディタのツールバーで文字を選んで適用する装飾に対応する */

/* 立体テキスト */
.tuuhan-text-3d {
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2), 2px 2px 0 rgba(0,0,0,0.15), 3px 3px 0 rgba(0,0,0,0.1), 4px 4px 6px rgba(0,0,0,0.1);
}
/* エンボス */
.tuuhan-text-emboss {
    text-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 -1px 1px rgba(0,0,0,0.3);
    color: #555 !important;
}
/* 打ち消し線2本 */
.tuuhan-text-double-strike {
    text-decoration: line-through double #e74c3c;
    text-decoration-thickness: 2px;
}
/* ネオングロー */
.tuuhan-text-neon {
    color: #00ffff !important;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00cccc, 0 0 40px #009999;
}
/* グラデーション文字 */
.tuuhan-text-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* 文字縁取り */
.tuuhan-text-outline {
    -webkit-text-stroke: 1.5px currentColor;
    color: transparent !important;
    paint-order: stroke fill;
}
/* 波線下線 */
.tuuhan-text-wavy {
    text-decoration: underline wavy #3498db;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
/* シャドウ */
.tuuhan-text-shadow {
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

/* ---- FAQブロック（NoteStyle・折りたたみなし）----
   QもAも最初から見える。クリックで開く動きは持たせない */
.ns-faq{ margin:34px 0; }

.ns-faq__item{
  border:1px solid var(--ns-line, #e6e6e6);
  border-radius:12px;
  padding:0;
  margin:0 0 14px;
  background:#fff;
  overflow:hidden;
}
.ns-faq__item:last-child{ margin-bottom:0; }

.ns-faq__q,
.ns-faq__a{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:16px 18px;
}
.ns-faq__q{
  background:#f7f8f8;
  border-bottom:1px solid var(--ns-line, #e6e6e6);
  font-weight:800;
  line-height:1.7;
}
.ns-faq__a{
  line-height:1.9;
  color:#3d474f;
}

/* Q / A の丸いマーク */
.ns-faq__mark{
  flex-shrink:0;
  width:26px; height:26px;
  border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:900; line-height:1;
  font-family:system-ui, sans-serif;
  margin-top:1px;
}
.ns-faq__mark--q{ background:var(--ns-ink, #242424); color:#fff; }
.ns-faq__mark--a{ background:var(--ns-accent, #2cb696); color:#fff; }

.ns-faq__text{ flex:1; min-width:0; }
.ns-faq__a .ns-faq__text > p:first-child{ margin-top:0; }
.ns-faq__a .ns-faq__text > p:last-child{ margin-bottom:0; }

@media(max-width:600px){
  .ns-faq{ margin:26px 0; }
  .ns-faq__q, .ns-faq__a{ padding:14px 14px; gap:10px; }
  .ns-faq__mark{ width:23px; height:23px; font-size:12px; }
}

/* 旧テーマのFAQが残っている記事でも、折りたたみを開いた状態にする */
.tuuhan-block-faq details,
.swell-block-faq details,
.entry-content .wp-block-details{ }
.tuuhan-block-faq details > summary::-webkit-details-marker{ display:none; }

/* ---- 一覧サムネの比率を16:9で統一（文字が切れるのを防ぐ）----
   サムネは16:9で作っているので、枠も16:9に揃える。
   4:3や正方形の枠に入れると object-fit:cover が周囲を削って文字が欠ける。
   トップページ(.ns-card)と同じ扱いを、関連記事・アーカイブ・サイドバーにも適用する */

/* 記事下の関連記事 */
html body .related-post-thumb{
  position:relative !important;
  width:100% !important;
  height:auto !important;
  padding-top:0 !important;
  aspect-ratio:16/9 !important;
  overflow:hidden;
}
html body .related-post-thumb img{
  position:static !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

/* カテゴリ・月別などの一覧 */
html body .post-card-image{
  aspect-ratio:16/9 !important;
  overflow:hidden;
}
html body .post-card-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

/* サイドバーの人気記事・最新記事 */
html body .widget .post-thumb,
html body .widget .popular-post-thumb,
html body .widget .recent-post-thumb{
  aspect-ratio:16/9 !important;
  height:auto !important;
  overflow:hidden;
}
html body .widget .post-thumb img,
html body .widget .popular-post-thumb img,
html body .widget .recent-post-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

/* 前後の記事ナビのサムネも16:9に揃える */
html body .post-nav-thumb{
  width:120px !important;
  height:auto !important;
  aspect-ratio:16/9 !important;
  overflow:hidden;
  flex:0 0 120px;
}
html body .post-nav-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

/* ---- FAQパターン（折りたたみなし・段落で編集できる形）----
   ブロック版(ns_render_faq_block)はQ/Aの丸をspanで出すが、
   パターン版は編集しやすいように素の段落で作る。丸は::beforeで描く */
html body .ns-faq > .ns-faq__item{ margin-bottom:14px; }
html body p.ns-faq__q,
html body p.ns-faq__a{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0;
  padding:16px 18px;
  line-height:1.9;
}
html body p.ns-faq__q{
  background:#f6f7f8;
  border-radius:8px 8px 0 0;
  font-weight:700;
}
html body p.ns-faq__a{
  background:#fff;
  border-radius:0 0 8px 8px;
}
html body p.ns-faq__q::before,
html body p.ns-faq__a::before{
  flex:0 0 auto;
  width:26px;
  height:26px;
  line-height:26px;
  border-radius:50%;
  text-align:center;
  font-size:13px;
  font-weight:700;
  color:#fff;
}
html body p.ns-faq__q::before{ content:"Q"; background:var(--ns-ink, #242424); }
html body p.ns-faq__a::before{ content:"A"; background:var(--ns-accent, #2cb696); }
@media(max-width:600px){
  html body p.ns-faq__q,
  html body p.ns-faq__a{ padding:14px; gap:10px; }
  html body p.ns-faq__q::before,
  html body p.ns-faq__a::before{ width:23px; height:23px; line-height:23px; font-size:12px; }
}

/* 前後記事ナビ: 親がflexで縦に引き伸ばすので、自分の高さを固定する */
html body .post-nav-thumb{
  align-self:flex-start !important;
  min-width:120px !important;
  height:68px !important;
  aspect-ratio:auto !important;
}
@media (max-width:480px){
  html body .post-nav-thumb{
    width:90px !important;
    min-width:90px !important;
    height:51px !important;
  }
}

/* ---- 一覧カード：下線はタイトルだけ ----
   カード全体を1つのリンクにしているため、テーマの「リンクに下線」指定が
   カテゴリ・日付・抜粋にも効いてしまう。タイトル以外は下線を出さない */
html body .ns-card__link,
html body .ns-card__link:hover,
html body .ns-card__link:focus,
html body .ns-card__link *,
html body .ns-card__link:hover *{
  text-decoration:none !important;
}
html body .ns-card__link:hover .ns-card__title{
  text-decoration:underline !important;
  text-underline-offset:3px;
}

/* ---- この記事を書いた人 ----
   noteと同じ構成。冒頭は「アイコン＋名前＋日時」の1行、末尾は紹介文つき */

.ns-byline{
  display:flex; align-items:center; gap:12px;
  margin:18px 0 6px;
}
.ns-byline__avatar{
  width:44px; height:44px; border-radius:50%;
  object-fit:cover; flex:0 0 44px; background:#eee;
}
.ns-byline__body{ min-width:0; }
.ns-byline__name{
  margin:0; font-size:14px; font-weight:700; color:var(--ns-ink, #242424);
  line-height:1.5;
}
.ns-byline__date{
  margin:2px 0 0; font-size:12px; color:#8c8f94; line-height:1.5;
}
.ns-byline__updated{ margin-left:4px; }

.ns-authorbox{
  margin:56px 0 8px;
  padding:22px;
  border:1px solid var(--ns-line, #e6e6e6);
  border-radius:10px;
  background:#fff;
}
.ns-authorbox__label{
  margin:0 0 16px; font-size:12px; font-weight:700;
  letter-spacing:.08em; color:#8c8f94;
}
.ns-authorbox__inner{ display:flex; gap:18px; align-items:flex-start; }
.ns-authorbox__avatar{
  width:80px; height:80px; border-radius:50%;
  object-fit:cover; flex:0 0 80px; background:#eee;
}
.ns-authorbox__body{ min-width:0; flex:1; }
.ns-authorbox__name{
  margin:0 0 8px; font-size:17px; font-weight:700; color:var(--ns-ink, #242424);
}
.ns-authorbox__bio{
  margin:0 0 12px; font-size:14px; line-height:1.9; color:#4a545c;
}
.ns-authorbox__links{ margin:0; font-size:13px; }
.ns-authorbox__links a{
  display:inline-block; margin-right:14px;
  color:var(--ns-accent, #2cb696); text-decoration:none;
}
.ns-authorbox__links a:hover{ text-decoration:underline; }

@media(max-width:600px){
  .ns-authorbox{ padding:18px 16px; margin-top:40px; }
  .ns-authorbox__inner{ gap:14px; }
  .ns-authorbox__avatar{ width:60px; height:60px; flex:0 0 60px; }
}

/* ---- プロフィールブロック（ボタン・アイコン・色）---- */
.ns-authorbox.is-block .ns-authorbox__avatar{ border-radius:50%; }
.ns-authorbox.is-block.is-square .ns-authorbox__avatar{ border-radius:8px; }
.ns-authorbox.is-block .ns-authorbox__name,
.ns-authorbox.is-block .ns-authorbox__bio{ color:inherit; }
.ns-authorbox.is-block .ns-authorbox__label{ color:inherit; opacity:.6; }

.ns-authorbox__links{ display:flex; flex-wrap:wrap; gap:10px; }
.ns-authorbox__btn{
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 16px; border-radius:999px;
  border:1px solid currentColor;
  font-size:13px; font-weight:700; line-height:1;
  text-decoration:none !important; color:inherit;
}
.ns-authorbox__btn:hover{ opacity:.75; }
.ns-authorbox__btn svg{ flex:0 0 auto; }

/* SNSの色は本物に寄せる */
.ns-authorbox__btn.ns-ico--line{ background:#06c755; border-color:#06c755; color:#fff !important; }
.ns-authorbox__btn.ns-ico--x{ background:#000; border-color:#000; color:#fff !important; }
.ns-authorbox__btn.ns-ico--youtube{ background:#ff0000; border-color:#ff0000; color:#fff !important; }
.ns-authorbox__btn.ns-ico--instagram{
  background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  border-color:transparent; color:#fff !important;
}
.ns-authorbox__btn.ns-ico--mail{ background:#4a545c; border-color:#4a545c; color:#fff !important; }
.ns-authorbox__btn.ns-ico--note{ background:#41c9b4; border-color:#41c9b4; color:#fff !important; }

/* ---- 2段目：カテゴリ帯 ----
   1段目＝サイト名とメニュー（固定ページ）、2段目＝カテゴリ。
   数が増えたら横スクロール。続きがあると右に矢印とぼかしが出る */
.ns-catbar{
  border-bottom:1px solid var(--ns-line, #e6e6e6);
  background:#fff;
}
.ns-catbar__inner{
  position:relative;
  max-width:1080px;
  margin:0 auto;
  padding:0 20px;
}
.ns-catbar__nav{
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.ns-catbar__nav::-webkit-scrollbar{ display:none; }
.ns-catbar__list{
  display:flex;
  gap:20px;
  margin:0;
  padding:0;
  list-style:none;
  white-space:nowrap;
}
.ns-catbar__list li{ flex:0 0 auto; }
.ns-catbar__list a{
  display:block;
  padding:11px 2px;
  font-size:13.5px;
  color:#5b6670;
  text-decoration:none;
  border-bottom:2px solid transparent;
}
.ns-catbar__list a:hover{ color:var(--ns-ink, #242424); }
.ns-catbar__list li.is-current a{
  color:var(--ns-ink, #242424);
  font-weight:700;
  border-bottom-color:var(--ns-ink, #242424);
}

.ns-catbar__arrow{
  display:none;
  position:absolute;
  top:0; right:0; bottom:0;
  width:46px;
  align-items:center;
  justify-content:flex-end;
  padding-right:8px;
  border:0;
  cursor:pointer;
  font-size:12px;
  color:#5b6670;
  background:linear-gradient(to right, rgba(255,255,255,0), #fff 55%);
}
.ns-catbar__inner.can-right .ns-catbar__arrow{ display:flex; }

@media(max-width:600px){
  .ns-catbar__inner{ padding:0 16px; }
  .ns-catbar__list{ gap:16px; }
  .ns-catbar__list a{ font-size:13px; padding:10px 2px; }
}

/* ---- カテゴリの記事一覧ブロック ---- */
.ns-catposts{ margin:40px 0; }
.ns-catposts__head{
  margin:0 0 16px; font-size:15px; font-weight:700;
  color:var(--ns-ink, #242424);
  padding-bottom:10px; border-bottom:2px solid var(--ns-ink, #242424);
}
.ns-catposts__list{ list-style:none; margin:0; padding:0; }

/* 横並びリスト */
.ns-catposts.is-list .ns-catposts__item{ border-bottom:1px solid var(--ns-line, #e6e6e6); }
.ns-catposts.is-list .ns-catposts__item:last-child{ border-bottom:0; }
.ns-catposts.is-list .ns-catposts__link{
  display:flex; align-items:flex-start; gap:14px;
  padding:14px 2px; text-decoration:none !important; color:inherit;
}
.ns-catposts.is-list .ns-catposts__link:hover{ background:#fafafa; }
.ns-catposts.is-list .ns-catposts__thumb{
  flex:0 0 120px; width:120px; aspect-ratio:16/9;
  overflow:hidden; border-radius:6px; background:#f0f0f0; display:block;
}
.ns-catposts.is-list .ns-catposts__thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.ns-catposts.is-list .ns-catposts__body{ flex:1; min-width:0; }

/* カード2列 */
.ns-catposts.is-card .ns-catposts__list{
  display:grid; grid-template-columns:1fr 1fr; gap:18px;
}
.ns-catposts.is-card .ns-catposts__link{
  display:block; text-decoration:none !important; color:inherit;
  border:1px solid var(--ns-line, #e6e6e6); border-radius:10px; overflow:hidden;
}
.ns-catposts.is-card .ns-catposts__link:hover{ background:#fafafa; }
.ns-catposts.is-card .ns-catposts__thumb{
  display:block; width:100%; aspect-ratio:16/9; overflow:hidden; background:#f0f0f0;
}
.ns-catposts.is-card .ns-catposts__thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.ns-catposts.is-card .ns-catposts__body{ display:block; padding:12px 14px 14px; }

/* 共通 */
.ns-catposts__title{
  display:block; font-size:15px; font-weight:700; line-height:1.6;
  color:var(--ns-ink, #242424);
}
.ns-catposts__excerpt{
  display:block; margin-top:6px; font-size:13px; line-height:1.8; color:#5b6670;
}
.ns-catposts__date{
  display:block; margin-top:8px; font-size:12px; color:#8c8f94;
}
.ns-catposts__noimg{ display:block; width:100%; height:100%; background:#f0f0f0; }

@media(max-width:600px){
  .ns-catposts.is-card .ns-catposts__list{ grid-template-columns:1fr; gap:14px; }
  .ns-catposts.is-list .ns-catposts__thumb{ flex:0 0 96px; width:96px; }
  .ns-catposts__title{ font-size:14px; }
}

/* ---- LPの見出しは端まで届かせる ----
   LPは「見出しの帯を左右いっぱいに広げる」設計で、
   margin を負の値にして内側余白のぶんだけはみ出させている。
   ところが .entry-content *{max-width:100%} がそれを止めてしまい、
   帯が両端に届かず切れて見えていた。見出しだけ上限を外す */
.lp-style-border .lp-post-content > h2,
.lp-style-shadow .lp-post-content > h2,
.lp-style-shadow-deep .lp-post-content > h2,
.lp-style-border .lp-post-content > h3,
.lp-style-shadow .lp-post-content > h3,
.lp-style-shadow-deep .lp-post-content > h3{
  max-width:none !important;
}

/* ---- チェックリスト：緑の帯と左ラインをやめる ----
   ※このテーマ(NoteStyle)では、スタイル「チェック」を選んでも
     背景色や左の線を勝手に付けない。背景はブロック側で自由に決める ----
   薄い緑の背景＋左の濃い線は使わない。
   印は黒い四角の中に赤いチェックを入れる */
html body .wp-block-list.is-style-check,
html body .wp-block-list.is-style-check:not(.has-background),
html body .wp-block-list.is-style-check.has-background{
  background:none !important;
  border-left:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  list-style:none !important;
}
html body .wp-block-list.is-style-check li{
  position:relative;
  padding-left:38px !important;
  margin-bottom:14px;
  line-height:1.9;
}
html body .wp-block-list.is-style-check li:last-child{ margin-bottom:0; }

html body .wp-block-list.is-style-check li::before{
  content:"\2713";
  position:absolute;
  left:0;
  top:0.25em;
  width:24px;
  height:24px;
  line-height:24px;
  text-align:center;
  background:#1a1a1a !important;
  color:#e0322d !important;
  border-radius:4px;
  font-size:15px;
  font-weight:900;
}

/* 黒背景で使っている場合も同じ見た目に揃える */
html body .wp-block-list.is-style-check.has-black-background-color{
  background:#000 !important;
  border-left:0 !important;
  padding:18px 18px 18px 20px !important;
  border-radius:6px !important;
}
html body .wp-block-list.is-style-check.has-black-background-color li{ color:#fff !important; }
html body .wp-block-list.is-style-check.has-black-background-color li::before{
  background:#fff !important;
  color:#e0322d !important;
}

/* ---- LPの見出しを枠いっぱいに伸ばす ----
   ・親(.lp-post-content)が overflow:hidden で、はみ出した帯を切り落としていた
   ・はみ出し量が実際の余白(20px)と合っていなかった
   この2つで帯の両側に白いすき間ができていた */
html body .lp-post-content{ overflow:visible !important; }

/* 余白は画面幅で変わるので、実際の値をその場で使う。
   固定の20pxにすると、広い画面ですき間が残る */
html body .lp-style-border .lp-post-content > h2,
html body .lp-style-shadow .lp-post-content > h2,
html body .lp-style-shadow-deep .lp-post-content > h2,
html body .lp-post-content > h2{
  --ns-bleed: 20px;
  width:calc(100% + (var(--ns-bleed) * 2)) !important;
  max-width:none !important;
  margin-left:calc(var(--ns-bleed) * -1) !important;
  margin-right:calc(var(--ns-bleed) * -1) !important;
}


/* ---- チェック: 背景・枠線の強制を完全に解除（最終指定）---- */
html body .entry-content .wp-block-list.is-style-check,
html body .entry-content .wp-block-list.is-style-check:not(.has-background),
html body .entry-content .wp-block-list.is-style-check.has-background,
html body .lp-post-content .wp-block-list.is-style-check,
html body .lp-post-content .wp-block-list.is-style-check:not(.has-background),
html body .lp-post-content .wp-block-list.is-style-check.has-background,
html body .post_content .wp-block-list.is-style-check:not(.has-background){
  background:none !important;
  border:0 !important;
  border-left:0 !important;
  border-radius:0 !important;
  padding:0 !important;
  list-style:none !important;
}

/* 背景色をブロック側で選んだ時だけ、その色を活かして余白を戻す */
html body .wp-block-list.is-style-check.has-background{
  padding:18px 20px !important;
  border-radius:6px !important;
}

/* 印は黒い四角に赤いチェック（背景色を選んでも同じ） */
html body .entry-content .wp-block-list.is-style-check li::before,
html body .lp-post-content .wp-block-list.is-style-check li::before,
html body .post_content .wp-block-list.is-style-check li::before{
  content:"\2713";
  position:absolute;
  left:0;
  top:0.25em;
  width:24px;
  height:24px;
  line-height:24px;
  text-align:center;
  background:#1a1a1a !important;
  color:#e0322d !important;
  border-radius:4px;
  font-size:15px;
  font-weight:900;
}
html body .entry-content .wp-block-list.is-style-check li,
html body .lp-post-content .wp-block-list.is-style-check li,
html body .post_content .wp-block-list.is-style-check li{
  position:relative;
  padding-left:38px !important;
  margin-bottom:14px;
  line-height:1.9;
}

/* 印を正方形にする（::before は初期状態だと幅の指定が効かないため） */
html body .entry-content .wp-block-list.is-style-check li::before,
html body .lp-post-content .wp-block-list.is-style-check li::before,
html body .post_content .wp-block-list.is-style-check li::before{
  display:block !important;
  box-sizing:border-box !important;
}

/* 印の大きさを確定させる（別所の width:auto !important に勝たせる） */
html body .entry-content .wp-block-list.is-style-check li::before,
html body .lp-post-content .wp-block-list.is-style-check li::before,
html body .post_content .wp-block-list.is-style-check li::before{
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  line-height:24px !important;
  padding:0 !important;
  margin:0 !important;
}

/* チェックの印：白地・黒枠・赤いチェック */
html body .entry-content .wp-block-list.is-style-check li::before,
html body .lp-post-content .wp-block-list.is-style-check li::before,
html body .post_content .wp-block-list.is-style-check li::before{
  background:#ffffff !important;
  border:2px solid #1a1a1a !important;
  color:#e0322d !important;
  border-radius:3px !important;
  line-height:20px !important;
}

/* ---- FAQ：折りたたみをやめて、最初から全部見せる ----
   記事・LPに置かれた details（＋で開くやつ）は、Q も A も常に表示する。
   矢印や＋のマークも消す。中身を書き換える必要はない */
html body .entry-content details,
html body .lp-post-content details,
html body .post_content details{
  display:block !important;
  background:none !important;
  border:0 !important;
  border-bottom:1px solid var(--ns-line, #e6e6e6) !important;
  border-radius:0 !important;
  padding:0 0 14px !important;
  margin:0 0 14px !important;
}
html body .entry-content details > *:not(summary),
html body .lp-post-content details > *:not(summary),
html body .post_content details > *:not(summary){
  display:block !important;
}
html body .entry-content details > summary,
html body .lp-post-content details > summary,
html body .post_content details > summary{
  display:block !important;
  list-style:none !important;
  cursor:default !important;
  pointer-events:none !important;
  font-weight:700 !important;
  margin:0 0 8px !important;
  padding:0 !important;
  background:none !important;
}
/* ブラウザが出す三角・＋のマークを消す */
html body .entry-content details > summary::-webkit-details-marker,
html body .lp-post-content details > summary::-webkit-details-marker,
html body .post_content details > summary::-webkit-details-marker{
  display:none !important;
}
html body .entry-content details > summary::marker,
html body .lp-post-content details > summary::marker,
html body .post_content details > summary::marker{
  content:"" !important;
}
html body .entry-content details > summary::after,
html body .entry-content details > summary::before,
html body .lp-post-content details > summary::after,
html body .lp-post-content details > summary::before,
html body .post_content details > summary::after,
html body .post_content details > summary::before{
  content:none !important;
  display:none !important;
}

/* ---- FAQ（details）の見た目 ----
   本文に「Q.」「A.」と書かれているので、丸い記号は足さない。
   質問を薄いグレーの帯、答えを白地にして、境目をはっきりさせる */
html body .entry-content details,
html body .lp-post-content details,
html body .post_content details{
  border:1px solid var(--ns-line, #e6e6e6) !important;
  border-radius:8px !important;
  overflow:hidden !important;
  padding:0 !important;
  margin:0 0 12px !important;
  background:#fff !important;
}
html body .entry-content details:last-child,
html body .lp-post-content details:last-child,
html body .post_content details:last-child{ margin-bottom:0 !important; }

html body .entry-content details > summary,
html body .lp-post-content details > summary,
html body .post_content details > summary{
  background:#f6f7f8 !important;
  padding:15px 18px !important;
  margin:0 !important;
  font-weight:700 !important;
  line-height:1.7 !important;
  color:var(--ns-ink, #242424) !important;
  border-bottom:1px solid var(--ns-line, #e6e6e6) !important;
}
html body .entry-content details > *:not(summary),
html body .lp-post-content details > *:not(summary),
html body .post_content details > *:not(summary){
  padding:16px 18px !important;
  margin:0 !important;
  line-height:1.95 !important;
  color:#3d474f !important;
}
@media(max-width:600px){
  html body .entry-content details > summary,
  html body .lp-post-content details > summary,
  html body .post_content details > summary{ padding:13px 14px !important; }
  html body .entry-content details > *:not(summary),
  html body .lp-post-content details > *:not(summary),
  html body .post_content details > *:not(summary){ padding:14px !important; }
}

/* ---- LPの影を、名前どおりの強さにする ----
   「ディープシャドウ」が 4% の影を5段重ねるだけで、通常シャドウ(10%)より薄かった。
   線で囲む / シャドウ / ディープシャドウ の3段階で、見た目にはっきり差を付ける */
html body.lp-style-shadow .lp-content-inner{
  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.10) !important;
}
html body.lp-style-shadow-deep .lp-content-inner{
  box-shadow:
    0 2px 6px rgba(0,0,0,0.08),
    0 8px 20px rgba(0,0,0,0.12),
    0 20px 48px rgba(0,0,0,0.16),
    0 40px 90px rgba(0,0,0,0.18) !important;
}

/* ---- 価格ブロック（値下げ表示）---- */
.ns-price{
  display:flex;
  align-items:center;
  gap:28px;
  margin:36px 0;
  padding:28px;
  border:1px solid var(--ns-line, #e6e6e6);
  border-radius:12px;
}
.ns-price.is-stack{ flex-direction:column; gap:18px; }

.ns-price__image{ flex:0 0 240px; max-width:240px; }
.ns-price.is-stack .ns-price__image{ flex:0 0 auto; max-width:min(340px, 100%); }
.ns-price__image img{ width:100%; height:auto; display:block; border-radius:8px; }

.ns-price__body{ flex:1; min-width:0; text-align:center; }
.ns-price.is-side .ns-price__body{ text-align:left; }

.ns-price__label{
  margin:0 0 10px;
  display:inline-block;
  padding:5px 14px;
  border-radius:999px;
  background:var(--ns-price-accent, #e0322d);
  color:#fff;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
}

.ns-price__row{ margin:0; }

.ns-price__old{
  margin:0;
  color:#8c8f94;
  line-height:1.2;
  position:relative;
  display:inline-block;
}
.ns-price__old .ns-price__num{ font-size:30px; font-weight:700; letter-spacing:-.01em; }
.ns-price__old .ns-price__unit{ font-size:17px; font-weight:700; margin-left:2px; }
.ns-price__old::after{
  content:"";
  position:absolute;
  left:-2%; right:-2%; top:52%;
  height:3px;
  background:var(--ns-price-accent, #e0322d);
  transform:rotate(-6deg);
}

.ns-price__arrow{
  margin:6px 0;
  font-size:20px;
  line-height:1;
  color:var(--ns-price-accent, #e0322d);
}

.ns-price__new{ margin:0; line-height:1.05; color:var(--ns-price-accent, #e0322d); }
.ns-price__new .ns-price__num{
  font-size:64px;
  font-weight:900;
  letter-spacing:-.03em;
}
.ns-price__new .ns-price__unit{ font-size:26px; font-weight:900; margin-left:4px; }

.ns-price__note{ margin:14px 0 0; font-size:13px; color:#7b8794; line-height:1.8; }

.ns-price__action{ margin:18px 0 0; }
.ns-price__btn{
  display:inline-block;
  padding:15px 38px;
  border-radius:999px;
  background:var(--ns-price-accent, #e0322d);
  color:#fff !important;
  font-weight:700;
  font-size:16px;
  text-decoration:none !important;
}
.ns-price__btn:hover{ opacity:.85; }

@media(max-width:600px){
  .ns-price{ flex-direction:column; gap:18px; padding:22px 16px; }
  .ns-price__image{ flex:0 0 auto; max-width:min(300px, 100%); }
  .ns-price__body{ text-align:center; }
  .ns-price.is-side .ns-price__body{ text-align:center; }
  .ns-price__old .ns-price__num{ font-size:24px; }
  .ns-price__new .ns-price__num{ font-size:48px; }
  .ns-price__new .ns-price__unit{ font-size:20px; }
}

/* 価格ブロックのボタン：角丸をやめて四角く、大きくする */
html body .ns-price__action{ margin-top:24px !important; }
html body .ns-price__btn{
  display:block !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:24px 28px !important;
  border-radius:6px !important;
  font-size:22px !important;
  font-weight:900 !important;
  line-height:1.4 !important;
  letter-spacing:.02em !important;
  text-align:center !important;
  box-shadow:0 4px 0 rgba(0,0,0,0.18) !important;
}
html body .ns-price__btn:hover{
  transform:translateY(2px);
  box-shadow:0 2px 0 rgba(0,0,0,0.18) !important;
  opacity:1 !important;
}
@media(max-width:600px){
  html body .ns-price__btn{
    padding:20px 18px !important;
    font-size:18px !important;
  }
}

/* ---- 価格：元値 → 新価格 を横並びにする ----
   元値に二重の取り消し線、右向きの矢印、その右に新価格 */
html body .ns-price__row{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:wrap !important;
  gap:14px !important;
}
html body .ns-price.is-stack .ns-price__row,
html body .ns-price.is-side .ns-price__body{ }
html body .ns-price.is-stack .ns-price__row{ justify-content:center !important; }

/* 元値：二重線で消す */
html body .ns-price__old{
  margin:0 !important;
  position:relative !important;
  display:inline-block !important;
  line-height:1.2 !important;
  white-space:nowrap !important;
}
html body .ns-price__old::after{
  content:"" !important;
  position:absolute !important;
  left:-3% !important;
  right:-3% !important;
  top:46% !important;
  height:7px !important;
  transform:none !important;
  background:
    linear-gradient(to bottom,
      var(--ns-price-accent, #e0322d) 0 2px,
      transparent 2px 5px,
      var(--ns-price-accent, #e0322d) 5px 7px) !important;
}

html body .ns-price__arrow{
  margin:0 !important;
  font-size:26px !important;
  line-height:1 !important;
  color:var(--ns-price-accent, #e0322d) !important;
}

html body .ns-price__new{ margin:0 !important; white-space:nowrap !important; }

@media(max-width:600px){
  html body .ns-price__row{ justify-content:center !important; gap:10px !important; }
  html body .ns-price__arrow{ font-size:20px !important; }
}

/* ---- 価格の数字をロゴのように見せる ----
   本文と同じ書体だと弱いので、数字専用の書体に切り替える。
   縦に長く・字間を詰めて・斜体で、値札らしい見た目にする */
html body .ns-price__new .ns-price__num,
html body .ns-price__old .ns-price__num{
  font-family:"Arial Black","Helvetica Neue",Impact,"Hiragino Kaku Gothic ProN",sans-serif !important;
  font-style:italic !important;
  font-weight:900 !important;
  letter-spacing:-.045em !important;
  font-variant-numeric:lining-nums tabular-nums;
}
html body .ns-price__new .ns-price__unit,
html body .ns-price__old .ns-price__unit{
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",sans-serif !important;
  font-style:normal !important;
}

/* 新価格：一段と大きく、影で浮かせる */
html body .ns-price__new .ns-price__num{
  font-size:82px !important;
  line-height:.92 !important;
  display:inline-block;
  text-shadow:
    2px 2px 0 rgba(0,0,0,.10),
    4px 4px 0 rgba(0,0,0,.06) !important;
}
html body .ns-price__new .ns-price__unit{
  font-size:28px !important;
  font-weight:900 !important;
  margin-left:2px !important;
  vertical-align:.12em;
}

/* 元値：新価格より一回り小さく、灰色のまま */
html body .ns-price__old .ns-price__num{ font-size:36px !important; }
html body .ns-price__old .ns-price__unit{ font-size:18px !important; font-weight:700 !important; }

/* 上の一言も値札らしく角張らせる */
html body .ns-price__label{
  border-radius:3px !important;
  font-size:14px !important;
  letter-spacing:.08em !important;
  padding:6px 16px !important;
}

@media(max-width:600px){
  html body .ns-price__new .ns-price__num{ font-size:58px !important; }
  html body .ns-price__new .ns-price__unit{ font-size:22px !important; }
  html body .ns-price__old .ns-price__num{ font-size:28px !important; }
}

/* 文字装飾：普通の下線 */
html body .tuuhan-underline{
  text-decoration:underline !important;
  text-decoration-thickness:2px !important;
  text-underline-offset:4px !important;
}

/* ---- 価格ブロック：画像の大きさを選べるようにする ---- */
html body .ns-price.img-s .ns-price__image{ flex:0 0 240px !important; max-width:240px !important; }
html body .ns-price.img-m .ns-price__image{ flex:0 0 400px !important; max-width:400px !important; }
html body .ns-price.img-l .ns-price__image{ flex:0 0 640px !important; max-width:640px !important; }
html body .ns-price.img-full .ns-price__image{ flex:0 0 100% !important; max-width:100% !important; }

/* 画像を大きくする時は自動で縦積みにする（横に並べると数字が潰れるため） */
html body .ns-price.img-l,
html body .ns-price.img-full{
  flex-direction:column !important;
  gap:24px !important;
}
html body .ns-price.img-l .ns-price__body,
html body .ns-price.img-full .ns-price__body{ text-align:center !important; }
html body .ns-price.img-l .ns-price__row,
html body .ns-price.img-full .ns-price__row{ justify-content:center !important; }

/* 画面いっぱいの時は枠の余白も外して、本当に端まで見せる */
html body .ns-price.img-full{ padding:0 0 28px !important; border:0 !important; }
html body .ns-price.img-full .ns-price__image img{ border-radius:0 !important; }
html body .ns-price.img-full .ns-price__body{ padding:0 20px !important; }

/* 単位（￥）を数字の前に置いた時のバランス */
html body .ns-price__new .ns-price__unit:first-child{
  margin-left:0 !important;
  margin-right:4px !important;
}
html body .ns-price__old .ns-price__unit:first-child{
  margin-left:0 !important;
  margin-right:2px !important;
}

@media(max-width:600px){
  html body .ns-price.img-s .ns-price__image,
  html body .ns-price.img-m .ns-price__image,
  html body .ns-price.img-l .ns-price__image,
  html body .ns-price.img-full .ns-price__image{
    flex:0 0 100% !important; max-width:100% !important;
  }
}

/* ---- 価格の数字：グラデーションと影の強さ ---- */

/* グラデーション：文字の形で色を塗る */
html body .ns-price.num-gradient .ns-price__new .ns-price__num{
  background-image:linear-gradient(
    100deg,
    var(--ns-price-accent, #e0322d) 0%,
    var(--ns-price-accent2, #ff8a3d) 55%,
    var(--ns-price-accent, #e0322d) 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
  color:transparent !important;
}
/* グラデ時は文字自体の影が使えないので、数字を包む側に落とす */
html body .ns-price.num-gradient .ns-price__new{
  filter:drop-shadow(2px 3px 0 rgba(0,0,0,.14));
}
html body .ns-price.num-gradient .ns-price__new .ns-price__num{
  text-shadow:none !important;
}

/* 影の強さ（単色のとき） */
html body .ns-price.sh-none .ns-price__new .ns-price__num{ text-shadow:none !important; }
html body .ns-price.sh-soft .ns-price__new .ns-price__num{
  text-shadow:2px 2px 0 rgba(0,0,0,.10), 4px 4px 0 rgba(0,0,0,.06) !important;
}
html body .ns-price.sh-hard .ns-price__new .ns-price__num{
  text-shadow:4px 4px 0 rgba(0,0,0,.28) !important;
}
html body .ns-price.sh-deep .ns-price__new .ns-price__num{
  text-shadow:
    1px 1px 0 rgba(0,0,0,.22), 2px 2px 0 rgba(0,0,0,.20),
    3px 3px 0 rgba(0,0,0,.18), 4px 4px 0 rgba(0,0,0,.16),
    5px 5px 0 rgba(0,0,0,.14), 6px 6px 0 rgba(0,0,0,.12),
    8px 10px 14px rgba(0,0,0,.22) !important;
}
html body .ns-price.sh-glow .ns-price__new .ns-price__num{
  text-shadow:
    0 0 12px var(--ns-price-accent, #e0322d),
    0 0 30px var(--ns-price-accent, #e0322d),
    2px 3px 0 rgba(0,0,0,.18) !important;
}

/* 影の強さ（グラデーションのとき）は包む側で効かせる */
html body .ns-price.num-gradient.sh-none .ns-price__new{ filter:none; }
html body .ns-price.num-gradient.sh-soft .ns-price__new{
  filter:drop-shadow(2px 3px 0 rgba(0,0,0,.12));
}
html body .ns-price.num-gradient.sh-hard .ns-price__new{
  filter:drop-shadow(4px 4px 0 rgba(0,0,0,.28));
}
html body .ns-price.num-gradient.sh-deep .ns-price__new{
  filter:drop-shadow(3px 3px 0 rgba(0,0,0,.20)) drop-shadow(8px 10px 12px rgba(0,0,0,.24));
}
html body .ns-price.num-gradient.sh-glow .ns-price__new{
  filter:drop-shadow(0 0 14px var(--ns-price-accent, #e0322d)) drop-shadow(2px 3px 0 rgba(0,0,0,.18));
}

/* 単位（円）はグラデにせず、単色のまま読みやすく */
html body .ns-price.num-gradient .ns-price__new .ns-price__unit{
  color:var(--ns-price-accent, #e0322d) !important;
  -webkit-text-fill-color:currentColor !important;
}

/* ---- 価格の影を作り直す ----
   これまで text-shadow を何段も重ねていたため、
   数字が隣の数字に食い込む所で影が上に乗り、0 が欠けて見えていた。
   影は「文字の背面にある一枚」として drop-shadow で落とす。 */
html body .ns-price .ns-price__new .ns-price__num{
  text-shadow:none !important;
}
html body .ns-price .ns-price__new{ filter:none; }

html body .ns-price.sh-none .ns-price__new{ filter:none !important; }

html body .ns-price.sh-soft .ns-price__new{
  filter:drop-shadow(2px 3px 0 rgba(0,0,0,.12)) !important;
}
html body .ns-price.sh-hard .ns-price__new{
  filter:drop-shadow(5px 5px 0 rgba(0,0,0,.25)) !important;
}
/* 奥行き：黒を重ねず、薄い影を少しずつずらして厚みだけ出す */
html body .ns-price.sh-deep .ns-price__new{
  filter:
    drop-shadow(2px 2px 0 rgba(0,0,0,.10))
    drop-shadow(4px 4px 0 rgba(0,0,0,.08))
    drop-shadow(8px 9px 10px rgba(0,0,0,.18)) !important;
}
/* 光らせる：黒い影は使わず、色の光だけ */
html body .ns-price.sh-glow .ns-price__new{
  filter:
    drop-shadow(0 0 8px var(--ns-price-accent, #e0322d))
    drop-shadow(0 0 22px var(--ns-price-accent, #e0322d)) !important;
}

/* 数字が詰まりすぎて重なるのを防ぐ */
html body .ns-price .ns-price__new .ns-price__num{
  letter-spacing:-.015em !important;
  padding-right:.04em;
}
