/* ===== 左の列（PC は画面の左に固定。スマホは上のロゴと、全画面のメニュー） ===== */

/* ロゴ（参考と同じ3行：英字2行＋和文） */
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; color: var(--ink); }
.logo-txt__en { font-size: 0.3rem; font-weight: 500; letter-spacing: 0.04em; }
.logo-txt__ja { margin-top: 0.03rem; font-size: 0.23rem; font-weight: 700; letter-spacing: 0.08em; }
.logo-full { display: block; }

.hd {
  position: fixed;
  z-index: 9000;
  top: 0;
  left: 0;
  width: 3.2rem;
  height: 100%;
  padding: 9.1145833dvh 0 5.2083333dvh 0.54rem;
  overflow-y: auto;
  scrollbar-width: none;
}
.hd::-webkit-scrollbar { display: none; }
.hd__logo { width: 1.8rem; }
.hd__logo a { display: block; }

/* 右上：インスタと予約のボタン */
.hd__sns {
  position: fixed;
  top: calc(0.2rem + var(--band));
  right: 0.8rem;
  display: flex;
  align-items: center;
  column-gap: 0.4rem;
}
.hd__sns-list { display: flex; column-gap: 0.28rem; }
.hd__sns-list a { display: flex; align-items: center; justify-content: center; width: max(16px, 0.2rem); height: max(16px, 0.2rem); }
.hd__sns-list svg { width: 100%; height: 100%; }

/* メニュー（PC はそのまま左の列に並ぶ） */
.hd__nav { display: contents; }
.hd__main { margin-top: 5.2083333dvh; font-weight: 500; }
.hd__main li + li { margin-top: 0.78125dvh; }
.hd__main a { font-size: max(13px, min(0.16rem, 18px)); line-height: 1.7; }

/* 院長紹介の箱 */
.hd__pick { margin-top: 8.3333333dvh; width: 2rem; }
.hd__pick-in { padding: 0.2rem 0.17rem; }
.hd__pick-img { display: block; overflow: hidden; border-radius: 5px; aspect-ratio: 166 / 126; }
.hd__pick-img img { width: 100%; height: 100%; object-fit: cover; }
.hd__pick-ttl {
  position: relative;
  display: block;
  margin-top: 10px;
  padding-left: 0.14rem;
  font-size: max(13px, min(0.18rem, 20px));
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.7;
}
.hd__pick-ttl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  width: 8px;
  height: 14px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.hd__sub { margin-top: 2.6041667dvh; width: 2rem; }
.hd__sub ul { display: flex; flex-wrap: wrap; gap: 3px 0; }
.hd__sub li { width: 50%; }
.hd__sub a { font-size: max(11px, min(0.12rem, 14px)); font-weight: 500; color: var(--ink-sub); }

.hd__main a, .hd__sub a { transition: color 0.3s var(--ease); }
.hd__main a:hover, .hd__sub a:hover { color: var(--accent); }

/* ===== スマホ・タブレット ===== */
@media (max-width: 1023px) {
  .hd {
    position: absolute;
    top: var(--band);
    width: 100%;
    height: auto;
    padding: 0.3rem 0.25rem 0;
    overflow: visible;
    pointer-events: none;
  }
  .hd__logo { width: 1.28rem; pointer-events: auto; }
  .hd__logo .logo-txt__en { font-size: 0.21rem; }
  .hd__logo .logo-txt__ja { font-size: 0.16rem; }
  .hd__sns { position: absolute; top: 0.32rem; right: 0.72rem; z-index: 100; pointer-events: auto; }
  .hd__sns-list a { width: 0.16rem; height: 0.16rem; min-width: 16px; min-height: 16px; }
  .hd__reserve { display: none; }

  /* メニューを開いたとき：薄い面が下から広がり、中身が下から出る */
  body::after {
    content: "";
    position: fixed;
    z-index: 8000;
    inset: 0;
    background: rgba(243, 249, 247, 0.96);
    backdrop-filter: blur(3px);
    transform-origin: center top;
    transform: scaleY(0);
    transition: transform 0.3s var(--ease);
    pointer-events: none;
  }
  .hd__nav {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: block;
    width: 100%;
    height: 100dvh;
    padding: 1.44rem 0.25rem 0;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease) 0.3s, visibility 0s linear 0.6s;
    pointer-events: none;
  }
  .hd__main { margin-top: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hd__main li + li { margin-top: 0; border-top: 1px solid var(--line); }
  .hd__main a { display: block; padding: 0.13rem 0 0.13rem 0.1rem; font-size: min(0.16rem, 18px); }
  .hd__main a::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 12px;
    margin-right: 0.08rem;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
  .hd__pick { margin-top: 0.4rem; width: 100%; }
  .box.hd__pick-in { display: flex; align-items: center; column-gap: 0.18rem; padding: 0.17rem; }
  .hd__pick-img { flex: none; width: 1.2rem; }
  .hd__pick-ttl { margin-top: 0; font-size: min(0.16rem, 18px); }
  .hd__pick-ttl::before { width: 7px; height: 12px; }
  .hd__pick-sub { display: block; margin-top: 0.08rem; font-size: min(0.14rem, 16px); line-height: 1.6; }
  .hd__reserve-sp.hd-sp { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem; margin-top: 0.2rem; }
  .hd__reserve-sp a { padding: 0.2rem 0.1rem; text-align: center; font-size: min(0.16rem, 18px); font-weight: 500; }
  .hd__sub { margin-top: 0.35rem; width: auto; }
  .hd__sub ul { gap: 6px 0; justify-content: space-between; }
  .hd__sub a { font-size: min(0.14rem, 16px); }

  .hd__menu { position: fixed; z-index: 9300; top: calc(0.29rem + var(--band)); right: 0.25rem; width: 25px; height: 25px; pointer-events: auto; }
  .hd__menu-btn { position: relative; display: block; width: 100%; height: 100%; }
  .hd__menu-btn::before, .hd__menu-btn::after, .hd__menu-line {
    content: "";
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--ink);
    transition: all 0.6s var(--ease);
  }
  .hd__menu-btn::before { top: 5px; }
  .hd__menu-btn::after { top: 18px; }
  .hd__menu-line { top: 50%; translate: 0 -50%; }

  body.menu-open::after { z-index: 9150; transform: scaleY(1); transform-origin: center bottom; transition: transform 1s var(--ease); }
  body.menu-open .hd { position: fixed; z-index: 9200; top: 0; }
  body.menu-open .hd__menu { top: 0.29rem; }
  body.menu-open .hd__nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 1.5s var(--ease) 0.5s, transform 1.5s var(--ease) 0.5s, visibility 0s;
  }
  body.menu-open .hd__logo-wrap { position: relative; z-index: 9300; }
  body.menu-open .hd__sns { z-index: 9300; }
  body.menu-open .hd__menu-line { opacity: 0; }
  body.menu-open .hd__menu-btn::before { top: 12px; rotate: -45deg; }
  body.menu-open .hd__menu-btn::after { top: 12px; rotate: 45deg; }
}

/* ===== PC（1024px 以上）：上に横長のヘッダー。ロゴ左、ナビ、右に LINE の予約。白地に細い線 ===== */
@media (min-width: 1024px) {
  .hd {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    height: max(64px, 0.84rem);
    padding: 0 max(24px, 0.4rem);
    overflow: visible;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .hd__logo { width: auto; }
  .hd__logo .logo-txt { flex-direction: row; align-items: baseline; gap: 0.08rem; }
  .hd__logo .logo-txt__ja { order: -1; margin: 0 0.08rem 0 0; font-size: max(17px, 0.22rem); }
  .hd__logo .logo-txt__en { color: var(--accent); font-family: var(--en); font-size: max(10px, 0.12rem); font-weight: 400; letter-spacing: 0.16em; }
  .hd__nav { display: block; order: 1; margin-left: auto; }
  .hd__main { margin: 0; }
  .hd__main ul { display: flex; gap: max(18px, 0.3rem); }
  .hd__main li + li { margin-top: 0; }
  .hd__main a { font-size: max(13px, min(0.15rem, 16px)); }
  .hd__pick, .hd__sub { display: none; }
  .hd__sns { position: static; order: 2; column-gap: max(18px, 0.3rem); }
}
