/* ========================================
   共通CSS - 全ページで使用
   ======================================== */

/* ========================================
   カラーシステム・タイポグラフィ
   ======================================== */

:root {
    /* Colors - Brand */
    --primary-color: #667eea;
    --primary-hover: #5a67d8;
    --secondary-color: #764ba2;

    /* Colors - UI */
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;

    /* Colors - Neutral */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Colors - Slate (記事系) */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    /* Colors - Background */
    --bg-body: #eef6ff;
    --bg-light: #f7fafc;
    --bg-faq: #fafafa;
    --bg-footer: #1a202c;
    --bg-footer-link: #a0aec0;

    /* Colors - Text */
    --text-dark: #2d3748;
    --text-light: #6c757d;

    /* Colors - Border */
    --border-primary: #212529;
    --border-gray: #e0e0e0;
    --border-scrollbar: #c1c1c1;
    --border-scrollbar-track: #f1f1f1;
    --border-scrollbar-hover: #a8a8a8;

    /* Typography - Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8rem;
    --font-size-base: 0.85rem;
    --font-size-md: 0.9rem;
    --font-size-normal: 0.95rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.1rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 1.75rem;
    --font-size-5xl: 1.8rem;
    --font-size-6xl: 1.9rem;
    --font-size-article: 16px;

    /* Line Heights */
    --line-height-tight: 0.9;
    --line-height-normal: 1.4;
    --line-height-base: 1.5;
    --line-height-relaxed: 1.6;

    /* Spacing */
    --spacing-10: 10px;
    --spacing-15: 15px;
    --spacing-20: 20px;
    --spacing-40: 40px;

    /* Border Radius */
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 24px rgba(102, 126, 234, 0.15);
    --shadow-xl: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --shadow-cta: 0 10px 40px rgba(102, 126, 234, 0.3);
    --shadow-button: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-button-hover: 0 6px 20px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-cubic: all 0.3s cubic-bezier(.25,.8,.25,1);

    /* Container */
    --container-max: 1140px;
    --content-max: 1140px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: var(--line-height-relaxed);
    background-color: var(--bg-body);
}

/* ヘッダー・フッター・メインコンテンツの幅を統一 */
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: var(--container-max) !important;
}

/* ========================================
   ヘッダーナビゲーション
   ======================================== */

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-jp {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 1.9rem;
    vertical-align: baseline;
    position: relative;
}

/* ヘッダーメニュー・ボタンのフォントサイズ */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 0.8rem !important;
    }

    .navbar-nav .btn,
    .navbar .btn {
        font-size: 0.8rem !important;
    }
}

/* ========================================
   フッターグリッド
   ======================================== */

.footer-grid {
    display: grid;
    grid-template-columns: 40% 15% 15% 15% 15%;
    gap: 0;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col {
    min-width: 0;
}

/* ========================================
   フッターリンクスタイル
   ======================================== */

.footer-col ul {
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 0.3rem;
}

.footer-col ul li a {
    font-size: 0.8rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff !important;
    text-decoration: none;
}

.footer-col h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* フッター下部の区切り線 */
footer .row {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* フッター下部のリンク（利用規約等）のスタイル統一 */
footer .row a {
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

footer .row a:hover {
    color: #fff !important;
}

/* フッター下部の著作権表示 */
footer .row p {
    font-size: 0.8rem;
}

/* フッター会社情報のXアイコン */
.footer-col a .bi {
    transition: color 0.3s ease;
}

.footer-col a:hover .bi {
    color: #fff !important;
}
