/**
 * カルーセル表示のためのスタイル定義
 * 複数デザインバリエーション対応版
 */

/* カルーセルコンテナ */
.store-tablet-carousel-container {
    position: relative;
    width: 100%;
    background: linear-gradient(45deg, rgba(204, 32, 85, 0.05), rgba(0, 0, 0, 0.02));
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* gy-ページ用の黒色背景スタイル */
body:has([class*="gy-"]) .store-tablet-carousel-container,
.store-tablet-carousel-container.gy-page {
    background: #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* gy-ページ用のカルーセルコンテナ内の特定要素 */
body:has([class*="gy-"]) .store-tablet-carousel-container .carousel-header,
.store-tablet-carousel-container.gy-page .carousel-header,
body:has([class*="gy-"]) .store-tablet-carousel-container .carousel-simple-header,
.store-tablet-carousel-container.gy-page .carousel-simple-header {
    background: #2d2d2d !important;
    border-bottom: 1px solid #404040 !important;
    box-shadow: none !important;
}

/* カルーセルモード */
.store-tablet-carousel-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* gy-ページ用のカルーセルモード背景 */
body:has([class*="gy-"]) .store-tablet-carousel-mode,
.store-tablet-carousel-mode.gy-page,
body:has([class*="gy-"]) .store-tablet-carousel-container .store-tablet-carousel-mode,
.store-tablet-carousel-container.gy-page .store-tablet-carousel-mode {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* bodyのカルーセルモードクラス */
body.carousel-mode-active {
    overflow: hidden;
}

/* カルーセルモード中はフッターを非表示 */
body.carousel-mode-active footer,
body.carousel-mode-active .site-footer,
body.carousel-mode-active #footer,
body.carousel-mode-active .footer-area,
body.carousel-mode-active [class*="footer"] {
    display: none !important;
}

/* カルーセルヘッダー */
.carousel-header {
    display: flex;
    align-items: center;
    padding: 4px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    max-height: 80%; /* ヘッダーの最大高さを制限 */
    position: relative;
    z-index: 1;
}

/* gy-ページ用のカルーセルヘッダー - より強力なセレクタ */
body:has([class*="gy-"]) .carousel-header,
.carousel-header.gy-page,
body:has([class*="gy-"]) .store-tablet-carousel-container .carousel-header,
.store-tablet-carousel-container.gy-page .carousel-header,
.store-tablet-carousel-container.gy-page .carousel-header,
.store-tablet-carousel-mode.gy-page .carousel-header {
    background-color: #2d2d2d !important;
    background: #2d2d2d !important;
    border-bottom: 1px solid #404040 !important;
    box-shadow: none !important;
}

/* gy-ページ用のカルーセルヘッダー内のテキスト要素 */
body:has([class*="gy-"]) .carousel-header .carousel-title,
.carousel-header.gy-page .carousel-title,
body:has([class*="gy-"]) .store-tablet-carousel-container .carousel-header .carousel-title,
.store-tablet-carousel-container.gy-page .carousel-header .carousel-title,
.store-tablet-carousel-mode.gy-page .carousel-header .carousel-title {
    color: #ffffff !important;
}

/* gy-ページ用のh2要素 */
body:has([class*="gy-"]) .article h2,
.article.gy-page h2,
body:has([class*="gy-"]) h2,
h2.gy-page {
    background-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
}

/* gy-ページ用の見出し要素全般 */
body:has([class*="gy-"]) h2,
body:has([class*="gy-"]) h3,
body:has([class*="gy-"]) h4,
body:has([class*="gy-"]) h5,
body:has([class*="gy-"]) h6,
h2.gy-page,
h3.gy-page,
h4.gy-page,
h5.gy-page,
h6.gy-page {
    background-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
}

.carousel-header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 120px;
    height: 60px;
    background-image: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    opacity: 0.2;
    z-index: -1;
}

.carousel-logo {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 15px;
}

.carousel-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
    flex-grow: 1;
    letter-spacing: 0.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #333;
    text-transform: uppercase;
    position: relative;
}

/* gy-ページ用のカルーセルタイトル */
body:has([class*="gy-"]) .carousel-title,
.carousel-title.gy-page {
    color: #ffffff !important;
}

/* 言語選択UI */
.carousel-language-selector {
    position: relative;
    margin-left: auto;
    z-index: 10;
}

/* 国旗を含む言語選択UI */
.language-flags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.language-flag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 0 2px;
}

/* gy-ページ用の言語フラグアイテム */
body:has([class*="gy-"]) .language-flag-item,
.language-flag-item.gy-page {
    background-color: #2d2d2d !important;
    border: 2px solid #404040 !important;
}

.language-flag-item:hover,
.language-flag-item:focus {
    border-color: var(--carousel-accent-color, #CC2055);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* gy-ページ用の言語フラグアイテムホバー */
body:has([class*="gy-"]) .language-flag-item:hover,
body:has([class*="gy-"]) .language-flag-item:focus,
.language-flag-item.gy-page:hover,
.language-flag-item.gy-page:focus {
    background-color: #3a3a3a !important;
    border-color: #CC2055 !important;
}

.language-flag-item.active {
    border-color: var(--carousel-accent-color, #CC2055);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.language-flag-item.touch-active,
.language-flag-item:active {
    transform: scale(0.95);
    background-color: rgba(245, 245, 245, 0.9);
}

.flag-icon {
    width: 32px;
    height: 24px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lang-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-flag-item .lang-name {
    font-size: 12px;
    color: #333;
}

/* レスポンシブデザイン対応 */
@media screen and (max-width: 768px) {
    .language-flags-container {
        gap: 4px;
    }
    
    .language-flag-item {
        padding: 3px 6px;
    }
    
    .flag-icon {
        width: 20px;
        height: 14px;
    }
    
    .language-flag-item .lang-name {
        font-size: 11px;
    }
}

@media screen and (max-width: 640px) {
    .carousel-header {
        flex-wrap: wrap;
    }
    
    .carousel-language-selector {
        order: 3;
        width: 100%;
        margin-top: 8px;
    }
    
    .language-flags-container {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .language-flag-item {
        padding: 2px 4px;
    }
    
    .flag-icon {
        width: 18px;
        height: 12px;
    }
    
    .language-flag-item .lang-name {
        font-size: 10px;
    }
}

/* タブレット縦横対応のための追加スタイル */
@media screen and (orientation: portrait) {
    .carousel-language-selector {
        align-self: flex-start;
        margin-top: 8px;
    }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    .language-flags-container {
        gap: 4px;
    }
    
    .language-flag-item {
        padding: 2px 4px;
    }
    
    .flag-icon {
        width: 16px;
        height: 11px;
    }
}

/* 操作ガイド */
.carousel-interaction-guide {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.carousel-interaction-guide > div {
    padding: 5px 10px;
    background-color: rgba(204, 32, 85, 0.1);
    border-radius: 15px;
    font-size: 14px;
    color: #CC2055;
}

/* gy-ページ用の操作ガイド */
body:has([class*="gy-"]) .carousel-interaction-guide > div,
.carousel-interaction-guide.gy-page > div {
    color: #ffffff !important;
}

/* カルーセルスライダー */
.carousel-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 5; /* コンテンツのz-indexを設定 */
}

/* カルーセルスライド */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* スライドコンテンツ */
.slide-content {
    max-width: 1000px;
    width: 90%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    position: relative;
}

/* gy-ページ用のスライドコンテンツ */
body:has([class*="gy-"]) .slide-content,
.slide-content.gy-page {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* ラベル */
.slide-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #CC2055;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 2;
}

/* スライド画像コンテナの調整 */
.slide-image {
    flex: 1; /* 親要素のフレックスを維持 */
    padding: 20px; /* 周囲のパディング */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* はみ出し防止 */
    height: 350px; /* 例として固定の高さを指定 */
    position: relative; /* アスペクト比維持のためにも使える */
    transition: transform 0.3s ease;
}

.slide-image:hover {
    transform: scale(1.02);
}

.slide-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(204, 32, 85, 0.05), transparent 70%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-image:hover::before {
    opacity: 1;
}

/* スライド画像自体の調整 */
.slide-image img {
    max-width: 100%;
    max-height: 100%; /* 親コンテナの高さに合わせる */
    width: auto;     /* アスペクト比を維持しつつ幅を自動調整 */
    height: auto;    /* アスペクト比を維持しつつ高さを自動調整 */
    object-fit: contain; /* アスペクト比を維持しつつコンテナに収める */
    display: block; /* 中央寄せのため */
    margin: auto;   /* 中央寄せのため */
}

/* スライド情報 */
.slide-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

/* スライド情報内の商品名スタイル (元 h3相当) */
.slide-info .slide-product-name {
    font-size: 28px; /* 元のh3のスタイルに合わせるか、新しいデザインに合わせる */
    margin: 0 0 15px 0;
    color: #333;
    font-weight: bold; /* h3は通常太字なので */
    line-height: 1.2; /* 適宜調整 */
}

/* gy-ページ用の商品名 */
body:has([class*="gy-"]) .slide-info .slide-product-name,
.slide-info .slide-product-name.gy-page {
    color: #ffffff !important;
}

.slide-details {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.slide-category {
    margin-right: 10px;
    color: #555;
}

/* gy-ページ用のカテゴリー */
body:has([class*="gy-"]) .slide-category,
.slide-category.gy-page {
    color: #cccccc !important;
}

.slide-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: white;
}

.slide-description {
    margin: 0 0 20px 0;
    font-size: 16px; /* 少しフォントサイズを調整（元は18px） */
    line-height: 1.6; /* 行間を少し広めに */
    color: #444;     /* 文字色を少し濃く、読みやすく */
    flex-grow: 1;    /* flexコンテナ内でスペースを埋めるように */
    max-height: calc(1.6em * 4); /* 例: 4行分の高さを最大に設定 (line-height *行数) */
    overflow-y: auto; /* 内容が超えた場合はスクロールバーを表示 */
    word-break: break-word; /* 単語の途中でも折り返すように */
    padding-right: 5px; /* スクロールバーが表示された場合の右側の余白 */
}

/* gy-ページ用の説明文 */
body:has([class*="gy-"]) .slide-description,
.slide-description.gy-page {
    color: #cccccc !important;
}

.slide-price {
    font-size: 24px;
    font-weight: bold;
    color: #CC2055;
    display: none; /* デフォルトでは非表示 */
}

/* 価格表示を有効にした場合のみ表示 */
.store-tablet-carousel-container.show-price .slide-price {
    display: block;
}

/* カルーセルコントロール */
.carousel-controls {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* ドットナビゲーション */
.carousel-dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.carousel-dot {
    cursor: pointer;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 0 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

/* アニメーション表示を最優先する - 位置修正 */
.carousel-action-prompt {
    position: fixed !important; /* absoluteからfixedに変更 */
    bottom: 80px !important; /* Back to Product List ボタンの上に配置 */
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; /* 中央揃え */
    z-index: 99999 !important; /* さらに値を上げる */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0);
}

.carousel-action-prompt.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

.prompt-text {
    font-size: 22px;
    color: #333;
    margin-right: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
}

/* gy-ページ用のプロンプトテキスト */
body:has([class*="gy-"]) .prompt-text,
.prompt-text.gy-page {
    color: #ffffff !important;
    background-color: rgba(45, 45, 45, 0.8) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* タップアニメーションのサイズ調整 */
.tap-animation {
    width: 80px;
    height: 80px;
    background-image: url('https://chillaxy.jp/wp-content/uploads/2023/03/BRAND_UPDATES_827x827_9187d8c9-f2fc-4c4e-9210-5c1919c2488a_1600x_result.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 5px 25px rgba(204, 32, 85, 0.7); /* さらにシャドウを強調 */
    opacity: 0.95; /* 不透明度を上げる */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(1);
    margin: 0;
    display: inline-block;
}

.tap-animation.animate {
    animation: tap-pulse 2s infinite;
    box-shadow: 0 8px 30px rgba(204, 32, 85, 0.3);
}

/* タップアニメーションを強化 */
@keyframes tap-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(204, 32, 85, 0.3);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
        box-shadow: 0 0 0 15px rgba(204, 32, 85, 0);
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(204, 32, 85, 0);
    }
}

/* アニメーション表示時の背景処理 */
.carousel-action-prompt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2); /* より薄く */
    z-index: -1;
    border-radius: 0;
}

/* ミニマルデザイン用のタップアニメーションカスタマイズ */
.carousel-design-minimal .carousel-action-prompt {
    margin: 20px 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(204, 32, 85, 0.05), rgba(255, 255, 255, 0));
    padding: 10px 20px;
    border-radius: 30px;
}

.carousel-design-minimal .prompt-text {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #333;
    text-transform: uppercase;
}

.carousel-design-minimal .tap-animation {
    width: 45px;
    height: 45px;
    box-shadow: 0 3px 12px rgba(204, 32, 85, 0.15);
    position: relative;
}

.carousel-design-minimal .tap-animation::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(204, 32, 85, 0.3);
    opacity: 0;
    animation: border-pulse 2s infinite;
}

@keyframes border-pulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .carousel-action-prompt {
        margin: 10px 0;
    }
    
    .prompt-text {
        font-size: 16px;
    }
    
    .tap-animation {
        width: 40px;
        height: 40px;
    }
    
    .carousel-design-minimal .prompt-text {
        font-size: 14px;
    }
    
    .carousel-design-minimal .tap-animation {
        width: 38px;
        height: 38px;
    }
}

/* 戻るボタン */
.carousel-exit-button {
    padding: 0 20px 20px;
    display: flex;
    justify-content: center;
    margin-top: -10px;
}

.carousel-exit-button button {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.carousel-exit-button button:hover {
    background-color: rgba(204, 32, 85, 0.1);
    border-color: rgba(204, 32, 85, 0.3);
    color: #CC2055;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* gy-ページ用の戻るボタン */
body:has([class*="gy-"]) .carousel-exit-button button,
.carousel-exit-button.gy-page button {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid #404040 !important;
}

body:has([class*="gy-"]) .carousel-exit-button button:hover,
.carousel-exit-button.gy-page button:hover {
    background-color: #3a3a3a !important;
}

/*
 * デザインバリエーション
 */

/* ミニマルデザイン */
.carousel-design-minimal .slide-content {
    border-radius: 0;
    box-shadow: none;
    padding: 40px;
    background-color: #fff;
    max-width: 1100px;
    width: 95%;
    display: flex;
    align-items: stretch;
    position: relative; /* 位置指定のために追加 */
}

/* gy-ページ用のミニマルデザインスライドコンテンツ */
body:has([class*="gy-"]) .carousel-design-minimal .slide-content,
.carousel-design-minimal .slide-content.gy-page {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.carousel-design-minimal .slide-image {
    margin-right: 40px;
    border-radius: 0;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 10px;
    overflow: hidden;
}

.carousel-design-minimal .slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.carousel-design-minimal .slide-product-name {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

/* gy-ページ用のミニマルデザイン商品名 */
body:has([class*="gy-"]) .carousel-design-minimal .slide-product-name,
.carousel-design-minimal .slide-product-name.gy-page {
    color: #ffffff !important;
}

.carousel-design-minimal .slide-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.carousel-design-minimal .slide-description {
    font-size: 18px;
    line-height: 1.8;
    max-height: calc(1.8em * 5);
    margin-bottom: 30px;
    overflow-y: auto;
}

/* gy-ページ用のミニマルデザイン説明文 */
body:has([class*="gy-"]) .carousel-design-minimal .slide-description,
.carousel-design-minimal .slide-description.gy-page {
    color: #cccccc !important;
}

/* ミニマルデザインでのカテゴリー表示変更 */
.carousel-design-minimal .slide-details {
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: 0;
    gap: 6px;
}

.carousel-design-minimal .slide-category {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    background-color: #CC2055;
    color: white;
    margin: 0;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(204, 32, 85, 0.3);
    transition: all 0.2s ease;
}

.carousel-design-minimal .slide-type {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.carousel-design-minimal .slide-label-inline {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    background-color: #CC2055;
    color: white;
    margin: 0;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(204, 32, 85, 0.3);
    transition: all 0.2s ease;
}

.carousel-design-minimal .carousel-dot {
    width: 30px;
    height: 4px;
    border-radius: 2px;
}

.carousel-design-minimal .carousel-dot.active {
    width: 50px;
}

/* カードスタイル */
.carousel-design-card .slide-content {
    flex-direction: column;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-design-card .slide-image {
    width: 100%;
    height: 300px;
    padding: 0;
}

.carousel-design-card .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-design-card .slide-info {
    padding: 20px;
}

.carousel-design-card .slide-product-name {
    font-size: 24px;
    text-align: center;
}

.carousel-design-card .slide-details {
    justify-content: center;
}

/* フルスクリーンデザイン */
.carousel-design-fullscreen .carousel-slide {
    padding: 0;
}

.carousel-design-fullscreen .slide-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

.carousel-design-fullscreen .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
}

.carousel-design-fullscreen .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-design-fullscreen .slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px;
    z-index: 2;
}

.carousel-design-fullscreen .slide-product-name,
.carousel-design-fullscreen .slide-description {
    color: white;
}

/* 分割画面デザイン */
.carousel-design-split .slide-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.carousel-design-split .slide-image {
    flex: 0 0 50%;
    height: 100%;
    padding: 0;
    background-color: #f5f5f5;
}

.carousel-design-split .slide-image img {
    height: 80%;
    max-height: 80vh;
    max-width: 80%;
}

.carousel-design-split .slide-info {
    flex: 0 0 50%;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* グリッドデザイン */
.carousel-design-grid .carousel-slider {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    overflow-y: auto;
}

.carousel-design-grid .carousel-slide {
    position: relative;
    width: 50%;
    height: 300px;
    padding: 10px;
    opacity: 1;
    visibility: visible;
}

.carousel-design-grid .slide-content {
    height: 100%;
    flex-direction: column;
}

.carousel-design-grid .slide-image {
    height: 60%;
}

.carousel-design-grid .slide-info {
    height: 40%;
    padding: 15px;
}

.carousel-design-grid .slide-product-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.carousel-design-grid .slide-description {
    font-size: 14px;
    max-height: calc(1.4em * 2);
}

.carousel-design-grid .carousel-dots {
    display: none;
}

.carousel-design-grid .carousel-action-prompt {
    display: none;
}

/*
 * インタラクション方式によるスタイル
 */

/* スワイプインタラクション */
.carousel-interaction-swipe .carousel-slider {
    cursor: grab;
}

.carousel-interaction-swipe .carousel-slider:active {
    cursor: grabbing;
}

.carousel-interaction-swipe .swipe-guide {
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(204, 32, 85, 0.1), rgba(204, 32, 85, 0.2), rgba(204, 32, 85, 0.1));
    border-radius: 20px;
    padding: 5px 15px;
}

.carousel-interaction-swipe .swipe-guide:before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('https://chillaxy.jp/wp-content/uploads/2023/03/BRAND_UPDATES_827x827_9187d8c9-f2fc-4c4e-9210-5c1919c2488a_1600x_result.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    border-radius: 50%;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ジェスチャーインタラクション */
.carousel-interaction-gesture .gesture-guide {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(204, 32, 85, 0.1), rgba(204, 32, 85, 0.2), rgba(204, 32, 85, 0.1));
    border-radius: 20px;
    padding: 5px 15px;
}

.carousel-interaction-gesture .gesture-guide:before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('https://chillaxy.jp/wp-content/uploads/2023/03/BRAND_UPDATES_827x827_9187d8c9-f2fc-4c4e-9210-5c1919c2488a_1600x_result.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    border-radius: 50%;
}

/* ホバーインタラクション */
.carousel-interaction-hover .hover-guide {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(204, 32, 85, 0.1), rgba(204, 32, 85, 0.2), rgba(204, 32, 85, 0.1));
    border-radius: 20px;
    padding: 5px 15px;
}

.carousel-interaction-hover .hover-guide:before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('https://chillaxy.jp/wp-content/uploads/2023/03/BRAND_UPDATES_827x827_9187d8c9-f2fc-4c4e-9210-5c1919c2488a_1600x_result.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
    border-radius: 50%;
}

/*
 * フィードバック強化
 */
.carousel-feedback-enhanced .carousel-dot.active {
    box-shadow: 0 0 0 3px rgba(204, 32, 85, 0.3);
}

.carousel-feedback-enhanced .carousel-exit-button button {
    position: relative;
    overflow: hidden;
}

.carousel-feedback-enhanced .carousel-exit-button button:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.carousel-feedback-enhanced .carousel-exit-button button:active:after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

.carousel-feedback-enhanced .carousel-slide {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .carousel-header {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .carousel-title {
        width: 100%;
        margin-bottom: 10px;
        font-size: 20px;
    }
    
    .carousel-language-selector {
        margin-left: 0;
        margin-right: 10px;
    }
    
    .language-selector-toggle {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-selector-dropdown {
        width: 150px;
    }
    
    .carousel-interaction-guide {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .slide-content {
        flex-direction: column;
    }
    
    .slide-image {
        width: 100%; /* レスポンシブ時は幅100% */
        padding: 10px;
        height: 250px; /* モバイルでは少し高さを抑えるなど */
    }
    
    .slide-info {
        width: 100%;
        padding: 15px;
    }
    
    .slide-info .slide-product-name {
        font-size: 22px; /* モバイルでのフォントサイズ */
    }
    
    .slide-description {
        font-size: 14px; /* モバイルでのフォントサイズ */
        margin-bottom: 10px;
        max-height: calc(1.6em * 3); /* 例: 3行分の高さを最大に設定 */
    }
    
    .slide-price {
        font-size: 20px;
    }
    
    /* デザインバリエーションのレスポンシブ対応 */
    .carousel-design-minimal .slide-content {
        padding: 20px;
    }
    
    .carousel-design-minimal .slide-image {
        margin-right: 0;
        height: 250px;
    }
    
    .carousel-design-minimal .slide-product-name {
        font-size: 24px;
    }
    
    .carousel-design-split .slide-content {
        flex-direction: column;
    }
    
    .carousel-design-split .slide-image,
    .carousel-design-split .slide-info {
        flex: none;
        width: 100%;
        height: auto;
    }
    
    .carousel-design-split .slide-info {
        padding: 20px;
    }
    
    .carousel-design-grid .carousel-slide {
        width: 100%;
    }
}

/* 固定ラベル「Relaxation」のスタイル - z-indexを上げて確実に表示 */
.carousel-design-minimal .fixed-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #CC2055;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 20; /* 値を上げてラベルが隠れないようにする */
    font-size: 14px;
}

/* スライドトランジション効果 */
.slide-exit-left {
    animation: slide-out-left 0.5s forwards !important;
}

.slide-exit-right {
    animation: slide-out-right 0.5s forwards !important;
}

.slide-enter-left {
    animation: slide-in-left 0.5s forwards !important;
}

.slide-enter-right {
    animation: slide-in-right 0.5s forwards !important;
}

@keyframes slide-out-left {
    to {
        transform: translateX(-5%);
        opacity: 0;
    }
}

@keyframes slide-out-right {
    to {
        transform: translateX(5%);
        opacity: 0;
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-5%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(5%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CHILLAXYロゴの視認性と活用改善 */

/* ヘッダーからロゴを削除 */
.carousel-header::before {
    display: none; /* ヘッダー左側のロゴを非表示 */
}

/* 既存のbackground-imageを改良（不透明度アップ、サイズ調整） */
.carousel-header::after {
    opacity: 0.2; /* 0.15から0.2へ変更 - より見やすく */
    width: 120px; /* 100pxから120pxへ変更 - より大きく */
    height: 60px; /* 50pxから60pxへ変更 - より大きく */
    right: 15px; /* 20pxから15pxへ変更 - 位置調整 */
}

/* 各スライドにもブランドロゴを追加 */
.slide-content::after {
    content: "";
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background-image: url('https://chillaxy.jp/wp-content/uploads/2023/03/BRAND_UPDATES_827x827_9187d8c9-f2fc-4c4e-9210-5c1919c2488a_1600x_result.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-content:hover::after {
    opacity: 0.25;
    transform: scale(1.05);
}

/* ミニマルデザインのロゴ配置とデザイン改善 */
.carousel-design-minimal .slide-content::after {
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    opacity: 0.15;
}

/* カテゴリーとラベルのカラーをロゴに合わせる */
.carousel-design-minimal .slide-category,
.carousel-design-minimal .slide-label-inline,
.slide-label,
.fixed-label {
    background-color: #CC2055; /* CHILLAXYピンク */
    box-shadow: 0 2px 5px rgba(204, 32, 85, 0.3);
    transition: all 0.2s ease;
}

/* ドットナビゲーションも同様にカラー調整 */
.carousel-dot.active {
    background-color: #CC2055;
    box-shadow: 0 1px 4px rgba(204, 32, 85, 0.5);
}

/* ジェスチャーガイドのスタイルを強化 */
.carousel-interaction-gesture .gesture-guide {
    background: linear-gradient(to right, rgba(204, 32, 85, 0.1), rgba(204, 32, 85, 0.2), rgba(204, 32, 85, 0.1));
    border-radius: 20px;
    padding: 5px 15px;
}

/* 商品画像ホバー効果 */
.slide-image {
    transition: transform 0.3s ease;
    position: relative;
}

.slide-image:hover {
    transform: scale(1.02);
}

/* 画像にオーバーレイ効果を追加 */
.slide-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(204, 32, 85, 0.05), transparent 70%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-image:hover::before {
    opacity: 1;
}

/* 「戻る」ボタンのデザイン改善 */
.carousel-exit-button button {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.carousel-exit-button button:hover {
    background-color: rgba(204, 32, 85, 0.1);
    border-color: rgba(204, 32, 85, 0.3);
    color: #CC2055;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* スライド全体のトランジション改善 */
.carousel-slide {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* アクティブスライドのエフェクト強化 */
.carousel-slide.active .slide-content {
    animation: slide-fade-in 0.6s forwards;
}

@keyframes slide-fade-in {
    from {
        opacity: 0.8;
        transform: translateY(10px) scale(0.98);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

/* TOPページカルーセル用の特別スタイル */
.top-page-carousel .language-flags-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px auto;
    width: auto;
    max-width: 100%;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-page-carousel .language-flag-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 5px;
    padding: 5px 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}

.top-page-carousel .language-flag-item:hover,
.top-page-carousel .language-flag-item:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.top-page-carousel .flag-icon {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 32px;
    min-height: 24px;
}

.top-page-carousel .lang-name {
    display: block;
    margin-left: 5px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

/* カルーセルヘッダー調整 */
.top-page-carousel .carousel-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
    justify-content: center;
}

.top-page-carousel .carousel-title {
    text-align: center;
    margin: 10px 0;
    width: 100%;
    font-size: 22px;
}

.top-page-carousel .carousel-language-selector {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .top-page-carousel .language-flags-container {
        padding: 3px;
        margin: 10px auto;
    }
    
    .top-page-carousel .language-flag-item {
        margin: 3px;
        padding: 4px 6px;
    }
    
    .top-page-carousel .lang-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-page-carousel .language-flags-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-page-carousel .language-flag-item {
        margin: 2px;
        padding: 3px 5px;
    }
    
    .top-page-carousel .flag-icon {
        min-width: 28px;
        min-height: 21px;
    }
    
    .top-page-carousel .lang-name {
        font-size: 11px;
    }
    
    .top-page-carousel .carousel-title {
        font-size: 18px;
    }
}

/* アクティブ言語のハイライト */
.top-page-carousel .language-flag-item.active {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(204, 32, 85, 0.5);
    box-shadow: 0 2px 8px rgba(204, 32, 85, 0.2);
    font-weight: bold;
}

/* 各デザインバリエーションへの調整 */
.top-page-carousel.carousel-design-minimal .language-flags-container {
    background-color: rgba(255, 255, 255, 0.95);
}

.top-page-carousel.carousel-design-card .language-flags-container {
    border-radius: 15px;
}

.top-page-carousel.carousel-design-fullscreen .language-flags-container {
    background-color: rgba(255, 255, 255, 0.8);
}

/* TOPページシンプルヘッダー */
.carousel-simple-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 10px;
    background-color: transparent;
    border-bottom: none;
    text-align: center;
    position: relative;
    margin-bottom: 15px;
}

/* gy-ページ用のTOPページシンプルヘッダー */
body:has([class*="gy-"]) .carousel-simple-header,
.carousel-simple-header.gy-page {
    background-color: #2d2d2d !important;
    border-bottom: 1px solid #404040 !important;
    box-shadow: none !important;
}

.carousel-simple-header::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 60px;
    background-image: url('https://chillaxy.jp/wp-content/uploads/2023/03/BRAND_UPDATES_827x827_9187d8c9-f2fc-4c4e-9210-5c1919c2488a_1600x_result.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    z-index: -1;
}

.carousel-simple-header .carousel-logo {
    width: 60px;
    height: 60px;
    background-image: url('https://chillaxy.jp/wp-content/uploads/2023/03/BRAND_UPDATES_827x827_9187d8c9-f2fc-4c4e-9210-5c1919c2488a_1600x_result.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
}

.carousel-simple-header .carousel-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
    max-width: 80%;
    text-align: center;
    line-height: 1.3;
}

/* TOPページでの国旗非表示 */
.top-page-carousel .language-flags-container {
    display: none !important;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .carousel-simple-header {
        padding: 15px 15px 5px;
    }
    
    .carousel-simple-header .carousel-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .carousel-simple-header .carousel-title {
        font-size: 20px;
        max-width: 90%;
    }
    
    .top-page-carousel .carousel-slider {
        min-height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-simple-header .carousel-logo {
        width: 40px;
        height: 40px;
    }
    
    .carousel-simple-header .carousel-title {
        font-size: 18px;
    }
    
    .top-page-carousel .carousel-slider {
        min-height: 200px;
    }
}

/* ダミースライドパターン */
.dummy-slide .slide-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-repeat: repeat;
}

.dummy-slide .slide-pattern.dots {
    background-image: radial-gradient(circle, #000 2px, transparent 2px);
    background-size: 15px 15px;
}

.dummy-slide .slide-pattern.waves {
    background-image: repeating-linear-gradient(45deg, 
                      rgba(0, 0, 0, 0.1) 0px, 
                      rgba(0, 0, 0, 0.1) 2px, 
                      transparent 2px, 
                      transparent 10px);
}

.dummy-slide .slide-pattern.grid {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* TOPページカルーセル特有のスタイル */
.top-page-carousel {
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* 通常モード（非表示） */
.top-page-carousel .store-tablet-normal-mode {
    display: none !important;
}

/* カルーセルモード（常に表示） */
.top-page-carousel .store-tablet-carousel-mode {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 200px;
    background-color: transparent;
    z-index: 1;
    overflow: visible;
    display: block;
    display: flex;
    flex-direction: column;
}

/* TOPページ固定ヘッダー */
.top-page-header {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.top-page-header .header-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 180px;
    overflow: hidden;
}

.top-page-header .header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-repeat: repeat;
    z-index: 0;
}

.top-page-header .header-pattern.dots {
    background-image: radial-gradient(circle, #000 2px, transparent 2px);
    background-size: 15px 15px;
}

.top-page-header .header-pattern.waves {
    background-image: repeating-linear-gradient(45deg, 
                      rgba(0, 0, 0, 0.1) 0px, 
                      rgba(0, 0, 0, 0.1) 2px, 
                      transparent 2px, 
                      transparent 10px);
}

.top-page-header .header-pattern.grid {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.top-page-header .brand-logo {
    width: 80px;
    height: 80px;
    background-image: url('https://chillaxy.jp/wp-content/uploads/2023/03/BRAND_UPDATES_827x827_9187d8c9-f2fc-4c4e-9210-5c1919c2488a_1600x_result.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.top-page-header .header-text-container {
    position: relative;
    z-index: 1;
}

.top-page-header .header-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.top-page-header .header-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* TOPページでカルーセルがアクティブ時のbodyスタイル - 無効化 */
body.top-page-carousel-active {
    overflow: visible;
}

/* TOPページサイズ別調整 */
@media screen and (max-width: 768px) {
    .carousel-simple-header {
        padding: 15px 15px 5px;
    }
    
    .carousel-simple-header .carousel-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .carousel-simple-header .carousel-title {
        font-size: 20px;
        max-width: 90%;
    }
    
    .top-page-carousel .carousel-slider {
        min-height: 250px;
    }
    
    .top-page-header .header-content {
        padding: 30px 15px;
        min-height: 150px;
    }
    
    .top-page-header .brand-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .top-page-header .header-title {
        font-size: 24px;
    }
    
    .top-page-header .header-subtitle {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-simple-header .carousel-logo {
        width: 40px;
        height: 40px;
    }
    
    .carousel-simple-header .carousel-title {
        font-size: 18px;
    }
    
    .top-page-carousel .carousel-slider {
        min-height: 200px;
    }
    
    .top-page-header .header-content {
        padding: 20px 10px;
        min-height: 130px;
    }
    
    .top-page-header .brand-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .top-page-header .header-title {
        font-size: 20px;
    }
    
    .top-page-header .header-subtitle {
        font-size: 14px;
    }
}

/* ダミースライドの追加スタイル - 後方互換性のため残す */
.top-page-carousel .dummy-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0) scale(0.95);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.top-page-carousel .dummy-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.top-page-carousel .dummy-slide .slide-content {
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.top-page-carousel .slide-image {
    min-height: 200px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.top-page-carousel .slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* TOPページカルーセルの非アクティブ状態 (商品情報を表示) */
.top-page-carousel.less-prominent .store-tablet-carousel-mode {
    opacity: 0.9;
    transition: opacity 0.5s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.top-page-carousel.less-prominent .top-page-header {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.top-page-carousel.less-prominent .carousel-slider {
    min-height: 380px;
}

.top-page-carousel.less-prominent .carousel-dots {
    opacity: 0.4;
}

.top-page-carousel.less-prominent .carousel-slide.product-slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    height: auto !important;
}

.top-page-carousel.less-prominent .carousel-slide .slide-content {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.top-page-carousel.less-prominent .carousel-slide:hover .slide-content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.top-page-carousel.less-prominent .slide-image {
    height: 250px;
    min-height: 150px;
}

.top-page-carousel.less-prominent .slide-image img {
    max-height: 200px;
    transition: transform 0.3s ease;
}

.top-page-carousel.less-prominent .slide-image:hover img {
    transform: scale(1.05);
}

/* TOPページ非アクティブ時のレスポンシブ対応 */
@media screen and (max-width: 768px) {
    .top-page-carousel.less-prominent .store-tablet-carousel-mode {
        min-height: 320px;
    }
    
    .top-page-carousel.less-prominent .carousel-slider {
        min-height: 300px;
    }
    
    .top-page-carousel.less-prominent .slide-image {
        height: 180px;
    }
    
    .top-page-carousel.less-prominent .slide-image img {
        max-height: 160px;
    }
}

@media screen and (max-width: 480px) {
    .top-page-carousel.less-prominent .store-tablet-carousel-mode {
        min-height: 280px;
    }
    
    .top-page-carousel.less-prominent .carousel-slider {
        min-height: 260px;
    }
    
    .top-page-carousel.less-prominent .slide-image {
        height: 160px;
    }
    
    .top-page-carousel.less-prominent .slide-image img {
        max-height: 140px;
    }
}