/* ヘッダー（上に留まる。送ると白い帯になり、教室名に入れ替わる） */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, height 0.3s ease-out;
}
.header.is-sm {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(25, 44, 63, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 0 var(--sp-md);
}
.header__brand {
  position: relative;
  display: grid;
  align-items: center;
  margin-right: auto;
  min-width: 0;
}
.header__lead,
.header__logo {
  grid-area: 1 / 1;
  color: var(--main-ink);
  font-family: var(--f-maru);
  font-weight: 500;
  transition: opacity 0.3s ease-out;
}
.header__lead { font-size: 12px; line-height: 1.6; letter-spacing: 0.04em; }
.header__logo {
  opacity: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.header.is-sm .header__lead { opacity: 0; }
.header.is-sm .header__logo { opacity: 1; }

/* PC のナビ（1280px 以上） */
.gnav { display: none; }
@media (min-width: 1280px) {
  .header { height: 96px; }
  .header.is-sm { height: 72px; }
  .header__inner { padding: 0 40px; }
  .header__lead { font-size: 13px; }
  .header__logo { font-size: 22px; }
  .gnav { display: flex; align-items: center; gap: 24px; }
  .gnav__menu { display: flex; }
  .gnav__menu a {
    display: block;
    padding: 10px 16px;
    color: var(--main-ink);
    font-family: var(--f-maru);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.1em;
    border-radius: 12px;
    transition: background-color 0.2s ease-out;
  }
  .gnav__menu a:hover { background: rgba(196, 87, 58, 0.1); }
  .gnav__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    background: var(--line);
    color: var(--white);
    font-family: var(--f-maru);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.06em;
    transition: background-color 0.3s ease-out;
  }
  .gnav__cta:hover { background: var(--line-h); }
  .gnav__cta svg { width: 26px; height: 26px; fill: currentColor; }
}

/* メニューのボタン（1279px 以下） */
.header__menubtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: none;
  width: 52px;
  height: 48px;
  border-radius: 14px;
  background: var(--main-btn);
  color: var(--white);
  font-family: var(--f-maru);
  font-weight: 700;
  font-size: 10px;
  line-height: 1.2;
}
.header__bars { position: relative; display: block; width: 20px; height: 14px; }
.header__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.header__bars span:nth-child(1) { top: 0; }
.header__bars span:nth-child(2) { top: 6px; }
.header__bars span:nth-child(3) { top: 12px; }
.header__menubtn[aria-expanded="true"] .header__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__menubtn[aria-expanded="true"] .header__bars span:nth-child(2) { opacity: 0; }
.header__menubtn[aria-expanded="true"] .header__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1280px) { .header__menubtn { display: none; } }

/* メニューの中身（青い面が上から出る） */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding-top: 64px;
  background: var(--main-btn);
  color: var(--white);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-out, visibility 0.3s;
}
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer__inner { max-width: 560px; margin: 0 auto; padding: 24px var(--sp-lg) 120px; }
.drawer__menu { border-top: 1px solid rgba(255, 255, 255, 0.5); }
.drawer__menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.drawer__menu a {
  display: block;
  padding: 16px 4px;
  font-family: var(--f-maru);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.drawer__line { margin-top: 24px; }
.drawer__tel { margin-top: 12px; }
@media (min-width: 1280px) { .drawer { display: none; } }
body.is-menu .header { background: var(--white); }

/* 右下の申し込みの札（960px 以上）。上の部分だけ見せ、指を乗せると上がる */
.sidetab { display: none; }
@media (min-width: 960px) {
  .sidetab {
    position: fixed;
    right: 85px;
    bottom: -64px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 144px;
    padding: 24px 16px 80px;
    border-radius: 100px 100px 0 0;
    background: var(--main-btn);
    color: var(--white);
    font-family: var(--f-maru);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-align: center;
    box-shadow: 0 4px 16px rgba(25, 44, 63, 0.16);
    transition: transform 0.3s ease-out, background-color 0.3s ease-out;
  }
  .sidetab svg { width: 44px; height: 44px; fill: currentColor; }
  .sidetab:hover, .sidetab:focus-visible { transform: translateY(-16px); background: var(--main-btn-h); }
}

/* スマホの下の帯（959px 以下） */
.spbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -2px 12px rgba(25, 44, 63, 0.1);
}
.spbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  border-radius: 14px;
  color: var(--white);
  font-family: var(--f-maru);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.spbar svg { width: 22px; height: 22px; fill: currentColor; }
.spbar__line { flex: 1; background: var(--line); }
.spbar__tel { flex: none; width: 96px; background: var(--main-btn); }
@media (min-width: 960px) { .spbar { display: none; } }
@media (max-width: 959px) { body { padding-bottom: 64px; } }
