/* ========================================
   ウィラヴァジー - 恋愛×科学
   TOPページ専用CSS
   カジュアル＆ポップ / 20-30代 男女
======================================== */

:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --accent-pink: #EC4899;
    --accent-pink-light: #F9A8D4;
    --accent-orange: #F97316;
    --accent-yellow: #FBBF24;
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;
    --bg-main: #FAF5FF;
    --bg-white: #FFFFFF;
    --bg-dark: #1E1B4B;
    --text-main: #1E1B4B;
    --text-sub: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --shadow-pop: 0 8px 30px rgba(124, 58, 237, 0.15);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(124, 58, 237, 0.25);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
    background: var(--bg-main);
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.nav-links a {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-sub);
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.nav-links .nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: white;
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    box-shadow: var(--shadow-pop);
    transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(124,58,237,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* ========== HERO ========== */
.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(236,72,153,0.1));
    border: 1px solid rgba(124,58,237,0.15);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
}

.hero-badge i {
    font-size: 0.8rem;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-sub);
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero-sub strong {
    color: var(--primary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: white;
    box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(124,58,237,0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid rgba(124,58,237,0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(124,58,237,0.04);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

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

.hero-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Floating Emojis */
.floating-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatEmoji 15s ease-in-out infinite;
}

@keyframes floatEmoji {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(10deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
    75% { transform: translateY(-40px) rotate(8deg); }
}

/* ========== SECTION COMMON ========== */
.section {
    padding: 100px 0;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== CATEGORIES ========== */
.categories {
    background: var(--bg-white);
    padding: 60px 0;
}

.categories .section-header {
    margin-bottom: 28px;
}

.cat-slider-wrap {
    position: relative;
}

.cat-slider-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: var(--bg-white);
    color: var(--text-sub);
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cat-slider-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(124,58,237,0.15);
}
.cat-slider-btn.prev { left: -16px; }
.cat-slider-btn.next { right: -16px; }

@media (min-width: 769px) {
    .cat-slider-btn { display: flex; }
}

.cat-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 4px 16px;
}

.cat-slider::-webkit-scrollbar {
    display: none;
}

.cat-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    border: 2px solid #f0f0f5;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
    min-height: 72px;
}

.cat-card::after {
    content: '›';
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin-left: auto;
    flex-shrink: 0;
    transition: var(--transition);
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
    border-color: var(--cat-color);
    background: var(--cat-bg);
}

.cat-card:hover::after {
    color: var(--cat-color);
    transform: translateX(3px);
}

.cat-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.cat-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D1D5DB;
    transition: all 0.3s;
}

.cat-slider-dot.active {
    width: 20px;
    border-radius: 3px;
    background: var(--primary);
}

@media (min-width: 769px) {
    .cat-card {
        flex: 0 0 44%;
    }
}

@media (min-width: 1024px) {
    .cat-card {
        flex: 0 0 30%;
    }
}

.cat-emoji {
    font-size: 1.3rem;
    line-height: 1;
}

.cat-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
}

.cat-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--cat-bg);
    color: var(--cat-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cat-count-badge.loaded {
    opacity: 1;
}

/* ========== TECHNIQUES (実践テクニック集) ========== */
.techniques {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #312E81 100%);
    color: white;
    overflow: hidden;
}

.techniques .section-label {
    color: var(--accent-yellow);
}

.techniques .section-title {
    color: white;
}

.techniques .section-desc {
    color: rgba(255,255,255,0.6);
}

.tech-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.tech-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.tech-item:hover {
    background: rgba(255,255,255,0.06);
    padding-left: 28px;
}

.tech-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
    color: rgba(255,255,255,0.9);
}

.tech-item:hover .tech-item-title {
    color: white;
}

.tech-item-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    transition: var(--transition);
}

.tech-item:hover .tech-item-arrow {
    color: var(--accent-pink-light);
    transform: translateX(4px);
}

.tech-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 28px auto 0;
    padding: 10px 28px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    text-align: center;
    max-width: 260px;
}

.tech-more:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* ========== COLUMNS (コラム) ========== */
.columns {
    background: var(--bg-white);
}

.column-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid #f3f4f6;
    transition: var(--transition);
}

.column-item:first-child {
    border-top: 1px solid #f3f4f6;
}

.column-item:hover {
    background: rgba(124, 58, 237, 0.04);
    padding-left: 28px;
}

.column-item:hover .column-item-title {
    color: var(--primary);
}

.column-item-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.2s;
}

.column-item-arrow {
    font-size: 1.2rem;
    color: #D1D5DB;
    transition: color 0.2s;
    flex-shrink: 0;
}

.column-item:hover .column-item-arrow {
    color: var(--primary);
}

.column-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding: 12px 32px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.column-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

/* ========== ARTICLE REQUEST CTA ========== */
.cta-section {
    padding: 100px 0;
    background: var(--bg-main);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), #8B5CF6, var(--accent-pink));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '💘🧬🔬💡';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    opacity: 0.15;
    letter-spacing: 10px;
}

.cta-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-box p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-pink-light);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ========== SCROLL ANIMATION ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 70px;
    }
    
    .hero-stats {
        gap: 28px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .cta-box {
        padding: 40px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
