/* ========================================
   ハンバーガーメニュー専用CSS
   モバイルナビゲーション
   ======================================== */

/* ========================================
   1. ハンバーガーボタン
   ======================================== */
.hamburger {
    display: none;
    width: 3rem;
    height: 3rem;
    background: #ffffff;
    border: 2px solid #1976D2;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.hamburger:hover {
    background: #f5f5f5;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   2. ハンバーガーライン（3本線）
   ======================================== */
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1976D2;
    margin: 4px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* ========================================
   3. ハンバーガー開閉アニメーション
   ======================================== */
.hamburger.active {
    background: #f5f5f5;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 7px);
    background: #1976D2;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -9px);
    background: #1976D2;
}

/* ========================================
   4. モバイルナビゲーション
   ======================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    z-index: 1000;
    overflow-y: auto;
    color: #fff;
    padding-top: 80px;
    margin: 0;
}

/* オーバーレイ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ボディロック */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ========================================
   5. モバイルナビヘッダー
   ======================================== */
/* モバイルナビゲーション */

.mobile-nav-header {
    padding: 1rem !important;
    border-bottom: 1px solid #e0e0e0 !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.mobile-logo-icon {
    display: block;
    height: 1.75rem !important;
    width: auto !important;
}

.mobile-logo-text {
    height: 1.5rem !important;
    width: auto !important;
}

.mobile-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-nav li {
    border-bottom: 1px solid #f0f0f0 !important;
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.25rem;
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

/* モバイルナビゲーション */
.mobile-nav {
 display:block;
 position:absolute;
 top:70px;
 right:-100%;
 background:white;
 box-shadow:0 5px 15px rgba(0,0,0,0.1);
 padding:20px;
 transition:all 0.3s;
 z-index:999;
 max-height:calc(100vh - 70px);
    overflow-y:auto;
}
.mobile-nav .search-example {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.mobile-nav .search-example h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #333;
}

.mobile-nav .search-box-demo {
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.mobile-nav .suggest-dropdown {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.mobile-nav .suggest-item {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav .suggest-item:last-child {
    border-bottom: none;
}

.mobile-nav .negative-word {
    font-size: 0.75rem;
    padding: 1px 5px;
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    border-radius: 3px;
    margin-left: 5px;
}

.mobile-nav-menu {
    list-style: none;
    margin-bottom: 20px;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.mobile-nav-menu a i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    color: #4fc3f7;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-buttons .price-simulator-btn,
.mobile-buttons .header-line-button {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
}
/* ========================================
   6. モバイルナビリスト
   ======================================== */
.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.mobile-nav a i {
    margin-right: 12px;
    font-size: 1.8rem;
    width: 24px;
    text-align: center;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
    color: #4fc3f7;
}

/* CTAボタン */
.mobile-nav a.cta-button {
    background: #00c300;
    color: white;
    border-radius: 25px;
    padding: 12px 20px;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 80%;
}

.mobile-nav .cta-button:hover {
    background: #00a300;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 0, 0.3);
    padding-left: 20px;
}
  /* モバイルナビゲーションのアニメーション調整 */
  @media (max-width: 1023px) {

      .mobile-nav.active {
          right: 0;
      }

      .overlay {
          transition: opacity 0.4s ease, visibility 0.4s ease;
          visibility: hidden;
      }

      .overlay.active {
          visibility: visible;
      }
  }
/* ========================================
   7. モバイルCTAボタン
   ======================================== */
.mobile-nav .cta-link {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
    margin-top: 20px;
}

.btn-line-mobile {
    background: linear-gradient(135deg, #00c300, #00a300);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0 20px;
    text-align: center;
    justify-content: center;
}

.btn-line-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 0, 0.3);
}

/* ========================================
   8. レスポンシブ表示制御
   ======================================== */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 0.5rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .fixed-diagnosis-btn {
        display: none;
    }
}

/* ========================================
   9. 小画面向け調整
   ======================================== */
@media (max-width: 480px) {
    .mobile-nav {
        width: 100%;
        right: -100%;
    }
    
    .mobile-nav.active {
        right: 0;
    }
}