/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   KG中小企業経営診断研究会 — PRサイト デザインシステム
   index14.html の CSS変数・デザイン言語を継承
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── VARIABLES ── */
:root {
    --kgu-blue: #0F2350;
    --kgu-blue-deep: #080e24;
    --kgu-blue-light: #1a3a6a;
    --kgu-gold: #C5A15A;
    --kgu-gold-light: #e0c878;
    --kgu-gold-dim: rgba(197,161,90,0.08);
    --text-main: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --white: #ffffff;
    --off-white: #fafafa;
    --bg-light: #f5f5f7;
    --border-light: rgba(0,0,0,0.06);
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-motto: 'Cinzel', serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --header-height: 64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    line-height: 1.9;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease-out-expo); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--kgu-blue); color: var(--white); }

/* ── LAYOUT ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
}
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── HEADER ── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem clamp(1.5rem, 5vw, 4rem);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.4s var(--ease-out-expo);
}
.header.scrolled {
    padding: 0.8rem clamp(1.5rem, 5vw, 4rem);
    background-color: rgba(255,255,255,0.95);
    box-shadow: 0 1px 0 var(--border-light);
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-logo-img { height: 28px; width: auto; display: block; }
.logo-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.02em; font-weight: 400; white-space: nowrap; }

/* Navigation */
.nav-list { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-list a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.3rem 0;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--kgu-blue);
    transition: width 0.3s var(--ease-out-expo);
}
.nav-list a:hover { color: var(--text-main); }
.nav-list a:hover::after { width: 100%; }
.nav-list a.active { color: var(--kgu-blue); font-weight: 700; }
.nav-list a.active::after { width: 100%; }

.nav-cta a {
    background: var(--kgu-blue);
    color: #fff !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 2px 12px rgba(15,35,80,0.2);
}
.nav-cta a::after { display: none !important; }
.nav-cta a:hover {
    background: var(--kgu-blue-light);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15,35,80,0.3);
}

/* Mobile menu toggle */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); padding: 0.5rem; }

/* ── SECTIONS ── */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-alt {
    background: var(--bg-light);
}
.section-dark {
    background: var(--kgu-blue);
    color: var(--white);
}
.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--kgu-blue);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.section-dark .section-label { color: var(--kgu-gold); }
.section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 0.8rem;
    line-height: 1.8;
}

/* ── HERO (subpage) ── */
.page-hero {
    padding: calc(var(--header-height) + 4rem) 0 3rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
    text-align: center;
}
.page-hero .section-label { margin-bottom: 0.8rem; }
.page-hero .section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero .section-subtitle { max-width: 600px; margin: 0.8rem auto 0; }

/* ── CARDS ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out-expo);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
}
.card-body { padding: 1.5rem; }
.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--kgu-blue);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.card-text {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}
.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    display: flex;
    gap: 1rem;
}

/* ── MEMBER CARDS ── */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.member-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out-expo);
    text-align: center;
}
.member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-light);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--kgu-blue);
    font-weight: 700;
}
.member-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.member-role { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.member-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; }
.member-tags span {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--kgu-gold-dim);
    color: var(--kgu-gold);
    font-weight: 600;
}

/* ── ARTICLE CONTENT ── */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
}
.article-content h1 { font-size: 1.8rem; font-weight: 900; margin-bottom: 1rem; line-height: 1.4; }
.article-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.8rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--bg-light); }
.article-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.9; }
.article-content ul, .article-content ol { margin: 0.5rem 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.article-content blockquote {
    border-left: 3px solid var(--kgu-gold);
    padding: 0.8rem 1.2rem;
    margin: 1rem 0;
    background: var(--kgu-gold-dim);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}
.article-content img { border-radius: 8px; margin: 1rem 0; }
.article-content code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}
.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.article-meta .tag {
    background: var(--kgu-blue);
    color: #fff;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ── NEWS LIST ── */
.news-list { list-style: none; }
.news-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
}
.news-item:last-child { border-bottom: none; }
.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 80px;
}
.news-text { font-size: 0.95rem; line-height: 1.7; }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--kgu-blue);
    color: #fff;
    box-shadow: 0 2px 12px rgba(15,35,80,0.2);
}
.btn-primary:hover {
    background: var(--kgu-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15,35,80,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--kgu-blue);
    border: 1.5px solid var(--kgu-blue);
}
.btn-outline:hover {
    background: var(--kgu-blue);
    color: #fff;
}
.btn-gold {
    background: var(--kgu-gold);
    color: #fff;
}
.btn-gold:hover {
    background: var(--kgu-gold-light);
    transform: translateY(-2px);
}

/* ── BREADCRUMB ── */
.breadcrumb {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--kgu-blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* ── CATEGORY FILTER ── */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid var(--border-light);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--kgu-blue);
    color: var(--kgu-blue);
    background: rgba(15,35,80,0.04);
}

/* ── PAGINATION ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1.5px solid var(--border-light);
    color: var(--text-light);
}
.pagination a:hover { border-color: var(--kgu-blue); color: var(--kgu-blue); }
.pagination .current {
    background: var(--kgu-blue);
    color: #fff;
    border-color: var(--kgu-blue);
}

/* ── FOOTER ── */
.footer {
    background: var(--text-main);
    color: rgba(255,255,255,0.5);
    padding: 3rem 0 2rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-brand p { font-size: 0.75rem; margin-top: 0.5rem; }
.footer-logo-img { height: 24px; filter: brightness(0) invert(1); opacity: 0.6; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-copy {
    text-align: center;
    font-size: 0.7rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── CTA BANNER ── */
.cta-banner {
    background: var(--kgu-blue);
    padding: 3rem 0;
    text-align: center;
    color: var(--white);
}
.cta-banner .section-title { color: var(--white); margin-bottom: 0.8rem; }
.cta-banner .section-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }

/* ── LOADING ── */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}
.loading i { margin-right: 0.5rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-list { display: none; }
    .nav-toggle { display: block; }
    .nav-list.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(24px);
        padding: 1.5rem;
        gap: 0.8rem;
        box-shadow: var(--shadow-md);
    }
    .nav-list.open a { font-size: 1rem; padding: 0.6rem 0; }
    .card-grid { grid-template-columns: 1fr; }
    .member-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .news-item { flex-direction: column; gap: 0.3rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .page-hero { padding: calc(var(--header-height) + 2.5rem) 0 2rem; }
}

@media (max-width: 480px) {
    .member-grid { grid-template-columns: 1fr; }
    .filter-bar { justify-content: center; }
}
