/* ==========================================================================
   アイクォーク 共通CSS（全ページ共通）
   読み込み順： css/styles.css → css/common.css → ページ固有の <style>
   含むもの：デザイントークン / 固定ヘッダー(ピル型) / セクション見出し /
            カード・チップ・ボタン / お問合せCTA帯 / フッター / サブページのヒーロー
   ========================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
    --gradient-hero: linear-gradient(135deg, #050f1e 0%, #0a2540 60%, #0d3060 100%);
    --gradient-cta: linear-gradient(135deg, #00a8cc 0%, #0077aa 100%);
    --iq-gradient-cta: linear-gradient(135deg, #00a8cc 0%, #0077aa 100%);
    --iq-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* 色（新しいページ・部品で使う用。既存CSSは直接の色指定のまま） */
    --iq-navy: #0a2540;
    --iq-navy-deep: #050f1e;
    --iq-accent: #0077aa;
    --iq-cyan: #00a8cc;
    --iq-text: #2d3e50;
    --iq-muted: #4a6070;
    --iq-border: #dce8f0;
    --iq-tint: #e9f2f9;
    --iq-soft: #f3f7fb;
    --iq-radius-card: 20px;
}

    /* ===== 固定ヘッダー（スクロールで小さなピル型に浮き上がる） ===== */
    body .topmenu {
        position: sticky;
        top: 0;
        z-index: 1030;
        background: #fff;
        transition: background-color 0.3s ease, padding 0.3s ease;
    }

    body .topmenu .navbar,
    body .topmenu .topbar2 img,
    body .topmenu .company-name {
        transition: all 0.3s ease;
    }

    /* スクロール後：外枠は透明にして、メニュー本体だけを浮かせる */
    body .topmenu.is-scrolled {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
        padding-top: 10px;
        pointer-events: none;
        /* 高さはJSで固定しているのでレイアウトはずれない */
    }

    body .topmenu.is-scrolled {
        padding-bottom: 0 !important;
        /* styles.css の .topmenu の padding-bottom:5px / border-bottom:3px を打ち消す */
    }

    body .topmenu.is-scrolled::before,
    body .topmenu.is-scrolled::after {
        border: 0 !important;
        box-shadow: none !important;
    }

    /* styles.css の .topbar2（白背景・左右30px）がロゴの白い枠の正体 */
    body .topmenu.is-scrolled .topbar2 {
        background: transparent !important;
        padding: 0 12px 0 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body .topmenu.is-scrolled .navbar.bg-white {
        pointer-events: auto;
        width: fit-content;
        max-width: calc(100% - 24px);
        margin: 0 auto;
        padding: 4px 28px !important;
        border-radius: 999px;
        background-color: #fff !important;
        border: 0 !important;
        box-shadow: 0 8px 28px rgba(0, 20, 45, 0.28), 0 2px 6px rgba(0, 20, 45, 0.12);
    }

    /* ロゴを小さく、社名は非表示 */
    body .topmenu.is-scrolled .topbar2 img {
        width: 100px !important;
        height: auto;
        margin-top: 0 !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        mix-blend-mode: multiply;
    }

    body .topmenu.is-scrolled .topbar2 .nav-link {
        padding-top: 0;
        padding-bottom: 0;
    }

    body .topmenu.is-scrolled .company-name {
        display: none;
    }

    /* スマホ：開いたメニューが崩れないよう角丸は控えめに */
    @media (max-width: 767.98px) {
        body .topmenu.is-scrolled .navbar.bg-white {
            width: calc(100% - 24px);
            padding: 4px 16px !important;
            border-radius: 28px;
        }
    }

    /* アンカーリンク移動時にメニューで隠れないように */
    html {
        scroll-padding-top: 90px;
    }

/* ===== サブページのヒーロー（暗いオーバーレイで文字を読みやすく） ===== */
body.sub_page .hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 15, 30, 0.6) 0%, rgba(5, 15, 30, 0.15) 100%);
}

/* ===== セクション共通 ===== */
    .iq-section {
        padding: 4rem 0;
    }

    .iq-section--compact {
        padding: 3rem 0;
    }

    .iq-section--soft {
        background: #f3f7fb;
    }

    .iq-section-h2 {
        font-size: clamp(1.4rem, 3vw, 2rem);
        font-weight: 700;
        color: #1a2e44;
        text-align: center;
        margin-bottom: 0.6rem;
    }

    .iq-section-h2::after {
        content: '';
        display: block;
        width: 44px;
        height: 3px;
        background: var(--iq-gradient-cta);
        margin: 0.9rem auto 0;
        border-radius: 2px;
    }

    .iq-section-desc {
        text-align: center;
        font-size: 0.88rem;
        color: #5a7080;
        margin-bottom: 2.5rem;
    }

/* ===== カード・チップ・ボタン ===== */
.iq-card {
    background: #fff;
    border: 1px solid #dce8f0;
    border-radius: 20px;
    padding: 1.6rem;
}

.iq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iq-chip {
    font-size: 0.82rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: #e9f2f9;
    color: #0a2540;
    line-height: 1.5;
}

.iq-chip small {
    margin-left: 0.35rem;
    font-size: 0.72rem;
    color: #4a6070;
}

/* 紺のピル型ボタン */
.iq-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    background: #0a2540;
    text-decoration: none;
    transition: background-color var(--iq-transition), box-shadow var(--iq-transition);
}

.iq-btn:hover {
    color: #fff;
    background: #0077aa;
    box-shadow: 0 4px 12px rgba(0, 119, 170, 0.35);
}

    /* お問合せCTA */
    .iq-cta {
        padding: 4rem 0;
        background: var(--gradient-hero);
        color: #fff;
    }

    .iq-cta-title {
        font-size: clamp(1.05rem, 2.4vw, 1.5rem);
        font-weight: 700;
        line-height: 1.9;
        color: #fff;
        margin-bottom: 0.9rem;
    }

    .iq-cta-text {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
        line-height: 1.9;
        color: rgba(255, 255, 255, 0.92);
        margin-bottom: 2rem;
    }

    .iq-cta-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        padding: 0.9rem 2.8rem 1rem;
        border-radius: 999px;
        background: #fff;
        color: #0a2540;
        text-decoration: none;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
        transition: transform var(--iq-transition), box-shadow var(--iq-transition), background-color var(--iq-transition);
    }

    .iq-cta-btn:hover {
        color: #0a2540;
        background: #eaf4fa;
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
    }

    .iq-cta-btn-sub {
        font-size: 0.8rem;
        font-weight: 700;
        color: #0077aa;
    }

    .iq-cta-btn-main {
        font-size: 1.3rem;
        font-weight: 700;
    }

    /* フッター（紺で統一） */
    .footer.iq-footer {
        background: var(--gradient-hero);
        color: #b0c4d8;
        padding-top: 2.5rem !important;
        padding-bottom: 1rem;
    }

    .iq-footer .border-top-grey {
        border-top: 0;
    }

    .iq-footer h3 {
        font-size: 0.95rem;
        letter-spacing: 0.12em;
        color: #fff;
        margin-bottom: 1rem;
    }

    .iq-footer a {
        color: #cfe3f2;
        text-decoration: none;
        transition: color var(--iq-transition);
    }

    .iq-footer a:hover {
        color: #fff;
        text-decoration: underline;
    }

    .iq-footer .annotation {
        color: #8fa7bd;
    }

    .iq-footer .borderblack {
        display: inline-block;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 999px;
        padding: 0.35rem 1rem !important;
    }

    .iq-footer ul {
        padding-left: 1rem;
    }

    .iq-footer .container>.text-center {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 1rem;
        font-size: 0.8rem;
    }

    @media (max-width: 575.98px) {

        .iq-section {
            padding: 3rem 0;
        }

        .iq-cta-btn {
            padding: 0.8rem 1.8rem 0.9rem;
        }

        .iq-cta-btn-main {
            font-size: 1.1rem;
        }
    }

/* コピーライトだけの簡易フッター（サブページ用） */
.footer.iq-footer.iq-footer--simple {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {

    .iq-cta-btn,
    .iq-btn {
        transition: none;
    }
}
