/* ===========================================
   COMPLETE REDESIGN - Editorial Magazine Style
   雑誌的・非対称・余白の美学
   =========================================== */

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

html {
    font-size: 62.5%;
}

body {
    font-family: 'Noto Sans JP', -apple-system, system-ui, sans-serif;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #0a0a0a;
    background: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 微細なグレインテクスチャ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence baseFrequency="0.9" numOctaves="3"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="0.015"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* ===========================================
   ヘッダー - 固定なし、シンプルなバー
   =========================================== */
header {
    position: relative;
    background: transparent;
    padding: 32px 0;
    animation: fadeIn 0.6s ease;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.8rem;
    font-weight: 300;
    color: #0a0a0a;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.6;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #0a0a0a;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0a0a0a;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: #0a0a0a !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 0 !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.btn-primary::after {
    display: none !important;
}

.btn-primary:hover {
    background: #2a2a2a !important;
    transform: translateY(-1px) !important;
}

/* ===========================================
   ヒーロー - 左寄せ大胆タイポグラフィ
   非対称レイアウト
   =========================================== */
.hero {
    max-width: 1400px;
    margin: 80px auto 180px;
    padding: 0 60px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero h1 {
    font-size: 9.6rem;
    font-weight: 200;
    color: #0a0a0a;
    line-height: 0.95;
    letter-spacing: -4px;
    margin-bottom: 40px;
}

.hero p {
    font-size: 2.4rem;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin-bottom: 48px;
    max-width: 600px;
}

.hero-features {
    display: flex;
    gap: 48px;
    list-style: none;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.2s backwards;
}

.hero-features li {
    font-size: 1.5rem;
    color: #0a0a0a;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 20px;
}

.hero-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: #0a0a0a;
}

/* ===========================================
   検索 - ミニマルで控えめ
   =========================================== */
.search-section {
    max-width: 1400px;
    margin: 0 auto 120px;
    padding: 0 60px;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.3s backwards;
}

.search-form {
    max-width: 600px;
    display: flex;
    gap: 16px;
    border-bottom: 2px solid #0a0a0a;
    padding-bottom: 12px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    font-weight: 300;
    color: #0a0a0a;
    font-family: inherit;
    padding: 8px 0;
}

.search-input::placeholder {
    color: #999;
}

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

.search-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #0a0a0a;
    cursor: pointer;
    padding: 8px 16px;
    transition: opacity 0.3s ease;
    font-weight: 300;
    letter-spacing: 1px;
}

.search-btn:hover {
    opacity: 0.6;
}

.search-result-info {
    margin-top: 24px;
    font-size: 1.4rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ===========================================
   メインコンテンツ - 余白豊か
   =========================================== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 120px;
}

.page-header {
    margin-bottom: 80px;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.page-header h1 {
    font-size: 7.2rem;
    font-weight: 200;
    color: #0a0a0a;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 2rem;
    font-weight: 300;
    color: #666;
    letter-spacing: 0.5px;
}

/* ===========================================
   商品セクション - ヒーローと完全に同じ位置に配置
   =========================================== */
.products-section {
    animation: fadeIn 1s ease;
    /* mainのpaddingで既に左右60pxあるので追加不要 */
    
    /* 修正/追加: ヒーローと同じコンテナ設定を適用 */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-header {
    margin-bottom: 64px;
    /* 左マージンなし - mainのpaddingと同じ位置から開始 */
}

.section-header h2 {
    font-size: 4.8rem;
    font-weight: 200;
    color: #0a0a0a;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.8rem;
    font-weight: 300;
    color: #666;
}

/* 商品グリッド - ヒーローと同じ左位置から開始 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
    /* 左マージンなし - mainのpaddingと同じ位置から開始 */
}

.product-card {
    background: white;
    border: 1px solid #e5e5e5;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.19, 1, 0.22, 1) backwards;
    position: relative;
}

.product-card:nth-child(3n+1) {
    animation-delay: 0s;
}

.product-card:nth-child(3n+2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3n) {
    animation-delay: 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    border-color: #0a0a0a;
}



/* ホームページの商品グリッドでは画像エリアを非表示 */
.products-section .product-image {
    display: none;
}

.products-section .product-card {
    border-top: 3px solid #0a0a0a;
}

.product-info {
    padding: 32px;
}

.product-title {
    font-size: 2rem;
    font-weight: 400;
    color: #0a0a0a;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.product-price {
    font-size: 2.8rem;
    font-weight: 300;
    color: #0a0a0a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.product-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.seller-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
}

.product-seller span {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
}

/* ===========================================
   カード - クリーンで余白豊か
   =========================================== */
.card {
    background: white;
    border: 1px solid #e5e5e5;
    padding: 64px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-card {
    background: white;
    border: 1px solid #e5e5e5;
    padding: 56px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) backwards;
}

.section-card:nth-child(2) { animation-delay: 0.1s; }
.section-card:nth-child(3) { animation-delay: 0.2s; }
.section-card:nth-child(4) { animation-delay: 0.3s; }

.section-card h2 {
    font-size: 3.2rem;
    font-weight: 300;
    color: #0a0a0a;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.count-badge {
    background: #0a0a0a;
    color: white;
    padding: 4px 12px;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ===========================================
   残高カード - アクセントカラー使用
   =========================================== */
.balance-card {
    background: #0a0a0a;
    padding: 64px;
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.balance-content {
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.balance-amount {
    font-size: 7.2rem;
    font-weight: 200;
    color: white;
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.balance-info {
    background: rgba(255, 255, 255, 0.08);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-info h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 400;
    color: white;
    letter-spacing: 0.5px;
}

.balance-info p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* ===========================================
   商品リスト
   =========================================== */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-item {
    background: #fafafa;
    padding: 28px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.product-item:hover {
    background: white;
    border-color: #e5e5e5;
    transform: translateX(4px);
}

.product-detail {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 1.3rem;
    color: #666;
}

.product-detail strong {
    color: #0a0a0a;
    font-weight: 500;
}

.product-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.contact-info-text {
    background: #f5f5f5;
    padding: 16px;
    margin-top: 12px;
    font-size: 1.4rem;
    color: #0a0a0a;
    font-weight: 400;
    border-left: 2px solid #0a0a0a;
}

/* ===========================================
   フォーム - ミニマルデザイン
   =========================================== */
.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 400;
    color: #0a0a0a;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group small {
    display: block;
    color: #666;
    font-size: 1.2rem;
    margin-top: 8px;
    font-weight: 300;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 1.6rem; /* = 16px (これが重要) */
    font-family: inherit;
    background: white;
    color: #0a0a0a;
    transition: all 0.3s ease;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0a0a0a;
    background: #fafafa;
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

#card-number,
#card-expiry,
#card-cvc {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background: white;
    transition: all 0.3s ease;
}

#card-number:focus-within,
#card-expiry:focus-within,
#card-cvc:focus-within {
    border-color: #0a0a0a;
    background: #fafafa;
}

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

.fee-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.fee-option {
    position: relative;
}

.fee-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.fee-option label {
    display: block;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    color: #0a0a0a;
    font-size: 1.4rem;
}

.fee-option input[type="radio"]:checked + label {
    background: #0a0a0a;
    color: white;
    border-color: #0a0a0a;
}

.fee-option label:hover {
    border-color: #0a0a0a;
}

/* ===========================================
   プレビューカード
   =========================================== */
.preview-card {
    background: #f5f5f5;
    padding: 32px;
    margin: 32px 0;
    border-left: 3px solid #0a0a0a;
}

.preview-card h3 {
    font-size: 1.6rem;
    color: #0a0a0a;
    margin-bottom: 24px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.info-row.highlight {
    border-bottom: none;
    border-top: 2px solid #0a0a0a;
    padding-top: 16px;
    margin-top: 12px;
}

.info-label {
    font-weight: 400;
    color: #666;
    font-size: 1.3rem;
}

.info-value {
    font-weight: 400;
    color: #0a0a0a;
    font-size: 1.4rem;
}

/* ===========================================
   ボタン - ミニマルブラック
   =========================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: #0a0a0a;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 1.4rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #0a0a0a;
    border: 1px solid #0a0a0a;
}

.btn-secondary:hover {
    background: #0a0a0a;
    color: white;
}

.btn-danger {
    background: #d32f2f;
}

.btn-danger:hover {
    background: #b71c1c;
}

/* ===========================================
   アラート
   =========================================== */
.alert {
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.4rem;
    font-weight: 400;
    border-left: 3px solid;
    animation: slideIn 0.5s ease;
}

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

.alert::before {
    font-size: 2rem;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-color: #c62828;
}

.alert-error::before {
    content: '⚠️';
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #2e7d32;
}

.alert-success::before {
    content: '✅';
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #1565c0;
}

.alert-info::before {
    content: 'ℹ️';
}

/* ===========================================
   ステータスバッジ
   =========================================== */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-paid {
    background: #2e7d32;
    color: white;
}

.status-completed {
    background: #0a0a0a;
    color: white;
}

/* ===========================================
   商品詳細ページ
   =========================================== */
.product-content {
    padding: 56px;
}

.product-header {
    margin-bottom: 32px;
}

.product-header h1 {
    font-size: 4.8rem;
    font-weight: 300;
    color: #0a0a0a;
    line-height: 1.2;
    letter-spacing: -1px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fafafa;
    border-left: 2px solid #0a0a0a;
    margin-bottom: 32px;
}

.seller-name {
    font-weight: 400;
    color: #0a0a0a;
    font-size: 1.5rem;
}

.contact-info-box {
    background: #f5f5f5;
    padding: 24px;
    margin-bottom: 32px;
    border-left: 3px solid #0a0a0a;
}

.contact-info-box h3 {
    font-size: 1.3rem;
    color: #0a0a0a;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-info-box p {
    font-size: 1.5rem;
    color: #0a0a0a;
    font-weight: 400;
}

.price-section {
    background: #fafafa;
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #e5e5e5;
}

.price-highlight {
    font-size: 4.8rem;
    font-weight: 300;
    color: #0a0a0a;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    letter-spacing: -1px;
}

.description-section {
    margin-bottom: 32px;
}

.description-section h2 {
    font-size: 2.4rem;
    color: #0a0a0a;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.description-text {
    font-size: 1.5rem;
    line-height: 1.9;
    color: #333;
    background: #fafafa;
    padding: 24px;
    white-space: pre-wrap;
    border-left: 2px solid #e5e5e5;
    font-weight: 300;
}

.info-section {
    margin-bottom: 32px;
}

.info-section h2 {
    font-size: 2.4rem;
    color: #0a0a0a;
    margin-bottom: 24px;
    font-weight: 400;
}

/* ===========================================
   空の状態
   =========================================== */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: #fafafa;
    border: 1px dashed #ccc;
}

.empty-icon {
    font-size: 8rem;
    margin-bottom: 24px;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

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

.empty-state h3 {
    font-size: 2.4rem;
    color: #666;
    margin-bottom: 12px;
    font-weight: 300;
}

.empty-state p {
    font-size: 1.5rem;
    color: #999;
    font-weight: 300;
}

/* ===========================================
   フッター
   =========================================== */
footer {
    background: white;
    color: #666;
    text-align: center;
    padding: 40px;
    margin-top: 120px;
    border-top: 1px solid #e5e5e5;
}

footer p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===========================================
   レスポンシブ - 画面に余白を確保
   =========================================== */
@media screen and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 58%;
    }

    nav {
        padding: 0 32px;
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .nav-links {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 8px 10px;
        white-space: nowrap;
        letter-spacing: 0.3px;
    }

    .btn-primary {
        padding: 8px 14px !important;
        font-size: 1.1rem !important;
    }

    .hero {
        margin: 60px auto 120px;
        padding: 0 32px;
    }

    .hero h1 {
        font-size: 6.4rem;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 24px;
    }

    .search-section {
        padding: 0 32px;
        margin-bottom: 80px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    main {
        padding: 0 32px 80px;
    }

    .page-header h1 {
        font-size: 4.8rem;
    }

    .card,
    .section-card {
        padding: 40px 32px;
    }

    .balance-card {
        padding: 48px 32px;
    }

    .balance-amount {
        font-size: 5.6rem;
    }

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

    .fee-options {
        grid-template-columns: 1fr;
    }

    .product-detail {
        flex-direction: column;
        gap: 8px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .product-content {
        padding: 40px 32px;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 56%;
    }

    nav {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 7px 8px;
        letter-spacing: 0.2px;
    }

    .btn-primary {
        padding: 7px 12px !important;
        font-size: 1.05rem !important;
        letter-spacing: 0.5px !important;
    }

    .hero {
        margin: 40px auto 80px;
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 4.8rem;
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 1.8rem;
    }

    .search-section {
        padding: 0 24px;
    }

    main {
        padding: 0 24px 60px;
    }

    .page-header h1 {
        font-size: 3.6rem;
    }

    .section-header h2 {
        font-size: 3.2rem;
    }

    .card,
    .section-card {
        padding: 32px 24px;
    }

    .balance-card {
        padding: 40px 24px;
    }

    .balance-amount {
        font-size: 4.8rem;
    }

    .product-header h1 {
        font-size: 3.2rem;
    }

    .product-content {
        padding: 32px 24px;
    }
}

/* iPhone 12 Pro サイズ最適化 (390px) */
@media screen and (max-width: 400px) {
    html {
        font-size: 55%;
    }

    nav {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 6px 7px;
    }

    .btn-primary {
        padding: 6px 10px !important;
        font-size: 1rem !important;
    }
}

/* タブレット横向き - より広い余白 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 0 48px;
    }

    .hero {
        padding: 0 48px;
    }

    .search-section {
        padding: 0 48px;
    }

    main {
        padding: 0 48px 100px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* 大画面 - 最大幅を制限して左右に余白 */
@media screen and (min-width: 1600px) {
    nav {
        padding: 0 80px;
    }

    .hero {
        padding: 0 80px;
    }

    .search-section {
        padding: 0 80px;
    }

    main {
        padding: 0 80px 140px;
    }
}

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

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

/* ローディング状態 */
.btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ===========================================
   アクセシビリティ
   =========================================== */
*:focus-visible {
    outline: 2px solid #0a0a0a;
    outline-offset: 4px;
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================================
   印刷用スタイル
   =========================================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    header,
    footer,
    .btn,
    .search-section {
        display: none;
    }
    
    .card,
    .section-card,
    .product-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .hero h1 {
        font-size: 4.8rem;
    }

    .page-header h1 {
        font-size: 3.6rem;
    }
}

/* ===========================================
   細部の仕上げ
   =========================================== */

/* スクロールバー */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 選択時の色 */
::selection {
    background: #0a0a0a;
    color: white;
}

::-moz-selection {
    background: #0a0a0a;
    color: white;
}

/* リンクのホバー効果 */
a:not(.btn):not(.logo):not(.nav-links a) {
    color: #0a0a0a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.3s ease;
}

a:not(.btn):not(.logo):not(.nav-links a):hover {
    opacity: 0.6;
}

/* フォームのオートフィル */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset;
    -webkit-text-fill-color: #0a0a0a;
}

/* プレースホルダーのトランジション */
input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* 画像の最適化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* コンテナの最大幅制御 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 24px;
    }
}

/* ===========================================
   追加のユーティリティクラス
   =========================================== */

/* スペーシング */
.mt-large { margin-top: 80px; }
.mb-large { margin-bottom: 80px; }
.mt-medium { margin-top: 48px; }
.mb-medium { margin-bottom: 48px; }
.mt-small { margin-top: 24px; }
.mb-small { margin-bottom: 24px; }

/* テキストスタイル */
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 1px; }
.text-light { font-weight: 300; }
.text-regular { font-weight: 400; }
.text-medium { font-weight: 500; }

/* カラー */
.text-muted { color: #666; }
.text-dark { color: #0a0a0a; }
.bg-light { background: #fafafa; }
.bg-white { background: white; }

/* ボーダー */
.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }
.border-left { border-left: 1px solid #e5e5e5; }
.border-right { border-right: 1px solid #e5e5e5; }

/* フレックスユーティリティ */
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; }
.flex-align-center { align-items: center; }
.gap-small { gap: 16px; }
.gap-medium { gap: 32px; }
.gap-large { gap: 48px; }

/* 表示制御 */
.hidden { display: none; }
.visible { display: block; }

@media screen and (max-width: 768px) {
    .hide-mobile { display: none; }
}

@media screen and (min-width: 769px) {
    .show-mobile { display: none; }
}