:root{
  --nav-max-w: 1200px;          /* 指定の横幅 */
  --nav-bg: #FFC8E2;            /* 指定色 */
  --nav-radius: 16px;           /* 角丸 */
  --nav-pad-y: 20px;
  --nav-pad-x: 16px;
  --nav-gap: 16px;
  --nav-shadow: 0 8px 24px rgba(0,0,0,.08);
  --brand: #0b6fa4;
  --nav-top-pc: 80px;  /* PC版ナビの位置 */
  --nav-top-sp: 10px;  /* スマホ版ナビの位置 */
  --logo-sp-width: 160px;   /* ロゴの横幅（例：180〜240px） */
  --logo-sp-top: 4px;      /* 画面上からの距離 */
  --logo-sp-box: 72px;      /* ロゴが占める高さ相当（padding確保用） */
  --tel-top-pc: 10px;     /* 画面上から */
  --tel-right-pc: 10px;   /* 画面右から */
  --tel-radius: 12px;
}

html, body {
  font-family: "M PLUS Rounded 1c", "Yu Gothic UI", "ヒラギノ角ゴ ProN", "メイリオ", Meiryo, "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em; /* お好みで少し字間を空けると読みやすい */
  color: #333;
  -webkit-font-smoothing: antialiased;   /* macOSでのにじみ軽減 */
  -moz-osx-font-smoothing: grayscale;    /* macOS Firefox用 */
  text-rendering: optimizeLegibility;    /* 字形をより滑らかに */
}


/* ヒーロー前面に固定配置（上部中央寄せ） */
.hero__navwrap{
  position: absolute;
  top: var(--nav-top-pc, 80px);
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--nav-max-w), calc(100% - 24px));
  z-index: 40; /* スライドやオーバーレイより前面 */
}

/* メインのナビカプセル */
.nav-bar{
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 左メニュー / ロゴ / 右メニュー */
  align-items: center;
  gap: var(--nav-gap);
  background: var(--nav-bg);
  border-radius: var(--nav-radius);
  padding: var(--nav-pad-y) var(--nav-pad-x);
  box-shadow: var(--nav-shadow);
}

/* 左右のメニュー群 */
.nav-group{
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-group--left{ justify-content: flex-start; }
.nav-group--right{ justify-content: flex-end; }

.nav-group a{
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #665952;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .06s ease;
  white-space: nowrap;
  font-size: 20px;
}
.nav-group a:hover{ background: rgba(255,255,255,.7); }
.nav-group a:active{ transform: translateY(1px); }

/* 予約ボタンだけ少し強調 */
.nav-group a.is-cta{
  background: #fff;
  color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(11,111,164,.1);
}
.nav-group a.is-cta:hover{
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(11,111,164,.25);
}

/* ロゴ（中央） */
.nav-logo a{ display: inline-flex; align-items: center; justify-content: center; }
.nav-logo img{
  height: clamp(28px, 5vw, 44px);
  width: auto;
}

/* ハンバーガー（PCで非表示） */
.nav-toggle {
  display: inline-block;
  position: absolute;
  right: 0;
  top: 0;
  width: 66px;
  height: 66px;
  border: none;
  border-radius: 16px;     /* ← 四隅すべて丸い */
  background: #FFC8E2;
  cursor: pointer;
  z-index: 10;
}
.nav-toggle__bar {
  display: block;
  width: 32px;
  height: 3px;
  margin: 7px auto;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center center;
}
/* 開閉アニメーション（nav.jsでaria-expandedを制御） */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-toggle{ display: none; }

/* モバイルレイアウト */
@media (max-width: 959.98px){
  .nav-bar{
    position: relative;
    overflow: visible;
    padding-top: calc(var(--logo-sp-box) + 10px); /* ロゴの分だけ上に余白を追加 */
    padding-right: 64px; /* 右上のハンバーガー分の余白（ボタンサイズに合わせて） */
    grid-template-columns: 1fr; /* ロゴは絶対配置にするので1カラムでOK */
    padding-right: 54px;              /* トグルの分あける */
  }
  .nav-group{ display: none; }       /* PCメニューを隠す */
  .nav-logo{
  order: 1;
  position: absolute;
  top: var(--logo-sp-top);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  width: auto;
  height: auto;
}
  .nav-logo img{
    width: var(--logo-sp-width);
    height: auto !important;
    max-height: none !important;
  }
  .nav-toggle{
  display: inline-block;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 12px;
  top: 10px;
  width: 64px;
  height: 64px;
  z-index: 1001;
}

  /* ロゴは追尾させない */
  .hero__navwrap{
    position: absolute;
  top: var(--nav-top-sp);
  left: 0;
  transform: none;
  width: 100%;
  z-index: 40;
  }

  /* ナビの背景色に調和したバーの色 */
  .nav-toggle__bar{
    background: #333;
  }

  /* ドロワー（全幅） */
  .nav-drawer{
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--nav-bg);
    border-radius: 14px;
    box-shadow: var(--nav-shadow);
    padding: 10px;
    z-index: 999;
  }
  .nav-drawer[hidden]{ display: none !important; }

  .nav-drawer__list{
    list-style: none;
    margin: 0;
    padding: 6px;
    display: grid;
    gap: 6px;
  }
  .nav-drawer__list a{
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,.7);
  }
  .nav-drawer__list a.is-cta{
    background: #fff;
    color: var(--brand);
  }

  .nav-bar {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

/* アクセシビリティ補助（キーボードフォーカス） */
.nav-group a:focus,
.nav-drawer__list a:focus,
.nav-toggle:focus{
  outline: 2px solid rgba(11,111,164,.6);
  outline-offset: 2px;
}

@media (min-width: 960px){
  .hero__navwrap{
    top: var(--nav-top-pc) !important; /* 80px を強制 */
  }
  .nav-toggle{ display: none !important; }
  /* ついでにPCでドロワーが出ないよう固定 */
  .nav-drawer{ display: none !important; }
  .nav-group{ display: flex; } /* PCメニューを必ず表示 */
}

/* PCだけ適用（960px以上） */
@media (min-width: 960px){
  :root{
    --logo-pop: 80px;   /* ← 上にはみ出す量。±でお好み調整（例: 20〜60） */
    --logo-box-h: 44px; /* ← ピンク帯内で「ロゴ枠」に使う高さ。元の見た目に合わせる */
  }
  .nav-bar{
    position: relative;
    overflow: visible;
  }

  .nav-logo img{
    position: absolute;
    left: 50%;
    top: 0; /* ロゴ枠の上端を基準 */
    transform: translate(-50%, calc(-1 * var(--logo-pop))); /* 上へ持ち上げる */
    width: 220px;                 /* 実寸 or 任意 */
    height: auto !important;      /* 既存の clamp を打ち消し */
    max-height: none !important;  /* 既存の制限を打ち消し */
  }

  /* ロゴの余白分、ナビ全体を少し下げてバランスを取る */
  .hero__navwrap{
    top: calc(var(--nav-top-pc, 80px) + 20px);
  }

  /* ロゴを前面に出す（メニューより手前に） */
  .nav-logo{
    position: relative;
    height: var(--logo-box-h);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20; /* 前面へ */
  }
}

/* PCのみ表示 */
.tel-cta{ display: none; }

@media (min-width: 960px){
  /* ナビ基準で絶対配置できるように */
  .nav-bar{ position: relative; overflow: visible; }

  :root{
    --tel-gap: 5px; /* ナビ上端とのすき間。好みで 0〜16px などに調整 */
  }

  .tel-cta{
    display: grid;
    gap: 6px;
    position: absolute;
    right: var(--nav-pad-x);   /* ← ナビの内側右余白と揃える */
    top: -10px;                /* ← ナビの上に少し浮かせる（好みで調整） */
    transform: translateY(calc(-90% - var(--tel-gap)));
    z-index: 30;
    padding: 0;
    background: none;          /* 背景なし */
    text-align: right;
  }

  .tel-cta__label{
    margin: 0;
    font-size: 16px;
    color: #143240;
    line-height: 1.2;
    white-space: nowrap;
    font-weight: 1000;
  }

  .tel-cta__link{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 30px;
    color: #665952;
    text-decoration: none;
    white-space: nowrap;
  }
  .tel-cta__link:hover{ opacity: .9; }

  .tel-cta__icon{
    display: inline-flex;
    line-height: 1;
  }
}

/* ===== Site-wide Link Styles ===== */
a {
  color: inherit;                /* 通常は本文の文字色に合わせる */
  text-decoration: none;         /* 下線なし */
  transition: color 0.2s ease;   /* 色変更をなめらかに */
}

a:hover,
a:focus {
  color: #52B200;                /* マウスオーバー・フォーカス時の共通カラー */
  text-decoration: none;         /* 下線は表示しない */
  outline: none;                 /* フォーカスリング不要なら消す */
}

/* =========================
   PC：メガメニュー（ホバーで半透明パネル）
   ========================= */
@media (min-width: 960px){

  /* ナビ全体を基準にする（右端でもはみ出させない） */
  .nav-bar{
    position: relative;
    overflow: visible;
  }

  /* li基準の absolute を無効化 */
  .has-mega{
    position: static;
  }

  /* =========================
     メガメニュー本体
     ========================= */
  .has-mega > .mega{
    position: absolute;
    top: calc(100% + 2px);

    /* ナビ内側幅にフィット */
    left: var(--nav-pad-x, 16px);
    right: var(--nav-pad-x, 16px);
    width: auto;
    max-width: none;

    padding: 14px;

    background: rgba(255,255,255,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);

    /* 初期状態（非表示） */
    opacity: 0;
    transform: translateY(6px);

    /* ▼ここが重要：即クリック不能にしない */
    visibility: hidden;
    pointer-events: auto;

    transition:
      opacity .18s ease,
      transform .18s ease,
      visibility 0s linear .18s;

    z-index: 60;
  }

  /* =========================
     hoverが切れないための「橋」
     ========================= */
  .has-mega > .mega::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;

    /* 見た目の隙間10px + 少し余裕 */
    top: -18px;
    height: 18px;

    background: transparent;
  }

  /* =========================
     表示状態
     ========================= */
  .has-mega:hover > .mega,
  .has-mega:focus-within > .mega{
    opacity: 1;
    transform: translateY(0);

    visibility: visible;

    /* visibility の遅延を解除 */
    transition-delay: 0s, 0s, 0s;
  }

  /* =========================
     中身：4列グリッド
     ========================= */
  .mega__grid{
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .mega__grid a{
    display: block;
    padding: 10px;
    border-radius: 10px;

    text-decoration: none;
    color: #665952;
    font-weight: 600;

    background: rgba(255,255,255,.55);
    transition: background .15s ease, transform .06s ease;
  }

  .mega__grid a:hover{
    background: rgba(255,255,255,.9);
  }

  .mega__grid a:active{
    transform: translateY(1px);
  }
}

/* =========================
   SP：ドロワー内 サブメニュー（＋/−）対応
   ========================= */
@media (max-width: 959.98px){

  /* 親行（リンク＋ボタン） */
  .nav-drawer__row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
  }

  .nav-drawer__link{
    flex: 1;
    min-width: 0;
  }

  /* 丸い＋/−ボタン */
  .nav-drawer__toggle{
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.18);
    background: rgba(255,255,255,.75);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
  }

  /* ＋ / − アイコン */
  .nav-drawer__toggle-icon{
    width: 14px;
    height: 14px;
    position: relative;
    display: block;
  }
  .nav-drawer__toggle-icon::before,
  .nav-drawer__toggle-icon::after{
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #333;
    transform: translate(-50%, -50%);
    border-radius: 2px;
  }
  /* 縦線（＋） */
  .nav-drawer__toggle-icon::after{
    transform: translate(-50%, -50%) rotate(90deg);
  }
  /* 開いているときは − に */
  .nav-drawer__toggle[aria-expanded="true"] .nav-drawer__toggle-icon::after{
    opacity: 0;
  }

  /* サブメニュー（2列・アニメ） */
  .nav-drawer__sub{
    list-style: none;

    /* ▼閉じている時は“余白をゼロ”にして隙間を作らない */
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background: transparent;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 8px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);

    transition:
      max-height .25s ease,
      opacity .20s ease,
      transform .20s ease;
  }

  /* 開いた状態（li に is-open が付いたら） */
  .nav-drawer__item--has-sub.is-open > .nav-drawer__sub{
    /* ▼開いた時だけ余白を付ける */
    margin-top: 4px;
    padding: 8px;
    background: rgba(255,255,255,.45);

    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-drawer__sub a{
    font-family: -apple-system, BlinkMacSystemFont,
                 "Hiragino Sans", "Noto Sans JP",
                 "Yu Gothic", "Meiryo", sans-serif;
    display: block;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    background: rgba(255,255,255,.75);
    font-size: 14px;     /* ← まずここ */
    line-height: 1.25;   /* ← 行の圧縮で2行化を抑える */
    padding: 8px 8px;    /* ← 横幅を稼ぐ（重要） */
    font-weight: 500;
  }
}

/* =========================
   PC：追従サイドボタン（右固定）
   ========================= */
@media (min-width: 960px){
  .sidefloat{
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .sidefloat__btn{
    width: 64px;
    height: 220px;
    border-radius: 14px;

    background: #E5157E;              /* 指定色に近い */
    box-shadow: 0 10px 24px rgba(0,0,0,.18);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    text-decoration: none;
    color: #fff;
    padding: 14px 10px;
  }

  .sidefloat__btn:hover{
    filter: brightness(.95);
  }

  .sidefloat__btn:active{
    transform: translateY(1px);
  }

  .sidefloat__icon{
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
  }

  .sidefloat__icon img{
    width: 100%;
    height: auto;
    display: block;
  }

  /* 縦書き */
  .sidefloat__text{
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
  }
  .sidefloat__btn--web{
    background: #C7006B; /* 好きな色に変更 */
  }
  .sidefloat__btn--web:hover{
    filter: brightness(.97);
  }
}

@media (min-width: 960px){
  /* 電話ボタン：PCではクリック不可＆ホバー変化なし */
  .sidefloat__btn--tel{
    pointer-events: none;  /* クリック・ホバー等を受け取らない */
    cursor: default;       /* 手の形にしない */
  }

  /* 念のため：hover/activeの見た目変化を無効化 */
  .sidefloat__btn--tel:hover{
    filter: none;
  }
  .sidefloat__btn--tel:active{
    transform: none;
  }
}

/* SPでは非表示（後でスマホ版を作る前提） */
@media (max-width: 959.98px){
  .sidefloat{ display: none; }
}

/* =========================
   SP：画面下部 追従ボタン
   ========================= */
.sp-floatbar{ display: none; }

@media (max-width: 959.98px){

  .sp-floatbar{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;

    display: flex;
  }

  .sp-floatbar__btn{
    flex: 1;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
  }

  /* 左：電話 */
  .sp-floatbar__btn--tel{
    background: #E5157E; /* PC電話と同系色 */
    border-radius: 12px 0 0 0; /* 左上のみ角丸 */
  }

  /* 右：WEB予約 */
  .sp-floatbar__btn--web{
    background: #C31269; /* 少し濃いピンク（変更可） */
    border-radius: 0 12px 0 0; /* 右上のみ角丸 */
  }

  .sp-floatbar__icon{
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
  }

  .sp-floatbar__icon img{
    width: 100%;
    height: auto;
    display: block;
  }

  .sp-floatbar__text{
    line-height: 1;
    white-space: nowrap;
  }
}

.sp-floatbar__btn:hover,
.sp-floatbar__btn:active,
.sp-floatbar__btn:focus,
.sp-floatbar__btn:visited{
  color: #fff;
}