/* スマホ表示の補正（2026-11-19 GeekHive）
   静的化の際に PC 版の HTML を固めたため、メディアクエリの外にある PC 用の指定がスマホにも効いていた。
   768px 以下（元サイトの切り替え幅 769px に合わせる）でだけ、その指定を打ち消す。PC 表示には影響しない。 */
@media (max-width: 768px) {
  /* 2 段組 → 1 段（本文の下にサイドバー） */
  * .l3872column-2 { display: block !important; }
  * .l3872column-2 .l3872left { width: 100% !important; padding-right: 0 !important; }
  * .l3872column-2 .l3872right { width: 100% !important; margin-top: 2rem; }

  /* トップ: 左のタグ一覧（PC 用）は隠し、記事一覧を全幅に（別レイアウト p-top--2 と同じ扱い） */
  .p-top--1 .c-tags--root { display: none !important; }
  .p-top--1 .p-top__posts { float: none !important; width: 100% !important; padding-left: 0 !important; }

  /* 固定幅の部品 */
  .p-postItemThumb { float: none !important; width: 100% !important; height: auto !important; max-width: 320px; margin: 0 auto 1rem; }
  .p-postItemThumb img { max-width: 100%; height: auto; }
  .p-post__map__map { width: 100% !important; }
  .p-post__map__map iframe { width: 100% !important; }
  .c-form { width: 100% !important; }
  .c-form iframe { width: 100% !important; }
  .p-place__search__form { width: 100% !important; }
  div.p-tag__header.p-tag__header--1 { width: 100% !important; }
  * .p9794title { width: 100% !important; }
  * .c8659imgWrap { width: 30% !important; margin-right: 1rem !important; }

  /* ライター一覧: 横長の写真がカードからはみ出す */
  * .p2127img { max-width: 100% !important; object-fit: cover; }
  /* 店舗: 481〜768px で見出しが左右にはみ出す */
  * .p3708content { padding-left: 1.5rem; padding-right: 1.5rem; }

  /* 表は横スクロール */
  .p-post__timetable { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* 辞書の 50 音ボタンのはみ出し */
  * .p5339wrap { margin-left: -1rem !important; margin-right: -1rem !important; }
  * .p5339list { margin: 0 .5rem !important; }
  * .p5339item { width: calc(20% - 8px) !important; margin: 4px !important; }
  * .p5339link { padding: 8px 2px !important; }

  /* 元のスマホ用デザイン設定（管理画面の SP 用 CSS）から */
  html body .p-post__insta iframe { width: 326px !important; max-width: 100% !important; margin: 0 auto !important; }
  .p-post__wrap .adsbygoogle { margin-bottom: 20px; }

  /* 画像・埋め込みが画面からはみ出さないように */
  .l3872left img { max-width: 100%; }
}
