/* =========================================================
Top Page Only Styles (FYC)
========================================================= */

/* ===============================
Loading Animation
=============================== */
#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* ローディング中はスクロール禁止 */
body {
  overflow: hidden;
}

body.is-loaded {
  overflow: auto;
}

body.is-loaded #loader {
  opacity: 0;
  visibility: hidden;
}

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

.loader-logo {
  width: 200px;
  opacity: 0;
  animation: loaderFade 1.6s ease forwards;
}

@keyframes loaderFade {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  50% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
KV
=============================== */
.kv {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.kv-media {
  position: fixed;
  inset: 0;
}

.kv-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 黒パネル（割れる） */
.kv-panels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.kv-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 25%;
  background: #74899e;
  transition: transform 0.65s cubic-bezier(.25, .46, .45, .94);
}

.kv-panel--1 {
  top: 0;
  transform: translateX(-100%);
  transition-delay: 0s;
}

.kv-panel--2 {
  top: 25%;
  transform: translateX(100%);
  transition-delay: 0.1s;
}

.kv-panel--3 {
  top: 50%;
  transform: translateX(-100%);
  transition-delay: 0.2s;
}

.kv-panel--4 {
  top: 75%;
  transform: translateX(100%);
  transition-delay: 0.3s;
}

/* 剥がれるタイミング */
body.kv-open .kv-panel--1,
body.kv-open .kv-panel--2,
body.kv-open .kv-panel--3,
body.kv-open .kv-panel--4 {
  transform: translateX(0);
}

/* ===============================
KV Catch
=============================== */
.kv-catch {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: max(40px, (100vw - 1040px)/2);
  color: #fff;
  pointer-events: none;
}

.kv-catch .catchy {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 600;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.4;
  margin-bottom: 14px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.kv-catch .catchy-sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.8;
  max-width: min(640px, 80%);
  text-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.kv-catch .catchy-sub strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  margin-bottom: 6px;
}

@media(max-width:560px) {
  .kv-catch {
    padding-left: 4%;
    padding-right: 2%;
    justify-content: flex-end;
    padding-bottom: 40%;
  }

  .kv-catch .catchy {
    font-size: clamp(22px, 7vw, 30px);
  }

  .kv-catch .catchy-sub {
    font-size: 13px;
  }
}

/* ===============================
Scroll indicator
=============================== */
.kv-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: opacity .4s ease;
}

body.kv-open .kv-scroll {
  opacity: 0;
}

.kv-scroll .scroll-line {
  width: 2px;
  height: 28px;
  background: rgba(255, 255, 255, .85);
  margin-bottom: 8px;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    height: 16px;
    opacity: .4;
  }

  50% {
    height: 28px;
    opacity: 1;
  }

  100% {
    height: 16px;
    opacity: .4;
  }
}

.kv-scroll .scroll-text {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, .85);
  animation: scrollText 1.8s ease-in-out infinite;
}

@keyframes scrollText {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  50% {
    opacity: .8;
    transform: translateY(2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:560px) {
  .kv-scroll {
    bottom: 14px;
  }

  .kv-scroll .scroll-text {
    font-size: 10px;
  }
}

/* ===============================
Common section styles
=============================== */

.section-title {
  font-size: clamp(22px, 2.4vw, 38px);
  text-align: center;
  margin-bottom: 30px;
}

.section-sub {
  font-size: 24px;
  margin-bottom: 24px;
}

.section-label {
  font-family: "Poppins", sans-serif;
  font-size: clamp(36px, 12vw, 120px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(45deg, #0aa6e5, #ee32df);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0) scale(1);
  transform-origin: center bottom;
  pointer-events: none;
  will-change: transform, opacity;
  white-space: nowrap;
  z-index: -1;
  opacity: 1;
}

#area .section-label {
  line-height: 1.05;
}

.section-label.is-bg {
  opacity: 0.1 !important;
}


/* ===============================
Mission
=============================== */
.section--mission {
  background: #fff;
  min-height: 100vh;
}

#mission .label-pin-wrapper {
  padding-top: 200px;
}

/* ===============================
Research / Practice Area
=============================== */
.section--area {
  background: #fff;
}

#area .label-pin-wrapper {
  padding-top: 280px;
}

.section--area .area-venn {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

#research,
#practice {
  margin-top: 60px;
}

.panel {
  background: #fff;
  padding: 32px 32px 36px;
}

.panel-meta {
  font-weight: bold;
  margin-bottom: 4px;
}

.panel-title {
  font-size: clamp(20px, 2.1vw, 24px);
  margin-bottom: 16px;
}

#research .panel-title,
#research p strong {
  color: #398ee4;
}

#practice .panel-title,
#practice p strong {
  color: #de9cc9;
}

.panel-body p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* ===============================
Responsive
=============================== */
@media(max-width:768px) {
  .panel {
    padding: 24px 20px 28px;
  }

  .section {
    padding: 96px 0;
  }

  .section-sub {
    font-size: 18px;
  }
}