/* 個別商品ページ用CSS - 完全版 */

/* 基本設定 */
body {
    font-family: 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* 個別商品ページのレイアウト修正 */
body.single-products {
    overflow-x: hidden !important;
}

/* ヘッダーの余白調整 */
body.single-products #header,
body.single-products .header,
body.single-products .site-header {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* ロゴ部分の位置調整（トップページと同じ中央寄せ - 安全な方法） */
body.single-products .logo,
body.single-products .logo-header,
body.single-products .logo-image {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    text-align: center !important;
    display: block !important;
}

body.single-products .site-name,
body.single-products .site-name-text-link {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    text-align: center !important;
    display: block !important;
}

body.single-products .site-name-text {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    text-align: center !important;
}

/* ロゴ画像の位置調整（トップページと同じ中央寄せ - 安全な方法） */
body.single-products .site-logo-image,
body.single-products .header-site-logo-image {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    float: none !important;
    display: block !important;
}

/* 固定ヘッダーのロゴを非表示（2重表示を防ぐ） */
body.single-products .site-fixed-logo-image,
body.single-products .header-fixed .site-fixed-logo-image,
body.single-products .header-fixed .site-logo-image,
body.single-products .header-fixed .header-site-logo-image {
    display: none !important;
}

/* ヘッダー全体の左余白削除 */
body.single-products .header-container .container,
body.single-products .header-in .container,
body.single-products .header-content .container {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* ヘッダーコンテナの余白調整 */
body.single-products .header-container,
body.single-products .header-in,
body.single-products .header-content {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* WordPressテーマのコンテナも全画面表示 */
#container.container.wrap.cf {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* 個別商品ページのみの安全な中央表示設定 */
body.single-products #container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.single-products #main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-products #content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* コンテンツ部分のみ中央表示 */
body.single-products .entry-content,
body.single-products .post-content,
body.single-products .content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
}

/* 個別商品ページ専用の中央表示 */
body.single-products .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* より安全な中央表示 - コンテンツエリアのみ */
body.single-products .product-page-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 15px !important; /* 30pxから15pxに削減 */
    background-color: white !important;
    box-sizing: border-box !important;
}

/* 個別商品ページでテーマのデフォルトサイドバーを非表示 */
body.single-products #sidebar.sidebar.nwa,
body.single-products #sidebar:not(#product-sidebar) {
    display: none !important;
}

/* 新しいサイドバーの幅を300pxに設定（PC用） */
body.single-products #product-sidebar-pc,
body.single-products .product-sidebar-pc,
body.single-products aside#product-sidebar-pc.sidebar {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    flex-shrink: 0 !important;
    background-color: white;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* スマートフォン用サイドバーの基本設定 */
body.single-products #product-sidebar.product-sidebar-mobile,
body.single-products .product-sidebar-mobile {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    background-color: white;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* PC表示ではサイドバーを常に表示 */
@media (min-width: 769px) {
    body.single-products #product-sidebar-pc {
        position: relative !important;
        left: auto !important;
        height: auto !important;
        display: block !important;
    }
    
    body.single-products #product-sidebar.product-sidebar-mobile {
        display: none !important;
    }
    
    /* PC用広告のみ表示 */
    body.single-products .sidebar-ad-pc {
        display: block !important;
    }
    
    body.single-products .sidebar-ad-mobile {
        display: none !important;
    }
    
    /* コンテンツ内のスマホ用広告は非表示 */
    body.single-products .content-ad-mobile {
        display: none !important;
    }
}

/* スマートフォン表示（768px以下） */
@media (max-width: 768px) {
    /* サイドバー内のスマホ用広告は非表示 */
    body.single-products .sidebar-ad-mobile {
        display: none !important;
    }
    
    body.single-products .sidebar-ad-pc {
        display: none !important;
    }
    
    /* コンテンツ内のスマホ用広告も非表示 */
    body.single-products .content-ad-mobile {
        display: none !important;
    }
    
    /* 親要素の幅を確実に100%にする */
    body.single-products .main,
    body.single-products .entry-content,
    body.single-products .post-content,
    body.single-products .content,
    body.single-products .article {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* サイドバー広告のスタイル */
body.single-products .sidebar-ad {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0;
}

/* PC用広告（200x600） */
body.single-products .sidebar-ad-pc {
    width: 100%;
    max-width: 200px;
    margin: 30px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.single-products .sidebar-ad-pc > * {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}

/* スマートフォン用広告（300x250） - サイドバー内（非表示） */
body.single-products .sidebar-ad-mobile {
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.single-products .sidebar-ad-mobile > * {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
}

/* コンテンツ内のスマートフォン用広告（300x250） */
body.single-products .content-ad-mobile {
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.single-products .content-ad-mobile > * {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
}

/* 広告ウィジェット内のiframeやスクリプト生成要素のスタイル */
body.single-products .sidebar-ad iframe,
body.single-products .sidebar-ad div[id*="rakuten"],
body.single-products .sidebar-ad div[class*="rakuten"] {
    display: block !important;
    margin: 0 auto !important;
}

/* PC用広告内の要素 */
body.single-products .sidebar-ad-pc iframe,
body.single-products .sidebar-ad-pc div[id*="rakuten"],
body.single-products .sidebar-ad-pc div[class*="rakuten"] {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    margin: 0 auto !important;
}

/* スマホ用広告内の要素（サイドバー内） */
body.single-products .sidebar-ad-mobile iframe,
body.single-products .sidebar-ad-mobile div[id*="rakuten"],
body.single-products .sidebar-ad-mobile div[class*="rakuten"] {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    margin: 0 auto !important;
}

/* コンテンツ内のスマホ用広告内の要素 */
body.single-products .content-ad-mobile iframe,
body.single-products .content-ad-mobile div[id*="rakuten"],
body.single-products .content-ad-mobile div[class*="rakuten"] {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    margin: 0 auto !important;
}

/* サイドバー内のウィジェットスタイル */
body.single-products #product-sidebar .widget,
body.single-products #product-sidebar-pc .widget {
    margin: 0 0 30px 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ウィジェットタイトルのスタイル（H2に合わせる） */
body.single-products #product-sidebar .widget-title,
body.single-products #product-sidebar-pc .widget-title {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #333;
    padding-left: 15px;
    padding-bottom: 0;
    border-bottom: none;
    color: #333;
    line-height: 1.3;
}

/* 商品カテゴリウィジェットのスタイル */
.product-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-category-item {
    margin-bottom: 6px;
}

.product-category-link {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 0;
    background-color: transparent;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    display: block;
    font-size: 14px;
    line-height: 1.4;
    min-height: 36px;
}

.product-category-link:hover {
    background-color: #f8f9fa;
    border-color: #333;
    color: #333;
}

.product-category-count {
    color: #6c757d;
    font-size: 12px;
    margin-left: 5px;
}

.product-category-link:hover .product-category-count {
    color: #6c757d;
}

.no-categories {
    color: #6c757d;
    font-size: 14px;
    padding: 15px;
    text-align: center;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* カテゴリヘッダー（カテゴリ名とトグルボタン） */
.product-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.product-category-link {
    flex: 1;
}

/* カテゴリトグルボタン */
.category-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-toggle-btn:hover {
    color: #333;
}

.category-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 10px;
}

/* 商品タグリスト */
.product-tags-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 20px;
    border-left: 2px solid #dee2e6;
    padding-left: 12px;
}

.product-tag-item {
    margin-bottom: 4px;
}

.product-tag-link {
    color: #6c757d;
    text-decoration: none;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    transition: all 0.3s ease;
}

.product-tag-link:hover {
    color: #333;
    background-color: #f8f9fa;
}

.product-tag-count {
    color: #999;
    font-size: 11px;
    margin-left: 4px;
}

/* 商品カテゴリボタン */
.product-categories-menu-button {
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #333;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 5px;
}

.product-categories-menu-button:hover {
    background-color: #f8f9fa;
    border-color: #333;
}

.product-categories-menu-button.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.product-categories-menu-button.active .button-arrow {
    transform: rotate(180deg);
}

.button-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 10px;
}

/* 商品カテゴリオーバーレイ */
.product-categories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
}

.product-categories-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* メニュー用カテゴリ一覧スタイル */
.product-categories-menu-container {
    position: absolute;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
    padding: 15px;
    min-width: 280px;
}

.product-categories-menu-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    color: #333;
}

.product-categories-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-category-menu-item {
    margin-bottom: 8px;
}

.product-category-menu-link {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #dee2e6;
    background-color: white;
    transition: all 0.3s ease;
}

.product-category-menu-link:hover {
    background-color: #f8f9fa;
    border-color: #333;
    color: #333;
}

.product-category-menu-count {
    color: #6c757d;
    font-size: 12px;
    margin-left: 5px;
}

/* メニュー用トグルボタン */
.category-menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.category-menu-toggle-btn:hover {
    color: #333;
}

.category-menu-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* メニュー用タグリスト */
.product-tags-menu-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 20px;
    border-left: 2px solid #dee2e6;
    padding-left: 12px;
}

.product-tag-menu-item {
    margin-bottom: 4px;
}

.product-tag-menu-link {
    color: #6c757d;
    text-decoration: none;
    padding: 4px 8px;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    transition: all 0.3s ease;
}

.product-tag-menu-link:hover {
    color: #333;
    background-color: #f8f9fa;
}

.product-tag-menu-count {
    color: #999;
    font-size: 11px;
    margin-left: 4px;
}

/* item-labelのボタンスタイル（個別ページでも確実に適用） */
body.single-products .item-label {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    padding: 6px 12px !important;
    display: inline-block !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    position: relative !important;
    /* 下線でボタンらしさを表現（控えめ） */
    border-bottom: 2px solid #2c3e50 !important;
}

/* ホバー時に右に矢印を表示 */
body.single-products .item-label::after {
    content: " →" !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    display: inline-block !important;
    transform: translateX(-5px) !important;
}

/* ホバー時のスタイル */
body.single-products .item-label:hover {
    color: #e74c3c !important;
    border-bottom-color: #e74c3c !important;
    /* ホバー時に少し下に移動して押せる感を演出 */
    transform: translateY(1px) !important;
}

body.single-products .item-label:hover::after {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* クリック時のスタイル */
body.single-products .item-label:active {
    transform: translateY(2px) !important;
    border-bottom-color: #c0392b !important;
    color: #c0392b !important;
}

/* ナビゲーションを右側に配置（トップページと同じ） */
body.single-products #navi,
body.single-products .navi,
body.single-products #navi-in {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
}

/* PC用メニューを常に表示、モバイル用メニューを常に非表示 */
body.single-products .menu-top.menu-pc,
body.single-products .menu-top.menu-header.menu-pc,
body.single-products #navi-in .menu-top.menu-pc,
body.single-products #navi-in .menu-top.menu-header.menu-pc {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-products .menu-top.menu-mobile,
body.single-products #navi-in .menu-top.menu-mobile {
    display: none !important;
}

body.single-products .navi .menu-top {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* li要素を横並びにする */
body.single-products .navi .menu-top li,
body.single-products #navi-in .menu-top li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-products .navi .menu-top a {
    text-align: center !important;
}

body.single-products .navi .menu-top .item-label {
    text-align: center !important;
    /* 下線を確実に表示（functions.phpのスタイルを補強） */
    border-bottom: 2px solid #2c3e50 !important;
}

/* スマートフォン用メニューカテゴリスタイル */
@media (max-width: 768px) {
    /* 個別ページのスマートフォンで中央寄せ */
    body.single-products #navi,
    body.single-products .navi,
    body.single-products #navi-in {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* スマートフォンでも横並びを維持（中央配置） */
    body.single-products .navi .menu-top,
    body.single-products .menu-top.menu-pc,
    body.single-products .menu-top.menu-header.menu-pc,
    body.single-products #navi-in .menu-top.menu-pc,
    body.single-products #navi-in .menu-top.menu-header.menu-pc {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.single-products .navi .menu-top li,
    body.single-products #navi-in .menu-top li {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.single-products .navi .menu-top a {
        font-weight: bold !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
        text-align: center !important;
    }
    
    body.single-products .navi .menu-top a:hover {
        color: #e74c3c !important;
    }
    
    body.single-products .navi .menu-top .item-label {
        font-weight: bold !important;
        text-align: center !important;
        /* 下線を確実に表示（functions.phpのスタイルを補強） */
        border-bottom: 2px solid #2c3e50 !important;
    }
    
    /* item-labelと横並びにする（下線も維持） */
    .menu-top.menu-mobile .item-label,
    .menu-top.menu-mobile .product-categories-menu-button-mobile {
        display: inline-flex !important;
        align-items: center;
        vertical-align: middle;
        margin: 0 5px;
        /* 下線は維持 */
        border-bottom: 2px solid #2c3e50 !important;
        text-align: center !important;
    }
    
    /* スマートフォンでもホバー時の下線を維持 */
    .menu-top.menu-mobile .item-label:hover {
        border-bottom-color: #e74c3c !important;
    }
    
    .product-categories-menu-button-mobile {
        padding: 8px 12px;
        font-size: 14px;
        height: auto;
        line-height: 1.4;
    }
    
    .product-categories-overlay-mobile {
        padding: 10px;
    }
    
    .product-categories-menu-mobile {
        width: 100% !important;
        max-width: 100% !important;
        left: 10px !important;
        right: 10px !important;
        position: relative !important;
    }
    
    .product-categories-menu-mobile .product-categories-menu-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .product-category-menu-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}

body.single-products .main-wrap {
    display: flex !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

body.single-products .main {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* サイドバーの基本設定（displayはメディアクエリで制御） */
body.single-products #product-sidebar,
body.single-products #product-sidebar-pc {
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    /* displayはメディアクエリで制御するため、ここでは設定しない */
}

/* PC表示（769px以上） */
@media (min-width: 769px) {
    /* 下のパンくずを表示（PCでは下のパンくずを使用） */
    .breadcrumb-bottom {
        display: block !important;
    }
    
    /* PC用サイドバーを表示 */
    body.single-products aside#product-sidebar-pc.product-sidebar-pc,
    body.single-products #product-sidebar-pc.product-sidebar-pc,
    body.single-products .product-sidebar-pc,
    body.single-products .main-wrap aside#product-sidebar-pc {
        display: block !important;
        visibility: visible !important;
    }
    
    /* スマートフォン用サイドバーを非表示 */
    body.single-products aside#product-sidebar.product-sidebar-mobile,
    body.single-products #product-sidebar.product-sidebar-mobile,
    body.single-products .product-sidebar-mobile,
    body.single-products .product-page-container aside#product-sidebar.product-sidebar-mobile {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* スマートフォン表示（768px以下） */
@media (max-width: 768px) {
    /* PC用サイドバーを非表示 */
    body.single-products aside#product-sidebar-pc.product-sidebar-pc,
    body.single-products #product-sidebar-pc.product-sidebar-pc,
    body.single-products .product-sidebar-pc,
    body.single-products .main-wrap aside#product-sidebar-pc {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* スマートフォン用サイドバーを表示 */
    body.single-products aside#product-sidebar.product-sidebar-mobile,
    body.single-products #product-sidebar.product-sidebar-mobile,
    body.single-products .product-sidebar-mobile,
    body.single-products .product-page-container aside#product-sidebar.product-sidebar-mobile {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }
}

/* ハンバーガーメニューボタンラッパー（スマートフォン用） */
.sidebar-toggle-wrapper {
    display: none; /* PCでは非表示 */
    position: relative;
    width: 100%;
    text-align: right;
    padding: 10px 15px 0 0;
}

/* ハンバーガーメニューボタン（スマートフォン用） */
.sidebar-toggle {
    position: relative;
    display: inline-flex;
    z-index: 1001;
    width: 44px;
    height: 44px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    margin: 0;
}

.sidebar-toggle:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle .hamburger-icon {
    width: 20px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.sidebar-toggle.active .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sidebar-toggle.active .hamburger-icon:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* サイドバーオーバーレイ（スマートフォン用） */
.sidebar-overlay {
    display: none; /* PCでは非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.overlay-active {
    opacity: 1;
    visibility: visible;
}

/* パンくずリストのスタイル */
.breadcrumb {
    margin: 0 0 20px 0;
    padding: 0;
}

/* 上のパンくず（PC用、スマートフォンでは非表示） */
.breadcrumb-top {
    margin: 0 0 20px 0;
}

/* 下のパンくず（スマートフォンで表示） */
.breadcrumb-bottom {
    margin: 0 0 20px 0;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    margin: 0;
    padding: 0;
}

.breadcrumb-item:not(:last-child)::after {
    content: ' / ';
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
    color: #333;
}

/* スマートフォン用のサイドバースタイル */
@media (max-width: 768px) {
    /* 商品カテゴリボタンを完全に非表示 */
    .product-categories-menu-button,
    .product-categories-menu-button-mobile {
        display: none !important;
    }
    
    /* スマートフォン用サイドバーを表示（パンくずの上に配置） */
    body.single-products #product-sidebar.product-sidebar-mobile,
    body.single-products .product-sidebar-mobile {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 0 20px 0;
        padding: 0;
    }
    
    /* ハンバーガーメニューボタンも非表示（不要になったため） */
    .sidebar-toggle-wrapper {
        display: none !important;
    }
    
    /* オーバーレイも非表示 */
    .sidebar-overlay {
        display: none !important;
    }
    
    /* メインカラムの幅を調整 */
    body.single-products .main-wrap {
        flex-direction: column;
    }
    
    body.single-products .main {
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* スマートフォンでもproduct-page-containerの余白を削減 */
    body.single-products .product-page-container {
        padding: 10px !important; /* スマートフォンではさらに少なく */
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 上のパンくずを非表示（スマートフォン） */
    .breadcrumb-top {
        display: none !important;
    }
    
    /* 下のパンくずを表示 */
    .breadcrumb-bottom {
        display: block !important;
        margin-bottom: 15px;
    }
    
    /* サイドバーを下のパンくずの上に表示 */
    body.single-products .product-sidebar-mobile {
        margin-bottom: 20px;
    }
    
    /* サイドバーの左マージンをH2と揃える */
    body.single-products .product-sidebar-mobile {
        padding-left: 0;
        margin-left: 0;
    }
    
    body.single-products .product-sidebar-mobile .widget-title {
        padding-left: 15px; /* H2と同じpadding-left */
        margin-left: 0;
    }
    
    /* サイドバーの最初のウィジェットのマージンを調整 */
    body.single-products .product-sidebar-mobile .widget:first-child {
        margin-top: 0;
    }
    
    body.single-products .product-sidebar-mobile .widget-title:first-child {
        margin-top: 0;
    }
}

/* タイトル */
h1 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 30px;
    line-height: 1.3;
}

h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #333;
    padding-left: 15px;
    line-height: 1.3;
}

h3 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.3;
}

h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

/* 統合された商品情報・買い時判定コンテナ（ファーストビュー） */
.product-hero-section {
    display: flex;
    gap: 25px;
    margin: 20px 0 30px 0;
    padding: 0; /* 外枠削除 */
    background: transparent; /* 外枠削除 */
    border: none; /* 外枠削除 */
    border-radius: 0; /* 外枠削除 */
    box-shadow: none; /* 外枠削除 */
    align-items: flex-start;
}

.hero-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-image-container {
    width: 220px;
    height: 220px;
    min-width: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
}

#product-image-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

#product-image-link:hover {
    opacity: 0.9;
}

#product-image {
    max-width: 220px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

#no-image-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#loading-placeholder {
    text-align: center;
    color: #6c757d;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 即断サマリーカード */
.decision-summary-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.ds-top {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.ds-buy-timing {
    font-size: 18px;
    color: #495057;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* 星の部分をスタイル化するため、JavaScriptで動的に追加するクラスを使用 */
.ds-buy-timing .stars-part {
    font-size: 28px;
    color: #ffc107;
    letter-spacing: 2px;
    margin-left: 8px;
    line-height: 1;
    vertical-align: middle;
}

/* 5段階価格帯テーブル内の星のスタイル */
.price-threshold-table th .stars-part {
    font-size: 20px;
    color: #ffc107;
    letter-spacing: 1px;
    line-height: 1;
    display: block;
    margin-bottom: -2px;
    padding-bottom: 0;
}

.price-threshold-table th br {
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    font-size: 0 !important;
    display: block !important;
    content: "";
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

/* 改行後のテキストの余白を削除 */
.price-threshold-table th br + *,
.price-threshold-table th br ~ * {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.2;
    display: block;
}

/* 表形式の価格情報と5段階価格帯を横並び */
.ds-tables-container {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    align-items: flex-start;
}

.ds-table-wrapper {
    flex: 1; /* PC用: 横並びレイアウトで適切な幅を確保 */
    min-width: 0;
    width: 100%; /* 横幅いっぱいに表示 */
    /* スマートフォンではメディアクエリで flex: none を適用 */
}

/* 5段階価格帯の横幅を広げる */
.price-thresholds-section {
    flex: 1.5;
    min-width: 0;
}

/* 表形式の価格情報 */
.ds-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    table-layout: fixed; /* テーブルレイアウトを固定して列幅を確実に揃える */
}

/* price-threshold-tableもds-tableクラスを持っているので、同じ設定を適用 */
.ds-table.price-threshold-table {
    width: 100%;
    table-layout: fixed; /* テーブルレイアウトを固定して列幅を確実に揃える */
}

.ds-table th {
    text-align: left;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 600;
    color: #212529;
    width: 180px; /* PC用の固定幅 */
    min-width: 180px;
    max-width: 180px;
    height: 68px !important; /* 高さを68pxに固定 */
    min-height: 68px !important; /* 最小高さを68pxに固定 */
    max-height: 68px !important; /* 最大高さを68pxに固定 */
    vertical-align: middle; /* 縦方向の中央揃え */
    box-sizing: border-box; /* ボーダーとパディングを含めた幅で計算 */
    position: relative; /* 縦棒の位置指定のため */
    line-height: 1.2; /* price-threshold-table thと同じ行間を設定 */
    overflow: hidden; /* はみ出しを防ぐ */
}

/* ds-tableのすべてのthの左に黒の縦棒を追加（統一感を出すため） */
.ds-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #333; /* 黒色 */
}

.ds-table td {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    color: #333; /* より濃いグレーに変更 */
    height: 68px !important; /* 高さを68pxに固定 */
    min-height: 68px !important; /* 最小高さを68pxに固定 */
    max-height: 68px !important; /* 最大高さを68pxに固定 */
    vertical-align: middle; /* 縦方向の中央揃え */
    width: 60%; /* tdの幅を60%に固定（thが40%なので、合計100%） */
    font-size: 16px; /* 金額の文字サイズを16pxに変更 */
}

/* 本日価格を強調表示 */
#ds-current-price {
    font-size: 20px;
    font-weight: bold;
    color: #dc143c; /* クリムゾンレッド */
}

.ds-table tr:first-child th,
.ds-table tr:first-child td {
    border-top: none;
    width: inherit; /* 親要素の幅を継承 */
}

.ds-table tr:last-child th,
.ds-table tr:last-child td {
    border-bottom: none;
    width: inherit; /* 親要素の幅を継承 */
}

.ds-subtitle {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* 5段階価格帯の表形式（ds-tableと同じ色に統一） */
.price-threshold-table th {
    background-color: #f8f9fa;
    border-left: none;
    position: relative;
    height: 68px !important; /* 高さを68pxに固定 */
    min-height: 68px !important; /* 最小高さを68pxに固定 */
    max-height: 68px !important; /* 最大高さを68pxに固定 */
    vertical-align: middle; /* 縦方向の中央揃え */
    width: 180px; /* ds-table thと同じ固定幅に揃える */
    min-width: 180px;
    max-width: 180px;
    text-align: left;
    padding: 10px 12px; /* ds-table thと同じパディングに統一（グラデーション棒は::beforeで表示） */
    border: 1px solid #dee2e6;
    font-weight: 600;
    color: #212529;
    box-sizing: border-box; /* ボーダーとパディングを含めた幅で計算 */
    line-height: 1.0 !important; /* 行間を最小限に（brタグの高さを削減） */
    overflow: hidden; /* はみ出しを防ぐ */
    display: table-cell; /* テーブルセルとして表示 */
}

/* ds-table thにposition: relativeを追加したため、個別の設定は不要 */

.price-threshold-table td {
    height: 68px !important; /* 高さを68pxに固定 */
    min-height: 68px !important; /* 最小高さを68pxに固定 */
    max-height: 68px !important; /* 最大高さを68pxに固定 */
    vertical-align: middle; /* 縦方向の中央揃え */
    width: 60%; /* tdの幅を60%に固定（thが40%なので、合計100%） */
    padding: 10px 12px; /* ds-table tdと同じパディングに統一 */
    border: 1px solid #dee2e6;
    color: #333; /* より濃いグレーに変更 */
    font-size: 16px; /* 金額の文字サイズを16pxに変更 */
}

/* 左端の色棒をグラデーションに（★5が濃い青→★1が最も薄い青） */
.price-threshold-table tr.level-5 th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); /* 濃い青 */
}

.price-threshold-table tr.level-4 th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); /* 青 */
}

.price-threshold-table tr.level-3 th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%); /* 薄い青 */
}

.price-threshold-table tr.level-2 th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 100%); /* より薄い青 */
}

.price-threshold-table tr.level-1 th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%); /* 最も薄い青 */
}

.ds-action {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #e7f3ff 0%, #d0e7ff 100%);
    border-left: 4px solid #007bff;
    border-radius: 6px;
    font-size: 16px;
}

/* 詳細説明文 */
.ds-detail-description {
    margin: 30px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
}

/* buy-timing-messageとds-action-textは統合されたため削除 */

.amazon-link-section {
    margin: 0;
    text-align: center;
}

.amazon-link-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    margin-bottom: 0;
}

.amazon-link,
.amazon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff9900 0%, #ff8800 100%);
    color: white;
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    width: 100%;
    text-align: center;
    flex: 1;
    /* モバイル最適化: 最小タップ領域を44x44pxに確保 */
    min-height: 44px;
    min-width: 44px;
}

.amazon-link:hover,
.amazon-button:hover {
    background: linear-gradient(135deg, #e68a00 0%, #d67a00 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4);
    transform: translateY(-2px);
}

.amazon-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* ショッピングボタンコンテナ */
.shopping-buttons-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
}

/* PC表示時: 横並びのボタンの高さを揃える */
@media (min-width: 769px) {
    .shopping-buttons-container {
        align-items: stretch;
    }
    
    .amazon-button,
    .rakuten-button,
    .yahoo-button {
        align-self: stretch;
        height: auto;
        min-height: 100%;
    }
}

/* 楽天市場ボタン */
.rakuten-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
    color: white;
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
    width: 100%;
    text-align: center;
    flex: 1;
    /* モバイル最適化: 最小タップ領域を44x44pxに確保 */
    min-height: 44px;
    min-width: 44px;
}

.rakuten-button:hover {
    background: linear-gradient(135deg, #B22222 0%, #8B0000 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
    transform: translateY(-2px);
}

/* Yahoo!ショッピングボタン */
.yahoo-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #663399 0%, #4B0082 100%);
    color: white;
    padding: 6px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 51, 153, 0.3);
    width: 100%;
    text-align: center;
    flex: 1;
    /* モバイル最適化: 最小タップ領域を44x44pxに確保 */
    min-height: 44px;
    min-width: 44px;
}

.yahoo-button:hover {
    background: linear-gradient(135deg, #4B0082 0%, #2E0854 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(102, 51, 153, 0.4);
    transform: translateY(-2px);
}

.shopping-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* スマートフォン表示（768px以下）: 縦並び */
@media (max-width: 768px) {
    .shopping-buttons-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px; /* モバイル最適化: ボタン間の間隔を12pxに増加（誤タップ防止） */
    }
    
    .rakuten-button,
    .yahoo-button {
        width: 100%;
    }
    
    /* モバイル最適化: ボタンのパディングを増やしてタップしやすく */
    .amazon-button,
    .rakuten-button,
    .yahoo-button {
        padding: 12px 20px; /* パディングを増加 */
    }
}

/* price-thresholds-sectionはds-tables-container内に移動したため、スタイルは上記に統合 */

/* price-threshold-listは表形式に変更されたため削除 */

/* 価格推移セクション */
.chart-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
}

.buy-timing-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 縦方向の中央揃えで高さを揃える */
    flex-wrap: wrap;
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.stats-row h3 {
    margin: 0; /* H3のマージンを0にして位置を揃える */
}

.stat-item {
    margin: 5px 0;
    font-size: 16px;
}

.stat-item strong {
    color: #333;
}

.buy-judgment {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f3ff;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.buy-judgment p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* 製品情報セクション */
.product-details {
    margin: 20px 0;
}

.ranking-section,
.review-section,
.product-info-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.info-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
    background-color: #fff;
}

.info-table td:first-child {
    width: 30%;
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
}

.info-table td:last-child {
    width: 70%;
    color: #666;
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* 関連商品セクション */
.related-products-section {
    margin: 30px 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* スマートフォン表示（768px以下）: 1列表示 */
@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

.related-product-card {
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.related-product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 関連商品リンク（aタグとして機能） */
.related-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-product-link:hover {
    text-decoration: none;
    color: inherit;
}

.related-product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 10px;
}

.related-product-card h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.4;
}

.related-product-card .price {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    margin: 5px 0;
}

.related-product-card .buy-score {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

/* FAQセクション - シンプルなモノトーンデザイン */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: 40% 60%; /* Q:A = 4:6 */
    gap: 15px; /* QとAの隙間 */
    align-items: start;
}

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

.faq-question {
    display: flex;
    align-items: baseline;
    margin-bottom: 0;
    font-weight: 500;
    color: #212529;
    font-size: 15px;
    line-height: 1.6;
}

.faq-number {
    display: inline-block;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #6c757d;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
    vertical-align: baseline;
}

.faq-question-text {
    flex: 1; /* Gridレイアウトのため、flexで調整 */
    line-height: 1.6;
    min-width: 0; /* flexアイテムの最小幅をリセット */
    font-weight: bold; /* 質問を太字に */
}

.faq-answer {
    display: flex;
    align-items: baseline;
    margin-top: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}

.faq-answer-label {
    display: none;
}

.faq-answer-text {
    flex: 1; /* Gridレイアウトのため、flexで調整 */
    line-height: 1.6;
}

.faq-amazon-link,
.faq-related-product-link {
    color: #495057;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.faq-amazon-link:hover,
.faq-related-product-link:hover {
    color: #007bff;
}

/* 商品情報セクション */
.product-info-section {
    margin: 30px 0;
}

.product-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.product-info-table th {
    text-align: left;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    font-weight: 600;
    color: #333; /* 濃いグレーに統一 */
    width: 30%;
    vertical-align: middle;
    position: relative; /* 縦棒の位置指定のため */
    font-size: 14px; /* フォントサイズを14pxに統一 */
}

/* 商品情報テーブルのthの左に黒の縦棒を追加（統一感を出すため） */
.product-info-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #333; /* 黒色 */
}

.product-info-table td {
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    color: #333; /* 濃いグレーに統一 */
    vertical-align: middle;
    font-size: 14px; /* フォントサイズを14pxに統一 */
}

.product-info-table tr:first-child th,
.product-info-table tr:first-child td {
    border-top: none;
}

.product-info-table tr:last-child th,
.product-info-table tr:last-child td {
    border-bottom: none;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 0 auto !important;
    }
    
    body.single-products .container {
        margin: 0 auto !important;
        max-width: 100% !important;
        padding: 20px !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .product-hero-section {
        flex-direction: column;
        gap: 20px;
        padding: 0; /* 外枠削除 */
        max-height: none;
        overflow-y: visible;
        width: 100% !important; /* 横幅いっぱいに表示 */
    }
    
    .product-image-container {
        width: 180px;
        height: 180px;
        min-width: 180px;
        margin: 0 auto;
    }
    
    #product-image {
        max-width: 180px;
        max-height: 180px;
    }
    
    .hero-content-area {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        flex: none !important; /* flexの影響を無効化 */
    }
    
    .decision-summary-card {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
    }
    
    .ds-tables-container {
        flex-direction: column;
        gap: 15px;
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .ds-table-wrapper {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        flex: none !important; /* flexの影響を無効化 */
    }
    
    /* 親要素を確実に100%にする */
    body.single-products .product-page-container,
    body.single-products .product-hero-section,
    body.single-products .hero-content-area,
    body.single-products .decision-summary-card,
    body.single-products .ds-tables-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* .ds-tables-containerの幅を確実に100%にする */
    body.single-products .ds-tables-container,
    body.single-products .decision-summary-card .ds-tables-container,
    body.single-products .hero-content-area .ds-tables-container,
    body.single-products .product-hero-section .ds-tables-container,
    body.single-products .product-page-container .ds-tables-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* .ds-table-wrapperの幅を確実に100%にする（より具体的なセレクタを使用） */
    /* PC用のflex: 1を確実に上書き - すべての可能なセレクタで上書き */
    .ds-table-wrapper,
    body.single-products .ds-table-wrapper,
    body.single-products .ds-tables-container .ds-table-wrapper,
    body.single-products .decision-summary-card .ds-table-wrapper,
    body.single-products .hero-content-area .ds-table-wrapper,
    body.single-products .product-hero-section .ds-table-wrapper,
    body.single-products .product-page-container .ds-table-wrapper,
    body.single-products .ds-tables-container > .ds-table-wrapper,
    body.single-products .ds-tables-container .ds-table-wrapper,
    body.single-products .decision-summary-card .ds-tables-container .ds-table-wrapper {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        min-width: 100% !important; /* min-widthも100%に設定 */
        flex: none !important; /* PC用のflex: 1を上書き */
        -webkit-flex: none !important; /* WebKit用 */
        -ms-flex: none !important; /* IE用 */
        flex-grow: 0 !important; /* flex-growを無効化 */
        -webkit-flex-grow: 0 !important; /* WebKit用 */
        -ms-flex-grow: 0 !important; /* IE用 */
        flex-shrink: 0 !important; /* flex-shrinkを無効化 */
        -webkit-flex-shrink: 0 !important; /* WebKit用 */
        -ms-flex-shrink: 0 !important; /* IE用 */
        flex-basis: 100% !important; /* flex-basisを100%に設定 */
        -webkit-flex-basis: 100% !important; /* WebKit用 */
        -ms-flex-basis: 100% !important; /* IE用 */
        box-sizing: border-box !important;
    }
    
    .ds-table {
        font-size: 13px;
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        min-width: 100% !important; /* min-widthも100%に設定 */
        table-layout: fixed !important; /* テーブルレイアウトを固定 */
        border-collapse: collapse !important;
        display: table !important;
    }
    
    .ds-table th,
    .ds-table td {
        padding: 8px 10px !important;
        font-size: 14px !important; /* thとtdのフォントサイズを14pxに統一 */
        height: 68px !important; /* 高さを68pxに固定 */
        min-height: 68px !important; /* 最小高さを68pxに固定 */
        max-height: 68px !important; /* 最大高さを68pxに固定 */
        vertical-align: middle !important; /* 縦方向の中央揃え */
        box-sizing: border-box !important; /* ボーダーとパディングを含めた幅で計算 */
    }
    
    /* thの幅を確実に40%に設定（すべてのセレクタで上書き - より具体的なセレクタを使用） */
    /* PC用の固定幅（width: 180px, min-width: 180px, max-width: 180px）を確実に上書き */
    body.single-products .ds-table th,
    body.single-products .ds-table tr:first-child th,
    body.single-products .ds-table tr:last-child th,
    body.single-products .ds-table th:first-child,
    body.single-products .ds-table th:last-child,
    body.single-products .ds-table thead th,
    body.single-products .ds-table tbody th,
    body.single-products .ds-table tbody tr th,
    body.single-products .ds-table-wrapper .ds-table th,
    body.single-products .ds-tables-container .ds-table th,
    body.single-products .decision-summary-card .ds-table th,
    body.single-products .hero-content-area .ds-table th,
    body.single-products .product-hero-section .ds-table th,
    body.single-products .product-page-container .ds-table th {
        width: 40% !important; /* スマートフォンでは40%で固定 */
        min-width: 0 !important; /* PC用のmin-width: 180pxを上書き */
        max-width: 40% !important; /* PC用のmax-width: 180pxを上書き */
        box-sizing: border-box !important;
    }
    
    /* tdの幅を確実に60%に設定（すべてのセレクタで上書き - より具体的なセレクタを使用） */
    body.single-products .ds-table td,
    body.single-products .ds-table tr:first-child td,
    body.single-products .ds-table tr:last-child td,
    body.single-products .ds-table tbody td,
    body.single-products .ds-table tbody tr td,
    body.single-products .ds-table-wrapper .ds-table td,
    body.single-products .ds-tables-container .ds-table td,
    body.single-products .decision-summary-card .ds-table td,
    body.single-products .hero-content-area .ds-table td,
    body.single-products .product-hero-section .ds-table td,
    body.single-products .product-page-container .ds-table td {
        width: 60% !important; /* tdは60%で固定 */
        min-width: 0 !important;
        max-width: 60% !important;
        box-sizing: border-box !important;
    }
    
    .price-thresholds-section {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        flex: none !important; /* flexの影響を無効化 */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .price-threshold-table {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        table-layout: fixed !important; /* テーブルレイアウトを固定 */
        border-collapse: collapse !important;
    }
    
    .price-threshold-table th,
    .price-threshold-table td {
        font-size: 14px !important; /* 5段階価格帯テーブルも14pxに統一 */
        height: 68px !important; /* 高さを68pxに固定 */
        min-height: 68px !important; /* 最小高さを68pxに固定 */
        max-height: 68px !important; /* 最大高さを68pxに固定 */
        vertical-align: middle !important; /* 縦方向の中央揃え */
        box-sizing: border-box !important; /* ボーダーとパディングを含めた幅で計算 */
    }
    
    /* 価格閾値テーブルのthの幅を確実に40%に設定（より具体的なセレクタを使用） */
    body.single-products .price-threshold-table th,
    body.single-products .price-threshold-table tr.level-5 th,
    body.single-products .price-threshold-table tr.level-4 th,
    body.single-products .price-threshold-table tr.level-3 th,
    body.single-products .price-threshold-table tr.level-2 th,
    body.single-products .price-threshold-table tr.level-1 th,
    body.single-products .price-threshold-table tbody th,
    body.single-products .price-threshold-table tbody tr th,
    body.single-products .price-thresholds-section .price-threshold-table th,
    body.single-products .ds-tables-container .price-threshold-table th {
        width: 40% !important; /* ds-table thと同じ40%に固定 */
        min-width: 0 !important; /* PC用のmin-width: 180pxを上書き */
        max-width: 40% !important; /* PC用のmax-width: 180pxを上書き */
        padding: 8px 10px !important; /* ds-table thと同じパディングに統一 */
        box-sizing: border-box !important;
    }
    
    /* 価格閾値テーブルのtdの幅を確実に60%に設定（より具体的なセレクタを使用） */
    body.single-products .price-threshold-table td,
    body.single-products .price-threshold-table tr.level-5 td,
    body.single-products .price-threshold-table tr.level-4 td,
    body.single-products .price-threshold-table tr.level-3 td,
    body.single-products .price-threshold-table tr.level-2 td,
    body.single-products .price-threshold-table tr.level-1 td,
    body.single-products .price-threshold-table tbody td,
    body.single-products .price-threshold-table tbody tr td,
    body.single-products .price-thresholds-section .price-threshold-table td,
    body.single-products .ds-tables-container .price-threshold-table td {
        width: 60% !important; /* ds-table tdと同じ60%に固定 */
        min-width: 0 !important;
        max-width: 60% !important;
        padding: 8px 10px !important; /* ds-table tdと同じパディングに統一 */
        box-sizing: border-box !important;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        margin: 3px 0;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .amazon-link,
    .amazon-button {
        width: 100%;
        padding: 14px 25px;
    }
    
    .faq-item {
        padding: 12px 0;
        margin-bottom: 16px;
    }
    
    .faq-question {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 0;
    }
    
    .faq-answer {
        font-size: 13px;
        padding-left: 30px;
        line-height: 1.6;
        margin-top: 0;
    }
    
    .faq-number {
        min-width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 11px;
        margin-right: 8px;
    }
    
    .faq-question-text,
    .faq-answer-text {
        line-height: 1.6;
    }
    
    /* スマートフォンでFAQを縦並びに変更 */
    .faq-item {
        grid-template-columns: 1fr; /* 縦並び */
        gap: 10px; /* QとAの隙間 */
    }
    
    .faq-answer {
        padding-left: 0; /* スマートフォンでは左余白なし */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin: 0 auto !important;
    }
    
    body.single-products .container {
        margin: 0 auto !important;
        max-width: 100% !important;
        padding: 15px !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .product-hero-section {
        flex-direction: column;
        gap: 15px;
        padding: 0; /* 外枠削除 */
        max-height: none;
        overflow-y: visible;
        width: 100% !important; /* 横幅いっぱいに表示 */
    }
    
    .product-image-container {
        width: 150px;
        height: 150px;
        min-width: 150px;
        margin: 0 auto;
    }
    
    #product-image {
        max-width: 150px;
        max-height: 150px;
    }
    
    .hero-content-area {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        flex: none !important; /* flexの影響を無効化 */
    }
    
    .decision-summary-card {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
    }
    
    .ds-tables-container {
        flex-direction: column;
        gap: 12px;
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* .ds-table-wrapperの幅を確実に100%にする（より具体的なセレクタを使用） */
    /* PC用のflex: 1を確実に上書き - すべての可能なセレクタで上書き */
    .ds-table-wrapper,
    body.single-products .ds-table-wrapper,
    body.single-products .ds-tables-container .ds-table-wrapper,
    body.single-products .decision-summary-card .ds-table-wrapper,
    body.single-products .hero-content-area .ds-table-wrapper,
    body.single-products .product-hero-section .ds-table-wrapper,
    body.single-products .product-page-container .ds-table-wrapper,
    body.single-products .ds-tables-container > .ds-table-wrapper,
    body.single-products .ds-tables-container .ds-table-wrapper,
    body.single-products .decision-summary-card .ds-tables-container .ds-table-wrapper {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        min-width: 100% !important; /* min-widthも100%に設定 */
        flex: none !important; /* PC用のflex: 1を上書き */
        -webkit-flex: none !important; /* WebKit用 */
        -ms-flex: none !important; /* IE用 */
        flex-grow: 0 !important; /* flex-growを無効化 */
        -webkit-flex-grow: 0 !important; /* WebKit用 */
        -ms-flex-grow: 0 !important; /* IE用 */
        flex-shrink: 0 !important; /* flex-shrinkを無効化 */
        -webkit-flex-shrink: 0 !important; /* WebKit用 */
        -ms-flex-shrink: 0 !important; /* IE用 */
        flex-basis: 100% !important; /* flex-basisを100%に設定 */
        -webkit-flex-basis: 100% !important; /* WebKit用 */
        -ms-flex-basis: 100% !important; /* IE用 */
        box-sizing: border-box !important;
    }
    
    .ds-table {
        font-size: 14px !important; /* テーブル全体のフォントサイズを14pxに */
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        min-width: 100% !important; /* min-widthも100%に設定 */
        table-layout: fixed !important; /* テーブルレイアウトを固定 */
        border-collapse: collapse !important;
        display: table !important;
    }
    
    .ds-table th,
    .ds-table td {
        padding: 6px 8px !important;
        font-size: 14px !important; /* thとtdのフォントサイズを14pxに統一 */
        height: 68px !important; /* 高さを68pxに固定 */
        min-height: 68px !important; /* 最小高さを68pxに固定 */
        max-height: 68px !important; /* 最大高さを68pxに固定 */
        vertical-align: middle !important; /* 縦方向の中央揃え */
        box-sizing: border-box !important; /* ボーダーとパディングを含めた幅で計算 */
    }
    
    /* thの幅を確実に40%に設定（より具体的なセレクタを使用） */
    body.single-products .ds-table th,
    body.single-products .ds-table tr:first-child th,
    body.single-products .ds-table tr:last-child th,
    body.single-products .ds-table th:first-child,
    body.single-products .ds-table th:last-child,
    body.single-products .ds-table thead th,
    body.single-products .ds-table tbody th,
    body.single-products .ds-table tbody tr th,
    body.single-products .ds-table-wrapper .ds-table th,
    body.single-products .ds-tables-container .ds-table th,
    body.single-products .decision-summary-card .ds-table th {
        width: 40% !important; /* 小さいスマートフォンでも40%で固定 */
        min-width: 0 !important; /* PC用のmin-width: 180pxを上書き */
        max-width: 40% !important; /* PC用のmax-width: 180pxを上書き */
        box-sizing: border-box !important;
    }
    
    /* tdの幅を確実に60%に設定（より具体的なセレクタを使用） */
    body.single-products .ds-table td,
    body.single-products .ds-table tr:first-child td,
    body.single-products .ds-table tr:last-child td,
    body.single-products .ds-table tbody td,
    body.single-products .ds-table tbody tr td,
    body.single-products .ds-table-wrapper .ds-table td,
    body.single-products .ds-tables-container .ds-table td,
    body.single-products .decision-summary-card .ds-table td {
        width: 60% !important; /* tdは60%で固定 */
        min-width: 0 !important;
        max-width: 60% !important;
        box-sizing: border-box !important;
    }
    
    .price-thresholds-section {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        flex: none !important; /* flexの影響を無効化 */
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .price-threshold-table {
        width: 100% !important; /* 横幅いっぱいに表示 */
        max-width: 100% !important;
        table-layout: fixed !important; /* テーブルレイアウトを固定 */
        border-collapse: collapse !important;
    }
    
    .price-threshold-table th,
    .price-threshold-table td {
        font-size: 14px !important; /* 5段階価格帯テーブルも14pxに統一 */
        height: 68px !important; /* 高さを68pxに固定 */
        min-height: 68px !important; /* 最小高さを68pxに固定 */
        max-height: 68px !important; /* 最大高さを68pxに固定 */
        vertical-align: middle !important; /* 縦方向の中央揃え */
        box-sizing: border-box !important; /* ボーダーとパディングを含めた幅で計算 */
    }
    
    .price-threshold-table th,
    .price-threshold-table tr.level-5 th,
    .price-threshold-table tr.level-4 th,
    .price-threshold-table tr.level-3 th,
    .price-threshold-table tr.level-2 th,
    .price-threshold-table tr.level-1 th {
        width: 40% !important; /* ds-table thと同じ40%に固定 */
        min-width: 0 !important; /* min-widthを無効化 */
        max-width: 40% !important; /* max-widthも40%に固定 */
        padding: 6px 8px !important; /* ds-table thと同じパディングに統一 */
    }
    
    .price-threshold-table td,
    .price-threshold-table tr.level-5 td,
    .price-threshold-table tr.level-4 td,
    .price-threshold-table tr.level-3 td,
    .price-threshold-table tr.level-2 td,
    .price-threshold-table tr.level-1 td {
        width: 60% !important; /* ds-table tdと同じ60%に固定 */
        min-width: 0 !important;
        max-width: 60% !important;
        padding: 6px 8px !important; /* ds-table tdと同じパディングに統一 */
    }
    
    .ds-buy-timing {
        font-size: 16px;
    }
    
    .ds-buy-timing .stars-part {
        font-size: 24px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .info-table td {
        padding: 8px;
        font-size: 14px;
    }
    
    .info-table {
        border: 1px solid #dee2e6;
        border-radius: 6px;
    }
    
    .amazon-link,
    .amazon-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .faq-item {
        padding: 10px 0;
        margin-bottom: 12px;
    }
    
    .faq-question {
        font-size: 13px;
        margin-bottom: 0;
        line-height: 1.6;
    }
    
    .faq-answer {
        font-size: 12px;
        margin-top: 0;
        padding-left: 28px;
        line-height: 1.6;
    }
    
    .faq-number {
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 10px;
        margin-right: 8px;
    }
    
    .faq-question-text,
    .faq-answer-text {
        line-height: 1.6;
    }
    
    .product-info-table {
        font-size: 14px; /* 14pxに統一 */
    }
    
    .product-info-table th,
    .product-info-table td {
        padding: 10px 12px;
        font-size: 14px !important; /* 14pxに統一 */
        color: #333 !important; /* 濃いグレーに統一 */
    }
}

/* ローディング状態 */
.loading {
    color: #6c757d;
    font-style: italic;
}

/* エラー状態 */
.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 成功状態 */
.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* チャートコンテナ */
#priceChart {
    max-width: 100%;
    height: 250px;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* 90日日別最安値表（トグル展開） */
.price-history-table-section {
    margin: 30px 0;
}

.toggle-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    /* モバイル最適化: 最小タップ領域を44x44pxに確保 */
    min-height: 44px;
}

.toggle-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.toggle-button:active {
    transform: translateY(0);
}

#price-table-container {
    margin-top: 20px;
    overflow-x: auto;
}

.price-history-table {
    width: 100%;
    border-collapse: collapse; /* collapseに戻して罫線を確実に表示 */
    background-color: #fff;
    border-radius: 8px;
    overflow: visible; /* hiddenからvisibleに変更して罫線が切れないように */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none; /* 外枠を削除 */
}

.price-history-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.price-history-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #212529;
    border: 1px solid #ced4da !important; /* 薄いグレー */
    font-size: 14px;
}

.price-history-table td {
    padding: 10px 15px;
    border: 1px solid #ced4da !important; /* 薄いグレー */
    color: #495057;
    font-size: 14px;
}

/* 外側のborderを削除（.ds-tableと同じ方法） */
.price-history-table tr:first-child th,
.price-history-table tr:first-child td {
    border-top: none !important;
}

.price-history-table tr:last-child th,
.price-history-table tr:last-child td {
    border-bottom: none !important;
}

.price-history-table th:first-child,
.price-history-table td:first-child {
    border-left: none !important;
}

.price-history-table th:last-child,
.price-history-table td:last-child {
    border-right: none !important;
}

/* ヘッダー行の下側の罫線を太く */
.price-history-table thead tr:first-child th {
    border-bottom: 2px solid #ced4da !important; /* 薄いグレー */
}

.price-history-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 「もっと見る」ボタン */
.load-more-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2);
    /* モバイル最適化: 最小タップ領域を44x44pxに確保 */
    min-height: 44px;
}

.load-more-button:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

.load-more-button:active {
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .toggle-button {
        font-size: 15px;
        padding: 12px 18px;
    }
    
    .price-history-table th,
    .price-history-table td {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .load-more-button {
        font-size: 13px;
        padding: 10px 25px;
    }
}

@media (max-width: 480px) {
    .toggle-button {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .price-history-table th,
    .price-history-table td {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .load-more-button {
        font-size: 12px;
        padding: 8px 20px;
    }
    
    #price-table-container {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

/* 印刷用スタイル */
@media print {
    .container {
        box-shadow: none;
        padding: 0;
    }
    
    .amazon-link {
        display: none;
    }
    
    .related-products-section {
        display: none;
    }
    
    .toggle-button {
        display: none;
    }
    
    #price-table-container {
        display: block !important;
    }
}

/* ========================================
   フッターのスタイル統一
   ======================================== */
/* Amazon商標表記とCopyright表記を14pxの白文字に統一 */
.amazon-trademark-footer,
.source-org.copyright {
    font-size: 14px !important;
    color: #ffffff !important;
    text-align: center;
}

/* ========================================
   サイドバー表示制御（最優先ルール - ファイル末尾）
   ======================================== */
/* PC表示（769px以上） - 最優先 */
@media (min-width: 769px) {
    /* PC用サイドバーのみ表示 */
    body.single-products .main-wrap aside#product-sidebar-pc.product-sidebar-pc {
        display: block !important;
    }
    
    /* スマートフォン用サイドバーは完全に非表示 */
    body.single-products .product-page-container aside#product-sidebar.product-sidebar-mobile {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* スマートフォン表示（768px以下） - 最優先 */
@media (max-width: 768px) {
    /* PC用サイドバーは完全に非表示 */
    body.single-products .main-wrap aside#product-sidebar-pc.product-sidebar-pc {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* スマートフォン用サイドバーのみ表示 */
    body.single-products .product-page-container aside#product-sidebar.product-sidebar-mobile {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }
}
}
}