@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@700&display=swap");

/* 共通設定 */
* {
  box-sizing: border-box;
}

.zen-kaku-gothic-new-bold {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #050505;
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 300;
}

img {
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  padding: 60px 30px;
  color: #fff;
  background: #000;
}

.page-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.page-shell-logo {
  width: 260px;
  filter: brightness(0) invert(1);
}

.page-shell-nav {
  display: flex;
  gap: 24px;
  font-weight: 600;
}

.page-shell-main {
  max-width: 1200px;
  margin: 120px auto 0;
}

.page-shell-main h1 {
  margin: 0;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 56px;
  font-weight: 700;
}

.page-shell-main p {
  margin-top: 24px;
  font-size: 16px;
}


@media (max-width: 1024px) {
  .page-shell {
    padding: 30px 20px;
  }

  .page-shell-header {
    display: block;
  }

  .page-shell-logo {
    width: 220px;
  }

  .page-shell-nav {
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 14px 20px;
  }

  .page-shell-main {
    margin-top: 80px;
  }

  .page-shell-main h1 {
    font-size: 38px;
  }
}

/* ==========================================================================
   Loading Screen Overlay
   ========================================================================== */
body.is-loading {
  overflow: hidden;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s;
}

#loading-screen.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loading-logo {
  width: 280px;
  max-width: 80%;
  height: auto;
  overflow: visible;
}

#loading-logo path {
  fill: #fff;
}

/* Bouncing Animations for Logo Letters */
.loading-char {
  animation: loading-bounce 0.8s ease-in-out infinite;
}

.loading-char-1 { animation-delay: 0s; }
.loading-char-2 { animation-delay: 0.08s; }
.loading-char-3 { animation-delay: 0.16s; }
.loading-char-4 { animation-delay: 0.24s; }
.loading-char-5 { animation-delay: 0.32s; }
.loading-char-6 { animation-delay: 0.4s; }
.loading-char-7 { animation-delay: 0.48s; }

@keyframes loading-bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); /* easeOutQuad */
  }
  50% {
    transform: translateY(-16px);
    animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53); /* easeInQuad */
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-char {
    animation: none;
  }
}

/* ==========================================================================
   ページ導入アニメーション (Page Entrance Animation)
   ========================================================================== */
body.has-entrance-animation .site-header,
body.has-entrance-animation main,
body.has-entrance-animation .site-footer {
  opacity: 0;
}

body.has-entrance-animation.animate-entrance .site-header {
  animation: entrance-header 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.has-entrance-animation.animate-entrance main,
body.has-entrance-animation.animate-entrance .site-footer {
  animation: entrance-content 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 300ms;
}

@keyframes entrance-header {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes entrance-content {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-entrance-animation .site-header,
  body.has-entrance-animation main,
  body.has-entrance-animation .site-footer {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

