/* ===== SP固定ボタン ===== */
.sp-fixed-btns {
  display: none;
}
@media (max-width: 640px) {
  .sp-fixed-btns {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    height: 56px;
  }
  .sp-fixed-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    line-height: 1.3;
    text-align: center;
  }
  .sp-fixed-btn--contact {
    background: #005eb8;
    font-size: 16px;
  }
  .sp-fixed-btn--school {
    background: #31caff;
  }
  .sp-fixed-btn span { display: block; }
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 0 40px;
  height: 80px;
  max-width: 1920px;
  margin: 0 auto;
}
.header__logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}
.header__logo { height: 40px; width: auto; }
.header__school-name {
  font-size: 16px;
  color: #333;
  white-space: nowrap;
}
.header__nav {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.header__nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 1.2vw, 24px);
  flex-wrap: nowrap;
}
.header__nav-list a {
  font-weight: 700;
  font-size: clamp(12px, 1vw, 18px);
  white-space: nowrap;
  transition: color 0.2s;
}
.header__nav-list a:hover { color: #005eb8; }
.header__btns { flex-shrink: 0; display: flex; flex-direction: row; gap: 10px; }
.header__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #005eb8;
  color: #fff;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.2s;
}
.header__btn:hover { opacity: 0.85; }
.header__btn--contact { background: #005eb8; }
.header__btn--school {
  background: #31caff;
  color: #fff;
  flex-direction: column;
  gap: 0;
  line-height: 1.3;
  font-size: 16px;
}
.header__btn--school span { display: block; }
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #005eb8;
  border: none;
  cursor: pointer;
  padding: 12px;
  flex-shrink: 0;
  border-radius: 0;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-content: center;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.header__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.is-open span:nth-child(2) { opacity: 0; }
.header__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== DRAWER ===== */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 360px;
  height: 100%;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s linear 0s;
}

/* ドロワーヘッダー — SP の header__inner と同じスタイル */
.drawer__header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 80px;
  padding: 0 0 0 16px;
  gap: 0;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.drawer__logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  align-self: center;
  overflow: hidden;
  padding-right: 8px;
  text-decoration: none;
}
.drawer__logo {
  height: 24px;
  width: auto;
  flex-shrink: 0;
}
.drawer__school-name {
  font-size: 11px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer__close {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  align-self: stretch;
  background: #005eb8;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer__close .material-symbols-rounded {
  font-size: 28px;
  color: #fff;
}

/* ドロワーナビ */
.drawer__nav { flex: 1; }
.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer__list li { border-bottom: 1px solid #eee; }
.drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  font-weight: 700;
  font-size: 15px;
  color: #333;
  text-decoration: none;
}
.drawer__list a::after {
  font-family: 'Material Symbols Rounded';
  content: '\e5c8';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 22px;
  color: #005eb8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}

/* ドロワーフッター */
.drawer__footer {
  padding: 16px;
  flex-shrink: 0;
}
.drawer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: #005eb8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}
.drawer__cta .material-symbols-rounded {
  font-size: 20px;
  color: #fff;
}

.drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer__overlay.is-open { opacity: 1; pointer-events: auto; }

/* ===== WordPress 管理バー対応 ===== */
/* ログイン時に表示される管理バー (32px / SP:46px) に合わせてヘッダーを下げる */
.admin-bar .header {
  top: 32px;
}
@media screen and (min-width: 600px) and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}
@media screen and (max-width: 599px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .header__nav { display: none; }
  .header__btns { display: none; }
  .header__hamburger { display: flex; }
  .header__inner {
    padding: 0 0 0 16px;
    gap: 0;
    align-items: stretch;
  }
  .header__logo-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
    align-self: center;
    overflow: hidden;
    padding-right: 8px;
  }
  .header__logo { height: 24px; flex-shrink: 0; }
  .header__school-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header__hamburger {
    flex: 0 0 auto;
    width: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    align-self: stretch;
    height: auto;
    margin-left: 0;
  }
}
