/*
Theme Name: NumakenShop Pro
Description: モダンなECサイトテーマ（Stripe決済対応）
Author: @numaken_jp
Version: 1.0
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #f5f5f7;
    overflow-x: hidden;
}

/* ヘッダー */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.site-logo {
    font-size: 24px;
    font-weight: 600;
    color: #f5f5f7;
    text-decoration: none;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #0071e3;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3b30;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ヒーローセクション */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(45deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #0071e3;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.cta-button:hover {
    background: #0051ba;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}

/* 商品セクション */
.products-section {
    padding: 100px 0;
    background: #f5f5f7;
    color: #1d1d1f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 64px;
    color: #1d1d1f;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-featured-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    overflow: hidden;
}

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

.product-info {
    padding: 24px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.product-excerpt {
    color: #86868b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.add-to-cart-btn {
    width: 100%;
    background: #0071e3;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #0051ba;
}

/* カートモーダル */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.cart-modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    color: #1d1d1f;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #86868b;
}

.cart-items {
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e7;
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin: 24px 0;
    color: #1d1d1f;
}

.checkout-button {
    width: 100%;
    background: #34c759;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-button:hover {
    background: #30b454;
}

/* 決済モーダル */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.payment-modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    color: #1d1d1f;
}

.payment-form {
    margin-top: 24px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d1d1f;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0071e3;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.pay-button {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.3s ease;
}

.pay-button:hover {
    background: #333;
}

/* サイトフッター */
.site-footer {
    background: #1d1d1f;
    color: #86868b;
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #f5f5f7;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section a {
    color: #86868b;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0071e3;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #424245;
}

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* 成功メッセージ */
.success-message {
    background: #34c759;
    color: white;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    display: none;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* WordPress固有のスタイル */
.wp-block-group {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.single-product .product-content {
    background: #f5f5f7;
    padding: 100px 0;
}

.woocommerce-product-gallery {
    margin-bottom: 32px;
}

.woocommerce-variation-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 16px 0;
}

/* WordPressエディターサポート */
.has-large-font-size {
    font-size: 2.25rem;
}

.has-medium-font-size {
    font-size: 1.25rem;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* WP Simple Pay カスタムスタイル */
.techstore-payment-form {
    margin: 20px 0;
}

.techstore-payment-btn,
.simpay-payment-btn,
.stripe-button-el {
    width: 100% !important;
    background: #0071e3 !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

.techstore-payment-btn:hover,
.simpay-payment-btn:hover,
.stripe-button-el:hover {
    background: #0051ba !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3) !important;
}

.techstore-payment-btn.large {
    padding: 20px 48px !important;
    font-size: 18px !important;
    border-radius: 50px !important;
}

.payment-section {
    margin-top: 16px;
}

.payment-section-small {
    margin-top: 12px;
}

.payment-setup-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.payment-setup-notice p {
    margin: 0;
    margin-bottom: 8px;
}

.payment-setup-notice p:last-child {
    margin-bottom: 0;
}

.out-of-stock-badge {
    background: #ff3b30;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.view-product-btn {
    display: inline-block;
    width: 100%;
    background: #86868b;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background 0.3s ease;
}

.view-product-btn:hover {
    background: #6d6d70;
    color: white;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
}

.products-link {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.products-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #0071e3;
}

/* Simple Pay フォームのオーバーライド */
.simpay-form-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.simpay-checkout-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.simpay-form-control {
    margin-bottom: 15px !important;
}

.simpay-label {
    color: #1d1d1f !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.simpay-input {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease !important;
    background: white !important;
}

.simpay-input:focus {
    outline: none !important;
    border-color: #0071e3 !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1) !important;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {

    .techstore-payment-btn,
    .simpay-payment-btn,
    .stripe-button-el {
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    .techstore-payment-btn.large {
        padding: 16px 32px !important;
        font-size: 16px !important;
    }
}