/* =============================================
   ページ全体の枠組み
============================================= */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-main {
  flex: 1;
  padding-top: var(--header-height);
}

/* TOPページはFVが全画面なのでpadding-topなし */
.page-main--top {
  padding-top: 0;
}

/* =============================================
   セクション共通
============================================= */
.section {
  padding: var(--sec-py) 0;
}

.section--bg-sub {
  background-color: var(--color-bg-sub);
}

.section--bg-dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

/* =============================================
   ヘッダー
============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: transparent;
  z-index: 100;
  transition: transform 0.35s ease;
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: flex-start;
  padding-top: 37px;
  height: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-left: 50px;
  padding-right: var(--container-pad);
}

/* ロゴ */
.header-logo {
  position: fixed;
  left: 50px;
  top: calc(var(--header-height) / 2);
  transform: translateY(-50%);
  z-index: 101;
  opacity: 1;
  transition: top 0.35s ease, opacity 0.3s ease;
}
.header-logo.is-hidden {
  top: -80px;
  opacity: 0;
}
.header-logo:hover {
  opacity: 0.8;
}
.header-logo img {
  width: auto;
  height: 38px;
  object-fit: contain;
}

/* =============================================
   ハンバーガーボタン（固定・常時表示）
============================================= */
.hamburger {
  position: fixed;
  top: 30px;
  right: 50px;
  width: 70px;
  height: 70px;
  background-color: #191919;
  border-radius: 12px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: background-color var(--transition);
}

.hamburger:hover {
  background-color: #333;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

/* ハンバーガー → × アニメーション */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =============================================
   PC: ヘッダー背景 & ハンバーガー非表示
============================================= */
@media (min-width: 768px) {
  .header {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, background-color var(--transition), box-shadow var(--transition);
  }
}

@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }
}

/* =============================================
   PC ナビゲーションバー
============================================= */
.header-pc-nav {
  display: none;
  position: absolute;
  top: 0;
  right: 50px;
  height: 100%;
  align-items: center;
  gap: 0;
}

@media (min-width: 1025px) {
  .header-pc-nav {
    display: flex;
  }
}

.header-pc-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-pc-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  text-decoration: none;
  position: relative;
  border-radius: 8px;
  transition: background-color var(--transition), opacity var(--transition);
}

.header-pc-nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.header-pc-nav__link:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.04);
}

.header-pc-nav__link:hover::after {
  transform: scaleX(1);
}

.header-pc-nav__link.is-current {
  opacity: 1;
  background-color: #fae47f;
}

.header-pc-nav__link.is-current::after {
  display: none;
}

.header-pc-nav__link.is-current .header-pc-nav__en,
.header-pc-nav__link.is-current .header-pc-nav__ja {
  color: #191919;
}

.header-pc-nav__en {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.08em;
  line-height: 1;
}

.header-pc-nav__ja {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1;
  white-space: nowrap;
}

/* ドロップダウン */
.header-pc-nav__item {
  position: relative;
}

.header-pc-nav__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 6px;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.header-pc-nav__item:hover .header-pc-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header-pc-nav__dropdown-link {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.header-pc-nav__dropdown-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  opacity: 1;
}

/* パーティボタン */
.party-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 10px;
  background: #FFD700;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  margin-left: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.35s ease;
}

.party-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.party-btn.is-active {
  background: #2EC4B6;
}

.party-btn__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.party-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.party-btn__line1 {
  font-family: var(--font-ja);
  font-size: 10px;
  font-weight: 700;
  color: #191919;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.35s ease;
}

.party-btn__line2 {
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 900;
  color: #191919;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.35s ease;
}

.party-btn.is-active .party-btn__line1,
.party-btn.is-active .party-btn__line2 {
  color: #ffffff;
}

/* パーティクル */
.party-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: party-fly 0.8s ease-out forwards;
}

@keyframes party-fly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* =============================================
   ナビゲーションパネル
============================================= */
.nav-overlay {
  position: fixed;
  top: 30px;
  right: 50px;
  width: 500px;
  height: 680px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 299;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay__inner {
  padding: 44px 48px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ロゴ */
.nav-overlay__logo {
  flex-shrink: 0;
}
.nav-overlay__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  /* ダークテーマロゴを暗い背景用に調整 (白地なのでフィルター不要) */
}

/* ナビリスト（2×2 グリッド） */
.nav-overlay__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 24px;
  flex: 1;
  align-content: center;
  padding: 0;
  margin: 0;
}

.nav-overlay__item {
  list-style: none;
}

.nav-overlay__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 32px 16px;
  transition: opacity var(--transition);
}
.nav-overlay__link:hover {
  opacity: 0.6;
}

.nav-overlay__en {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-overlay__ja {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1;
}

/* お問い合わせボタン */
.nav-overlay__contact {
  text-align: center;
  flex-shrink: 0;
}

.nav-overlay__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 64px;
  background-color: #191919;
  color: #ffffff;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.08em;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.nav-overlay__contact-link:hover {
  background-color: #EAB00F;
  color: #191919;
  transform: scale(1.1);
  opacity: 1;
}

/* =============================================
   フッター
============================================= */
.footer {
  background-color: var(--color-bg);
  border-left: 3px solid #191919;
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.footer-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-info__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
}
.footer-info__address {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.footer-info__tel {
  font-size: 12px;
  color: var(--color-text-muted);
}
.footer-info__tel a {
  color: inherit;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-nav__link {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text);
  transition: color var(--transition);
}
.footer-nav__link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.footer-copy {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.footer-sns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-sns__link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* =============================================
   レスポンシブ
============================================= */
@media (max-width: 1024px) {
  :root {
    --sec-py: 64px;
  }

  .container {
    max-width: 90%;
    padding-inline: 0;
  }

  /* タブレット以下ではロゴ・ヘッダー背景を非表示 */
  .header-logo {
    display: none;
  }
  .header {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}

@media (max-width: 767px) {
  :root {
    --sec-py:    48px;
    --sec-py-sm: 32px;
    --header-height: 60px;
  }

  /* SP ではロゴを非表示（1024px以下で既に非表示） */
  .header-logo {
    display: none;
  }

  /* ハンバーガー位置調整 */
  .hamburger {
    top: 12px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  .hamburger span {
    width: 22px;
  }

  /* 狭い画面ではパネルを横幅いっぱいに広げる */
  .nav-overlay {
    top: 0;
    right: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .nav-overlay__inner {
    padding: 40px 32px 40px;
  }

  .nav-overlay__logo {
    padding-top: 16px; /* ハンバーガーボタンと重ならないよう余白 */
  }

  .nav-overlay__en {
    font-size: 20px;
  }

  /* フッター */
  .footer {
    border-left: none;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
