/* タイトル */
h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    margin-left: 70px;
    margin-right: 70px;
    border-left: 6px solid #0080f6;
    /* 青ライン */
    padding-left: 12px;
    text-align: center;
}

section {
    display: block;

}



/* メインビジュアル */
.main-visual {
    width: 100%;
    height: 105%;
    background-color: #fff500;
    overflow: hidden;
    /* はみ出し部分を隠す */
    position: relative;
    line-height: 0;
    /* 画像下の隙間を消す */
}

.main-visual img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* 少し上寄せ */
    display: block;
    margin: 0;
    padding-top: 30px;
    transform: scale(1.05);
    /* 必要に応じて微調整 */
}

/* PC（デスクトップ）用スタイル */
@media screen and (min-width: 1024px) {

    .main-visual img {
        width: 100%;
        /* ← 少し小さめに */
        height: auto;
        /* 縦横比を保持 */
        object-fit: contain;
    }

    section {
        margin: 0 auto;
    }
}



/* Info セクション */
.info-section {
    background-color: #ffffff;
    /* 白背景 */
    border-radius: 12px;
    padding: 20px 20px 10px;
    margin: 20px 20px;
    /* ←横にも余白をつける */
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* リスト */
.info-list {
    list-style: none;
    margin: 0;
    padding: 0;

}

/* 円形の背景 */
.section-left-top-circle {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background-color: #ff9900;
    /* 円の色 */
    border-radius: 50%;
    /* 円形にする */
    display: flex;
    /* 中央に配置 */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* PNG アイコン */
.section-left-top-circle .section-left-top-icon {
    width: 80%;
    /* 円内のサイズ */
    height: auto;
    /* 縦横比を維持 */
    display: block;
    transform: rotate(-20deg);
    /* 20度回転 */
    transform-origin: center center;
    /* 回転の中心を中央に */
}

.info-item {
    display: block;
    /* ←縦並びにする */
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

/* 日付 */
.info-date {
    display: block;
    color: #000000;
    font-size: 12px;
    margin-bottom: 3px;
    /* ←テキストとの間に余白 */
}

/* リンク */
.info-link {
    display: block;
    color: #0080f6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.info-link:hover {
    color: #005bb5;
    text-decoration: underline;
}

/* ==============================
   PC表示用スタイル
   ============================== */
@media (min-width: 1024px) {

    /* セクション全体を中央寄せ・広めに */
    .info-section {
        max-width: 1000px;
        /* 画面に合わせて少し広め */
        margin: 40px auto;
        /* 横中央寄せ */
        padding: 40px 60px 20px;
        /* 余白を増やす */
        border-radius: 16px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    /* 円形アイコンを少し大きく・位置も微調整 */
    .section-left-top-circle {
        top: -25px;
        left: -25px;
        width: 70px;
        height: 70px;
    }

    .section-left-top-circle .section-left-top-icon {
        width: 80%;
        transform: rotate(-15deg);
    }

    /* タイトル（例: Newsなど）を少し目立たせる */
    .info-title {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 20px;
        width: 50%;
        margin: 0 auto 20px;
    }

    /* リスト全体 */
    .info-list {
        margin-top: 10px;
    }

    /* 各お知らせアイテム */
    .info-item {
        padding: 16px 0;
        border-bottom: 1px solid #ddd;
    }

    /* 日付 */
    .info-date {
        font-size: 0.85rem;
        color: #555;
        margin-bottom: 4px;
    }

    /* リンクテキスト */
    .info-link {
        font-size: 0.85rem;
        color: #0072e3;
        transition: all 0.2s ease;
    }

    .info-link:hover {
        color: #004a99;
        text-decoration: underline;
    }
}


/* 開催中セクション */

.latest-section {
    background-color: #ffffff;
    /* 白背景 */
    border-radius: 12px;
    padding: 20px 20px 10px;
    margin: 40px 20px 40px;
    /* ←横にも余白をつける */
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.section-left-top-latest-icon {

    width: 67%;
    /* 円内のサイズ */
    height: auto;
    /* 縦横比を維持 */
    display: block;
}


.latest-section h2 {
    width: 100%;
    margin: 0;
    margin-top: 1rem;
}

/* フィルター全体のラッパー */
.prefectureFilter-dropdown {
    margin: 2rem 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    /* 幅が狭い場合は折り返す */
    justify-content: center;
    /* 水平方向に中央寄せ */
    align-items: center;
    /* 垂直方向の中央揃え */
    gap: 10px;
}

/* ラベル */
.prefectureFilter-dropdown label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

/* セレクトボックス */
.prefectureFilter-dropdown select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* フォーカス時 */
.prefectureFilter-dropdown select:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
}

/* option の見た目（ブラウザ依存ですが最低限調整） */
.prefectureFilter-dropdown select option {
    padding: 4px 8px;
}


/* 詳細開閉ボタン */
.toggle-detail-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background-color: #007bff;
    /* 青系 */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.toggle-detail-btn:hover {
    background-color: #0056b3;
    /* ホバー時濃い青 */
}

.toggle-detail-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.no-result-message {
    text-align: center;
    color: #555;
    font-size: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ==============================
   PC表示用スタイル
   ============================== */
@media (min-width: 1024px) {

    /* セクション全体 */
    .latest-section {
        max-width: 1000px;
        /* 横幅拡張 */
        margin: 60px auto;
        /* 中央寄せ・上下に余白 */
        padding: 40px 60px 30px;
        border-radius: 16px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    /* タイトル */
    .latest-section h2 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-top: 1.5rem;
        width: 80%;
        margin: 0 auto 40px;
    }

    /* アイコン（左上の円内） */
    .section-left-top-latest-icon {
        width: 60%;
        height: auto;
    }

    /* フィルターラッパー */
    .prefectureFilter-dropdown {
        display: flex;
        flex-wrap: wrap;
        /* 幅が狭い場合は折り返す */
        justify-content: center;
        /* 水平方向に中央寄せ */
        align-items: center;
        /* 垂直方向の中央揃え */
        gap: 16px;
        /* アイテム間の隙間 */
        margin: 1.5rem auto 1rem;
        /* 上下マージン＋左右自動で中央 */
        width: fit-content;
        /* コンテンツ幅に合わせる */
    }

    .prefectureFilter-dropdown label {
        font-size: 1rem;
        color: #222;
    }

    .prefectureFilter-dropdown select {
        font-size: 15px;
        padding: 8px 14px;
        border-radius: 8px;
        border: 1px solid #bbb;
        transition: all 0.2s ease;
    }

    .prefectureFilter-dropdown select:hover {
        border-color: #999;
    }

    /* 詳細ボタン */
    .toggle-detail-btn {
        padding: 8px 16px;
        font-size: 15px;
        border-radius: 8px;
        background-color: #0072e3;
    }

    .toggle-detail-btn:hover {
        background-color: #004a99;
    }

    /* 結果なしメッセージ */
    .no-result-message {
        font-size: 1.1rem;
        padding: 1.5rem;
        border-radius: 10px;
        background-color: #f5f5f5;
        color: #444;
        margin-top: 1.5rem;
    }
}

/** 検索セクション */
/* モバイルファースト設計 */

/* 検索セクション */
.search-section {
    background-color: #ffffff;
    /* 白背景 */
    border-radius: 12px;
    padding: 20px 20px 10px;
    margin: 30px 20px;
    /* ←横にも余白をつける */
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* PNG アイコン */
.section-left-top-circle .search-icon {
    width: 60%;
    /* 円内のサイズ */
    height: auto;
    /* 縦横比を維持 */
    display: block;
    left: 10px;
    /* 20度回転 */
    transform-origin: center center;
    /* 回転の中心を中央に */
}


.search-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
    margin-bottom: 20px;
}

.search-card {
    text-align: center;
}

/* 説明文 */
.search-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
}

/* 入力欄ラッパー */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 2rem auto;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    /* 左にアイコン分の余白 */
    border: 1px solid #303030;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

/* ボタン */
.search-button {
    width: 40%;
    display: block;
    background: linear-gradient(145deg, #fff500, #ffd700);
    /* 微妙なグラデーション */
    color: #000;
    /* テキストは黒で見やすく */
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    /* 立体感 */
    cursor: pointer;
    border-radius: 8px;
    /* 少し丸みを増やす */
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 1.1rem;
    margin: 1rem auto;
    text-align: center;
}

.search-button:hover {
    background-color: #fff500;
}

.suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    position: absolute;
    top: calc(100% + 5px);
    /* input の下に5pxの隙間を空ける */
    left: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: none;
    /* 初期は非表示 */
}

.suggestions-list li {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestions-list li:hover {
    background-color: #f0f0f0;
}


/* PC向け（横幅広くなっても中央揃え） */
@media (min-width: 600px) {
    .search-card {
        padding: 30px;
    }

    /* 検索セクション全体 */
    .search-section {
        max-width: 1000px;
        margin: 60px auto;
        padding: 40px 60px 30px;
        border-radius: 16px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    /* タイトル */
    .search-title {
        font-size: 2rem;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    /* 説明文 */
    .search-text {
        font-size: 18px;
        color: #444;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    /* 入力欄 */
    .search-input {
        font-size: 18px;
        padding: 12px 16px 12px 42px;
        border-radius: 10px;
        border: 1px solid #222;
        margin: 0 auto;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .search-input:focus {
        border-color: #ff9900;
        box-shadow: 0 0 6px rgba(255, 153, 0, 0.4);
    }

    /* 検索ボタン */
    .search-button {
        width: 30%;
        font-size: 1.2rem;
        padding: 0.9rem 1.5rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .search-button:hover {
        background: linear-gradient(145deg, #fff300, #ffd600);
        transform: translateY(-2px);
    }

    /* 候補リスト */
    .suggestions-list {
        font-size: 1rem;
    }

    .suggestions-list li {
        padding: 10px 14px;
    }

    /* 検索結果 */
    .search-results-container {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        /* 中央寄せ */
    }
}


/* 検索結果エリア */
.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0.5rem;
}

.no-results-text {
    text-align: center;
    /* 中央寄せ */
    font-size: 1.2rem;
    /* 文字サイズ */
    color: #666;
    /* グレー系の文字色 */
    padding: 40px 20px;
    /* 上下に余白 */
    background-color: #f9f9f9;
    /* 薄い背景色 */
    border-radius: 8px;
    /* 角丸 */
    border: 1px dashed #ccc;
    /* 点線の枠線 */
}

.result-container {
    display: grid;
    gap: 1rem;
    justify-content: center;
    /* 中央寄せ */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 1rem 0;
}


.result-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-left: 10px solid #d0e8ff;
    /* default: upcoming */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ステータス別の左線カラー */
.status-ongoing~.result-card,
.result-card[data-status="ongoing"] {
    border-left-color: #9effb1;
}

.status-upcoming~.result-card,
.result-card[data-status="upcoming"] {
    border-left-color: #d0e8ff;
}

.status-finished~.result-card,
.result-card[data-status="finished"],
.status-not-yet~.result-card,
.result-card[data-status="not-yet"] {
    border-left-color: #d1d1d1;
}



.status-early-finished~.result-card,
.result-card[data-status="early-finished"] {
    border-left-color: #adb5bd;
}

/* 見出し部分 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.municipality-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

/* ステータスラベル */
.status-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    min-width: 90px;
}

/* 各色調整 */
.status-ongoing {
    background-color: #d4ffde;
}

.status-upcoming {
    background-color: #e6f2ff;
}

.status-finished,
.status-not-yet {
    background-color: #f0f0f0;
}

.status-early-finished {
    background-color: #e0e0e0;
}

/* 割引ラベル用 */
.discount-label {
    background-color: #ffeb3b;
    /* 黄色系 */
    color: #000;
}

/* cp_type 2: プレミアム商品券ラベル */
.discount-label.premium {
    background-color: #8B4513;
    /* 茶色 */
    color: #fff;
}

/* ラベル */
.event-detail-label {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    border-left: 3px solid #ffb347;
    padding-left: 8px;
}

/* 割引率 */
.discount-rate {
    font-size: 1rem;
    font-weight: bold;
    color: #222;
    margin-left: 0.5rem;
}

/* 開催時期 */
.event-period {
    margin: 0.3rem 0 0.8rem 0.5rem;
    font-size: 0.95rem;
    color: #444;
}

/* QRリンク */
.qr-payments {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.qr-links {
    display: flex;
    /* a要素を横並びに */
    gap: 0.5rem;
    /* リンク間の隙間 */
}

.qr-pay {
    background: #f7faff;
    color: #007bff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.qr-pay:hover {
    background: #e6f0ff;
}

/* 市の登録ステータス */
.my-city-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
    -webkit-user-select: none;
    /* Safari / Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* 標準 */
}

.my-city-status.registered {
    color: #007bff;
}

.my-city-status.not-registered {
    color: #ff9900;
}


.qr-payments {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.qr-pay {
    display: inline-block;
    background-color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 0.25rem;
    font-size: 1rem;
    color: #007BFF;
    /* テキストも青系 */
}

.qr-pay:hover {
    color: #0056b3;
    /* 濃い青に変化 */
}

.qr-pay i {
    margin-left: 4px;
    font-size: 1rem;
    color: #007BFF;
    /* 青系（Bootstrapのリンク色） */
    /* アイコンの色は調整可 */
}

.accordion {
    margin-top: 1rem;
}

.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin: 0;
    box-shadow: none;
}

.accordion-toggle:hover {
    background-color: transparent;
}

.accordion-text {
    text-decoration: underline;
}

.accordion-icon {
    display: inline-block;
    width: 1rem;
    text-align: center;
    margin-right: 0.5rem;
    font-weight: bold;
}

.accordion-content {
    display: none;
    padding: 0.5rem 0.5rem;
    border-left: 2px solid #007bff;
    margin-top: 0.5rem;
}

.accordion-content ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.prefecture-events {
    margin-top: 1rem;
}

.prefecture-events-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
    text-align: center;
}

.prefecture-events .result-card:first-child {
    margin-top: 0;
}

/* ==============================
   PC向けスタイル
   ============================== */
@media (min-width: 1024px) {

    /* カード共通 */
    .result-card {
        background: #fff;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        width: 380px;
        margin: auto;
        border-left: 15px solid #d0e8ff;
    }

    .result-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

    /* 市区町村名 */
    .municipality-name {
        font-size: 1.2rem;
    }

    /* ステータスラベル */
    .status-label {
        font-size: 0.95rem;
        padding: 6px 12px;
        border-radius: 14px;
    }

    /* イベント期間 */
    .event-period {
        font-size: 1rem;
    }

    /* 割引率 */
    .discount-rate {
        font-size: 1rem;
    }

    /* アコーディオン */
    .accordion {
        margin-top: 1rem;
    }

    .accordion-toggle {
        font-size: 1.05rem;
    }

    .accordion-content {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }

    /* 都道府県別セクション */
    .prefecture-events-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .no-results-text {
        font-size: 1.2rem;
        padding: 50px 30px;
        margin-top: 2rem;
    }

    .result-container {
        display: grid;
        gap: 1.5rem;
        justify-content: center;
        /* 中央寄せ */
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}



/* --- モーダル背景 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* --- モーダル本体 --- */
.modal-content {
    background: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    margin: 1rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

/* --- タイトル --- */
.modal-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

/* --- 説明文 --- */
.modal-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* --- アクションボタン全体 --- */
.modal-actions {
    margin: 1.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    /* ← スマホでは縦並び */
    gap: 12px;
}

/* --- 共通ボタンスタイル --- */
.register-btn,
.login-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

/* --- 登録ボタン --- */
.register-btn {
    background: #28a745;
    color: #fff;
}

.register-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* --- ログインボタン --- */
.login-btn {
    background: #007bff;
    color: #fff;
}

.login-btn:hover {
    background: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* --- PC表示（横並びに切り替え） --- */
@media (min-width: 768px) {
    .modal-actions {
        flex-direction: row;
        /* ← PCでは横並び */
        justify-content: space-between;
        gap: 15px;
    }

    .register-btn,
    .login-btn {
        display: flex;
        border-radius: 15px;

        width: 60%;
        height: 60px;

    }
}


/* --- 閉じるボタン（右上） --- */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

/* --- フェードインアニメーション --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* --- フィルタードロップダウン全体 --- */
.filter-dropdown {
    position: relative;
    display: flex;
    justify-content: center;
    /* ボタンを中央配置 */
    margin: 1.2rem auto;
}

/* --- フィルターボタン --- */
.filter-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    color: #333;
    box-shadow: none;
}

.filter-dropdown-btn:hover {
    background-color: white;
    border-color: none;
    box-shadow: none;
}

/* --- ドロップダウンメニュー --- */
.filter-dropdown-menu {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    /* 中央に配置 */
    background-color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    width: 160px;
    display: none;
    z-index: 1000;
}

.filter-dropdown-menu li {
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    color: #333;
}

.filter-dropdown-menu li:hover {
    background-color: #f1f1f1;
}

.filter-dropdown-menu li.active {
    background-color: #007bff;
    color: #fff;
}

/* --- 矢印アニメーション --- */
.dropdown-arrow {
    transition: transform 0.2s;
}

.filter-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}