/* ============================================
   和風スタイルテンプレート - メインスタイルシート
   Japanese Wafu Style Template - Main Stylesheet
   ============================================ */

/* --------------------------------------------------
   1. リセット & ベーススタイル
   -------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 和風カラーパレット */
    --wafu-red: #c73e3a;          /* 朱色 */
    --wafu-dark-red: #9a2f2c;     /* 濃い朱色 */
    --wafu-beige: #f5f1e6;        /* 生成り色 */
    --wafu-light-beige: #faf8f3;  /* 薄生成り */
    --wafu-brown: #8b4513;        /* 茶色 */
    --wafu-dark-brown: #5d2e0f;   /* 濃茶色 */
    --wafu-gold: #d4af37;         /* 金色 */
    --wafu-black: #1a1a1a;        /* 墨色 */
    --wafu-gray: #666666;         /* 鼠色 */
    --wafu-light-gray: #e6e2d6;   /* 薄鼠色 */
    --wafu-white: #ffffff;        /* 白 */
    --wafu-cream: #fffef5;        /* クリーム色 */
    
    /* 和紙テクスチャ */
    --washi-texture: url('../images/wafu_bg_texture.jpg');
    
    /* 伝統文様 */
    --seigaiha-pattern: url('../images/seigaiha_pattern.png');
    --asanoha-pattern: url('../images/asanoha_pattern.png');
    
    /* 影効果 */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", "游ゴシック体", "メイリオ", Meiryo, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--wafu-black);
    background-color: var(--wafu-beige);
    background-image: var(--washi-texture);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--seigaiha-pattern);
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* --------------------------------------------------
   2. タイポグラフィ
   -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    color: var(--wafu-black);
    margin-bottom: 1rem;
    position: relative;
}

h1 {
    font-size: 2.2rem;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--wafu-red);
}

h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--wafu-gold);
}

h2 {
    font-size: 1.8rem;
    color: var(--wafu-brown);
    padding-left: 15px;
    border-left: 4px solid var(--wafu-red);
}

h3 {
    font-size: 1.4rem;
    color: var(--wafu-dark-brown);
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

a {
    color: var(--wafu-red);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--wafu-dark-red);
    text-decoration: underline;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background: var(--wafu-red);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* --------------------------------------------------
   3. レイアウトコンテナ
   -------------------------------------------------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-wrapper {
    min-height: calc(100vh - 300px);
    padding: 30px 0;
    background: rgba(255, 254, 245, 0.9);
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.main-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: var(--asanoha-pattern);
    opacity: 0.1;
    pointer-events: none;
}

/* --------------------------------------------------
   4. ヘッダー
   -------------------------------------------------- */
#headerWrapper {
    background: var(--wafu-black);
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    border-bottom: 3px solid var(--wafu-red);
}

#headerWrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--wafu-red) 0%, 
        var(--wafu-gold) 25%, 
        var(--wafu-white) 50%, 
        var(--wafu-gold) 75%, 
        var(--wafu-red) 100%);
}

.header-top {
    background: rgba(26, 26, 26, 0.95);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.utility-nav {
    display: flex;
    gap: 20px;
    list-style: none;
}

.utility-nav li a {
    color: var(--wafu-light-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.utility-nav li a:hover {
    color: var(--wafu-white);
}

.utility-nav li a i {
    font-size: 0.8rem;
}

.header-main {
    padding: 20px 0;
    background: var(--wafu-black);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
}

/* ロゴ */
.site-logo {
    text-align: center;
    position: relative;
}

.site-logo a {
    display: inline-block;
    position: relative;
}

.site-logo img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.site-logo a:hover img {
    transform: scale(1.05);
}

.logo-text {
    display: block;
    font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", YuMincho, serif;
    font-size: 0.9rem;
    color: var(--wafu-gold);
    margin-top: 5px;
    letter-spacing: 2px;
}

/* 検索ボックス */
.header-search {
    position: relative;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--wafu-brown);
    border-radius: 25px;
    background: var(--wafu-white);
    font-size: 0.95rem;
    color: var(--wafu-black);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--wafu-red);
    box-shadow: 0 0 0 3px rgba(199, 62, 58, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--wafu-red);
    color: var(--wafu-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: var(--wafu-dark-red);
    transform: translateY(-50%) scale(1.1);
}

/* ヘッダーアクション */
.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.action-item {
    position: relative;
}

.action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--wafu-white);
    text-decoration: none;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.action-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--wafu-gold);
}

.action-icon {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.action-text {
    font-size: 0.8rem;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--wafu-red);
    color: var(--wafu-white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* メインナビゲーション */
.main-navigation {
    background: var(--wafu-white);
    border-top: 1px solid var(--wafu-light-gray);
    border-bottom: 1px solid var(--wafu-light-gray);
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 999;
}

.main-navigation::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--wafu-red) 20%, 
        var(--wafu-gold) 50%, 
        var(--wafu-red) 80%, 
        transparent 100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* メニュートグル（モバイル） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--wafu-black);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* メインメニュー */
.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: block;
    padding: 15px 20px;
    color: var(--wafu-black);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 1px solid var(--wafu-light-gray);
    position: relative;
    overflow: hidden;
}

.menu-item:last-child .menu-link {
    border-right: none;
}

.menu-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--wafu-red);
    transition: width 0.3s ease;
}

.menu-link:hover,
.menu-link.active {
    color: var(--wafu-red);
    background: var(--wafu-cream);
}

.menu-link:hover::before,
.menu-link.active::before {
    width: 100%;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--wafu-white);
    box-shadow: var(--shadow-heavy);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--wafu-red);
}

.menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--wafu-black);
    text-decoration: none;
    border-bottom: 1px solid var(--wafu-light-gray);
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: var(--wafu-cream);
    color: var(--wafu-red);
    padding-left: 25px;
}

.dropdown-link:last-child {
    border-bottom: none;
}

/* --------------------------------------------------
   5. ヒーローセクション
   -------------------------------------------------- */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.9)), 
                url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--wafu-white);
    padding: 100px 0;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--seigaiha-pattern);
    background-size: 300px;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--wafu-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", YuMincho, serif;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--wafu-gold);
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-cta {
    display: inline-flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-hero {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: var(--wafu-red);
    color: var(--wafu-white);
}

.btn-hero-primary:hover {
    background: var(--wafu-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-hero-outline {
    background: transparent;
    color: var(--wafu-white);
    border-color: var(--wafu-white);
}

.btn-hero-outline:hover {
    background: var(--wafu-white);
    color: var(--wafu-black);
    transform: translateY(-2px);
}

/* --------------------------------------------------
   6. 商品グリッド
   -------------------------------------------------- */
.product-section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title {
    display: inline-block;
    font-size: 2rem;
    color: var(--wafu-brown);
    padding: 0 20px;
    background: var(--wafu-cream);
    position: relative;
    z-index: 1;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: var(--wafu-red);
}

.section-title::before {
    right: 100%;
}

.section-title::after {
    left: 100%;
}

.section-subtitle {
    color: var(--wafu-gray);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* 商品グリッドレイアウト */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-item {
    background: var(--wafu-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid var(--wafu-light-gray);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--wafu-red);
}

/* 商品画像 */
.product-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-item:hover .product-image {
    transform: scale(1.1);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--wafu-red);
    color: var(--wafu-white);
}

.badge-sale {
    background: var(--wafu-gold);
    color: var(--wafu-black);
}

.badge-popular {
    background: var(--wafu-brown);
    color: var(--wafu-white);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-item:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wafu-white);
    border: 1px solid var(--wafu-light-gray);
    color: var(--wafu-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--wafu-red);
    color: var(--wafu-white);
    border-color: var(--wafu-red);
    transform: scale(1.1);
}

/* 商品情報 */
.product-info {
    padding: 20px;
    background: var(--wafu-white);
}

.product-category {
    color: var(--wafu-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name a {
    color: var(--wafu-black);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--wafu-red);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--wafu-red);
}

.old-price {
    font-size: 1rem;
    color: var(--wafu-gray);
    text-decoration: line-through;
}

.discount {
    background: var(--wafu-cream);
    color: var(--wafu-red);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-attributes {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.attribute {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--wafu-gray);
    font-size: 0.85rem;
}

.attribute i {
    color: var(--wafu-brown);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--wafu-light-gray);
}

.add-to-cart-btn {
    background: var(--wafu-black);
    color: var(--wafu-white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--wafu-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.add-to-cart-btn i {
    font-size: 0.9rem;
}

.stock-status {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 500;
}

.in-stock {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.low-stock {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.out-of-stock {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

/* --------------------------------------------------
   7. 商品詳細ページ
   -------------------------------------------------- */
.product-detail-page {
    background: var(--wafu-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    border: 1px solid var(--wafu-light-gray);
}

.product-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--wafu-light-gray);
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--wafu-gray);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--wafu-gray);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--wafu-red);
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 10px;
    color: var(--wafu-light-gray);
}

.product-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

/* 商品ギャラリー */
.product-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--wafu-light-gray);
    background: var(--wafu-cream);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.zoom-lens {
    position: absolute;
    border: 2px solid var(--wafu-red);
    cursor: none;
    display: none;
}

.image-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.action-btn-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--wafu-light-gray);
    color: var(--wafu-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn-small:hover {
    background: var(--wafu-red);
    color: var(--wafu-white);
    border-color: var(--wafu-red);
    transform: scale(1.1);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--wafu-light-gray) var(--wafu-cream);
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: var(--wafu-cream);
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--wafu-light-gray);
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--wafu-gray);
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    opacity: 1;
    border-color: var(--wafu-red);
    transform: scale(1.05);
}

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

/* 商品情報詳細 */
.product-info-detail {
    padding: 20px 0;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--wafu-black);
    line-height: 1.3;
}

.product-sku {
    color: var(--wafu-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-sku span {
    background: var(--wafu-cream);
    padding: 3px 10px;
    border-radius: 3px;
    font-family: monospace;
}

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

.rating-stars {
    color: var(--wafu-gold);
    font-size: 1.1rem;
}

.rating-value {
    font-weight: 600;
    color: var(--wafu-black);
}

.rating-count {
    color: var(--wafu-gray);
    font-size: 0.9rem;
}

.product-price-detail {
    background: var(--wafu-cream);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid var(--wafu-red);
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.current-price-large {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--wafu-red);
}

.old-price-large {
    font-size: 1.4rem;
    color: var(--wafu-gray);
    text-decoration: line-through;
}

.discount-large {
    background: var(--wafu-red);
    color: var(--wafu-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-tax {
    color: var(--wafu-gray);
    font-size: 0.9rem;
}

.product-attributes-detail {
    margin: 25px 0;
}

.attribute-group {
    margin-bottom: 20px;
}

.attribute-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--wafu-black);
}

.color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.selected {
    border-color: var(--wafu-black);
    box-shadow: 0 0 0 2px var(--wafu-white), 0 0 0 4px var(--wafu-black);
}

.color-swatch::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--wafu-white);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-swatch.selected::after {
    opacity: 1;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 40px;
    height: 40px;
    border: 2px solid var(--wafu-light-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.size-option:hover {
    border-color: var(--wafu-gray);
    background: var(--wafu-cream);
}

.size-option.selected {
    border-color: var(--wafu-red);
    background: var(--wafu-red);
    color: var(--wafu-white);
}

.size-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.product-quantity {
    margin: 25px 0;
}

.quantity-selector {
    display: inline-flex;
    border: 2px solid var(--wafu-light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--wafu-cream);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--wafu-light-gray);
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--wafu-white);
}

.qty-input:focus {
    outline: none;
}

.product-actions-detail {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-add-to-cart-large {
    flex: 1;
    min-width: 200px;
    background: var(--wafu-red);
    color: var(--wafu-white);
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart-large:hover {
    background: var(--wafu-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-wishlist,
.btn-compare {
    width: 50px;
    height: 50px;
    border: 2px solid var(--wafu-light-gray);
    border-radius: 4px;
    background: var(--wafu-white);
    color: var(--wafu-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-wishlist:hover {
    border-color: var(--wafu-red);
    color: var(--wafu-red);
    background: rgba(199, 62, 58, 0.1);
}

.btn-compare:hover {
    border-color: var(--wafu-brown);
    color: var(--wafu-brown);
    background: rgba(139, 69, 19, 0.1);
}

.product-meta {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid var(--wafu-light-gray);
    border-bottom: 1px solid var(--wafu-light-gray);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wafu-gray);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--wafu-brown);
}

.product-share {
    margin: 25px 0;
}

.share-label {
    display: block;
    margin-bottom: 10px;
    color: var(--wafu-gray);
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wafu-white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.facebook-share { background: #1877F2; }
.twitter-share { background: #1DA1F2; }
.line-share { background: #00C300; }
.pinterest-share { background: #BD081C; }

/* 商品詳細タブ */
.product-tabs {
    margin: 40px 0;
}

.tabs-navigation {
    display: flex;
    border-bottom: 2px solid var(--wafu-light-gray);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-link {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--wafu-gray);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    position: relative;
}

.tab-link:hover {
    color: var(--wafu-red);
}

.tab-link.active {
    color: var(--wafu-red);
    border-bottom-color: var(--wafu-red);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--wafu-red);
}

.tab-content {
    padding: 30px 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.product-description {
    line-height: 1.8;
    font-size: 1rem;
}

.product-description h3 {
    color: var(--wafu-brown);
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

.product-description ul,
.product-description ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.product-description li {
    margin-bottom: 8px;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specifications-table th,
.specifications-table td {
    padding: 12px 15px;
    border: 1px solid var(--wafu-light-gray);
    text-align: left;
}

.specifications-table th {
    background: var(--wafu-cream);
    font-weight: 600;
    color: var(--wafu-brown);
    width: 200px;
}

.specifications-table tr:nth-child(even) {
    background: var(--wafu-beige);
}

/* レビュー */
.review-item {
    padding: 20px;
    border-bottom: 1px solid var(--wafu-light-gray);
    margin-bottom: 20px;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--wafu-black);
}

.review-date {
    color: var(--wafu-gray);
    font-size: 0.9rem;
}

.review-rating {
    color: var(--wafu-gold);
    font-size: 1rem;
}

.review-text {
    line-height: 1.7;
    color: var(--wafu-black);
}

.review-form {
    background: var(--wafu-cream);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid var(--wafu-light-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--wafu-black);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--wafu-light-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--wafu-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--wafu-red);
    box-shadow: 0 0 0 3px rgba(199, 62, 58, 0.1);
}

.rating-input {
    display: flex;
    gap: 5px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 1.5rem;
    color: var(--wafu-light-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: var(--wafu-gold);
}

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

.btn-submit {
    background: var(--wafu-red);
    color: var(--wafu-white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--wafu-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* --------------------------------------------------
   8. サイドバー
   -------------------------------------------------- */
.sidebar {
    background: var(--wafu-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--wafu-light-gray);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.3rem;
    color: var(--wafu-brown);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wafu-red);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--wafu-gold);
}

/* カテゴリーサイドバー */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    border-bottom: 1px solid var(--wafu-light-gray);
}

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

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--wafu-black);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-link:hover {
    color: var(--wafu-red);
    padding-left: 10px;
}

.category-name {
    flex: 1;
}

.category-count {
    background: var(--wafu-cream);
    color: var(--wafu-gray);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 30px;
    text-align: center;
}

.sub-category {
    padding-left: 20px;
    border-left: 2px solid var(--wafu-light-gray);
    margin: 10px 0 10px 10px;
    display: none;
}

.sub-category.active {
    display: block;
}

.sub-category .category-link {
    padding: 8px 0;
    font-size: 0.9rem;
}

/* フィルターサイドバー */
.filter-group {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--wafu-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-title i {
    transition: transform 0.3s ease;
    color: var(--wafu-gray);
}

.filter-title.collapsed i {
    transform: rotate(-90deg);
}

.filter-content {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-content::-webkit-scrollbar {
    width: 4px;
}

.filter-content::-webkit-scrollbar-track {
    background: var(--wafu-cream);
    border-radius: 2px;
}

.filter-content::-webkit-scrollbar-thumb {
    background: var(--wafu-light-gray);
    border-radius: 2px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
    flex: 1;
    color: var(--wafu-gray);
    transition: color 0.3s ease;
}

.filter-option:hover label {
    color: var(--wafu-black);
}

.filter-option input[type="checkbox"]:checked + label {
    color: var(--wafu-red);
    font-weight: 500;
}

/* 価格フィルター */
.price-range {
    padding: 10px 0;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--wafu-light-gray);
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: var(--wafu-red);
}

.price-slider {
    height: 4px;
    background: var(--wafu-light-gray);
    border-radius: 2px;
    position: relative;
    margin: 20px 0;
}

.price-slider .progress {
    height: 100%;
    left: 0%;
    right: 0%;
    position: absolute;
    background: var(--wafu-red);
    border-radius: 2px;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-input::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--wafu-white);
    border: 2px solid var(--wafu-red);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.range-input::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--wafu-white);
    border: 2px solid var(--wafu-red);
    pointer-events: auto;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

/* --------------------------------------------------
   9. 買い物かご
   -------------------------------------------------- */
.cart-page {
    background: var(--wafu-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    border: 1px solid var(--wafu-light-gray);
}

.cart-title {
    font-size: 1.8rem;
    color: var(--wafu-brown);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--wafu-red);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table thead {
    background: var(--wafu-cream);
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--wafu-brown);
    border-bottom: 2px solid var(--wafu-red);
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--wafu-light-gray);
    vertical-align: middle;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--wafu-light-gray);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-weight: 600;
    color: var(--wafu-black);
    margin-bottom: 5px;
}

.cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: var(--wafu-red);
}

.cart-item-attributes {
    font-size: 0.9rem;
    color: var(--wafu-gray);
    margin-top: 5px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn-small {
    width: 30px;
    height: 30px;
    border: 1px solid var(--wafu-light-gray);
    background: var(--wafu-cream);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn-small:hover {
    background: var(--wafu-light-gray);
}

.qty-input-small {
    width: 50px;
    height: 30px;
    border: 1px solid var(--wafu-light-gray);
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.cart-item-price {
    font-weight: 600;
    color: var(--wafu-red);
    font-size: 1.1rem;
}

.cart-item-remove {
    color: var(--wafu-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: var(--wafu-red);
    background: rgba(199, 62, 58, 0.1);
}

.cart-summary {
    background: var(--wafu-cream);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--wafu-light-gray);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--wafu-light-gray);
}

.summary-row:last-child {
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wafu-red);
}

.summary-label {
    color: var(--wafu-gray);
}

.summary-value {
    font-weight: 600;
    color: var(--wafu-black);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--wafu-light-gray);
    flex-wrap: wrap;
    gap: 15px;
}

.btn-continue-shopping {
    background: var(--wafu-cream);
    color: var(--wafu-black);
    border: 2px solid var(--wafu-light-gray);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-continue-shopping:hover {
    background: var(--wafu-light-gray);
    border-color: var(--wafu-gray);
    transform: translateY(-2px);
}

.btn-update-cart {
    background: var(--wafu-brown);
    color: var(--wafu-white);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-update-cart:hover {
    background: var(--wafu-dark-brown);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-checkout {
    background: var(--wafu-red);
    color: var(--wafu-white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-checkout:hover {
    background: var(--wafu-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--wafu-light-gray);
    margin-bottom: 20px;
}

.empty-cart-message {
    font-size: 1.2rem;
    color: var(--wafu-gray);
    margin-bottom: 30px;
}

/* --------------------------------------------------
   10. チェックアウト
   -------------------------------------------------- */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--wafu-light-gray);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wafu-white);
    border: 2px solid var(--wafu-light-gray);
    color: var(--wafu-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--wafu-red);
    border-color: var(--wafu-red);
    color: var(--wafu-white);
    box-shadow: 0 0 0 5px rgba(199, 62, 58, 0.1);
}

.step.completed .step-number {
    background: var(--wafu-gold);
    border-color: var(--wafu-gold);
    color: var(--wafu-black);
}

.step-label {
    font-size: 0.9rem;
    color: var(--wafu-gray);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--wafu-red);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--wafu-gold);
}

.checkout-form {
    background: var(--wafu-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--wafu-light-gray);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--wafu-light-gray);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    color: var(--wafu-brown);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wafu-red);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--wafu-gold);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-full {
    grid-column: 1 / -1;
}

.shipping-methods,
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.method-option {
    border: 2px solid var(--wafu-light-gray);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.method-option:hover {
    border-color: var(--wafu-gray);
    background: var(--wafu-cream);
}

.method-option.selected {
    border-color: var(--wafu-red);
    background: rgba(199, 62, 58, 0.05);
}

.method-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.method-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--wafu-cream);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--wafu-brown);
    flex-shrink: 0;
}

.method-info {
    flex: 1;
}

.method-name {
    font-weight: 600;
    color: var(--wafu-black);
    margin-bottom: 5px;
}

.method-description {
    font-size: 0.9rem;
    color: var(--wafu-gray);
    line-height: 1.5;
}

.order-summary {
    background: var(--wafu-cream);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--wafu-light-gray);
    margin-bottom: 30px;
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.summary-items::-webkit-scrollbar {
    width: 4px;
}

.summary-items::-webkit-scrollbar-track {
    background: var(--wafu-beige);
    border-radius: 2px;
}

.summary-items::-webkit-scrollbar-thumb {
    background: var(--wafu-light-gray);
    border-radius: 2px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--wafu-light-gray);
}

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

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 500;
    color: var(--wafu-black);
    margin-bottom: 3px;
}

.item-attributes {
    font-size: 0.85rem;
    color: var(--wafu-gray);
}

.item-quantity {
    color: var(--wafu-gray);
    font-size: 0.9rem;
}

.item-price {
    font-weight: 600;
    color: var(--wafu-black);
    min-width: 80px;
    text-align: right;
}

/* --------------------------------------------------
   11. フッター
   -------------------------------------------------- */
#footerWrapper {
    background: var(--wafu-black);
    color: var(--wafu-white);
    padding: 60px 0 20px 0;
    position: relative;
    border-top: 3px solid var(--wafu-red);
}

#footerWrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--wafu-red) 0%, 
        var(--wafu-gold) 25%, 
        var(--wafu-white) 50%, 
        var(--wafu-gold) 75%, 
        var(--wafu-red) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 1.3rem;
    color: var(--wafu-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--wafu-red);
    position: relative;
    font-family: "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", YuMincho, serif;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--wafu-gold);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--wafu-light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--wafu-white);
    padding-left: 5px;
}

.footer-links a i {
    width: 20px;
    text-align: center;
    color: var(--wafu-gray);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--wafu-light-gray);
}

.contact-item i {
    color: var(--wafu-gold);
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--wafu-brown);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--wafu-white);
    font-size: 0.95rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--wafu-red);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-input::placeholder {
    color: var(--wafu-light-gray);
}

.newsletter-btn {
    background: var(--wafu-red);
    color: var(--wafu-white);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--wafu-dark-red);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--wafu-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--wafu-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.payment-method {
    width: 50px;
    height: 30px;
    background: var(--wafu-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wafu-gray);
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--wafu-light-gray);
    font-size: 0.9rem;
}

.copyright {
    margin-bottom: 10px;
}

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

.footer-bottom-links a {
    color: var(--wafu-light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--wafu-white);
}

/* --------------------------------------------------
   12. ユーティリティクラス
   -------------------------------------------------- */
.text-red { color: var(--wafu-red); }
.text-gold { color: var(--wafu-gold); }
.text-brown { color: var(--wafu-brown); }
.text-gray { color: var(--wafu-gray); }
.text-light { color: var(--wafu-light-gray); }

.bg-cream { background: var(--wafu-cream); }
.bg-beige { background: var(--wafu-beige); }
.bg-light-beige { background: var(--wafu-light-beige); }



.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0}
.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.pt-30 { padding-top: 30px; }
.pb-30 { padding-bottom: 30px; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: var(--shadow-light); }
.shadow-md { box-shadow: var(--shadow-medium); }
.shadow-lg { box-shadow: var(--shadow-heavy); }

.border { border: 1px solid var(--wafu-light-gray); }
.border-t { border-top: 1px solid var(--wafu-light-gray); }
.border-b { border-bottom: 1px solid var(--wafu-light-gray); }
.border-l { border-left: 1px solid var(--wafu-light-gray); }
.border-r { border-right: 1px solid var(--wafu-light-gray); }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

.transition-all { transition: all 0.3s ease; }
.transition-transform { transition: transform 0.3s ease; }
.transition-opacity { transition: opacity 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }

.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.translate-y-0 { --tw-translate-y: 0px; }
.translate-y-1 { --tw-translate-y: 0.25rem; }
.translate-y-2 { --tw-translate-y: 0.5rem; }
.translate-y--1 { --tw-translate-y: -0.25rem; }
.translate-y--2 { --tw-translate-y: -0.5rem; }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }
.scale-110 { --tw-scale-x: 1.1; --tw-scale-y: 1.1; }
.rotate-0 { --tw-rotate: 0deg; }
.rotate-90 { --tw-rotate: 90deg; }
.rotate-180 { --tw-rotate: 180deg; }
.rotate-270 { --tw-rotate: 270deg; }

/* --------------------------------------------------
   13. アニメーション
   -------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

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

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease;
}

.animate-fade-in-down {
    animation: fadeInDown 0.5s ease;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.5s ease;
}

.animate-fade-in-right {
    animation: fadeInRight 0.5s ease;
}

.animate-slide-in-up {
    animation: slideInUp 0.5s ease;
}

.animate-slide-in-down {
    animation: slideInDown 0.5s ease;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* --------------------------------------------------
   14. メディアクエリ（レスポンシブ対応）
   -------------------------------------------------- */

/* タブレット（768px以上） */
@media (min-width: 768px) {
    .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:text-left { text-align: left; }
    .md\:text-center { text-align: center; }
    .md\:text-right { text-align: right; }
}

/* デスクトップ（1024px以上） */
@media (min-width: 1024px) {
    .lg\:grid-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:text-left { text-align: left; }
    .lg\:text-center { text-align: center; }
    .lg\:text-right { text-align: right; }
}

/* モバイル（768px未満） */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-logo img {
        max-height: 60px;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--wafu-white);
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-heavy);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-menu.active {
        left: 0;
    }
    
    .menu-item {
        width: 100%;
    }
    
    .menu-link {
        border-right: none;
        border-bottom: 1px solid var(--wafu-light-gray);
        padding: 15px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--wafu-light-gray);
        margin-left: 20px;
        margin-top: 10px;
    }
    
    .dropdown-link {
        border-bottom: none;
        border-top: 1px solid var(--wafu-light-gray);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .product-detail-main {
        grid-template-columns: 1fr;
    }
    
    .product-actions-detail {
        flex-direction: column;
    }
    
    .btn-add-to-cart-large {
        width: 100%;
    }
    
    .checkout-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .step {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .step-number {
        margin: 0;
    }
    
    .checkout-steps::before {
        display: none;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 小型モバイル（480px未満） */
@media (max-width: 479px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
    }
    
    .cart-table th,
    .cart-table td {
        white-space: nowrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

/* --------------------------------------------------
   15. ダークモード対応
   -------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --wafu-beige: #1a1a1a;
        --wafu-light-beige: #2d2d2d;
        --wafu-cream: #2a2a2a;
        --wafu-white: #2d2d2d;
        --wafu-light-gray: #404040;
        --wafu-gray: #666666;
        --wafu-black: #f5f5f5;
    }
    
    body {
        color: #e0e0e0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #f0f0f0;
    }
    
    .product-item,
    .sidebar,
    .cart-page,
    .checkout-form,
    .main-wrapper {
        background: var(--wafu-light-beige);
        border-color: var(--wafu-light-gray);
    }
    
    .form-control,
    .search-input,
    .price-input,
    .newsletter-input {
        background: var(--wafu-beige);
        border-color: var(--wafu-gray);
        color: #e0e0e0;
    }
    
    .form-control:focus,
    .search-input:focus {
        background: var(--wafu-beige);
    }
}

/* --------------------------------------------------
   16. 印刷スタイル
   -------------------------------------------------- */
@media print {
    .header-main,
    .main-navigation,
    .hero-section,
    .action-btn,
    .product-actions,
    .sidebar,
    .social-links,
    .newsletter-form,
    .footer-bottom-links,
    .btn-continue-shopping,
    .btn-update-cart,
    .menu-toggle,
    .share-buttons {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .product-item,
    .cart-page,
    .checkout-form {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    .btn-checkout,
    .btn-submit {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}

/* --------------------------------------------------
   17. アクセシビリティ
   -------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--wafu-red);
    outline-offset: 2px;
}

.focus-visible:focus:not(:focus-visible) {
    outline: none;
}

.focus-visible:focus-visible {
    outline: 2px solid var(--wafu-red);
    outline-offset: 2px;
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    :root {
        --wafu-red: #b22222;
        --wafu-gold: #daa520;
        --wafu-brown: #8b4513;
    }
    
    a:hover,
    a:focus {
        text-decoration: underline;
        text-decoration-thickness: 2px;
    }
    
    .btn-checkout,
    .btn-submit,
    .btn-add-to-cart-large {
        border: 2px solid currentColor;
    }
}

/* 減速モーション対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 高DPIディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image,
    .main-image,
    .thumbnail-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}