/* ===== ヘッダー（参考：半透明の白い帯。左に横組みのロゴ、スクロールすると帯が細くなる） ===== */
.header {
  position: fixed;
  top: var(--band);
  left: 0;
  right: 0;
  z-index: 9990;
  height: 104px;
  padding: 15px 25px;
  background-color: rgba(255, 255, 255, 0.75);
  transition: height 0.4s ease-out;
}
.header.is-past-band { top: 0; }
.header__in { position: relative; display: flex; justify-content: flex-end; align-items: center; height: 100%; }

/* 横組みのロゴ（帯の中に常に置く） */
.header__logo-sub { position: absolute; top: 50%; left: 0; translate: 0 -50%; }
.logo-h { display: flex; align-items: center; gap: 12px; color: var(--ink-dark); }
.logo-h__mark { flex: none; width: 44px; height: 44px; color: var(--main); }
.logo-h__txt { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.logo-h__ja { font-family: var(--kaku); font-weight: 500; font-size: 1.25rem; letter-spacing: 0.12em; }
.logo-h__en { font-family: var(--serif); font-size: 11px; letter-spacing: 0.06em; color: var(--sub); }


/* メニュー */
.gnav { display: flex; align-items: center; height: 100%; }
.gnav__menu { display: flex; align-items: center; height: 100%; }
.gnav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  color: var(--ink-dark);
  font-family: var(--kaku);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.gnav__link::before {
  content: "";
  position: absolute;
  top: calc(50% - 32px);
  left: 0;
  right: 0;
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background-color: var(--main-30);
  opacity: 0;
  transition: opacity 0.4s ease-out, top 0.4s ease-out;
}
.header.is-sm .gnav__link::before { top: calc(50% - 26px); }
.gnav__menu > li:hover > .gnav__link::before, .gnav__menu > li.is-current > .gnav__link::before { opacity: 1; }
.gnav__cta { display: flex; align-items: center; }
.gnav__tel, .gnav__reserve { margin-left: 24px; }
.gnav__tel .cta-tel__lbl { font-size: 1.25rem; line-height: 1.2; }
.gnav__tel .cta-tel__num { font-size: 1.875rem; line-height: 1.2; }
.gnav__reserve a { width: 180px; height: 68px; padding: 0 24px; font-size: 1.1875rem; transition: height 0.4s ease-out; }
.header.is-sm .gnav__reserve a { height: 48px; }

.header__tel-btn, .header__menu-btn, .gnav-overlay { display: none; }

@media (min-width: 1081px) {
  .header.is-sm { height: 80px; }
}
/* 1081〜1580px：Web予約は右上に浮かせる（参考と同じ） */
@media (min-width: 1081px) and (max-width: 1580px) {
  .gnav__reserve a { position: fixed; right: 16px; top: calc(120px + var(--band)); height: 54px; box-shadow: 0 4px 16px rgba(20, 52, 46, 0.12); }
  .header.is-past-band .gnav__reserve a { top: 120px; }
  .header.is-sm .gnav__reserve a { top: 96px; height: 54px; }
}
@media (min-width: 1081px) and (max-width: 1260px) {
  .gnav__link { padding: 0 12px; font-size: 14px; }
  .gnav__tel .cta-tel__num { font-size: 1.5rem; }
}

/* ===== 1080px 以下：白い細い帯・横組みのロゴ・電話とメニューの四角いボタン、メニューは右から出る ===== */
@media (max-width: 1080px) {
  .header { height: 64px; padding: 0; background-color: #fff; }
  .header__logo-sub { left: 12px; }
  .logo-h__mark { width: 38px; height: 38px; }
  .logo-h__ja { font-size: 1.0625rem; }
  .logo-h__en { font-size: 9.5px; }
  .header__tel-btn, .header__menu-btn {
    position: absolute;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-left: 1px solid #e7e5e4;
  }
  .header__tel-btn { right: 64px; }
  .header__tel-btn a { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; color: var(--main); }
  .header__menu-btn { right: 0; transition: background-color 0.4s ease-out; }
  .header__menu-btn[aria-expanded="true"] { background-color: var(--pale); }
  .header__menu-lines { position: relative; width: 24px; height: 16px; }
  .header__menu-lines span { position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--main); transition: transform 0.4s ease-out, opacity 0.4s ease-out; }
  .header__menu-lines span:nth-child(1) { top: 0; }
  .header__menu-lines span:nth-child(2) { top: 7px; }
  .header__menu-lines span:nth-child(3) { bottom: 0; }
  .header__menu-btn[aria-expanded="true"] .header__menu-lines span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
  .header__menu-btn[aria-expanded="true"] .header__menu-lines span:nth-child(2) { opacity: 0; }
  .header__menu-btn[aria-expanded="true"] .header__menu-lines span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

  .gnav, .gnav-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    height: calc(100vh - 64px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s;
  }
  .gnav-overlay { display: block; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.8); }
  .gnav {
    z-index: 1;
    display: block;
    width: 75%;
    max-width: 420px;
    padding: 24px 7% 72px;
    overflow-y: auto;
    background-color: var(--pale);
    transform: translateX(100%);
  }
  body.menu-open .gnav, body.menu-open .gnav-overlay { opacity: 1; visibility: visible; }
  body.menu-open .gnav { transform: translateX(0); }
  .gnav__menu { display: block; height: auto; margin-bottom: 24px; }
  .gnav__menu li { position: relative; }
  .gnav__link { height: auto; padding: 12px 24px 12px 8px; border-bottom: 1px solid var(--line); }
  .gnav__link::before { display: none; }
  .gnav__link::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10px;
    width: 7px;
    height: 7px;
    margin: auto;
    border-top: 1px solid var(--main);
    border-right: 1px solid var(--main);
    transform: rotate(45deg);
  }
  .gnav__cta { display: block; }
  .gnav__tel, .gnav__reserve { margin-left: 0; }
  .gnav__tel { margin-bottom: 16px; }
  .gnav__tel a { justify-content: center; }
  .gnav__tel .cta-tel__hours { text-align: center; }
  .gnav__tel .cta-tel__num { font-size: 1.714rem; }
  .gnav__reserve a { width: 100%; max-width: 300px; height: auto; margin: 0 auto; padding: 10px 16px; font-size: 1.0625rem; }
}

/* ===== スマホの画面下の固定ボタン（参考：3つ並び。予約・診療時間・電話） ===== */
.sp-fixed { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 56px; }
  .sp-fixed { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9980; display: block; box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); }
  .sp-fixed ul { display: flex; }
  .sp-fixed li { width: 33.333%; }
  .sp-fixed a { display: flex; justify-content: center; align-items: center; gap: 8px; height: 56px; color: #fff; white-space: nowrap; font-size: 15px; font-family: var(--kaku); font-weight: 500; letter-spacing: 0.06em; }
  .sp-fixed__reserve a { background-color: var(--main); }
  .sp-fixed__time a { background-color: var(--th); color: var(--sub); }
  .sp-fixed__tel a { background-color: #6b6b6b; }
}

/* ===== ページの上へ ===== */
.page-top { position: fixed; bottom: 24px; right: 0; z-index: 50; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.page-top.is-show { opacity: 1; visibility: visible; }
.page-top a {
  position: relative;
  display: block;
  width: 80px;
  height: 60px;
  padding: 30px 8px 12px;
  background-color: #767676;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.1em;
}
.page-top a::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  width: 12px;
  height: 12px;
  margin: auto;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  transform: rotate(45deg);
}
@media (max-width: 767px) {
  .page-top { bottom: 68px; right: 12px; }
  .page-top a { width: 58px; height: 54px; padding: 28px 8px 12px; font-size: 10px; }
  .page-top a::before { top: 16px; }
}
