/* Shinto Ceremonies section — deep purple */
html .bg-color-shinto,
html .bg-color-shinto section,
html .bg-color-shinto div {
    background-color: #2a2035 !important;
}

/* From demo-digital-agency-2-dark.css */
@media (min-height: 1200px) {
    .body {
        overflow-x: hidden;
    }
}

@media (min-width: 1240px) {
    .container {
        max-width: 1240px !important;
    }
}

/* ============================================================
   ナビ折り返し防止 — 1200px以下でハンバーガーに切り替え
   ============================================================ */
@media (min-width: 993px) and (max-width: 1200px) {
    #header .header-nav-main nav {
        display: none !important;
    }
    #header .header-btn-collapse-nav {
        display: block !important;
    }
    #header .header-nav-main nav.collapse.show {
        display: block !important;
    }
}

/* ============================================================
   Mobile Navigation — ハンバーガーを768px以下で表示
   （Oklerテーマのデフォルト992pxより早めに切り替え）
   ============================================================ */

/* 769px〜991px: ナビを非表示にしてハンバーガーを表示 */
@media (min-width: 769px) and (max-width: 991px) {
    #header .header-nav-main nav {
        display: none !important;
    }
    #header .header-btn-collapse-nav {
        display: block !important;
    }
    /* モバイルメニューが開いたときに表示 */
    #header .header-nav-main nav.collapse.show {
        display: block !important;
    }
}

/* ============================================================
   Carousel Slide — モバイル・タブレットのテキストサイズ調整
   ============================================================ */

/* iPad / タブレット (576px〜768px) */
@media (max-width: 768px) {
    .slide-title-kanji {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
    }
    .slide-title-main {
        font-size: 2.4rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0.75rem !important;
    }
    .slide-subtitle {
        font-size: 0.95rem !important;
        letter-spacing: 0 !important;
    }
    .slide-description {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        padding: 0 0.5rem !important;
    }
}

/* iPhone (〜575px) */
@media (max-width: 575px) {
    .slide-title-kanji {
        font-size: 2.2rem !important;
    }
    .slide-title-main {
        font-size: 1.9rem !important;
    }
    .slide-subtitle {
        font-size: 0.85rem !important;
    }
    .slide-description {
        font-size: 0.8rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    /* スライドの高さをiPhoneで調整 */
    .owl-carousel .owl-item[style*="height: 100vh"] {
        height: 100svh !important;
    }
}

/* ============================================================
   Hero pages — transparent header / white nav text
   bg-transparent のページ用（Q&A など背景画像があるページ）
   ============================================================ */

/* ── ページトップ（透明背景時）: ナビ文字を白に ── */
#header .header-body.bg-transparent .header-nav-main nav > ul > li > a {
    color: #ffffff !important;
}

/* ロゴテキストを白に（bg-transparentページ） */
#header .header-body.bg-transparent .header-logo a span {
    color: #ffffff !important;
}

/* ハンバーガーボタン: 朱色（他ページと統一） */
#header .header-body.bg-transparent .header-btn-collapse-nav {
    background: #e36159 !important;
}

/* Facebook アイコン: スクロール前後ともに常に白 */
#header .header-nav-feature.social-icons-facebook a,
#header .header-nav-features .social-icons-facebook a {
    color: #ffffff !important;
}

/* ── スクロール後（sticky-header-active 付与時）: 背景と文字色を戻す ── */
html.sticky-header-active #header .header-body.bg-transparent {
    background-color: #f0ede8 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

html.sticky-header-active #header .header-body.bg-transparent .header-nav-main nav > ul > li > a {
    color: inherit !important;
}

/* Facebook はスクロール後も白のまま維持 */
html.sticky-header-active #header .header-nav-feature.social-icons-facebook a,
html.sticky-header-active #header .header-nav-features .social-icons-facebook a {
    color: #ffffff !important;
}
/* ============================================================
   ナビフォントサイズを小さく（メニュー折り返し防止）
   ============================================================ */
#header .header-nav-main nav > ul > li > a {
    font-size: 0.82rem !important;
    letter-spacing: 0.02em !important;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
}

/* ============================================================
   ロゴテキスト（Kannagara Inari）1行固定
   ============================================================ */

/* デフォルト: bg-lightページは黒文字 */
.header-logo a span,
.header-logo .logo-text {
    white-space: nowrap !important;
    font-size: 1.3rem !important;
    color: #2c2420 !important;
    line-height: 1.2 !important;
}

/* bg-transparentページ（Q&A等）: 白文字（より詳細なセレクタで上書き） */
#header .header-body.bg-transparent .header-logo a span {
    color: #ffffff !important;
}

/* スクロール後（sticky時）: bg-transparentページも黒文字に戻す */
html.sticky-header-active #header .header-body.bg-transparent .header-logo a span {
    color: #2c2420 !important;
}


