@charset "UTF-8";

/* ===========================================================
 * phe-footer.css — フェニックス子テーマ フッター
 * =========================================================== */

.phe-footer {
  background: var(--phe-color-bg-dark);
  color: #e6e6e3;
  margin-top: 0;
}

.phe-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.phe-footer a:hover,
.phe-footer a:focus-visible {
  color: #fff;
  opacity: 0.9;
}

.phe-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.phe-footer__top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.phe-footer__top .phe-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* 校舎カラム */
.phe-footer-school {
  min-width: 0;
}

.phe-footer-school__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

.phe-footer-school__name a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phe-footer-school__services {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phe-footer-school__services li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.92rem;
  color: #d6d6d2;
}

.phe-footer-school__services li a:hover {
  color: #fff;
}

.phe-footer-school__ext {
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.55);
}

.phe-footer-school__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #c0c0bd;
  line-height: 1.6;
}

.phe-footer-school__postal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* 住所の下の目印（小倉南校の「（アドベンチャープール前）」） */
.phe-footer-school__addr-note {
  display: block;
}

.phe-footer-school__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.phe-footer-school__tel:hover {
  color: var(--phe-color-primary);
}

.phe-footer-school__top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c0c0bd;
}

.phe-footer-school__top-link:hover {
  color: #fff;
}

/* フッター下部 */
.phe-footer__bottom {
  background: rgba(0, 0, 0, 0.18);
}

.phe-footer__inner--bottom {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.phe-footer__sns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #fff;
}

.phe-footer__sns .fa-instagram {
  font-size: 1.3rem;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phe-footer__util {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.phe-footer__util li a {
  font-size: 0.85rem;
  color: #c0c0bd;
}

.phe-footer__util li a:hover {
  color: #fff;
}

.phe-footer__copy {
  font-size: 0.78rem;
  color: #9a9a96;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* 2行目に運営会社を少し小さく（古いフッターと同じ並び） */
.phe-footer__copy-site,
.phe-footer__copy-company {
  display: block;
}

.phe-footer__copy-company {
  font-size: 0.92em;
}

/* PC の3列: 各列の「施設名・リンクの一覧・〒・住所・電話・トップへ」を subgrid で同じ行に載せ、
   リンクの本数の違い（下上津役校 5・小倉南校 4・ひびきの校 6）を一覧の段で吸収して、〒から下を3列で揃える。
   住所の段は3列でいちばん高いもの（小倉南校の「（アドベンチャープール前）」の1行）に合わせる */
@media (min-width: 960px) {
  @supports (grid-template-rows: subgrid) {
    .phe-footer__top .phe-footer__inner {
      grid-template-rows: repeat(6, auto);
      row-gap: 0;
    }

    .phe-footer-school {
      display: grid;
      grid-row: span 6;
      grid-template-rows: subgrid;
    }

    .phe-footer-school__address {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      gap: 0;
      margin: 0;
    }

    .phe-footer-school__postal,
    .phe-footer-school__addr {
      margin-bottom: 4px;
    }

    .phe-footer-school__tel {
      justify-self: start;
      align-self: start;
      margin: 4px 0 14px;
    }

    .phe-footer-school__top-link {
      justify-self: start;
      align-self: start;
    }
  }

  .phe-footer__copy {
    text-align: right;
  }
}

@media (max-width: 959px) {
  .phe-footer__inner {
    padding: 40px 20px;
  }

  .phe-footer__top .phe-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phe-footer__inner--bottom {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .phe-footer__copy {
    font-size: 0.72rem;
  }

  .phe-footer__copy-company {
    font-size: 1em;
  }
}

/* ===========================================================
 * スマホの画面下の「料金・入会のご案内」ボタン（959px 以下。functions.php の .phe-sp-cta）
 * 位置・形・文言は本番（フッターのウィジェットの .footer-fixed-sp）どおり、左下に浮かぶ角丸のボタン。
 * 色はヘッダーの「入会のご案内」（.phe-cta--accent）と同じ（白い文字 5.4:1）
 * =========================================================== */
.phe-sp-cta {
  display: none;
}

@media (max-width: 959px) {
  .phe-sp-cta {
    display: block;
    position: fixed;
    left: 5vw;
    bottom: calc(5vw + env(safe-area-inset-bottom, 0px));
    z-index: 95;
    /* 右下の「ページの先頭へ」（42px）に掛からない幅まで */
    max-width: calc(90vw - 56px);
  }

  .phe-sp-cta__btn,
  .phe-sp-cta__btn:link,
  .phe-sp-cta__btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: 46px;
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    background: var(--phe-color-accent);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.2s ease;
  }

  .phe-sp-cta__btn:hover,
  .phe-sp-cta__btn:focus-visible,
  .phe-sp-cta__btn:active {
    color: #fff;
    filter: brightness(1.08);
  }

  .phe-sp-cta__btn:focus-visible {
    outline: 3px solid var(--phe-color-text);
    outline-offset: 2px;
  }

  .phe-sp-cta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
  }

  /* ボタンがフッターの末尾（コピーライト）を隠さないよう、その分だけフッターの下を空ける */
  .phe-has-sp-cta .phe-footer {
    padding-bottom: calc(46px + 5vw + 16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 359px) {
  .phe-sp-cta__btn,
  .phe-sp-cta__btn:link,
  .phe-sp-cta__btn:visited {
    padding: 8px 14px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phe-sp-cta__btn {
    transition: none;
  }
}
