/* brush-shell: 2026-10-26 ブラッシュアップ（modulesss.com 参照）。site.css を上書きする
   参照（技法だけ。画像・文言・コードは持ち込まない）
   - ヘッダー: 白地の全幅バー＋下罫線1px（WITH MIDWIFE https://withmidwife.jp/ ← modulesss /category/drawer-menu・/category/footer）
               現在地は淡い面のカプセル、お問い合わせだけ塗りのピル（PRONI https://www.proni.co.jp/ ← /category/mv）
   - 全画面メニュー: 開くとヘッダーが主色に反転、1px 罫線で区切った行のリスト、白丸枠の閉じるボタン
               （WITH MIDWIFE ← /category/drawer-menu、AXXIS https://axxis.co.jp/ ← /category/drawer-menu）
   - フッター: 左に事務所・SNS、右にページ一覧（罫線の行）、下に罫線を挟んで名前の大組み・右下に著作権表示
               （WITH MIDWIFE・AXXIS ← /category/footer）
   - 固定の公式LINE: 画面の右端に付くタブ（PRONI の「よくあるご質問」タブ ← /category/mv）。SP は右下に付く横長のタブ */

:root { --shell-h: 64px; --hd-h: 64px; }
@media (min-width: 1280px) { :root { --shell-h: 76px; --hd-h: 76px; } }
html { scroll-padding-top: calc(var(--shell-h) + 16px); } /* ページ内リンクとフォーカス先をヘッダーの下に出す */
.hd, .hd * { scroll-margin-top: calc(var(--shell-h) * -1 - 16px); } /* ヘッダー自身にフォーカスした時は上の余白分を打ち消し、スクロールさせない */

/* ---------- 確認用の帯（ボタンが重ならなくなったので右の逃げを外す） ---------- */
@media (max-width: 767px) { .review-bar { padding: 6px 16px; } }

/* ---------- ヘッダー: 白地の全幅バー。sticky＋負のマージンで、本文の位置は固定ヘッダーの時と同じ ---------- */
.hd, .review-bar ~ .hd {
  position: sticky; top: 0; left: auto; transform: none; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; max-width: none; height: var(--shell-h); margin-bottom: calc(var(--shell-h) * -1);
  padding: 0 clamp(16px, 3.4vw, 48px);
  border-radius: 0; box-shadow: none; color: var(--primary);
  background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(31, 77, 50, .14);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.hd__brand { display: flex; align-items: center; gap: 14px; min-height: 44px; color: inherit; text-decoration: none; white-space: nowrap; }
.hd__title { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; line-height: 1.3; color: var(--secondary); opacity: 1; transition: color .25s var(--ease); }
.hd__name { font-size: 1.875rem; font-weight: 900; letter-spacing: .06em; line-height: 1; } /* 2026-10-27 最初の画面の写真に負けないよう 26→30px（1279px 以下は下の指定で 22px のまま） */

.hd__nav ul { display: flex; align-items: center; gap: 2px; }
.hd__nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 22px; color: var(--primary);
  font-size: .9375rem; font-weight: 700; letter-spacing: .05em; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease); }
.hd__nav a:hover { opacity: 1; background: rgba(230, 237, 231, .65); }
.hd__nav a[aria-current="page"] { text-decoration: none; background: var(--pale); }
.hd__nav li:last-child { margin-left: 10px; }
.hd__nav li:last-child a { padding: 0 26px; background: var(--primary); color: var(--white); }
.hd__nav li:last-child a:hover, .hd__nav li:last-child a[aria-current="page"] { background: var(--secondary); }

/* ---------- メニューボタン（1279px 以下）: バーの中の主色の丸、2本線 ---------- */
.menu-btn { display: none; }
@media (max-width: 1279px) {
  .hd__nav { display: none; }
  .hd__brand { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
  .hd__title { font-size: .75rem; letter-spacing: .16em; line-height: 1; }
  .hd__name { font-size: 1.375rem; }
  .menu-btn, .review-bar ~ .menu-btn { display: block; position: relative; top: auto; right: auto; z-index: auto; flex: none;
    width: 48px; height: 48px; margin-right: -4px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); box-shadow: none;
    transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
  .menu-btn span { position: absolute; left: 15px; width: 18px; height: 2px; border-radius: 1px; background: var(--white); opacity: 1; transition: transform .3s var(--ease); }
  .menu-btn span:nth-child(1) { top: 20px; }
  .menu-btn span:nth-child(2) { top: 26px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); opacity: 1; }
}

/* 開いている間: ヘッダーを主色に反転して最上段に固定（メニューの見出し行になる） */
.menu-open .hd { position: fixed; top: 0; left: 0; right: 0; margin: 0; z-index: 1001; color: var(--white);
  background: var(--primary); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: rgba(255, 255, 255, .18); }
.menu-open .hd__title { color: rgba(255, 255, 255, .82); }
.menu-open .menu-btn { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }

/* ---------- 全画面メニュー: 1px 罫線で区切った行、塗りの白いお問い合わせ、SNS ---------- */
.menu { position: fixed; inset: 0; z-index: 1000; padding: calc(var(--shell-h) + 12px) 0 48px; background: var(--primary); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .28s var(--ease); }
.menu.is-open { opacity: 1; }
.menu__inner { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.menu__list { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.menu__list li { margin: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.menu__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 12px 4px;
  color: var(--white); font-size: 1.125rem; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-decoration: none; }
.menu__list a::before { content: none; }
.menu__list a .ic { width: 20px; height: 20px; opacity: .55; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.menu__list a:hover .ic { opacity: 1; transform: translateX(4px); }
.menu__list a[aria-current="page"] > span { display: inline-flex; align-items: center; gap: 10px; }
.menu__list a[aria-current="page"] > span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--white); }
.menu__cta { display: flex; align-items: center; justify-content: space-between; height: 60px; margin-top: 32px; padding: 0 24px 0 28px;
  border-radius: 30px; background: var(--white); color: var(--primary); font-size: 1.0625rem; font-weight: 700; letter-spacing: .08em; text-decoration: none;
  transition: background-color .25s var(--ease); }
.menu__cta:hover { background: var(--pale); }
.menu__cta .ic { width: 20px; height: 20px; }
.menu__sns { display: flex; gap: 12px; margin-top: 28px; }
.menu__sns a { width: 48px; height: 48px; border-radius: 50%; background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  display: grid; place-items: center; font-size: 1.375rem; transition: background-color .25s var(--ease), color .25s var(--ease); }
.menu__sns a:hover { background: var(--white); color: var(--primary); }
.menu :focus-visible, .ft :focus-visible, .menu-open .hd :focus-visible { outline-color: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .menu__list li, .menu__cta, .menu__sns { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .menu.is-open .menu__list li, .menu.is-open .menu__cta, .menu.is-open .menu__sns { opacity: 1; transform: none; }
  .menu.is-open .menu__list li:nth-child(2) { transition-delay: .03s; }
  .menu.is-open .menu__list li:nth-child(3) { transition-delay: .06s; }
  .menu.is-open .menu__list li:nth-child(4) { transition-delay: .09s; }
  .menu.is-open .menu__list li:nth-child(5) { transition-delay: .12s; }
  .menu.is-open .menu__list li:nth-child(6) { transition-delay: .15s; }
  .menu.is-open .menu__cta { transition-delay: .18s; }
  .menu.is-open .menu__sns { transition-delay: .21s; }
}
@media (min-width: 1280px) { .menu { display: none !important; } }

/* ---------- フッター ---------- */
.ft { position: relative; margin-top: 120px; padding: 0; background: var(--primary); color: var(--white); text-align: left; }
.is-home .ft { margin-top: 0; }
.ft__inner { max-width: 1280px; margin: 0 auto; padding: 96px clamp(20px, 5vw, 64px) 36px; container-type: inline-size; }
.ft__main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.ft__addr { display: grid; gap: 2px; margin: 0; font-style: normal; font-size: .9375rem; font-weight: 500; line-height: 1.75; letter-spacing: .04em; }
.ft__office { margin-bottom: 8px; font-size: 1.0625rem; font-weight: 700; letter-spacing: .1em; }
.ft__addr a { display: inline-block; padding: 11px 0; margin: -11px 0; color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 4px; } /* 押せる高さ 44px、行の見た目は変えない */
.ft__cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: 248px; height: 56px; margin-top: 32px; padding: 0 22px 0 28px;
  border-radius: 28px; background: var(--white); color: var(--primary); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-decoration: none;
  transition: background-color .25s var(--ease); }
.ft__cta:hover { background: var(--pale); }
.ft__cta .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.ft__cta:hover .ic { transform: translateX(4px); }
.ft__sns { display: flex; gap: 12px; margin-top: 28px; }
.ft__sns a { width: 44px; height: 44px; border-radius: 50%; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  display: grid; place-items: center; font-size: 1.25rem; transition: background-color .25s var(--ease), color .25s var(--ease); }
.ft__sns a:hover { background: var(--white); color: var(--primary); }
.ft__list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 40px; }
.ft__list li { border-top: 1px solid rgba(255, 255, 255, .2); }
.ft__list li:nth-child(3), .ft__list li:nth-child(6) { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.ft__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 2px;
  color: var(--white); font-size: 1.0625rem; font-weight: 700; letter-spacing: .06em; line-height: 1.5; text-decoration: none; }
.ft__list a > span, .menu__list a > span { white-space: nowrap; }
.ft__list a .ic { width: 18px; height: 18px; opacity: .5; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.ft__list a:hover .ic { opacity: 1; transform: translateX(4px); }
.ft__list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* 名前の大組み（AXXIS のロゴ組み・WITH MIDWIFE の社名組みを、和文の名前で） */
.ft__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 96px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .2); }
.ft__sign { display: grid; gap: 10px; }
.ft__sign-title { font-size: 1.125rem; font-weight: 700; letter-spacing: .24em; line-height: 1.4; }
.ft__sign-name { margin-left: -.05em; font-size: 13cqi; font-weight: 900; letter-spacing: .02em; line-height: 1.04; white-space: nowrap; }
.ft__copy { flex: none; margin: 0 0 .6em; font-family: var(--ff-en); font-size: .9375rem; color: rgba(255, 255, 255, .75); opacity: 1; letter-spacing: .04em; }
@media (max-width: 1279px) {
  .ft__main { grid-template-columns: 1fr; gap: 48px; }
  .ft__nav { order: -1; }
}
@media (max-width: 767px) {
  .ft { margin-top: 80px; }
  .ft__inner { padding: 64px 20px 88px; } /* 下の 88px: 左下・右下の固定ボタン（質問の絞り込み等）と重ねない */
  .ft__list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .ft__list li:nth-child(3) { border-bottom: 0; }
  .ft__list a { min-height: 58px; padding: 12px 2px; font-size: 1rem; }
  .ft__cta { display: flex; width: 100%; }
  .ft__bottom { display: block; margin-top: 56px; padding-top: 28px; }
  .ft__sign-title { font-size: 1rem; }
  .ft__sign-name { font-size: 15.6cqi; }
  .ft__copy { margin: 20px 0 0; }
}

/* ---------- 固定の公式LINE（2026-10-29 独立監査 B-1・B-2／F01 を反映）
   1400px〜: 画面右端の縦のタブ（本文の外の余白に立つ）。最初の画面が見えている間は隠す（1440 前後で顔の真横に立っていた）
   〜1399px: 本文の上に浮かべず、上に固定したヘッダーの中（メニューの左）に公式アイコンを置く。どこまで送っても1回で押せ、本文・検索・タブ・リンクを覆わない
   （以前の右下の横長のタブは、読んでいる行の右端・テーマの件数・選択欄・リンクを覆っていた） ---------- */
.float-line { position: fixed; right: 0; top: 50%; bottom: auto; transform: translateY(-50%); z-index: 400;
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: 56px; height: auto; padding: 16px 0 18px;
  border-radius: 14px 0 0 14px; background: var(--primary); color: var(--white); text-decoration: none;
  box-shadow: 0 4px 18px rgba(26, 29, 24, .18); transition: background-color .25s var(--ease), opacity .3s ease, visibility .3s; }
.float-line:hover { opacity: 1; background: var(--secondary); }
.float-line__badge { position: static; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); color: var(--primary); font-size: 18px; box-shadow: none; }
.float-line__text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; writing-mode: vertical-rl; }
.float-line__small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; line-height: 1.3; opacity: .82; }
.float-line__big { display: block; font-size: 1.0625rem; font-weight: 900; letter-spacing: .14em; line-height: 1.2; }
.ft-in-view .float-line, .menu-open .float-line { opacity: 0; visibility: hidden; }
.hd-line { display: none; }
@media (max-width: 1399px) {
  .hd-line { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; }
  .hd-line .line-app { width: 40px; height: 40px; }
  .hd-line:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
  .float-line { display: none; }
}
@media (min-width: 1280px) and (max-width: 1399px) { .hd__nav { margin-left: auto; } .hd-line { margin-left: -12px; } .hd__nav a { padding: 0 9px; } .hd__nav li:last-child a { padding: 0 18px; } } /* ナビの右（お問い合わせの右）に詰めて置く */
@media (max-width: 1279px) { .hd-line { margin: 0 -12px 0 auto; } } /* メニューの左に詰めて置く */
.fv-in-view .float-line { opacity: 0; visibility: hidden; }
