.hidden {
    display: none;
}

#venue_popup {
    position: fixed;
    padding: 20px; /* ポップアップ全体に余白を追加（任意） */
    top: calc(70px + 10vh); /* 例えば、メニューの高さが100pxの場合、10vhはビューポートの10% */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* ウィンドウの幅を画面幅の90%に設定 */
    max-width: 600px; /* 最大幅を600pxに制限 */
    height: auto;
    max-height: 70%;
    overflow: hidden; /* 内容が多い場合にはスクロール可能にする */
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    overflow-y: auto; /* 縦方向にスクロール可能に */
}

#venue_popup .popup_content {
    /*max-height: calc(80vh - 40px); /* 上下のpaddingを除外 */
    overflow-y: auto;
    position: relative;
    margin-top: 20px !important;
}

.close_btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #333; /* ダークグレー */
    background: none; /* 薄い背景色 */
    border: 1px solid #ccc; /* 薄い枠線 */
    border-radius: 50%; /* 丸いボタン */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    z-index: 10; /* 他の要素の上に表示 */

}

.close_btn:hover {
    background: #e6e6e6; /* 少し濃い背景色 */
    border-color: #999; /* 濃い枠線 */
    color: #000; /* テキスト色を濃く */
}

.close_btn:active {
    transform: scale(0.9); /* クリック時に少し縮む */
}


#venue_results {
    list-style: none;
    padding: 0;
    margin: 0; /* デフォルトの余白を削除 */
}

#venue_results li {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative; /* ボタンを絶対配置するため、親要素に相対位置を設定 */
    transition: background 0.3s ease;
    cursor: pointer;
}

#selected_venue {
    margin-top: 0px !important;
    padding: 0px !important;
}

#selected_venue_name {
    font-size:14px !important;
    font-weight: bold !important;
}

#selected_venue_address {
    font-size:14px !important;
    margin-right: 4px !important;
}

.venue-item {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: flex; /* フレックスレイアウトを使用 */
    justify-content: space-between; /* 横並びにする */
}

.venue-content {
    display: flex;
    flex-direction: column; /* 名前と住所を縦に並べる */
    width: 85%; /* 左側のカラムを85%に設定 */
}

.venue-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.venue-address {
    font-size: 0.9em;
}

.venue-item:hover {
    background: #f0f0f0;
}

.venue-button-container {
    display: flex;
    justify-content: center; /* ボタンを中央に配置 */
    align-items: center;
    width: 15%; /* 右側にボタンのため15%の幅を設定 */
}

.select_venue_btn {
    padding: 5px 12px;
    font-size: 0.85em;
    background-color: var(--primary-color); /* 基本色 */
    font-weight: normal;
    color: #fff;
    border: none;
    border-radius: 45px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    position: absolute; /* 親要素内での絶対位置 */
    z-index: 10;  /* ボタンが他の要素の上に来るように */
}

.select_venue_btn:hover {
    background-color: #005f9e; /* ホバー時の濃い青 */
}

.select_venue_btn:active {
    transform: scale(0.95); /* クリック時に少し縮む */
}

.select_venue_btn:focus {
    outline: 2px solid #005f9e; /* フォーカス時のアクセシビリティ対応 */
}

.close_btn {
    position: absolute;
    top: 5px !important; /* 検索窓の上マージンを基準に設定 */
    right: 5px !important; /* ポップアップ右端からの余白 */
    width: 40px;
    height: 40px;
    font-size: 1.5em !important;
    font-weight: bold;
    color: black;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001; /* ポップアップ内の他の要素より上 */
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.search_field {
    display: flex; /* フレックスボックスで横並びに配置 */
    align-items: center; /* 縦方向の中央揃え */
    gap: 10px; /* 入力フィールドとボタンの間隔 */
    flex-wrap: nowrap; /* 改行を防止 */
}

/* 検索ボックス全体のラッパー */
.search_box_wrapper {
    display: flex; /* フレックスボックスを有効化 */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 10px; /* アイコンと検索ボックスの間隔 */
    width: 90%;
    padding: 5px; /* ラッパー自体の余白 */
    border: 1px solid #ccc;
    border-radius: 45px;
    box-sizing: border-box; /* パディングを含む幅調整 */
    overflow: hidden;
}

/* 虫眼鏡アイコン */
.search_icon {
    color: #777676; /* アイコンの色 */
    font-size: 18px;
    pointer-events: none; /* アイコンがクリックされないように */
    margin-left: 5px; /* アイコンの左側に余白を追加 */
    margin-right: 0px;
}

/* 検索ボックス */
#venue_search_input {
    height: 40px; /* 入力ボックスと同じ高さに揃える */

    flex: 1 !important; /* 入力ボックスが残りのスペースを埋める */
    margin-right: 12px !important;
    border: none !important; /* ラッパーの境界線と重複させない */
    background: transparent !important; /* 背景を透明化してラッパーの背景色に一致 */
    font-size: 14px !important;
    outline: none !important; /* フォーカス時の外枠を削除 */
    padding: 5px !important; /* 入力テキストの余白 */
}


#venue_search_btn {
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap; /* テキストが改行しないようにする */

}

#venue_search_btn:hover {
    background-color: #006bb3;
}


#venue_search_input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
}

#add_venue_btn,
#remove_venue_btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px !important;
    font-family: Arial, sans-serif;
    color: #333; /* ダークグレー */
    background-color: #f9f9f9; /* 明るいグレー */
    border: 1px solid #ccc; /* 薄いグレーのボーダー */
    border-radius: 4px; /* 少し角を丸くする */
    cursor: pointer;
    transition: all 0.3s ease; /* ホバー時のアニメーション */
}

#add_venue_btn:hover,
#remove_venue_btn:hover {
    background-color: #e6e6e6; /* 少し暗いグレー */
    border-color: #bbb; /* ボーダーも少し暗く */
    color: #000; /* テキストを濃い色に */
}

#add_venue_btn:focus,
#remove_venue_btn:focus {
    outline: none; /* デフォルトのフォーカススタイルを削除 */
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2); /* フォーカス時の軽い影 */
}


