/*
Theme Name: lightning-child
Template: lightning
*/

/* ============================
   LP用マップUI（旧UI） page-id=220 限定
============================ */

/* --- map-container 各種 --- */
.page-id-220 .map-container.osaka {
  width: 100%;
  aspect-ratio: 1584 / 993;
  position: relative;
  flex-shrink: 0 !important;
}

.page-id-220 .map-container.hyogo {
  width: 100%;
  aspect-ratio: 1536 / 1024;
  position: relative;
  flex-shrink: 0 !important;
}

.page-id-220 .map-container.japan,
.page-id-220 .map-container.kantochubu,
.page-id-220 .map-container.kinki,
.page-id-220 .map-container.chushikoku {
  width: 100%;
  aspect-ratio: 1584 / 993;
  position: relative;
  flex-shrink: 0 !important;
}

/* --- map-wrapper --- */
.page-id-220 .map-wrapper {
  display: none;
  width: 100% !important;
  height: 100% !important;
  position: relative;
  flex-shrink: 0 !important;
}

.page-id-220 .map-wrapper.active {
  display: block !important;
  z-index: 10;
}

/* --- map-bg --- */
.page-id-220 .map-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 1;
}

/* --- map-svg --- */
.page-id-220 .map-svg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 5;
  pointer-events: auto;
}

/* --- clickable-path --- */
.page-id-220 .clickable-path {
  fill: #ffffff;
  fill-opacity: 0;
  stroke: #00ffff;
  stroke-width: 3;
  stroke-opacity: 0;
  cursor: pointer;
  transition: fill-opacity 0.2s, stroke-opacity 0.2s;
}

.page-id-220 .clickable-path:hover {
  fill-opacity: 0.25;
  stroke-opacity: 1;
}

/* --- scroll-banner --- */
.page-id-220 .scroll-banner {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;

  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 28px;
  color: #4b2e05;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  letter-spacing: 2px;
  font-weight: 600;

  z-index: 20;
  pointer-events: none;
}

/* --- スマホ最適化 --- */
@media (max-width: 768px) {

  .page-id-220 .clickable-path {
    stroke-opacity: 0.4;
    stroke-width: 4;
  }

  .page-id-220 .clickable-path:hover {
    fill-opacity: 0.2;
    stroke-opacity: 0.8;
  }

  .page-id-220 .scroll-banner {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .page-id-220 .scroll-banner.level-1 { bottom: 5px; }
  .page-id-220 .scroll-banner.level-2 { bottom: 10px; }
  .page-id-220 .scroll-banner.level-3 { bottom: 15px; }
}

.page-id-220 .store-item {
  background: url("https://jj-renewal-v2.local/wp-content/uploads/2026/06/パーチメント背景.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 16px;
  margin: 8px 0;
  border: 2px solid #8b5a2b;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  color: #4b2e15;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);

  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

.page-id-220 .under-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 70% !important;
  background: #f5e9c8 !important;
  border-top: 4px solid #8b5a2b !important;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.45);
  padding: 12px 0;
  overflow-y: auto;
  z-index: 9999 !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);

  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-id-220 .under-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}



/* ============================
   トップページ：第1〜第3階層 新UI（tp-map-wrapper）
   旧UIと完全分離済み
============================ */

/* 外枠（新UIの唯一の親） */
.tp-map-wrapper {
  aspect-ratio: 1400 / 800 !important;
  position: relative !important;
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  height: auto !important;
  overflow: visible !important;
  z-index: 0 !important;
}

/* スマホ最適化 */
@media (max-width: 768px) {
  .tp-map-wrapper {
    height: auto !important;
  }
}

/* 各階層（第1〜第3）は絶対配置で重ねる */
.tp-map-wrapper .tp-map-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: none !important;
  z-index: 1 !important;
}

.tp-map-wrapper .tp-map-container.active {
  display: block !important;
  z-index: 1000 !important; /* ★ 修正：戻るボタンより上にする */
}

/* PNG背景（日本地図・各階層） */
.tp-map-wrapper .tp-map-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  object-fit: contain !important; /* ★ 修正：重複統合 */
  z-index: 1 !important;
}

/* SVG（クリック領域） */
.tp-map-wrapper .tp-map-svg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 5 !important;
  pointer-events: auto !important;
}

/* クリック領域（第1階層：関東中部 / 近畿 / 中国 / 四国） */
.tp-clickable-area {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  fill: rgba(255,255,255,0);
  stroke: rgba(80,50,20,0);
  stroke-width: 2.5px;
  transition: fill 0.2s, stroke 0.2s, filter 0.2s;
}

.tp-clickable-area:hover {
  fill: rgba(217,212,206,0.45);
  stroke: rgba(80,50,20,0.85);
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.35));
}

/* ★ 中国・四国を同時 hover させる */
#tp-chugoku:hover,
#tp-shikoku:hover,
#tp-chugoku:hover ~ #tp-shikoku,
#tp-shikoku:hover ~ #tp-chugoku {
  fill: rgba(217,212,206,0.45);
  stroke: rgba(80,50,20,0.85);
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.35));
}

/* ホバーラベル（PC） */
.tp-map-hover-label {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(80,50,20,0.35);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);

  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-size: 22px;
  color: #4b2e05;
  letter-spacing: 1px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10000;
}

.tp-map-hover-label.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* スマホ最適化（ホバーラベル） */
@media (max-width: 768px) {
  .tp-map-hover-label {
    top: 18%;
    padding: 10px 20px;
    background: rgba(255,255,255,0.85);
    font-size: 18px;
    letter-spacing: 0.5px;
  }
}

/* ホバー強制適用 */
.tp-clickable-area.hover {
  fill: rgba(217,212,206,0.45);
  stroke: rgba(80,50,20,0.85);
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.35));
}

/* バックボタン（最前面固定） */
.tp-map-wrapper .back-btn {
  display: none; /* ★ 初期非表示 */
  position: absolute !important;
  top: 28px !important;   /* ★ 枠線から下へ離す */
  left: 32px !important;  /* ★ 枠線から右へ離す */

  padding: 8px 16px !important;
  background-color: rgba(245,233,200,0.95) !important; /* 見やすい和紙色 */
  color: #4b2e05 !important;
  border: 1px solid rgba(80,50,20,0.35) !important;
  border-radius: 4px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 9999 !important;
}

.tp-map-wrapper .back-btn:hover {
  background-color: #e0e0e0 !important;
}

.tp-map-wrapper .panel-close-btn {
  display: none;
  position: absolute !important;
  top: 28px !important;
  right: 32px !important;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 1;
  background-color: rgba(245,233,200,0.95) !important;
  color: #4b2e05 !important;
  border: 1px solid rgba(80,50,20,0.35) !important;
  border-radius: 50%;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer !important;
  z-index: 9999 !important;
}

.tp-map-wrapper .panel-close-btn.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-map-wrapper .panel-close-btn:hover {
  background-color: #e0e0e0 !important;
}

@media (max-width: 480px) {
  .tp-map-wrapper .panel-close-btn {
    top: 14px !important;
    right: 14px !important;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

/* ============================
   汎用CSS
============================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-layout {
  width: 100%;
  background-color: #e8d9b5;
  display: block;
  height: auto;
  flex-shrink: 0 !important;
}

/* ============================
   LP用 2カラム・3カラム
============================ */

.jj-two-col {
  display: flex;
  gap: 40px;
  margin: 60px 0;
}

.jj-two-col .jj-col {
  flex: 1;
  text-align: center;
}

.jj-two-col img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.jj-three-col {
  display: flex;
  gap: 30px;
  margin: 60px 0;
}

.jj-three-col .jj-col {
  flex: 1;
  text-align: center;
}

.manual-polaroid {
  background: #fff;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: inline-block;
  border-radius: 4px;
}

.manual-polaroid img {
  width: 100%;
  height: auto;
  display: block;
}

.jj-reason-title {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.jj-two-col img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.jj-three-col .manual-polaroid img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.jj-three-col .jj-col {
  width: 33.333%;
}

.jj-three-col .manual-polaroid {
  width: 100%;
}

.manual-polaroid:hover {
  transform: rotate(0deg) scale(1.03) !important;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2) !important;
}
/* ============================
   新UI：アンダーパネル（tp-map-wrapper専用）
============================ */

.tp-map-wrapper .under-panel {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-height: 70% !important;
  background: #f5e9c8 !important;
  border-top: 4px solid #8b5a2b !important;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.45) !important;
  padding: 16px 0 !important;
  overflow-y: auto !important;
  z-index: 9999 !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;

  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.tp-map-wrapper .under-panel.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
/* ============================================================
   新着買取実績セクション用CSS  [jj_new_arrivals] ショートコード用
   ------------------------------------------------------------
   既存のCSS（style.css）の末尾にそのまま追記してください。
   カラーは「現在地から一番近い店舗を探す」ボックスと合わせています。
     ゴールド:      #d4af37 → #b89324（グラデーション）
     背景（生成り）: #fdfbf7
     枠線:          #e2d7be
     本文濃色:      #4a3c31 / #2b221a
     本文中間色:    #5a4f44
============================================================ */

.jj-arrivals{
  background:#fdfbf7;
  padding:76px 0 90px;
  border-top:1px solid #e2d7be;
}

.jj-arrivals-inner{
  max-width:1080px;
  margin:0 auto;
  padding:0 24px;
  box-sizing:border-box;
}

.jj-arrivals-heading{
  text-align:center;
  margin-bottom:54px;
}
.jj-arrivals-heading .jj-arrivals-en{
  display:block;
  font-family:'Shippori Mincho','Noto Serif JP',serif;
  font-size:12px;
  letter-spacing:.2em;
  color:#b89324;
  margin-bottom:10px;
}
.jj-arrivals-heading h2{
  display:inline-flex;
  align-items:center;
  gap:22px;
  font-size:24px;
  font-weight:bold;
  letter-spacing:.08em;
  color:#2b221a;
  margin:0;
}
.jj-arrivals-heading h2::before,
.jj-arrivals-heading h2::after{
  content:"";
  width:52px;
  height:1px;
  background:#e2d7be;
  display:inline-block;
}

.jj-arrivals-grid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:26px 24px;
}
.jj-arrivals-grid li{
  position:relative;
}

.jj-arrivals-info{
  padding:16px 2px 0;
  text-align:center;
}
.jj-arrivals-cat{
  font-size:11px;
  letter-spacing:.12em;
  color:#b89324;
  margin:0 0 6px;
}
.jj-arrivals-title{
  font-size:14.5px;
  font-weight:bold;
  color:#2b221a;
  margin-bottom:6px;
  display:block;
  text-decoration:none;
}
.jj-arrivals-title:hover{
  color:#b89324;
}
.jj-arrivals-date{
  font-size:12px;
  color:#5a4f44;
}

.jj-arrivals-empty{
  text-align:center;
  color:#5a4f44;
  font-size:14px;
}

.jj-arrivals-more{
  text-align:center;
  margin-top:50px;
}
.jj-arrivals-more a{
  display:inline-block;
  padding:14px 42px;
  font-size:13px;
  font-weight:bold;
  letter-spacing:.08em;
  color:#fff;
  background:linear-gradient(135deg,#d4af37 0%,#b89324 100%);
  text-decoration:none;
  border-radius:8px;
  box-shadow:0 4px 10px rgba(212,175,55,.3);
  transition:filter .25s ease;
}
.jj-arrivals-more a:hover{
  filter:brightness(0.92);
}

@media (max-width:900px){
  .jj-arrivals-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:520px){
  .jj-arrivals-grid{ grid-template-columns:1fr 1fr; gap:18px 14px; }
  .jj-arrivals-title{ font-size:13px; }
}
/* ============================================================
   35mmフィルム風フレーム：質感リアリティ強化パッチ (v4)
   ------------------------------------------------------------
   対象は既存の以下4つのルールです。style.css内で該当する
   ルールをこの内容で置き換えるか、末尾に追記して上書きしてください
   （同じセレクタは後に書いた方が有効になります）。

     ・.jj-film-frame        → position:relative + グレイン/傷レイヤー追加
     ・.jj-film-perf         → 穴の色をやや燻んだ色に、内側の陰影を追加
     ・.jj-film-photo        → ビネット(周辺減光)とグレインで写真をフレームに馴染ませる
     ・.jj-film-photo img    → フィルムらしい色調（フィルタ）を追加
     ・.jj-film-label        → 印字のにじみ・濃淡ムラ

   手法：
     SVGのfeTurbulence（ノイズ生成）をCSSの背景画像として埋め込み、
     mix-blend-modeで重ねることで「粒子感・傷・ホコリ」を表現しています。
     画像ファイルの追加は不要（すべてCSSのみ）。
     8枚のカードが全く同じ見た目にならないよう、
     nth-childで傷とホコリの位置を微妙にずらしています。
============================================================ */

.jj-film-frame{
  display:flex !important;
  flex-direction:column !important;
  background:#141414 !important;
  border-radius:6px;
  overflow:hidden;
  text-decoration:none !important;
  box-shadow:0 4px 10px rgba(0,0,0,.3), inset 0 0 40px rgba(0,0,0,.5);
  position:relative !important;
}

/* フレーム全体のグレイン・傷・ホコリ（フィルムベース自体の質感） */
.jj-film-frame::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  opacity:.16;
  mix-blend-mode:overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 41%, transparent 42%),
    radial-gradient(circle at 18% 30%, rgba(255,255,255,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 62%, rgba(255,255,255,.4) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 12%, rgba(255,255,255,.35) 0 1px, transparent 2px);
  background-size:120px 120px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-repeat:repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

/* カードごとに傷・ホコリの出方を少しずつ変えて「量産感」を消す */
.jj-arrivals-grid li:nth-child(2n) .jj-film-frame::after{
  background-position:6px 4px, 0 0, 30% 70%, 80% 20%, 10% 85%;
  transform:scaleX(-1);
}
.jj-arrivals-grid li:nth-child(3n) .jj-film-frame::after{
  background-position:3px 9px, 0 0, 60% 10%, 15% 55%, 90% 40%;
  opacity:.12;
}
.jj-arrivals-grid li:nth-child(4n) .jj-film-frame::after{
  background-position:11px 2px, 0 0, 40% 85%, 70% 45%, 25% 15%;
  transform:scaleY(-1);
}

/* 上下のラベル帯 */
.jj-film-topbar,
.jj-film-bottombar{
  display:flex !important;
  flex:0 0 auto !important;
  justify-content:space-between;
  align-items:center;
  padding:5px 8px !important;
  margin:0 !important;
  background:#141414 !important;
  position:relative;
  z-index:1;
}
.jj-film-bottombar{
  justify-content:center !important;
}

/* ラベル文字：完璧に均一なフォントではなく、印字のにじみ・ムラを演出 */
.jj-film-label{
  font-family:'Cormorant Garamond','Times New Roman',serif !important;
  font-size:8px !important;
  line-height:1 !important;
  letter-spacing:.09em !important;
  color:#c2a765 !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  margin:0 !important;
  padding:0 !important;
  font-weight:normal !important;
  text-shadow:0.4px 0 0 rgba(194,167,101,.55), -0.2px 0 0 rgba(194,167,101,.3);
}
.jj-film-topbar .jj-film-label:nth-child(2){
  opacity:.85;
  letter-spacing:.07em !important;
}
.jj-film-bottombar .jj-film-label{
  opacity:.8;
}

/* パーフォレーション：穴の色を少し燻んだ色に＋内側に陰影を追加して型抜き感を出す */
.jj-film-perf{
  display:block !important;
  flex:0 0 38px !important;
  width:100% !important;
  height:38px !important;
  margin:0 !important;
  padding:0 !important;
  position:relative;
  z-index:1;
  background-color:#141414 !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(0,0,0,.3) 100%),
    repeating-linear-gradient(
      90deg,
      #efe6cf 0 15px,
      transparent 15px 32px
    ) !important;
  background-blend-mode:overlay, normal;
  background-size:32px 15px, 32px 15px !important;
  background-position:10px center, 10px center !important;
  background-repeat:repeat-x, repeat-x !important;
}

/* 写真本体（周辺減光＋粒子で、フレームと同じ質感に馴染ませる） */
.jj-film-photo{
  position:relative;
  display:block !important;
  flex:0 0 auto !important;
  margin:0 8px !important;
  padding-top:100% !important;
  height:0 !important;
  overflow:hidden;
  border:2px solid #efe6cf;
}
.jj-film-photo img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  margin:0 !important;
  max-width:none !important;
  /* フィルムらしい発色（彩度を少し落とし、わずかに温かみを足す） */
  filter:saturate(.92) contrast(1.04) sepia(.06) brightness(.98) !important;
}

/* 写真の上に重ねるビネット＋グレイン（フレームの質感と統一） */
.jj-film-photo::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100' height='100' filter='url(%23g)'/></svg>"),
    radial-gradient(circle at center, transparent 55%, rgba(0,0,0,.35) 100%);
  background-size:100px 100px, 100% 100%;
  background-repeat:repeat, no-repeat;
  opacity:.14;
  mix-blend-mode:overlay;
}

/* 「鑑定済」バッジ（グレインより手前に固定） */
.jj-arrivals-badge{
  position:absolute !important;
  top:8px !important;
  left:8px !important;
  background:linear-gradient(135deg,#d4af37 0%,#b89324 100%) !important;
  color:#fff !important;
  font-size:10.5px !important;
  letter-spacing:.05em !important;
  padding:5px 10px !important;
  line-height:1 !important;
  border-radius:3px !important;
  z-index:2;
  margin:0 !important;
}

@media (max-width:520px){
  .jj-film-label{
    font-size:7px !important;
  }
}
/* 4カラム買取の流れ誘導線 */
.lp-cta-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px auto;
  max-width: 1100px;
}

.lp-cta-card {
  background: #fff;
  border: 1px solid #e6e2da;
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lp-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.lp-cta-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.lp-cta-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.lp-cta-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.lp-cta-btn {
  display: inline-block;
  padding: 12px 18px;
  background: #d4af37;
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background .2s;
}

.lp-cta-btn:hover {
  background: #b89324;
}

.lp-cta-btn.line {
  background: #06C755;
}

.lp-cta-btn.line:hover {
  background: #05a94a;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .lp-cta-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .lp-cta-4col {
    grid-template-columns: 1fr;
  }
}
.jj-arrivals-heading .jj-arrivals-en.custom-no-underline {
  margin-bottom: 0 !important;
}
.jj-arrivals-heading.methods {
  margin-top: 70px; /* 今より +20〜30px */
}
.jj-arrivals-heading.methods h2::before,
.jj-arrivals-heading.methods h2::after {
  width: 38px !important;
}
/* タブをセクション幅に合わせる（1100pxではなく100%にする） */
.jj-tabs {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* WPブロック側の余白を強制的に消す（最重要） */
.jj-tabs.wp-block-custom-html,
.wp-block-custom-html .jj-tabs {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* タブボタンの並び */
.jj-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
}

/* タブのデザイン */
.jj-tab-link {
  padding: 10px 22px;
  background: #e2d7be;
  color: #2b221a;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  border: 1px solid #d4c7a8;
  transition: 0.2s;
}

.jj-tab-link:hover {
  background: #d4c7a8;
}

.jj-tab-link.active {
  background: #b89324;
  color: #fff;
  border-color: #b89324;
}
/* ============================================================
   スマホ・タブレット対応 追加CSS
   ------------------------------------------------------------
   既存の style.css の末尾にそのまま追記してください。
   （同じセレクタは後に書いた方が優先されるため、
    上書きしたいスタイルより下に追記すればOKです）
============================================================ */

/* ------------------------------------------------------------
   1. 「選ばれる3つの理由」写真列・カテゴリ画像列
      .jj-two-col / .jj-three-col は元々 display:flex のみで
      折り返し指定がなく、スマホ幅では横に押し潰されてしまう。
------------------------------------------------------------ */

/* タブレット（769px〜1024px）：カラム数は維持しつつ余白を調整 */
@media (max-width: 1024px) {
  .jj-two-col,
  .jj-three-col {
    gap: 20px;
  }
}

/* スマホ（〜768px）：縦積みに変更 */
@media (max-width: 768px) {
  .jj-two-col,
  .jj-three-col {
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
  }

  .jj-three-col .jj-col {
    width: 100%;
  }

  .jj-two-col img,
  .jj-three-col .manual-polaroid img {
    height: 220px;
  }

  .jj-reason-title {
    font-size: 16px;
    line-height: 1.5;
  }

  .jj-reason-title span[style*="18pt"] {
    font-size: 15pt !important;
  }
}

/* 小型スマホ（〜480px）：写真の高さをさらに調整 */
@media (max-width: 480px) {
  .jj-two-col img,
  .jj-three-col .manual-polaroid img {
    height: 180px;
  }
}


/* ------------------------------------------------------------
   2. 現在地から一番近い店舗を探すボックス（#gps-box）
      固定 padding が狭い画面で窮屈になるため調整
------------------------------------------------------------ */
@media (max-width: 480px) {
  #gps-box {
    padding: 18px !important;
    margin: 20px auto !important;
    max-width: 100% !important;
  }

  #gps-btn {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
}


/* ------------------------------------------------------------
   3. タブメニュー（.jj-tab-link）
      小型スマホでは文字サイズ・パディングを詰める
------------------------------------------------------------ */
@media (max-width: 480px) {
  .jj-tab-buttons {
    gap: 8px;
  }

  .jj-tab-link {
    padding: 8px 14px;
    font-size: 13px;
  }
}


/* ------------------------------------------------------------
   4. 見出し周りの余白調整（スマホでは間延びしすぎないように）
------------------------------------------------------------ */
@media (max-width: 480px) {
  .jj-arrivals-heading.methods {
    margin-top: 40px;
  }

  .jj-arrivals {
    padding: 50px 0 60px;
  }
}


/* ------------------------------------------------------------
   5. 新旧マップUI 共通：スマホでラベルが要素と重ならないように
      （既存の768px定義に加え、小型スマホをさらに調整）
------------------------------------------------------------ */
@media (max-width: 480px) {
  .tp-map-hover-label {
    top: 10%;
    padding: 6px 14px;
    font-size: 15px;
  }

  .tp-map-wrapper .back-btn {
    top: 14px !important;
    left: 14px !important;
    padding: 6px 12px !important;
    font-size: 13px;
  }
}

/* ============================================================
   新UI：アンダーパネル内の店舗アイテム（.store-item）調整
============================================================ */
.tp-map-wrapper .under-panel .store-item {
  width: 100% !important;
  max-width: 600px !important;
  margin: 0 auto 20px !important;
  text-align: left !important;
  /* overflow: hidden !important; ← これが原因で隠れていたので削除します */
}

.tp-map-wrapper .under-panel .store-item h3,
.tp-map-wrapper .under-panel .store-item p,
.tp-map-wrapper .under-panel .store-item a {
  text-align: left !important;
}

/* アコーディオンのスタイル */
.takuhai-terms-container {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
}

.takuhai-terms-title {
    padding: 15px;
    background-color: #f7f7f7;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* モーダル内やフォーム内のアコーディオン対応 */

/* 初期状態：コンテンツを非表示にする */
.takuhai-terms-box .takuhai-terms-content {
    display: none !important;
}

/* 開閉ボタンのスタイル調整（必要に応じて） */
.takuhai-terms-title {
    cursor: pointer;
}

/* openクラスがついたときの表示切替 */
.takuhai-terms-box.open .takuhai-terms-content {
    display: block !important;
}

/* もしContact Form 7側で出力されている枠線コンテナなどのクラス名が異なる場合の保険 */
.takuhai-terms-box.open textarea,
.takuhai-terms-box.open .wpcf7-form-control-wrap {
    display: block !important;
}
/* アコーディオン全体の箱 */
.takuhai-terms-box {
    margin-bottom: 15px;
}

/* タイトル（ボタン）部分 */
.takuhai-terms-title {
    cursor: pointer;
    font-weight: bold;
    padding: 8px 12px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
}

/* コンテンツ部分（初期状態は完全に非表示） */
.takuhai-terms-box .takuhai-terms-content {
    display: none !important;
    margin-top: 10px;
}

/* openクラスがついた時だけ中身を表示する */
.takuhai-terms-box.open .takuhai-terms-content {
    display: block !important;
}

/* 中のスクロールエリア（デザイン崩れ防止） */
.takuhai-terms-box .takuhai-terms-content textarea,
.takuhai-terms-box .takuhai-terms-content .terms-scroll-box {
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    box-sizing: border-box;
}