#photoModal {
    display: none; /* 初期状態で非表示 */
    position: fixed; /* 固定表示 */
    top: 50%; /* 画面中央に表示 */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050; /* Bootstrapのモーダルと同じz-index */
    width: 90%; /* スマートフォンでは画面幅の90%を使用 */
    max-width: 500px; /* 最大幅を500pxに設定 */
    height: auto; /* 高さを自動調整 */
    max-height: 90%; /* 最大高さを画面の90%に設定 */
    overflow-y: auto; /* 縦方向のスクロールを有効にする */
    background-color: white; /* 背景色を白に設定 */
    border-radius: 5px; /* 角を少し丸める */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* 影をつける */
    padding: 20px; /* 内側の余白を追加 */
}
#messageModal {
    display: none; /* 初期状態で非表示 */
    position: fixed; /* 固定表示 */
    top: 50%; /* 画面中央に表示 */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050; /* Bootstrapのモーダルと同じz-index */
    width: 90%; /* スマートフォンでは画面幅の90%を使用 */
    max-width: 500px; /* 最大幅を500pxに設定 */
    height: auto; /* 高さを自動調整 */
    max-height: 90%; /* 最大高さを画面の90%に設定 */
    overflow-y: auto; /* 縦方向のスクロールを有効にする */
    background-color: white; /* 背景色を白に設定 */
    border-radius: 5px; /* 角を少し丸める */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* 影をつける */
    padding: 20px; /* 内側の余白を追加 */
}
/* モーダルの背景色と半透明度 */
.modal {
    background-color: rgba(255, 255, 255, 0.95); /* 半透明の白 */
}

/* モーダルのヘッダーとボディのスタイリング */
.modal-header,
.modal-body {
    padding: 15px;
    text-align: center;
}

.modal-title {
    font-size: 24px;
    color: #333; /* ダークグレーのテキスト */
    font-weight: bold;
}

/* クローズボタンのスタイリング */
.btn-close {
    color: #333; /* ダークグレーのクローズアイコン */
}

/* フォームのスタイリング */
#photoForm .form-control {
    border-radius: 25px;
    border: 2px solid #ddd; /* より淡い灰色のボーダー */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#photoForm button[type=submit] {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    text-align: center;

}

#photoForm button[type=submit]:hover {
    background-color: #0056b3;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    display: block; /* ボタンをブロック要素にする */
    margin: 0 auto; /* 自動的にマージンを計算して中央寄せ */
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}