@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:    cocoon-master
Version:     1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/


/* すべての要素の幅計算を、パディング込みで行うように強制 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* メインコンテンツのはみ出しを全ページで物理的に防ぐ */
#main, .content-area, .site-main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* 以下に、花火・お祭りファインダーMAP用のカスタムスタイルを追加します */
/* ヘッダーの背景画像とスタイリング (PCデフォルト) */
.header-bg {
    background-image: url('https://voyvoi.com/wp-content/uploads/2025/06/イエロー　青　ポップ　夏　祭り　イベント　花火　Twitter広告-8.png'); /* PC用画像URL */
    background-size: cover; /* 画像をカバーするように拡大縮小 */
    background-position: center; /* 画像を中央に配置 */
    color: white; /* テキストの色を白に */
    padding: 0 0 100px 0; /* padding-topを0に、padding-bottomは100pxに維持 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* テキストに影をつけ、見やすくする */
    min-height: 250px; /* ヘッダーの最小高さを設定 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ヘッダーテキストのスタイリング */
.header-text h1 {
    font-family: 'Kaisei HarunoUmi', sans-serif; /* おしゃれなフォントを指定 */
    font-size: 3.5em; /* フォントサイズを調整 */
    font-weight: bold; /* 太字にする */
    line-height: 1.2;
}

/* モーダル関連のCSS (既存のものを維持または調整) */
.modal {
    z-index: 9999; /* 最前面に表示 */
}

.modal > div { /* モーダルコンテンツのスタイル */
    max-width: 90%; /* 最大幅 */
    max-height: 90vh; /* 最大高さ（ビューポートの90%）*/
    overflow-y: auto; /* コンテンツがはみ出したらスクロール */
}

/* 絞り込み検索セクションの高さ調整 (PC向け) */
#filters {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* フィルターグループ間のマージンを調整 (PC向け) */
#filters .space-y-6 > div {
    margin-bottom: 1rem;
}

/* single-event.phpのメインコンテンツ幅調整（PC向け）*/
.site-main.max-w-screen-lg {
    max-width: 1024px; /* Tailwindのlgブレイクポイントの最大幅 */
    margin-left: auto;
    margin-right: auto;
}

/* PC版3カラムフィルターの幅調整 */
.md\:w-1\/3-minus-gap {
    width: calc(33.333333% - (1rem * 2 / 3)); /* gap-4 (1rem) を想定 */
    min-width: 250px; /* 各カラムの最小幅を確保 */
}
.lg\:w-1\/4-minus-gap {
    width: calc(25% - (1.5rem * 3 / 4)); /* gap-6 (1.5rem) を想定 */
    min-width: 200px; /* 各カラムの最小幅を確保 */
}

/* PC版の複数選択プルダウンの高さ調整 */
@media screen and (min-width: 768px) { /* mdブレイクポイント以上で適用 */
    select[multiple] {
        height: auto; /* デフォルトのheightをautoにリセット */
        min-height: 120px; /* 複数行表示のための最小高さを設定 */
        appearance: auto; /* ブラウザのネイティブな見た目を維持 */
        background-image: none; /* カスタム矢印を無効化 */
    }
}

/* お気に入りボタン用のスタイル */
.hanabi-favorite-button {
    background-color: #ffffff; /* デフォルトの背景色 */
    color: #241c1a; /* デフォルトの文字色 */
    border: 1px solid rgba(36,28,26,0.14);
    padding: 0.6em 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    border-radius: 999px;
}

/* アイコンのデフォルト色（白抜き星） */
.hanabi-favorite-button .favorite-icon {
    color: rgba(36,28,26,0.3);
    font-size: 1.2em;
}

/* is-favorited クラスがついた時のスタイル */
.hanabi-favorite-button.is-favorited {
    background-color: #f3e6cc; /* 背景色を淡いゴールドに */
    border-color: transparent;
    color: #a8792a; /* 文字色をゴールドに */
}

/* お気に入り登録済みのアイコン色 */
.hanabi-favorite-button.is-favorited .favorite-icon {
    color: #a8792a;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  #favorite-filter-wrapper {
      display: block !important;
      margin-top: 0.75rem;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
    /* モバイルヘッダーのテキストエリア調整 */
    .header-bg {
        padding: 0 0 30px 0;
        min-height: 150px;
    }

    .header-text h1 {
        font-size: 2em;
        line-height: 1.3;
    }

    .header-text p {
        font-size: 0.9em;
        margin-top: 0.5rem;
        padding: 0 10px;
    }

    /* サイト全体の横幅が画面に収まるように調整 */
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* 記事ブロック(.post)の余白を調整し、画面幅いっぱいに広げる */
    .single-event .post {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        width: 100%;
        box-shadow: none !important;
    }
    
    /* コンテンツの左右に、基準となる余白を設定 */
    .single-event .entry-header, 
    .single-event .single-event-content,
    .single-event .custom-sns-share-buttons,
    .single-event .event-buttons-container,
    .single-event .weather-forecast-container,
    .single-event .event-disclaimer,
    .single-event #user-photos-gallery,
    .single-event #user-photo-upload-section,
    .single-event #comments-wrapper {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    /* 黄色い情報ボックスの中だけ、左右の余白を少し広めの1remに設定 */
    .single-event .event-meta-info {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }


    /* スマホでのマップの高さ調整を縦画面の3/4に */
    .map-container {
        height: 75vh;
    }
    
    /* 絞り込み検索セクションのモバイル向け調整をさらにコンパクトに */
    #filters {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    #filters h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    #filters p {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    #current-filters-summary {
        padding: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    #current-filters-summary p {
        font-size: 0.8rem !important;
    }
    #current-filters-summary button {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
        margin-top: 0.5rem !important;
    }
    #filters .space-y-4 {
        --tw-space-y-reverse: 0;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    #filters .space-y-4 > div {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    #filters .space-y-4 > div:first-child {
        margin-top: 0 !important;
    }
    #filters .space-y-4 > div:last-child {
        margin-bottom: 0 !important;
    }

    #filters h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }

    #date-filter-picker,
    #keyword-filter-mobile,
    #keyword-filter-pc {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    #clear-date-filter {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
        margin-top: 0.5rem !important;
    }

    /* single-event.php のフォントサイズ調整 (モバイル) */
    article#post-<?php the_ID(); ?> h1 { /* イベント名 */
        font-size: 1.25em !important; /* 約20px */
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* single-event.php の画像高さ調整 (モバイル) */
    .event-thumbnail { /* single-event.phpのサムネイル画像 */
        height: 180px !important;
        width: 100% !important;
        object-fit: cover !important;
        aspect-ratio: 16 / 9;
    }
    
    main.site-main article .single-event-content p,
    main.site-main article .single-event-content li {
        font-size: 1em !important; /* 約16px（基準とするサイズ） */
        line-height: 1.6 !important;
    }
    main.site-main article .single-event-content h2 {
        font-size: 1.2em !important; /* 約19px */
    }
    main.site-main article .single-event-content h3 {
        font-size: 1.1em !important; /* 約17px */
    }

    /* ローディングオーバーレイのスタイル（更新） */
    #loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.95);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 10000;
      transition: opacity 0.5s ease-out;
    }

    #lottie-container { }

    #loading-text {
      color: #5a3c3c;
      font-family: 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
      font-size: 1.5rem;
      font-weight: bold;
      margin-top: -40px;
      text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }

    #event-list .event-card:hover {
      background-color: #fff0f5;
      cursor: pointer;
      transition: background-color 0.3s ease-in-out;
    }

    /* モバイルでのボタン表示を3段に修正 */
    .single-event .event-buttons-container {
        flex-direction: column !important; /* ボタンを縦に並べる */
        gap: 0.75rem !important; /* ボタン間の隙間 */
    }
    .single-event .single-event-button {
        width: 100% !important;
        max-width: 100% !important; /* 最大幅の制限も解除 */
        font-size: 16px !important; /* フォントサイズを通常に戻す */
        padding: 0.8em 1em !important; /* パディングを通常に戻す */
    }
    
    /* ▼▼▼【ここから変更】おでかけ設定ボックス全体のスクロール対応 ▼▼▼ */
    #odekake-setting-box {
        /* モバイルでのみ、画面上部近くに固定する */
        position: sticky;
        top: 50px; /* ヘッダーの高さに合わせて調整 */
        z-index: 10;
        /* 高さを明示的に指定しないことで、コンテンツの大きさに依存させる */
        max-height: calc(100vh - 100px); /* 画面全体の高さから上下のバー分を引いたサイズ */
        overflow-y: visible; /* 初期状態ではオーバーフローを許可（アコーディオンがはみ出せるように） */
    }

    /* フィルターの内部コンテナにスクロールバーを強制発生させる */
    #filters-inner {
        max-height: calc(100vh - 250px); /* 画面サイズに合わせて計算された最大高さを設定 */
        overflow-y: auto; /* 縦スクロールを有効にする */
        padding-right: 15px; /* スクロールバーとコンテンツの隙間を確保 */
    }
    
    /* 検索ボタンと格納ボタンを画面最下部に固定する */
    #odekake-filters-content > .max-w-xl { /* .max-w-xl はボタンの親要素 */
        position: sticky;
        bottom: 0;
        background-color: #ffffff; /* ボタンの背後を白で覆う */
        padding-top: 10px;
        z-index: 20;
        margin-left: -1rem !important; /* 左右の余白をネガティブマージンで吸収 */
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important; /* 画面幅いっぱいに広げる */
        padding-left: 1rem;
        padding-right: 1rem;
        border-top: 1px solid #ddd;
    }
    
    /* ボタンの親要素が画面幅いっぱいになったので、ボタン自体の幅を調整 */
    #search-with-filters-button, #close-filters-button {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* ▼▼▼ フィルターアコーディオン内のチェックボックスの余白を調整 ▼▼▼ */
    #prefecture-filter-container, 
    #type-filter-container, 
    #feature-filter-container {
        /* 各フィルターセクションの上下の余白を削減 */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    /* ▲▲▲【ここまで変更】おでかけ設定ボックス全体のスクロール対応 ▲▲▲ */

    /* --- アプリ風レイアウト（トップページとマップページのみ適用） --- */
    /* 対象ページ：トップページ、マップページ */
    body.home,
    body.page-template-page-hanabi-map-php,
    body.page-template-page-local-map-php {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
    }

    /* 上記ページでメインコンテンツの余白を削除 */
    body.home .content-area,
    body.home .site-main,
    body.page-template-page-hanabi-map-php .content-area,
    body.page-template-page-hanabi-map-php .site-main,
    body.page-template-page-local-map-php .content-area,
    body.page-template-page-local-map-php .site-main {
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* その他のページ（ブログ一覧など）のレスポンシブ幅調整は維持しつつ、余白はCocoon標準に戻す */
    body:not(.home):not(.page-template-page-hanabi-map-php):not(.page-template-page-local-map-php) .content-area,
    body:not(.home):not(.page-template-page-hanabi-map-php):not(.page-template-page-local-map-php) .site-main {
        width: 100%;
        box-sizing: border-box;
        /* padding: 0 !important; を削除することで標準の余白が復活します */
    }

    /* ログインフォームなどのコンテナを画面中央に適切に配置 */
    .login-register-form-container {
        width: 90% !important; /* 画面の90%の幅に */
        margin: 2rem auto !important; /* 上下余白あり、左右中央揃え */
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
    }
    
    /* フォーム内の入力欄がはみ出さないようにする */
    .login-register-form-container input[type="text"],
    .login-register-form-container input[type="password"],
    .login-register-form-container input[type="email"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    /* ▲▲▲ 追加ここまで ▲▲▲ */
}

/* お気に入りフィルタートグルの新デザイン用スタイル */
.favorite-toggle-label {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6; /* 薄いグレー */
    border: 1px solid #fdd835;
    border-radius: 9999px; /* pill shape */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: bold;
    color: #6b7280; /* グレー */
    user-select: none;
    font-size: 0.875rem;
    height: 38px; /* 高さを固定 */
}
.favorite-toggle-label:hover {
    background-color: #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#favorite-filter-toggle:checked + .favorite-toggle-label {
    background-color: #f59e0b;
    color: white;
    border-color: #f59e0b;
}
#favorite-filter-toggle:checked + .favorite-toggle-label .fa-star {
    transform: scale(1.1);
}

/* 全クリアボタンのスタイルを定義して高さを統一 */
.clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #e5e7eb; /* グレー系 */
    border: 1px solid #d1d5db;
    border-radius: 9999px; /* pill shape */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: bold;
    color: #4b5563;
    user-select: none;
    font-size: 0.875rem;
    height: 38px; /* 高さを固定 */
}
.clear-button:hover {
    background-color: #d1d5db;
}


/* 固定ログインステータスウィジェット用のスタイル */
.login-status-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9990;
}

.login-status-widget .login-status-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-out;
}

.login-status-widget.logged-in:hover .login-status-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-status-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.login-status-menu a:hover {
    background-color: #f5f5f5;
}

.login-status-menu .login-status-userinfo {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
}

.login-status-avatar-wrapper,
.login-status-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e3a8a, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease-out;
}

.login-status-icon-link:hover {
    transform: scale(1.1);
}

.login-status-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.login-status-icon-link i {
    font-size: 24px;
}

/* 絞り込み条件の表示エリア */
#current-filters-summary.hidden {
    display: none;
}
#current-filters-summary {
    display: block; /* JSでhiddenクラスを外した時に表示されるように */
}

/* 【新規追加】新しいUIで不要になった要素を非表示 */
#change-filters-button { display: none !important; }
#current-filters-summary-top { display: none !important; }

/* ▼▼▼【新規追加】おでかけ設定ボックス展開時の矢印回転 ▼▼▼ */
#odekake-arrow {
    transition: transform 0.3s ease;
}
#odekake-summary-header.is-open #odekake-arrow {
    transform: rotate(90deg);
}
/* ▲▲▲【新規追加】ここまで ▲▲▲ */

/* 絞り込み条件を表すタグ（ピル）のスタイル */
.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4A5568; /* gray-700 */
    background-color: #E2E8F0; /* gray-200 */
    border-radius: 9999px; /* pill shape */
    border: 1px solid #CBD5E0; /* gray-400 */
}

.filter-pill .icon {
    margin-right: 0.4rem;
    color: #718096; /* gray-500 */
}

/* SNSボタン用のCSS */
.custom-sns-share-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
}
.custom-sns-share-buttons ul {
    display: flex;
    justify-content: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.custom-sns-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50% !important; /* ボタンを丸くするのを強化 */
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.2s;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.custom-sns-share-buttons a:hover {
    opacity: 0.8;
}
.custom-sns-share-buttons .sns-button-x { background-color: #000000; font-weight: bold; } /* Xの色を黒に */
.custom-sns-share-buttons .sns-button-facebook { background-color: #1877F2; }
.custom-sns-share-buttons .sns-button-hatena { background-color: #00A4DE; }
.custom-sns-share-buttons .sns-button-hatena b { font-family: 'Verdana', sans-serif; font-weight: 900; }
.custom-sns-share-buttons .sns-button-line { background-color: #00B900; }
.custom-sns-share-buttons .sns-button-copy { background-color: #718096; } /* URLコピーボタンの色 */

/* 称号ガイド用のCSS */
.shogo-guide .rank-step {
    flex: 1;
    max-width: 120px;
}
.shogo-guide .icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
}
.shogo-guide .icon-wrapper i, .shogo-guide .icon-wrapper i::before {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}
.shogo-guide .rank-title {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.2;
}
.shogo-guide .rank-condition {
    font-size: 0.7rem;
    color: #6b7280;
}
.shogo-guide .rank-arrow {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ランキングページのアイコンフォントを強制するスタイルを追加 */
#ranking-by-photos i, #ranking-by-likes i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* ボタンコンテナの下に余白を追加（PC/モバイル共通） */
.event-buttons-container {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

@media (max-width: 640px) {
    .shogo-guide .flex {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .shogo-guide .rank-step {
        flex-basis: calc(50% - 0.5rem);
    }
    .shogo-guide .rank-arrow {
        display: none;
    }
}
/* カスタムログインページ用のCSS */

/* ▼▼▼ 追加: スキンなしでも背景を見やすくする ▼▼▼ */
body.page-template-page-login {
    background-color: #f3f4f6 !important; /* 全体の背景を薄いグレーに */
    min-height: 100vh;
}
/* コンテンツエリアの余白確保 */
.page-template-page-login #content {
    margin-top: 0 !important;
    padding-top: 2rem !important;
    padding-bottom: 4rem !important;
}
/* ▲▲▲ 追加ここまで ▲▲▲ */

.login-register-form-container {
    max-width: 420px;
    margin: 2rem auto;
    /* ▼ 背景色と影を明示的に指定 */
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    position: relative;
    z-index: 10;
}

.tab-switcher {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}
.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s ease-in-out;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.tab-button.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.form-tab {
    display: none;
}
.form-tab.active {
    display: block;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.social-login-area {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.social-login-label {
    text-align: center;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}
.social-login-area .wp-social-login-widget {
    text-align: center;
}
.social-login-area .wp-social-login-connect-with {
    display: none; /* 「でログイン」の文字を非表示 */
}
.form-divider {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    position: relative;
}
.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background-color: #e5e7eb;
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.form-row {
    margin-bottom: 1rem;
}
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
}
.form-row .input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.button.button-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    background-color: #2563eb;
    border-color: #2563eb;
    transition: background-color 0.2s;
}
.button.button-primary:hover {
    background-color: #1d4ed8;
}

.form-error, .form-success {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
}
.form-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.form-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
/* single-event.php のセクションタイトルのアイコンを強制表示 */
#user-photos-gallery h3 i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}
/* イベント詳細ページのセクションアイコン強制表示 */
#user-photos-gallery h3 i,
#comments h3 i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}
/* ローディングオーバーレイのスタイル調整 */
#loading-overlay {
  gap: 1rem; /* アニメーションとテキストの間隔を調整 */
}

#loading-text {
  margin-top: 0; /* ネガティブマージンをリセット */
}

.comments-area .avatar {
    border-radius: 50% !important;
}

/* ▼▼▼【最終修正】イベント詳細ページのSNSボタン下に強制的に余白を追加 ▼▼▼ */
.single-event .custom-sns-share-buttons {
    margin-bottom: 2.5rem !important;
}
/* 広告がコンテナからはみ出す問題の修正 */
.c-ad {
    overflow: hidden; /* はみ出した部分を非表示にする */
    text-align: center; /* 内部の広告を中央揃えにする */
    padding: 1rem 0; /* 広告の上下に余白を追加 */
}
/* ▼▼▼ ローディング プログレスバー用のスタイル ▼▼▼ */
.progress-bar-container {
    width: 80%;
    max-width: 300px;
    background-color: rgba(90, 60, 60, 0.2);
    height: 10px;
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4bdeff, #3182ce);
    border-radius: 5px;
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
/* ▲▲▲ ローディング プログレスバー用のスタイル ▲▲▲ */
/* ▼▼▼ 現在地取得ステータス表示用のスタイル (修正版) ▼▼▼ */
#location-status-toast {
    position: fixed;
    bottom: -100px; /* 初期状態では画面下に隠す */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9); /* 背景を少し濃く */
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    /* ★ z-indexを最大値に設定し、フッターより手前に表示させる */
    z-index: 2147483647; 
    font-size: 14px;
    font-weight: bold;
    transition: bottom 0.5s ease-in-out;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* 影をつけて浮き上がらせる */
    white-space: nowrap; /* テキストの折り返し防止 */
}

#location-status-toast.show {
    bottom: 100px; /* ★ PC等のデフォルト位置 */
}

/* ★ スマホ向けの調整を追加 */
@media screen and (max-width: 480px) {
    #location-status-toast.show {
        /* フッター(約50px) + セーフエリア + 余白 を考慮して高めに設定 */
        bottom: 120px; 
    }
}
/* ▲▲▲ 現在地取得ステータス表示用のスタイル ▲▲▲ */

/* ▼▼▼ イベント詳細ページ「ルート検索」ボタンの文字色（藍色の塗りボタン・白文字で固定） ▼▼▼
   カスタマイザーの追加CSS（.single-event .single-event-button { color: white !important; }）が
   詳細度2（クラス2つ）で勝ってしまうため、詳細度3で確実に上書きする */
.single-event .single-event-button.hanabi-cta-route,
.single-event .single-event-button.hanabi-cta-route:hover {
    color: #ffffff !important;
}
/* ▲▲▲ 「ルート検索」ボタンの文字色 ▲▲▲ */

/* ▼▼▼ 関連情報カードのスタイル ▼▼▼ */
.related-article-card {
    display: flex; /* 横並びのレイアウトを強制 */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.related-article-card__image-wrapper {
    flex-shrink: 0;
    width: 33.333333%; /* 全体の1/3の幅 */
    max-width: 150px; /* PCでも画像が大きくなりすぎないように */
}
.related-article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったままトリミング */
}
.related-article-card__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.related-article-card__date {
    font-size: 0.75rem; /* 12px */
    color: #6b7280; /* Tailwindのgray-500 */
    margin-bottom: 0.25rem;
}
.related-article-card__title {
    font-size: 1rem; /* 16px */
    font-weight: bold;
    color: #1f2937; /* Tailwindのgray-800 */
    line-height: 1.4;
}
/* ▲▲▲ 関連情報カードのスタイル ▲▲▲ */
/* ▼▼▼ 関連情報カード（縦型）のスタイル ▼▼▼ */
.related-article-card-vertical {
    display: block; /* 縦並びのブロック要素に */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.related-article-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.related-article-card-vertical__image-wrapper img {
    width: 100%;
    height: 180px; /* 画像の高さを固定 */
    object-fit: cover;
}
.related-article-card-vertical__content {
    padding: 1rem;
}
.related-article-card-vertical__date {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.related-article-card-vertical__title {
    font-size: 1.125rem; /* 少し大きめのタイトル */
    font-weight: bold;
    color: #1f2937;
    line-height: 1.4;
}
/* ▲▲▲ 関連情報カード（縦型）のスタイル ▲▲▲ */


/* ▼▼▼ スクロールアニメーション用のスタイル ▼▼▼ */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ▲▲▲ スクロールアニメーション用のスタイル ▲▲▲ */

/* ▼▼▼【差し替え】写真いいねボタンの新デザイン ▼▼▼ */
.photo-like-button {
    background: none !important; /* 背景を強制的に削除 */
    border: none !important; /* ボーダーを強制的に削除 */
    padding: 0 !important; /* 内側の余白を削除 */
    box-shadow: none !important; /* 影を削除 */
    cursor: pointer;
    line-height: 1; /* アイコンの縦位置を安定させる */
}
/* いいねボタン内のハートアイコンのスタイル */
.photo-like-button .fa-heart {
    font-size: 1.25rem; /* アイコンのサイズを少し大きくしてタップしやすくする */
    color: #9ca3af; /* デフォルトの色 (薄いグレー) */
    transition: all 0.2s ease-in-out;
    vertical-align: middle; /* 縦位置を中央揃えに */
}
/* いいね済みのハートアイコンのスタイル */
.photo-like-button.is-liked .fa-heart {
    color: #f06292; /* いいね済みの色 (ピンク) */
    transform: scale(1.15); /* 少しだけアニメーション */
}
/* ボタンにホバーした時のスタイル */
.photo-like-button:not(:disabled):hover .fa-heart {
    color: #f472b6; /* ホバー時の色 (少し濃いピンク) */
}
/* ▲▲▲【差し替え】ここまで ▲▲▲ */

/* ▼▼▼【新規追加】アコーディオンフィルター用のスタイル ▼▼▼ */
.accordion-header { 
    cursor: pointer; 
    user-select: none; 
}
.accordion-content { 
    overflow: hidden; 
    transition: max-height 0.3s ease-in-out; 
}
.accordion-icon { 
    transition: transform 0.3s ease-in-out; 
}
.accordion-header.is-open .accordion-icon { 
    transform: rotate(90deg); 
}
/* ▲▲▲【新規追加】ここまで ▲▲▲ */
/* ▼▼▼ AIプランナー キャラクター選択用のスタイル（サイズ調整版） ▼▼▼ */
.character-selection-group {
    display: flex;
    gap: 1.5rem; /* キャラクター間の間隔 */
    justify-content: center;
    align-items: center;
}
.character-label {
    cursor: pointer;
}
.character-label input[type="radio"] {
    display: none; /* ラジオボタン自体は隠す */
}
.character-card {
    border: 3px solid #e5e7eb; /* 未選択時の枠線 */
    border-radius: 0.75rem;
    padding: 0.5rem; /* パディングを調整 */
    text-align: center;
    transition: all 0.2s ease-in-out;
    opacity: 0.7;
}
.character-label input[type="radio"]:checked + .character-card {
    border-color: #ef4444; /* 選択時の枠線 */
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.character-card img {
    width: 60px;   /* 画像の幅を調整 */
    height: 60px;  /* 画像の高さを調整 */
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.5rem;
    background-color: #f3f4f6;
}
.character-name {
    font-weight: bold;
    color: #374151;
    font-size: 0.875rem; /* 文字サイズを調整 */
}
/* ▲▲▲ AIプランナー キャラクター選択用のスタイル ▲▲▲ */
/* ▼▼▼ AIプランナー 回答吹き出し用のスタイル（サイズ調整版） ▼▼▼ */
.ai-response-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* 間隔を少し詰める */
    margin-top: 1rem;
}
.ai-response-avatar {
    flex-shrink: 0;
    text-align: center;
}
.ai-response-avatar img {
    width: 40px;   /* 画像サイズを小さく */
    height: 40px;  /* 画像サイズを小さく */
    border-radius: 50%;
    background-color: #f9fafb;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ai-response-avatar .character-name-label {
    font-size: 0.65rem; /* 文字サイズも調整 */
    font-weight: bold;
    color: #4b5563;
    margin-top: 0.25rem;
}
.ai-response-bubble {
    position: relative;
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem; /* パディングを調整 */
    flex-grow: 1;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow-wrap: break-word;
}
.ai-response-bubble::before {
    content: '';
    position: absolute;
    top: 15px;  /* 矢印の位置を調整 */
    left: -10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #ffffff;
}
.ai-response-bubble h3 {
    font-size: 1.15rem; /* 見出しサイズを調整 */
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #d1d5db;
}
.ai-response-bubble p {
    line-height: 1.75;
    color: #374151;
    font-size: 0.95rem; /* 本文の文字サイズを調整 */
}
.ai-response-bubble hr {
    border: none;
    border-top: 1px dashed #e5e7eb;
    margin: 1rem 0;
}
/* ▲▲▲ AIプランナー 回答吹き出し用のスタイル ▲▲▲ */
/* モバイルフッターメニューのAIナビに画像アイコンを指定 */
#mobile-footer-menu .menu-item.menu-icon-ai-image > a {
  /* 元のテキスト（AIナビ）を画面の外に隠す */
  font-size: 0;
  color: transparent;
  
  /* 新しいアイコン画像を表示するための設定 */
  background-image: url('/wp-content/themes/cocoon-child-master/images/icon-ai.png');
  background-size: contain; /* アイコンのサイズを調整 */
  background-repeat: no-repeat;
  background-position: center;
  
  /* アイコンの表示領域を確保 */
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto;
}

/* 元々あった疑似要素のアイコンを非表示にする */
#mobile-footer-menu .menu-item.menu-icon-ai-image > a::before {
  content: none !important;
}

/* ▼▼▼ 楽天ホテルカード用のスタイル ▼▼▼ */
.hotel-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* ▲▲▲ 楽天ホテルカード用のスタイル ▲▲▲ */
/* 日付ショートカットボタン */
.date-shortcut-button {
    padding: 0.35rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 通常時のホバー */
.date-shortcut-button:hover {
    background-color: #f3f4f6;
}

/* ▼▼▼ アクティブ時の色（PC/スマホ共通） ▼▼▼ */
/* クラス指定を強化して確実に適用させる */
button.date-shortcut-button.active,
button.shortcut-date-pc.active {
    background-color: #ec4899 !important; /* 濃いピンク */
    border-color: #ec4899 !important;
    color: #ffffff !important; /* 白文字 */
    font-weight: bold !important;
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.4);
}
/* ▼▼▼【新規追加】アイコンがクリックイベントを親ボタンに確実に渡すための修正 ▼▼▼ */
#close-filters-button i {
    pointer-events: none;
}
/* ▼▼▼ 横スクロールスライダー用のスタイル ▼▼▼ */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 10px 5px 20px 5px; /* 下のpaddingはスクロールバー用 */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin; /* Firefox用 */
}

/* スクロールバーのスタイル（Chrome/Safari） */
.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}
.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* スライダー内のカード共通設定 */
.slider-card {
    flex: 0 0 280px; /* カード幅を固定 (スマホで見やすいサイズ) */
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}
.slider-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* おすすめイベントカード特有 */
.slider-event-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.slider-card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Googleスポットカード特有 (画像なしデザイン) */
.slider-spot-header {
    background: #f8fafc;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed #e2e8f0;
}
.slider-spot-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.spot-restaurant .slider-spot-icon { color: #f97316; } /* オレンジ */
.spot-tourist .slider-spot-icon { color: #0ea5e9; } /* 水色 */

.slider-spot-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fffbeb;
    color: #b45309;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
}

/* スマホ調整 */
@media (max-width: 480px) {
    .slider-card {
        flex: 0 0 85%; /* 画面幅の85%にして次のカードをチラ見せ */
    }
}
/* ▲▲▲ 横スクロールスライダー用のスタイル ▲▲▲ */
/* --- ▼▼▼ クリーンアップ：ベーススタイル ▼▼▼ --- */

/* 2. マップコンテナの高さ（レスポンシブ対応） */
/* PCは固定、スマホは画面高さに対する割合で指定 */
#map {
    width: 100%;
    height: 500px; /* デフォルト(PC) */
}
@media screen and (max-width: 480px) {
    #map {
        height: 60vh; /* スマホ: 画面の60% */
    }
}

/* 3. アコーディオンのスタイル（JS制御用） */
.accordion-content {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
    max-height: 0; /* 初期状態は閉じる */
}
.accordion-content.is-open {
    /* JSで具体的な高さをセットするが、CSSでも補助 */
}
/* ▼▼▼ ヘッダーロゴの強制サイズ調整 ▼▼▼ */

/* 1. ロゴ画像のサイズ制限を解除して大きくする */
.logo-header img {
    width: 280px !important;      /* PCでの希望サイズ（必要に応じて数値を変更） */
    height: auto !important;      /* 高さは自動調整 */
    max-height: none !important;  /* Cocoonの高さ制限を無効化 */
    max-width: 100% !important;   /* 画面からはみ出さないように */
    margin: 5px auto !important;  /* 中央揃えと余白 */
    object-fit: contain;
}

/* 2. スマホ表示時のサイズ調整 */
@media screen and (max-width: 480px) {
    .logo-header img {
        width: 200px !important;  /* スマホでの希望サイズ */
        max-height: none !important;
    }
}

/* 3. ヘッダー全体の高さ調整（ロゴが切れないように） */
.header-bg {
    height: auto !important;
    min-height: 120px !important; /* 必要に応じて調整 */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
/* ▼▼▼ Z-index（重なり順）の修正 ▼▼▼ */

/* モバイルフッターメニューの優先順位を少し下げる */
#mobile-footer-menu {
    /* トースト通知(2147483647)より低い値に設定し、通知が上に来るようにする */
    z-index: 2147483600 !important; 
}

/* トースト通知の位置と重なり順を再確認 */
#location-status-toast {
    z-index: 2147483647 !important; /* 最大値（最前面） */
}

/* スマホ表示時の位置をさらに微調整（念のため少し高く） */
@media screen and (max-width: 480px) {
    #location-status-toast.show {
        bottom: 130px !important; /* フッターとの距離を確実に空ける */
    }
}
/* ▲▲▲ Z-index修正 ここまで ▲▲▲ */
/* ====================================
** モバイルメニュー（スライドイン）のカスタマイズ
** ==================================== */
@media screen and (max-width: 480px) {
    /* 1. メニューの横幅を狭めて影をつける */
    .navi-in {
        width: 75% !important;       /* 画面の75%の幅にする */
        max-width: 300px !important; /* 最大でも300pxまで */
        box-shadow: 2px 0 15px rgba(0,0,0,0.2) !important; /* 右側に影を落とす */
        border-right: 1px solid #eee; /* 薄い境界線 */
    }

    /* 2. メニュー最上部にロゴを表示 */
    .navi-in > ul::before {
        content: "";
        display: block;
        width: 100%;
        height: 80px; /* ロゴエリアの高さ */
        /* ↓ ロゴ画像のパス（表示されない場合はフルパスに変更してください） */
        background-image: url('images/サービスロゴ透過.png'); 
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-top: 20px;
        margin-bottom: 10px;
        opacity: 0.9;
    }

    /* 3. 閉じるボタン（×）の位置調整（必要に応じて） */
    .mobile-menu-close-button {
        background-color: #f3f4f6; /* 背景色をつけて押しやすく */
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 10px auto; /* 中央揃え */
    }
}
/* 修正後 (末尾に追加) */
/* ====================================
** 花火マップページのスマホ表示崩れ修正
** ==================================== */
@media screen and (max-width: 768px) {
    /* マップページのメインコンテナの幅制限を解除 */
    .page-template-page-hanabi-map .content-area,
    .page-template-page-hanabi-map .site-main,
    .page-template-page-hanabi-map #main,
    .page-template-page-local-map .content-area,
    .page-template-page-local-map .site-main,
    .page-template-page-local-map #main,
    .page-template-page-hanabi-map-preview .content-area,
    .page-template-page-hanabi-map-preview .site-main,
    .page-template-page-hanabi-map-preview #main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    /* Cocoonのデフォルトサイドバーが出力されている場合は非表示にする */
    .page-template-page-hanabi-map #sidebar,
    .page-template-page-local-map #sidebar,
    .page-template-page-hanabi-map-preview #sidebar {
        display: none !important;
    }
}
/* ▼▼▼ アプリ内ブラウザ案内バナー用スタイル（案内風） ▼▼▼ */
#in-app-browser-warning {
    position: fixed;
    /* ヘッダーの下に表示されるよう位置を調整（数値は適宜微調整可能） */
    top: 110px; 
    /* z-indexは維持して、地図やボタンよりは前面に出す */
    z-index: 2147483647 !important;
}

/* WordPress管理バー表示時のみ位置を下げる */
.admin-bar #in-app-browser-warning {
    top: 150px;
}

/* 閉じるボタンのアニメーション */
#close-in-app-warning {
    transition: transform 0.2s;
}
#close-in-app-warning:active {
    transform: scale(0.9);
}
/* JSで hidden クラスが外れたら表示する */
#in-app-browser-warning:not(.hidden) {
    display: block !important;
}

/* バナーの中身のレイアウト */
#in-app-browser-warning .max-w-md {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
/* ▲▲▲ ここまで ▲▲▲ */
/* フィルターチップの基本スタイル（フォントサイズを10pxに微調整） */
.filter-chip {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    color: #374151;
    padding: 3px 8px; /* パディングも少し詰めてコンパクトに */
    border-radius: 9999px;
    font-size: 10px; /* 11pxから10pxへ変更 */
    font-weight: 600;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

/* 各パーツと統一した色ルール */
.filter-chip-date { background-color: #fff7ed; color: #ea580c; border-color: #ffedd5; }    /* オレンジ */
.filter-chip-pref { background-color: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }    /* 青 */
.filter-chip-type { background-color: #f0fdf4; color: #15803d; border-color: #dcfce7; }    /* 緑 */
.filter-chip-feature { background-color: #faf5ff; color: #7e22ce; border-color: #f3e8ff; } /* 紫 */
.filter-chip-keyword { background-color: #f9fafb; color: #374151; border-color: #f3f4f6; } /* グレー */
.filter-chip-favorite { background-color: #fdf2f8; color: #be185d; border-color: #fce7f3; }/* ピンク */
.filter-chip-shape { background-color: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }   /* 範囲指定は青 */

/* 消去ボタンの調整 */
.filter-chip-remove {
    margin-left: 4px;
    cursor: pointer;
    color: currentColor; /* 親の文字色に合わせる */
    opacity: 0.6;
}
.filter-chip-remove:hover {
    opacity: 1;
    color: #ef4444;
}

/* 全てクリアボタン */
.all-clear-chip {
    font-size: 11px;
    color: #ef4444;
    font-weight: bold;
    margin-left: 4px;
    cursor: pointer;
    text-decoration: underline;
}
/* PC版検索バー：モバイルパーツ統合後の微調整 */
@media screen and (min-width: 769px) {
    #pc-search-bar-container .pc-filter-btn {
        min-width: 60px; /* PCでのクリックしやすさを確保 */
    }

    /* ポップアップがアイコンから適切な距離で開くように設定 */
    #pc-search-bar-container .pc-filter-popup {
        top: calc(100% + 15px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    }
}
/* PC版ポップアップ：フェードイン & スライド */
.pc-filter-popup {
    animation: pcPopupFadeIn 0.2s ease-out;
    transform-origin: top center;
}

@keyframes pcPopupFadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ポップアップ内のスクロールバーを極細に */
.pc-filter-popup div::-webkit-scrollbar {
    width: 4px;
}
.pc-filter-popup div::-webkit-scrollbar-thumb {
    background: #f0f0f0;
    border-radius: 10px;
}
/* --- モバイル版：おでかけ設定エリアの高さ圧縮 --- */
@media screen and (max-width: 480px) {
    /* ヘッダーバーの上下余白を半分以下に */
    #odekake-summary-header {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* ショートカットボタンエリアの上下余白を詰め、高さを抑える */
    #odekake-filters-content {
        padding-top: 4px !important;
        padding-bottom: 8px !important;
    }

    /* ボタン自体の上下パディングを詰め、横幅は維持 */
    .filter-shortcut-btn {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        margin-bottom: 4px !important;
    }
}
/* style.css の末尾に追加 */

/* =========================================================
   マップ吹き出し（InfoWindow）のカスタムデザイン
   ========================================================= */
/* 1. Google Mapsの極悪なデフォルトスタイルを強制リセット */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    max-width: 85vw !important; /* ★追加: スマホ画面端での見切れを防止 */
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}
.gm-style .gm-style-iw-tc::after {
    background: #fff !important; /* 吹き出しの尻尾の色を合わせる */
}

/* 2. 吹き出しカード全体のコンテナ */
.iw-card {
    width: 240px;
    max-width: 100%; /* ★追加: 親枠（85vw）を絶対に超えないようにする */
    box-sizing: border-box; /* ★追加: 幅計算の狂いを防止 */
    font-family: 'sans-serif';
    /* overflow: hidden は .gm-style-iw-d 側で処理するため削除 */
    display: flex;
    flex-direction: column;
}

/* 上部の画像エリア */
.iw-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6; /* 画像がない場合のプレースホルダー色 */
    border-radius: 8px 8px 0 0;
}

.iw-content {
    padding: 12px 12px 12px; /* 左右の余白を少し広げて見やすく調整 */
}

/* ジャンル（小さいラベル） */
.iw-type {
    font-size: 10px;
    font-weight: bold;
    color: #3b82f6;
    margin-bottom: 4px;
}

/* イベントタイトル */
.iw-title {
    font-size: 15px;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 6px 0 !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 日付エリア */
.iw-date {
    font-size: 12px;
    color: #6b7280; /* 少しグレーにして文字のメリハリをつける */
    margin-bottom: 10px;
}

/* タグのコンテナ */
.iw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

/* 共通タグスタイル */
.iw-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    display: inline-block; /* 崩れ防止 */
}

/* ムードタグ（ピンク） */
.iw-tag-mood {
    background-color: #fdf2f8;
    color: #db2777;
    border: 1px solid #fce7f3;
}

/* 特徴タグ（スカイブルー） */
.iw-tag-feature {
    background-color: #f0f9ff;
    color: #0369a1;
    border: 1px solid #e0f2fe;
}

/* 詳細ボタン */
.iw-btn {
    display: block;
    background-color: #1f2937;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: bold;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.iw-btn:hover {
    background-color: #374151;
}
/* --- まとめ記事用イベントカード (event-summary-system) --- */
/* 優先的に読み込ませるため上部に配置 */
.event-summary-outer { margin: 2.5em 0; max-width: 800px; }
.es-card { border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; margin-bottom: 40px; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.es-card-label { background: #1a73e8; color: #fff; padding: 6px 15px; font-weight: bold; font-size: 13px; display: inline-block; border-bottom-right-radius: 12px; }
.es-card-inner { padding: 20px; }
.es-card-title { margin: 0 0 15px 0 !important; color: #333; font-size: 1.4em !important; line-height: 1.4; border: none !important; font-weight: bold; }
.es-card-layout { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.es-card-image { flex: 1; min-width: 280px; }
.es-card-image img { width: 100%; height: auto; border-radius: 8px; object-fit: cover; }
.es-card-info { flex: 1.2; min-width: 250px; }
.es-card-info dl { margin: 0; font-size: 0.95em; }
.es-card-info dt { font-weight: bold; color: #666; margin-top: 8px; float: left; width: 5em; clear: both; }
.es-card-info dd { margin-left: 5.5em; padding-top: 8px; color: #333; border-bottom: 1px solid #f0f0f0; padding-bottom: 4px; }
.es-card-description { background: transparent; padding: 0; font-size: 1em; line-height: 1.7; color: #333; margin-bottom: 20px; }
.es-card-btn-wrap { display: flex; gap: 12px; }
.es-btn-main, .es-btn-sub { flex: 1; text-align: center; padding: 12px; border-radius: 30px; text-decoration: none !important; font-weight: bold; font-size: 0.95em; transition: 0.2s; }
/* ▼ 強制適用：詳細度を上げて上書き ▼ */
.event-summary-outer a.es-btn-main,
.event-summary-outer a.es-btn-main:visited,
.event-summary-outer a.es-btn-main:hover,
.event-summary-outer a.es-btn-main:focus {
    background-color: #333333 !important; /* 濃いグレー（ほぼ黒） */
    color: #ffffff !important; /* 真っ白な文字 */
    border: 1px solid #333333 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 軽く影をつける */
}

/* ホバー時は少し薄くして反応を示す */
.event-summary-outer a.es-btn-main:hover {
    background-color: #555555 !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.es-btn-sub { background: #fff; color: #666 !important; border: 1px solid #ddd; }
.es-btn-sub:hover { background: #f0f0f0; }

@media screen and (max-width: 600px) {
    .es-card-inner { padding: 15px; }
    .es-card-title { font-size: 1.2em !important; }
    .es-card-image { min-width: 100%; }
    .es-btn-main, .es-btn-sub { padding: 10px; font-size: 0.9em; }
}


/* すべての要素の幅計算を、パディング込みで行うように強制 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* メインコンテンツのはみ出しを全ページで物理的に防ぐ */
#main, .content-area, .site-main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}
/* 【新規追加】2行全体を包むラッパー */
.hot-keywords-wrapper {
    margin: 15px auto;
    text-align: left;
    width: 100%;
}

/* 1行目：「いま注目のイベント」のタイトル部分 */
.hot-keywords-title {
    color: #ff4d4d; /* 炎をイメージした赤 */
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;    /* 2行目の流れる枠との隙間 */
    display: block;
    white-space: nowrap;
}

/* 2行目：流れるイベント名全体の枠（ピンクの座布団） */
.hot-keywords-container {
    background: #fff5f5;   /* ほんのり赤みがかった注目色 */
    border: 1px solid #ffe3e3;
    border-radius: 20px;   /* 角丸でモダンなタブ風に */
    overflow: hidden;      /* 枠外に飛び出たテキストを綺麗に隠す（スクロールの必須指定） */
    height: 36px;          /* 高さを均一に固定 */
    line-height: 34px;     /* 文字を上下中央に揃える */
    width: 100%;
    box-sizing: border-box;
}

/* ニュースティッカーの表示・計算クリッピング領域（横幅100%フル活用） */
.hot-keywords-ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

/* 滑らかに無限ループ移動するテキストトラック */
.hot-keywords-track {
    display: inline-block;
    white-space: nowrap;
    padding-right: 50px;   /* ループの切れ目のクッション余白 */
    animation: hanabiTickerLoop 25s linear infinite; /* 【速度】25秒かけて左へ1周。数字を小さくすると早くなります */
}

/* スマホ・PCのグラフィック機能を使って負荷ゼロでループさせる専用アニメーション */
@keyframes hanabiTickerLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* 2連構造のテキストがちょうど半分進んだ瞬間に位置を0に巻き戻し、無限に見せる */
    }
}

/* 各イベント名リンク */
.hot-keyword-link {
    color: #333 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.hot-keyword-link:hover {
    color: #ff4d4d !important;
    text-decoration: underline;
}

/* 区切り文字（ / ） */
.hot-keywords-separator {
    color: #cca3a3;
    margin: 0 15px;       /* リンク同士の間隔をゆったり広げて見やすく */
}

/* スマホ用の微調整（画面幅が狭いモバイル端末での見栄え最適化） */
@media screen and (max-width: 600px) {
    .hot-keywords-title {
        font-size: 13px;
    }
    .hot-keywords-container {
        height: 32px;
        line-height: 30px;
    }
    .hot-keyword-link {
        font-size: 12px;
    }
}
/*******************************************************************************
 * 【重要】WordPress管理画面の「追加CSS」に記載されている設定のメモ
 * * 理由：追加CSSは全ての外部CSS（このファイル含む）の後に読み込まれるため、
 * 優先順位が最も高くなります。表示崩れを防ぐための強力な上書きはあちらで行っています。
 ******************************************************************************/

/* 以下の項目は現在「追加CSS」側で管理・実行されています。
  1. 日付タグ（.page .date-tags）およびサイト名の非表示
  2. 関連記事セクションのアイコンフォント（Font Awesome 5 Free）強制適用
  3. モバイルメニュー（#navi-menu-content）の幅調整（幅60% / 最大260px）
  
  4. モバイル（480px以下）のレイアウト強制修正：
     - #content, .wrap, #content-in の幅100%固定とFlex解除
     - #main の回り込み防止と左右パディング（10px）確保
     - #sidebar（サイドバー）の完全非表示
     
  5. マップページ専用（.page-template-page-hanabi-map-php）：
     - ヘッダー画像下の余白（padding-bottom）を0に
     - コンテンツ上部の隙間（margin-top / padding-top）を排除
     
  6. スマホ版マップ高さ調整（480px以下）：
     - #map の高さを 72vh (!important) に強制拡張
     - 最低限の高さ（min-height: 480px）を担保
*/

/* --- 統合メモ終了 --- */