/* ============================================================
   common.css - ドローンイベント情報 共通スタイル
   本番サイト(drone-event.info / Lightning Theme)に合わせた
   落ち着いたトーン
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0d6ebd;
    --primary-dark: #0a5a9c;
    --primary-darker: #084a82;
    --primary-light: #f0f6fc;
    --primary-pale: #d6e6f5;
    --accent: #0d6ebd;
    --accent-hover: #0a5a9c;
    --accent-light: #f0f6fc;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --border-light: #eeeeee;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 1px 3px rgba(0,0,0,.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,.08);
    --shadow-hover: 0 2px 8px rgba(0,0,0,.1);
    --radius: 4px;
    --radius-sm: 4px;
    --radius-xs: 3px;
    --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER - 白背景 + 青ライン（Lightning風）
   ============================================================ */
.site-header {
    background: var(--white);
    position: relative;
}
.header-top {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    color: var(--text);
    padding: 0.75rem 1.5rem;
}
.header-top-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
}
.site-logo:hover { color: var(--text); text-decoration: none; }
.site-logo svg { width: 26px; height: 26px; }
/* ロゴSVGの色をプライマリブルーに */
.site-logo svg circle { stroke: var(--primary); }
.site-logo svg circle[fill="white"] { fill: var(--primary); }
.site-logo svg line { stroke: var(--primary); }

.site-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: 0.75rem;
    font-weight: 400;
}
.header-contact {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-light);
}
.header-contact a { color: var(--primary); text-decoration: none; }
.header-contact-tel {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* --- Category Navigation --- */
.cat-nav {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    border-bottom: 1px solid var(--border);
}
.cat-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
}
.cat-link:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}
.cat-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Back Link (detail page) --- */
.header-back { display: flex; align-items: center; }
.back-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.back-link:hover { color: var(--primary-dark); }

/* ============================================================
   FOOTER - 本番サイト(Lightning Theme)に合わせたダークブルー
   ============================================================ */
.site-footer {
    background: #0d6ebd;
    color: rgba(255,255,255,0.9);
    padding: 2rem 1.5rem 1.5rem;
    font-size: 0.82rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-size: 0.82rem;
}
.footer-links a:hover { color: white; }
.footer-contact {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
}
.footer-contact a { color: white; }
.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.apply-btn:hover { background: var(--primary-dark); color: white; text-decoration: none; }
.apply-btn:disabled, .apply-btn.disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-muted); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .header-contact { display: none; }
    .site-tagline { display: none; }
    .footer-links { gap: 1rem; }
}
