@charset "UTF-8";

:root {
    /* Consistent Palette */
    --neon-blue: #06B6D4;    /* Seller Side */
    --neon-pink: #FE347E;    /* Buyer Side */
    --neon-purple: #A855F7;  /* Neutral / Support */
    
    --text-main: #1d1d1f;
    --text-sub: #6b6763; 
    --bg-warm-deep: #faf9f7;  
    --bg-warm-light: #fdfcfb; 
    --bg-white: #ffffff;
    --border-warm: #e8e5e1; 
    --status-stop: #9a938c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-warm-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 24px 40px;
    display: flex; align-items: center;
    z-index: 2000; transition: all 0.4s ease;
}
/* デフォルトは両端揃え（ロゴあり用） */
.site-header { justify-content: space-between; }
/* トップページ用（ロゴなし・右寄せ） */
.site-header.header-no-logo { justify-content: flex-end; }

.site-header.scrolled {
    padding: 16px 40px; backdrop-filter: blur(12px);
    background-color: rgba(253, 252, 251, 0.85);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-logo img { height: 20px; width: auto; }

/* Burger Menu Trigger */
.menu-trigger {
    width: 32px; height: 32px; background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
}
.menu-trigger span {
    display: block; width: 100%; height: 2px; background-color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-trigger span:last-child { width: 60%; }
body.nav-open .menu-trigger span:first-child { transform: translateY(4px) rotate(45deg); width: 100%; }
body.nav-open .menu-trigger span:last-child { transform: translateY(-4px) rotate(-45deg); width: 100%; }

/* --- Navigation Overlay --- */
.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-warm-light); z-index: 1500;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
    padding: 100px 80px; opacity: 0; visibility: hidden; transition: all 0.5s ease;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

.nav-menu { list-style: none; text-align: right; }
.nav-menu li { margin-bottom: 32px; opacity: 0; transform: translateX(20px); transition: all 0.5s ease; }
body.nav-open .nav-menu li { opacity: 1; transform: translateX(0); }

.nav-link { text-decoration: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.nav-link .main-label { font-size: 28px; font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; transition: color 0.3s ease; }
.nav-link .sub-label { font-size: 11px; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.1em; }

/* Nav Hover & Active Colors */
.nav-sellers:hover .main-label, 
.nav-sellers.active .main-label { 
    color: var(--neon-blue); 
}

.nav-buyers:hover .main-label, 
.nav-buyers.active .main-label { 
    color: var(--neon-pink); 
}

.nav-home:hover .main-label, 
.nav-home.active .main-label,
.nav-support:hover .main-label { 
    color: var(--neon-purple); 
}

/* Sub Links (Updated: Vertical Alignment) */
.nav-sub-links { 
    margin-top: 40px; 
    border-top: 1px solid var(--border-warm); 
    padding-top: 32px; 
    display: flex; 
    flex-direction: column; /* 縦並び */
    align-items: flex-end;  /* 右寄せ */
    gap: 16px;              /* 間隔調整 */
}
.nav-sub-links a { font-size: 13px; text-decoration: none; color: var(--text-sub); font-weight: 600; transition: color 0.3s ease; }
.nav-sub-links a:hover { color: var(--neon-purple); }

/* --- Footer (Common) --- */
.site-footer { background-color: var(--bg-warm-deep); border-top: 1px solid var(--border-warm); padding: 80px 40px 60px; color: var(--text-main); }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; padding-bottom: 60px; border-bottom: 1px solid var(--border-warm); }
.footer-logo { height: 22px; width: auto; }
.footer-heading { font-size: 11px; font-weight: 800; color: var(--neon-purple); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 24px; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { text-decoration: none; color: var(--text-sub); font-size: 13px; font-weight: 600; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--neon-purple); }
.footer-bottom { padding-top: 40px; display: flex; justify-content: center; }
.footer-copyright { font-size: 11px; color: var(--text-sub); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
    .site-header { padding: 20px; }
    .nav-overlay { padding: 40px; align-items: center; text-align: center; }
    .nav-menu { text-align: center; }
    .nav-link { align-items: center; }
    /* モバイルでもサブリンクは縦並びを維持しつつ中央寄せ */
    .nav-sub-links { align-items: center; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}