/**
 * Mac Claw - Base CSS (全ページ共通)
 * Generated from style.css split
 */

/**
 * Mac Claw - AI-focused Mac mini/Studio CtoC Marketplace
 * Design: White base + Blue accent (#2563eb)
 * Fonts: LINE Seed JP + JetBrains Mono + Sora
 * Icons: Lucide Icons
 */

/* ============================================================
   1. CSS Variables
   ============================================================ */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-surface: #f1f5f9;
    --bg-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    --accent-blue: #2563eb;
    --accent-blue-dark: #1d4ed8;
    --accent-blue-light: #eff6ff;
    --accent-red: #dc2626;
    --accent-red-light: #fef2f2;
    --accent-green: #16a34a;
    --accent-green-light: #f0fdf4;
    --accent-orange: #ea580c;
    --accent-orange-light: #fff7ed;
    --accent-yellow: #d97706;
    --accent-yellow-light: #fffbeb;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'LINE Seed JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-display: 'LINE Seed JP', -apple-system, sans-serif;
    --container: 1140px;
    --header-h: 64px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --font-sora: 'Sora', sans-serif;
    --accent-light: #eff6ff;
    --bg-tertiary: #e2e8f0;
    --text-tertiary: #94a3b8;
    --border-strong: #cbd5e1;
    --border-color: #e2e8f0;
    --radius-full: 9999px;
    --z-modal: 2000;
    --z-toast: 2100;
    --z-dropdown: 1000;
    --transition: 0.2s ease;
    --accent-red-dark: #b91c1c;
    --accent-green-dark: #15803d;
    --accent-amber: #f59e0b;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #141418;
    --bg-secondary: #1c1c22;
    --bg-surface: #25252d;
    --bg-dark: #0a0a0e;
    --text-primary: #e8e8ed;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border: #2a2a35;
    --border-light: #1e1e28;
    --border-strong: #3a3a48;
    --border-color: #2a2a35;
    --bg-tertiary: #25252d;
    --text-tertiary: #6b6b7b;
    --accent-blue-light: rgba(37, 99, 235, 0.15);
    --accent-red-light: rgba(220, 38, 38, 0.15);
    --accent-green-light: rgba(22, 163, 74, 0.15);
    --accent-orange-light: rgba(234, 88, 12, 0.15);
    --accent-light: rgba(37, 99, 235, 0.15);
    --accent-yellow-light: rgba(217, 119, 6, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .merit-card-img img,
[data-theme="dark"] .why-first-image img,
[data-theme="dark"] .cta-card-img img,
[data-theme="dark"] .cta-card-visual img,
[data-theme="dark"] .flow-step-img img {
    filter: invert(0.92);
}

/* ============================================================
   2. Reset & Base
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    font-size: 16px;
    background: var(--bg-dark);
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--accent-blue-dark); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }
input, textarea, select { font-family: var(--font-sans); }

.lucide-icon { width: 16px; height: 16px; flex-shrink: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }
.sp-only { display: none !important; }
.pc-only { display: block; }
@media (max-width: 768px) {
    .sp-only { display: block !important; }
    .sp-only.sp-footer-bar { display: flex !important; }
    .pc-only { display: none !important; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================
   3. Header
   ============================================================ */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 6px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo:hover { color: var(--accent-blue); }

.logo-text {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo-text .logo-accent { color: var(--accent-blue); }

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.logo-icon-img { width: 32px; height: 32px; object-fit: contain; }
.logo-icon .lucide-icon { width: 18px; height: 18px; }

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--text-muted); }
.theme-toggle .lucide-icon { width: 18px; height: 18px; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    position: relative;
    text-decoration: none;
}
.header-icon-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: var(--accent-blue-light); }
.header-icon-btn .lucide-icon { width: 16px; height: 16px; }

.header-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    overflow: hidden;
    text-decoration: none;
}
.header-user-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.header-user-btn .lucide-icon { width: 18px; height: 18px; }
.header-user-btn img { width: 100%; height: 100%; object-fit: cover; }

.notification-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 16px; height: 16px;
    background: var(--accent-red);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg-primary);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 8px 10px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background var(--transition-base);
}
.hamburger-btn:hover { background: var(--bg-surface); }

.hamburger-lines { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.hamburger-lines span {
    display: block;
    width: 100%; height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-slow);
}
.hamburger-btn.is-active .hamburger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.is-active .hamburger-lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-active .hamburger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Slide-in Menu */
.mobile-menu {
    position: fixed;
    top: 0; right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 2000;
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}
.mobile-menu.is-open { right: 0; }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    flex-shrink: 0;
}
.mobile-menu-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); }

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-base);
}
.mobile-menu-close:hover { background: var(--bg-surface); color: var(--text-primary); }
.mobile-menu-close .lucide-icon { width: 16px; height: 16px; }

.mobile-menu-nav { flex: 1; overflow-y: auto; padding: 8px 0; -webkit-overflow-scrolling: touch; }
.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background var(--transition-fast);
}
.mobile-menu-nav a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.mobile-menu-nav a.is-active { color: var(--accent-blue); background: var(--accent-blue-light); }
.mobile-menu-nav a .lucide-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-menu-section-label { display: block; padding: 10px 20px 4px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mobile-menu-article-link { padding: 8px 20px 8px 32px !important; font-size: 13px !important; color: var(--text-secondary) !important; }

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* Mobile theme toggle */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s;
}
.mobile-theme-toggle:hover { color: var(--text-primary); }
.mobile-theme-toggle .lucide-icon { width: 18px; height: 18px; }
[data-theme="light"] .mobile-theme-toggle .icon-moon,
[data-theme="light"] .mobile-theme-toggle .toggle-label-light { display: none; }
[data-theme="dark"] .mobile-theme-toggle .icon-sun,
[data-theme="dark"] .mobile-theme-toggle .toggle-label-dark { display: none; }

.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}
.mobile-menu-overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   4. Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 12px 28px;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}
.btn .lucide-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--accent-blue); color: var(--text-white); border-color: var(--accent-blue); }
.btn-primary:hover {
    background: var(--accent-blue-dark);
    border-color: var(--accent-blue-dark);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline { background: transparent; color: var(--accent-blue); border-color: var(--accent-blue); }
.btn-outline:hover { background: var(--accent-blue); color: var(--text-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-white { background: var(--text-white); color: var(--accent-blue); border-color: var(--text-white); }
.btn-white:hover { background: var(--bg-secondary); color: var(--accent-blue-dark); border-color: var(--bg-secondary); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-danger { background: var(--accent-red); color: var(--text-white); border-color: var(--accent-red); }
.btn-danger:hover { background: var(--accent-red-dark); border-color: var(--accent-red-dark); color: var(--text-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-surface); color: var(--text-primary); }

.btn-success { background: var(--accent-green); color: var(--text-white); border-color: var(--accent-green); }
.btn-success:hover { background: var(--accent-green-dark); border-color: var(--accent-green-dark); color: var(--text-white); transform: translateY(-1px); }

.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-lg .lucide-icon { width: 20px; height: 20px; }
.btn-sm { padding: 0 16px; font-size: 13px; border-radius: var(--radius-sm); height: 32px; line-height: 1; }
.btn-sm .lucide-icon { width: 14px; height: 14px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }

/* ============================================================
   5. Section Base
   ============================================================ */

.section { padding: 80px 0; }
.section-alt { background: var(--bg-secondary); }
.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header-left { text-align: left; margin-bottom: 40px; }

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 12px;
}
.section-dark .section-label { color: #60a5fa; }

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-dark .section-title { color: var(--text-white); }
.section-title .title-accent { display: block; font-size: 16px; font-weight: 400; color: var(--text-secondary); margin-top: 8px; letter-spacing: 0; }

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.section-dark .section-subtitle { color: var(--text-muted); }
.section-header-left .section-subtitle { margin-left: 0; }

.section-cta { text-align: center; margin-top: 40px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   17. CTA Section (shared include)
   ============================================================ */
.cta-section { margin-top: 56px; margin-bottom: 0; }
.legal-cta-wrap { max-width: 780px; margin: 0 auto; padding: 0 24px 80px; }
.legal-cta-wrap .cta-section { margin-top: 40px; }
/* --- CTA Card --- */
.cta-card {
    background: var(--bg-primary);
    border: 4px solid #030303;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
}
.cta-card-body {
    padding: 40px 32px;
}
.cta-card-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}
.cta-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.75;
}
.cta-card-img { margin-bottom: 28px; display: flex; justify-content: center; }
.cta-card-img img { max-width: 420px; height: auto; }
.cta-fee-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.cta-fee-badge-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.cta-fee-badge-text {
    text-align: center;
}
.cta-fee-badge-label {
    display: block;
    font-size: .7rem;
    color: var(--text-muted);
    letter-spacing: .05em;
}
.cta-fee-badge-value {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.cta-card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .cta-card-body {
        padding: 32px 24px;
    }
    .cta-card-actions {
        flex-direction: column;
    }
    .cta-card-actions .btn {
        justify-content: center;
    }
}
/* --- CTA Card Wide (TOP page 2-column) --- */
.cta-card--wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: left;
}
.cta-card--wide .cta-card-body { padding: 40px 10px 40px 40px; }
.cta-card--wide .cta-card-actions { justify-content: flex-start; flex-wrap: nowrap; }
.cta-card-visual {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.cta-card-visual img {
    width: 95%;
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 19px auto 8px 0px;
}
@media (max-width: 768px) {
    .cta-card--wide { grid-template-columns: 1fr; }
    .cta-card--wide .cta-card-body { padding: 32px 24px; text-align: center; }
    .cta-card--wide .cta-card-actions { justify-content: center; flex-direction: column; }
    .cta-card-visual { order: -1; }
    .cta-card-visual img { height: auto; object-fit: contain; object-position: center; }
}

/* ============================================================
   18. Footer
   ============================================================ */

.site-footer { background: var(--bg-dark); color: var(--text-muted); padding: 56px 0 40px; position: relative; z-index: 2; }

.footer-top { display: flex; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 28px; }
.footer-brand { flex-shrink: 0; flex: 1; max-width: 360px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 20px; font-weight: 700; color: var(--text-white); text-decoration: none; letter-spacing: -0.02em; margin-bottom: 10px; }
.footer-logo:hover { color: var(--accent-blue); }
.footer-logo-img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.footer-logo-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--accent-blue); border-radius: 6px; color: var(--text-white); flex-shrink: 0; }
.footer-logo-icon .lucide-icon { width: 16px; height: 16px; }
.footer-brand-desc { font-size: 12px; line-height: 1.7; color: var(--text-muted); }

/* 3-column nav */
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; }
.footer-col-title { color: var(--text-white); font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col-links { display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a { color: var(--text-muted); font-size: 13px; transition: color var(--transition-base); display: inline-flex; align-items: center; gap: 5px; }
.footer-col-links a:hover { color: var(--text-white); }
.footer-col-links a .lucide-icon { width: 13px; height: 13px; flex-shrink: 0; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { color: var(--text-muted); font-size: 12px; transition: color var(--transition-base); }
.footer-legal-links a:hover { color: var(--text-white); }
.lang-switch:hover { background: transparent !important; color: #fff; }
.footer-copyright { font-size: 12px; color: var(--text-muted); }
.footer-copyright a { color: inherit; text-decoration: none; }
.footer-copyright a:hover { color: var(--text-primary); }

/* ============================================================
   23. MODAL
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.modal-open,
.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-overlay.modal-open .modal-content,
.modal-overlay.is-visible .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}

/* Modal variants */
.modal-sm .modal-content { max-width: 380px; }
.modal-lg .modal-content { max-width: 720px; }
.modal-xl .modal-content { max-width: 960px; }

/* Confirm modal */
.modal-confirm .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 32px 24px;
}

.modal-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-confirm-icon.icon-warning {
    background: var(--accent-yellow-light);
    color: var(--accent-yellow);
}

.modal-confirm-icon.icon-danger {
    background: var(--accent-red-light);
    color: var(--accent-red);
}

.modal-confirm-icon.icon-info {
    background: var(--accent-light);
    color: var(--accent-blue);
}

.modal-confirm-text h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-confirm-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Image modal / lightbox */
.modal-image-content {
    background: transparent;
    max-width: 90vw;
    box-shadow: none;
}

.modal-image-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

/* Bottom sheet on mobile */
@media (max-width: 480px) {
    .modal-overlay.modal-sheet {
        align-items: flex-end;
        padding: 0;
    }

    .modal-overlay.modal-sheet .modal-content {
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 88vh;
        transform: translateY(100%);
    }

    .modal-overlay.modal-sheet.modal-open .modal-content {
        transform: translateY(0);
    }

    .modal-overlay.modal-sheet .modal-header {
        padding-top: 24px;
    }

    /* Drag handle */
    .modal-overlay.modal-sheet .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-strong);
        border-radius: 2px;
        margin: 12px auto -4px;
    }
}

/* ============================================================
   25. LOADING / EMPTY STATES
   ============================================================ */

/* Skeleton shimmer */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

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

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.skeleton-sm { height: 12px; width: 60%; }
.skeleton-text.skeleton-md { height: 14px; width: 85%; }
.skeleton-text.skeleton-lg { height: 18px; width: 70%; }
.skeleton-text.skeleton-title { height: 24px; width: 55%; }

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
}

.skeleton-image-wide {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-badge {
    width: 60px;
    height: 20px;
    border-radius: 100px;
}

/* Item card skeleton */
.item-card-skeleton {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}

.item-card-skeleton .skeleton-image {
    border-radius: 0;
    aspect-ratio: 1 / 1;
}

.item-card-skeleton .skeleton-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Page loading overlay */
.page-loading {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.page-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.page-loading-text {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Inline spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    opacity: 0.7;
    vertical-align: middle;
}

.spinner-sm { width: 14px; height: 14px; }
.spinner-lg { width: 24px; height: 24px; border-width: 3px; }

/* Button loading state */
.btn.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-primary.btn-loading::after { color: var(--text-white); }

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
    gap: 16px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.empty-state-icon svg {
    width: 32px;
    height: 32px;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-state-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 320px;
}

.empty-state-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

/* Empty state variants */
.empty-state-sm {
    padding: 32px 16px;
}

.empty-state-sm .empty-state-icon {
    width: 52px;
    height: 52px;
}

.empty-state-sm .empty-state-icon svg {
    width: 24px;
    height: 24px;
}

.empty-state-sm .empty-state-title {
    font-size: 15px;
}


/* Infinite scroll loader */
.load-more-trigger {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    gap: 8px;
}

.load-more-btn-wrap {
    text-align: center;
    padding: 32px 0;
}


/* ==========================================================================
   26. SUPPLEMENTAL COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header: subnav, user area, hamburger label, mobile-menu-logout
   -------------------------------------------------------------------------- */
.header-catchphrase {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-catchphrase--sp { display: none; }
.header-catchphrase--pc { flex: 1; justify-content: center; }
.header-catchphrase-wheat {
    width: 18px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    transform: scaleX(-1);
}
.header-catchphrase-wheat--flip {
    transform: scaleX(1);
}
.header-catchphrase-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.header-catchphrase-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .5px;
}
.header-catchphrase-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}
@media (max-width: 768px) {
    .header-catchphrase--pc { display: none; }
    .header-catchphrase--sp { display: flex; margin-left: auto; gap: 4px; align-self: stretch; align-items: center; overflow: hidden; max-width: 160px; }
    .header-catchphrase--sp .header-catchphrase-wheat { width: auto; height: 100%; max-height: 32px; }
    .header-catchphrase--sp .header-catchphrase-text { text-align: center; white-space: nowrap; }
    .header-catchphrase--sp .header-catchphrase-label { font-size: 7px; }
    .header-catchphrase--sp .header-catchphrase-value { font-size: 9px; line-height: 1.3; white-space: normal; }
}
.header-subnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.header-subnav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: color 0.2s, background-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
@media (min-width: 769px) {
    .header-subnav a {
        font-size: 12px;
        padding: 6px 0 3px;
        margin: 0 6px;
        border-radius: 0;
        border-bottom: 3px solid transparent;
    }
}
.header-subnav a:hover {
    color: var(--text-secondary);
    background-color: transparent;
    border-bottom-color: var(--text-secondary);
}
.header-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.header-user:hover { background-color: var(--bg-surface); }
.header-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
    background-color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    overflow: hidden;
}
.header-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-logout-btn {
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-md);
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
}
.header-logout-btn:hover { color: var(--accent-red); background-color: var(--accent-red-light); }

/* User Dropdown */
.header-user-wrap { position: relative; }
.header-user { border: none; background: none; cursor: pointer; font-family: inherit; }
.header-user-caret { width: 14px; height: 14px; color: var(--text-muted); transition: transform 0.2s; }
.header-user-wrap.is-open .header-user-caret { transform: rotate(180deg); }
.header-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 2000;
}
.header-user-wrap.is-open .header-user-dropdown { display: block; }
.header-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}
.header-user-dropdown-item:hover { background-color: var(--bg-surface); color: var(--text-primary); }
.header-user-dropdown-item .lucide-icon { width: 16px; height: 16px; flex-shrink: 0; }
.header-user-dropdown-item--danger { color: var(--accent-red); }
.header-user-dropdown-item--danger:hover { background-color: var(--accent-red-light); color: var(--accent-red); }
.header-user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.hamburger-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.mobile-menu-logout {
    color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}
.mobile-menu-logout:hover { background-color: var(--accent-red-light) !important; }

@media (max-width: 768px) {
    .header-subnav { display: none; }
    .header-actions { display: none; }
    .hamburger-btn { display: flex; }
}

/* --------------------------------------------------------------------------
   SP Bottom Nav (スマホ固定フッターナビ)
   -------------------------------------------------------------------------- */
.sp-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 768px) {
    .sp-bottom-nav { display: flex; }
    main { padding-bottom: 64px; }
    .site-footer { padding-bottom: 64px; }
}
.sp-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.sp-bottom-nav-item .lucide-icon { width: 22px; height: 22px; }
.sp-bottom-nav-item.is-active { color: var(--accent-blue); }
.sp-bottom-nav-item:hover { color: var(--accent-blue); }
.sp-bottom-nav-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.sp-bottom-nav-item button { background: none; border: none; cursor: pointer; }

/* Mypage Drawer (left slide-in) */
.mypage-drawer {
    position: fixed; top: 0; left: -300px; width: 300px; height: 100%;
    background: var(--bg-primary); z-index: 1001; display: flex; flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12); transition: left 0.3s ease;
}
.mypage-drawer.is-open { left: 0; }
.mypage-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid var(--border);
}
.mypage-drawer-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mypage-drawer-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mypage-drawer-avatar--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-blue-light); color: var(--accent-red);
}
.mypage-drawer-user-info { min-width: 0; }
.mypage-drawer-name { display: block; font-size: 15px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mypage-drawer-email { display: block; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mypage-drawer-close {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: var(--radius-md);
    border: none; background: none; cursor: pointer; color: var(--text-muted);
}
.mypage-drawer-close:hover { background: var(--bg-surface); }
.mypage-drawer-close .lucide-icon { width: 18px; height: 18px; }
.mypage-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.mypage-drawer-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; font-size: 15px; font-weight: 500;
    color: var(--text-secondary); text-decoration: none;
    transition: background 0.15s;
}
.mypage-drawer-nav a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.mypage-drawer-nav a .lucide-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.mypage-drawer-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.mypage-drawer-logout {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: var(--accent-red); text-decoration: none; font-weight: 500;
}
.mypage-drawer-logout:hover { color: var(--accent-red-dark); }
.mypage-drawer-logout .lucide-icon { width: 16px; height: 16px; }
.mypage-drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.mypage-drawer-overlay.is-open { opacity: 1; visibility: visible; }


/* --------------------------------------------------------------------------
   Merit Icon Variants
   -------------------------------------------------------------------------- */
.merit-icon-green { background-color: var(--accent-green-light); color: var(--accent-green); }
.merit-icon-orange { background-color: var(--accent-orange-light); color: var(--accent-orange); }

/* --------------------------------------------------------------------------
   Flow Steps
   -------------------------------------------------------------------------- */
#flow {
    background: #fff;
    border-top: 6px solid #030303;
    border-bottom: 6px solid #030303;
}
[data-theme="dark"] #flow {
    background: var(--bg-primary);
}
/* Flow scroll wrapper (PC horizontal scroll with fade) */
.flow-scroll-wrap { position: relative; overflow: hidden; }
.flow-scroll-wrap::before,
.flow-scroll-wrap::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 56px;
    pointer-events: none; z-index: 2; transition: opacity 0.3s ease;
}
.flow-scroll-wrap::before {
    left: 0; background: linear-gradient(to right, #fff, transparent);
    opacity: 0;
}
.flow-scroll-wrap::after {
    right: 0; background: linear-gradient(to left, #fff, transparent);
    opacity: 1;
}
[data-theme="dark"] .flow-scroll-wrap::before {
    background: linear-gradient(to right, var(--bg-primary), transparent);
}
[data-theme="dark"] .flow-scroll-wrap::after {
    background: linear-gradient(to left, var(--bg-primary), transparent);
}
.flow-scroll-wrap.is-scrolled-start::before { opacity: 1; }
.flow-scroll-wrap.is-scrolled-end::after { opacity: 0; }

.flow-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
    scroll-behavior: smooth;
}
.flow-grid::-webkit-scrollbar { display: none; }
.flow-grid::before { display: none; }
.flow-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: calc((100% - 4 * 32px - 4 * 10px) / 3.5);
}
.flow-icon {
    position: absolute;
    top: 6px;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.flow-icon .lucide-icon { width: 16px; height: 16px; }
.flow-step-img {
    width: 100%;
    height: var(--img-h, 160px);
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}
.flow-step-img img {
    display: block;
    position: absolute;
    width: var(--img-scale, 120%);
    top: var(--img-y, 50%);
    left: var(--img-x, 50%);
    transform: translate(-50%, -50%) rotate(var(--img-rotate, 0deg));
    mix-blend-mode: multiply;
}
.flow-step-img > .lucide-icon { width: 32px; height: 32px; color: #d1d5db; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.flow-step-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.flow-number {
    width: 22px;
    height: 22px;
    background-color: var(--text-primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 11px;
    flex-shrink: 0;
}
.flow-step p { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }

/* Flow arrow between steps (PC only) */
.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    padding-bottom: 0px;
}
.flow-arrow .lucide-icon {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    stroke-width: 2.5;
}

@media (max-width: 768px) {
    .flow-arrow { display: none; }
    .flow-scroll-wrap::before, .flow-scroll-wrap::after { display: none; }
    .flow-grid { flex-direction: column; overflow-x: visible; gap: 20px; }
    .flow-step { min-width: 100%; width: auto !important; }
    .flow-step-img { height: 180px; max-width: 320px; margin-left: auto; margin-right: auto; }
    .flow-step-img img { position: static; width: 100%; transform: none; }
}

/* --------------------------------------------------------------------------
   Item Image Placeholder + Item Meta
   -------------------------------------------------------------------------- */
.item-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}
.item-image-placeholder .lucide-icon { width: 40px; height: 40px; }
.item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ Supplements
   -------------------------------------------------------------------------- */
.faq-more { text-align: center; margin-top: 24px; }

/* filter-item-hidden は filter-badges / page-tabs 共通 */
.filter-item-hidden { display: none !important; }

.faq-section { padding: calc(var(--header-h) + 40px) 0 80px; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header h1 { font-size: 30px; font-weight: 900; margin-bottom: 10px; }
.faq-header p { font-size: 15px; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-page { padding: calc(var(--header-h) + 32px) 0 80px; }
.contact-page-header { text-align: center; margin-bottom: 40px; }
.contact-page-header h1 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.contact-page-header p { font-size: 15px; color: var(--text-secondary); }
.contact-form { max-width: 600px; margin: 0 auto 40px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.contact-form .form-group { margin-bottom: 15px; }
.contact-form .form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.contact-form .form-required { color: var(--accent-red); margin-left: 4px; }
.contact-form .form-input,
.contact-form .form-select,
.contact-form .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}
.contact-form .form-input:focus,
.contact-form .form-select:focus,
.contact-form .form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.contact-form .form-textarea { resize: vertical; min-height: 120px; }
.contact-form .form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.contact-error { background: var(--accent-red-light); color: var(--accent-red); border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 15px; font-size: 14px; }
.contact-success { text-align: center; padding: 32px 16px; }
.contact-success-icon { width: 48px; height: 48px; color: var(--accent-green); margin-bottom: 16px; }
.contact-success-title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.contact-success-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 15px; }
.contact-info { max-width: 600px; margin: 0 auto; display: flex; gap: 24px; flex-wrap: wrap; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 200px; padding: 16px; background: var(--bg-secondary); border-radius: var(--radius-md); }
.contact-info-item .lucide-icon { width: 20px; height: 20px; color: var(--accent-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info-label { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.contact-info-item a { color: var(--accent-blue); font-size: 14px; text-decoration: none; }
.contact-info-item a:hover { text-decoration: underline; }
.contact-info-item p { font-size: 14px; color: var(--text-primary); margin: 0; }

/* --------------------------------------------------------------------------
   Flow Tabs (Seller / Buyer)
   -------------------------------------------------------------------------- */
#flow .section-header { margin-bottom: 24px; }
.flow-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.flow-tab {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 7px 11px 8px 11px;
    border: 2px solid var(--border);
    border-radius: 99px;
    background: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
@media (max-width: 768px) {
    .flow-tabs {
        position: sticky;
        top: var(--header-h, 58px);
        z-index: 50;
        background: #fff;
        margin: 0 -24px 24px;
        padding: 8px 16px;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-bottom: 3px solid transparent;
        transition: border-color 0.2s;
    }
    .flow-tabs.is-stuck { border-bottom-color: var(--border); }
    .flow-tabs::-webkit-scrollbar { display: none; }
    .flow-tab {
        flex-shrink: 0;
    }
}
.flow-tab:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}
.flow-tab.is-active {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.flow-tab .lucide-icon { width: 16px; height: 16px; }
.flow-panel { display: none; }
.flow-panel.is-active { display: flex; }

/* --------------------------------------------------------------------------
   Scroll Progress Bar
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-red);
    z-index: 9999;
    transition: width 0.1s;
}

/* --------------------------------------------------------------------------
   Fixed CTA (PC only, right-bottom)
   -------------------------------------------------------------------------- */
.fixed-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    background: var(--bg-primary);
    border: 4px solid #030303;
    border-radius: 20px;
    padding: 24px;
    max-width: 200px;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.fixed-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../images/why-first-bg.png) center / cover no-repeat;
    filter: blur(4px) brightness(1.08);
    opacity: .8;
    z-index: 0;
    pointer-events: none;
}
.fixed-cta > * {
    position: relative;
    z-index: 1;
}
.fixed-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fixed-cta:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); }
.fixed-cta-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.fixed-cta-close:hover { color: var(--text-primary); }
.fixed-cta-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.fixed-cta-img {
    width: 100px;
    height: auto;
    display: block;
    margin-bottom: 8px;
}
.fixed-cta-heading {
    font-family: var(--font-display);
    text-align: center;
    width: 100%;
    margin-bottom: 6px;
}
.fixed-cta-static {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.fixed-cta-swap {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    border-right: 2px solid var(--accent-red);
    padding-right: 2px;
}
.fixed-cta-swap.typing-wait {
    animation: hero-blink 0.8s step-end infinite;
}
.fixed-cta-swap.typing-done { border-color: transparent; }
.fixed-cta-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.fixed-cta-brand-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.fixed-cta-fee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 6px;
}
.fixed-cta-fee-wheat {
    height: 28px;
    width: auto;
    object-fit: contain;
    transform: scaleX(-1);
}
.fixed-cta-fee-wheat--flip {
    transform: scaleX(1);
}
.fixed-cta-fee-text {
    text-align: center;
}
.fixed-cta-fee-label {
    display: block;
    font-size: .6rem;
    color: var(--text-muted);
    letter-spacing: .05em;
}
.fixed-cta-fee-value {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.fixed-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}
.fixed-cta-actions .btn {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 99px;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
}
.fixed-cta-actions .btn .lucide-icon { width: 14px; height: 14px; }

@media (max-width: 768px) {
    .fixed-cta { display: none !important; }
}

/* --------------------------------------------------------------------------
   Footer col (standalone)
   -------------------------------------------------------------------------- */
.footer-col { min-width: 0; }

/* --------------------------------------------------------------------------
   Auth Section (wraps .auth-card on a centered page)
   -------------------------------------------------------------------------- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 40px) 24px 80px;
    background-color: var(--bg-secondary);
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.7;
}
.form-char-counter { float: right; font-size: 11px; font-weight: 400; color: var(--text-muted); }
.form-char-counter.is-limit { color: var(--accent-red); }
.form-row { display: flex; gap: 12px; }
.form-row--half > * { flex: 1; min-width: 0; }
.form-input-with-btn { display: flex; gap: 8px; align-items: stretch; }
.form-input-with-btn .form-input { flex: 1; min-width: 0; }
.form-input-with-btn .btn { flex-shrink: 0; white-space: nowrap; height: auto; padding: 0 16px; font-size: 13px; background: var(--bg-secondary); color: var(--text-secondary); border-color: var(--border-color); }
.form-input-with-btn .btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.shipping-form .form-group { margin-bottom: 0; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.profile-action-btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 20px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Verify Page
   -------------------------------------------------------------------------- */
.verify-page,
.verify-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 40px) 24px 80px;
    background-color: var(--bg-secondary);
}
.verify-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    text-align: center;
}
.verify-card h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.verify-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0; }
.verify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    margin: 0 auto 24px;
}
.verify-icon-error { background-color: var(--accent-red-light); color: var(--accent-red); }
.verify-icon .lucide-icon { width: 32px; height: 32px; }
.verify-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.verify-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.verify-message { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* --------------------------------------------------------------------------
   Legal Pages (semantic sections)
   -------------------------------------------------------------------------- */
.legal-section { padding: calc(var(--header-h) + 40px) 0 80px; }
.legal-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.legal-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.legal-body {
    max-width: 760px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.85;
}
.legal-body h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-blue);
    display: inline-block;
}
.legal-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-primary); margin-top: 24px; margin-bottom: 10px; }
.legal-body p { margin-bottom: 16px; }
.legal-body ul, .legal-body ol { margin-bottom: 16px; padding-left: 24px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin-bottom: 8px; line-height: 1.75; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0 32px; font-size: 14px; }
.legal-body th { background-color: var(--bg-secondary); font-weight: 700; text-align: left; padding: 12px 16px; border: 1px solid var(--border); white-space: nowrap; vertical-align: top; }
.legal-body td { padding: 12px 16px; border: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; line-height: 1.7; }

/* --------------------------------------------------------------------------
   404 Error Page
   -------------------------------------------------------------------------- */
.error-section {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}
.error-code {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
    user-select: none;
}
.error-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.error-message { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; max-width: 400px; line-height: 1.75; }

/* --------------------------------------------------------------------------
   Modal: Help & Spec variants
   -------------------------------------------------------------------------- */
.modal-content--help { max-width: 520px; }
.modal-content--help .modal-header { border-bottom: none; }
.modal-content--help .modal-close { display: none; }
.modal-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin: 0 0 12px; }
.modal-body h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 20px 0 10px; }
.modal-callout { display: flex; gap: 8px; align-items: flex-start; background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 12px 14px; margin: 16px 0; font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.modal-callout .lucide-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent-blue); }
.modal-spec-list { margin: 0; padding: 0; }
.modal-spec-row { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.modal-spec-row:last-child { border-bottom: none; }
.modal-spec-row dt { font-size: 13px; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); margin-bottom: 4px; }
.modal-spec-row dd { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.modal-spec-row dd strong { color: var(--accent-blue); font-weight: 700; }
.spec-help-btn { background: none; border: none; cursor: pointer; color: var(--text-tertiary); padding: 0; margin-left: 4px; vertical-align: middle; display: inline-flex; }
.spec-help-btn:hover { color: var(--accent-blue); }
.spec-help-btn .lucide-icon { width: 14px; height: 14px; }
@media (max-width: 768px) {
    .modal-content--help { height: 70vh; max-height: 70vh; display: flex; flex-direction: column; }
    .modal-content--help .modal-body { flex: 1; overflow-y: auto; }
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 32px 28px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Login Modal
   -------------------------------------------------------------------------- */
.login-modal-content { padding: 32px; line-height: 1.5; }
.login-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.login-modal-header .auth-title { margin-bottom: 0; text-align: left; font-size: 22px; }
.login-modal-close {
    background: none; border: none; cursor: pointer; color: var(--text-tertiary);
    padding: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.login-modal-close:hover { background: var(--bg-secondary); color: var(--text-primary); }
.login-modal-close .lucide-icon { width: 20px; height: 20px; }
.login-modal .auth-subtitle { text-align: left; line-height: 1.5; }
.login-modal .auth-divider { font-size: 13px; }
.login-modal .form-submit { margin-bottom: 12px; }
.login-modal .auth-magic-link-alt { margin-bottom: 16px; }
.login-modal .auth-success { padding: 16px 0; }
.login-modal .auth-terms-hint { text-align: center; }
.login-modal .alert[hidden] { display: none; }
body.modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Detail Page: spec items, actions, buy button
   -------------------------------------------------------------------------- */
.detail-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
@media (min-width: 480px) { .detail-specs { grid-template-columns: repeat(3, 1fr); } }
.detail-spec-item {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    border: 1px solid var(--border);
}
.detail-spec-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.detail-spec-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.detail-actions {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.detail-buy-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.detail-buy-btn:hover { background-color: var(--accent-blue-dark); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,0.4); }
.detail-buy-btn:active { transform: translateY(1px); }

/* --------------------------------------------------------------------------
   Comments: section container, user avatar, timestamp
   -------------------------------------------------------------------------- */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.comment-user {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent-blue-light);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
    overflow: hidden;
}
.comment-user img { width: 100%; height: 100%; object-fit: cover; }
.comment-time {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Filter Range + Bar
   -------------------------------------------------------------------------- */
.filter-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-range input[type="number"] {
    display: block;
    flex: 1;
    padding: 9px 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    text-align: right;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-range input[type="number"]:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.filter-range span { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    margin-bottom: 15px;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .btn { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Chat Section: required class names
   -------------------------------------------------------------------------- */
.chat-section {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-h));
    padding-top: var(--header-h);
}
.chat-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--accent-blue-light);
    border-bottom: 1px solid rgba(37,99,235,0.2);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
    flex-shrink: 0;
}
.chat-status-bar .lucide-icon { width: 14px; height: 14px; flex-shrink: 0; }
.chat-bubble-mine {
    align-self: flex-end;
    align-items: flex-end;
    max-width: 72%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-bubble-other {
    align-self: flex-start;
    align-items: flex-start;
    max-width: 72%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-bubble-system {
    align-self: center;
    align-items: center;
    max-width: 90%;
    display: flex;
    flex-direction: column;
}
.chat-bubble-body {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}
.chat-bubble-mine .chat-bubble-body { background-color: var(--accent-blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble-other .chat-bubble-body { background-color: var(--bg-primary); color: var(--text-primary); border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-bubble-system .chat-bubble-body { background-color: var(--bg-surface); color: var(--text-secondary); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 6px 16px; }
.chat-bubble-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    padding: 0 4px;
}
.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-primary);
    flex-shrink: 0;
}
.chat-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.chat-send-btn:hover { background-color: var(--accent-blue-dark); box-shadow: 0 4px 12px rgba(37,99,235,0.4); }
.chat-send-btn:active { transform: scale(0.94); }
.chat-send-btn .lucide-icon { width: 18px; height: 18px; }
.address-bar {
    background-color: var(--accent-yellow-light);
    border: 1px solid rgba(202,138,4,0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 12px 16px;
}
.address-info {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #ca8a04;
}
.address-info .lucide-icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

/* --------------------------------------------------------------------------
   Mypage: item list
   -------------------------------------------------------------------------- */
.mypage-item-list { display: flex; flex-direction: column; gap: 10px; }
.mypage-panel.active { display: block; }

/* --------------------------------------------------------------------------
   Review Stars
   -------------------------------------------------------------------------- */
.review-stars { display: flex; align-items: center; gap: 3px; }
.review-star { width: 16px; height: 16px; color: var(--border); flex-shrink: 0; }
.review-star.filled { color: var(--accent-amber); }
.review-star.half-filled { color: #fcd34d; }

/* --------------------------------------------------------------------------
   Articles (Phase 6)
   -------------------------------------------------------------------------- */
.article-section { padding: calc(var(--header-h) + 32px) 0 80px; }
.article-section > .container { max-width: 820px; }
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-category-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.article-meta .lucide-icon { width: 13px; height: 13px; }
.article-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.article-toc-title .lucide-icon { width: 14px; height: 14px; }
.articles-category-label .lucide-icon { width: 16px; height: 16px; }
.articles-empty-icon { width: 48px; height: 48px; }
.article-related-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 15px; }
.article-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.article-date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
.article-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 760px;
}
.article-body h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-top: 48px; margin-bottom: 16px; padding-left: 16px; border-left: 4px solid var(--accent-blue); }
.article-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-primary); margin-top: 32px; margin-bottom: 12px; }
.article-body p { margin-bottom: 15px; }
.article-body a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.article-body a:hover { color: var(--accent-blue-dark); }
.article-body ul, .article-body ol { margin-bottom: 15px; padding-left: 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.75; }
.article-body code { font-family: var(--font-mono); font-size: 0.875em; background-color: var(--bg-surface); color: var(--accent-blue); padding: 0.15em 0.45em; border-radius: 4px; }
.article-body pre { background-color: var(--bg-dark); color: #e2e8f0; border-radius: var(--radius-md); padding: 24px; overflow-x: auto; margin-bottom: 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; }
.article-body pre code { background: none; color: inherit; padding: 0; }
.article-body img { border-radius: var(--radius-md); margin-bottom: 24px; }
.article-body blockquote { border-left: 4px solid var(--accent-blue); padding-left: 20px; margin-bottom: 24px; color: var(--text-secondary); font-style: italic; }
.article-body .spec-table-wrap { overflow-x: auto; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.article-body .spec-table { min-width: 700px; width: 100%; border-collapse: collapse; font-size: 14px; table-layout: auto; }
.article-body .spec-table th { background: var(--bg-secondary); border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-weight: 700; font-size: 13px; color: var(--text-primary); white-space: nowrap; }
.article-body .spec-table td { border: 1px solid var(--border); padding: 10px 14px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.article-body .spec-table td:last-child { white-space: normal; }
.article-body .spec-table tr:nth-child(even) td { background: var(--bg-secondary); }
.article-body .spec-table .spec-table-highlight td { background: var(--accent-blue-bg, #eff6ff); font-weight: 700; }
[data-theme="dark"] .article-body .spec-table .spec-table-highlight td { background: rgba(37, 99, 235, 0.15); }
.inline-favicon { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.inline-favicon-sm { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; border-radius: 2px; }
.article-body .code-block { margin-bottom: 24px; }

/* Table of Contents */
.article-toc {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
}
.article-toc-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 0; display: flex; align-items: center; gap: 7px; }
.article-toc-list { display: flex; flex-direction: column; gap: 6px; list-style: none; padding: 0; margin: 0; }
.article-toc-list li a { font-size: 13px; color: var(--text-secondary); text-decoration: none; display: flex; gap: 8px; padding: 4px 8px; border-radius: 4px; line-height: 1.5; transition: color 0.2s, background-color 0.2s; }
.article-toc-list li a:hover { color: var(--accent-blue); background-color: var(--accent-blue-light); }
.article-toc-list li a::before { content: '—'; color: var(--text-muted); flex-shrink: 0; font-size: 11px; margin-top: 2px; }

/* TOC Toggle */
.article-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    margin-bottom: 14px;
}
.article-toc-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.article-toc.is-collapsed .article-toc-chevron {
    transform: rotate(180deg);
}
.article-toc .article-toc-body {
    overflow: hidden;
    max-height: 600px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.article-toc.is-collapsed .article-toc-body {
    max-height: 0;
    opacity: 0;
}
.article-toc.is-collapsed .article-toc-toggle {
    margin-bottom: 0;
}
.article-toc {
    transition: padding 0.3s ease;
}
.article-toc.is-collapsed {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 55%, #2563eb 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    text-align: center;
    color: #fff;
}
.article-cta h2, .article-cta h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.article-cta p { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 15px; }
.article-cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.article-cta-inline { margin-bottom: 48px; }

/* SP: Fixed CTA Bar */
.article-cta-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.article-cta-fixed.is-visible {
    transform: translateY(0);
}
.article-cta-fixed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
}
.article-cta-fixed-btn .lucide-icon {
    width: 18px;
    height: 18px;
}

/* PC: Sticky TOC */
.article-toc-sticky {
    position: fixed;
    top: calc(var(--header-h) + 32px);
    right: max(16px, calc((100vw - 820px) / 2 - 280px));
    width: 240px;
    max-height: calc(100vh - var(--header-h) - 64px);
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 50;
}
.article-toc-sticky.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.article-toc-sticky-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    margin-bottom: 12px;
}
.article-toc-sticky-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-toc-sticky-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.article-toc-sticky.is-collapsed .article-toc-sticky-chevron {
    transform: rotate(180deg);
}
.article-toc-sticky .article-toc-sticky-body {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.article-toc-sticky.is-collapsed .article-toc-sticky-body {
    max-height: 0;
    opacity: 0;
}
.article-toc-sticky.is-collapsed .article-toc-sticky-toggle {
    margin-bottom: 0;
}
.article-toc-sticky ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.article-toc-sticky li {
    margin-bottom: 4px;
}
.article-toc-sticky a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    line-height: 1.5;
}
.article-toc-sticky a:hover {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
}
.article-toc-sticky a.is-active {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    font-weight: 700;
}

/* SP: TOC FAB Button + Panel */
.toc-fab {
    position: fixed;
    bottom: 72px;
    right: 16px;
    z-index: 899;
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 10px 16px;
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}
.toc-fab .lucide-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}
.toc-fab.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.toc-fab-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--bg-primary);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    padding: 20px 24px 32px;
    box-shadow: var(--shadow-xl);
    transform: translateY(100%);
    transition: transform 0.3s;
}
.toc-fab-panel.is-open {
    transform: translateY(0);
}
.toc-fab-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 700;
}
.toc-fab-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
}
.toc-fab-close .lucide-icon {
    width: 20px;
    height: 20px;
}
.toc-fab-panel ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-fab-panel li {
    margin-bottom: 2px;
}
.toc-fab-panel a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}
.toc-fab-panel a:hover {
    background: var(--bg-secondary);
}
.toc-fab-panel a.is-active {
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    font-weight: 700;
}
.toc-fab-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.toc-fab-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Article FAQ */
.article-faq { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.article-faq h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 15px; }

/* Related Articles */
.article-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }

/* Articles Grid + Card */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.article-card-top { margin-bottom: 10px; text-align: center; }
.article-card-category { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.article-card-category .lucide-icon { width: 12px; height: 12px; }
.article-card-date .lucide-icon, .article-card-time .lucide-icon { width: 12px; height: 12px; }
.article-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); margin-top: auto; }
.article-card-date, .article-card-time { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11px; }

/* --------------------------------------------------------------------------
   Page Tabs (FAQ / Articles filter)
   -------------------------------------------------------------------------- */
.page-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    max-width: 780px; margin: 0 auto 32px;
}
.page-tab {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px;
    font-size: 13px; font-weight: 600; font-family: var(--font-sans);
    color: var(--text-secondary); background: var(--bg-primary);
    border: 1px solid var(--border); border-radius: 100px;
    cursor: pointer; transition: all 0.15s;
}
.page-tab .lucide-icon { width: 14px; height: 14px; }
.page-tab:hover { border-color: var(--text-primary); color: var(--text-primary); }
.page-tab.is-active { background: var(--bg-secondary); border-color: var(--border); color: var(--text-primary); }
@media (min-width: 769px) { .page-tabs-break { flex-basis: 100%; height: 0; margin: 0; } }
@media (max-width: 768px) {
    .page-tabs-break { display: none; }
    .page-tabs {
        position: sticky;
        top: var(--header-h, 58px);
        z-index: 50;
        background: #fff;
        margin: 0 -24px 24px;
        padding: 8px 16px;
        gap: 6px;
        max-width: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-bottom: 3px solid transparent;
        transition: border-color 0.2s;
    }
    .page-tabs.is-stuck { border-bottom-color: var(--border); }
    .page-tabs::-webkit-scrollbar { display: none; }
    .page-tab {
        flex-shrink: 0;
        font-size: 12px;
        padding: 7px 11px 8px;
    }
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text-secondary); }

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-item a:hover { color: var(--accent-blue); }
.breadcrumb-item:last-child { color: var(--text-secondary); }
.breadcrumb-item:not(:last-child)::after { content: '/'; color: var(--border); flex-shrink: 0; }

/* ============================================================
   GLOBAL: FORMS
   ============================================================ */

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--accent-red);
    margin-left: 3px;
}

.form-label .optional {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
    background: var(--bg-secondary);
    padding: 1px 6px;
    border-radius: 3px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--accent-red);
    background: var(--accent-red-light);
}

.form-input.success,
.form-textarea.success {
    border-color: var(--accent-green);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 9px;
    line-height: 1.5;
}

.form-error {
    font-size: 12px;
    color: var(--accent-red);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Checkbox and radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 4px;
    background: var(--bg-secondary);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    transition: border-color var(--transition), background var(--transition);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-primary);
    border-radius: 2px;
}

.form-check-input[type="radio"]:checked::after {
    border-radius: 50%;
}

.form-check-label {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    cursor: pointer;
}

/* Input group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-input {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.input-group .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    flex-shrink: 0;
}

.input-group-text {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.input-group-text:first-child {
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group-text:last-child {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Range input */
.form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    outline: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Price range */
.price-range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.price-range-input {
    width: 110px;
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    font-family: var(--font-mono);
    text-align: right;
}

.price-range-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.price-range-sep {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================================
   GLOBAL: BADGES & TAGS
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1.4;
}

.badge-blue {
    background: var(--accent-light);
    color: var(--accent-blue);
}

.badge-green {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.badge-yellow {
    background: var(--accent-yellow-light);
    color: var(--accent-yellow);
}

.badge-red {
    background: var(--accent-red-light);
    color: var(--accent-red);
}

.badge-gray {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge-dark {
    background: var(--text-primary);
    color: var(--text-white);
}

.badge-orange {
    background: var(--accent-orange-light);
    color: var(--accent-orange);
}

.badge-outline {
    background: transparent;
    border: 1.5px solid currentColor;
}

/* Tag chips (filterable) */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--bg-secondary);
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    user-select: none;
    white-space: nowrap;
}

.tag-chip:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--accent-light);
}

.tag-chip.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-white);
}

.tag-chip .tag-remove {
    display: flex;
    align-items: center;
    margin-left: 2px;
    opacity: 0.7;
}

/* ============================================================
   GLOBAL: UTILITY CLASSES
   ============================================================ */
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.flex-wrap { flex-wrap: wrap; }
.overflow-x-auto { overflow-x: auto; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--accent-red); }
.text-sm { font-size: 12px; }
.mypage-panel-spaced { margin-bottom: 24px; }
.badge-inline { margin-top: 4px; display: inline-flex; }
.btn-loading { opacity: 0.6; pointer-events: none; }

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(37, 99, 235, 0.15);
    color: var(--text-primary);
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.divider-vertical {
    width: 1px;
    height: auto;
    background: var(--border);
    align-self: stretch;
}

/* Alert boxes */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.alert-info {
    background: var(--accent-blue-light);
    color: #1e40af;
}

.alert-success {
    background: var(--accent-green-light);
    color: #166534;
}

.alert-warning {
    background: var(--accent-yellow-light);
    color: var(--accent-yellow);
}

.alert-danger {
    background: var(--accent-red-light);
    color: #991b1b;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--text-white);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    transform: translateX(-50%) translateY(4px);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   Global Responsive (Hero + Merit + Sections)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid { gap: 32px; }
    .hero-title { font-size: 36px; }
    .hero-visual { margin-top: 24px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero { padding-top: var(--header-h); }
    .hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .hero-content { padding-bottom: 0; text-align: center; padding-top: 24px; position: relative; z-index: 1; }
    .hero-badges { justify-content: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-note { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 24px; position: relative; z-index: 1; }
    .hero-title { font-size: clamp(26px, 6vw, 36px); }
    .hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: -10%;
        width: 70%;
        height: 80%;
        background: url('../images/hero-claw-mac.webp') center center / contain no-repeat;
        opacity: 0.08;
        z-index: 0;
        pointer-events: none;
    }
    .merit-grid { grid-template-columns: 1fr; }
    .flow-icon { display: none; }
    .section-title { font-size: clamp(22px, 5vw, 32px); }
    .articles-grid { grid-template-columns: 1fr; gap: 12px; }
    .article-card { flex-direction: row; padding: 0; }
    .article-card-thumbnail { aspect-ratio: 16/9; width: 120px; min-width: 120px; flex-shrink: 0; align-self: center; }
    .article-card-thumbnail .article-category-badge { display: none; }
    .article-card-body { padding: 10px 12px; }
    .article-card-title { font-size: .77rem; -webkit-line-clamp: 2; margin-bottom: 4px; }
    .article-card-excerpt { display: none; }
    .article-card-desc { display: none; }
    #cta-bottom.section { padding: 40px 0 0 0; }
    .footer-top { flex-direction: column; gap: 24px; }
    .footer-nav { grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-legal-links { flex-direction: column; gap: 8px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { justify-content: center; }

    /* SP: Sticky TOC非表示、FAB/CTA fixed表示 */
    .article-toc-sticky { display: none !important; }
    .article-cta-fixed { display: block; }
    .toc-fab { display: flex; }
}
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    .hero-stat-value { font-size: 22px; }
    .footer-nav { grid-template-columns: 1fr; gap: 24px; }
}

/* Print */
@media print {
    .header, .footer, .sidebar, .filter-sidebar,
    .btn, .modal-overlay, .toast-container {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a { text-decoration: none; color: #000; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; }
}

/* ============================================================
   SP固定フッターバー
   ============================================================ */
.sp-footer-bar {
    position: fixed; bottom: 76px; right: 16px; z-index: 100;
    display: flex; flex-direction: column; gap: 16px; align-items: flex-end;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.sp-footer-bar.is-visible { opacity: 1; pointer-events: auto; }
.sp-footer-like-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 16px; border-radius: var(--radius-md);
    border: none; background: var(--bg-primary); color: var(--text-secondary); cursor: pointer;
    font-size: 13px; font-weight: 700; font-family: var(--font-display);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    -webkit-tap-highlight-color: transparent; transition: transform 0.15s;
}
.sp-footer-like-btn .lucide-icon { width: 18px; height: 18px; }
.sp-footer-like-btn:active { transform: scale(0.92); }
.sp-footer-like-btn.is-liked { color: var(--accent-red); }
.sp-footer-like-btn.is-liked svg,
.sp-footer-like-btn.is-liked svg path { fill: var(--accent-red) !important; }
.sp-footer-buy-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 20px; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 700;
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    -webkit-tap-highlight-color: transparent; transition: transform 0.15s;
}
.sp-footer-buy-btn:active { transform: scale(0.92); }
.sp-footer-buy-btn .lucide-icon { width: 18px; height: 18px; }
.sp-footer-bar-owner,
.sp-footer-bar-sold {
    padding: 10px 16px; font-size: 13px; color: var(--text-muted);
    background: var(--bg-primary); border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ================================================================
   通知ベル + ドロップダウン
   ================================================================ */
.header-notif-wrap {
    position: relative;
}

.header-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: background 0.15s, color 0.15s;
}

.header-notif-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.header-notif-btn .lucide-icon {
    width: 20px;
    height: 20px;
}

.header-notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--accent-red);
    color: var(--text-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg-primary);
    font-family: var(--font-mono);
}

.header-notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.header-notif-dropdown.is-open {
    display: flex;
    flex-direction: column;
}

.header-notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.header-notif-mark-all {
    border: none;
    background: none;
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.header-notif-mark-all:hover {
    background: var(--accent-blue-light);
}

.header-notif-list {
    overflow-y: auto;
    flex: 1;
}

.header-notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light, #f1f5f9);
    transition: background 0.15s;
}

.header-notif-item:hover {
    background: var(--bg-secondary);
}

.header-notif-item.is-unread {
    background: var(--accent-blue-light);
}

.header-notif-item.is-unread:hover {
    background: var(--accent-blue-light);
}

.header-notif-item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-secondary);
}

.header-notif-item-icon .lucide-icon {
    width: 16px;
    height: 16px;
}

.header-notif-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-notif-item-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.header-notif-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.header-notif-item-time {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.header-notif-empty,
.header-notif-loading {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.header-notif-dropdown-footer {
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    text-align: center;
    flex-shrink: 0;
}

.header-notif-dropdown-footer a {
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.header-notif-dropdown-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-notif-wrap {
        display: none;
    }
}

/* ============================================================
   Payment Logos (footer等で共通使用)
   ============================================================ */

.payment-logos {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px;
}
.payment-logos img {
    border: 1px solid var(--border); border-radius: 4px;
}
.payment-logos--sm { margin-bottom: 10px; margin-top: 6px; }
.payment-logos .payment-text-row { width: 100%; display: flex; gap: 6px; }
.payment-logos--sm img { width: 32px; height: 21px; }
.payment-logo-text {
    font-size: 9px; color: var(--text-muted); background: var(--bg-secondary);
    height: 27px; display: inline-flex; align-items: center; padding: 0 8px;
    border-radius: 4px; white-space: nowrap; border: 1px solid var(--border);
}
.payment-logos--sm .payment-logo-text { height: 21px; font-size: 8px; padding: 0 6px; }
.site-footer .payment-logo-text { color: var(--bg-dark); }

/* ============================================================
   FAQ (トップページ・FAQページ共通)
   ============================================================ */

.faq-hero-img { display: flex; justify-content: center; margin: 0 auto 24px; }
.faq-hero-img img { width: 120px; height: auto; display: block; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; background: var(--bg-primary); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    gap: 12px;
    transition: background var(--transition-fast);
}
.faq-question:hover { background: transparent; }
.faq-question span::before { content: 'Q. '; color: var(--accent-red); font-weight: 800; }
.faq-question .lucide-icon { width: 20px; height: 20px; color: var(--text-muted); transition: transform var(--transition-slow); flex-shrink: 0; }
.faq-item.is-open .faq-question { background: transparent; }
.faq-item.is-open .faq-question .lucide-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-item.is-open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 4px 24px 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.8; }
.faq-answer-inner::before { content: 'A. '; color: var(--accent-blue); font-weight: 800; }
.faq-answer-inner > p:first-child { display: inline; }
.faq-answer-inner a { color: var(--accent-blue); text-decoration: underline; }
.faq-contact-cta {
    text-align: center;
    margin-top: 48px;
}
.faq-contact-cta p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ============================================================
   PWA: Standalone Mode
   ============================================================ */

@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top, 0px); }
    .site-header { top: env(safe-area-inset-top, 0px); }
    .sp-bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
