/* モダンで洗練されたカスタムスタイル - パフォーマンス最適化版 */

:root {
    /* カラーパレット - モダンでおしゃれな配色 */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* テキストカラー */
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    
    /* 背景カラー */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --bg-dark: #111827;
    
    /* ボーダー */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* シャドウ */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* トランジション */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 角丸 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ベーススタイル */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
    line-height: 1.7;
    padding-top: 80px;
    overflow-x: hidden;
    font-size: 16px;
}

/* 固定ヘッダー - グラデーション背景で洗練されたデザイン */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.fixed-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    z-index: -1;
}

.header-content {
    padding: 1.25rem 0;
    position: relative;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-title a {
    color: white;
    text-decoration: none;
    transition: opacity var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-title a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 更新注記のスタイル */
.update-note {
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 0.5rem;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.site-title .update-note {
    display: inline-block;
    margin-left: 0.75rem;
}

footer .update-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.6rem;
    margin-left: 0.5rem;
}

.header-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.menu-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0);
    transition: background var(--transition-base);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.menu-item:hover::before {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item.active::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* メーカードロップダウン - 洗練されたデザイン */
.maker-dropdown {
    position: relative;
}

.maker-dropdown .form-select {
    min-width: 200px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.maker-dropdown .form-select:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.maker-dropdown .form-select:focus {
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    outline: 0;
    background-color: rgba(255, 255, 255, 0.25);
}

.maker-dropdown .form-select option {
    background-color: #667eea;
    color: white;
    padding: 0.5rem;
}

/* メインコンテンツ */
.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 2rem;
}

/* ページタイトル */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-xl);
    color: white;
}

.page-header h1,
.page-header h2 {
    color: white;
    margin: 0;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ソートセレクター - モダンなデザイン */
.sort-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.sort-selector .form-label {
    font-weight: 600;
    color: var(--text-medium);
    margin: 0;
    white-space: nowrap;
}

.sort-selector .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-weight: 500;
    transition: all var(--transition-base);
    cursor: pointer;
}

.sort-selector .form-select:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.sort-selector .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: 0;
}

/* 作品カード - 洗練されたカードデザイン */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    height: 100%;
    width: 100%;
}

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

.product-card-link:hover .product-card {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-2xl);
}

.product-card-link:hover .product-card::before {
    opacity: 1;
}

.product-card-link:hover .product-card img {
    transform: scale(1.1);
}

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

.product-card {
    transition: all var(--transition-slow);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    will-change: transform;
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-image-wrapper {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    aspect-ratio: 3 / 4; /* 縦長画像用のコンテナ */
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 縦横どちらでも見切れないように contain に変更 */
    object-position: center;
    transition: transform var(--transition-slow);
    display: block;
    pointer-events: none;
}

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--bg-white);
    pointer-events: none;
}

.product-card .card-title {
    font-size: 1rem;
    line-height: 1.6;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.product-card .card-title {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.product-card .card-text {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

.product-card .text-primary {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* 価格バッジ - 洗練されたデザイン */
.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* 作品詳細ページ */
.product-page-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.product-cover-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 0;
    width: 100%;
    position: relative;
    transition: all var(--transition-base);
}

.product-cover-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
    pointer-events: none;
}

.product-cover-image:hover::before {
    opacity: 1;
}

.product-cover-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-cover-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 0;
    width: 100%;
    position: relative;
    transition: all var(--transition-base);
    margin-bottom: 0;
    height: auto;
}

/* 高さを合わせる要素 */
.height-matched {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.height-matched img {
    width: 100%;
    height: auto;
    display: block;
}

.height-matched-content {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.right-column-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.height-matched-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sample-images-compact {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(99, 102, 241, 0.01) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sample-images-compact .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.sample-images-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
    min-height: 0;
}

.sample-images-grid-compact::-webkit-scrollbar {
    width: 6px;
}

.sample-images-grid-compact::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--radius-full);
}

.sample-images-grid-compact::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
    opacity: 0.6;
}

.sample-images-grid-compact::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
    opacity: 1;
}

.sample-image-item-compact {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    min-height: 0;
    width: 100%;
}

.sample-image-item-compact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0) 0%, rgba(139, 92, 246, 0) 100%);
    transition: all var(--transition-base);
    z-index: 1;
}

.sample-image-item-compact:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.sample-image-item-compact:hover::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.sample-image-item-compact a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
    padding: 0.25rem;
}

.sample-image-item-compact img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform var(--transition-slow);
}

.sample-image-item-compact:hover img {
    transform: scale(1.05);
}

.right-column-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-cover-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-slow);
    max-width: 100%;
}

.product-cover-image:hover img {
    transform: scale(1.03);
}

.product-info-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    transition: all var(--transition-base);
}

.product-info-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-info-section .section-title {
    font-size: 1.125rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
}

/* 出演者情報（表紙画像の下） - 改善されたデザイン */
.product-actors-section {
    margin-bottom: 1rem;
}

.actors-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.actors-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.actors-card:hover::before {
    transform: scaleX(1);
}

.actors-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.actors-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
}

.actors-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.actors-item:first-child {
    padding-top: 0;
}

.actors-item:hover {
    background: rgba(99, 102, 241, 0.03);
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border-radius: var(--radius-md);
}

.actors-label {
    display: flex;
    align-items: center;
    min-width: 110px;
    flex-shrink: 0;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 700;
    margin-right: 1.25rem;
}

.actors-label svg {
    flex-shrink: 0;
    color: var(--primary-color);
    opacity: 0.9;
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

.actors-value {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}

.actor-name {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.actor-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.actor-name:hover::before {
    left: 100%;
}

.actor-name:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.maker-name,
.category-name {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
}

.maker-name:hover,
.category-name:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 料金プラン（stickyで左側に配置） */
.sticky-price-plan-section {
    position: sticky;
    top: 100px; /* ヘッダーの高さ + マージン */
    z-index: 50;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sticky-price-plan-section .price-plan-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.price-plan-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(99, 102, 241, 0.03) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.price-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.price-plan-card:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25), 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.section-title-small {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title-small::before {
    content: '💰';
    font-size: 1.5rem;
    line-height: 1;
}

.section-title-small::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.price-options-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
}

.price-option-card-compact {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, var(--bg-white) 100%);
    transition: all var(--transition-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.price-option-card-compact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--border-color);
    transition: all var(--transition-base);
}

.price-option-card-compact.border-primary {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-white) 100%);
}

.price-option-card-compact.border-primary::after {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 5px;
}

.price-option-card-compact:hover {
    background: var(--bg-white);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.price-option-card-compact:hover::after {
    width: 5px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.price-details-small {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-description-compact {
    font-size: 0.6875rem;
    line-height: 1.4;
    color: var(--text-light);
}

.price-single {
    text-align: center;
    padding: 1rem 0;
}

.product-description-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(99, 102, 241, 0.01) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-description-section.height-matched-content {
    min-height: 100%;
}

.product-description-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-description-section .section-title {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 800;
    position: relative;
    padding-bottom: 0.75rem;
    flex-shrink: 0;
}

.product-description-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.description-content {
    line-height: 1.8;
    white-space: normal;
    color: var(--text-dark);
    font-size: 0.9375rem;
    text-indent: 0;
    margin-top: 0;
    letter-spacing: 0.01em;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

.description-content {
    flex-grow: 1;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content br {
    line-height: 1.8;
}

/* 価格情報と購入ボタンを固定（スクロール追従） - 左側用 */
.sticky-price-section {
    position: sticky;
    top: 100px; /* ヘッダーの高さ + マージン */
    z-index: 100;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-base);
}

.sticky-price-section.stuck {
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-hover);
}

/* 購入ボタン - 右下に固定表示（常に表示、全体がクリック可能） */
.fixed-purchase-button {
    position: fixed;
    bottom: 80px; /* スクロールトップボタンの上 */
    right: 20px;
    z-index: 999;
    min-width: 200px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: block;
    text-decoration: none;
    color: #ffffff !important;
    cursor: pointer;
}

.fixed-purchase-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(135deg, var(--primary-hover) 0%, #6d28d9 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.fixed-purchase-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fixed-purchase-button * {
    color: #ffffff !important;
}

.fixed-purchase-button .price-display {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.fixed-purchase-button .price-value-small {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff !important;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.fixed-purchase-button .purchase-text {
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff !important;
    display: block;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.sticky-price-section .price-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sticky-price-section .btn-primary {
    width: 100%;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title svg {
    color: var(--primary-color);
    opacity: 0.9;
    flex-shrink: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, var(--bg-light) 100%);
    border-radius: var(--radius-md);
    gap: 0.875rem;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.info-item:hover::before {
    transform: scaleY(1);
}

.info-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, var(--bg-white) 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.info-label {
    font-weight: 800;
    color: var(--text-dark);
    min-width: 140px;
    flex-shrink: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label::before {
    content: '▶';
    color: var(--primary-color);
    font-size: 0.75rem;
}

.info-value {
    color: var(--text-dark);
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.info-value .badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.info-value .badge.bg-secondary {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1) 0%, rgba(107, 114, 128, 0.2) 100%) !important;
    color: var(--text-dark) !important;
    border-color: rgba(107, 114, 128, 0.3);
}

.info-value .badge.bg-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.info-value.price-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.info-value.price-value .original-price {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: line-through;
    margin-right: 0.75rem;
}

.info-value.price-value .discounted-price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
}

/* 価格オプションカード - プレミアムなデザイン */
.price-options-container {
    width: 100%;
}

.price-options {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.price-option-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    transition: all var(--transition-slow);
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius-md);
    padding: 1rem !important;
    position: relative;
    overflow: hidden;
}

.price-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.price-option-card.border-primary {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.price-option-card.border-primary::before {
    transform: scaleX(1);
}

.price-option-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color) !important;
    transform: translateY(-4px);
}

.price-option-card h5 {
    color: var(--text-dark);
    font-size: 0.9375rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem !important;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem !important;
}

.price-details .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.price-option-card .price-value {
    color: var(--primary-color);
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.price-value-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.price-option-card .original-price {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: line-through;
}

.option-description {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid var(--border-color);
    line-height: 1.5 !important;
    color: var(--text-medium);
    font-size: 0.75rem !important;
}

.option-description strong {
    color: var(--text-dark);
    font-weight: 700;
}

.price-option-card .badge.position-absolute {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    z-index: 1;
    top: 0.5rem !important;
    right: 0.5rem !important;
    left: auto !important;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

/* アフィリエイトボタン - 魅力的なCTA */
.affiliate-button-container {
    margin-top: 2.5rem;
}

.affiliate-button-container .btn {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.affiliate-button-container .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.affiliate-button-container .btn:hover::before {
    left: 100%;
}

.affiliate-button-container .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.affiliate-button-container .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
}

/* サンプル動画セクション */
.sample-video-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(99, 102, 241, 0.01) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
}

.sample-video-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

.sample-video-section .section-title {
    font-size: 1.375rem;
    margin-bottom: 1.25rem;
}

.video-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    min-height: 450px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.video-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.video-wrapper-normal {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    height: 0;
}

.video-wrapper-normal:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.video-embed-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper-normal .video-embed-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
    margin: 0;
}

.video-embed-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.video-embed-wrapper iframe,
.video-embed-wrapper object,
.video-embed-wrapper embed,
.video-embed-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: none;
    object-fit: contain;
}

/* テーブルやdivで囲まれた動画プレイヤーにも対応 */
.video-wrapper-normal .video-embed-wrapper table {
    width: 100%;
    height: 100%;
    margin: 0;
    border-collapse: collapse;
    position: absolute;
    top: 0;
    left: 0;
}

.video-wrapper-normal .video-embed-wrapper table td {
    padding: 0;
    text-align: center;
    vertical-align: middle;
    width: 100%;
    height: 100%;
}

.video-wrapper-normal .video-embed-wrapper table iframe,
.video-wrapper-normal .video-embed-wrapper table object,
.video-wrapper-normal .video-embed-wrapper table embed,
.video-wrapper-normal .video-embed-wrapper table video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.video-wrapper-normal .video-embed-wrapper div {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper-normal .video-embed-wrapper div iframe,
.video-wrapper-normal .video-embed-wrapper div object,
.video-wrapper-normal .video-embed-wrapper div embed,
.video-wrapper-normal .video-embed-wrapper div video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* サンプル画像セクション - モダンなグリッド */
.sample-images-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, rgba(99, 102, 241, 0.01) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
    margin-top: 0;
    margin-bottom: 2rem;
}

.sample-images-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

.sample-images-section .section-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

.sample-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0;
}

.sample-image-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 400px;
    position: relative;
    cursor: pointer;
    aspect-ratio: auto;
}

.sample-image-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0) 0%, rgba(139, 92, 246, 0) 100%);
    transition: all var(--transition-base);
    z-index: 1;
}

.sample-image-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.sample-image-item:hover::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.sample-image-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 200px;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
}

.sample-image-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform var(--transition-slow);
}

.sample-image-item:hover img {
    transform: scale(1.05);
}


/* ボタン - 洗練されたデザイン */
.btn {
    border-radius: var(--radius-md);
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
    color: white;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* バッジ */
.badge {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.3px;
}

/* フッター - 洗練されたデザイン */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    margin-top: 5rem;
    padding: 3rem 0 2rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ローディングアニメーション */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* レスポンシブ対応 - モバイルファースト */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        font-size: 15px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-title .update-note {
        font-size: 0.55rem;
        margin-left: 0.5rem;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .header-menu {
        gap: 0.25rem;
        font-size: 0.8125rem;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .menu-item {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .maker-dropdown {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .maker-dropdown .form-select {
        width: 100%;
        font-size: 0.8125rem;
    }
    
    .sort-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
        padding: 1rem;
    }
    
    .sort-selector .form-label {
        font-size: 0.875rem;
    }
    
    .sort-selector .form-select {
        width: 100%;
        font-size: 0.875rem;
    }
    
    /* スマホサイズでの動画表示の最適化 */
    .sample-video-section {
        padding: 1rem;
    }
    
    .video-wrapper-normal {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .video-embed-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .video-embed-wrapper iframe,
    .video-embed-wrapper object,
    .video-embed-wrapper embed,
    .video-embed-wrapper video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }
    
    .product-image-wrapper {
        aspect-ratio: 3 / 4;
        min-height: 240px;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .sticky-price-plan-section {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2rem;
    }
    
    .price-plan-card {
        padding: 1.25rem;
    }
    
    .price-option-card-compact {
        padding: 0.875rem;
    }
    
    .actors-card {
        padding: 1rem;
    }
    
    .actors-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .actors-label {
        min-width: auto;
        width: 100%;
        margin-right: 0;
    }
    
    .actors-value {
        width: 100%;
    }
    
    .actor-name,
    .maker-name,
    .category-name {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    .fixed-purchase-button {
        bottom: 70px;
        right: 15px;
        min-width: 160px;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .fixed-purchase-button .price-value-small {
        font-size: 1.125rem;
    }
    
    .sticky-price-section {
        position: relative !important;
        top: auto !important;
    }
    
    .product-page-title {
        font-size: 1.375rem;
        margin-bottom: 1.5rem;
    }
    
    .product-info-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-item {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .info-label {
        min-width: auto;
        width: 100%;
    }
    
    .price-option-card {
        padding: 1.25rem;
    }
    
    .sample-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.875rem;
    }
    
    .sample-image-item {
        min-height: 150px;
        max-height: 300px;
    }
    
    .sample-image-item img {
        max-height: 300px;
    }
    
    .description-content {
        font-size: 0.9375rem;
        line-height: 1.8;
    }
    
    .sticky-price-section {
        position: relative !important;
        top: auto !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .product-card .card-body {
        padding: 1.25rem;
    }
    
    .product-card .card-title {
        font-size: 0.9375rem;
        height: 2.8em;
    }
    
    .sample-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .sample-image-item {
        min-height: 120px;
        max-height: 250px;
    }
    
    .sample-image-item img {
        max-height: 250px;
    }
    
    /* スマホサイズでの動画表示のさらなる最適化 */
    .sample-video-section {
        padding: 0.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .video-wrapper-normal {
        width: 100%;
        max-width: 100%;
        padding-bottom: 56.25%; /* 16:9 アスペクト比を維持 */
        margin: 0;
        border-radius: 0;
    }
    
    .video-embed-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .video-embed-wrapper iframe,
    .video-embed-wrapper object,
    .video-embed-wrapper embed,
    .video-embed-wrapper video,
    .video-wrapper-normal .video-embed-wrapper table iframe,
    .video-wrapper-normal .video-embed-wrapper table object,
    .video-wrapper-normal .video-embed-wrapper table embed,
    .video-wrapper-normal .video-embed-wrapper table video,
    .video-wrapper-normal .video-embed-wrapper div iframe,
    .video-wrapper-normal .video-embed-wrapper div object,
    .video-wrapper-normal .video-embed-wrapper div embed,
    .video-wrapper-normal .video-embed-wrapper div video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-image-wrapper {
        aspect-ratio: 3 / 4;
        min-height: 260px;
    }
    
    .sample-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス表示の改善 */
a:focus,
button:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* パフォーマンス最適化 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* スクロールバーのスタイリング（WebKit系ブラウザ） */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #7c3aed 100%);
}

/* スクロールトップボタン - 小さく右下に常に表示（参考: https://cotodama.co/pagetop/） */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgba(99, 102, 241, 1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* 購入ボタンの重複定義を削除（上記で定義済み） */

/* Lightbox（モーダル）のカスタマイズ - おしゃれなデザイン */
.lb-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(5px);
}

.lb-container {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
}

.lb-outerContainer {
    border-radius: var(--radius-lg) !important;
    overflow: visible !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
}

.lb-image {
    border-radius: var(--radius-md) !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain !important;
}

/* ナビゲーションボタン（←→）- 表示とスタイル */
.lb-nav {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 10000 !important;
    width: 100% !important;
    height: 60px !important;
    pointer-events: none !important;
}

.lb-nav a {
    position: absolute !important;
    top: 0 !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: block !important;
    transition: all var(--transition-base) !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    overflow: hidden !important;
    background-image: none !important;
    background-size: 0 !important;
    text-indent: -9999px !important;
}

.lb-nav a img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.lb-nav a.lb-prev {
    left: 20px !important;
}

.lb-nav a.lb-prev::before {
    content: '←' !important;
    font-size: 28px !important;
    color: #1f2937 !important;
    font-weight: 900 !important;
    line-height: 50px !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    text-indent: 0 !important;
    font-family: Arial, sans-serif !important;
    pointer-events: none !important;
}

.lb-nav a.lb-next {
    right: 20px !important;
}

.lb-nav a.lb-next::before {
    content: '→' !important;
    font-size: 28px !important;
    color: #1f2937 !important;
    font-weight: 900 !important;
    line-height: 50px !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    text-indent: 0 !important;
    font-family: Arial, sans-serif !important;
    pointer-events: none !important;
}

.lb-nav a:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5) !important;
}

.lb-nav a:hover::before {
    color: var(--primary-color) !important;
}

/* 閉じるボタン（×）- 表示とスタイル */
.lb-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    display: block !important;
    transition: all var(--transition-base) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10002 !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
    background-image: none !important;
    background-size: 0 !important;
}

.lb-close img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.lb-close::before {
    content: '×' !important;
    font-size: 36px !important;
    color: #1f2937 !important;
    font-weight: 900 !important;
    line-height: 45px !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    font-family: Arial, sans-serif !important;
    pointer-events: none !important;
}

.lb-close:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5) !important;
}

.lb-close:hover::before {
    color: #ef4444 !important;
}

/* データコンテナ */
.lb-dataContainer {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    position: relative !important;
}

.lb-data .lb-details {
    color: white !important;
}

.lb-data .lb-caption {
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 1rem !important;
    color: white !important;
}

.lb-data .lb-number {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
}

/* ローダー */
.lb-loader {
    border-top-color: var(--primary-color) !important;
}
