/* 読み込み中に一瞬だけスタイルが消えるのを防ぐ（FOUC対策） */
[x-cloak] {
  display: none !important;
}

/* Tailwindが完全に読み込まれるまで画面を表示させない場合 */
body {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}

.nav-font {
  font-weight: 500;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.07em;
  font-family: helvetica-w01-roman, helvetica-w02-roman, helvetica-lt-w10-roman, sans-serif;
  font-size: 16px;
}

.gradient-text {
  background: linear-gradient(to right, #29abe2, #ed1e79);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(to right, #29abe2, #ed1e79);
}

.btn-gradient {
  background: linear-gradient(126deg, #5f5bcd 24%, #29abe2 100%);
  color: #fff;
  border: none;
  font-size: 14px;
  letter-spacing: 0.15em;
  font-family: helvetica-w01-roman, helvetica-w02-roman, helvetica-lt-w10-roman, sans-serif;
  padding: 14px 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn-gradient:hover {
  background: linear-gradient(307deg, #ed1e79 54%, #29abe2 100%);
}

.btn-gradient svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.btn-rounded {
  background: #fff;
  border: 2px solid #000;
  border-radius: 30px;
  font-size: 16px;
  letter-spacing: 0.05em;
  font-family: helvetica-w01-roman, helvetica-w02-roman, helvetica-lt-w10-roman, sans-serif;
  color: #000;
  padding: 0;
  width: 239px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn-rounded:hover {
  background: #29abe2;
  border-color: #29abe2;
  color: #fff;
}

.btn-rounded--pink:hover {
  background: #ed1e79;
  border-color: #ed1e79;
  color: #fff;
}

.heading-font {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
}

.stat-number {
  font-family: helvetica-w01-bold, helvetica-w02-bold, helvetica-lt-w10-bold, sans-serif;
  font-size: 50px;
  line-height: 1;
  letter-spacing: 0em;
}

.team-number {
  font-family: helvetica-w01-bold, helvetica-w02-bold, helvetica-lt-w10-bold, sans-serif;
  font-size: 50px;
  line-height: 0.5em;
  letter-spacing: 0em;
  color: #ed1e79;
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
}

.light-orb--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(41, 171, 226, 0.5), transparent 70%);
  top: 10%;
  left: 15%;
  animation: pulse1 6s ease-in-out infinite;
}

.light-orb--2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(41, 171, 226, 0.4), transparent 70%);
  top: 50%;
  right: 20%;
  animation: pulse2 8s ease-in-out infinite 2s;
}

.light-orb--3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(100, 200, 255, 0.35), transparent 70%);
  bottom: 15%;
  left: 40%;
  animation: pulse3 7s ease-in-out infinite 1s;
}

.light-orb--4 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(41, 171, 226, 0.45), transparent 70%);
  top: 30%;
  right: 40%;
  animation: pulse4 5s ease-in-out infinite 3s;
}

@keyframes pulse1 {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes pulse2 {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.9);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

@keyframes pulse3 {

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

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

@keyframes pulse4 {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.7);
  }

  50% {
    opacity: 0.65;
    transform: scale(1.1);
  }
}

@keyframes marquee1 {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

.marquee-track1 {
  animation: marquee1 35s linear infinite;
}

.marquee-track-reverse1 {
  animation: marquee1 35s linear infinite reverse;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-track {
  animation: marquee 20s linear infinite;
}

.marquee-track-reverse {
  animation: marquee 20s linear infinite reverse;
}

.card-img-filter {
  filter: saturate(0.5) contrast(1.1);
}

/* ================ Slideshow setting ================ */
@keyframes infinite-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 5px));
  }

  /* 1セット分（半分）左にずらす */
}

/* --- 左右ボタンの調整 --- */
.swiper-button-next,
.swiper-button-prev {
  width: 30px !important;
  /* サイズを小さく */
  height: 30px !important;
  top: 50% !important;
  /* 位置調整の準備 */
  bottom: 50% !important;
  /* 下からの位置 */
}

/* 矢印自体の大きさを調整 */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
  font-weight: bold;
  color: #29abe2;
  /* 矢印の色も青に */
}

/* 位置の左右微調整 */
.swiper-button-prev {
  left: 2% !important;
}

.swiper-button-next {
  right: 2% !important;
}

/* --- Pagination（丸ぽち）の調整 --- */
/* 通常時の色と形 */
.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
  background: #29abe2 !important;
  /* 未選択時の色 */
  opacity: 1 !important;
  border-radius: 50% !important;
  /* 円形 */
}

/* 選択中の色と形 */
.swiper-pagination-bullet-active {
  background: black !important;
  border: 2px solid #29abe2 !important;
  /* 選択中の青色 */
  width: 12px !important;
  /* 選択中だけ少し大きく */
  height: 12px !important;
  border-radius: 50% !important;
  /* 選択中も丸 */
}

/* Paginationの位置 */
.swiper-pagination {
  bottom: 30px !important;
  /* 下からの距離を調整 */
}

/* ==================== Mobile Menu (overlay, slide-in) ==================== */
#nav-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow-y: auto;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 300ms ease-out;
  height: 100vh;
  width: 100%;
}

#nav-menu.is-open {
  transform: translateX(0);
}

#nav-menu .logoX {
  display: flex;
}

@media (min-width: 768px) {
  #nav-menu {
    position: static;
    inset: auto;
    z-index: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 100px;
    width: auto;
    overflow: visible;
    padding: 0;
    transform: none;
    transition: none;
  }
  #nav-menu .logoX,
  #nav-menu .sns-icons {
    display: none;
  }
}

/* Mobile-only overrides for menu items visual reset */
@media (max-width: 767px) {
  #nav-menu > div:not(.logoX):not(.sns-icons) {
    width: 100% !important;
    height: auto !important;
    padding: 18px 10px !important;
    border-bottom: 1px solid #eee !important;
    border-top: none !important;
    justify-content: center !important;
    cursor: pointer;
  }
  #nav-menu > div > a {
    font-size: 18px !important;
    letter-spacing: 0.1em;
  }
  #nav-menu .joinUs {
    margin-top: 20px;
    width: 100% !important;
    height: 52px !important;
    border-radius: 10px;
  }
  #nav-menu .sns-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
  }
}
