/* 基本設定 */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0; 
    background-color: #f8f9fa;
    overflow: hidden; /* スクロールバーを隠す */
}

/* --- モバイル用ヘッダー --- */
.header-mobile {
    display: none; /* デフォルトでは非表示 */
    position: fixed;
    top: env(safe-area-inset-top, 0);   
    left: 0;
    width: 100%;
    height: 50px; /* ヘッダーの高さを固定 */
    background: rgba(255, 255, 255, 0.7); /* 半透明 */
    backdrop-filter: blur(5px);
    color: black;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    border-bottom: 0.1px solid rgba(0,0,0,0.1);
    touch-action: none; /* ヘッダー上でのピンチズームを無効化 */
}

/* --- PC用ヘッダー --- */
.header-pc {
    display: none; /* モバイルでは非表示 */
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 0.5px solid #d3d3d3;
    height: 60px;
    box-sizing: border-box;
    align-items: center; /* 垂直中央揃え */
    justify-content: flex-end; /* 右揃え */
    flex-shrink: 0;
}

.header-pc .header-title {
    font-size: 40px; /* 文字の大きさ */
    margin-right: 0px; /* 右側の余白 */
    line-height: 60px; /* PCヘッダーの高さに合わせる */
}

/* 左側のメニューと検索アイコンをまとめるグループ */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 12px; /* アイコン間の余白 */
}

.menu-icon {
    margin-left: 3px;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
}

.header-title {
    font-size: 37px;
    font-weight: bold;
    margin-right: -10px; /* 右側の余白 */
    align-items: center;
}


/* コンテンツの基本構造 */
.main-content {
    flex-grow: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* PCなどのviewportが大きいデバイスの場合 */
@media (min-width: 769px) { /* 例：769px以上をPCとみなす */
 .main-content {
 height: 100vh; /* vhを明示的に指定 */
 }
}


/* タブレットなどviewportが中程度のデバイス以下の場合 */
@media (max-width: 768px) {
 .main-content {
 height: -webkit-fill-available; /* こちらはタブレット以下で適用 */
 }
}

.page-wrapper {
    display: flex;
    height: 100%;
    min-height: 0;
}

/* 左カラム */
.left-column {
    flex: 0 0 350px; /* PC表示時の幅を固定 */
    border-right: 0.2px solid #dee2e6;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100vh; /* 古いブラウザ用の設定 */
    height: -webkit-fill-available; /* ★ この行を追加 */
    position: relative; /* z-index を効かせるため */
    z-index: 1200;
    touch-action: none ;
}

.left-column-top {
    padding: 25px 25px 0;
    flex-shrink: 0;
}

/* ★★★ 新しく追加するスタイル ★★★ */
.left-column-scrollable-area {
    flex-grow: 1; /* 親要素内で残りの高さを全て埋める */
    min-height: 0; /* flexアイテムが縮小できるようにする */
    overflow-y: auto; /* コンテンツがはみ出したらスクロールさせる */
    display: flex; /* このエリア自体もflexコンテナにする */
    flex-direction: column; /* 子要素（middleとbottom）を縦に並べる */
    
    /* ▼▼▼ この一行を追加 ▼▼▼ */
    /* iOSのホームバーなどの領域を避け、コンテンツが見切れないようにする */
    padding-bottom: env(safe-area-inset-bottom, 20px); 
}

/* 中央エリアのスタイルを修正 */
.left-column-middle {
    padding: 15px 25px;
    min-height: 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-top: 20px;
    /* overflow-y: auto; は不要なので削除 */
}

.left-column-bottom {
    padding: 20px 25px;
    flex-shrink: 0;
    font-size: 14px;
    display: flex; /* noneから変更 */
    flex-direction: column;
    margin-top: 0px;
    margin-bottom: opx;
    gap: 7px;
}

.left-column-bottom a { /*リンクの文字の詳細設定*/
    color: #495057;
    text-decoration: none;
    display: inline; /* noneから変更 */
    transition: color 0.2s;
}


/* 右カラム */
.right-column {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 地図コンテナ */
#map {
    width: 100%;
    flex-grow: 1;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* 電光掲示板 */
.marquee-bar {
    margin: 0 auto 0.1px;    /* ★変更：上下左右の余白と中央揃え */
    overflow: hidden;
    white-space: nowrap;
    color: #000000;
    flex-shrink: 0;
    background: #ffffff;
    padding: -8px 0;     /* ← 上下px、左右pxの余白 */
    border-bottom: 0.1px solid #000000;
}
.marquee-content {
    margin: 0 auto 1px;    /* ★変更：上下左右の余白と中央揃え */
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 20s linear infinite;
    font-size: 12px; /* ← この行を追加！ */

}
@keyframes marquee-scroll {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}


.popup-content-wrapper {
    touch-action: pan-y; /* 縦スクロールのみ許可し、ピンチズームを無効化 */
    max-height: 250px; /* ポップアップの最大高さを指定 */
    overflow-y: auto;  /* 内容がはみ出た場合に縦スクロールバーを表示 */
    padding-right: 10px; /* スクロールバーのための余白 */
    position: relative;
}

.anonymous-label-top-left {
    position: absolute;
    top: 10px; /* 閉じるボタンとVertical Alignを揃える */
    left: 10px;
    background-color: #5bc0de;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1; /* 念のため、他の要素より前面に表示 */
}

/* ポップアップのスタイル */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
}
.popup-form h4 {
    margin: 0 0 10px 0;
    text-align: center;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}
.popup-form label {
    font-size: 12px;
    font-weight: normal;
}
.popup-form input, .popup-form textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
}
.popup-form button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    padding: 10px;
    margin-top: 5px;
}
.popup-form button:hover {
    background-color: #0056b3;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.popup-actions a {
    margin-right: 10px;
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}
.popup-actions a:hover {
    text-decoration: underline;
}

.popup-like {
    display: flex;
    align-items: center;
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 5px;
    font-size: 16px;
    color: #e53935; /* ハートの色 */
}

.like-button.liked .fa-heart {
    font-weight: 900; /* FontAwesomeの塗りつぶしアイコンはfont-weightで指定 */
}

.like-count {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}


/* --- モーダルのスタイル --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 15px;
    box-sizing: border-box;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-content h3 {
    margin-top: 0;
    text-align: center;
}
.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}
.modal-buttons button {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}
.modal-buttons button[type="submit"] {
    background-color: #007bff;
    color: white;
}
.modal-buttons button[type="button"] {
    background-color: #6c757d;
    color: white;
}

/* --- セグメントコントロールのスタイル --- */
.segment-label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}
.segment-control {
    display: flex;
    border: 1px solid #007bff;
    border-radius: 4px;
    overflow: hidden;
    flex-wrap: wrap;
}
.segment-control button {
    flex: 1;
    padding: 8px 5px;
    background-color: #ffffff;
    color: #007bff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    border-left: 1px solid #dee2e6;
    min-width: 50px;
}
.segment-control button:first-child {
    border-left: none;
}
.segment-control button.active {
    background-color: #007bff;
    color: white;
}
.segment-control button:not(.active):hover {
    background-color: #e9ecef;
}
.modal-content .segment-control button {
     padding: 10px 5px;
}

/* 必須項目のエラー表示 */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* 最近の投稿リスト */
.recent-posts-title {
    font-size: 1.1em;
    color: #343a40;
    border-bottom: 2px solid #f0f0f0;
    margin-top: -8px;
    padding-bottom: 0.5em;
    margin-bottom: 0.8em;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.post-list li {
    padding: 12px 10px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    position: relative;
    display: flex; 
    justify-content: space-between;
    align-items: center;
}

.post-list li:hover {
    background-color: #f9f9f9;
}

.post-list .post-name {
    font-weight: 500;
    color: #333;
}

/* サブスク限定投稿のスタイル */
.post-list li.locked {
    cursor: not-allowed;
    color: #ccc;
    overflow: hidden;
}

.post-list li.locked .post-name {
    filter: blur(3px);
    user-select: none;
}

.post-list li.locked::after {
    content: '🔒 サブスク限定';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(1px);
    font-weight: bold;
    color: #555;
    z-index: 2;
}

/* 認証ボタン */
.subtitle {
    font-size: 11.5px;
    color: #888;
    margin-top: -20px;
    margin-bottom: 25px;
    text-align: left;
}

.auth-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-button {
    flex: 1;
    padding: 10px;
    margin-top: -20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    white-space: nowrap; 
}

.auth-button.signup {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}
.auth-button.signup:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.auth-button.login {
    background-color: #ffffff;
    border-color: #9acbff;
    color: #007bff;
}
.auth-button.login:hover {
    background-color: #f8f9fa;
}
.auth-button.subscribe {
    background-color: #ffa200;
    border-color: #000000;
    color: #fff9f9;
    margin-top: -20px;
}
.auth-button.subscribe:hover {
    background-color: #dba400;
    border-color: #d39e00;
}


/* --- Googleマップ関連のUI --- */

/* 中央の十字線 */
#center-crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    font-weight: bold;
    color: #333;
    pointer-events: none;
    z-index: 4000;
    display: none;
    text-shadow: 0 0 5px white, 0 0 5px white, 0 0 5px white;
}

/* 位置調整ガイド用のトースト */
#adjust-toast {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    text-align: center;
    white-space: nowrap;
}

/* ピン固定・キャンセルボタン */
#pin-mode-controls {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: none;
    gap: 5px;
    flex-direction: row-reverse;
    touch-action: none;
}

#confirm-pin-button, #cancel-pin-mode-button {
    padding: 10px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
}

#confirm-pin-button {
    background-color: #3173ba;
}
#confirm-pin-button:hover {
    background-color: #0056b3;
}

#cancel-pin-mode-button {
    background-color: #6c757d;
}
#cancel-pin-mode-button:hover {
    background-color: #5a6268;
}

  #anonymous-pin-button {
    background-color: #f0ad4e; /* オレンジ系の色 */
    padding: 12px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
  }

  #anonymous-pin-button:hover {
    background-color: #ec971f;
  }


/* 検索窓と現在地ボタン */
#pac-input, #current-location-button {
    touch-action: none;
}
#pac-input::placeholder {
    text-align: right;
}
#pac-input {
    width: 130px; /* ← この行を追加してお好みの長さに調整 */
    touch-action: none;
}


/* =================================== */
/* --- モバイル表示用のスタイル --- */
/* (幅 <= 768px) のスタイル */
/* =================================== */
@media (max-width: 768px) {
    /* --- レイアウトの基本構造 --- */
    .header-mobile {
        display: flex;
    }

    .main-content{
      position: fixed;            /* レイヤーを固定 */
      top: 50px;                  /* ヘッダー分 */
      left: 0;
      right: 0;

      /* ▼ ここで “下端＝フッター上端” を保証 */
      bottom: calc(
          var(--footer-hint-height, 30px)   /* #mobile-hint の動的高さ */
          + env(safe-area-inset-bottom)      /* iOS ホームバー対策 */
      );

      /* ↑↑↑ これを使うので高さは自動にする ↓↓↓ */
      height: auto !important;    /* 旧 height を無効化 */

      display: flex;
      flex-direction: column;
    }

    /* (1) カラム全体：高さと基本設定 */
    .left-column {
        touch-action: none; /* ヘッダー上でのピンチズームを無効化 */
        position: fixed;
        top: 0;
        left: -350px;
        width: 350px;
        max-width: 85%;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        z-index: 10001;
        transition: left 0.2s ease;

        /* Flex 基盤（上：ロゴ類／中央：最近の投稿／下：リンク集） */
        display: flex;
        flex-direction: column;

        /* ↓↓↓ ここが“突き抜け”防止の核心 ↓↓↓ */
        bottom: calc(
            var(--footer-hint-height, 30px)   /* #mobile‑hint の高さ */
            + env(safe-area-inset-bottom)      /* iOS ホームバー安全域 */
        );
        height: auto !important; /*[!important←最重要絶対消すな！]*/
    } 

    /* (2) スクロールエリア：上下固定エリアの「間」を埋める役割 */
    .left-column-scrollable-area {
        flex-grow: 1; /* 親(left-column)の残りの高さを全て埋める */
        display: flex;
        flex-direction: column;
        min-height: 0;    /* Flexboxで縮小できるようにするためのおまじない */
        overflow: hidden; /* このエリア自体はスクロールさせない */
    }

    /* (3) 中央（最近の投稿）：このエリアだけをスクロールさせる */
    .left-column-middle {
        flex-grow: 1;         /* (2)のエリアの残りの高さを全て埋める */
        overflow-y: auto;     /* 内容がはみ出たら、縦方向にスクロールさせる */
        -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロールを有効化 */
        padding-bottom: 20px; /* スクロールした一番下に少し余白を作る */
    }

    /* (4) 下部（リンク集）：固定し、iPhoneのバーも避ける */
    .left-column-bottom {
        /* ★重要：カラム全体の高さを固定するために必須です */
        flex-shrink: 0;

        /* ▼▼▼ ここから2段組にするための設定 ▼▼▼ */
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2つの均等なカラムを作成 */
        gap: 10px 20px; /* 行(上下)と列(左右)の間の隙間 */
        /* ▲▲▲ ここまで2段組にするための設定 ▲▲▲ */
        
        padding: 20px 25px; /* 内側の余白 */
        
        margin-bottom: -30px;
        /* ★重要：iPhone等のホームバーでリンクが隠れるのを防ぎます */
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .left-column.open {
        left: 0; 
    }

    /* メニュー展開時の背景オーバーレイ */
    .overlay-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        display: none;
        z-index: 10000;
    }

    .overlay-mobile.active {
        display: block;
    }

    /* --- モバイル用UI要素 --- */
    #mobile-hint {
        margin: 0 auto 0.1px;    /* ★変更：上下左右の余白と中央揃え */
        position: fixed;
        bottom: -3px;
        width: 100%;
        background: rgba(255,255,255,0.9);
        color: #333;
        font-size: 13px;
        text-align: center;
        padding: 0px 0;
        border-top: 0.3px solid #000000;
        z-index: 1500;
        display: block;
        touch-action: none;
    }

    #mobile-report-overlay {
        position: fixed; 
        inset: 0;
        background: #fff;
        overflow-y: auto;
        z-index: 2000;
        padding: 1rem;
        box-sizing: border-box;
        touch-action: pan-y;
        bottom: -2px;

    }

    /* Google Maps InfoWindowのピンチズームを根本的に無効化 */
    .gm-style-iw-c, .gm-style-iw-d {
        touch-action: pan-y !important;
    }

    #mobile-report-overlay.hidden { display: none; }

    .mobile-report-inner {
        max-width: 640px;
        margin: 0 auto;
        padding: 1rem 1rem 3rem;
    }
    .mobile-title   { text-align: center; margin-bottom: .8rem; }

    #mobile-report-form label,
    #mobile-report-form .segment-label {
        display: block;
        font-size: 0.95rem;
        margin-top: .8rem;
        font-weight: 600;
        color: #495057;
    }
    #mobile-report-form input[type="text"],
    #mobile-report-form input[type="date"],
    #mobile-report-form select,
    #mobile-report-form textarea {
        width: 100%;
        padding: .5rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 16px;
        box-sizing: border-box;
        margin-top: .3rem;
    }
    #mobile-report-form textarea { resize: vertical; }

    .primary-btn, .secondary-btn {
        width: 100%;
        padding: .8rem;
        margin-top: 1.2rem;
        border: none;
        border-radius: 4px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
    }
    .primary-btn   { background: #007bff; color: #fff; }
    .secondary-btn { background: #6c757d; color: #fff; }

    #close-menu-button {
        position: fixed;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(5px);
        color: #333;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 50%;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10001;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }
    #close-menu-button.visible {
        opacity: 1;
        transform: translateY(-50%) scale(1);
        pointer-events: auto;
    }
}


/* =================================== */
/* --- PC表示用のスタイル --- */
/* (幅 > 768px) のスタイル */
/* =================================== */
@media (min-width: 769px) {
    body {
        display: flex;
    }
    .header-pc {
        display: flex;
    }
    .main-content {
        display: flex;
        flex-direction: column;
    }
    .page-wrapper {
        display: flex;
        flex-grow: 1;
    }
    .left-column {
        display: flex;
    }
    .header-mobile, #mobile-hint, #mobile-report-overlay, .overlay-mobile, #close-menu-button {
        display: none !important;
    }
}

/* まず、PCを含む全てのデバイス向けの基本スタイルを定義 */
.left-column,
.main-content {
    height: 100vh;
}

/* bodyに 'is-ipad' クラスが付いている場合（iPad）のみ、
   高さをiOS向けの設定で上書きする
*/
body.is-ipad .left-column,
body.is-ipad .main-content {
    height: -webkit-fill-available;
}

/* 入力欄と消去ボタンを横並びにするためのコンテナ */
.input-with-clear {
    position: relative; /* clear-button の基準点とする */
    display: flex; /* 横並びにする */
    align-items: center; /* 縦方向中央揃え */
}


/* 消去ボタンのスタイル */
.clear-button {
    position: absolute;
    right: 8px; /* 右端から少し内側に配置 */
    top: 50%; /* 上下中央に配置 */
    transform: translateY(-50%);
    background: none; /* 背景を透明に */
    color: #888; /* 薄いグレーに */
    border: none;
    border-radius: 50%;
    width: 24px; /* 少し大きく */
    height: 24px; /* 少し大きく */
    font-size: 16px; /* フォントサイズも少し大きく */
    font-weight: bold;
    line-height: 20px; /* 文字を中央に */
    text-align: center;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0; /* パディングをなくす */
}

.clear-button:hover {
    opacity: 1;
    color: #333; /* ホバー時にもう少し濃いグレーに */
    background-color: #f0f0f0; /* ホバー時に薄い背景色 */
}

/* 【修正後】セレクタを input[type="text"] に変更します */
.input-with-clear input[type="text"] {
    padding-right: 30px; /* ボタン分の右パディングを追加 */
}

/* =================================== */
/* --- ★初回案内モーダルのスタイル --- */
/* =================================== */
.modal-overlay#intro-modal {
    z-index: 5000; /* 他の要素より手前に表示 */
}

.intro-modal-content {
    background: white;
    padding: 35px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 90%;
    width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    /* アニメーション */
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes double-tap {
  /* アニメーション開始時、20%, 40%, 終了時は元の位置 */
  0%, 20%, 40%, 100% {
    transform: translateY(0);
  }
  /* 1回目のタップ（下に少し動く） */
  10% {
    transform: translateY(8px);
  }
  /* 2回目のタップ（下に少し動く） */
  30% {
    transform: translateY(8px);
  }
}

.intro-modal-content .fa-hand-pointer {
    color: #3772ff;
    font-size: 48px;
    margin-bottom: 10px;
    /* アニメーションを適用 */
    animation: double-tap 2.5s ease-in-out infinite;
}


.intro-modal-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.intro-modal-content p {
    font-size: 15px;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

#close-intro-modal-button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 25px;
    margin-top: 15px;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.2s;
}

#close-intro-modal-button:hover {
    background-color: #0056b3;
}

 #map-notification-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* マップや他の要素より手前に表示 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .map-notification {
    padding: 12px 24px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease-in-out;
  }

  .map-notification.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* Flaskのflashカテゴリ名と連携 */
  .map-notification.success {
    background-color: #28a745; /* 緑 */
  }
  .map-notification.danger {
    background-color: #dc3545; /* 赤 */
  }
  .map-notification.info {
    background-color: #17a2b8; /* 青 */
  }
  .map-notification.warning {
    background-color: #ffc107; /* 黄 */
    color: #333;
  }
