*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #050510;
  overscroll-behavior-y: none;
}

body {
  background-color: #050510;
  font-family: "Teachers", sans-serif;
  color: white;
  height: 100vh;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 768px) {
  body {
    overflow: hidden;
  }
}
body.about-open {
  overflow: hidden;
  touch-action: none;
}
body.about-open .aboutus-content__scroller {
  touch-action: pan-y;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  z-index: 2147483646;
  background: #050510;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.loading-overlay.hidden {
  display: none;
}

.loading-inner {
  text-align: center;
}

.loading-logo {
  display: block;
  font-family: "Teachers", sans-serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: #d9d9d9;
  margin-bottom: 32px;
  opacity: 0;
  animation: loadingFadeIn 1s ease 0.3s forwards;
}
@media (max-width: 768px) {
  .loading-logo {
    font-size: 36px;
    margin-bottom: 24px;
  }
}

.loading-bar {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  animation: loadingFadeIn 0.6s ease 0.8s forwards;
}
@media (max-width: 768px) {
  .loading-bar {
    width: 150px;
  }
}

.loading-bar__fill {
  width: 0%;
  height: 100%;
  background: #d9d9d9;
  transition: width 0.3s ease;
}

@keyframes loadingFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  background: linear-gradient(224deg, rgb(19, 0, 36) 10%, rgb(21, 51, 66) 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1s ease;
  cursor: auto;
}
.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.intro-overlay.hidden {
  display: none;
}
.intro-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: auto;
}
@media (max-width: 768px) {
  .intro-overlay video {
    object-fit: contain;
  }
}

.intro-mute {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s ease, background 0.3s ease;
  z-index: 20001;
}
.intro-mute.visible {
  opacity: 1;
}
.intro-mute:hover {
  background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 768px) {
  .intro-mute {
    bottom: 32px;
    left: 24px;
    width: 42px;
    height: 42px;
  }
}

.intro-mute__icon {
  display: none;
}

.intro-mute--muted .intro-mute__icon--off {
  display: block;
}

.intro-mute:not(.intro-mute--muted) .intro-mute__icon--on {
  display: block;
}

.intro-skip {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-family: "Teachers", sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 12px 28px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s ease, background 0.3s ease;
  z-index: 20001;
}
.intro-skip.visible {
  opacity: 1;
}
.intro-skip:hover {
  background: rgba(255, 255, 255, 0.15);
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 30%, #0d0d4a 0%, transparent 40%), radial-gradient(circle at 80% 70%, #1a0533 0%, transparent 40%), radial-gradient(circle at 50% 50%, #050510 0%, #000 100%);
  background-size: 200% 200%;
  animation: nebulaMove 40s ease-in-out infinite alternate;
}

@keyframes nebulaMove {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 50% 100%;
  }
}
.bubbles-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-bubble {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.floating-bubble.bubble-glow {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.22) 0%, rgba(255, 215, 0, 0) 75%);
  filter: blur(15px);
}
.floating-bubble.bubble-outline {
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: transparent;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.18), inset 0 0 8px rgba(255, 215, 0, 0.08);
}

.canvas-container {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: auto;
}

.scroll-container {
  height: 800vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 768px) {
  .scroll-container {
    height: 100vh;
  }
}

.ui-overlay {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  inset: 0;
}

.site-logo {
  position: absolute;
  top: 144px;
  left: 110px;
  font-family: "Teachers", sans-serif;
  font-weight: 400;
  font-size: 113px;
  line-height: 127px;
  letter-spacing: 0.07em;
  color: #d9d9d9;
}
@media (max-width: 768px) {
  .site-logo {
    font-size: 70px;
    line-height: 1.075em;
    top: 41px;
    left: 32px;
  }
}

.site-tagline {
  position: absolute;
  top: 310px;
  left: 110px;
  font-family: "Teachers", sans-serif;
  font-weight: 400;
  font-size: 35px;
  line-height: 55px;
  letter-spacing: 0.07em;
  color: #d9d9d9;
}
@media (max-width: 768px) {
  .site-tagline {
    font-size: 21px;
    line-height: 30px;
    top: 132px;
    left: 32px;
    letter-spacing: 0.07em;
  }
}

.aboutus-btn-wrap {
  position: fixed;
  bottom: 210px;
  left: 110px;
  z-index: 200;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .aboutus-btn-wrap {
    bottom: auto;
    top: 220px;
    left: 32px;
  }
}

.aboutus-btn {
  text-decoration: none;
  --btn-width: 160px;
  --btn-height: 56px;
  --border-thickness: 1px;
  --btn-glow-color: #ffffff;
  position: relative;
  width: var(--btn-width);
  height: var(--btn-height);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 55px;
  transition: all 0.4s ease;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .aboutus-btn {
    --btn-width: 90px;
    --btn-height: 37px;
    border-radius: 36px;
  }
}
.aboutus-btn::before {
  content: "";
  position: absolute;
  width: calc(var(--btn-width) * 1.5);
  height: calc(var(--btn-width) * 1.5);
  background: conic-gradient(transparent, transparent, transparent, var(--btn-glow-color));
  animation: rotateBorder 2s linear infinite;
}
.aboutus-btn::after {
  content: "";
  position: absolute;
  inset: var(--border-thickness);
  background: rgba(5, 5, 16, 0.95);
  border-radius: 55px;
  transition: all 0.4s ease;
  z-index: 1;
}
@media (max-width: 768px) {
  .aboutus-btn::after {
    border-radius: 36px;
  }
}
.aboutus-btn:hover::after {
  background: white;
}
.aboutus-btn:hover .aboutus-btn__text {
  color: black;
}
.aboutus-btn .glint-overlay {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s;
  z-index: 3;
}
.aboutus-btn:hover .glint-overlay {
  left: 100%;
}

.aboutus-btn__text {
  position: relative;
  color: #d9d9d9;
  font-family: "Teachers", sans-serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.07em;
  z-index: 2;
  transition: color 0.4s ease;
}
@media (max-width: 768px) {
  .aboutus-btn__text {
    font-size: 16px;
    letter-spacing: 0.07em;
  }
}

@keyframes rotateBorder {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.scroll-indicator {
  position: absolute;
  right: 40px;
  top: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}

.scroll-indicator__text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 14px;
  letter-spacing: 0.29em;
  color: white;
  opacity: 0.6;
}

.scroll-indicator__line {
  width: 1px;
  height: 100px;
  background: rgba(255, 255, 255, 0.3);
  margin-top: 15px;
  position: relative;
}
.scroll-indicator__line::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.3);
}

.swipe-indicator {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 10px;
  z-index: 200;
  pointer-events: none;
}
@media (max-width: 768px) {
  .swipe-indicator {
    display: flex;
  }
}

.swipe-indicator__text {
  font-family: "Teachers", sans-serif;
  font-size: 15px;
  color: white;
  letter-spacing: 0.29em;
  opacity: 0.7;
}

.swipe-indicator__arrow {
  width: 73px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
}
.swipe-indicator__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid rgba(255, 255, 255, 0.5);
}

.hamburger-trigger {
  position: fixed;
  bottom: 40px;
  left: 110px;
  z-index: 300;
  width: 50px;
  height: 28px;
  cursor: pointer;
  pointer-events: auto;
  background: none;
  border: none;
  display: flex;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
@media (max-width: 768px) {
  .hamburger-trigger {
    bottom: auto;
    top: 28px;
    left: auto;
    right: 28px;
    width: 23px;
    height: 13px;
  }
}
.hamburger-trigger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 768px) {
  .hamburger-trigger span {
    height: 1px;
  }
}
.hamburger-trigger.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: #050517;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 0 98px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
@media (max-width: 768px) {
  .nav-menu {
    justify-content: flex-start;
    padding: 72px 32px 120px 45px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.nav-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.nav-menu__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nav-menu.is-open .nav-menu__item {
  opacity: 1;
  transform: translateY(0);
}
.nav-menu.is-open .nav-menu__item:nth-child(1) {
  transition-delay: 0.06s;
}
.nav-menu.is-open .nav-menu__item:nth-child(2) {
  transition-delay: 0.12s;
}
.nav-menu.is-open .nav-menu__item:nth-child(3) {
  transition-delay: 0.18s;
}
.nav-menu.is-open .nav-menu__item:nth-child(4) {
  transition-delay: 0.24s;
}
.nav-menu.is-open .nav-menu__item:nth-child(5) {
  transition-delay: 0.3s;
}
.nav-menu.is-open .nav-menu__item:nth-child(6) {
  transition-delay: 0.36s;
}
.nav-menu.is-open .nav-menu__item:nth-child(7) {
  transition-delay: 0.42s;
}
.nav-menu.is-open .nav-menu__item:nth-child(8) {
  transition-delay: 0.48s;
}

.nav-menu__link {
  display: inline-block;
  font-family: "Teachers", sans-serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 75px;
  letter-spacing: 0.07em;
  color: #d9d9d9;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
@media (max-width: 768px) {
  .nav-menu__link {
    font-size: 22px;
    line-height: 46px;
  }
}
.nav-menu__link:hover {
  opacity: 0.5;
}

.nav-menu__close {
  position: absolute;
  bottom: 60px;
  left: 98px;
  width: 139px;
  height: 50px;
  background: transparent;
  border: 1px solid white;
  border-radius: 57px;
  color: #d9d9d9;
  font-family: "Teachers", sans-serif;
  font-size: 21px;
  letter-spacing: 0.07em;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.3s ease, color 0.3s ease;
}
@media (max-width: 768px) {
  .nav-menu__close {
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
  }
}
.nav-menu__close:hover {
  background: white;
  color: black;
}

.page-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: #050510;
  opacity: 0;
  pointer-events: none;
}

body {
  cursor: crosshair;
}

.ripple-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.ripple-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  background-color: transparent;
  border: 1.5px solid rgba(218, 165, 32, 0.8);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 1.3s cubic-bezier(0.15, 0.5, 0.4, 1) forwards;
}

@keyframes ripple-out {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    border-width: 3px;
  }
  100% {
    transform: translate(-50%, -50%) scale(7);
    opacity: 0;
    border-width: 0.1px;
  }
}
.aboutus-content {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  cursor: auto;
}

.aboutus-content__scroller {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 60px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 768px) {
  .aboutus-content__scroller {
    padding: 40px 16px;
  }
}

.aboutus-panel {
  position: relative;
  width: 1069px;
  max-width: 90vw;
  flex-shrink: 0;
  margin: 0 auto;
  background: linear-gradient(224deg, rgb(19, 0, 36) 10%, rgb(21, 51, 66) 90%);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  padding: 80px 80px 60px;
  transform: translateY(100px) scale(0.95);
}
@media (max-width: 768px) {
  .aboutus-panel {
    width: 100%;
    max-width: 340px;
    padding: 80px 33px 40px;
    border-radius: 18px;
  }
}

.aboutus-panel__bg-svg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.aboutus-panel__bg-svg--pc {
  top: 600px;
  left: 0;
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .aboutus-panel__bg-svg--pc {
    display: none;
  }
}
.aboutus-panel__bg-svg--sp-top {
  display: none;
}
@media (max-width: 768px) {
  .aboutus-panel__bg-svg--sp-top {
    display: block;
    top: 400px;
    left: 0;
    width: 100%;
    height: auto;
  }
}
.aboutus-panel__bg-svg--sp-bottom {
  display: none;
}
@media (max-width: 768px) {
  .aboutus-panel__bg-svg--sp-bottom {
    display: block;
    bottom: 120px;
    right: 0;
    width: 100%;
    height: auto;
  }
}

.aboutus-panel__title {
  position: relative;
  z-index: 1;
  font-family: "Zen Old Mincho", serif;
  font-size: 65px;
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .aboutus-panel__title {
    font-size: 42px;
    letter-spacing: 0;
    margin-bottom: 10px;
  }
}

.aboutus-panel__divider {
  position: relative;
  z-index: 1;
  width: 522px;
  max-width: 100%;
  height: 1px;
  background: #F0F0F0;
  margin: 0 auto 30px;
}
.aboutus-panel__divider::before, .aboutus-panel__divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #F0F0F0;
}
@media (max-width: 768px) {
  .aboutus-panel__divider::before, .aboutus-panel__divider::after {
    width: 5px;
    height: 5px;
  }
}
.aboutus-panel__divider::before {
  left: -4px;
}
.aboutus-panel__divider::after {
  right: -4px;
}

.aboutus-panel__intro {
  position: relative;
  z-index: 1;
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  line-height: 42px;
  text-align: center;
  max-width: 522px;
  margin: 0 auto 160px;
}
@media (max-width: 768px) {
  .aboutus-panel__intro {
    font-size: 16px;
    line-height: 32px;
    margin-bottom: 100px;
    text-align: left;
  }
}

.aboutus-section {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 80px;
  margin-bottom: 160px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .aboutus-section {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 120px;
  }
}

.aboutus-section__label-area {
  flex-shrink: 0;
  width: 256px;
  position: relative;
}
@media (max-width: 768px) {
  .aboutus-section__label-area {
    width: 100%;
  }
}

.aboutus-section__line {
  display: block;
  width: 280px;
  height: 1px;
  background: #C5A059;
  transform-origin: left;
  transform: rotate(-7deg);
  position: absolute;
  top: 104%;
}
@media (max-width: 768px) {
  .aboutus-section__line {
    width: 100%;
  }
}

.aboutus-section__label {
  font-family: "Whisper", cursive;
  font-size: 70px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .aboutus-section__label {
    font-size: 42px;
  }
}

.aboutus-section__body {
  flex: 1;
  font-family: "Zen Old Mincho", serif;
  font-size: 21px;
  line-height: 42px;
}
@media (max-width: 768px) {
  .aboutus-section__body {
    font-size: 15px;
    line-height: 32px;
  }
}
.aboutus-section__body p {
  margin-bottom: 20px;
}
.aboutus-section__body p:last-child {
  margin-bottom: 0;
}

.aboutus-section__heading {
  font-family: "Zen Old Mincho", serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}
.aboutus-section__heading br {
  display: none;
}
@media (max-width: 768px) {
  .aboutus-section__heading {
    font-size: 24px;
    margin-bottom: 14px;
  }
  .aboutus-section__heading br {
    display: block;
  }
}

.aboutus-panel__back-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 50px;
}

.aboutus-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid white;
  border-radius: 57px;
  color: #d9d9d9;
  font-family: "Teachers", sans-serif;
  font-size: 21px;
  letter-spacing: 0.07em;
  padding: 10px 40px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.aboutus-panel__back:hover {
  background: white;
  color: black;
}

.aboutus-panel__back-arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.aboutus-panel__back:hover .aboutus-panel__back-arrow {
  transform: translateX(-4px);
}
