/* ========================================
   WeLovergy - Category Page Styles
   共通カテゴリ一覧ページ用CSS
======================================== */

: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;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(124, 58, 237, 0.25);
    --shadow-pop: 0 8px 30px rgba(124, 58, 237, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    /* Category-specific (override per page) */
    --cat-color: #7C3AED;
    --cat-color-light: rgba(124,58,237,0.08);
    --cat-gradient: linear-gradient(135deg, #7C3AED, #EC4899);
}

*, *::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;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ========== 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;
}

.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);
}

.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);
}

.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; }

/* ========== CATEGORY HERO ========== */
.cat-hero {
    padding: 130px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cat-hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--cat-color-light) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cat-hero-emoji {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.cat-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 12px;
}

.cat-hero h1 span {
    background: var(--cat-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.cat-hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cat-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.cat-stat strong {
    color: var(--cat-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 0 0 20px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-sub);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

/* ========== ARTICLE LIST ========== */
.article-list {
    padding: 0 0 100px;
}

.article-list-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* シンプルなタイトルリスト型 */
.al-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f5;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.al-item:first-child {
    border-top: 1px solid #f0f0f5;
}

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

.al-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
}

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

.al-item-arrow {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
}

.al-item:hover .al-item-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

.al-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========== SIDEBAR-STYLE CTA ========== */
.cat-cta {
    margin-top: 60px;
    padding: 40px;
    background: var(--cat-gradient);
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
}

.cat-cta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cat-cta p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

.cat-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: white;
    color: var(--cat-color);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cat-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ========== 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;
}

.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;
}

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

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s 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) {
    .cat-hero { padding: 110px 0 40px; }
    .article-list-grid { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cat-cta { padding: 30px 20px; }
}
