/* ====================================================
   グローバルナビゲーションバー（画面最上部に固定）
   ==================================================== */

/* ---- 基本: コンテンツをナビ分だけ押し下げる ---- */
body {
  padding-top: 64px;
}

/* ---- LP（トップページ）: ナビ分を押し下げ、内部要素の配置関係を維持 ---- */
body.home {
  padding-top: 64px !important;
}
/* LP専用の絶対配置ヘッダー（ロゴ等）も同サイズだけ下にシフト */
body.home .site-header {
  top: 64px !important;
}

/* ---- WP管理バー対応（ログイン中ユーザー） ----
   WP は自動的に html { margin-top: 32px } を追加して管理バーを確保する。
   ナビを管理バーの真下 (top: 32px) に合わせることで「はみ出し」「余白」を解消。 */
.admin-bar .fixed-top-menu {
  top: 32px;
}
@media screen and (max-width: 782px) {
  /* モバイル時の管理バーは 46px */
  .admin-bar .fixed-top-menu {
    top: 46px;
  }
}

/* ---- ナビバー本体 ---- */
.fixed-top-menu {
  position: fixed;
  z-index: 9999;
  background-color: rgba(14, 14, 14, 0.95); /* 黄色のLPに対して強烈な引き締め色。やや透けさせて重さを逃がす */
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-bottom: none;
  font-family: "FOT-UD角ゴC80 Pro B", UDKakugoC80Pro-B, sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* 影は下向き */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0;
  height: 64px; /* どんな画面幅でも高さを固定し、白隙間を防ぐ */
}

.fixed-top-menu__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  width: 100%; /* 全幅に広げる */
  height: 100%;
}

.fixed-top-menu__list li {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(255, 198, 0, 0.45); /* プラシルのブランドカラー（黄）を半透明にした上品なゴールド風の枠線 */
  height: 100%;
}

.fixed-top-menu__list li:first-child {
  border-left: 1px solid rgba(255, 198, 0, 0.45); /* 左端の線を追加 */
}

.fixed-top-menu__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* リンク判定（クリック領域）を枠いっぱいに広げる */
  height: 100%;
  padding: 0 10px; /* フル幅になるため左右は狭めに設定し文字切れを防止 */
  color: #fff;
  font-weight: bold;
  font-size: 1.8rem;
  text-decoration: none;
  text-shadow: none;
  transition: background-color 0.3s, color 0.3s, text-shadow 0.3s;
}

.fixed-top-menu__list a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffc600; /* ホバー時はプラシルのブランドカラー（黄）に光らせる */
  text-shadow: 0 0 5px rgba(255, 198, 0, 0.5);
}


/* --------------------------------------------------------
   レスポンシブ: やや狭い画面（〜900px）
   -------------------------------------------------------- */
@media screen and (max-width: 900px) {
  .fixed-top-menu__list a {
    padding: 0 1.5vw;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
  }
}


/* --------------------------------------------------------
   スマートフォン（〜767px）: 全幅・均等割り
   -------------------------------------------------------- */
@media screen and (max-width: 767px) {
  /* PC用と同じ「64px」の高さ・余白をそのまま引き継ぐため、
     SP用の56px上書き指定を削除しました。
     （これにより常に2行分の高さを余裕を持って確保します） */

  .fixed-top-menu__list {
    justify-content: space-between;
    width: 100%;
  }

  .fixed-top-menu__list li {
    flex: 1;
    text-align: center;
  }

  .fixed-top-menu__list a {
    padding: 0 5px;
    font-size: clamp(1.2rem, 3.2vw, 1.5rem); /* 2行に収まりやすい文字サイズに微調整 */
    /* 改行を禁止していた word-break: keep-all; を削除（自動改行ON） */
    line-height: 1.3;
    text-align: center;
  }
}

/* --------------------------------------------------------
   アンカーリンク（ページ内ジャンプ）位置調整
   -------------------------------------------------------- */
section[id^="sec-"] {
  /* 固定ヘッダー（64px）の裏にコンテンツが隠れないよう、表示位置をオフセットします */
  scroll-margin-top: 64px;
}
