/* 夜tax 本体（xwrite）スマホのメニュー＝白地のリスト（2026-10-28・site-menu.js と組）
   ・/lp/ の白地のリスト（LPメニュー_白地のリスト_20261028 の menu.css）と同じ見た目・色・寸法。本体はガイド（記事のテーマ）とポリシーが加わる
   ・効くのは 640px 以下で、site-menu.js が nav に .nt-smenu を付けたとき（header.php／header-custom.php が .nt-smenu__panel を置いたとき）だけ。
     641px 以上の PC のナビ（テーマの <ul>）には触らない
   ・テーマの見た目（style.css＝白い 20px 太字・白い下線 a:after・ピンクの面、custom.js が付ける inline の top）を、メニューの中だけで打ち消す
   ・色：白 #FFFFFF／文字 #453B43／差し色 #A7446B／淡いローズ #FFF7FA／罫線 #E7D6DF／補足 #6F5B66。書体は site-type.css・top-type.css の Noto Sans JP */

/* 夜tax 本体（xwrite）スマホのメニュー＝白地のリスト（2026-10-28・site-menu.js と組・mu-plugin nighttax-site-ui-20261028.php が全ページで読む）
   ・/lp/ の白地のリスト（LPメニュー_白地のリスト_20261028 の menu.css）と同じ見た目・色・寸法。本体はガイド（記事のテーマ）とポリシーが加わる
   ・メニューボタンは CSS だけで描く（印＝::before・「メニュー／閉じる」＝::after）＝JS の前に古いピンクの丸の絵が一瞬出ない
   ・パネルは site-menu.js が作り、nav に .nt-smenu を付けたときだけ効く。641px 以上の PC のナビ（テーマの <ul>）には触らない
   ・テーマの見た目（style.css＝白い 20px 太字・白い下線 a:after・ピンクの面、custom.js が付ける inline の top）を、メニューの中だけで打ち消す
   ・色：白 #FFFFFF／文字 #453B43／差し色 #A7446B／淡いローズ #FFF7FA／罫線 #E7D6DF／補足 #6F5B66。書体は site-type.css・top-type.css の Noto Sans JP */

/* 記事側の書体（site-type の使う字だけのフォント）に無い「閉」（ボタンの「閉じる」）だけを補う。Noto Sans JP 400 の 1 字だけのファイルを
   別の名前で置き、ボタンの字の書体の 2 番目に書く（Noto Sans JP に字がある所＝トップでは使われない。読み込みの順にも左右されない） */
@font-face {
  font-family: "Noto Sans JP Menu";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(noto-sans-jp-400-menu.woff2?v=20261028) format("woff2");
  unicode-range: U+9589;
}

/* 記事の「整形済みテキスト」（pre）だけ等幅の端末の書体（Windows は MS ゴシック）で出ていた → 本文と同じ Noto Sans JP に（折り返しも本文と同じ） */
.articleContainer pre.wp-block-preformatted {
  font-family: "Noto Sans JP", sans-serif;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 640px) {
  /* ---------- メニューボタン（元の menu_hamb.png・menu_close.png の背景ごと消し、枠・印・字を CSS で） ---------- */
  header.header .hamb_btn > a,
  header.header .hamb_btn > a.active {
    position: absolute;
    top: 11px;          /* 元の 40px の絵と同じ真ん中（上 15px＋20px）に、44px 以上の押せる大きさで（LP と同じ） */
    right: 11px;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #E7D6DF;
    border-radius: 12px;
    background: #FFF7FA;
    color: #A7446B;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  header.header .hamb_btn > a:focus-visible { outline: 2px solid #A7446B; outline-offset: 2px; }
  header.header .hamb_btn > a::before {
    content: '';
    position: static;
    display: block;
    width: 18px;
    height: 12px;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
    border-radius: 1px;
  }
  header.header .hamb_btn > a.active::before {
    width: 13px;
    height: 13px;
    background:
      linear-gradient(45deg, transparent calc(50% - 1.1px), currentColor calc(50% - 1.1px), currentColor calc(50% + 1.1px), transparent calc(50% + 1.1px)),
      linear-gradient(-45deg, transparent calc(50% - 1.1px), currentColor calc(50% - 1.1px), currentColor calc(50% + 1.1px), transparent calc(50% + 1.1px));
  }
  header.header .hamb_btn > a::after {
    content: 'メニュー';
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    border: 0;
    font-family: "Noto Sans JP", "Noto Sans JP Menu", sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
    color: #A7446B;
  }
  header.header .hamb_btn > a.active::after { content: '閉じる'; }

  /* ---------- 表示の層（nav）：ヘッダーの下から画面の下まで。白く塗るのはパネルだけ ---------- */
  header.header .header-nav.nt-smenu {
    position: fixed;
    top: var(--nt-smenu-top, 106px) !important; /* 開くときに site-menu.js がヘッダーの下端を測る。custom.js が付ける inline の top に勝たせる */
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9990;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0;
    background: none;
    overflow: visible;
  }
  /* display は site-menu.js が inline で block／none にする（ここでは決めない） */
  header.header .header-nav.nt-smenu > ul { display: none; } /* PC 用の並び（641px 以上はそのまま出る） */
  header.header .header-nav.nt-smenu .nt-smenu__scrim {
    position: absolute;
    inset: 0;
    background: rgba(45, 33, 40, .42);
  }

  /* ---------- 白いパネル（中身の高さ。低い画面では中だけ縦にスクロール） ---------- */
  header.header .header-nav.nt-smenu .nt-smenu__panel {
    position: relative;
    display: block;
    margin: 12px 14px 0;
    max-height: calc(100vh - var(--nt-smenu-top, 106px) - 26px); /* 上 12px・下 14px の余白 */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: 6px 8px 10px;
    background: #FFFFFF;
    border: 1px solid #E7D6DF;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(69, 59, 67, .18), 0 2px 6px rgba(69, 59, 67, .08);
    font-family: "Noto Sans JP", sans-serif;
    text-align: left;
  }
  @supports (height: 100dvh) {
    header.header .header-nav.nt-smenu .nt-smenu__panel { max-height: calc(100dvh - var(--nt-smenu-top, 106px) - 26px); }
  }
  header.header .header-nav.nt-smenu .nt-smenu__list {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
    background: none;
  }
  header.header .header-nav.nt-smenu .nt-smenu__list li {
    display: block;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #E7D6DF; /* 項目のあいだの罫線 */
    background: none;
  }
  header.header .header-nav.nt-smenu .nt-smenu__list li:first-child,
  header.header .header-nav.nt-smenu .nt-smenu__list--main li:first-child + li { border-top-color: transparent; } /* 淡いローズ面の下は線なし */

  /* ---------- 項目（テーマの 20px・太字・白い字・白い下線 a:after を、このリストの中だけ打ち消す） ---------- */
  header.header .header-nav.nt-smenu .nt-smenu__list li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    min-height: 52px;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 12px 6px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .02em;
    color: #453B43;
    text-align: left;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  header.header .header-nav.nt-smenu .nt-smenu__list li a::before { content: none; display: none; }
  header.header .header-nav.nt-smenu .nt-smenu__list li a::after {
    content: '';
    position: static;
    display: block;
    flex: none;
    width: 7px;
    height: 7px;
    margin: 0 3px 0 0;
    background: none;
    border: solid #A7446B;
    border-width: 2px 2px 0 0;
    border-radius: 0;
    opacity: 1;
    transform: rotate(45deg); /* 右向きの小さな矢印 */
  }
  /* 料金への誘導は淡いローズ面 */
  header.header .header-nav.nt-smenu .nt-smenu__list li a.nt-smenu__link--price { background: #FFF7FA; color: #A7446B; }
  /* いま開いているページ（カテゴリ・ポリシー）：左の差し色の線と「表示中」 */
  header.header .header-nav.nt-smenu .nt-smenu__list li a[aria-current="page"] { background: #FFF7FA; color: #A7446B; box-shadow: inset 3px 0 0 #A7446B; }
  header.header .header-nav.nt-smenu .nt-smenu__list li a[aria-current="page"]::after {
    content: '表示中';
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    transform: none;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .04em;
    color: #A7446B;
  }
  header.header .header-nav.nt-smenu .nt-smenu__list li a:active { background: #FFF7FA; }
  header.header .header-nav.nt-smenu .nt-smenu__list li a:focus-visible { outline: 2px solid #A7446B; outline-offset: -2px; }

  /* ---------- ガイド（記事のテーマ）：見出し＋ひとこと＋項目を最初から並べる（開く操作は無し） ---------- */
  header.header .header-nav.nt-smenu .nt-smenu__group {
    margin: 10px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #E7D6DF;
  }
  header.header .header-nav.nt-smenu .nt-smenu__head {
    margin: 0;
    padding: 2px 14px 6px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .06em;
    color: #A7446B;
  }
  header.header .header-nav.nt-smenu .nt-smenu__note {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .02em;
    color: #6F5B66;
  }
  header.header .header-nav.nt-smenu .nt-smenu__list--guide li a {
    min-height: 48px;
    font-size: 16px;
    font-weight: 400;
  }
  header.header .header-nav.nt-smenu .nt-smenu__list--guide li a.nt-smenu__link--pick { font-weight: 500; }

  /* ---------- ポリシー（小さな字のリンクを 1 段に） ---------- */
  header.header .header-nav.nt-smenu .nt-smenu__policy {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 2px;
    margin: 10px 0 0;
    padding: 12px 6px 2px;
    border-top: 1px solid #E7D6DF;
    list-style: none;
  }
  header.header .header-nav.nt-smenu .nt-smenu__policy li { display: block; float: none; width: auto; margin: 0; padding: 0; border: 0; background: none; }
  header.header .header-nav.nt-smenu .nt-smenu__policy li a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: none;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .02em;
    color: #6F5B66;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  header.header .header-nav.nt-smenu .nt-smenu__policy li a::before,
  header.header .header-nav.nt-smenu .nt-smenu__policy li a::after { content: none; display: none; }
  header.header .header-nav.nt-smenu .nt-smenu__policy li a[aria-current="page"] { color: #A7446B; font-weight: 500; text-decoration: none; }
  header.header .header-nav.nt-smenu .nt-smenu__policy li a:focus-visible { outline: 2px solid #A7446B; outline-offset: 0; }
}
@media (max-width: 340px) {
  header.header .header-nav.nt-smenu .nt-smenu__list li a { font-size: 16px; } /* 押せる高さは縮めない */
  header.header .header-nav.nt-smenu .nt-smenu__list--guide li a { font-size: 15px; }
}
/* 641px 以上：白地のリスト・背景幕は出さない（PC のナビ・ボタンはテーマのまま） */
@media (min-width: 641px) {
  header.header .header-nav .nt-smenu__scrim,
  header.header .header-nav .nt-smenu__panel { display: none; }
}

/* ---------- 固定の LINE ボタン（スマホの画面下の帯）の重なり順（2026-10-28 午後） ----------
   本体はフッターの .wrap-contact に重なり順が無く（LP は 10）、「実績の8枚」のカード（重なり順 2）と区画の下の雲の飾りに隠れていた。
   料金表の見出しの行（重なり順 99）より上・メニュー（9990）や動画・漫画の窓（dialog）より下＝100。ヘッダー（99）とは上下で重ならない */
@media (max-width: 640px) {
  footer .wrap-contact,
  footer .back_top { z-index: 100; }
}
