/* ローディング画面のアニメーション */

html.loading-active {
  /* スクロールは可能だが、スクロールバーの見た目を隠す */
  overflow-y: scroll;
  scrollbar-width: auto;
  scrollbar-color: transparent transparent;
}

body.loading-active {
  /* 念のためbodyにも適用。html側が優先されることが多い */
  overflow-y: scroll;
}

html.loading-active::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

html.loading-active::-webkit-scrollbar-thumb {
  background-color: transparent;
}

html.loading-active #loader {
  opacity: 1;
  visibility: visible;
}

/* ローディング画面中央に表示 */
#loader {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* ロゴ画像初期サイズ */
#loader .custom-logo {
  width: 120px;
  height: auto;
}

/* アニメーション後の固定表示ロゴ（クローン） */
body > .custom-logo {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px; /* 120px × 0.6 */
  height: auto;
  z-index: 1001;
}

.header-icon-container {
	width: 72px;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	margin: 0 auto;
}
.wp-block-site-logo .custom-logo-link {
    padding-bottom: 0;
    padding-top: 0;
}

.hero-section {
  height: 90dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-section .logo {
  width: auto;
  height: auto;
  margin-top: 5vh;
  /* padding: 0;
  display: block;
  z-index: 10; */
}

/* .hero-section figure.logo {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.hero-section .logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.05);
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  display: block;
}

.site-header {
  position: fixed;
  top: calc(var(--wp-admin--admin-bar--height, 0px));
  left: 0;
  width: 100%;
  /* background-color: white; /* 背景色がないと下のコンテンツが透ける */
  z-index: 1000; /* ヒーローセクションや他のコンテンツより手前に */
  height: auto;
}
