/* ==============================
   ✅ カードデザイン（影をオレンジ）
   ============================== */
.card {
    width: 280px;
    padding: 16px;
    background: #fff;
    box-shadow: 2px 4px 10px rgba(255, 152, 0, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 4px 8px 16px rgba(255, 152, 0, 0.6);
}

/* ✅ 現在のデータ枠 */
.current-year {
    background: white;
    box-shadow: 2px 4px 10px rgba(255, 152, 0, 0.4);
    border: 3px solid #FF9800;
    transform: scale(1.1);
}

/* ==============================
   ✅ ナビゲーションバー
   ============================== */
.nav-wrapper {
    box-shadow: 0px 4px 10px rgba(255, 152, 0, 0.4);
}

/* サブタイトルのスタイル */
.brand-logo .sub-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    margin-top: 4px;
}

/* ==============================
   ✅ ボタンデザイン（オレンジ統一）
   ============================== */
.btn {
    background-color: #FF9800;
    box-shadow: 2px 2px 8px rgba(255, 152, 0, 0.4);
    color: white;
    font-weight: bold;
}

.btn:hover {
    background-color: #FB8C00;
    box-shadow: 4px 4px 12px rgba(255, 152, 0, 0.6);
}

/* ✅ ボタンの処理中（無効化時）の色を統一 */
.btn:disabled {
    background-color: #FF9800 !important;
    opacity: 0.7;
}

/* ✅ 追加のボタンデザイン */
.btn-success {
    background-color: #FF9800;
    font-weight: bold;
}

.btn-secondary {
    background-color: #6c757d;
}

/* ✅ ボタンの間隔を調整 */
.button-container {
    margin-top: 20px;
}


/* ✅ すべてのボタンをオレンジに統一 */
.btn-primary {
    background-color: #FF9800 !important;
    border-color: #FF9800 !important;
    color: white !important;
    box-shadow: 2px 2px 8px rgba(255, 152, 0, 0.4);
}

/* ✅ ホバー時もオレンジ */
.btn-primary:hover {
    background-color: #FB8C00 !important;
    border-color: #FB8C00 !important;
    box-shadow: 4px 4px 12px rgba(255, 152, 0, 0.6);
}

/* ✅ ボタンが無効化されたときもオレンジ */
.btn-primary:disabled {
    background-color: #FF9800 !important;
    border-color: #FF9800 !important;
    opacity: 0.7;
}

/* ✅ `btn-secondary` の背景・ボーダーをグレーに統一 */
.btn-secondary {
    background-color: #6c757d !important;
    /* グレー */
    border-color: #6c757d !important;
    color: white !important;
    box-shadow: 2px 2px 8px rgba(108, 117, 125, 0.4);
    /* グレーの影 */
}

/* ✅ マウスオーバー時の色もグレー */
.btn-secondary:hover {
    background-color: #5a6268 !important;
    /* 少し濃いグレー */
    border-color: #5a6268 !important;
    box-shadow: 4px 4px 12px rgba(108, 117, 125, 0.6);
    /* 濃いグレーの影 */
}

/* ✅ ボタンが無効化されたとき（`disabled`）の色もグレー */
.btn-secondary:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    opacity: 0.6;
}


/* ==============================
   ✅ ユーザー関連
   ============================== */
.user-filter-container {
    border: 2px solid #FF9800;
    background-color: #fffaf0;
    box-shadow: 2px 4px 10px rgba(255, 152, 0, 0.3);
}

/* ✅ チェックボックスのラベル配置 */
.input-field label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ✅ チェックボックスを適切なサイズに */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
}


/* ✅ ユーザー選択の枠デザイン */
.user-filter-container {
    position: relative;
    border: 2px solid #ddd;
    /* ✅ 枠線 */
    border-radius: 8px;
    /* ✅ 角を丸く */

    padding: 16px;
    padding-top: 32px;
    /* ✅ 上部に余白を追加（タイトル用） */
}

/* ✅ スタッフフィルタのタイトル（枠の上に配置） */
.user-filter-title {
    position: absolute;
    top: -12px;
    /* ✅ 枠の上にかぶせる */
    left: 16px;
    background-color: #fffaf0;
    /* ✅ 背景色でかぶせる */
    padding: 0 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    /* ✅ アイコンとの間隔 */
}

/* ✅ マテリアルアイコンのサイズ調整 */
.user-filter-title i {
    font-size: 18px;
    color: #555;
}

/* ✅ チェックボックスコンテナを横並び */
.user-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

/* ✅ すべてのチェックボックスとラベルを揃える */
.user-checkbox-container label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    /* ✅ フォントサイズを統一 */
    line-height: 1;
    /* ✅ 高さを詰める */
    color: #444;
    cursor: pointer;
    box-sizing: border-box;
    /* ✅ サイズ崩れを防ぐ */
}

/* ✅ チェックボックス自体のサイズ調整 */
.user-checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    /* ✅ 余計なマージンを削除 */
}

/* ✅ チェックボックス選択時のスタイル */
.user-checkbox-container input[type="checkbox"]:checked+span::before {
    background-color: #FF9800 !important;
    /* ✅ オレンジ */
}

/* ✅ マテリアルデザインのチェックボックス（filled-in 用） */
.user-checkbox-container .filled-in:checked+span::after {
    border: 2px solid #FF9800 !important;
    /* ✅ オレンジ枠 */
    background-color: #FF9800 !important;
    /* ✅ オレンジ */
}


.paymentCheckbox {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
}

.paymentCheckboxAll {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: inline-block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
}

#userSummaryContainer {
    display: flex;
    flex-wrap: wrap;
    /* ✅ カードが増えたら折り返す */
    gap: 10px;
    /* ✅ カード間の間隔 */
}

.user-summary-card {
    flex: 1;
    min-width: 250px;
    /* ✅ カードが小さくなりすぎないようにする */
    max-width: 300px;
}


.review-url a {
    word-break: break-all;
    /* 長い単語を折り返し */
    display: inline-block;
    /* 幅を超えたら折り返す */
    max-width: 100%;
    /* 横幅制限 */
}

/* フォームの全体調整 */
.review-form {
    max-width: 600px;
    /* フォームの幅を制限 */
    margin: auto;
    /* 中央配置 */
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}

/* 各項目の見た目 */
.review-form p {
    margin-bottom: 10px;
    /* 過剰な余白を削減 */
    line-height: 1.6;
    /* 読みやすい行間 */
}

/* URLのスタイル */
.review-url a {
    word-break: break-word;
    /* 長いURLを適切に折り返し */
    color: #007bff;
    /* リンク色を見やすく */
    text-decoration: none;
}

.review-url a:hover {
    text-decoration: underline;
}

/* 画像のスタイル */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* 画像の間隔を統一 */
    justify-content: center;
    /* 画像を中央配置 */
}

.review-image {
    max-width: 200px;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* ボタンを横並びにする */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    /* ボタンを中央配置 */
    margin-top: 15px;
}

.review-label {
    font-weight: bold;
    /* 太字 */
    color: #333;
    /* 濃いめの文字色で視認性アップ */
    margin-bottom: 5px;
    /* 下のテキストと間隔をとる */
    display: block;
    /* 見出しをブロック化して統一 */
}


/* ==============================
   ✅ テーブル
   ============================== */
.report-table th {
    background-color: #FF9800;
    color: white;
    box-shadow: inset 0px -3px 5px rgba(255, 152, 0, 0.3);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ==============================
   ✅ フォーム要素
   ============================== */
/* ✅ フォーカス時の下線をオレンジ */
input:focus, textarea:focus {
    border-bottom: 2px solid #FF9800 !important;
    box-shadow: 0 1px 0 0 #FF9800 !important;
}

input:focus+label, textarea:focus+label {
    color: #FF9800 !important;
}

/* ==============================
   ✅ ドロップダウンメニュー
   ============================== */
.dropdown-content li a {
    color: #FF9800 !important;
    font-weight: bold;
}

.dropdown-content li a:hover {
    background-color: rgba(255, 152, 0, 0.1);
    color: #FF9800 !important;
}

/* ==============================
   ✅ 口コミ詳細ページ
   ============================== */
.review-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.review-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.store-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.review-url a {
    color: #007bff;
    text-decoration: none;
}

.review-url a:hover {
    text-decoration: underline;
}

.review-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.review-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* ==============================
   ✅ 画像ギャラリー
   ============================== */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.review-image {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* 画像がない時のメッセージ */
.no-image {
    font-size: 14px;
    color: #999;
    text-align: center;
}

/* 戻るボタン */
.return-btn {
    display: block;
    width: 120px;
    margin: 20px auto 0;
    text-align: center;
}

/* ✅ 画像サイズの調整 */
.review-image {
    max-width: 150px;
    /* 以前の200pxを小さめに */
    height: auto;
    border-radius: 5px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}


/* ==============================
   ✅ ドラッグ＆ドロップエリア
   ============================== */
.drag-drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s, border-color 0.3s;
}

.drag-drop-area.drag-over {
    border-color: #007bff;
    background-color: #eef6ff;
}

.file-input {
    display: none;
}

.preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-area img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* ==============================
   ✅ モーダル
   ============================== */

/* モーダルの背景（黒い部分） */
.modal-overlay {
    display: none;
    /* 最初は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* モーダルの中身 */
.modal-content {
    background: #fff;
    width: 500px;
    max-width: 90%;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

/* 閉じるボタン */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* ボタンのデザイン */
/* 口コミ案内ボタンをオレンジ系に */
.btn-info {
    background-color: #FF8C00;
    /* ダークオレンジ */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    line-height: 1;       /* アイコンは詰める */

}

.btn-info:hover {
    background-color: #FFA500;
    /* 明るめのオレンジに */
    opacity: 0.9;
}


.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    line-height: 1;       /* アイコンは詰める */

}

/* ボタンにちょっとだけhoverアクション追加 */
.btn-info:hover, .btn-secondary:hover {
    opacity: 0.8;
}

/* ==============================
   ✅ 確認事項
   ============================== */

.notice-box {
    border: 2px solid #FF8C00;
    background-color: #FFF8E1;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 14px;
    /* 文字サイズを小さめに調整 */
    line-height: 1.5;
}

.notice-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #FF8C00;
    font-size: 16px;
    /* タイトルは少し大きめに */
}

.agreement-checkbox {
    margin-top: 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
    /* 全体と合わせる */
    color: #555;
}

.agreement-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    /* Material Designが影響してる場合、以下を追加 */
    appearance: checkbox;
    /* ブラウザ標準の見た目に戻す */
    -webkit-appearance: checkbox;
    position: relative;
    /* Materializeなどで消えた時用 */
    opacity: 1;
    /* 消えてる場合は強制表示 */
}

.button-group {
    display: flex;
    gap: 10px;
}

/* 投稿ボタンが無効のとき */
/* disabledのとき */
.btn-disabled,
.btn[disabled] {
    background-color: #ccc !important;
    color: #999 !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

/* ==============================
   ✅ 過去から選択
   ============================== */

   .store-list {
    max-width: 600px;
    margin: 0 auto;
  }

  .store-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
  }

  .store-item .btn {
    min-width: 160px;
    padding: 8px 12px;
    line-height: 1;       /* アイコンは詰める */
  }

  #storeSearch {
    display: block;
    margin: 30px auto 20px auto;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
    border: none;
    border-bottom: 2px solid #FFA500;
    outline: none;
  }

  #storeSearch::placeholder {
    color: #bbb;
  }

  #alluserSummaryContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 1em;
    justify-content: flex-start;
}

.payment-card {
    flex: 0 0 calc(20% - 16px); /* 5列 */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    background-color: #fff;
}

.payment-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #333;
}

.pending-group {
    border: 2px dashed #f0ad4e;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    background-color: #fff8e1;
}

.status-block {
    margin-bottom: 6px;
    padding: 6px;
    border-radius: 4px;
}

.status-approved {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-denied {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
/* ==============================
   ✅ モバイル用のサイズ調整
   ============================== */
@media (max-width: 768px) {
    .drag-drop-area {
        padding: 15px;
        font-size: 14px;
    }

    .preview-area img {
        max-width: 80px;
    }
}