@charset "utf-8";
/*-------anime------*/
.js-split span {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
}

.js-split.is-active span {
  animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sa-ct.tr-d04::after {
  transition-delay: 0.475s;
}
.sa-ct.tr-d08::after {
  transition-delay: 0.8s;
}
.sa-ct.tr-d02::after {
  transition-delay: 0.2s;
}
.sa-ct.tr-d03::after {
  transition-delay: 0.45s;
}
.sa-ct.tr-d05::after {
  transition-delay: 0.5s;
}
.sa-ct.tr-d06::after {
  transition-delay: 0.6s;
}
.a-ct {
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.sa-ct {
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.a-ct::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  display: inline-block;
  background: #fff;
  top: 0;
  z-index: 5;
  transition: 0.8s;
  transition-delay: 0.4s;
}
.sa-ct::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  display: inline-block;
  background: #fffbf5;
  top: 0;
  z-index: 5;
  transition: 0.2s;
  transition-delay: 0.4s;
}
.sa-bottom::after {
  transform: translateY(0);
}
.sa-bottom.is-visible::after {
  transform: translateY(100%);
}
.a-left::after {
  left: 0;
}
.a-left.is-visible::after {
  left: -100vw;
}
.a-right::after {
  right: 0;
}
.a-right.is-visible::after {
  right: -100vw;
}
.fade-up {
  opacity: 0;
  transform: translateY(-35%);
}

.fade-up.is-visible {
  animation: fadeUpBounce 0.8s ease forwards;
  animation-delay: 0.5s;
}

@keyframes fadeUpBounce {
  0% {
    opacity: 0;
    transform: translateY(-35%);
  }
  60% {
    opacity: 1;
    transform: translateY(10%);
  }
  80% {
    opacity: 1;
    transform: translateY(-5%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 球体 */
.square {
  aspect-ratio: 1 / 1;
  width: 45vw;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: spin3D 20s linear infinite;
  background: radial-gradient(circle at 30% 30%, #fff5e6, #e0c497 60%, #a88d63);
  box-shadow:
    inset -20px -20px 40px rgba(0, 0, 0, 0.35),
    inset 20px 20px 40px rgba(255, 255, 255, 0.4);
}

/* 模様 */
.square::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    90deg,
    rgba(120, 90, 50, 0.15) 0px,
    rgba(120, 90, 50, 0.15) 2px,
    transparent 2px,
    transparent 24px
  );
  transform: translateZ(1px);
  opacity: 0.5;
}

/* 光 */
.square::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    transparent 60%
  );
  transform: translateZ(2px);
}

/* 回転 */
@keyframes spin3D {
  0% {
    transform: rotateY(0deg) rotateX(12deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(12deg);
  }
}

/* 表示制御 */
#floating {
  position: absolute;
  opacity: 0;
  transition: 0.8s ease-in-out;
  bottom: 0;
  left: 15%;
  z-index: -1;
}

#floating.is-show {
  position: fixed;
  opacity: 0.35;
}

/* テキスト回転用 */
.text-rotate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  animation: textSpin 20s linear infinite;
}

/* テキスト */
.square-txt {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0%, -50%);
  letter-spacing: 0.2em;
  font-size: max(var(--px-48), 24px);
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
  opacity: 0.2;
}
.blob.st1 {
  left: 2.5%;
  top: 2.5%;
}
.blob.st2 {
  right: 3.5%;
  top: 25%;
  background-color: #fffbf5;
  background-image:
    radial-gradient(circle, #e0c497 5px, transparent 5px),
    radial-gradient(circle, #e0c497 5px, transparent 5px);
  background-position:
    0 0,
    10px 20px;
  background-size: 20px 40px;
  width: 650px;
}
.blob.st3 {
  right: 55%;
  bottom: 35%;
  opacity: 0.25;
  width: 350px;
}
.blob.st4 {
  right: 0;
  bottom: 0;
}
.blob {
  position: absolute;
  overflow: hidden;
  z-index: -1;
  width: 800px;
  aspect-ratio: 1 / 1;
  background: #e0c497;
  opacity: 0.5;
  animation: blobCrazy 12s infinite ease-in-out;
}

/* 超ぐにゃ */
@keyframes blobCrazy {
  0% {
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    transform: translate(0, 0) scale(1);
  }
  20% {
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    transform: translate(10px, -20px) scale(1.05);
  }
  40% {
    border-radius: 30% 70% 40% 60% / 60% 30% 70% 40%;
    transform: translate(-15px, 10px) scale(0.95);
  }
  60% {
    border-radius: 60% 40% 70% 30% / 50% 70% 30% 50%;
    transform: translate(20px, 15px) scale(1.08);
  }
  80% {
    border-radius: 50% 50% 30% 70% / 70% 40% 60% 30%;
    transform: translate(-10px, -15px) scale(0.97);
  }
  100% {
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    transform: translate(0, 0) scale(1);
  }
}
.infinitanim-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}
.infinitanim {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  z-index: 5;
}

.infinitanim p {
  display: inline-block;
  font-size: max(var(--px-128), 64px);
  opacity: 0.2;
  font-weight: bold;
  color: #e0c497;
  -webkit-text-stroke: 2px #e0c497;
  animation: InfinitTxt 60s linear infinite;
  position: relative;
  left: 0;
  white-space: nowrap;
  margin: 0;
  z-index: 5;
  line-height: 1.1;
  font-family: var(--en);
}
.infinitanim.infinit_right p {
  color: transparent;
  -webkit-text-stroke: 2px #e0c497;
  right: 0;
  animation: InfinitTxtR 60s linear infinite;
  opacity: 0.2;
}
.infinitanim.infinit_right p:before {
  color: transparent;
  -webkit-text-stroke: 2px #e0c497;
}
.infinitanim.infinit_right p:after {
  content: "KOGAORTHODONTICCLINICKOGAORTHODONTICCLINIC";
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  right: 100%;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px #e0c497;
  font-family: var(--en);
}
.infinitanim p:before {
  content: "KOGAORTHODONTICCLINICKOGAORTHODONTICCLINIC";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 100%;
  white-space: nowrap;
  color: #e0c497;
  -webkit-text-stroke: 2px #e0c497;
  display: inline-block;
  font-family: var(--en);
}
@keyframes InfinitTxt {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}
@keyframes InfinitTxtR {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(100%, 0, 0);
  }
}
@media screen and (max-width: 820px) {
  body .square {
    width: 100vw;
  }
  .p-index-medical {
    overflow: hidden;
  }
}
@media screen and (max-width: 680px) {
}
