@charset "UTF-8";
/* --- 基本リセットと設定 --- */
body.menu-open {
  /* SPメニュー展開時に背景をスクロールさせない */
  overflow: hidden; }

/* --- ヘッダーレイアウト (gHeader2 に限定) --- */
#gHeader2 {
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: transform 0.3s ease;
  transform: translateY(0); }

#gHeader2.hide {
  transform: translateY(-100%); }

#gHeader2 .hBox {
  /* container相当 (幅 + 中央揃え) */
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem; }

#gHeader2 .lBox {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0; }

#gHeader2 .lBox h1 img,
#gHeader2 .logo01 img {
  height: 2rem;
  /* h-8 */
  width: auto; }

#gHeader2 .logo01 {
  display: none;
  /* デフォルトは非表示 */ }

/* --- ハンバーガーメニューアイコン (#toggle) --- */
#gHeader2 #toggle {
  width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  /* PCでは非表示にするため、デフォルトは block */
  display: block; }

#gHeader2 #toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #374151;
  /* 濃いグレー */
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
  border-radius: 2px; }

#gHeader2 #toggle span.top {
  top: 6px; }

#gHeader2 #toggle span.middle {
  top: 14px; }

#gHeader2 #toggle span.bottom {
  top: 22px; }

/* アイコン active時 (X印) */
#gHeader2 #toggle.active span.top {
  top: 14px;
  transform: rotate(45deg); }

#gHeader2 #toggle.active span.middle {
  opacity: 0;
  transform: translateX(-100%); }

#gHeader2 #toggle.active span.bottom {
  top: 14px;
  transform: rotate(-45deg); }

/* --- ナビゲーションコンテナ (.menuBox) --- */
#gHeader2 .rBox.menuBox {
  /* SPスタイル (デフォルト) */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* gap-6 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* 画面の高さ */
  background-color: rgba(255, 255, 255, 0.95);
  /* bg-white/95 */
  /* すりガラス効果 */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6rem 2rem 2rem 2rem;
  /* pt-24 px-8 */
  box-sizing: border-box;
  /* paddingを含めて高さを100vhに */
  overflow-y: auto;
  z-index: 49;
  /* アイコン(#toggle)より下 */
  /* 初期状態は画面右外に隠す */
  transform: translateX(100%);
  visibility: hidden;
  /* ★修正：初期読み込み時はアニメーションさせない */
  transition: none; }

/* メニューが開いたときのスタイル */
#gHeader2 .menuBox.active {
  transform: translateX(0);
  visibility: visible;
  /* ★修正：初期読み込み時はアニメーションさせない */
  transition: none; }

/* ★追加：JSで初期化クラスが付与されたらアニメーションを有効にする */
#gHeader2.menu-initialized .rBox.menuBox {
  /* 閉じる時(0.3s後)に非表示にする */
  transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s; }

#gHeader2.menu-initialized .menuBox.active {
  /* 開く時(遅延0s)に表示する */
  transition: transform 0.3s ease-in-out, visibility 0s linear 0s; }

/* ナビゲーション本体 */
#gHeader2 #gNavi {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  /* gap-4 */
  width: 100%; }

#gHeader2 .smlLinkUl, #gHeader2 .linkUl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* gap-2 */ }

#gHeader2 .smlLinkUl {
  font-size: min(0.85vw, 1.5rem); }

#gHeader2 .linkUl {
  font-size: min(1vw, 1.8rem); }

#gHeader2 #gNavi li {
  position: relative;
  /* PCホバーのため */ }

#gHeader2 #gNavi li > a {
  display: block;
  padding: 0.5rem;
  /* p-2 */
  color: #374151;
  /* text-gray-700 */
  transition: color 0.2s; }

#gHeader2 #gNavi li > a:hover {
  color: #412B2B;
  /* hover:text-blue-600 */ }

/* サブメニュー (SP) */
#gHeader2 .subUl.sp {
  /* JSが 'hidden' クラスをトグルするため、デフォルトは非表示 */
  display: none;
  padding-left: 1rem;
  /* pl-4 */
  margin-top: 0.25rem;
  /* mt-1 */
  background-color: #f9fafb;
  /* bg-gray-50 */
  border-radius: 0.25rem;
  /* rounded */ }

/* SP用矢印 (JSで .has-submenu クラスが付与されたaタグ) */
#gHeader2 a.has-submenu {
  position: relative;
  padding-right: 24px; }

#gHeader2 a.has-submenu::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  /* 矢印の色 */
  border-bottom: 2px solid #6b7280;
  position: absolute;
  right: 8px;
  top: 40%;
  /* 閉じた状態 (下向き) */
  transform: rotate(45deg) translateY(-50%);
  transition: transform 0.3s ease; }

/* 開いた状態 (上向き) */
#gHeader2 a.has-submenu.open::after {
  transform: rotate(-135deg) translateY(0%);
  top: 50%; }

/* サブメニュー内リンク */
#gHeader2 .subUl a {
  display: block;
  padding: 0.5rem 1rem;
  /* px-4 py-2 */ }

#gHeader2 .subUl a:hover {
  background-color: #f3f4f6;
  /* hover:bg-gray-100 */ }

/* SPのみ表示リンク */
#gHeader2 li.sp {
  display: block; }

/* --- リンクボタンエリア --- */
#gHeader2 .link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* gap-3 */
  width: 100%;
  margin-top: 1.5rem;
  /* mt-6 */
  border-top: 1px solid #e5e7eb;
  /* border-t */
  padding-top: 1.5rem;
  /* pt-6 */ }

#gHeader2 .link a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  /* paddingを含めてwidth 100% */
  text-align: center;
  padding: 0.5rem 1rem;
  /* px-4 py-2 */
  border-radius: 0.375rem;
  /* rounded-md */
  transition: background-color 0.2s; }

/* ボタン1 */
#gHeader2 .link a:nth-of-type(1) {
  background-color: #221815;
  /* bg-blue-600 */
  color: #ffffff;
  /* text-white */
  border-radius: 100px; }

#gHeader2 .link a:nth-of-type(1):hover {
  background-color: #776852; }

/* ボタン2 */
#gHeader2 .link a:nth-of-type(2) {
  background-color: #221815;
  /* bg-green-600 */
  color: #ffffff;
  /* text-white */
  border-radius: 100px; }

#gHeader2 .link a:nth-of-type(2):hover {
  background-color: #776852; }

/* --- PC表示 (896px以上) --- */
@media (min-width: 896px) {
  #gHeader2 .lBox h1 img,
  #gHeader2 .logo01 img {
    height: 4.5rem;
    /* md:h-10 */ }

  #gHeader2 .logo01 {
    display: block;
    /* md:block */ }

  #gHeader2 #toggle {
    display: none;
    /* md:hidden */ }

  #gHeader2 .rBox.menuBox {
    /* PCスタイル */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    /* md:gap-6 */
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    overflow-y: visible;
    transform: none;
    /* ★修正：スマホ用の 'visibility: hidden' を上書きして表示する */
    visibility: visible;
    /* ★修正：PCではアニメーション不要 */
    transition: none; }

  #gHeader2 #gNavi {
    /* 変更: row -> column (smlLinkUlとlinkUlを縦積みにするため) */
    flex-direction: column;
    /* 変更: 右揃えにするため */
    align-items: flex-end;
    gap: 0.5rem;
    /* 縦のgapを調整 (元は 1rem) */
    width: auto; }

  #gHeader2 .smlLinkUl,
  #gHeader2 .linkUl {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    /* md:gap-3 */ }

  #gHeader2 #gNavi li > a {
    padding: 0.25rem;
    /* md:p-1 */ }

  /* SP用サブメニューと矢印をPCでは非表示 */
    /* * 【削除】
* このルール (display: none !important;) がPCでのホバー表示を妨げていたため削除します。
*/
    /*
#gHeader2 .subUl.sp {
display: none !important;
}
*/
  #gHeader2 a.has-submenu::after {
    display: none; }

  #gHeader2 a.has-submenu {
    padding-right: 0.5rem;
    /* SP用のpadding-rightをリセット (aタグのp-2相当) */ }

    /* * 【修正】PC用サブメニュー 
* (SP/PC兼用のため .subUl を対象にし、SPでJSが設定したインラインstyleをリセット) 
*/
  #gHeader2 #gNavi li .subUl {
        /* * SP表示でJSによって style="display: block" が設定されても、
* PC表示ではホバーするまで非表示にするため !important を使用
*/
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
    border-radius: 0.375rem;
    /* rounded-md */
    padding: 0;
    /* py-2 */
    width: 24rem;
    /* w-48 */
    margin-top: 0;
    z-index: 60;
    /* SP用のスタイルをPC用にリセット */
    padding-left: 0;
    background-color: #ffffff;
    /* bg-white */ }

  #gHeader2 #gNavi li .subUl li {
    display: inherit !important;
    font-weight: normal !important;
    font-size: 1.5rem !important; }

  #gHeader2 #gNavi li .subUl li:not(:first-child) {
    margin: 0;
    border-top: 1px solid #f4f4f4; }

  #gHeader2 #gNavi li .subUl li a {
    padding: 8px; }

  /* PCホバーでサブメニュー表示 */
  #gHeader2 #gNavi li:hover > .subUl {
    /* ホバー時は !important で強制的に表示 */
    display: block !important; }

  #gHeader2 .subUl a {
    padding: 0.5rem 1rem;
    /* px-4 py-2 */
    /* SP用のスタイルをPC用にリセット */ }

  /* SPのみ表示リンク */
  #gHeader2 li.sp {
    display: none;
    /* md:hidden */ }

  /* リンクボタン (PC) */
  #gHeader2 .link {
    /* 変更: row -> column (aタグを縦積みにするため) */
    flex-direction: column;
    /* 変更: ボタン幅を揃えるため stretch に (ボタン自体のwidth指定による) */
    align-items: stretch;
    gap: 0.5rem;
    /* md:gap-2 */
    width: auto;
    margin-top: 0;
    border-top: 0;
    padding-top: 0; }

  #gHeader2 .link a {
    /* 変更: 縦積み時に幅がautoだと親に依存するため、指定の幅を持せる */
    width: 220px;
    /* 例: ボタン幅を指定 */
    box-sizing: border-box;
    /* paddingを含める */ } }
@media (max-width: 896px) {
  #gHeader2 #gNavi .linkUl li:not(:first-child) {
    margin-left: 0; }

  #gHeader2 #gNavi {
    gap: 0; }

  #gHeader2 .smlLinkUl,
  #gHeader2 .linkUl {
    font-size: 1.5rem; }

  #gHeader2 .smlLinkUl li:not(:first-child),
  #gHeader2 .linkUl li {
    border-top: 1px solid #f7f7f7; }

  #gHeader2 a.has-submenu {
    padding-right: 0;
    padding-left: 24px;
    position: relative;
    width: 100%; }

  #gHeader2 a.has-submenu::after {
    right: 20px !important;
    left: auto !important;
    top: 45%;
    transform: rotate(45deg) translateY(-50%); }

  #gHeader2 a.has-submenu.open::after {
    transform: rotate(-135deg) translateY(-50%); }

  #gNavi .smlLinkUl li:not(:last-child) {
    margin-right: 0; }

  #gHeader2 .link {
    margin-top: 0 !important; }

  #gHeader2 .lBox h1 img {
    height: 3rem !important; } }
/* ADD SCSS 2025.11.18 */
/*-------------------------------------------------------------
	#gHeader2 オンマウス仕様追加
-------------------------------------------------------------*/
@media (min-width: 896px) {
  #gHeader2 #gNavi li {
    position: relative; }
    #gHeader2 #gNavi li .subUl {
      opacity: 0;
      visibility: hidden;
      display: block;
      transition: opacity 0.5s ease, visibility 0.5s ease;
      border: none;
      display: flex;
      align-items: center;
      gap: 10px;
      border-radius: 0 15px 15px 15px;
      box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.14);
      top: 100%;
      left: 5px;
      padding: 20px;
      background: rgba(255, 255, 255, 0.97); }
      #gHeader2 #gNavi li .subUl::before {
        content: "";
        display: inline-block;
        background-image: url("../img/index/nav-pc-sub-icon.svg");
        width: 9px;
        height: 9px;
        position: absolute;
        left: 0;
        top: 0; }
      #gHeader2 #gNavi li .subUl li {
        border-top: 1px solid rgba(170, 157, 152, 0.13);
        border: none; }
        #gHeader2 #gNavi li .subUl li a {
          padding: 18px 30px 18px 35px;
          color: #707070;
          font-size: 16px;
          font-style: normal;
          font-weight: 400;
          line-height: 1;
          letter-spacing: 0.8px;
          position: relative; }
      #gHeader2 #gNavi li .subUl li.sabUl_hl a {
        padding-top: 0;
        color: #374151;
        font-size: 17px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.85px;
        position: relative; }
        #gHeader2 #gNavi li .subUl li.sabUl_hl a::before {
          content: "";
          display: inline-block;
          background-image: url("../../assets/img/index/nav-pc-sub-hl-icon.svg");
          width: 15px;
          height: 15px;
          opacity: 1;
          position: absolute;
          left: 10px;
          top: 14px; }
    #gHeader2 #gNavi li .subUl.is-active {
      opacity: 1;
      visibility: visible; }

  #gNavi .subUl li a:hover {
    background: none; }
    #gNavi .subUl li a:hover::before {
      opacity: 1; }
  #gNavi .subUl li a::before {
    content: "";
    display: inline-block;
    background-image: url("../img/index/nav-pc-sub-link-icon.svg");
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: 0.3s;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%); } }
#gHeader2 .sns {
  border-left: 1px solid #77615a;
  padding-left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px; }
  #gHeader2 .sns img {
    width: 30px;
    height: auto; }

@media (max-width: 896px) {
  #gHeader2 #gNavi li .subUl li.sabUl_hl {
    display: none; }
  #gHeader2 #gNavi li.sns {
    display: none; }
  #gHeader2 .sns.sp {
    border: none;
    padding: 0;
    justify-content: center; }
  #gHeader2 .subUl.sp {
    background: none; }
    #gHeader2 .subUl.sp li {
      position: relative; }
      #gHeader2 .subUl.sp li > a {
        color: #707070;
        font-weight: 400;
        display: flex !important;
        align-items: center;
        gap: 10px; }
        #gHeader2 .subUl.sp li > a::before {
          content: "";
          display: inline-block;
          background-image: url("../img/index/nav-pc-sub-link-icon.svg");
          width: 12px;
          height: 12px; }
        #gHeader2 .subUl.sp li > a:hover {
          opacity: 0.7; } }
/* ADD SCSS 2025.11.19 */
/*-------------------------------------------------------------
	#page-top
-------------------------------------------------------------*/
@media (max-width: 896px) {
  #page-top {
    bottom: 10px; } }
/* =========================
フローティングナビ
========================= */
/* --- PCレイアウト (デフォルト) --- */
.floating-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1000; }

.nav-item {
  width: 90px;
  /* テキストが2行なので少し幅を広げると綺麗です */
  height: 90px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-bottom: 1px solid #444;
  transition: background 0.3s;
  color: #fff !important; }

/* 中の要素を縦並びにする設定 */
.nav-item .inbox {
  display: flex;
  flex-direction: column;
  /* 縦並びにする */
  align-items: center;
  /* 中央揃え */
  justify-content: center;
  gap: 5px;
  /* 画像とテキストの間の余白 */ }

/* テキストのスタイル */
.nav-item span {
  font-size: 1.0rem;
  line-height: 1.3;
  text-align: center; }

/* アイコン画像の設定 */
.nav-item img {
  width: 40px;
  /* アイコンのサイズを調整 */
  height: auto;
  display: block; }

.nav-item:hover {
  background-color: #555; }

/* --- スマホレイアウト (画面幅 768px以下) --- */
@media (max-width: 768px) {
  .floating-nav {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    width: 100%; }

  .nav-item {
    flex: 1;
    width: auto;
    height: 70px;
    /* 縦並びにするため高さを少し確保 */
    border-bottom: none;
    border-right: 1px solid #444; }

  .nav-item:last-child {
    border-right: none; }

  .nav-item img {
    width: 30px;
    /* アイコンのサイズを調整 */
    height: auto;
    display: block;
    amrgin: 0 0 8px 0; } }
