/* ============================================================
   場めし — 全ページ共通モバイルナビ／フッター／ヒーロー縮小
   読み込みは _mobile-nav.js とセット。1ファイル import で全ページ統一
   ============================================================ */

/* PC: ハンバーガーは隠す（nav は元のスタイル維持） */
.hamburger { display: none; }

/* ===========================================
   マイページ ナビ強調（オレンジ蛍光マーカー + NEW）
   =========================================== */
header nav a[href="my"],
header nav a[href="/my"]{
  position: relative;
  background: linear-gradient(transparent 58%, rgba(243,156,18,.65) 58%, rgba(243,156,18,.45) 100%);
  font-weight: 800;
  border-radius: 2px;
  padding-left: 3px; padding-right: 3px;
}
header nav a[href="my"]::after,
header nav a[href="/my"]::after{
  content: "NEW";
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: super;
  letter-spacing: .04em;
  animation: mynew-blink 1.6s ease-in-out infinite;
}
@keyframes mynew-blink{
  0%,100%{ opacity: 1; }
  50%{ opacity: .55; }
}

/* ===========================================
   特集記事 ナビ 緑インクマーカー＋NEW（記事公開中）
   articles(相対) と /articles(記事ページ絶対) 両対応
   =========================================== */
header nav a[href="articles"],
header nav a[href="/articles"]{
  position: relative;
  background: linear-gradient(transparent 58%, rgba(52,199,89,.62) 58%, rgba(52,199,89,.42) 100%);
  font-weight: 800;
  border-radius: 2px;
  padding-left: 3px; padding-right: 3px;
}
header nav a[href="articles"]::after,
header nav a[href="/articles"]::after{
  content: "NEW";
  display: inline-block;
  background: #1a5e3a;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: super;
  letter-spacing: .04em;
  animation: mynew-blink 1.6s ease-in-out infinite;
}

/* ===========================================
   スマホ (max-width: 768px) — ヘッダー & ナビ
   =========================================== */
@media (max-width: 768px) {
  /* ヘッダーを可変高さ + 相対配置（nav drop-down のため） */
  header {
    flex-wrap: wrap;
    position: relative;
    padding: 10px 14px !important;
    height: auto !important;
    min-height: 56px;
    gap: 8px;
  }

  /* ハンバーガーボタン */
  .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    background: #fff;
    border: 1px solid #e1e5ea;
    border-radius: 6px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #1c2933;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, transform .15s;
  }
  .hamburger:hover { background: #f4f5f0; }
  .hamburger:active { transform: scale(0.94); background: #ebe9d8; }
  .hamburger[aria-expanded="true"] { background: #c0392b; color: #fff; border-color: #c0392b; }

  /* nav はデフォルトで隠す。open クラスで展開 */
  header nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px 0;
    border-top: 1px solid #e1e5ea;
    border-bottom: 1px solid #e1e5ea;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  header nav.open { display: flex !important; }
  header nav a {
    padding: 13px 18px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    text-decoration: none;
    color: #1c2933;
    display: block;
  }
  header nav a:last-child { border-bottom: none; }
  header nav a:hover { background: #f7f9fc; color: #c0392b; }

  /* count-noren / preopen-stamp（final-top のヘッダー要素）はモバイルでコンパクト化 */
  header .count-noren { font-size: 11px !important; padding: 4px 8px !important; }
  header .preopen-stamp { display: none !important; } /* スマホでは省略 */
}

/* ===========================================
   スマホ — フッターを縦並びに統一
   =========================================== */
@media (max-width: 768px) {
  /* venue-detail / shop-detail 系の 4 カラム .fwrap → 1 カラム */
  footer .fwrap {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 24px 16px !important;
  }
  footer .fwrap h4 { margin-top: 0 !important; }

  /* venues-explorer / ranking 系の inline-style flex フッター → 縦並び */
  footer > div[style*="space-between"],
  footer > div[style*="flex-wrap"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  footer > div > div[style*="display:flex"][style*="gap:20px"],
  footer > div > div[style*="display:flex"][style*="gap: 20px"] {
    justify-content: center !important;
    flex-wrap: wrap;
  }
}

/* ===========================================
   スマホ — ヒーロー / 大見出しのフォント縮小
   =========================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(17px, 4.6vw, 24px) !important;
    line-height: 1.35 !important;
  }
  /* 「場内グルメ全N店」を途中で割らない（全7／店 のような折り返し防止） */
  .hero h1 em { white-space: nowrap; }
  .hero .lead { font-size: 13px !important; line-height: 1.6 !important; }
  .hero .heronums .item .v { font-size: 22px !important; }
  .hero .heronums .item .l { font-size: 10px !important; }
}

/* ===========================================
   スマホ — 共通の調整（タッチターゲット）
   =========================================== */
@media (max-width: 768px) {
  /* テキストリンクは最低44px の高さ確保（必要なものに限定） */
  nav a, footer a { min-height: 36px; display: inline-block; line-height: 1.4; }
}

/* ===========================================
   スマホ — venue-detail / shop-detail の 2カラム強制解除
   既存の @media(max-width:980px) で 1fr 化しているが、念のため強制
   =========================================== */
@media (max-width: 980px) {
  .wrap {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  .side {
    width: 100% !important;
    order: 2 !important;
    min-width: 0 !important;
  }
  .sticky {
    position: static !important;
    width: 100% !important;
  }
  .main {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* ===========================================
   スマホ — shop-detail の tabelog-cta が縦書きになる問題
   .left の中身が極端に圧縮される場合、縦並びにする
   =========================================== */
@media (max-width: 768px) {
  .tabelog-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .tabelog-cta .left {
    flex-direction: row !important;
    align-items: center !important;
    min-width: 0 !important;
  }
  .tabelog-cta .info { min-width: 0 !important; flex: 1 !important; }
  .tabelog-cta .info strong, .tabelog-cta .info span {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .tabelog-cta .arr { align-self: flex-end !important; }
}

/* ===========================================
   スマホ — 全カード/セクション内の overflow 防止
   =========================================== */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .card, section.card { min-width: 0; }
  .card h2 { word-break: break-word; }
  /* 長い英数字や場名がはみ出さないように */
  p, h1, h2, h3, h4, li { overflow-wrap: anywhere; }
}

/* ===========================================
   公式X(@jou_meshi) フォロー誘導ボタン（pill型）
   フッター・記事末尾・#場めしセクションで共通使用
   =========================================== */
.x-follow{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 14px 8px 12px;border-radius:999px;
  background:#000;color:#fff !important;text-decoration:none;
  font-size:13px;font-weight:700;line-height:1;letter-spacing:.02em;
  font-family:-apple-system,"Hiragino Kaku Gothic ProN",sans-serif;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
  vertical-align:middle;
  -webkit-tap-highlight-color:transparent;
  white-space:nowrap;
}
.x-follow:hover{transform:translateY(-2px);background:#222;text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.25);color:#fff !important}
.x-follow:active{transform:translateY(-1px)}
.x-follow svg{display:block;width:15px;height:15px;fill:currentColor;flex-shrink:0}
.x-follow .x-label{font-weight:700}
.x-follow:focus-visible{outline:2px solid #1d9bf0;outline-offset:2px}
/* サイズ小さめ版（インラインに混ぜる用・フッター等） */
.x-follow.x-sm{padding:6px 12px 6px 10px;font-size:12px;gap:6px}
.x-follow.x-sm svg{width:13px;height:13px}
