/*
 Theme Name: Inspiro Blocks Child
 Template: inspiro-blocks
*/

/* メニューを常に上部に表示 */
.wp-block-template-part {
  position: sticky !important;
  top: 0;
  z-index: 9999;
}

/* 投稿一覧をグリッド表示 */
.home-news-loop .wp-block-post-template {
  justify-items: start;
  justify-content: start;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px !important; /* 横の余白だけ残す */
}

/* 各投稿カードの見た目 */
.home-news-loop .wp-block-post {
    max-width: 400px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 16px;
}

/* コンテンツブロックの余白を消す */
.wp-block-post-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}
.page .wp-block-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.single .wp-block-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 文字に黒い影をつける */
.text-shadow {
  text-shadow: 3px 3px 5px rgba(0,0,0,0.7);
}

/* スライダーとテキストを重ねる土台 */
.hero-overlay {
  position: relative;
}
/* テキスト全体を中央に重ねる */
.hero-overlay .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;

  /* 縦並びにする */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;

  width: 80%; /* 横幅を設定 */
  max-width: 1050px; /* 上限も設定 */
}
/* 見出しとサブタイトルのスタイル */
.hero-overlay .overlay-text h1,
.hero-overlay .overlay-text p {
  margin: 0px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* WPZOOM Forms 送信ボタンのスタイル */
.wp-block-wpzoom-forms-submit-field {
  background-color: #c78f6b !important;
  color: #fff !important;
  padding: 12px 28px !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
/* ホバー時 */
.wp-block-wpzoom-forms-submit-field:hover {
  background-color: #58731c;
}

/* サブメニュー全体の背景を茶色に */
.wp-block-navigation__submenu-container {
  min-width: 245px !important
}

@media (max-width: 782px) {
  /* メニューリンクの文字色を強制 */
  .wp-block-navigation-item__content {
    font-size: 20px !important;  /* 好きな値に */
    color: #4c3a33 !important; /* 好きな色に変更 */
  }
  /* ハンバーガーアイコンの色も変更 */
  .wp-block-navigation__responsive-container-open svg,
  .wp-block-navigation__responsive-container-close svg {
    fill: #4c3a33 !important;
  }
  /* 子メニューの文字サイズ調整 */
  .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size: 20px !important;  /* 好きな値に */
  }
  /* 子メニューもリンクの文字色を強制 */
  .wp-block-navigation__responsive-container .wp-block-navigation-item__content {
    color: #4c3a33 !important; /* ← 好きな色に変更 */
  }
}

/* 特定のカバーだけ高さを固定 */
.cover-custom-1 {
  position: relative;
  min-height: 60vh;   /* 好きな高さに調整 */
  overflow: hidden;
}
@media (max-width: 600px) {
  .cover-custom-1 {
    min-height: 50vh;
  }
}

/* スマホだけカラムの順番を逆転 */
@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;
}
}