/* ==========================================================================
   サイトヘッダー（全ページ共通）
   ========================================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6dfd0;
  position: relative;
  z-index: 100;
}
.site-header__top {
  padding: 10px 0;
}
.site-header__inner {
  max-width: 1390px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media screen and (max-width: 767px) {
  .site-header__inner {
    padding: 0 15px;
  }
}
.site-header__brand {
  flex: 1;
}
.site-header__tagline {
  font-size: 10px;
  color: #666;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
@media screen and (max-width: 767px) {
  .site-header__tagline {
    display: none;
  }
}
.site-header__logo {
  display: inline-block;
}
.site-header__logo img {
  height: 48px;
}
@media screen and (max-width: 767px) {
  .site-header__logo img {
    height: 36px;
  }
}
.site-header__temple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: #fff;
  color: #6c42a4;
  border: 1px solid #6c42a4;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  min-width: 280px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
@media screen and (max-width: 1024px) {
  .site-header__temple-btn {
    min-width: auto;
  }
}
@media screen and (max-width: 767px) {
  .site-header__temple-btn:not(.site-header__temple-btn--loggedin) {
    display: none !important;
  }
  /* ログイン中はスマホでも表示 (会員ページへ) */
  a.site-header__temple-btn.site-header__temple-btn--loggedin {
    display: inline-flex !important;
    visibility: visible !important;
    min-width: auto !important;
    padding: 6px 10px !important;
    margin-left: 0.4em !important;
    margin-right: 0.4em !important;
    font-size: 14px !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  a.site-header__temple-btn.site-header__temple-btn--loggedin .site-header__temple-text {
    white-space: nowrap;
  }
  a.site-header__temple-btn.site-header__temple-btn--loggedin .site-header__temple-icon {
    transform: scale(0.85);
  }
}
.site-header__temple-btn:hover {
  background: #6c42a4;
  color: #fff;
  opacity: 1;
}
.site-header__temple-btn:hover .site-header__temple-icon {
  filter: brightness(0) invert(1);
}
.site-header__temple-icon {
  display: inline-block;
  width: 34.667px;
  height: 26px;
  background: url("../img/newtop/icon_temple.svg") no-repeat center/contain;
  transition: filter 0.2s ease;
}
.site-header__menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .site-header__menu-toggle {
    display: flex;
  }
}
.site-header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   グローバルナビ
   ========================================================================== */
.global-nav {
  border-top: 1px solid #e6dfd0;
  padding: 16px 0;
}
/* サブページ (page クラス付き) では PC のグローバルナビを非表示。
   モバイルではハンバーガーメニューで開ける状態を維持 */
@media screen and (min-width: 768px) {
  .page-container.page .global-nav { display: none; }
}
@media screen and (max-width: 767px) {
  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e6dfd0;
    padding: 0;
    z-index: 99;
  }
  .global-nav.is-open {
    display: block;
  }
}
.global-nav__list {
  display: flex;
  justify-content: center;
  gap: 50px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media screen and (max-width: 1024px) {
  .global-nav__list {
    gap: 25px;
  }
}
@media screen and (max-width: 767px) {
  .global-nav__list {
    flex-direction: column;
    gap: 0;
  }
}
@media screen and (max-width: 767px) {
  .global-nav__item {
    border-bottom: 1px solid #e6dfd0;
  }
}
.global-nav__link {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #333;
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .global-nav__link {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
  }
  .global-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #b8935a;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
  }
  .global-nav__link:hover {
    opacity: 1;
  }
  .global-nav__link:hover::after {
    transform: scaleX(1);
  }
}
@media screen and (max-width: 767px) {
  .global-nav__link {
    display: block;
    padding: 15px 20px;
  }
}
