/* QueenRabbit Asset Shop - Main Stylesheet */
/* Extracted from QR_index.html design */

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

:root {
    --wine-red: #8B1538;
    --wine-red-dark: #5C0E25;
    --white: #FFFFFF;
    --black: #0A0A0A;
    --gold: #D4AF37;
    --gold-light: #F4E4B0;
    --gold-deep: #B8912A;      /* 羊皮紙上でも読める深めの金 */
    --ink: #3A2E22;            /* インクの焦げ茶 */
    --ink-light: #7A6A55;
    --parchment: #EFE6D2;      /* 羊皮紙ベース */
    --parchment-dark: #E3D6BB;
    --parchment-card: #F7F0E1;
    --sidebar-width: 280px;
}

body {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    background: var(--parchment);
    color: var(--ink);
    overflow-x: hidden;
}

/* 羊皮紙画像：1枚もの。サイドメニューの右側に潜り込む位置から画面右端まで敷く */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: calc(var(--sidebar-width) * 9 / 10);
    right: 0;
    bottom: 0;
    background: url('../image/icon/web_background.webp') center / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* ==================== Sidebar ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(160deg, #2E1A12 0%, #241108 60%, #2E1A12 100%);
    /* 左右均等パディング。下部はギア画像（下端から約75pxせり出す）にカテゴリが被らないよう余白を確保 */
    padding: 40px 30px 100px 30px;
    z-index: 1000;
    box-shadow: 6px 0 25px rgba(58, 46, 34, 0.4);
    border-right: 3px double rgba(212, 175, 55, 0.5);
    border-radius: 0 20px 20px 0;
    overflow: hidden;
}

/* 革の型押し風フレーム */
.sidebar::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 0 12px 12px 0;
    pointer-events: none;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* サイドメニューのロゴ：QueenRabbitの文字をfavicon画像へ置換（文字の高さ・位置は維持／グロー抑えめ）
   ※CSSのみで全ページ（商品ページ含む）に反映。HTML変更・再生成は不要。文字はDOMに残しSEO/読み上げ用に保持 */
.logo {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: transparent;            /* 文字を隠す（高さは従来どおり維持したまま画像に置換） */
    white-space: nowrap;
    text-align: center;
    /* ロゴを少し下げつつHOME以下は動かさない（上下マージン合計30pxを維持したまま配分変更） */
    margin: 10px 0 20px 0;
    text-decoration: none;
    display: block;
    cursor: pointer;
    background: url('../image/icon/favicon.webp') center / contain no-repeat;
    /* エンボス（浮き彫り）風：左上に明るいハイライト＋右下に暗い影で輪郭を立たせる */
    filter: drop-shadow(-1px -1px 0 rgba(244, 228, 176, 0.5)) drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.55));
    /* 表示のみ1.5倍に拡大（transformなのでレイアウト＝HOME等の位置/高さには影響しない） */
    transform: scale(1.8);
    transform-origin: center;
    transition: filter 0.3s ease;
}

.logo:hover {
    /* ホバー時は浮き彫りを少し強調 */
    filter: drop-shadow(-1px -1px 0 rgba(244, 228, 176, 0.7)) drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.65));
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
                   0 0 40px rgba(212, 175, 55, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8),
                   0 0 60px rgba(212, 175, 55, 0.5),
                   0 0 80px rgba(212, 175, 55, 0.3);
    }
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
    opacity: 0;
    /* 各項目が上から降りて並ぶ。カテゴリ項目の時間差はJS側で連続的に付与する */
    animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    color: #B09A76;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    border: none;
}

/* ホバー時：ぼかしの入ったワインレッドの光が浮かぶ（QR_indexと同仕様） */
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(139, 21, 56, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: -1;
    transform: scale(0);
    filter: blur(8px);
}

.nav-link:hover::before {
    transform: scale(1);
}

.nav-link:hover {
    color: var(--gold);
    letter-spacing: 1.5px;
}

.nav-link.active {
    color: var(--gold);
    font-weight: 600;
}

.nav-count {
    position: absolute;
    right: 15px;
    background: rgba(139, 21, 56, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-label {
    text-align: center;
    color: rgba(212, 175, 55, 0.6);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    /* HOME↔ラベル↔カテゴリ一覧の空きを35pxに統一（上側は8pxのnav-item余白と合算されるため上マージンを12pxに） */
    margin: 12px 0 20px 0;
    font-weight: 600;
    opacity: 0;
    animation: fadeInDown 0.5s ease forwards;
    animation-delay: 0.1s;
}

.nav-divider {
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
    margin: 8px 20px;
}

/* カテゴリ一覧：はみ出したらスクロール（スクロールバー非表示・案4）
   端のフェードは mask-image で「中身自体を透明に消す」方式。背景色に依存しないため境界が出ない。
   ※max-heightに収まる間（現状9個）はスクロールが起きず、--fade-* も 0 のままで見た目・文字位置は不変。
     10個以上ではみ出すと内部スクロールし、続きがある側の端だけ中身が透明にフェードする。 */
#category-menu {
    position: relative;               /* 子項目の offsetTop をこの要素基準にする */
    overflow-y: auto;
    overflow-x: hidden;
    /* 高さは9個フル＋10個目の覗き分にJSで固定（下のcalcはフォールバック） */
    max-height: calc(100vh - 310px);
    scrollbar-width: none;            /* Firefox: バー非表示 */
    /* 続きがある側だけ JS が 36px を設定。無い側は 0px＝フェードなし */
    --fade-top: 0px;
    --fade-bottom: 0px;
    -webkit-mask-image: linear-gradient(to bottom,
        transparent 0,
        #000 var(--fade-top),
        #000 calc(100% - var(--fade-bottom)),
        transparent 100%);
    mask-image: linear-gradient(to bottom,
        transparent 0,
        #000 var(--fade-top),
        #000 calc(100% - var(--fade-bottom)),
        transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

#category-menu::-webkit-scrollbar {
    display: none;                    /* Chrome / Safari: バー非表示 */
}

/* Gear decoration */
/* Gear decoration */
.gear {
    position: absolute;
    bottom: -100px;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translateX(-50%);
    color: rgba(212, 175, 55, 0.3);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

/* ==================== Main Content ==================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 80px;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ==================== Header ==================== */
.top-header {
    background: var(--parchment-dark);
    /* ヘッダーは画面左端まで伸ばしつつ、検索窓の位置は従来どおり（サイドメニュー幅分の左パディングで維持） */
    padding: 20px 30px 20px calc(var(--sidebar-width) + 30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(122, 90, 40, 0.3);
    box-shadow: 0 2px 12px rgba(58, 46, 34, 0.12);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.header-search-input {
    width: 100%;
    padding: 12px 20px;
    background: var(--parchment-card);
    border: 1px solid rgba(122, 90, 40, 0.4);
    border-radius: 25px;
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(58, 46, 34, 0.1);
}

.header-search-input::placeholder {
    color: var(--ink-light);
}

.header-search-input:focus {
    border-color: var(--gold-deep);
    box-shadow: 0 0 12px rgba(184, 145, 42, 0.25);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    background: var(--parchment-card);
    border: 1px solid rgba(122, 90, 40, 0.4);
    border-radius: 20px;
    overflow: hidden;
}

.lang-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--ink-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: var(--gold-light);
}

.lang-btn:hover:not(.active) {
    background: rgba(139, 21, 56, 0.1);
    color: var(--wine-red);
}

/* ==================== Content Area ==================== */
.content-area {
    padding: 20px 30px 60px 30px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 15px;
}

.breadcrumb a {
    color: var(--wine-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb-separator {
    color: #999;
}

/* Category Title */
.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--wine-red);
    margin-bottom: 20px;
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    padding-bottom: 15px;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    max-width: 300px;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
        rgba(122, 90, 40, 0.4) 0%,
        rgba(122, 90, 40, 0.4) 70%,
        rgba(122, 90, 40, 0.25) 85%,
        transparent 100%);
}

/* ==================== Footer ==================== */
.footer {
    background: transparent; /* Bodyの羊皮紙画像をそのまま見せる */
    padding: 25px 60px;
    text-align: center;
    color: var(--ink-light);
    font-size: 13px;
    border-top: 3px double rgba(122, 90, 40, 0.4);
    animation: fadeIn 1s ease;
    margin-left: var(--sidebar-width);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright {
    color: var(--ink);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-link {
    color: var(--ink-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 13px;
}

.footer-link:hover {
    color: var(--wine-red);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== Sort & Filter Bar ==================== */
.sort-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    padding: 18px;
    background: var(--parchment-card);
    border: 1px solid rgba(122, 90, 40, 0.35);
    border-radius: 10px;
    animation: slideInRight 0.6s ease;
}

.sort-label {
    font-size: 11px;
    color: var(--ink-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 並び替えとモデルタイプを横並びに（各グループはラベル＋ボタンの縦組み）。
   区切り線は撤去したが、その線ぶんの間隔はgapで確保 */
.sort-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 32px;
}

.sort-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sort-btn,
.type-btn {
    padding: 5px 12px;
    background: var(--parchment-card);
    border: 1.5px solid rgba(122, 90, 40, 0.4);
    border-radius: 15px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sort-btn::before,
.type-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine-red), var(--gold));
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.sort-btn:hover::before,
.type-btn:hover::before {
    width: 300px;
    height: 300px;
}

.sort-btn:hover,
.type-btn:hover {
    color: var(--white);
    border-color: var(--wine-red);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(139, 21, 56, 0.2);
}

.sort-btn.active,
.type-btn.active {
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: var(--white);
    border-color: var(--wine-red);
    box-shadow: 0 0 10px rgba(139, 21, 56, 0.3);
}

.filter-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.filter-btn {
    padding: 5px 12px;
    background: var(--parchment-card);
    border: 1.5px solid rgba(122, 90, 40, 0.4);
    border-radius: 15px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine-red), var(--gold));
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    color: var(--white);
    border-color: var(--wine-red);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(139, 21, 56, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: var(--white);
    border-color: var(--wine-red);
    box-shadow: 0 0 20px rgba(139, 21, 56, 0.4);
}

/* ==================== Product Grid ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--parchment-card);
    /* 外枠2px・色はタイプ別（.real=金 / .cel=ワイン）。未指定時は茶系フォールバック */
    border: 2px solid rgba(122, 90, 40, 0.45);
    border-radius: 16px;
    overflow: visible;
    /* ホバーのグロー色（タイプ別に上書き。既定はワインレッド） */
    --glow-strong: rgba(139, 21, 56, 0.45);
    --glow-soft: rgba(139, 21, 56, 0.2);
    box-shadow: 0 3px 12px rgba(58, 46, 34, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
}

/* タイプ別：リアル系＝金色枠＋金グロー、セル調＝ワインレッド枠＋ワイングロー */
.product-card.real {
    border-color: var(--gold);
    --glow-strong: rgba(212, 175, 55, 0.5);
    --glow-soft: rgba(212, 175, 55, 0.22);
}

.product-card.cel {
    border-color: var(--wine-red);
    --glow-strong: rgba(139, 21, 56, 0.5);
    --glow-soft: rgba(139, 21, 56, 0.22);
}

.product-card.visible {
    animation: cardSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ホバー：浮き上がり＋淡いワインレッドのグロー（魔法のオーラ風） */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 30px rgba(58, 46, 34, 0.2),
                0 0 25px var(--glow-strong),
                0 0 50px var(--glow-soft);
}

.product-card:hover .product-description {
    color: var(--ink);
}

/* カードのホバー案内ツールチップ（サムネイルに被らないようカード上端の外側に表示） */
.card-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: var(--gold-light);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 4px 14px rgba(139, 21, 56, 0.4);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 6;
}

/* 吹き出しの下向き三角 */
.card-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--wine-red-dark);
}

.product-card:hover .card-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-image {
    width: 100%;
    /* サムネイル（3:2）が切り取られないよう、枠も3:2で可変にする */
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, #E8DCC2 0%, #D8C9A5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
    /* 枠線の内側カーブ（外側16px − 枠線2px = 14px）に合わせ、上角の隙間をなくす */
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid rgba(122, 90, 40, 0.3);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 横長（≒3:2）サムネイルはcoverで隙間なく表示（JSのfitThumbnailが元比率を判定して付与） */
.product-image img.cover {
    object-fit: cover;
}

.product-info {
    padding: 16px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* 枠線の内側カーブ（14px）に合わせて下角を明示（上角と対称に管理） */
    border-radius: 0 0 14px 14px;
}

/* 内側の枠線（二重罫線）：画像のない下半分だけを囲う。上（左右）=角なし、下（左右）=角丸を維持。画像には被らない */
.product-info::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(122, 90, 40, 0.25);
    border-radius: 0 0 11px 11px;
    pointer-events: none;
    z-index: 2;
    transition: border-color 0.3s ease;
}

.product-card:hover .product-info::before {
    border-color: rgba(184, 145, 42, 0.5);
}

/* タグ：サムネイル左上にオーバーレイ表示（クリックでタグ絞り込みへ） */
.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.tag {
    padding: 4px 12px;
    background: rgba(247, 240, 225, 0.92);
    border: 1px solid rgba(139, 21, 56, 0.3);
    border-radius: 12px;
    font-size: 11px;
    color: var(--wine-red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: var(--gold-light);
    border-color: var(--wine-red);
}

/* 画像準備中プレースホルダー（カード・詳細ギャラリー共通） */
.img-preparing {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        radial-gradient(ellipse at center, rgba(247, 240, 225, 0.5) 0%, transparent 75%),
        linear-gradient(135deg, #E8DCC2 0%, #D8C9A5 100%);
}

.img-preparing::before {
    content: '✦';
    color: var(--gold-deep);
    font-size: 14px;
    opacity: 0.8;
}

.preparing-title {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--gold-deep);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.preparing-sub {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--ink-light);
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
}

/* 説明文（うたい文句）は4行表示 */
.product-description {
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 12px;
    line-height: 1.6;
    height: 84px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed rgba(122, 90, 40, 0.4);
    margin-top: auto;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--wine-red);
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
}

.product-price-usd {
    font-size: 22px;
    color: var(--wine-red);
    margin-left: 8px;
}

.store-links {
    display: flex;
    gap: 8px;
}

.store-link {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: var(--gold-light);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(92, 14, 37, 0.3);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    letter-spacing: 0.5px;
}

.store-link img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.store-link:hover {
    background: linear-gradient(135deg, var(--wine-red-dark), var(--black));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
}

/* ストアアイコンボタン（ロゴ画像そのもの＋角丸処理）
   ツールチップをボタン外に出すためoverflowは隠さず、角丸は画像に付ける */
.store-icon-btn {
    display: inline-flex;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(58, 46, 34, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

.store-icon-btn img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
}

.store-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(58, 46, 34, 0.35);
}

/* Unityアイコンは四方に透過余白がある（中身は純黒）。ボタン背景を黒で塗り、
   透過部分を埋めてBoothと同様に全面が塗り潰されて見えるようにする */
.store-icon-btn.unity {
    background: #000000;
}

/* 吹き出し本体と▼を、同じtranslateYで一体的に下から浮かせて出す（分離させない） */
.store-link::before,
.store-icon-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 100;
}

.store-link::after,
.store-icon-btn::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.store-link:hover::before,
.store-link:hover::after,
.store-icon-btn:hover::before,
.store-icon-btn:hover::after {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==================== Ripple Effect ==================== */
.ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.8);
    pointer-events: none;
    animation: rippleEffect 1s ease-out;
    z-index: 9999;
    margin-left: 0;
    margin-top: 0;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        margin-left: 0;
        margin-top: 0;
    }
    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
        margin-left: -200px;
        margin-top: -200px;
    }
}

/* ==================== HOME Page Styles ==================== */
.hero-section {
    /* 背景：sample_C（王家の宝物庫）のワインレッドグラデーション＋下からの金の光 */
    background:
        radial-gradient(ellipse at 50% 120%, rgba(212, 175, 55, 0.18) 0%, transparent 60%),
        linear-gradient(135deg, var(--wine-red-dark) 0%, #1C060E 70%);
    padding: 80px 40px;
    text-align: center;
    color: var(--ink);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    border-bottom: 3px double rgba(122, 90, 40, 0.4);
}

/* sample_Cの「差し込む光条」＋ごく薄い魔導回路紋様テクスチャ（背景演出のみ。中身の要素には影響しない） */
.hero-section::before {
    content: '';
    position: absolute;
    inset: -50% 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M10 80 H55 L80 55 V15'/%3E%3Cpath d='M80 145 V110 L105 85 H150'/%3E%3Cpath d='M150 30 H120 L100 50'/%3E%3Cpath d='M15 130 H40 L60 110'/%3E%3Ccircle cx='10' cy='80' r='3'/%3E%3Ccircle cx='80' cy='15' r='3'/%3E%3Ccircle cx='80' cy='145' r='3'/%3E%3Ccircle cx='150' cy='30' r='3'/%3E%3Ccircle cx='15' cy='130' r='3'/%3E%3Ccircle cx='150' cy='85' r='2'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(100deg, transparent 42%, rgba(212, 175, 55, 0.06) 46%, transparent 50%),
        linear-gradient(80deg, transparent 55%, rgba(244, 228, 176, 0.05) 60%, transparent 65%),
        linear-gradient(95deg, transparent 25%, rgba(212, 175, 55, 0.04) 30%, transparent 36%);
    background-size: 160px 160px, auto, auto, auto;
    pointer-events: none;
}

/* ==================== ヒーロー装飾（魔導書の口絵風・HOMEのみで使用） ==================== */
/* ヒーロー全体を囲む二重の内枠 */
.hero-frame {
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    outline: 1px solid rgba(212, 175, 55, 0.18);
    outline-offset: 4px;
    pointer-events: none;
}

/* 四隅の真鍮風コーナー金具（1種のSVGを反転で4隅に配置） */
.hero-corner {
    position: absolute;
    width: 88px;
    height: 88px;
    pointer-events: none;
    color: rgba(212, 175, 55, 0.6);
}
.hero-corner.tl { top: 10px; left: 10px; }
.hero-corner.tr { top: 10px; right: 10px; transform: scaleX(-1); }
.hero-corner.bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.hero-corner.br { bottom: 10px; right: 10px; transform: scale(-1, -1); }

/* ロゴ下の金の飾り罫（中央に小歯車のフローリッシュ） */
.hero-flourish {
    display: block;
    margin: 6px auto 18px auto;
    width: 420px;
    max-width: 80%;
    color: var(--gold);
}

/* ヒーロー全面を舞い上がる金色の光の塵 */
#dust-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-title {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--wine-red);
    margin-bottom: 20px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
    letter-spacing: 3px;
    position: relative;
}

/* HOMEヒーローのロゴ画像（従来の文字サイズ相当の大きさを維持） */
.hero-logo {
    height: 72px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gold-light);   /* 暗いワインレッド背景に合わせて金色に */
    max-width: 760px; /* 2文目が1行に収まる幅。数値を調整可 */
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    white-space: pre-line; /* translations.js の \n を改行として表示する */
}

.section-title {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--wine-red);
    margin-bottom: 25px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(122, 90, 40, 0.5), rgba(122, 90, 40, 0.5), transparent);
}

/* HOME：商品の特徴（Booth/Unityの上の空白を埋める） */
.features-section {
    margin: 0 0 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: radial-gradient(ellipse at 50% 0%, #FDF6E3 0%, #E8D9BB 100%);
    border: 1px solid rgba(122, 90, 40, 0.45);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(58, 46, 34, 0.12);
    position: relative;
    outline: 1px solid rgba(212, 175, 55, 0.25);
    outline-offset: 3px;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    pointer-events: none;
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid rgba(184, 145, 42, 0.6);
    background: rgba(212, 175, 55, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.feature-card .feature-title {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--wine-red);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.feature-card .feature-desc {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Shop Links Section */
.shop-links-section {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.shop-link-card {
    background: var(--parchment-card);
    border: 1px solid rgba(122, 90, 40, 0.4);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(58, 46, 34, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-link-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-deep);
    box-shadow: 0 10px 25px rgba(58, 46, 34, 0.2);
}

.shop-link-card img {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
}

.shop-link-card span {
    font-size: 16px;
    font-weight: 600;
    color: var(--wine-red);
}

/* Update History */
.update-history {
    background: var(--parchment-card);
    border: 1px solid rgba(122, 90, 40, 0.45);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
}

.update-list {
    list-style: none;
}

.update-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(122, 90, 40, 0.3);
    align-items: center;
}

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

.update-date {
    font-size: 13px;
    color: var(--ink-light);
    min-width: 100px;
}

.update-content {
    flex: 1;
}

.update-content a {
    color: var(--wine-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.update-content a:hover {
    color: var(--gold);
}

/* ==================== Product Detail Page ==================== */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* 縦一列レイアウト：画像 → 動画 → 情報 */
.detail-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

/* ギャラリーはボックスに入れず、羊皮紙の上に直接置く */
.gallery-area {
    position: relative;
    z-index: 1;
}

/* メイン画像：3:2の1枚表示＋左右の画像送り矢印 */
.main-image-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 15px auto;
}

.main-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, #E8DCC2 0%, #D8C9A5 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(58, 46, 34, 0.15);
    border: 1px solid rgba(122, 90, 40, 0.35);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.main-image iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 画像送り矢印：タグボタン（選択中スタイル＋ホバーの広がる円）と同一仕様 */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--wine-red);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: #FFFFFF;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 0 20px rgba(139, 21, 56, 0.4);
    overflow: hidden;
    z-index: 2;
}

.gallery-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine-red), var(--gold));
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.gallery-arrow:hover::before {
    width: 300px;
    height: 300px;
}

.gallery-arrow:hover {
    border-color: var(--wine-red);
    box-shadow: 0 3px 10px rgba(139, 21, 56, 0.2);
}

/* 矢印は画像の外側（左右の空白）に配置 */
.gallery-arrow.prev { left: -70px; }
.gallery-arrow.next { right: -70px; }

/* サムネイル送り：収まらない場合のみ矢印を表示 */
.thumbnail-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

.thumb-arrow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1.5px solid var(--wine-red);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: #FFFFFF;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 0 20px rgba(139, 21, 56, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.thumb-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine-red), var(--gold));
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.thumb-arrow:hover::before {
    width: 300px;
    height: 300px;
}

.thumb-arrow:hover {
    border-color: var(--wine-red);
    box-shadow: 0 3px 10px rgba(139, 21, 56, 0.2);
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
    /* グローが上下で切り取られないよう余白を取り、同じ分だけ外へ詰め戻す
       （ストリップ上での見た目の高さは変わらない） */
    padding: 16px 0;
    margin: -16px 0;
}

/* サムネイル：3:2（flex-shrink:0 で潰れ防止） */
.thumbnail {
    flex-shrink: 0;
    width: 108px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #E8DCC2, #D8C9A5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ハイライトは枠線ではなくグローで表現する（商品カードのホバーと同じ考え方）。
   枠線だとその分だけ画像領域が縮み、3:2画像との比率がずれて隙間が出るため */
.thumbnail:hover {
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.55),
                0 0 24px rgba(212, 175, 55, 0.25);
}

/* 選択中：ホバーと区別できるようワインレッド（商品カードのグローと同色） */
.thumbnail.active {
    box-shadow: 0 0 12px rgba(139, 21, 56, 0.6),
                0 0 24px rgba(139, 21, 56, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 動画サムネイル（ギャラリーの最後。クリックでメイン枠が動画に切替） */
.thumbnail.video {
    background: linear-gradient(160deg, #2E1A12, #241108);
    color: var(--gold);
    flex-direction: column;
    font-size: 18px;
}

.thumbnail.video small {
    font-size: 10px;
    color: var(--gold-light);
}

.detail-info {
    background: var(--parchment-card);
    border: 1px solid rgba(122, 90, 40, 0.45);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 3px 12px rgba(58, 46, 34, 0.12);
}

.detail-category {
    font-size: 15px;
    color: var(--ink-light);
    margin-bottom: 10px;
}

/* 商品名上のタグ：一覧ページのタグボタン風スタイル（表示のみ・非リンク） */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-tag {
    padding: 5px 14px;
    background: var(--parchment-card);
    border: 1.5px solid rgba(122, 90, 40, 0.4);
    border-radius: 15px;
    color: var(--wine-red);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.detail-title {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.detail-type {
    padding: 5px 15px;
    background: rgba(139, 21, 56, 0.06);
    border: 1px solid rgba(139, 21, 56, 0.3);
    border-radius: 20px;
    font-size: 14px;
    color: var(--wine-red);
    font-weight: 500;
}

/* うたい文句（キャッチコピー） */
.catch-copy {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
    padding: 16px 20px;
    background: rgba(227, 214, 187, 0.45);
    border-left: 3px solid var(--gold-deep);
    border-radius: 0 12px 12px 0;
    margin-bottom: 22px;
}

/* 詳細ページのセクション見出し */
.sec-title {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--wine-red);
    letter-spacing: 1.5px;
    margin: 26px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sec-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(122, 90, 40, 0.45), transparent);
}

.detail-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--ink-light);
    font-size: 14px;
}

.feature-item::before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
}

.detail-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-light);
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(227, 214, 187, 0.45);
    border: 1px solid rgba(122, 90, 40, 0.2);
    border-radius: 12px;
}

.detail-specs {
    margin-bottom: 25px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.specs-table th,
.specs-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px dashed rgba(122, 90, 40, 0.3);
    font-size: 15px;
    vertical-align: top;
}

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

/* 項目列は30%（fixedレイアウトで確実に効かせる） */
.specs-table th {
    color: var(--ink-light);
    font-weight: 500;
    width: 30%;
    white-space: nowrap;
}

.specs-table td {
    color: var(--ink);
}

/* 仕様表セル内の箇条書き（テクスチャ種類など複数値の項目） */
.spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 仕様グループ（技術仕様／テクスチャ／マテリアル／その他／動作確認／ルック確認） */
.spec-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-group-title {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-deep);
    letter-spacing: 1px;
    margin: 0 0 6px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(122, 90, 40, 0.3);
}

/* 単一値グループ（動作確認・ルック確認） */
.spec-single {
    margin: 0;
    padding: 8px 14px;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.7;
}

/* FBX一覧（セット商品のみ） */
.fbx-legend {
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 10px;
}

.fbx-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fbx-list li {
    font-size: 15px;
    color: var(--ink);
}

.detail-price {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--wine-red);
    margin: 26px 0 16px 0;
}

.detail-price .usd {
    font-family: 'Quicksand', 'Kosugi Maru', sans-serif;
    font-size: 18px;
    color: var(--ink-light);
    font-weight: 400;
    margin-left: 10px;
}

.detail-store-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* ストアロゴボタン（画像そのまま＋角丸処理） */
.store-logo-btn {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(58, 46, 34, 0.25);
    transition: all 0.3s ease;
}

.store-logo-btn img {
    display: block;
    height: 56px;
    width: auto;
}

.store-logo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 46, 34, 0.35);
}

/* Unityロゴはロゴ画像に余白がないため白地＋パディングで整える */
.store-logo-btn.white {
    background: #FFFFFF;
    padding: 10px 22px;
}

.store-logo-btn.white img {
    height: 36px;
}

.detail-store-link {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.detail-store-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.detail-store-link:hover {
    background: linear-gradient(135deg, var(--wine-red-dark), var(--black));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 21, 56, 0.4);
}

/* 追加販売先（extra_urls）：控えめなサブボタン */
.detail-store-link.extra {
    background: var(--parchment-card);
    color: var(--wine-red);
    border: 1px solid rgba(139, 21, 56, 0.4);
    box-shadow: none;
    font-size: 14px;
    padding: 12px 24px;
}

.detail-store-link.extra:hover {
    background: var(--parchment-card);
    border-color: var(--wine-red);
    box-shadow: 0 4px 12px rgba(58, 46, 34, 0.15);
}

/* Package Contents */
.package-contents {
    margin-bottom: 25px;
}

/* パッケージ内容（シンプルな箇条書き） */
.package-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-list li {
    font-size: 15px;
    color: var(--ink);
}

.package-list li::before {
    content: '◆ ';
    color: var(--gold-deep);
    font-size: 11px;
}

/* 追加日（情報パネル右下） */
.updated-note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--ink-light);
    text-align: right;
}

/* ALSO SOLD SEPARATELY / INCLUDED IN SET セクション */
.detail-sub-section {
    margin-bottom: 60px;
}

/* もっと表示ボタン（8件超の場合のみ表示）：
   タグボタン（選択中スタイル＋ホバーの広がる円）と同一仕様 */
.show-more-btn {
    display: block;
    margin: 30px auto 0 auto;
    padding: 8px 32px;
    background: linear-gradient(135deg, var(--wine-red), var(--wine-red-dark));
    border: 1.5px solid var(--wine-red);
    border-radius: 15px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 21, 56, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wine-red), var(--gold));
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.show-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.show-more-btn:hover {
    border-color: var(--wine-red);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(139, 21, 56, 0.2);
}

/* Related Products */
.related-section {
    margin-top: 60px;
}

/* Embedded Content */
.embed-section {
    margin-top: 30px;
}

.embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== Lightbox ==================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* サイドバーが上部配置になるため、羊皮紙画像は画面全体に敷く */
    body::before {
        left: 0;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-radius: 0;
        padding: 20px;
    }

    .main-content {
        margin-left: 0;
        margin-top: 0;
    }

    .top-header {
        position: relative;
        left: 0;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .header-left {
        width: 100%;
    }

    .header-search {
        max-width: 100%;
    }

    .content-area {
        padding: 20px;
    }

    .footer {
        margin-left: 0;
        padding: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    /* 画面が狭く左右の空白がないため、画像送り矢印は画像内の縁に配置 */
    .gallery-arrow.prev { left: 14px; }
    .gallery-arrow.next { right: 14px; }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .shop-links-section {
        flex-direction: column;
        align-items: center;
    }

    .shop-link-card {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .detail-price {
        font-size: 24px;
    }

    .detail-store-links {
        flex-direction: column;
    }

    .detail-store-link {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== Loading State ==================== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(122, 90, 40, 0.25);
    border-top-color: var(--wine-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== No Results ==================== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-light);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-results-text {
    font-size: 16px;
}
