@charset "UTF-8";
/* =========================================================
   fs-chrome.css — 全ページ共通のヘッダー
     上部細帯（h1）＋ ロゴ ＋ 右上の訴求バッジ/TEL/CTA ＋ グローバルナビ
   本番（Brizy版）の構成に合わせた2段レイアウト：
     左にロゴ（クリーム地のロゴ画像）、右上にバッジ+TEL+ボタン、その下にナビ。
   マークアップは inc/clean-parts.php の kagoshima_clean_header()。
   ※ 本番ヘッダーは sticky ではないので追従させない（追従するのは fs-cta.css の予約ボタン）。
   ========================================================= */

/* ---------- 上部細帯（そのページの h1） ---------- */
.fs-topbar { font-size: 13px; color: var(--fs-muted); padding: 7px var(--fs-gutter); letter-spacing: .02em; background: var(--fs-white); font-family: var(--fs-font-sans); }
.fs-topbar__h1 { margin: 0; font-family: inherit; font-size: inherit; font-weight: 400; line-height: inherit; color: inherit; display: inline; }

/* ---------- ヘッダー本体 ---------- */
.fs-header { position: relative; z-index: 900; background: var(--fs-white); }
.fs-header__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; max-width: 1320px; margin: 0 auto; padding: 24px 20px 38px; }

.fs-logo { display: block; flex: 0 0 auto; line-height: 0; }
.fs-logo__word { width: 440px; max-width: 42vw; height: auto; }

.fs-header__right { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding-bottom: 4px; }
.fs-header__util { display: flex; align-items: center; gap: 24px; }

/* 訴求バッジ（市電◯◯より徒歩6分 / 無料駐車場40台完備） */
.fs-badges { display: flex; gap: 12px; }
.fs-badges__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 112px; padding: 9px 14px; border: 1px solid var(--fs-line); font-family: var(--fs-font-sans); font-size: 13px; line-height: 1.5; color: var(--fs-text); text-align: center; }

/* TEL ＋ お問い合わせボタン */
.fs-header__contact { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fs-header__tel { display: flex; align-items: center; gap: 9px; font-family: var(--fs-font-en); font-size: 26px; font-weight: 600; letter-spacing: .02em; color: var(--fs-primary); line-height: 1; }
.fs-header__tel i { font-size: 20px; }
.fs-header__btn { display: block; width: 100%; padding: 7px 26px; background: var(--fs-primary); color: var(--fs-white); font-family: var(--fs-font-sans); font-size: 14px; letter-spacing: .06em; text-align: center; transition: opacity .2s; }
.fs-header__btn:hover { opacity: .82; }

/* ---------- グローバルナビ ---------- */
.fs-nav__list { display: flex; align-items: center; gap: 0; }
.fs-nav__item { position: relative; }
.fs-nav__item > a { display: block; padding: 8px 18px; white-space: nowrap; }
.fs-nav__jp { font-size: 16px; color: var(--fs-heading); letter-spacing: .06em; transition: color .2s; }
.fs-nav__item > a:hover .fs-nav__jp { color: var(--fs-primary); }
.fs-nav__toggle { display: none; }
/* ドロップダウン */
.fs-subnav { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--fs-white); box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s; z-index: 20; }
.fs-nav__item.has-child:hover .fs-subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.fs-nav__item:nth-last-child(-n+3) .fs-subnav { left: auto; right: 0; }
.fs-subnav > li > a { display: block; padding: 9px 18px; font-size: 14px; color: var(--fs-text); white-space: nowrap; }
.fs-subnav > li > a:hover { background: var(--fs-accent-soft); color: var(--fs-primary); }
.fs-burger { display: none; }
.fs-nav__close { display: none; }

/* ---------- 中間幅：バッジを畳んでナビを詰める ---------- */
@media screen and (max-width: 1240px) {
  .fs-logo__word { width: 340px; }
  .fs-badges { display: none; }
  .fs-nav__item > a { padding: 6px 12px; }
  .fs-nav__jp { font-size: 16px; }
}

/* ---------- レスポンシブ（ハンバーガー：右端）
   ドロワー内の子メニューはアコーディオン（初期は閉じる）。fs-theme.js が .is-expanded を付ける。 ---------- */
@media screen and (max-width: 1024px) {
  .fs-header__inner { align-items: center; padding: 10px 16px; gap: 12px; }
  .fs-logo__word { width: 230px; max-width: 54vw; }
  .fs-header__right { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; padding: 0; }
  .fs-header__util { gap: 10px; }
  .fs-header__contact { flex-direction: row; gap: 8px; }
  .fs-header__tel { font-size: 20px; }
  .fs-header__tel span { display: none; }
  .fs-header__tel i { font-size: 18px; }
  .fs-header__tel, .fs-header__btn { width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
  .fs-header__btn { font-size: 0; background: var(--fs-primary); }
  .fs-header__btn::before { content: "\f0e0"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 17px; color: var(--fs-white); }
  .fs-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; padding: 0; order: 3; }
  .fs-burger span { display: block; width: 26px; height: 2px; background: var(--fs-heading); transition: .25s; }
  .fs-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .fs-burger.is-open span:nth-child(2) { opacity: 0; }
  .fs-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .fs-nav__close { display: block; position: absolute; top: 12px; right: 18px; width: 44px; height: 44px; background: none; border: none; font-size: 32px; line-height: 1; color: var(--fs-heading); z-index: 2; }
  .fs-nav { position: fixed; inset: 0 0 0 auto; width: min(84%, 340px); background: var(--fs-white); transform: translateX(100%); transition: .3s; overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.15); z-index: 1200; padding: 70px 0 40px; }
  .fs-nav.is-open { transform: translateX(0); }
  .fs-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .fs-nav__item > a { border-bottom: 1px solid var(--fs-line-2); padding: 14px 56px 14px 24px; }
  .fs-nav__jp { font-size: 16px; }
  .fs-nav__toggle { display: block; position: absolute; top: 0; right: 0; width: 52px; height: 52px; background: none; border: none; }
  .fs-nav__toggle::before { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-right: 2px solid var(--fs-heading); border-bottom: 2px solid var(--fs-heading); transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
  .fs-nav__item.is-expanded > .fs-nav__toggle::before { transform: translate(-50%, -30%) rotate(-135deg); }
  .fs-subnav { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px; background: var(--fs-accent-soft); }
  .fs-nav__item.is-expanded > .fs-subnav { display: block; }
  .fs-subnav > li > a { padding: 10px 38px; white-space: normal; }
}

@media screen and (max-width: 480px) {
  .fs-topbar { font-size: 13px; padding: 6px 14px; }
  .fs-logo__word { width: 190px; }
}

/* ---------- SP（767px以下）：本番と同じ縦積みヘッダー
   ロゴ → 訴求バッジ → TEL → お問い合わせボタン の順に中央寄せで積み、
   ハンバーガーは右下に置く（本番の並びに合わせる）。 ---------- */
@media screen and (max-width: 767px) {
  /* スマホは1行の薄いヘッダーにして、スクロール中もメニューに手が届くよう追従させる。
     上部細帯（h1）は追従させず、ヘッダーだけが画面上部に貼り付く。 */
  .fs-header { position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.09); }
  .fs-header__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; text-align: left; }
  .fs-logo { order: 1; margin: 0; }
  .fs-logo__word { width: 178px; max-width: 46vw; }
  .fs-header__right { order: 2; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; padding: 0; }
  .fs-header__util { flex-direction: row; align-items: center; gap: 6px; }
  .fs-badges { display: none; }
  .fs-header__contact { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
  .fs-header__tel, .fs-header__btn { width: 42px; height: 42px; min-height: 0; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
  .fs-header__tel { font-size: 0; }
  .fs-header__tel span { display: none; }
  .fs-header__tel i { font-size: 18px; }
  .fs-header__btn { font-size: 0; }
  .fs-header__btn::before { content: "\f0e0"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 16px; color: var(--fs-white); }
  .fs-burger { order: 3; align-self: center; margin: 0; width: 42px; height: 42px; }
  .fs-nav { text-align: left; }
  .fs-topbar { font-size: 13px; padding: 6px 12px; }
}

/* ---------- ドロワーの背景の覆い（タップで閉じる） ---------- */
.fs-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 1100; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
body.fs-nav-open .fs-nav-overlay { opacity: 1; visibility: visible; }
@media screen and (min-width: 1025px) { .fs-nav-overlay { display: none; } }

/* ドロワーを開いている間もハンバーガーを押せるようにする（再タップで閉じられる）。
   ヘッダーをドロワーより前面に置き、ドロワーの中身はヘッダーの下から始める。 */
@media screen and (max-width: 1024px) {
  .fs-header { z-index: 1300; }
  .fs-burger { position: relative; z-index: 1310; }
  .fs-nav { padding-top: 96px; }
  /* ハンバーガー自身が×印に変わるので、ドロワー内の×は出さない（×が2つ並んで見えるため） */
  .fs-nav__close { display: none; }
}
@media screen and (max-width: 767px) {
  .fs-nav { padding-top: 86px; }
}


/* ---------- スクロール中だけ現れる追従バー（PC）
   ヘッダー本体を sticky にして縮める方式は、縮んだ分だけ本文が上にずれ、
   その結果スクロール判定が反転して開閉を繰り返す。
   そこでヘッダーは通常どおり流し、position: fixed の別バーを上から出す。 ---------- */
.fs-stickybar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--fs-white); box-shadow: 0 2px 14px rgba(0,0,0,.09); transform: translateY(-100%); transition: transform .3s ease; will-change: transform; }
.fs-stickybar.is-shown { transform: translateY(0); }
.fs-stickybar__inner { display: flex; align-items: center; gap: 20px; max-width: 1320px; margin: 0 auto; padding: 8px 20px; }
.fs-stickybar__logo { flex: 0 0 auto; line-height: 0; }
.fs-stickybar__logo img { width: 190px; height: auto; }
.fs-stickybar__nav { flex: 1 1 auto; }
.fs-stickybar__nav ul { display: flex; justify-content: flex-end; gap: 0; }
.fs-stickybar__nav a { display: block; padding: 6px 11px; font-size: 15px; color: var(--fs-heading); letter-spacing: .04em; white-space: nowrap; transition: color .2s; }
.fs-stickybar__nav a:hover { color: var(--fs-primary); }
.fs-stickybar__tel { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-family: var(--fs-font-en); font-size: 20px; color: var(--fs-primary); line-height: 1; }
.fs-stickybar__tel i { font-size: 15px; }
.fs-stickybar__btn { flex: 0 0 auto; padding: 9px 18px; background: var(--fs-primary); color: var(--fs-white); font-family: var(--fs-font-sans); font-size: 13px; letter-spacing: .04em; white-space: nowrap; transition: opacity .2s; }
.fs-stickybar__btn:hover { opacity: .85; }
/* スマホはヘッダー自体が追従するので出さない */
@media screen and (max-width: 1024px) { .fs-stickybar { display: none; } }
