@charset "UTF-8";

/* ===========================================================
 * phe-header.css — フェニックス子テーマ ヘッダー（PC + SP）
 * =========================================================== */

.phe-header {
  background: #fff;
  color: var(--phe-color-text);
  border-bottom: 1px solid var(--phe-color-border);
  position: relative;
  z-index: 100;
}

.phe-header a {
  color: inherit;
  text-decoration: none;
}

.phe-header img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* ----- ロゴ共通 ----- */
.phe-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.phe-header-logo-chara {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.phe-header-logo-chara img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phe-logo__text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.phe-logo__fallback {
  text-decoration: none;
  color: inherit;
}

/* WPカスタマイザーのカスタムロゴ（キャラ画像と共存） */
.phe-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.phe-logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.phe-header-pc .phe-logo .custom-logo {
  max-height: 80px;
}

.phe-header-sp .phe-logo .custom-logo {
  max-height: 44px;
}

/* ===========================================================
 *  PC ヘッダー
 * =========================================================== */
.phe-header-pc {
  display: block;
}

/* 上段（ユーティリティバー） */
.phe-header-pc__top {
  background: #fff;
  border-bottom: 1px solid var(--phe-color-border);
}

.phe-header-pc__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.phe-header-pc .phe-logo {
  gap: 12px;
}

.phe-header-pc .phe-header-logo-chara {
  width: 80px;
  height: 80px;
}

.phe-header-pc .phe-logo__text {
  font-size: 1.1rem;
}

/* 電話番号 横並び */
.phe-header-tels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.phe-header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.phe-header-tel__name {
  font-size: 0.78rem;
  color: var(--phe-color-text-muted);
  letter-spacing: 0.04em;
}

.phe-header-tel__num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--phe-color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.phe-header-tel__num:hover {
  color: var(--phe-color-primary);
}

.phe-header-tel__num .fa-phone-alt {
  font-size: 0.85em;
  color: var(--phe-color-primary);
}

/* CTAボタン共通 */
.phe-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fff;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.phe-cta.phe-cta--accent,
.phe-cta.phe-cta--accent:link,
.phe-cta.phe-cta--accent:visited {
  background: var(--phe-color-accent);
  color: #fff;
}

.phe-cta.phe-cta--accent:hover,
.phe-cta.phe-cta--accent:focus-visible,
.phe-cta.phe-cta--accent:active {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.phe-cta__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.phe-cta:hover .phe-cta__arrow {
  transform: translateX(2px);
}

/* 下段（グローバルナビ） */
.phe-gnav {
  background: #fff;
}

.phe-gnav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
}

.phe-gnav-schools,
.phe-gnav-utility {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.phe-gnav-schools {
  gap: 0;
}

.phe-gnav-utility {
  gap: 0;
}

.phe-gnav-utility li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--phe-color-text);
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.phe-gnav-utility li a:hover,
.phe-gnav-utility li a:focus-visible {
  color: var(--phe-color-primary);
  border-bottom-color: var(--phe-color-primary);
}

/* ===========================================================
 *  SP ヘッダー（既定では非表示。960px 未満で表示）
 * =========================================================== */
.phe-header-sp {
  display: none;
}

@media (max-width: 959px) {
  .phe-header-pc {
    display: none;
  }

  .phe-header-sp {
    display: block;
  }

  .phe-header-sp__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    min-height: var(--phe-header-height-sp);
    background: #fff;
  }

  .phe-logo--sp {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .phe-header-logo-chara--sp {
    width: 36px;
    height: 36px;
  }

  .phe-logo__text--sp {
    font-size: 0.92rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .phe-header-sp__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .phe-sp-btn {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--phe-color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1;
    font-family: inherit;
  }

  .phe-sp-btn__icon {
    font-size: 1.05rem;
  }

  .phe-sp-btn__label {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    font-weight: 600;
  }

  /* 電話ボタン */
  .phe-sp-btn--tel .phe-sp-btn__icon {
    color: var(--phe-color-primary);
  }

  /* MENUボタン（ブランドカラー丸） */
  .phe-sp-btn--menu {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--phe-color-accent);
    color: #fff;
    justify-content: center;
    gap: 1px;
    padding: 0;
  }

  .phe-sp-btn--menu .phe-sp-btn__label {
    color: #fff;
    font-size: 0.6rem;
  }

  .phe-sp-btn__icon-stack {
    position: relative;
    width: 22px;
    height: 16px;
  }

  .phe-sp-btn__bars,
  .phe-sp-btn__close {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .phe-sp-btn__bars {
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
  }

  .phe-sp-btn__bars > span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }

  .phe-sp-btn__close {
    opacity: 0;
    color: #fff;
    font-size: 1.1rem;
  }

  .phe-sp-btn--menu[aria-expanded="true"] .phe-sp-btn__bars {
    opacity: 0;
    transform: rotate(45deg);
  }

  .phe-sp-btn--menu[aria-expanded="true"] .phe-sp-btn__close {
    opacity: 1;
  }

  .phe-sp-btn--menu .phe-sp-btn__label--close {
    display: none;
  }

  .phe-sp-btn--menu[aria-expanded="true"] .phe-sp-btn__label--menu {
    display: none;
  }

  .phe-sp-btn--menu[aria-expanded="true"] .phe-sp-btn__label--close {
    display: inline-block;
  }

  /* 校舎タブ（ヘッダー直下） */
  .phe-sp-school-tabs {
    border-top: 1px solid var(--phe-color-border);
    background: #fff;
  }

  .phe-sp-school-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .phe-sp-school-tab a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--phe-color-text);
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }

  .phe-sp-school-tab.is-active a {
    border-bottom-color: var(--phe-color-primary);
    color: var(--phe-color-primary);
  }

  .phe-sp-school-tab a:hover,
  .phe-sp-school-tab a:focus-visible {
    color: var(--phe-color-primary);
  }
}

/* ===========================================================
 *  電話シート（SP）
 * =========================================================== */
.phe-tel-sheet[hidden] {
  display: none;
}

.phe-tel-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.phe-tel-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.phe-tel-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

.phe-tel-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.phe-tel-sheet__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.phe-tel-sheet__close {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--phe-color-text-muted);
}

.phe-tel-sheet__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phe-tel-sheet__list li + li {
  border-top: 1px solid var(--phe-color-border);
}

.phe-tel-sheet__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 8px;
  color: var(--phe-color-text);
}

.phe-tel-sheet__school {
  font-weight: 600;
}

.phe-tel-sheet__num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--phe-color-primary);
}

/* ===========================================================
 *  ドロワー（SP）
 * =========================================================== */
.phe-drawer[hidden] {
  display: none;
}

.phe-drawer {
  position: fixed;
  inset: 0;
  z-index: 1050;
}

.phe-drawer .phe-drawer__backdrop {
  display: none;
}

.phe-drawer .phe-drawer__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  background: #ffffff;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  z-index: 1060;
}

.phe-drawer.is-open .phe-drawer__panel {
  transform: translateX(0);
}

.phe-drawer__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--phe-color-border);
  z-index: 1;
}

.phe-drawer__title {
  font-size: 1rem;
  font-weight: 700;
}

.phe-drawer__close {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--phe-color-text-muted);
}

.phe-drawer__body {
  padding: 8px 0 32px;
}

.phe-drawer-acc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phe-drawer-acc__item {
  border-bottom: 1px solid var(--phe-color-border);
}

.phe-drawer-acc__head {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--phe-color-text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.phe-drawer-acc__chev {
  transition: transform 0.2s ease;
  color: var(--phe-color-text-muted);
}

.phe-drawer-acc__head[aria-expanded="true"] .phe-drawer-acc__chev {
  transform: rotate(180deg);
}

.phe-drawer-acc__panel {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  background: var(--phe-color-bg-light);
}

.phe-drawer-acc__panel[hidden] {
  display: none;
}

.phe-drawer-acc__panel li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px 11px 28px;
  font-size: 0.92rem;
  color: var(--phe-color-text);
}

.phe-drawer-acc__panel li a:hover,
.phe-drawer-acc__panel li a:focus-visible {
  background: #fff;
  color: var(--phe-color-primary);
}

.phe-drawer-acc__top {
  font-weight: 600;
}

.phe-drawer-acc__ext {
  font-size: 0.8em;
  color: var(--phe-color-text-muted);
}

.phe-drawer-util {
  list-style: none;
  margin: 16px 0 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--phe-color-border);
}

.phe-drawer-util li a {
  display: block;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--phe-color-text);
}

.phe-drawer-util li a:hover,
.phe-drawer-util li a:focus-visible {
  color: var(--phe-color-primary);
}

.phe-drawer__cta-wrap {
  text-align: center;
  margin: 24px 0;
  padding: 0 16px;
}

.phe-drawer__cta-wrap .phe-drawer__cta,
.phe-drawer .phe-drawer__cta {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 1.05rem;
}

.phe-drawer-tels {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: min(max-content, 100%);
  justify-content: center;
  gap: 10px;
}

.phe-drawer-tels li {
  margin: 0;
}

.phe-drawer-tels__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 28px;
  min-height: 48px;
  width: 100%;
  background: var(--phe-color-primary);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.phe-drawer-tels__btn:link,
.phe-drawer-tels__btn:visited {
  color: #fff;
}

.phe-drawer-tels__btn:hover,
.phe-drawer-tels__btn:focus-visible,
.phe-drawer-tels__btn:active {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.phe-drawer-tels__name {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.phe-drawer-tels__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: #fff;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

.phe-drawer-tels__icon {
  font-size: 0.95rem;
  color: #fff;
}

/* body スクロールロック */
body.phe-no-scroll {
  overflow: hidden;
}
