/**
 * モバイルメニュー スタイル
 * Version: 1.0
 * Created: 2026-06-09
 */

/* ========================================
   モバイルメニュー
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: none; /* デフォルトで非表示 */
}

/* タブレット・モバイル表示時のみ有効化 */
@media (max-width: 1024px) {
    .mobile-menu {
        display: block;
    }
}

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

.mobile-menu nav {
    padding: 100px 0 60px;
    background: white;
}

/* メニュークローズボタン */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #2C7A7B;
    transform-origin: center;
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a {
    display: block;
    padding: 16px 24px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active,
.mobile-menu a:focus {
    background: linear-gradient(135deg, #E6FFFA 0%, #B2F5EA 100%);
    color: #2C7A7B;
    padding-left: 32px;
}

/* アクティブページの強調 */
.mobile-menu a.active {
    background: linear-gradient(135deg, #2C7A7B 0%, #4FD1C5 100%);
    color: white;
    font-weight: 600;
}

/* ハンバーガーメニューアイコン */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    position: relative;
}

/* タブレット・モバイルで表示 */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2C7A7B;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

/* タブレット・モバイル表示時のみ有効化 */
@media (max-width: 1024px) {
    .mobile-menu-overlay {
        display: block;
    }
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* デスクトップ表示時は完全に非表示 */
@media (min-width: 1025px) {
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu-nav {
        display: none !important;
    }
    
    .hamburger {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* タブレット・モバイル表示時はデスクトップナビゲーションを非表示 */
@media (max-width: 1024px) {
    .nav-menu {
        display: none !important;
    }
    
    .header-right .btn-reserve {
        display: none !important;
    }
}

/* ========================================
   モバイルメニューナビゲーション
   ======================================== */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 18px 28px;
    color: #234E52;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #E6FFFA;
    letter-spacing: 0.05em;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
    background: linear-gradient(135deg, #E6FFFA 0%, #B2F5EA 100%);
    color: #2C7A7B;
    padding-left: 36px;
    border-left: 4px solid #4FD1C5;
}

.mobile-menu-nav a.active {
    background: linear-gradient(135deg, #2C7A7B 0%, #4FD1C5 100%);
    color: white;
    font-weight: 600;
    border-left: 4px solid #F6AD55;
}

/* モバイル予約ボタン */
.btn-reserve-mobile {
    background: linear-gradient(135deg, #F6AD55 0%, #FBD38D 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    text-align: center;
    margin: 20px 28px;
    padding: 16px 32px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.4);
    border: none !important;
    border-left: none !important;
}

.btn-reserve-mobile:hover,
.btn-reserve-mobile:focus {
    background: linear-gradient(135deg, #2C7A7B 0%, #4FD1C5 100%) !important;
    color: white !important;
    padding-left: 32px !important;
    box-shadow: 0 6px 16px rgba(44, 122, 123, 0.4);
    transform: translateY(-2px);
}
