/*
Theme Name: FunSquare
Description: 新大工町ファンスクエア公式サイト用テーマ。ニュース（投稿）・店舗・トップスライドを管理画面から更新できます。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: funsquare
*/

/* 既存デザイン（css/ 以下）に対する追加分のみをここに記述する */

/* ページトップボタン：スクロール量に応じてフェード表示 */
#pagetop {
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}

#pagetop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* PCナビのドロップダウン（キーボード操作でも開く） */
.nav-menu:hover > .menu-list,
.nav-menu:focus-within > .menu-list {
  display: block;
}

/* ドロワーメニュー内は端末の高さを超えたらスクロール */
.drawer-nav {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ニュース本文 */
#tinymce img,
.tinymce img {
  max-width: 100%;
  height: auto;
}

#tinymce .wp-block-image,
.event_photo {
  margin: 0 auto 2em;
  max-width: 1000px;
  text-align: center;
}

/* フロアマップ下の見出し内テキストなど、アンカー位置の補正 */
.link_section,
[id^="floor"] {
  scroll-margin-top: 20px;
}

/* スクリーンリーダー用テキスト */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.youtube iframe,
.googlemap iframe {
  border: 0;
}

.shop_tel {
  color: inherit;
}

.news_empty {
  padding: 40px 0;
  text-align: center;
}
