@charset "UTF-8";

/* --- プレローダー防止 --- */
#preloader, .preloader, .spinner { display: none !important; }

/* --- 1. ヘッダー（最前面固定＆にょきっと表示） --- */
.main-header {
    z-index: 3000 !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.main-header.navbar-hidden {
    transform: translateY(-100%) !important;
}

/* デスクトップメニューのテキスト色 */
.navbar-nav .nav-link {
    color: rgb(27, 47, 69) !important;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: #15a04a !important; /* ホバー時に緑色に */
}

/* 翻訳アイコンとハンバーガーの間隔調整 */
.ms-auto {
    display: flex;
    align-items: center;
}

/* --- 2. 135度回転ハンバーガー（完璧なX） --- */
.mobile-nav-toggle {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; padding: 0; outline: none;
}
.hamburger-lines {
    position: relative; width: 28px; height: 18px;
    /* ★ 135度回転に変更 */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-toggle.is-active .hamburger-lines {
    transform: rotate(135deg); 
}
.hamburger-lines .line {
    position: absolute; display: block; height: 2px; width: 100%;
    background-color: #1b2f45; border-radius: 2px;
    transition: all 0.3s ease; left: 0; transform-origin: center;
}
.hamburger-lines .line1 { top: 0px; }
.hamburger-lines .line2 { top: 8px; }
.hamburger-lines .line3 { top: 16px; }

/* 回転と組み合わせて綺麗なXにする */
.mobile-nav-toggle.is-active .line1 { top: 8px; transform: rotate(90deg); }
.mobile-nav-toggle.is-active .line2 { opacity: 0; }
.mobile-nav-toggle.is-active .line3 { top: 8px; transform: rotate(0deg); }

/* --- 3. モーダル（明るさ・センター配置・幅） --- */
/* --- 3. モーダル（透明度の調整） --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100dvh;
    /* ★ rgbaの最後の数字を「0.8」にすることで透明度を上げました（0.98 → 0.8） */
    background-color: rgba(255, 255, 255, 0.8) !important; 
    /* 背景をぼかすことで、文字の読みやすさを維持します */
    backdrop-filter: blur(10px); 
    z-index: 2500;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    overflow-y: auto;
    padding-top: 85px;
}
.mobile-drawer.active {
    transform: translateX(0); opacity: 1;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    /* ★ 背景を黒から白(255, 255, 255)に変更しました。末尾の0.4は透明度です */
    background: rgba(255, 255, 255, 0.4); 
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- モーダル内文字 --- */
.drawer-nav ul li a, 
.drawer-nav .accordion-title {
    display: block; 
    padding: 18px 25px;
    /* ★ #333 から #000 (完全な黒) に変更 */
    color: #000 !important; 
    text-decoration: none; 
    /* ★ フォントの太さを少し強調 */
    font-weight: 700; 
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sub-menu { display: none; background: rgba(0,0,0,0.02); }
.sub-menu.open { display: block; }
.sub-menu li a {
    padding-left: 45px !important; 
    font-size: 0.95rem !important; 
    /* 子メニューもハッキリした黒にする */
    color: #000 !important;
    font-weight: 500 !important;
}
.accordion-title { position: relative; cursor: pointer; }
.accordion-title::after {
    content: '\F282'; font-family: 'bootstrap-icons';
    position: absolute; right: 20px; transition: transform 0.3s;
}
.accordion-title.active::after { transform: rotate(180deg); }

/* --- ★ 連絡先エリア（センター配置を強化） --- */
.drawer-contact-area { 
    padding: 40px 25px; 
    text-align: center; /* 全体を中央寄せ */
    display: flex;
    flex-direction: column;
    align-items: center; 
}
.drawer-phone {
    font-size: 1.3rem; 
    /* ★ 電話番号も完全な黒に */
    color: #000 !important;
    font-weight: 800; 
    margin-bottom: 15px; 
    display: inline-flex; 
    align-items: center;
    text-decoration: none;
}
.drawer-phone i { margin-right: 10px; color: #007bff; font-size: 1.4rem; }

.btn-inquiry-sm {
    background-color: #007bff; color: white !important;
    padding: 12px 40px; border-radius: 50px;
    font-size: 0.95rem; display: inline-block; font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
    width: fit-content;
}

/* --- 4. 翻訳ボタン（アイコン拡大・背景なし） --- */
.translate-icon-wrapper {
    background: transparent !important;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.translate-icon-wrapper i {
    font-size: 1.9rem !important;
    color: #1b2f45;
}

.cstm-translate-dropdown {
    /* 右端に固定し、Bootstrapの自動位置計算による「ジャンプ」を防ぐ */
    right: 0 !important;
    left: auto !important;
    margin-top: 10px !important;
    
    /* アニメーションの設定 */
    display: block !important; /* アニメーションのために常に存在させる */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.cstm-translate-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown:not(.show) .cstm-translate-dropdown {
    /* 閉じる時は瞬時に消すことで、右へのワープ現象を物理的に見えなくします */
    transition: none !important;
    transform: translateY(-10px) !important;
}

/* --- 0. ヘッダー完全固定に伴う余白調整 --- */
body {
    padding-top: 80px; /* ヘッダーの高さ分だけページ全体を下げる */
}

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    /* （既存の z-index や transition はそのまま残してください） */
}


/* Google翻訳の上部バー・原文表示チップを完全に非表示にする */
body { top: 0 !important; }
html { margin-top: 0 !important; }
.goog-te-banner-frame, .goog-te-banner, .skiptranslate iframe { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }