/* ============================================================
   KOEI kintone LP — 共通スタイルシート
   抽出ルール:
     - カラー: 既存8ページから最多使用値を採用。ブレを統一。
     - フォント: Noto Sans JP (400/500/700/900) — 全ページ共通
     - 単位: px 統一（rem混在を解消）
     - セクション余白: 100px 0 を基準
     - コンテナ幅: 1200px を基準（contact含む）
     - ボタン: padding 18px 45px / border-radius 8px を基準
     - box-shadow: 0 4px 15px rgba(0,0,0,0.08) を基準
   ============================================================ */

/* ==================== リセット & 基本設定 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ==================== カラー変数 ==================== */
:root {
    /* ブランドカラー */
    --kintone-yellow: #FFCB05;
    --navy: #003366;
    --mid-blue: #005A9C;
    --accent-orange: #FF6B35;

    /* 背景 */
    --light-gray: #F5F7FA;
    --pale-yellow: #FFF9E6;
    --white: #FFFFFF;

    /* テキスト */
    --text-dark: #333333;
    --text-gray: #555555;

    /* 状態 */
    --success: #28A745;
    --error: #DC3545;

    /* カテゴリ（ニュース・タグ用） */
    --cat-green: #51CF66;
    --cat-red: #FF6B6B;
    --cat-purple: #9C27B0;

    /* ボーダー */
    --border-light: #E0E0E0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-gray);
    line-height: 1.8;
    overflow-x: hidden;
    background: var(--light-gray);
}

a {
    color: var(--mid-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--navy);
}

/* ==================== 共通コンポーネント ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--navy);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.4;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 60px;
}

/* ==================== ボタン ==================== */
.btn {
    display: inline-block;
    padding: 18px 45px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: #E65A2A;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
    box-shadow: 0 2px 10px rgba(0, 51, 102, 0.1);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-contact {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-contact:hover {
    background: var(--mid-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-block {
    width: 100%;
}

/* ヘッダー用小ボタン */
.btn-header {
    padding: 10px 20px;
    font-size: 14px;
}

/* ==================== ヘッダー ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-image {
    height: 80px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 900;
    color: var(--navy);
    text-decoration: none;
}

.logo-badge {
    background: var(--kintone-yellow);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* ==================== ナビゲーション ==================== */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu > li {
    position: relative;
}

.nav-link {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--mid-blue);
}

.nav-link.active {
    color: var(--mid-blue);
    font-weight: 700;
}

.nav-link i {
    font-size: 12px;
}

/* ドロップダウンメニュー */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 220px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--mid-blue);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    transition: all 0.3s ease;
}

/* ==================== ページヘッダー ==================== */
.page-header {
    padding-top: 140px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 20px;
}

.page-header p {
    font-size: 18px;
    color: var(--text-gray);
}

/* ==================== CTAセクション ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #004080 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== フッター ==================== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--kintone-yellow);
}

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

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 13px;
    opacity: 0.7;
}

/* ==================== 汎用カード ==================== */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ==================== ニュースカテゴリバッジ ==================== */
.news-category {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.news-category.info {
    background: var(--mid-blue);
    color: var(--white);
}

.news-category.seminar {
    background: var(--kintone-yellow);
    color: var(--navy);
}

.news-category.case {
    background: var(--cat-green);
    color: var(--white);
}

.news-category.column {
    background: var(--cat-red);
    color: var(--white);
}

.news-category.media {
    background: var(--cat-purple);
    color: var(--white);
}

.news-category.event {
    background: #009688;
    color: var(--white);
}

/* ==================== レスポンシブ共通 ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
        padding: 12px 0;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    .page-header {
        padding-top: 90px;
        padding-bottom: 25px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 13px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .section-subtitle {
        margin-top: 0;
        margin-bottom: 25px;
        font-size: 13px;
    }

    .cta-section h2 {
        font-size: 20px;
    }

    .cta-section p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .footer-logo {
        font-size: 16px;
    }

    .footer-desc {
        font-size: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        gap: 8px;
    }

    .logo-link {
        gap: 8px;
    }

    .logo-image {
        height: 36px;
    }

    .logo-text {
        font-size: 11px;
        white-space: nowrap;
    }

    .logo-badge {
        font-size: 8px;
        padding: 2px 5px;
        white-space: nowrap;
    }

    .header-container {
        padding: 8px 10px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 15px;
    }
}
