/* 全体のリセットと基本スタイル */
/*1226時点のindex.htmlのmap-style.cssへのリック式 link href="./css/style?v=20251105.css" rel="stylesheet">  

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* 地図コンテナ */
#js-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* 地図は最下層に */
}

/* ウェルカム画面を前面に表示 */
.full-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f4f7; /* 背景色はお好みで調整 */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease;
}

.full-screen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* UIボタンの共通スタイル */
.ui-button {
    background-color: #4285F4;
    color: white;
    border: none;
    padding: 7px 10px;  /*10.2 17:00 10px 15pxを変更　*/
    margin: 3px;   /*10.2 17:00 15pxを変更　*/
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;  /*10.2 17:00 16pxを変　*/
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.ui-button:hover {
    background-color: #3367D6;
}

/* 新規追加：パネル開閉ボタンのスタイル */
.panel-toggle-button {
    position: absolute;
    top: 5px;   /* 10/1 17:30 10pxを変更 */
    left: 5px;  /* 10/1 17:30 10pxを変更  */
    z-index:  25; /* ★ 3 -> 25 に変更 */ 11/18 21:20
}

/* コントロールパネルのスタイル */
#control-panel {
    position: absolute;
    top: 45px; /* ボタンの下に配置  10/1 17:30 60pxを変更 1/4 22:30　45->100 */
    left: 5px;  /* 10/1 17:30 10pxを変更  */
    z-index: 20;  /* ★ 2 -> 20 に変更 */
    background-color: rgba(166, 166, 166, 0.9);  /* 1/4 255 255 255 を166に変更*/
    padding: 5px;  /* 10/1 17:30 10pxを変更  */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: raw ;  /* column */
    gap: 8px;
/*　以下の1、５、７行目はサイズ調整可能にするために追加　092016:40
    min-height: 150px; /* パネルの最小の高さ（これ以上小さくならない） */
    max-height: calc(100vh - 200px); /* パネルの最大の高さ（画面の高さ - 上からの距離 - 少し余白）70px->200px */
    overflow-y: auto; /* コンテンツがはみ出たら縦スクロール */
    -webkit-overflow-scrolling: touch; /* iOSでのスクロールをスムーズにする */  
    resize: vertical; /* ★ユーザーが縦方向のサイズをドラッグで変更できるようにする★ */
    overflow: auto; /* resizeプロパティを有効にするにはoverflowも必要 */
}

/* パネルの表示/非表示を制御 */
#control-panel.panel-hidden {
    transform: translateX(calc(-100% - 20px));
}

#control-panel.panel-visible {
    transform: translateX(0);
}

/* ドロップダウンメニューのスタイル */
.search-container {
    position: relative;
    display: block;
    margin-bottom: 10px;
}

.dropdown-menu {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.dropdown-menu.hidden {
    display: none;
}

.search-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.search-field label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.search-field select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}

#intro-screen .intro-content {
    overflow-y: auto; /* 縦方向のスクロールを有効にする */
    max-height: 80vh; /* 画面の高さの80%を最大値とし、それ以上はスクロールする */
    padding: 10px;
}

.marker-label-below {
  position: relative;
  transform: translate(0%, 20px); /* X: 中央、Y: 40px下に移動 */
  white-space: nowrap;
  font-size: 12px;
  font-weight: bold;
  color: #000000;
  padding: 2px;
}

/* ======================================= */
/* ウェルカム画面の視覚的改善スタイル */
/* ======================================= */

/* ウェルカム画面全体の配置を中央揃えに調整 */
#welcome-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* アイコンとタイトルを横並びにするコンテナ */
/* .welcome-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px; /* キャッチコピーとの間隔 */
} */

/* SVGアイコンのスタイル */
/* #bfa-icon {
    margin-right: 15px; /* タイトルとの間隔 */
    color: #4CAF50; /* アクセシビリティを意識した緑系 */
} */

/* キャッチコピーのフォントサイズと幅を調整 */
#welcome-screen p {
    font-size: 1.2rem;
    color: #555;
    max-width: 90%;
    margin-bottom: 30px;
}

/* ----- 弾むアニメーションの定義 ----- */

/* @keyframesでアニメーションの動きを定義 */
/* @keyframes bounce {
    /* 開始、終了、途中の安定した状態 */
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    /* 上に跳ねる瞬間 */
    40% {
        transform: translateY(-10px); 
    }
    /* わずかに沈む瞬間 */
    60% {
        transform: translateY(-5px); 
    }
} */

/* SVGアイコンにアニメーションを適用 */
/* .bounce-animation {
    animation: bounce 2s infinite ease-in-out; /* 2秒間隔で無限ループ */
} */

/* ★10/01 18:00 追加　Gemini提案コピペ　★　
  この追加分を有効化するため　上記の「 ウェルカム画面の視覚的改善スタイル」の #welcome-screen p*/　以外をコメント化
*/
/* 1. ヘッダー内の要素を横並び・中央揃えにする,h1の */
.welcome-header {
    display: flex; /* SVGとh1を横に並べる */
    align-items: center; /* 垂直方向の中央揃え (SVGとh1の高さ中央を合わせる) */
    justify-content: center; /* 水平方向の中央配置 */
    margin-bottom: 10px; /* キャッチコピーとの間隔 */
}
.welcome-header h1 {
    display: inline-block; /* ★h1を横並び可能にするための必須設定 */
    margin: 0;            /* h1の上下余白を消すための必須設定「デフォルトのマージンを確実に0にする」 */
　    /* ★追加（オプション）：行の高さを標準化し、余分なスペースを削る */
    line-height: 1.2; 
}
/* キャッチコピーh1の上に、ＳＶＧアイコン2個を横並びにする 10/2 22:00 */
/* ★親コンテナ: SVG行とh1を縦に並べる (デフォルトのブロック要素の動作) */
#welcome-header-container {
    display: flex;        /* Flexコンテナ化 */
    flex-direction: column; /* 要素を縦（上から下）に並べる */
    align-items: center;    /* 子要素を水平方向の中央に配置 */
    width: 100%;
    /* ここに必要に応じて上下のパディングなどを追加 */
}

/* ★SVGを横並びにするコンテナ: SVG 2つを中央で横に並べる */
.svg-row {
    display: flex;         /* Flexコンテナ化 */
    flex-direction: row;   /* 要素を横（左から右）に並べる */
    justify-content: center; /* 子要素（SVG）を水平方向の中央に配置 */
    align-items: center;     /* 子要素（SVG）を垂直方向の中央に配置 */
    width: 100%;           /* 幅を親コンテナいっぱいに広げる */
    margin-bottom: 10px;   /* h1との間に少し間隔を空ける */
}

/* ★h1の調整（中央揃えを確実にする） */
.welcome-header-h1 {
    text-align: center;
    margin: 0; /* h1のデフォルトマージンをリセット */
    padding: 0 10px; /* 必要に応じて左右にパディング */
}

/* ★SVGを囲むdivの調整 */
#svg-left-icon, #svg-right-icon {
    /* SVG間の間隔を調整 */
    margin: 0 15px; /* 左右に15pxの間隔を空ける */
    /* SVG自体のサイズ調整が必要な場合はここに記述 */
    width: 50px; /* 例 */
    height: 50px; /* 例 */
}


/* 2. SVGアイコンのサイズを縮小し、余白を調整する */
#bfa-icon {
    /* (1) 表示サイズを縮小: viewBox(250x250)の内容が50x50の枠内に収まる */
    width: 50px; 
    height: 50px;

    /* (2) h1テキストとの間に適切な間隔を空ける */
    margin-right: 15px; 
    
    /* (3) SVGの不要なベースラインの隙間を消す（保険） */
    display: inline-block; 
    /* ★追加　10.0119:40：ベースラインではなく、中央揃えを強制する　10.0119:40 */
    vertical-align: middle;
}

/* 3. アニメーションを定義（既に定義済みであれば不要） */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); } /* 5px上に移動 */
}
.bounce-animation {
    animation: bounce 2s infinite ease-in-out;
}
/* ======================================= */
/* カスタムボトムシート（モバイル情報パネル）のスタイル */
/* ======================================= */
/*CSSの修正案（#bottom-sheet 関連）*/
/*PDFのCSSをベースに、背景色の変更と項目名の太字化（ラベル対応）を行います 。*/

/* ボトムシート全体のスタイル修正 */
#bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80vh;
    /*1227 変更: マップの薄黄色より少し濃い目のパステルベージュで境界を明確にする＞スマホでは城に見えたので編子*/
    background: #fffacd !important; /*  lemonchiffon */ *
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2); /* 影を少し強めてパネル感を出す */
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-top-left-radius: 15px; /* 少し角を丸くして柔らかい印象に 1226 元は12px */
    border-top-right-radius: 15px;
}

/* 表示状態（画面下端に固定） */
#bottom-sheet.visible {
    transform: translateY(0); 
}

/* ヘッダーのレイアウト（タイトルと閉じるボタン） */
/* .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#sheet-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
} */

/* コンテンツエリアのスタイル */
/* 項目名（住所、バリアフリー情報、施設紹介など）を太字にするための設定 */
.info-label {
    font-weight: bold;
    color: #333333; /* */
    display: inline-block;
    margin-top: 8px;
    border-bottom: 1px solid #e0d5c1; /* 項目ごとに薄い区切り線 */
    width: 100%;
}

#sheet-content {
    line-height: 1.6;
    font-size: 0.9rem;
}

/* シート内のボタン（経路ボタンや誘導開始ボタン）のスタイル */
#sheet-content button {
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* 施設情報の画像や詳細テキストの調整 */
#sheet-content p {
    margin-bottom: 5px;
}
#sheet-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ======================================= */
/* モバイルウィンドウ ヘッダーレイアウト修正 */
/* ======================================= */

/* ======================================= */
/* モバイルウィンドウ ヘッダーレイアウト修正 (2段構造) */
/* ======================================= */
/* ======================================= */
/* モバイルウィンドウ ヘッダーレイアウト修正 (最終版: 2段構造) */
/* ======================================= */

/* ★ 1. メインヘッダーを縦並び（カラム）にする */
#sheet-header {
    display: flex;             
    flex-direction: column;    /* ★重要: 子要素（2行）を縦に積む */
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* ★ 2. 1行目（ボタン行）を横並びにして両端に配置 */
#sheet-top-row {
    display: flex;             
    justify-content: space-between; /* ★重要: 左端と右端に要素を配置 */
    align-items: center;       /* 垂直方向の中央揃え */
    width: 100%;               
    margin-bottom: 8px;        /* 施設名との間に間隔を空ける */
}

/* SNSボタンコンテナ */
#sns-buttons-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* 施設タイトル（h2）の設定 */
#sheet-title {
    width: 100%;               
    text-align: left;          /* 左寄せ */
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

/* 閉じるボタンのスタイル（視認性向上を含む） */
#close-sheet-btn {
    flex-shrink: 0;
    font-size: 0.9rem;
    padding: 5px 10px;
    background-color: #f0f0f0; 
    color: #333333;            /* 文字色を濃く */
    font-weight: bold;         
    border: 1px solid #aaaaaa;
    border-radius: 4px;        
    cursor: pointer;
}

