/* ========================================
   ナビゲーション・メニュー・UI要素
   ファイル名: navigation.css
======================================== */

/* 固定ヘッダー・ナビゲーション */
.fixed-toc {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #3b65bf;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* 追加：幅の安定化 */
    width: 100%;
    box-sizing: border-box;
}

/* 固定ヘッダー・ナビゲーション */
.fixed-toc-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center; /* space-between から center に変更 */
    align-items: center;
    flex-wrap: wrap;
}

/* タイトルを削除するか、必要に応じて非表示 */
.fixed-toc-title {
    display: none; /* タイトルを非表示にしてメニューを中央に */
}

/* または、タイトルを残したい場合は以下のように調整 */
/*
.fixed-toc-title {
    font-size: 18px;
    font-weight: bold;
    color: #3b65bf;
    margin-right: 25px;
    position: absolute;
    left: 20px;
}
*/

.fixed-toc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
	text-align: center;
}

.fixed-toc-nav a {
    color: #3b65bf;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.fixed-toc-nav a:hover {
    background-color: #3b65bf;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 101, 191, 0.3);
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: rgba(59, 101, 191, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #3b65bf;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ハンバーガーメニューのアニメーション */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* 追加：画面ずれ防止 */
    width: 100vw;
    height: 100vh;
	pointer-events:none;
}

.mobile-menu.show {
    display: block;
    opacity: 1;
	pointer-events:auto;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    /* 追加：安定化 */
    box-sizing: border-box;
}

.mobile-menu.show .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #f8f9fa;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #3b65bf;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(59, 101, 191, 0.1);
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 15px 20px;
    color: #3b65bf;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-menu-nav a:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
}

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3b65bf;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 101, 191, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2a4d8a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 101, 191, 0.4);
}

/* ステップ表示 */
.step {
    padding: 25px;
    margin: 0 0 30px 0;
    border: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stepnum {
    background: linear-gradient(135deg, #3b65bf, #2a4d8a);
    padding: 15px 0;
    color: #fff;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 120%;
    font-weight: bold;
    text-align: center;
    margin-top: 2%;
    box-shadow: 0 3px 10px rgba(59, 101, 191, 0.3);
}

.arrow {
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-top: 20px solid #333;
    margin: auto;
    margin-bottom: -1.7rem;
}

/* アラートボックス */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #f57c00;
}

.alert-danger {
    background: #ffebee;
    border-color: #f44336;
    color: #d32f2f;
}

/* ボタンの改善 */
.center img[src*="button"] {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.center img[src*="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* テーブルのハイライト効果 */
.hotel-group-highlight td {
    background: #e3f2fd !important;
    transition: background-color 0.3s ease;
}

.normal-table-highlight td {
    background: #e3f2fd !important;
    transition: background-color 0.3s ease;
}

table.border tbody tr:hover td {
    background: #e3f2fd !important;
    cursor: pointer;
}

/* テーブルレスポンシブコンテナ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
}

/* アンカーリンクのスクロール位置調整 */
#overview,
#accommodation,
#networking,
#tour,
#lunch,
#application,
#contact,
#WiFi,
#preparation
{
    scroll-margin-top: 130px;
}