/*▼ヘッダー・フッター▼*/

/* =========================================================
 * 共通
========================================================= */

.be-site {
  background: #000;
  padding-top: 76px;
}

.be-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10020;
  width: 100%;
  color: #fff;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.be-header,
.be-header * {
  box-sizing: border-box;
}

.be-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
  width: min(1540px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 clamp(28px, 3vw, 48px);
  transition:
    min-height .35s ease,
    padding .35s ease,
    gap .35s ease,
    width .35s ease;
}

.be-header__logo {
  display: inline-flex;
  align-items: center;
  width: clamp(250px, 15vw, 280px);
  text-decoration: none;
  flex-shrink: 0;
  transition: width .35s ease;
}

.be-header__logo img {
  display: block;
  width: 100%;
  height: auto;
  padding: 1em;
}

/* PCナビ */
.be-header__nav {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.be-header__nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 0 6px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: clamp(0.84rem, 0.92vw, 1rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0),
    0 0 12px rgba(157, 125, 197, 0);
  transition:
    color .28s ease,
    text-shadow .35s ease,
    min-height .35s ease,
    font-size .35s ease,
    padding .35s ease;
}

.be-header__nav a::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14px;
  height: 2px;
  background: linear-gradient(90deg, #4d7dff 0%, #a785d9 100%);
  transform: scaleX(0);
  transform-origin: center center;
  transition: transform .32s ease;
}

.be-header__nav a:hover {
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, .85),
    0 0 16px rgba(157, 125, 197, .75),
    0 0 24px rgba(77, 125, 255, .45);
}

.be-header__nav a:hover::after {
  transform: scaleX(1);
}

/* スクロール後：少し締まる */
.be-header.is-scrolled {
  background: rgba(0, 0, 0, 0.93);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.be-header.is-scrolled .be-header__inner {
  width: min(1480px, 100%);
  min-height: 62px;
  padding: 0 clamp(22px, 2.6vw, 40px);
  gap: clamp(20px, 2.4vw, 36px);
}

.be-header.is-scrolled .be-header__logo {
  width: clamp(180px, 13vw, 248px);
}

.be-header.is-scrolled .be-header__nav a {
  min-height: 62px;
  font-size: clamp(0.8rem, 0.86vw, 0.95rem);
}

.be-header.is-scrolled .be-header__nav a::after {
  bottom: 10px;
}

/* =========================================================
 * SP用ボタン・ドロワー：初期状態
========================================================= */

.be-header__menu-btn,
.be-header__search-btn,
.be-sp-drawer {
  display: none;
}

/* 検索アイコン */
.be-header__search-btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.be-header__search-btn span {
  position: absolute;
  left: 10px;
  top: 9px;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.be-header__search-btn span::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 13px;
  height: 3px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: center;
}

/* =========================================================
 * タブレット：PCナビを少し詰める
========================================================= */

@media screen and (min-width: 960px) and (max-width: 1200px) {
  .be-header__inner {
    gap: 18px;
    padding: 0 22px;
  }

  .be-header__logo {
    width: clamp(210px, 18vw, 240px);
  }

  .be-header__nav a {
    font-size: 0.78rem;
    padding: 0 4px;
  }
}

/* =========================================================
 * SPヘッダー・ハンバーガーメニュー
========================================================= */

@media screen and (max-width: 959px) {
  .be-site {
    padding-top: 60px;
  }

  .be-header {
    background: rgba(0, 0, 0, 0.96);
  }

  .be-header__inner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 0 14px;
    gap: 0;
  }

 .be-header__logo {
  justify-self: center;
  width: min(174px, 43vw);
}

  .be-header__logo img {
    padding: 0;
  }

  /* SPではPCナビを必ず非表示 */
  .be-header__nav {
    display: none !important;
  }

  .be-header__menu-btn,
  .be-header__search-btn {
    display: block;
  }

  .be-header__menu-btn {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .be-header__menu-btn span {
    position: absolute;
    left: 6px;
    width: 28px;
    height: 2px;
    background: #fff;
    transition:
      transform .28s ease,
      opacity .28s ease,
      top .28s ease;
  }
.be-header__menu-btn span:nth-child(2) {
  background: #9d7dc5;
}

  .be-header__menu-btn span:nth-child(1) {
    top: 13px;
  }

  .be-header__menu-btn span:nth-child(2) {
    top: 21px;
  }

  .be-header__menu-btn span:nth-child(3) {
    top: 29px;
  }

  .be-header.is-menu-open .be-header__menu-btn span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  .be-header.is-menu-open .be-header__menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .be-header.is-menu-open .be-header__menu-btn span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  /* ドロワー：JSで .is-open が付くまで非表示 */
  .be-sp-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10010;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity .36s ease,
      visibility .36s ease;
  }

  .be-sp-drawer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .be-sp-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
  }

  .be-sp-drawer__panel {
    position: absolute;
    inset: 0;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 88px 24px 56px;
    color: #fff;
    background:
      linear-gradient(rgba(0, 0, 0, .70), rgba(0, 0, 0, .76)),
      url("../img/main-visual/top1.webp");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    filter: blur(6px);
    transition:
      transform .42s ease,
      filter .42s ease;
  }

  .be-sp-drawer.is-open .be-sp-drawer__panel {
    transform: scale(1);
    filter: blur(0);
  }

  .be-sp-drawer__panel::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .46);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
  }

  .be-sp-drawer__close {
    position: fixed;
    left: 14px;
    top: 8px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .be-sp-drawer__close span {
    position: absolute;
    left: 8px;
    top: 21px;
    width: 28px;
    height: 2px;
    background: #fff;
  }

  .be-sp-drawer__close span:nth-child(1) {
    transform: rotate(45deg);
  }

  .be-sp-drawer__close span:nth-child(2) {
    transform: rotate(-45deg);
  }

  .be-sp-drawer__content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: min(360px, 100%);
    margin: 0 auto;
    text-align: center;
  }

  .be-sp-drawer__content > img {
    display: block;
    width: min(260px, 72vw);
    height: auto;
    margin: 0 auto 36px;
  }

  .be-sp-drawer .be-block-linkList {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    width: 100%;
    margin: 0 auto 34px !important;
    padding: 0;
    list-style: none;
  }

  .be-sp-drawer .be-block-linkList__item {
    margin: 0;
    padding: 0;
  }

  .be-sp-drawer .be-block-linkList__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 0;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    background: transparent;
    text-shadow:
      0 0 6px rgba(255, 255, 255, .18),
      0 0 14px rgba(157, 125, 197, .18);
    transition:
      text-shadow .28s ease,
      transform .28s ease;
  }

  .be-sp-drawer .be-block-linkList__link:hover {
    color: #fff;
    text-shadow:
      0 0 8px rgba(255, 255, 255, .7),
      0 0 18px rgba(157, 125, 197, .85);
    transform: translateY(-1px);
  }

  .be-sp-drawer .be-block-linkList__text {
    margin: 0;
    color: inherit;
  }

  .be-sp-drawer .is-menu-kengku {
    display: block;
    width: min(280px, 78vw);
    margin: 8px auto 0;
  }

  .be-sp-drawer .is-menu-kengku img {
    display: block;
    width: 100%;
    height: auto;
  }

  body.is-be-menu-open {
    overflow: hidden;
  }
}

.be-search-panel__body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(640px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
}

.be-search-panel__close {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.be-search-panel__close span {
  position: absolute;
  left: 8px;
  top: 21px;
  width: 28px;
  height: 2px;
  background: #fff;
}

.be-search-panel__close span:nth-child(1) {
  transform: rotate(45deg);
}

.be-search-panel__close span:nth-child(2) {
  transform: rotate(-45deg);
}

.be-search-panel__form {
  color: #fff;
}

.be-search-panel__label {
  display: block;
  margin-bottom: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
}

.be-search-panel__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}

.be-search-panel__row input {
  width: 100%;
  min-height: 52px;
  padding: 0 1em;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 6px;
}

.be-search-panel__row button {
  min-height: 52px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #1f4ebd, #9d7dc5);
}

/* =========================================================
 * フッター
========================================================= */

.be-footer {
  width: 100%;
  color: #fff;
  background: #000;
  padding: clamp(48px, 6vw, 88px) 16px 28px;
  text-align: center;
}

.be-footer,
.be-footer * {
  box-sizing: border-box;
}

.be-footer__inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.be-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 70vw);
  margin: 0 auto;
  text-decoration: none;
}

.be-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.be-footer__sns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

.be-footer__sns a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.be-footer__sns a:hover {
  background: linear-gradient(135deg, #1f4ebd, #9d7dc5);
  border-color: transparent;
  transform: translateY(-2px);
}

.be-footer__copy {
  margin: clamp(24px, 4vw, 40px) 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media screen and (max-width: 600px) {
  .be-footer {
    padding-top: 44px;
  }

  .be-footer__logo {
    width: min(240px, 72vw);
  }
}