/* ローディング表示 */
#loading {
    position: fixed;
    width: 100%;
    /* ヘッダー部分（既存店登録 開発/本番）を除いた領域だけをマスク */
    top: 112px; /* ヘッダーの高さ（16px + 6px*2 = 28px）+ ナビゲーションバーの高さ（84px） */
    height: calc(100% - 112px);
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ローディングコンテナ */
.loading-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 300px;
}

/* ローディングスピナー */
.loading-spinner {
    margin-bottom: 1rem;
}

/* スピナーアニメーション */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ローディングテキスト */
.loading-text {
    margin-bottom: 1.5rem;
    font-weight: bold;
}

/* 進捗バーコンテナ */
.progress-container {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

/* 進捗バー */
.progress-bar {
    height: 100%;
    background-color: #4f46e5; /* インディゴカラー */
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

/* 進捗テキスト */
.progress-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* 進捗状況 */
.progress-status {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* コントロール領域のスタイル */
#putTenantExistingShop #controls {
    margin: 50px;
    line-height: 1.3em;
}

#putTenantExistingShop #control input[type="text"] {
    margin: 0 0.5em;
    width: 30em;
}

/* 既存店登録フォームのスタイル */
#putTenantExistingShop #registExistingShop {
    margin: 50px;
}

/* サジェスト候補リストのスタイル */
#suggestions {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    width: 320px;
    border-radius: 0.375rem;
}

#suggestions li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

#suggestions li:hover {
    background-color: #f5f5f5;
}

/* 地図のスタイル */
#map {
    height: 800px;
    width: 100%;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 結果出力領域のスタイル */
#output, #result {
    margin-top: 20px;
}

/* チェックボックスフォームのスタイル */
#registExistingShop .flex {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

#registExistingShop .flex:hover {
    background-color: #f9fafb;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #putTenantExistingShop #control input[type="text"] {
        width: 100%;
        margin: 0.5em 0;
    }
    
    #map {
        height: 500px;
    }
    
    #putTenantExistingShop #registExistingShop {
        margin: 20px;
    }
}