/* A-Frameコンテナ */
#streetview-marker-edit-container {
    position: relative;
    display: flex;
}

/* マーカー編集オーバーレイのスタイル */
#streetview-marker-edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* viewport 幅に合わせる */
    height: 100vh; /* viewport 高さに合わせる */
    background-color: rgba(0, 0, 0, 0.5); /* 背景に半透明の黒 */
    display: none; /* コンテンツを中央揃えにする */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* 高い優先度 */
}

/* 編集フォームのスタイル */
#streetview-marker-edit-form {
    width: 90vw; /* スマホ画面横幅の90%に調整 */
    max-width: 450px; /* 最大幅を設定（デバイスによる過剰な横幅を防止） */
    max-height: 90vh; /* 高さの上限を viewport 高さの90% に設定 */
    background-color: #fff; /* 白背景 */
    padding: 20px; /* 内側の余白 */
    border-radius: 8px; /* コーナーを丸くする */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 柔らかいシャドウ */
    overflow-y: auto; /* 縦方向のスクロールを許可（必要に応じてスクロール） */
    overflow-x: hidden; /* 横スクロールバーを非表示に設定 */
}

/* スクロールバーのスタイル */
#streetview-marker-edit-form::-webkit-scrollbar {
    width: 6px; /* スクロールバーの幅 */
}

#streetview-marker-edit-form::-webkit-scrollbar-thumb {
    background: #727272; /* スクロールバーの色 */
    border-radius: 4px; /* スクロールバーの角丸 */
}

#streetview-marker-edit-form::-webkit-scrollbar-track {
    background: #f0f0f0; /* スクロールトラックの色 */
}

/* スクロールのみによる体感向上: 親フォームが移動可能 */
#streetview-marker-edit-form:focus {
    outline: none;  /* 必要あればform-toggle */
}

/* テキストと画像の編集セクションの調整 */
.streetview-marker-edit-section {
    margin-bottom: 20px; /* 各セクション間のスペース */
}

/* セクションタイトル */
.streetview-marker-edit-section h4 {
    font-size: 18px;
    margin-bottom: 10px; /* タイトルと入力欄の余白 */
    color: #333; /* ダークグレーの文字色 */
}

/* 入力ボックスデザイン */
.streetview-marker-edit-section input[type="text"],
.streetview-marker-edit-section input[type="url"],
#address-input {
    width: 95%;
    padding: 10px; /* 内側余白 */
    font-size: 16px; /* テキストサイズ */
    border: none; /* 枠線を削除 */
    outline: none; /* フォーカスリングを非表示 */
    border: 1px solid #ddd; /* 初期状態の薄いグレーの下線 */
    border-radius: 10px; /* 角丸デザイン */
    background-color: transparent; /* 背景を透明に */
    transition: border-color 0.3s, box-shadow 0.3s; /* フォーカス時のアニメーション */
}

/* フォーカス時の入力ボックスデザイン */
.streetview-marker-edit-section input[type="text"]:focus,
.streetview-marker-edit-section input[type="url"]:focus,
#address-input:focus {
    border: 2px solid #007BFF; /* フォーカス時に青い下線 */
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2); /* フォーカス時に柔らかい影 */
}

/* プレースホルダーのデザイン */
.streetview-marker-edit-section input[type="text"]::placeholder,
.streetview-marker-edit-section input[type="url"]::placeholder,
#address-input::placeholder {
    color: #aaa; /* 薄いグレーの文字色 */
    font-size: 14px;
}


/* A-Frameコンテナ */
#streetview-marker-image-container {
    margin-top: 10px; /* 上部の余白 */
    position: relative;
    width: 100%;
    height: 100%;
    /* background: #000; */
    display: none;
}

/* A-Frame sceneタグ (360度画像のプレビュー表示する「幅」と「高さ」の設定) */
#streetview-marker-edit-a-scene {
    width: 100vw !important;
    height: 50vh !important;
    display: flex;
}


/* 画像リセットボタン */
#streetview-marker-file-clear-btn {
    width: 100%;
    margin-top: 20px; /* テキストボックスとの間隔 */
    background-color: #ffffff; /* 白背景 */
    border: 1px solid #ccc; /* 未ホバー時にグレーの枠線 */
    border-radius: 10px; /* 適度な丸みを追加 */
    color: #585858; /* 赤色文字 */
    padding: 10px 20px; /* ボタン内側の余白 */
    font-size: 14px; /* テキストサイズ */
    cursor: pointer; /* ポインタカーソル表示 */
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* アニメーション */
}

#streetview-marker-file-clear-btn:hover {
    background-color: #ececec; /* 赤白背景 */
    border-color: #7c7c7c; /* ホバー時に青い枠線を表示 */
    color: #ff0000; /* ホバー時に青色文字に変更 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ホバー時に柔らかい影を追加 */
}

#streetview-marker-file-clear-container p {
    font-size: 14px;
    color: gray;
}

/* ファイルドロップ領域のスタイル */
#streetview-marker-file-drop-zone {
    border: 2px dashed #aaa;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    color: #555;
    margin: 20px;
}

/* ファイル入力ボタンのスタイル */
#streetview-marker-file-input {
    margin: 20px;
    display: block;
}

#streetview-marker-file-info {
  width: 100%;             /* 親幅に合わせる */
  word-break: break-all;   /* 単語中でも折り返す */
  overflow-wrap: break-word; /* 長い単語やURLを折り返す */
  white-space: normal;     /* 折り返しを有効にする */
}

/* 画像プレビューコンテナ */
#streetview-marker-image-preview-container {
    display: none; /* デフォルト非表示 */
    justify-content: center;
    text-align: center;
    align-items: center;
    border: 1px solid #ccc; /* グレーの枠線 */
    border-radius: 4px; /* 角丸 */
    padding: 10px; /* 内側余白 */
    background-color: #fff; /* 白背景 */
    margin-top: 10px; /* 上部の余白 */
}

/* 画像プレビュー */
#streetview-marker-image-preview {
    max-width: 95%; /* 最大幅を制限 */
    max-height: 100px; /* 高さ制限 */
    height: auto; /* 高さを自動調整 */
    margin-top: 10px;
    object-fit: contain; /* プレビューで画像を収める */
}


/* ボタンコンテナ */
.streetview-marker-edit-buttons {
    display: flex; /* フレックスボックスに設定 */
    justify-content: flex-end; /* ボタンを右寄せ */
    gap: 10px; /* ボタン間にスペースを追加 */
    margin-top: 20px;
}


input[type="text"], input[type="url"], select {
    width: 100%; /* 入力欄を幅いっぱいに広げる */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ボタン共通デザイン */
button {
    padding: 10px 20px; /* 内側余白 */
    font-size: 16px; /* テキストサイズ */
    border: none; /* 枠線を削除 */
    border-radius: 20px; /* 丸みを持たせたデザイン */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* アニメーション */
}

/* 保存ボタン */
#streetview-marker-save-btn {
    background-color: #ffffff; /* 白背景 */
    border: 1px solid #969696; /* 未ホバー時にグレーの枠線 */
    border-radius: 50px; /* 適度な丸みを追加 */
    color: #54a5fc; /* 青色文字 */
    padding: 10px 20px; /* ボタン内側の余白 */
    font-size: 16px; /* テキストサイズ */
    cursor: pointer; /* ポインタカーソル表示 */
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* アニメーション */
}

#streetview-marker-save-btn:hover {
    background-color: #cfe0ff; /* 白背景 */
    border-color: #025aff; /* ホバー時に青い枠線を表示 */
    color: #025aff; /* ホバー時に青色文字に変更 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ホバー時に柔らかい影を追加 */
}
/* キャンセルボタン */
#streetview-marker-cancel-btn {
    background-color: #ffffff; /* 白背景 */
    border: 1px solid #969696; /* 未ホバー時にグレーの枠線 */
    border-radius: 50px; /* 適度な丸みを追加 */
    color: #f85858; /* 赤色文字 */
    padding: 10px 20px; /* ボタン内側の余白 */
    font-size: 16px; /* テキストサイズ */
    cursor: pointer; /* ポインタカーソル表示 */
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* アニメーション */
}

#streetview-marker-cancel-btn:hover {
    background-color: #fddfdf; /* 赤白背景 */
    border-color: #ff0202; /* ホバー時に青い枠線を表示 */
    color: #ff0202; /* ホバー時に青色文字に変更 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ホバー時に柔らかい影を追加 */
}

/* メディアクエリ：画面幅の狭いデバイス用調整 */
@media screen and (max-width: 600px) {
    #streetview-marker-edit-form {
        width: 95vw; /* さらに画面幅に近づける */
        max-width: none; /* 最大幅制限を解除 */
        padding: 15px; /* 内側余白を少し減らす */
    }

    .streetview-marker-edit-buttons button {
        padding: 8px 12px; /* ボタンを少しコンパクトにする */
    }

    #streetview-marker-edit-form h3 {
        font-size: 18px; /* タイトルをやや小さく */
    }

    #streetview-marker-file-drop-zone,
    #streetview-marker-file-info {
        display: none; /* 非表示 */
    }
}