/*
 Theme Name: twentytwentyfive-child
 Template: twentytwentyfive
*/

/*

 Theme Name: twentytwentyfive-child

 Template: twentytwentyfive

*/

/* メニューバーを常に上部に表示 */
.wp-block-template-part {
  position: sticky;
  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-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: 959px) {
.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;
}

/* header上の余白除去 */
.no-top-space {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* スマホ用メニューのハンバーガーボタンを右上に固定 */
.wp-block-navigation__responsive-container-open {
  padding: 6px 8px; /* ボタン内の余白（調整可） */
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
}

/* スマホ用メニューを開いたときの閉じるボタンを最前面に表示 */
.wp-block-navigation__responsive-container-close {
  padding: 6px 8px;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
}

/* グループブロックの z-index をリセット */
.wp-block-group {
  z-index: auto !important;
  position: relative; /* これは残してOK */
}

/* ハンバーガーメニュー（開くボタン）のフォーカス枠を消す */
.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: 959px) {
  p.has-zen-kurenaido-font-family {
    padding-right: 0 !important;
  }
}

/* PCの解像度だけ改行等を表示する */
.pc-only {
  display: inline;
}
@media screen and (max-width: 959px) {
  .pc-only {
    display: none;
  }
}

/* PCの解像度だけ改行等を表示する(ヒーロー画面用) */
.pc-only-herotitle {
  display: inline;
}
@media screen and (max-width: 1517px) {
  .pc-only-herotitle {
    display: none;
  }
}

/* スマホの解像度だけ改行等を表示する */
.sp-only {
  display: none;
}
@media screen and (max-width: 959px) {
  .sp-only {
    display: inline;
  }
}

/* iOSだけ改行等を表示する */
.iOS-only {
  display: none;
}
@supports (-webkit-touch-callout: none) {
  .iOS-only {
    display: inline;
  }
}

/* 1125px未満でハンバーガーメニューを表示 */
@media screen and (min-width: 600px) and (max-width: 1125px) {

  /* 横並びのナビゲーションメニューを非表示 */
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
  }

  /* ハンバーガーメニューを表示 */
  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }
}

@media screen and (max-width: 959px) {

  /* Androidなど */
  .wp-site-blocks :is(p, h1, h2, h3, h4, h5, h6, li, td, th, dd, dt) {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  /* iOS */
  @supports (-webkit-touch-callout: none) {
  .wp-site-blocks :is(p, h1, h2, h3, h4, h5, h6, li, td, th, dd, dt) {
      text-wrap: wrap !important;
      text-wrap-style: auto !important;
      word-break: normal;
      overflow-wrap: anywhere;
      line-break: strict;
    }    
  }

  /* Columnの表示順をスマホ時に反転する */
  .wp-block-columns.reverse-on-mobile {
    flex-wrap: wrap-reverse !important;
  }

  /* カバーブロックの固定背景を、スマホでも固定背景のように動かす */
  .wp-block-cover.has-parallax {
    -webkit-clip-path: inset(0);
            clip-path: inset(0);
  }
  .wp-block-cover__image-background.has-parallax {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
  }
}

/* 会員メニューの角を丸くする */
.rounded-block {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
}
.rounded-block a,
.rounded-block a:hover,
.rounded-block a:focus {
    text-decoration: none;
}

/* #のリンク先で、メニューバー分、少しページを上にずらして表示する */
/* PC */
[id] {
    scroll-margin-top: 120px;
}
/* スマホ */
@media screen and (max-width: 959px) {
    [id] {
        scroll-margin-top: 90px;
    }
}

/* 日本語ページでは英語メニューを非表示 */
html[lang^="ja"] .nav-en {
    display: none !important;
}

/* 英語ページでは日本語メニューを非表示 */
html[lang^="en"] .nav-ja {
    display: none !important;
}

/* 区切り線(上下はリスト本体、項目の間は li に引く) */
.list-divided,
.list-badge
{
  --list-line: #b8ad98; /* 線の色 */
  border-top: 1px solid var(--list-line) !important;
  border-bottom: 1px solid var(--list-line) !important;
}
.list-divided li,
.list-badge li
{
  padding: 0.75em 0;
}
.list-divided li + li,
.list-badge li + li
{
  border-top: 1px solid var(--list-line) !important;
}

/* 丸枠の番号(list-badge のみ) */
.list-badge
{
  list-style: none;
  counter-reset: badge;
  padding-left: 0;
}
.list-badge li
{
  counter-increment: badge;
  position: relative;
  padding: 0.75em 0 0.75em 2.6em; /* 上 右 下 左(左は番号の場所) */
}
.list-badge li::before
{
  content: counter(badge);
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 1.8em;
  height: 1.8em;
  box-sizing: border-box;
  border: 1.5px solid #8a6d3b;
  border-radius: 50%;
  color: #8a6d3b;
  font-size: 0.9em;
  line-height: 1.6em;
  text-align: center;
}

/* 四角いボタン */
body .wp-block-button.btn-line .wp-block-button__link,
body .wp-block-button__link.btn-line
{
  background: transparent !important;
  color: inherit !important;
  border: 1px solid currentColor !important;
  border-radius: 0 !important;
  padding: 14px 38px !important;
  font-size: 1rem !important;
  font-weight: 400 !important; 
  letter-spacing: 0.2em !important;
  text-decoration: none !important;
}
body .wp-block-button.btn-line .wp-block-button__link:hover,
body .wp-block-button__link.btn-line:hover
{
  background: rgba(0, 0, 0, 0.06) !important;
}

/* 区切り線ブロックを破線にする */
body .wp-block-separator.sep-dashed
{
  border: none !important;
  border-top: 1px dashed currentColor !important; /* 線の太さ・種類 */
  background: none !important;
  height: 0;
  opacity: 0.6; /* 線の濃さ(1で最も濃い) */
}

/* 中黒をチェックマークに変えるリスト */
.list-check
{
  list-style-type: "✔  "; /* 記号のあとの空白で文字との間隔を調整 */
}
.list-check li::marker
{
  color: #8a6d3b; /* チェックマークの色 */
}
