/*

 Theme Name: twentytwentyfive-child

 Template: twentytwentyfive

*/

/* メニューを常に上部に表示 */
.wp-block-template-part {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: #fff;  
}
.wp-block-template-part,
.wp-block-template-part header {
    margin: 0 !important;
}
.hero-parent {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.wp-site-blocks {
    padding-top: 0 !important;
}

/* コンテンツブロックの余白を消す */
.wp-block-post-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}
.wp-site-blocks {
    padding-top: 0 !important;
}

/* 文字に黒い影をつける */
.text-shadow {
  text-shadow: 3px 3px 5px rgba(0,0,0,0.7);
}

/* スマホだけカラムの順番を逆転 */
@media (max-width: 782px) {
  .wp-block-columns.reverse-on-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* スマホメニューを最前面化 */
@media (max-width: 782px) {
.wp-block-navigation__responsive-container {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999 !important;
}

footer,
footer * {
  position: relative !important;
  z-index: 1 !important;
}

.wp-block-group,
.wp-block-cover,
.wp-block-spacer {
  z-index: 1 !important;
}

/* header上の余白を消す */
.no-top-space {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* iframe を中央寄せ */
.iframe-center {
  display: flex;
  justify-content: center;
}

.iframe-center iframe {
  display: block;
  margin: 0 auto;
}

/* モバイルメニューのハンバーガーボタンを右上に固定 */
.wp-block-navigation__responsive-container-open {
  background-color: #A9C6A3 !important; /* 白背景 */
  padding: 6px 8px; /* ボタン内の余白（調整可） */
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
}

/* メニューを開いたときの閉じるボタンも最前面に */
.wp-block-navigation__responsive-container-close {
  background-color: #A9C6A3 !important;
  padding: 6px 8px;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
}

.wp-site-blocks,
header,
.wp-block-group {
  z-index: 1 !important;
}

/* グループブロックの z-index をリセット */
.wp-block-group {
  z-index: auto !important;
  position: relative; /* これは残してOK */
}

/* モバイルメニューの項目間隔を調整 */
.wp-block-navigation__responsive-container-content .wp-block-navigation-item {
  margin-bottom: 30px;
}

/* モバイルメニューの背景色を透過した緑色に変更 */
.wp-block-navigation__responsive-container {
  background-color: rgba(225, 239, 219, 0.85) !important; /* ← 好きな色に変更可能 */
  backdrop-filter: blur(4px); /* ぼかし効果（任意） */
}

/* ハンバーガーメニュー（開くボタン）のフォーカス枠を消す */
.wp-block-navigation__responsive-container-open:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* 閉じるボタンも同様に枠を消す */
.wp-block-navigation__responsive-container-close:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* モバイルメニュー内のリンクのフォーカス枠を消す */
.wp-block-navigation__responsive-container-content a:focus {
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 960px) {
  p.has-zen-kurenaido-font-family {
    padding-right: 0 !important;
  }
}

/* <br>をスマホで改行しない */
.pc-only {
  display: none;
}

/* PCのみ改行 */
@media (max-width: 960px) {
  .pc-only {
    display: inline;
  }
}