@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Shippori+Mincho:wght@400;600;700&family=Space+Mono:wght@400&display=swap");
html,
body {
  scroll-behavior: auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding-bottom: 5em;
  border-left: 1px solid currentColor;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 120%;
}
.scroll-indicator span {
  writing-mode: vertical-lr;
  animation: scroll-bounce 1.2s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator span {
    animation: none;
  }
}

@keyframes scroll-bounce {
  0%, 20%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.4em);
  }
}
.cta-btn-outer {
  position: absolute;
  right: 2rem;
  bottom: 3rem;
  width: clamp(28rem, 38vw, 42rem);
  container-type: inline-size;
}

.cta-btn {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 3.8cqw;
  box-sizing: border-box;
  width: 100%;
  padding: 5.7cqw 5.7cqw 5.7cqw 6.2cqw;
  background-color: #2347d6;
  background-image: radial-gradient(#4565e2 1px, transparent 1.2px);
  background-size: 24px 24px;
  border-radius: 1rem;
  color: #ffffff;
  transition: opacity 0.3s ease;
}
.cta-btn:hover {
  opacity: 0.85;
}
.cta-btn__body {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}
.cta-btn__lead {
  font-family: "Space Mono", YuGothic, "Yu Gothic", "Yu Gothic Medium", Meiryo, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1;
}
.cta-btn__title {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 0.45em;
  margin-top: 2.86cqw;
  font-size: clamp(1.6rem, 5.7cqw, 2.4rem);
  font-weight: 500;
  line-height: 1;
}
.cta-btn__title img {
  width: auto;
  height: 1em;
}
.cta-btn__action {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 1em;
  margin-top: 3.8cqw;
  padding-bottom: 0.65em;
  border-bottom: 1px solid currentColor;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.cta-btn__figure {
  position: relative;
  flex: 0 0 auto;
  width: 22.6cqw;
  aspect-ratio: 110/122;
}
.cta-btn__figure-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}
.cta-btn__figure-img--hover {
  opacity: 0;
}
.cta-btn:hover .cta-btn__figure-img {
  opacity: 0;
}
.cta-btn:hover .cta-btn__figure-img--hover {
  opacity: 1;
}
@container (max-width: 240px) {
  .cta-btn__figure {
    display: none;
  }
}

a.cta-btn:link, a.cta-btn:visited, a.cta-btn:hover, a.cta-btn:active {
  color: #ffffff;
}

#bg-screen {
  background: url(../img/top/videoframe.jpg);
  background-size: cover;
  opacity: 0.2;
}
#bg-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-main {
  background: #a3d5d5;
  background: linear-gradient(180deg, rgba(163, 213, 213, 0.6) 0%, rgba(239, 255, 255, 0.4) 83%, rgba(255, 255, 255, 0) 0%);
}

.section--anim,
.section--reg,
.section-inner,
.section-sticky {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
}

.sections {
  position: relative;
}
.sections .section-sticky {
  display: flex;
}
.sections .section--anim {
  position: relative;
  overflow: hidden;
}
.sections .section-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sections .h-track {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}
@media screen and (min-width: 651px) {
  .sections .h-track {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
  }
  .sections .panel {
    position: absolute;
    top: 0;
  }
  .sections .philosophy__2 {
    max-width: 50vw;
  }
}

.panel {
  height: 100vh;
  height: 100svh;
  margin: 0;
  padding: 6rem 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.philosophy__wrapper {
  background-color: #031a62;
}
.philosophy__slide .standing-text {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  font-size: clamp(4rem, 5vw, 6rem);
  width: 92%;
  max-width: 5em;
}
.philosophy__slide .standing-text .column {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 1rem;
  width: fit-content;
}
.philosophy__slide .standing-text .text-hor {
  line-height: 110%;
}
.philosophy__slide .standing-text .text-vert {
  text-orientation: upright;
  writing-mode: vertical-lr;
  letter-spacing: 0.25em;
}
.philosophy__1 {
  gap: clamp(5rem, 5vw, 8rem);
  left: 0;
  width: 100vw;
  z-index: 1;
  background-color: #031a62;
  color: #ffffff;
}
.philosophy__1 .title-st,
.philosophy__1 .standing-text {
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.philosophy__1.is-entered .title-st,
.philosophy__1.is-entered .standing-text {
  opacity: 1;
  transform: translateY(0);
}
.philosophy__2 {
  right: 0;
  width: 100vw;
  z-index: 2;
  background-color: #ffffff;
  color: #031a62;
}
.philosophy__2 .text-container-st {
  gap: 5rem;
  max-width: 50rem;
}
.philosophy__2 .text-container-st .a-btn {
  margin-top: 1rem;
}
@media screen and (min-width: 651px) {
  .philosophy__1 .title-st,
  .philosophy__1 .standing-text {
    transition: opacity 0.5s ease-in-out 0.1s, transform 0.5s ease-in-out 0.1s;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2vh 0;
  position: relative;
  width: 86.4%;
  max-width: 156rem;
  height: 100vh;
  height: 100svh;
  margin: auto;
  padding: 10rem 0 2rem;
}
.hero .text-container,
.hero .img-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-height: 100%;
}
.hero .text-container picture,
.hero .text-container img,
.hero .img-container picture,
.hero .img-container img {
  display: block;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.hero .text-container {
  gap: clamp(2.4rem, 7vw, 10rem);
}
.hero .text-container h1,
.hero .text-container h3 {
  width: 100%;
}
.hero h1 {
  color: #2f2f2f;
  font-size: clamp(3.6rem, 9vw, 5rem);
  line-height: 120%;
}
.hero h3 {
  font-size: clamp(2rem, 2vw, 2.5rem);
  font-weight: 700;
  line-height: 200%;
}
.hero .img-container {
  clip-path: url(#kv-clip);
}
.hero .hero-slider {
  width: 100%;
}
@media screen and (min-width: 651px) {
  .hero {
    padding: clamp(10rem, 17vh, 17rem) 0 clamp(2rem, 6.5vh, 6.5rem);
  }
  .hero .img-container {
    max-width: clamp(32rem, 45vw, 84rem);
  }
}
@media screen and (min-width: 1001px) {
  .hero {
    flex-direction: row;
    display: grid;
    grid-template-columns: 1fr clamp(20rem, 43.75%, 71rem) clamp(20rem, 52.5%, 85rem) 1fr;
    grid-template-rows: 1fr;
  }
  .hero .text-container,
  .hero .img-container {
    position: relative;
    grid-row: 1/2;
  }
  .hero .text-container {
    grid-column: 2/4;
    z-index: 10;
  }
  .hero .img-container {
    grid-column: 3/4;
  }
}
@media screen and (min-width: 1601px) {
  .hero h1 {
    font-size: clamp(3.6rem, 6.5vw, 9.5rem);
  }
}

section.service {
  padding: 15rem 0 7rem;
}
section.service .text-container-st {
  gap: 5rem;
}
section.service h3 {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 3vw, 3.5rem);
}

.fade-in-card-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  width: 100%;
}
.fade-in-card-container .fade-in-card {
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  gap: 2vh 0;
  padding: clamp(2.4rem, 3vw, 4rem);
}
@media screen and (min-width: 1201px) {
  .fade-in-card-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .fade-in-card-container .fade-in-card {
    height: 48rem;
  }
}

section.service-samples .fade-in-card {
  position: relative;
  overflow: hidden;
}
section.service-samples .fade-in-card .bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s linear;
  transform: scale(1);
  transform-origin: center;
}
section.service-samples .fade-in-card .title-btn {
  position: relative;
  z-index: 10;
  pointer-events: none;
  width: 100%;
  padding: 0.66em 1.4em;
  background-color: rgba(3, 26, 98, 0.8);
  border-radius: 1rem;
  transition: background-color 0.4s linear;
}
section.service-samples .fade-in-card .title-btn .text {
  color: #ffffff;
  font-size: clamp(1.6rem, 1.6vw, 2.5rem);
  line-height: 140%;
}
section.service-samples .fade-in-card__1 {
  transition-delay: 0.2s;
}
section.service-samples .fade-in-card__1 .bg {
  background: url(../img/top/sp/service-1.webp) center no-repeat;
  background-size: cover;
}
section.service-samples .fade-in-card__2 {
  transition-delay: 0.4s;
}
section.service-samples .fade-in-card__2 .bg {
  background: url(../img/top/sp/service-2.webp) center no-repeat;
  background-size: cover;
}
section.service-samples .fade-in-card__3 {
  transition-delay: 0.6s;
}
section.service-samples .fade-in-card__3 .bg {
  background: url(../img/top/sp/service-3.webp) center top calc(-1 * clamp(20px, 5vw, 50px)) no-repeat;
  background-size: cover;
}
section.service-samples .fade-in-card:hover .bg {
  transform: scale(1.05);
}
section.service-samples .fade-in-card:hover .title-btn {
  background-color: rgb(3, 26, 98);
}
@media screen and (min-width: 1201px) {
  section.service-samples .fade-in-card .title-btn {
    min-height: 10rem;
  }
  section.service-samples .fade-in-card .title-btn .arrow-st {
    width: 5rem;
  }
  section.service-samples .fade-in-card__1 .bg {
    background: url(../img/top/retina/service-1.webp) center no-repeat;
    background-size: cover;
  }
  section.service-samples .fade-in-card__2 .bg {
    background: url(../img/top/retina/service-2.webp) center no-repeat;
    background-size: cover;
  }
  section.service-samples .fade-in-card__3 .bg {
    background: url(../img/top/retina/service-3.webp) center no-repeat;
    background-size: cover;
  }
}

#kv-clip path {
  transform-box: fill-box;
  transform-origin: center;
  animation: kv-clip-spin 24s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  #kv-clip path {
    animation: none;
  }
}

@keyframes kv-clip-spin {
  from {
    transform: scale(0.92) rotate(360deg);
  }
  to {
    transform: scale(0.92) rotate(0);
  }
}
section.company .content-grid {
  display: grid;
  width: 84.6%;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
}
section.company .left-col,
section.company .right-col {
  grid-column: 1/2;
  width: 100%;
  height: 100%;
}
section.company .left-col {
  grid-row: 1/2;
  padding: 5rem 0;
}
section.company .left-col h3 {
  font-size: clamp(2.5rem, 3vw, 3.5rem);
}
section.company .right-col {
  grid-row: 2/3;
  transition-delay: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}
section.company .right-col .img-container,
section.company .right-col .btn-container {
  align-self: stretch;
}
section.company .right-col .img-container img,
section.company .right-col .img-container picture {
  display: block;
  width: 100%;
  aspect-ratio: 20/9;
  object-fit: cover;
}
section.company .right-col .btn-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1px;
  background-color: #ffffff;
}
section.company .right-col .btn-container .tile {
  justify-content: center;
  padding: 0;
  width: 100%;
  height: 7rem;
  background-color: hsla(183, 28%, 75%, 0.8);
  border-radius: unset;
}
section.company .right-col .btn-container .tile .inner-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 2rem;
  width: 92%;
}
section.company .right-col .btn-container .tile .text-group {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 0.5rem;
}
section.company .right-col .btn-container .tile .text-group span {
  line-height: 100%;
  font-weight: 600;
}
section.company .right-col .btn-container .tile .text-group span.text-rj {
  font-size: 1.4rem;
}
section.company .right-col .btn-container .tile:hover {
  background-color: hsl(183, 28%, 75%);
}
@media screen and (min-width: 1001px) {
  section.company .content-grid {
    width: 100%;
    max-width: 192rem;
    grid-template-columns: 1fr clamp(24rem, 60%, 70rem) clamp(20rem, 30%, 50rem) 1fr;
    grid-template-rows: auto;
  }
  section.company .left-col,
  section.company .right-col {
    grid-row: 1/2;
  }
  section.company .left-col {
    grid-column: 2/3;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 2rem;
  }
  section.company .left-col .text-container-st {
    width: 92%;
    max-width: 60rem;
  }
  section.company .right-col {
    grid-column: 3/5;
  }
  section.company .right-col .btn-container {
    grid-template-columns: repeat(2, 1fr);
  }
  section.company .right-col .btn-container .tile {
    height: 15rem;
  }
  section.company .right-col .btn-container .tile .inner-wrapper {
    max-width: 20rem;
  }
  section.company .right-col .btn-container .arrow-st {
    width: 5rem;
  }
}

section.news {
  padding: clamp(10rem, 12vw, 15rem) 0;
  background-color: #ffffff;
}
section.news .content-container {
  gap: 5rem;
}
section.news .news-container {
  width: 100%;
  margin-top: 1rem;
}
section.news .news-container h5 {
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  line-height: 140%;
}
section.news .post-row {
  transition-delay: 0.4s;
}
section.news .post-row:nth-child(2) {
  transition-delay: 0.8s;
}
section.news .post-row:nth-child(3) {
  transition-delay: 1.2s;
}
