/*
 Theme Name:   Tsukuru Factory (Tsukuru Factory)
 Description:  Tsukuru Factory用のStorefront子テーマ
 Author:       Kitsune Factory
 Template:     storefront
 Version:      1.0.0
*/

/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #ff4444;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
    --success-color: #00a854;
    --transition: all 0.3s ease;
}

/* ===================================
   Storefront Theme Overrides
   =================================== */
/* コンテンツ幅を全幅に設定 */
.site-content {
    margin: 0;
    padding: 0;
}

.site-content>.col-full,
.site-content .col-full {
    max-width: 100%;
    padding: 0;
}

/* WooCommerceページの全幅対応 */
.woocommerce-page .site-content,
.woocommerce-page .col-full,
.woocommerce-page #primary,
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* サイドバーを非表示（カスタムサイドバーを使用） */
.products-page-main #secondary,
.woocommerce-page .storefront-sorting,
.woocommerce-page .storefront-product-section {
    display: none;
}

/* Storefrontのデフォルト商品グリッドを非表示 */
.woocommerce ul.products {
    display: none;
}

/* Storefrontのページタイトルを非表示（カスタムタイトル使用） */
.woocommerce-products-header__title.page-title {
    display: none;
}

/* カートページ用スタイル */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* WooCommerceカート・チェックアウトテーブル */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .cart-collaterals {
    max-width: 1400px;
    margin: 40px auto 0;
}

.woocommerce-cart .cart_totals {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ボタンスタイルの統一 */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: #333;
    color: white;
}

/* ===================================
   Front Page Base
   =================================== */
.front-page {
    overflow-x: hidden;
}

.front-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 商品一覧ページのコンテナ */
.products-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Top Banner
   =================================== */
.top-banner {
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
}

.top-banner strong {
    font-weight: 700;
}

.banner-link {
    text-decoration: underline;
    margin-left: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.banner-link:hover {
    color: var(--accent-color);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

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

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-btn.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.hero-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   Section Common
   =================================== */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Technology Section
   =================================== */
.technology-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.tech-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tech-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.tech-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.tech-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tech-card p {
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.9;
}

.tech-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    opacity: 0.85;
}

.tech-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--success-color);
}

.tech-card.featured .tech-features li::before {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Categories Section
   =================================== */
.categories-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
}

.category-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-icon {
    font-size: 64px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.category-card h3 {
    padding: 20px 20px 8px;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.category-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works-section {
    padding: 80px 0;
    background: var(--background-light);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 300px;
    text-align: center;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

.step-arrow {
    font-size: 32px;
    color: var(--text-light);
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--background-light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio-section {
    padding: 80px 0;
    background: var(--background-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
}

.portfolio-image {
    aspect-ratio: 1;
    border-radius: 12px;
}

.portfolio-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.cta-btn.primary {
    background: white;
    color: #667eea;
}

.cta-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.cta-btn.secondary:hover {
    background: white;
    color: #667eea;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .tech-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .step-arrow {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }
}

/* ===================================
   Custom Header
   =================================== */
.custom-header {
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

/* Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Site Branding */
.site-branding {
    flex: 1;
    text-align: center;
}

.site-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--primary-color);
}

/* Header Icons */
.search-toggle,
.cart-toggle {
    padding: 8px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ===================================
   Mobile Navigation
   =================================== */
.mobile-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary-color);
    z-index: 1002;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-navigation.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-title {
    font-weight: 700;
    font-size: 18px;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-color);
}

.mobile-nav-content {
    padding: 20px;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
}

/* Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* ===================================
   Custom Footer
   =================================== */
.custom-footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section p {
    opacity: 0.8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 14px;
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 13px;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 14px;
    color: var(--secondary-color);
    text-decoration: none;
}

.social-links a:hover {
    opacity: 1;
}

/* ===================================
   Header/Footer Responsive
   =================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
    }

    .site-logo {
        font-size: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* ===================================
   Products Page Styles
   =================================== */

/* パンくずリスト */
.breadcrumb {
    padding: 15px 0;
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
    text-decoration: none;
}

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

.breadcrumb-separator {
    margin: 0 10px;
    color: var(--text-light);
}

/* 商品ページレイアウト */
.products-page {
    padding: 40px 0;
    min-height: 100vh;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* サイドバー */
.products-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

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

.filter-list li {
    margin-bottom: 12px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.filter-item:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.filter-item.active {
    background: var(--primary-color);
    color: white;
}

.filter-item span {
    flex: 1;
}

.filter-count {
    color: var(--text-light);
    font-size: 13px;
}

.filter-item.active .filter-count {
    color: rgba(255, 255, 255, 0.8);
}

.price-range {
    padding: 10px 0;
}

.filter-reset {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
}

.filter-reset:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 商品メインエリア */
.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.products-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.products-count {
    color: var(--text-light);
    font-size: 14px;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 18px;
    background: white;
    transition: var(--transition);
    cursor: pointer;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 商品グリッド */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
}

.product-badge.new {
    background: #4caf50;
    color: white;
}

.product-badge.popular {
    background: #ff9800;
    color: white;
}

.product-badge.sale {
    background: var(--accent-color);
    color: white;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-link {
    display: block;
}

.product-image,
.product-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image,
.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.product-card:hover .quick-view-btn {
    bottom: 16px;
}

.product-card-content {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 44px;
}

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

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

.product-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.delivery-time {
    font-size: 13px;
    color: var(--text-light);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.price-from {
    font-size: 20px;
    font-weight: 700;
}

.price-sale {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
}

.price-original {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.product-card-btn:hover {
    background: #333;
    color: white;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    min-width: 44px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* No Products */
.no-products-found {
    text-align: center;
    padding: 80px 20px;
}

.no-products-found p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.btn-back-to-shop {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-back-to-shop:hover {
    background: #333;
    color: white;
}

/* Products Page Responsive */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

    .products-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-controls {
        width: 100%;
        justify-content: space-between;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-card-title {
        font-size: 14px;
        min-height: auto;
    }

    .price-from,
    .price-sale {
        font-size: 18px;
    }
}

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

    .products-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Single Product Page Styles
   =================================== */

/* 商品詳細ページレイアウト */
.product-detail-page {
    padding: 40px 0;
}

.product-detail-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
}

/* ギャラリー */
.product-gallery {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-main .main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #0D9488;
    color: white;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-thumbs .thumb {
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    background: #f5f5f5;
}

.gallery-thumbs .thumb:hover {
    border-color: #ccc;
}

.gallery-thumbs .thumb.active {
    border-color: #0D9488;
}

.gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品情報 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-info .product-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #111;
}

.product-info .product-price {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-info .product-price del {
    color: #9ca3af;
    font-size: 18px;
    font-weight: 400;
}

.product-info .product-price ins {
    text-decoration: none;
    color: #111;
}

.product-info .product-price .sale-badge {
    font-size: 12px;
    color: #0D9488;
    font-weight: 600;
}

/* カスタムオプションエリア */
.product-add-to-cart .kf-custom-options-form {
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 24px;
}

.product-add-to-cart .kf-options-title {
    display: none;
}

.product-add-to-cart .kf-option-group {
    margin-bottom: 16px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.product-add-to-cart .kf-option-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding: 0;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* カラーカスタマイズ（パーツカラー）を横並びに */
.product-custom-options .kf-color-parts-group .kf-color-part-section {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.product-custom-options .kf-color-parts-group .kf-color-part-section:nth-child(odd) {
    margin-right: 16px;
}

/* カートに追加セクション */
.product-add-to-cart {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.product-add-to-cart form.cart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 個数選択とボタンを横並びに */
.product-add-to-cart form.cart>.quantity,
.product-add-to-cart form.cart>.single_add_to_cart_button {
    display: inline-flex;
}

.product-add-to-cart form.cart {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.product-add-to-cart .quantity {
    flex: 0 0 auto;
}

.product-add-to-cart .quantity .qty {
    width: 80px;
    padding: 14px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    background: white;
}

.product-add-to-cart .single_add_to_cart_button {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.product-add-to-cart .single_add_to_cart_button:hover {
    background: #333;
    transform: translateY(-1px);
}

/* バリエーション */
.product-add-to-cart .variations {
    width: 100%;
    margin-bottom: 20px;
}

.product-add-to-cart .variations td {
    display: block;
    padding: 8px 0;
}

.product-add-to-cart .variations select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

/* アコーディオン */
.product-accordions {
    margin-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.accordion-header:hover {
    color: #0D9488;
}

.accordion-icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.accordion-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.accordion-header.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    display: none;
    padding: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

.accordion-content.active {
    display: block;
}

.accordion-content p {
    margin: 0 0 8px 0;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

/* 商品メタ */
.product-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-light);
}

.product-meta a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.product-meta a:hover {
    color: var(--primary-color);
}

/* タブセクション */
.product-description-section {
    margin-bottom: 60px;
}

.description-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: var(--text-light);
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    background: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.tab-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.tab-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.tab-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 特徴セクション */
.features-section {
    margin-bottom: 60px;
    padding: 60px 0;
    background: var(--background-light);
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.features-section .section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon-img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

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

.related-products-section .section-title {
    font-size: 24px;
    margin-bottom: 30px;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 商品詳細ページ レスポンシブ */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

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

@media (max-width: 768px) {
    .product-info .product-title {
        font-size: 24px;
    }

    .product-info .product-price {
        font-size: 22px;
    }

    .description-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        white-space: nowrap;
        padding: 12px 16px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-thumbs .thumb {
        width: 60px;
        height: 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Additional Product Sections
   =================================== */

/* バンドルセクション */
.bundle-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 60px;
}

.bundle-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bundle-content p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bundle-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.bundle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* 使い方セクション */
.how-it-works-section {
    margin-bottom: 60px;
    text-align: center;
}

.how-it-works-section .section-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.how-it-works-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.how-it-works-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* マルチユースセクション */
.multi-use-section {
    margin-bottom: 60px;
    text-align: center;
}

.multi-use-section .section-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.multi-use-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.multi-use-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 追加セクションレスポンシブ */
@media (max-width: 768px) {
    .bundle-section {
        padding: 40px 20px;
    }

    .bundle-content h2 {
        font-size: 22px;
    }

    .how-it-works-section .section-title,
    .multi-use-section .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* コンテンツセクション（リピーター対応・2カラム交互配置） */
.content-section {
    margin-bottom: 60px;
}

.content-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-section-text {
    text-align: left;
}

.content-section-text .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.content-section-text .section-description {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.content-section-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.content-section-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 反転レイアウト（画像を左、テキストを右に） */
.content-section-reverse .content-section-inner {
    direction: rtl;
}

.content-section-reverse .content-section-inner>* {
    direction: ltr;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .content-section-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-section-text {
        text-align: center;
    }

    .content-section-text .section-title {
        font-size: 22px;
    }

    .content-section-reverse .content-section-inner {
        direction: ltr;
    }
}

/* ===================================
   カスタムオプションフォーム
   =================================== */
.kf-custom-options-form {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.kf-options-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.kf-option-group {
    margin-bottom: 24px;
}

.kf-option-group:last-child {
    margin-bottom: 0;
}

.kf-option-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-base);
}

.kf-option-group small {
    font-weight: 400;
    color: var(--text-light);
}

/* ファイルアップロード */
.kf-file-field {
    margin-bottom: 16px;
}

.kf-file-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.kf-file-field .required {
    color: #dc3232;
    margin-left: 4px;
}

.kf-file-field input[type="file"] {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
}

.kf-file-field input[type="file"]:hover {
    border-color: var(--primary-color);
}

.kf-file-field small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 12px;
}

.kf-upload-notice {
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 13px;
    color: #856404;
}

/* テキスト入力 */
.kf-text-field {
    margin-bottom: 16px;
}

.kf-text-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

.kf-text-field .required {
    color: #dc3232;
    margin-left: 4px;
}

.kf-text-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
}

.kf-text-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 49, 128, 0.1);
}

/* カラースウォッチ */
.kf-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kf-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.kf-color-swatch:hover {
    border-color: #ccc;
}

.kf-color-swatch input {
    display: none;
}

.kf-color-swatch input:checked+.kf-swatch-color {
    box-shadow: 0 0 0 3px #111;
}

.kf-swatch-color {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.kf-swatch-name {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    display: none;
}

/* パーツ別カラー選択 */
.kf-color-parts-group {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
}

.kf-color-part-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.kf-color-part-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.kf-part-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-base);
}

.kf-part-swatches {
    gap: 8px;
}

.kf-part-swatches .kf-swatch-color {
    width: 32px;
    height: 32px;
}

.kf-part-swatches .kf-swatch-name {
    font-size: 11px;
}

/* 追加オプション */
.kf-extra-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.kf-extra-option:hover {
    border-color: var(--primary-color);
}

.kf-extra-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.kf-option-name {
    font-weight: 500;
}

.kf-option-price {
    color: var(--primary-color);
    font-weight: 600;
}

.kf-option-desc {
    width: 100%;
    padding-left: 26px;
    color: var(--text-light);
    font-size: 12px;
}

/* 数量選択 */
.kf-quantity-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.kf-quantity-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .kf-custom-options-form {
        padding: 16px;
        margin: 16px 0;
    }

    .kf-options-title {
        font-size: 18px;
    }

    .kf-color-swatches {
        gap: 8px;
    }

    .kf-swatch-color {
        width: 32px;
        height: 32px;
    }
}