/* ==========================================================================
   まとめ記事 (single-matome_article.php) 固有のスタイル
   ========================================================================== */

/* --- 記事全体を囲むコンテナ (PHP側で適切なクラスを付与) --- */
/* 例えば、<div id="primary" class="content-area matome-article-container"> のようにする */
.matome-article-container {
    /* 上の .container のスタイルを継承・利用する。
       もし固有のパディングやマージンが必要ならここで指定。 */
    padding-top: 30px; /* 記事上部の余白 */
    padding-bottom: 40px; /* 記事下部の余白 */
    /* background-color: #fff; は .container で指定されていれば不要 */
    /* border: 1px solid #e0e0e0; (枠線が必要なら) */
    /* border-radius: 8px; (角丸が必要なら) */
    /* margin-bottom: 40px; (フッターとの間隔) */
}

/* 記事本体のラッパー (.matome-article-entry) */
.matome-article-entry {
    /* ここでは特に幅やマージンを指定せず、親の .matome-article-container や
       .container の幅制御に任せる。
       固有の背景色やパディングが必要な場合はここにも指定可能。 */
}

/* (以下、既存の .matome-article-entry 配下のCSSはそのまま活用) */

/* --- 観光地カードの基本情報部分 (spot-base-info-card) のスタイル調整 --- */
/* single-place.php の .place-card やトップページのカードとデザインを近づける場合 */
.spot-base-info-card {
    display: flex;
    gap: 1.5em; /* 画像とテキストの間隔 */
    margin-bottom: 1.5em;
    padding: 1em;
    border-radius: 8px; /* 角丸を少し大きく */
    border: 1px solid #e0e0e0; /* 枠線を少しはっきり */
    background-color: #fff; /* 背景色 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.08); /* 影を少しつける */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.spot-base-info-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.spot-base-info-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
}

.spot-base-info-card img {
    width: 150px; /* 画像の幅 */
    height: 100px; /* 画像の高さ */
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    /* margin-right は gap で指定 */
}

.spot-base-info-card .spot-card-content { /* テキストコンテンツ部分 */
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* タイトルと抜粋を縦に並べる */
}

.spot-base-info-card .spot-card-content p { /* カード内の抜粋など */
    font-size: 0.9em;
    color: #555;
    margin-bottom: 0; /* 抜粋が複数行になることを想定し、最後の要素としてマージンなし */
    line-height: 1.5;
}

/* 各スポットのタイトル (place投稿のタイトル) をカード内に入れる場合 */
/* もしPHP側で .spot-item > h3 を .spot-base-info-card の中に入れたい場合は、
   そのようにHTML構造を変更し、CSSも調整します。
   現状のPHPでは .spot-item > h3 はカードの外にあります。
   もし .spot-item > h3 をカードデザインに含めたい場合は、PHPの構造変更も検討してください。
   ここでは、現状のPHP構造のままで、カードデザインを少しリッチにする方向で調整しています。
*/
.spot-item > h3 { /* 各スポットのタイトル (place投稿のタイトル) */
    font-size: 1.6em;
    color: #333; /* single-place.php の .entry-title のような色 */
    margin-top: 0;
    margin-bottom: 0.8em;
    /* 必要であれば下線などを追加 */
    /* padding-bottom: 0.5em; */
    /* border-bottom: 1px solid #eee; */
}


/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .site-content, /* または #content, .main-content など */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .matome-article-container {
        padding-top: 20px;
        padding-bottom: 30px;
    }
    .matome-article-entry .entry-title {
        font-size: 1.8em;
    }
    .spot-item > h3 {
        font-size: 1.4em;
    }
    .spot-base-info-card {
        flex-direction: column;
        gap: 1em;
    }
    .spot-base-info-card img {
        width: 100%;
        height: auto; /* スマホでは高さを自動に */
        max-height: 200px; /* 高すぎないように上限 */
        object-fit: contain; /* または cover のまま */
        margin-bottom: 1em;
    }
}

/* ================================================== */
/* 楽天ホテルバナー用スタイル                       */
/* ================================================== */

/* バナー全体を囲むボックス */
.rakuten-hotel-banner-container {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* 「〇〇の人気ホテル」という見出し */
.rakuten-hotel-banner-container h3 {
    font-size: 1.7em;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    display: inline-block;
}

/* 3つのホテルを横並びにするための設定 */
.rakuten-hotel-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* 各ホテル情報（カードデザイン） */
.rakuten-hotel-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rakuten-hotel-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* カード全体をリンクに */
.rakuten-hotel-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ホテルの画像部分 */
.rakuten-hotel-item .hotel-image-wrapper {
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
}
.rakuten-hotel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.rakuten-hotel-item:hover img {
    transform: scale(1.08);
}

/* ホテルのテキスト情報部分 */
.rakuten-hotel-item .hotel-text-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ホテルの名前 */
.rakuten-hotel-item .hotel-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}
.rakuten-hotel-item a:hover .hotel-name {
    color: #0073aa;
}

/* ホテルのキャッチコピー */
.rakuten-hotel-item .hotel-caption {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin-top: auto;
    padding-top: 12px;
}

/* 楽天のクレジット表示 */
.rakuten-credit {
    text-align: right;
    font-size: 0.8em;
    color: #777;
    margin-top: 25px;
    margin-bottom: 0;
}
.rakuten-credit a {
    color: #777;
    text-decoration: none;
}
.rakuten-credit a:hover {
    text-decoration: underline;
}

/* スマートフォン表示用の設定 */
@media (max-width: 768px) {
    .rakuten-hotel-list {
        grid-template-columns: 1fr;
    }
    .rakuten-hotel-banner-container h3 {
        font-size: 1.4em;
    }
}
/* ========================================
   パンくずリスト & 言語スイッチャーエリア
   ======================================== */

/* --- バー全体のコンテナ --- */
.breadcrumb-container {
    background-color: #f8f9fa; /* バー全体の背景色 (薄いグレー) */
    border-bottom: 1px solid #e9ecef; /* バーの下に細い境界線 */
    padding: 0 20px; /* 左右の余白 (サイト全体の余白と合わせる) */
}

/* --- Flexboxレイアウトのコンテナ (.container) --- */
.breadcrumb-container .container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 要素間にスペースを確保 */
    flex-wrap: wrap; /* スマホなどで折り返す */
    min-height: 50px; /* バーの最低限の高さを確保 */
    padding: 0; /* 親で指定したのでリセット */
}

/* --- パンくずリスト本体 --- */
.breadcrumb {
    font-size: 14px;
    color: #6c757d; /* 少し薄い文字色 */
    margin: 0; /* 不要な余白をリセット */
    padding: 5px 0; /* 上下の余白を少し */
}

.breadcrumb .current-item {
    color: #343a40; /* 現在のページの文字色を濃く */
    font-weight: normal; /* 太字は解除 (お好みで) */
}

/* --- 言語スイッチャー (右寄せ) --- */
.language-switcher {
    margin-left: auto; /* ★これで右端に配置されます */
    padding-left: 20px; /* パンくずリストとの間に最低限の隙間を確保 */
}

/* --- スイッチャーのボタンリスト --- */
.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px; /* ボタン間の隙間 */
}

.language-switcher li {
    margin: 0;
}

/* --- スイッチャーの各ボタン (リンク) --- */
.language-switcher li a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500; /* 少し太字に */
    text-decoration: none;
    color: #495057;
    border-radius: 5px; /* 角丸 */
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* --- ボタンのホバー時 --- */
.language-switcher li a:hover {
    background-color: #e9ecef;
    color: #000;
}

/* --- ★選択中の言語ボタンのスタイル --- */
.language-switcher li.active a {
    background-color: #8bc3ffff; /* 背景色をはっきりと */
    color: #ffffff; /* 文字色を白に */
    cursor: default;
}

/* --- サイドバー導入によるレイアウト競合の修正 (差し替え版) --- */

/* 1. メインコンテンツを囲むコンテナの幅と中央寄せを一旦リセットします */
.site-main .container.place-detail-page {
    max-width: none; /* 最大幅の指定を解除 */
    margin: 0;       /* 中央寄せをリセット */
    padding: 0;      /* 内側の余白をリセット */
}

/* 2. 記事本体(.place-article)に最大幅と中央寄せを再設定します */
.site-main .place-article {
    max-width: 900px; /* 記事の最大幅を900pxに設定（元々の値）*/
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;    /* 上下の余白を再設定 */
    margin-bottom: 60px;
}

/* ======================================== */
/*  [競合解消用] レイアウト基本構造           */
/* ======================================== */

.content-wrapper { display: flex; gap: 30px; max-width: 1200px; margin: 40px auto; padding: 0 15px; align-items: flex-start; }
#sidebar { width: 280px; flex-shrink: 0; }
.site-main { flex-grow: 1; min-width: 0; }
.site-main .place-article { margin-top: 0; margin-bottom: 0; }
/* ======================================== */
/*  [新しいサイドバー] Ver.10 (シンプル・クリーン版) */
/* ======================================== */

/* ======================================== */
/*  [新しいサイドバー] Ver.11 (幅・文字サイズ調整版) */
/* ======================================== */

/* --- 2カラムレイアウト基本構造 --- */
.content-wrapper { display: flex; gap: 30px; max-width: 1200px; margin: 40px auto; padding: 0 15px; align-items: flex-start; }
#sidebar { 
    width: 320px; /* ★ 変更点: 280px から 320px に拡大 */
    flex-shrink: 0; 
}
.site-main { flex-grow: 1; min-width: 0; }
.site-main .place-article { margin-top: 0; margin-bottom: 0; }

/* --- ウィジェット共通スタイル --- */
.sidebar-widget { 
    border: 1px solid #e0e0e0; 
    border-radius: 6px; 
    margin-bottom: 20px; 
    background-color: #fff;
}
.widget-title { 
    font-size: 16px; /* ★ 変更点: 14px -> 16px に拡大 */
    font-weight: 600; 
    padding: 14px 16px; 
    margin: 0; 
    background-color: #f7f7f7;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 5px 5px 0 0;
}
.widget-content { padding: 16px; }

/* --- [個別] カテゴリウィジェット --- */
.parent-category-group { margin-bottom: 12px; }
.parent-category-group:last-child { margin-bottom: 0; }
.accordion-title-inner, .parent-category-name-no-children { 
    font-size: 15px; /* ★ 変更点: 14px -> 15px に拡大 */
    font-weight: 600; 
    color: #333; 
    padding: 9px 12px; 
    margin: 0; 
    position: relative; 
    border-radius: 4px;
    background-color: #fafafa;
}
.accordion-title-inner { 
    cursor: pointer; 
    transition: background-color 0.2s;
}
.accordion-title-inner:hover { 
    background-color: #f0f0f0;
}
.accordion-title-inner::after { 
    content: '▼'; 
    font-size: 9px; 
    color: #999; 
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%) rotate(0deg); 
    transition: transform 0.2s; 
}
.accordion-title-inner.active::after { 
    transform: translateY(-50%) rotate(180deg); 
}
.child-category-list { 
    list-style: none; 
    padding-left: 0; 
    margin: 8px 0 0 0; 
    display: none; 
}
.child-category-list li a { 
    display: block; 
    padding: 8px 12px; /* ★ 変更点: 上下余白を少し拡大 */
    font-size: 14px; /* ★ 変更点: 13px -> 14px に拡大 */
    color: #0066cc; 
    text-decoration: none;
    transition: background-color 0.2s;
}
.child-category-list li a:hover { 
    background-color: #f5f5f5;
}

/* --- [個別] 都道府県ウィジェット --- */
.region-group { 
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.region-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.region-name { 
    font-size: 14px; /* ★ 変更点: 13px -> 14px に拡大 */
    font-weight: 600; 
    margin: 0 0 10px 0; 
    color: #555;
}
.prefecture-list { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px 12px; /* ★ 変更点: 隙間を少し拡大 */
}
.prefecture-list a { 
    font-size: 14px; /* ★ 変更点: 13px -> 14px に拡大 */
    color: #0066cc; 
    text-decoration: none;
}
.prefecture-list a:hover { 
    text-decoration: underline;
}

/* --- [個別] 関連/最新スポットウィジェット --- */
.post-list-widget .post-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 8px; 
    text-decoration: none; 
    color: #333; 
    border-radius: 4px; 
    transition: background-color 0.2s; 
    margin-bottom: 8px;
}
.post-list-widget .post-item:last-child { margin-bottom: 0; }
.post-list-widget .post-item:hover { 
    background-color: #f8f8f8;
}
.post-list-widget .thumb { 
    width: 70px; 
    height: 70px; 
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}
.post-list-widget .thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}
.post-list-widget .title { 
    font-size: 14px; /* ★ 変更点: 13px -> 14px に拡大 */
    line-height: 1.5;
}
.post-list-widget .no-posts { 
    font-size: 14px; /* ★ 変更点: 13px -> 14px に拡大 */
    color: #999; 
    padding: 10px 5px;
    text-align: center;
}

/* --- [個別] 広告ウィジェット --- */
.ad-widget-content { 
    padding: 10px; 
    text-align: center; 
}
.ad-widget-content a { 
    display: inline-block; 
    margin: 6px 2px;
}
.ad-widget-content img { 
    max-width: 100%; 
    height: auto; 
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) { 
    .content-wrapper { flex-direction: column; } 
    #sidebar { width: 100%; margin-bottom: 30px; } 
}
/* ======================================== */
/*  トップへ戻るボタン (2025年版)          */
/* ======================================== */

.back-to-top-btn {
  /* --- 位置と基本デザイン --- */
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%; /* 円形にする */
  text-decoration: none;
  z-index: 1000;

  /* --- 配色 (2025年風・ライトブルー) --- */
  background-color: #c6edff; /* 背景色: やわらかいスカイブルー */
  color: #fff; /* アイコンの色: ホワイト */

  /* --- 見た目の調整 --- */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 少し浮かび上がるような影 */
  border: 2px solid rgba(255, 255, 255, 0.5); /* 内側に白い縁取りを少し追加 */

  /* --- アイコンを中央に配置 --- */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;

  /* --- 表示/非表示のアニメーション --- */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px); /* 少し下から浮き上がる演出 */
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s ease-out;
}

/* --- ホバー時のスタイル --- */
.back-to-top-btn:hover {
  background-color: #7ed7fd; /* 少し濃いブルーに */
  transform: translateY(-2px); /* 少し上に動く */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- JavaScriptで表示するためのクラス --- */
.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* 元の位置に戻す */
}
/* ===== ユーザーフィードバック機能 ===== */
.user-feedback-section {
    margin-top: 40px;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 画像投稿の呼びかけ */
.add-photo-prompt {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.add-photo-prompt p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.add-photo-prompt .dashicons {
    color: #999;
    font-size: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

.add-photo-prompt a {
    color: #0073aa;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.add-photo-prompt a:hover {
    color: #005a87;
    border-bottom-color: #0073aa;
}

/* ===== ユーザーフィードバック機能 ===== */
.user-feedback-section {
    margin-top: 40px;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 画像投稿の呼びかけ */
.add-photo-prompt {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 20px;
    text-align: center;
}

.add-photo-prompt p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.add-photo-prompt .dashicons {
    color: #999;
    font-size: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

.add-photo-prompt a {
    color: #0073aa;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.add-photo-prompt a:hover {
    color: #005a87;
    border-bottom-color: #0073aa;
}

/* 情報修正報告フォーム */
.report-information-wrapper {
    margin: 20px 0;
}

/* アコーディオンボタン */
.accordion-toggle {
    background-color: #fff;
    color: #444;
    cursor: pointer;
    padding: 16px 20px;
    width: 100%;
    border: 1px solid #e0e0e0;
    text-align: left;
    outline: none;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.accordion-toggle .dashicons {
    margin-right: 10px;
    color: #e65054;
    font-size: 20px;
}

.accordion-toggle:hover {
    background-color: #f8f8f8;
}

.accordion-toggle.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.accordion-toggle::after {
    content: '\f140';
    font-family: 'dashicons';
    font-size: 20px;
    color: #999;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.accordion-toggle.active::after {
    content: '\f142';
}

/* アコーディオンの中身 */
.accordion-content {
    padding: 0 20px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.accordion-content.open {
    padding: 20px;
}

.accordion-content p {
    margin-top: 0;
    margin-bottom: 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* フォーム要素 */
.report-checkbox-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.report-checkbox-list li {
    margin-bottom: 12px;
}

.report-checkbox-list label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.report-checkbox-list input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.report-checkbox-list textarea {
    width: 100%;
    margin-top: 10px;
    margin-left: 26px;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    display: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.report-checkbox-list textarea:focus {
    outline: none;
    border-color: #0073aa;
}

/* Show textarea when 'Other' checkbox is checked */
.report-checkbox-list li:has(input[type="checkbox"]:checked) textarea {
    display: block;
}

.submit-report-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 15px;
    transition: background-color 0.2s ease;
}

.submit-report-button:hover {
    background-color: #005a87;
}

.submit-report-button:active {
    background-color: #004d73;
}

/* 送信完了メッセージ */
.feedback-success-message {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    padding: 16px 20px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .user-feedback-section {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .add-photo-prompt {
        padding: 15px;
    }
    
    .accordion-toggle {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .accordion-content {
        padding: 0 16px;
    }
    
    .accordion-content.open {
        padding: 16px;
    }
    
    .report-checkbox-list textarea {
        margin-left: 0;
    }
    
    .submit-report-button {
        width: 100%;
        padding: 13px;
    }
}

/* ======================================================= */
/*  【修正用コード】モバイル表示でサイドバーを記事の下に移動  */
/* ======================================================= */
@media (max-width: 992px) {

    /* 親要素(.content-wrapper)が縦積み(column)になった際に
       中の要素の表示順を制御できるように display: flex を維持します */
    .content-wrapper {
        display: flex;
        flex-direction: column;
    }

    /* メインコンテンツ（記事）を先に表示する */
    .site-main {
        order: 1;
    }

    /* サイドバーを後に表示する */
    #sidebar {
        order: 2;
    }
}
/* ===== ▼▼▼ Leafletポップアップのカスタムデザイン ▼▼▼ ===== */

/* ポップアップ全体の角を丸くし、影を付ける */
.leaflet-popup-constent-wrapper {
    background: #ffffff;
    border-radius: 12px; /* 角の丸み */
    padding: 0; /* 内側の余白をリセット */
}

/* Leafletデフォルトの余白をなくす */
.leaflet-popup-content {
    margin: 0 !important;
    padding: 0;
    width: 250px; /* ポップアップの横幅を固定 */
}

/* ポップアップの「しっぽ」部分にも影を適用 */
.leaflet-popup-tip {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== ▼▼▼ Leafletポップアップのカスタムデザイン v3 ▼▼▼ ===== */
.leaflet-popup-content-wrapper { background: #ffffff; border-radius: 10px; box-shadow: none; padding: 0; }
.leaflet-popup-content { margin: 0 !important; padding: 0; width: 140px !important; }
.leaflet-popup-tip { box-shadow: none; }

/* Flexboxレイアウトの親コンテナ */
.custom-leaflet-popup {
    display: flex;
    flex-direction: column; /* 要素を縦に並べる */
    padding: 10px;
}

/* 上部エリア（画像とタイトル） */
.popup-content-main {
    text-align: center; /* 中の要素を中央揃え */
    margin-bottom: 8px;
}
.popup-content-main img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.popup-content-main b a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
}
.popup-content-main b a:hover { color: #007bff; }

/* 下部エリア（絵文字タグ） */
.popup-footer {
    margin-top: auto; /* 上の要素を押し上げて、自身は一番下に配置 */
    width: 100%;
    display: flex;
    justify-content: flex-start; /* 左詰め */
    gap: 6px; /* 絵文字間のスペース */
}
.popup-category-emoji {
    font-size: 18px;
}

.leaflet-popup-close-button { padding: 8px 8px 0 0 !important; font-size: 18px; }
/*===================*/

