/*
Theme Name: ikuSpot Child
Template:   generatepress
*/



/* =============== 0) Settings =============== */
:root{
  /* spacing */
  --spot-space-y: clamp(28px, 4vw, 56px);
  --spot-space-top: clamp(30px, 5vw, 40px);
  --spot-space-bottom: clamp(24px, 3.2vw, 44px);

  --card-min-h: 10vh;

  /* layout */
  --safe-top: 64px;
  --safe-gap: 0px;
  --adminbar: 0px;

  /* title */
  --title-pad-x: .6rem;
  --title-bg-alpha: .86;
  --title-max: 2.1rem;
  --title-min: 1.25rem;
  --title-fixed-min: 1.15rem;

  /* description (balloon) */
  --balloon-alpha: .88;
  --title-desc-gap: 0px;
  --desc-max: 1100px;
  --desc-radius: 18px;

  /* theme colors */
  --canvas-bg: #EEF2F7;
  --card-bg:   #FFFFFF;
  --card-border: rgba(15,23,42,.06);

  /* shadows */
  --shadow-base: 0 2px 8px rgba(0,0,0,.06);
  --shadow-hover: 0 6px 16px rgba(0,0,0,.10);
  --shadow-card: 0 8px 24px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --card-shadow: var(--shadow-card);

  /* components */
  --card-radius: 0px; /* 角丸なし（現行維持） */

  /* favorites */
  --fav-nudge-y: -2px;

  /* caption animation */
  --char-gap: .035s;
  --char-start-delay: .08s;
  --char-ease: cubic-bezier(.16,.84,.19,1);
  --char-dur: .44s;

  /* map caption tops */
  --caption-top-pc: 112px;
  --caption-top-tab: 120px;
  --caption-top-sp: 136px;

  /* map dots */
  --map-dots-bottom: 88px;

  /* map heights */
  --map-min: 480px;
  --map-max: 1000px;
  --map-wrap-current: 78vh;
  --map-slide-current: 78vh;
  --map-wrap-svh: 78svh;
  --map-slide-svh: 82svh;

  /* bleed fix（←追加：フルブリードの左右1px対策） */
  --map-bleed-fix: 2px;


  /* brand / buttons (Home) */
  --brand: #0073aa;
  --brand-weak: #f0f8ff;
  --btn-border: #ddd;
  --btn-text: #444;

  /* badges palette */
  --badge1-bg:#ecfeff; --badge1-bd:#bae6fd; --badge1-fg:#075985;
  --badge2-bg:#f5f3ff; --badge2-bd:#ddd6fe; --badge2-fg:#5b21b6;
  --badge3-bg:#fdf2f8; --badge3-bd:#fbcfe8; --badge3-fg:#9d174d;
  --badge4-bg:#ecfdf5; --badge4-bd:#bbf7d0; --badge4-fg:#065f46;
  --badge5-bg:#fffbeb; --badge5-bd:#fde68a; --badge5-fg:#92400e;
  --badge6-bg:#eef2ff; --badge6-bd:#c7d2fe; --badge6-fg:#3730a3;

  /* desc shadow */
  --desc-shadow:
      12px 12px 0 rgba(160,205,226,.28),
      8px 12px 18px rgba(0,0,0,.09),
      18px 24px 36px rgba(0,0,0,.05);
  --desc-shadow-sp:
      9px 9px 0 rgba(160,205,226,.26),
      7px 10px 16px rgba(0,0,0,.09),
      16px 20px 32px rgba(0,0,0,.05);

  /* card gap */
  --card-gap-y: clamp(128px, 24svh, 256px);


}
@media (max-width:1024px){
  :root{
    --map-dots-bottom: 96px;
    --map-wrap-current: 74vh;
    --card-gap-y: clamp(102px, 18vh, 240px);
  }
}
@media (max-width:768px){
  :root{
    --safe-gap: 0px;
    --spot-space-top: clamp(30px, 5vw, 40px);
    --spot-space-bottom: clamp(20px, 3vw, 36px);
    --desc-max: 96vw;
    --desc-radius: 16px;
    --safe-top: 0px;
    --map-dots-bottom: 104px;
    --map-wrap-current: 78vh;
    --map-slide-current: 82vh;
  }
}
@media (max-width:480px){
  :root{ --map-wrap-current: 82vh; }
}




/* =============== 1) Reset & Base =============== */
html{ box-sizing:border-box; overflow-x:hidden; }
*,*::before,*::after{ box-sizing:inherit; }

@font-face{
  font-family:'YasashisaGothic';
  src:url('/wp-content/themes/generatepress-child/font/YasashisaGothicBoldV2-bold.woff2') format('woff2');
  font-weight:normal; font-style:normal;
}

body{
  margin:0; padding:0;
  width:100%; max-width:100%;
  overflow-x:hidden; touch-action:pan-y;
  font-family:'YasashisaGothic',sans-serif;
  padding-bottom:120px; /* FAB space */
  background: var(--canvas-bg);
}

/* =============== 2) Layout（幅・余白） =============== */
body.tax-location .grid-container,
body.tax-location .site-content,
body.tax-location .inside-article,
body.tax-location .content-area,
body.tax-location #primary,
body.tax-location #content{
  background: transparent;
  margin-left:auto;
  margin-right:auto;
  max-width: none;
  width: 100%;
  padding: 0;
  box-shadow:none;
  border:0;
}
.spot-card-box{ padding-top:var(--spot-space-top); padding-bottom:var(--spot-space-bottom); }

/* =============== 2.5) tax-location：縦方向スクロールスナップの無効化 =============== */
body.tax-location #vp-root,
body.tax-location .location-archive,
body.tax-location .cards-layout{
  scroll-snap-type: initial;      /* (=none) */
}
body.tax-location .spot-card{
  scroll-snap-align: initial;     /* (=auto) */
  scroll-snap-stop: normal;
}
body.tax-location{ overscroll-behavior-y: contain; }

/* =============== 3) Header / Nav / Footer =============== */
#site-header{
  position:sticky; top:var(--adminbar); z-index:9999;
  box-shadow:0 2px 4px rgba(0,0,0,.05); background:#fff;
}
.primary-menu{ display:flex; gap:1rem; list-style:none; margin:0; padding:0; }
.primary-menu a{ text-decoration:none; font-weight:600; }
.site-info{ text-align:center; padding:1rem 0; background:#fff; }
.breadcrumb{
  display:flex; flex-wrap:wrap; gap:.3rem; font-size:.875rem;
  margin-bottom:clamp(18px,2.6vw,28px);
}




/* =============== 4) Content（タイトル/バッジ/説明/メタ） =============== */
.spot-title-heading{
  margin:0 0 6px;
  font-family:'YasashisaGothic',sans-serif;
  font-weight:800;
  font-size:2rem;
  line-height:1.25;
  color:#333;
  background: rgba(255,255,255,var(--title-bg-alpha));
  border-radius:0;
  padding:.30rem var(--title-pad-x) .20rem;
  border-left:0;
  padding-left:var(--title-pad-x);
  min-width:0;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  cursor:pointer; transition:text-overflow .3s ease-in-out;
}
.spot-title-heading.is-expanded{
  white-space:normal; overflow:visible; text-overflow:clip; display:block;
}
.spot-title-heading:hover{ overflow:visible; white-space:normal; }
.spot-title-heading a{ color:inherit; text-decoration:none; }
.spot-title-heading a:hover{ opacity:.85; }
body.tax-location .spot-title-heading{ margin-bottom:0; }
.spot-title-heading + .spot-description-text{ margin-top:var(--title-desc-gap); }

/* ★ タイトル行：左だけ0にしてハートを完全左寄せ。右は従来どおり余白を確保 */
.spot-title-row{
  display:flex; align-items:center;
  gap: clamp(4px, 0.6vw, 8px);
  min-height: var(--fav-size, 42px);
  padding-left: 0;                          /* ← 左寄せの肝 */
  padding-right: var(--title-pad-x);
  margin-bottom: clamp(10px, 1.6vw, 20px);  /* ← バッジとの距離 */
}
/* タイトル側にだけ左パディングを戻す（ハートは左端に張り付く） */
.spot-title-row .spot-title-heading{
  flex:1 1 auto; min-width:0; margin:0; line-height:1.25;
  padding-left: var(--title-pad-x);
}

/* お気に入りボタン（形崩れ防止） */
.fav-btn{
  appearance:none; -webkit-appearance:none;
  --fav-size: clamp(36px, 4.4vw, 44px);
  width:var(--fav-size); height:var(--fav-size);
  padding:0; display:inline-flex; align-items:center; justify-content:center;
  border-radius:50%;
  background:#fff; border:1px solid rgba(0,0,0,.15);
  color:#666; box-shadow: var(--shadow-base);
  cursor:pointer; -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease,
             transform .15s ease, background-color .15s ease;
  transform: translateY(var(--fav-nudge-y, 0));
  flex:0 0 auto; line-height:1; aspect-ratio:1/1;
}
.fav-btn svg{ display:block; width:62%; height:62%; }
.fav-btn svg path{ fill: currentColor; stroke: none; }
.fav-btn:not(:has(svg))::before{
  content:"♥"; font-size: calc(var(--fav-size) * 0.52); line-height:1;
  display:block; transform: translateY(-2%); color: currentColor;
}
@media (hover:hover){
  .fav-btn:hover{ transform: translateY(calc(var(--fav-nudge-y, 0) - 1px)); box-shadow: var(--shadow-hover); }
}
.fav-btn.is-active{ color:#e11d48; border-color:currentColor; background: rgba(225,29,72,.06); }
.fav-btn:active{ transform:translateY(var(--fav-nudge-y, 0)); box-shadow: var(--shadow-base); }
.fav-btn:focus-visible{ outline:2px solid rgba(225,29,72,.35); outline-offset:2px; }

/* バッジ */
.feature-badges{
  display:flex; flex-wrap:wrap; gap:.5rem .6rem;
  margin:.12rem 0 .60rem;
}
.feature-badge{
  border:1px solid #e5e7eb; background:#f8fafc; color:#1f2937;
  padding:.28rem .78rem; border-radius:9999px; font-size:.86rem; font-weight:600; line-height:1.2;
  user-select:none; box-shadow:0 1px 0 rgba(0,0,0,.04);
  transition:transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}
.feature-badge:hover{ transform:translateY(-1px); box-shadow:0 2px 6px rgba(0,0,0,.06); }
.feature-badge:nth-child(6n+1){ background:var(--badge1-bg); border-color:var(--badge1-bd); color:var(--badge1-fg); }
.feature-badge:nth-child(6n+2){ background:var(--badge2-bg); border-color:var(--badge2-bd); color:var(--badge2-fg); }
.feature-badge:nth-child(6n+3){ background:var(--badge3-bg); border-color:var(--badge3-bd); color:var(--badge3-fg); }
.feature-badge:nth-child(6n+4){ background:var(--badge4-bg); border-color:var(--badge4-bd); color:var(--badge4-fg); }
.feature-badge:nth-child(6n+5){ background:var(--badge5-bg); border-color:var(--badge5-bd); color:var(--badge5-fg); }
.feature-badge:nth-child(6n+6){ background:var(--badge6-bg); border-color:var(--badge6-bd); color:var(--badge6-fg); }

/* モバイル微調整（基準線合わせ） */
@media (max-width:768px){
  .tax-location .spot-card .spot-title,
  .spot-title-heading{
    font-size: clamp(22px, 6.8vw, 32px);
    line-height: 1.18;
    margin: 2px 0 0; padding: 0; letter-spacing: .02em; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .spot-title-row{
    min-height: var(--fav-size, 42px);
    margin-bottom: clamp(12px, 2.6vw, 22px);
    padding-left: 0; padding-right: var(--title-pad-x); /* 維持 */
  }
  .spot-title-row .fav-btn{ --fav-nudge-y: -2px; }
}
@media (max-width:360px){
  .spot-title-heading{ font-size: clamp(20px, 6.2vw, 26px); }
}








/* =============== 5) Media（Instagram / Google Map） =============== */

/* --- Instagram 横スクロールのデフォルト（他ページ用の既存挙動は維持） --- */
.insta-scroll{
  display:flex; gap:1rem; overflow-x:auto; overscroll-behavior-x:contain;
  padding-bottom:.75rem; scrollbar-width:thin; background:#fff;
}
.insta-scroll::-webkit-scrollbar{ height:8px; }
.insta-scroll::-webkit-scrollbar-thumb{ background:#bbb; border-radius:4px; }
.insta-card{ flex:0 0 320px; max-width:100%; }
.insta-card blockquote.instagram-media{ width:100%; max-width:100%; margin:0; }

/* --- Map（単体） --- */
.map-wrap{
  position:relative; width:100%;
  padding-top:0;
  height: clamp(var(--map-min), var(--map-wrap-current), var(--map-max));
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  overflow:hidden;
  line-height:0;                 /* 行ボックス起因の1px隙間を抑止 */
}
.map-wrap iframe,
.map-wrap .gmap{
  position:absolute; inset:0; width:100%; height:100%;
  border:0; border-radius:inherit;
}
@supports (height:1svh){
  .map-wrap{ height: clamp(var(--map-min), var(--map-wrap-svh), var(--map-max)); }
}

/* --- 画像・動画なしのプレースホルダー --- */
.map-wrap .no-image,
.map-slide .no-image,
.spot-media.spot-image .no-image{
  position:absolute; inset:0;
  display:grid; place-items:center;
  text-align:center; padding:0 1rem;
  background:#000; color:#fff;
  line-height:1.5; font-weight:800;
  font-size:clamp(1rem, 2.4vw, 1.4rem);
  border-radius:inherit; z-index:2;
}

/* --- Media Switcher（Map / Insta を同一枠で切替）--- */
.media-switcher{ position:relative; width:100%; height:100%; }
.media-pane{ position:absolute; inset:0; }
.media-pane[hidden]{ display:none !important; }

/* ▼ ここが重要：Cardsレイアウト内の Switcher では
   6) セクションの .insta-media の max-height を“無効化”しつつ全画面化 */
.cards-layout .spot-card .media-switcher .insta-media{
  padding-inline: 0;
  height: 100%;
  max-height: none;         /* ← 6) の 26svh 制限を打ち消す */
  overflow: hidden;
  background: #fff;
}

/* Insta面を Map と同じ “1ページ=100% 幅・高さ” の横スライダー化 */
.cards-layout .spot-card .media-switcher [data-pane="insta"] .insta-scroll{
  height: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  background: #fff;
}
.cards-layout .spot-card .media-switcher [data-pane="insta"] .insta-card{
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
}

/* Instagram埋め込みの “固定高さ/幅” を全面化（外部inline styleに勝つため !important） */
.cards-layout .spot-card .media-switcher [data-pane="insta"] .insta-card iframe,
.cards-layout .spot-card .media-switcher [data-pane="insta"] .insta-card blockquote.instagram-media{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* --- メディア切替ボタン（Map/Instagram 左下） --- */
.insta-media{ position:relative; } /* Insta面でも左下固定 */
.map-slider-wrap .media-toggle,
.map-wrap .media-toggle,
.insta-media .media-toggle{
  position:absolute; left:10px; bottom:10px;
  z-index:50;
  background:#000; color:#fff;
  border:none; border-radius:18px;
  padding:.45rem .9rem;
  font-weight:800; font-size:14px; line-height:1;
  box-shadow:0 3px 10px rgba(0,0,0,.25);
  cursor:pointer; user-select:none;
}
.media-toggle:focus-visible{ outline:2px solid rgba(255,255,255,.75); outline-offset:2px; }
@media (hover:hover){
  .media-toggle:hover{ filter:brightness(1.05); transform: translateY(-1px); transition:transform .12s ease; }
}
.media-toggle:active{ transform:none; }










/* =============== 6) Cards Layout（全カード同一高さ／1画面に押し込まない） =============== */
html:has(body.tax-location){ --sticky-offset: 0px; }

.cards-layout{
  --card-pad: clamp(14px, 2vw, 22px);
  --card-h: 165svh;
  --map-h: 72svh;
  --insta-max: 26svh;
}
.cards-layout .spot-card{
  box-sizing:border-box;
  position:relative;
  width:100%; max-width:none;
  height:auto;
  margin-block: var(--card-gap-y);
  margin-inline:0;
  display:grid;
  grid-template-rows:
    var(--map-h)
    auto auto auto auto auto auto;
  align-content:start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 0;               /* ← 追加：左右ボーダーを消す */
  border-right: 0;              /* ← 追加：左右ボーダーを消す */
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow:hidden;
  min-height: var(--card-min-h);
}
.cards-layout .spot-media{ position:relative; background:#f3f6f8; }

.cards-layout .spot-card > :where(.spot-card-header,
                                  .spot-title-heading,
                                  .spot-title-row,
                                  .feature-badges,
                                  .spot-body,
                                  .spot-meta,
                                  .spot-description-text){
  max-width:none; margin:0;
  padding-inline: var(--card-pad);
  text-align:left;
}
.cards-layout .spot-body{ padding: var(--card-pad); }

.cards-layout .spot-card > .spot-body:empty{ display:none; }
.cards-layout .spot-card > .spot-media{ padding-inline:0; }

.cards-layout .spot-card .spot-media.spot-image{
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
  height: var(--map-h);
  overflow:hidden;
}
.cards-layout .spot-card .map-wrap,
.cards-layout .spot-card .map-slide{
  height:100%;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  overflow:hidden;
}
.cards-layout .spot-card .map-wrap iframe,
.cards-layout .spot-card .map-slide iframe,
.cards-layout .spot-card .map-wrap .gmap,
.cards-layout .spot-card .map-slide .gmap{
  width:100%; height:100%; border-radius:inherit;
}

/* Instagram は過伸長を抑える */
.cards-layout .spot-card .insta-media{
  padding-inline: var(--card-pad);
  background:transparent;
  max-height: var(--insta-max);
  overflow:auto;
}

/* 長文化ガード */
.cards-layout .spot-card .spot-meta,
.cards-layout .spot-card .spot-body{
  overflow:hidden; text-overflow:ellipsis; word-break:break-word;
}

/* Description は全カード同一の扱い */
.cards-layout .spot-card .spot-description-text{ padding-inline: var(--card-pad); }
.cards-layout .spot-card .spot-description-text::after{ content:none; }









/* =============== 7) Utilities =============== */
body.home #content{ display:block; }
.location-archive{ display:block; }
.location-archive.spot-one>.spot-card-box{ width:100%; margin:0; }
.spot-card-box .spot-image{ width:100%; }
.location-archive.spot-one{ grid-template-columns:none; }
.location-archive.spot-one>.spot-card-box{ grid-column:auto; }

/* PCで “カードごと” フルブリード（Map / Insta / 本文を含む） */
@media (min-width:1024px){
  .location-archive.container{
    max-width:none; width:100%;
    padding-left:0; padding-right:0;
  }

  /* カード本体を 100vw(+微調整) に拡張して中央に配置 */
  .location-archive .spot-card{
    width: calc(100vw + var(--map-bleed-fix, 2px));
    max-width: none;
    margin-left:  calc(50% - 50vw - (var(--map-bleed-fix, 2px) / 2) + (100vw - 100%) / 2);
    margin-right: calc(50% - 50vw - (var(--map-bleed-fix, 2px) / 2) + (100vw - 100%) / 2);
    overflow: visible; /* メディアの矢印等を切らない */
  }
}








/* =============== 8) Google Map – 横スクロール（スライダー） =============== */
body.tax-location .map-slider{
  position:relative; display:flex; gap:12px;
  overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  padding-bottom:.25rem; cursor:grab;
  scrollbar-width:auto;
  scrollbar-color: rgba(0,0,0,.45) rgba(0,0,0,.08);
  line-height:0;
}

/* ボタンの絶対配置基準 */
body.tax-location .map-slider-wrap{ position:relative; }

body.tax-location .map-slider::-webkit-scrollbar{ height:20px; }
body.tax-location .map-slider::-webkit-scrollbar-track{
  background:rgba(0,0,0,.08); border-radius:999px;
}
body.tax-location .map-slider::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.45); border-radius:999px;
  border:4px solid transparent; background-clip:padding-box;
}
body.tax-location .map-slider:active{ cursor:grabbing; }

body.tax-location .map-slide{
  flex:0 0 100%; min-width:100%;
  scroll-snap-align:start;
  position:relative;
  height: clamp(var(--map-min), var(--map-slide-current), var(--map-max));
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  overflow:hidden; background:#eaeaea;
  line-height:0; /* no-image が上書き */
}
body.tax-location .map-slide iframe,
body.tax-location .map-slide .gmap{
  position:absolute; inset:0; width:100%; height:100%; border-radius:inherit; border:0;
}
@supports (height:1svh){
  body.tax-location .map-slide{ height: clamp(var(--map-min), var(--map-slide-svh), var(--map-max)); }
}

/* ナビ（矢印/ドット） */
body.tax-location .map-arrows{ position:absolute; inset:0; pointer-events:none; }
body.tax-location .map-arrow{
  pointer-events:auto; position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border:none; border-radius:999px;
  background:rgba(255,255,255,.9); box-shadow:0 4px 12px rgba(0,0,0,.18);
  display:grid; place-items:center; cursor:pointer;
  transition:transform .15s ease, opacity .15s ease; opacity:.95;
}
body.tax-location .map-arrow:hover{ transform:translateY(-50%) scale(1.05); opacity:1; }
body.tax-location .map-arrow--prev{ left:8px; } 
body.tax-location .map-arrow--next{ right:8px; }
body.tax-location .map-arrow svg{ width:50%; height:50%; }

body.tax-location .map-dots{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom: var(--map-dots-bottom);
  display:flex; gap:6px; padding:6px 8px;
  background:rgba(0,0,0,.35); border-radius:999px; z-index:4;
}
body.tax-location .map-dot{ width:10px; height:10px; border-radius:999px; background:rgba(255,255,255,.55); }
body.tax-location .map-dot.is-active{ background:#fff; }

/* === full-height fix（カード構成の高さ同期） === */
body.tax-location .spot-card .spot-media.spot-image { height: var(--map-h); }
body.tax-location .spot-card .map-slider-wrap,
body.tax-location .spot-card .map-slider,
body.tax-location .spot-card .map-slide,
body.tax-location .spot-card .map-wrap{ height: 100%; }
body.tax-location .spot-card .map-wrap iframe,
body.tax-location .spot-card .map-wrap .gmap{ position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:inherit; }

/* === PCフルブリード（カード本体が 100vw のため “内側は 100%” でOK） === */
@media (min-width:1024px){
  /* 上部メディア枠でハミ出し許容（Map/Inst 共通） */
  .location-archive .spot-card .spot-media.spot-image{ overflow:visible; }

  /* Map 内部はカード幅いっぱい（100%） */
  .location-archive .spot-card .map-wrap,
  .location-archive .spot-card .map-embeds{
    width:100%; max-width:none; margin-left:0; margin-right:0;
  }
  .location-archive .spot-card .map-slider{
    width:100%; max-width:none; margin-left:0; margin-right:0;
    gap:0; scrollbar-width:none; padding-bottom:0;
  }
  body.tax-location .map-slide{ min-width:100%; flex-basis:100%; }

  /* Insta もカード幅いっぱい（100%） */
  .location-archive .spot-card .media-switcher [data-pane="insta"] .insta-scroll{
    width:100%; max-width:none; margin-left:0; margin-right:0;
    gap:0; padding-bottom:0;
  }
  .location-archive .spot-card .media-switcher [data-pane="insta"] .insta-card{
    min-width:100%; flex-basis:100%; height:100%;
  }
}



















/* =============== 9) Map caption =============== */
.map-overlay-caption{
  position:absolute;
  top: var(--caption-top-pc);
  left:0; right:0; transform:none; z-index:9;
  width:100%;
  color:#fff; text-align:center; line-height:1.5; font-weight:800;
  font-size:clamp(1rem,2.4vw,1.4rem);
  padding:0 .4rem;
  background:transparent; border:none;
  text-shadow:0 2px 8px rgba(0,0,0,.35), 0 0 14px rgba(0,0,0,.25);
}
@media (max-width:1024px){ .map-overlay-caption{ top: var(--caption-top-tab); } }
@media (max-width:768px){  .map-overlay-caption{ top: var(--caption-top-sp); } }

/* 文字アニメ */
.caption-reveal{ position:relative; display:inline-block; transform-origin:center; }
.caption-text{ display:inline-block; white-space: pre-wrap; }
.caption-text .ch{
  display:inline-block; opacity:0; transform: translateY(.35em) scale(.98);
  animation: chIn var(--char-dur) var(--char-ease) forwards;
  animation-delay: calc(var(--char-start-delay) + var(--i) * var(--char-gap));
  will-change: opacity, transform;
}
@keyframes chIn{ to { opacity:1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce){
  .caption-text .ch{ animation:none; opacity:1; transform:none; }
}

/* =============== 10) 細かなカード内余白調整 =============== */
.spot-card > :is(h1,h2,h3,h4,.spot-title,.city-name):first-child{ margin-top:0; }
.spot-card .spot-card-header{ padding-top:0; margin-top:0; }
.spot-card{ padding-top:0; padding-bottom:0; }
.spot-card .meta-list:last-child{ margin-bottom:0; padding-bottom:0; }
.spot-card .meta-list li:last-child{ margin-bottom:0; }
.spot-card:has(.meta-list:last-child){ padding-bottom:0; }

/* =============== 11) Home Front（FABなど） =============== */
.home-front #site-content{ max-width:900px; margin:2rem auto; }
.home-front .location-selection-container-card{
  background:#fff; border-radius:16px;
  padding:clamp(1.5rem, 5vw, 2.5rem);
  box-shadow:0 8px 30px rgba(0,0,0,.08);
}
.home-front .selection-grid-card{ display:grid; grid-template-columns:1fr; gap:1rem; margin-bottom:2.5rem; }
@media (min-width:768px){
  .home-front .selection-grid-card{ grid-template-columns:auto 1fr; align-items:center; gap:1.5rem 1rem; }
}
.home-front .select-wrapper-card{ display:contents; }
.home-front .select-wrapper-card label{ font-weight:bold; color:#555; padding-right:1em; }

.home-front .select-wrapper-card select{
  width:100%; height:48px; padding:10px 2.4rem 10px 14px; box-sizing:border-box;
  border:1px solid #d0d5dd; border-radius:8px; background:#fff;
  font-size:16px; font-weight:500; line-height:normal; letter-spacing:.02em;
  font-family:'Noto Sans JP','Yu Gothic UI','Hiragino Kaku Gothic ProN','Segoe UI',system-ui,sans-serif;
}
.home-front .select-wrapper-card select option{ font-family:inherit; line-height:1.4; }
@supports (-webkit-touch-callout:none){ .home-front .select-wrapper-card select{ height:44px; } }
.home-front .select-wrapper-card select:disabled{ background-color:#f5f5ff; }

.home-front .city-cards-container{ display:grid; grid-template-columns:1fr; gap:1.5rem; }
@media (min-width:768px){ .home-front .city-cards-container{ grid-template-columns:repeat(auto-fit, minmax(350px, 1fr)); } }
.home-front .city-card{ border:1px solid #e5e7eb; border-radius:12px; background-color:#fafafa; }
.home-front .city-card-header{ display:flex; justify-content:space-between; align-items:center; padding:.8rem 1rem; border-bottom:1px solid #e5e7eb; }
.home-front .city-card-header .city-name{ margin:0; font-size:1.1rem; font-weight:600; }
.home-front .select-all-btn{
  background:none; border:1px solid var(--brand); color:var(--brand);
  padding:.2rem .6rem; border-radius:15px; font-size:.8rem; cursor:pointer; transition:all .2s;
}
.home-front .select-all-btn:hover{ background-color:var(--brand-weak); }
.home-front .select-all-btn.all-selected{ background-color:var(--brand); color:#fff; }
.home-front .ward-buttons-list{ padding:1rem; display:grid; grid-template-columns:repeat(auto-fill, minmax(90px, 1fr)); gap:.75rem; }
.home-front .list-btn{
  padding:.5rem .2rem; border:1px solid var(--btn-border); border-radius:20px;
  background:#fff; color:#444; cursor:pointer; transition:all .2s ease;
  font-size:.95rem; text-align:center; width:100%;
}
.home-front .list-btn:hover{ border-color:#ccc; background-color:#f9f9f9; }
.home-front .list-btn.active{ background:#FDD7E4; border-color:#FBC8D9; font-weight:bold; color:#333; }

/* FAB */
.fab-search-btn{
  position:fixed; bottom:20px; right:20px; width:88px; height:88px;
  background-color:transparent; border:none; border-radius:0; box-shadow:none;
  background-image:url('http://ikuspot.com/wp-content/uploads/2025/08/ikuspot.png');
  background-size:contain; background-position:center; background-repeat:no-repeat;
  color:transparent; cursor:pointer; z-index:1000;
  transition: transform .3s ease-in-out, opacity .3s ease-in-out;
  transform:scale(1); opacity:1; font-size:0;
}
.fab-search-btn.is-hidden{ transform:scale(0); opacity:0; pointer-events:none; }

/* =============== 12) 備考 / ロック連携 =============== */
/* bottom-lock中は該当カード内のiframeがホイールを奪わないようにする */
.spot-card.is-bottom-locked iframe,
.spot-card.is-bottom-locked .gmap{
  pointer-events: none !important;
}
