/* ===========================
   Top page
=========================== */
/* Loader */
.loader{
  display: flex;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  background:#000;
  z-index: 10000;
  color: #fff;
  opacity: 1;
  transition: opacity 1s ease-out;
}
.loader.fading {
  opacity: 0;
}
.loading {
  width: 50px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1A92DC;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}

/* Intro Animation */

.intro-overlay-wrap {
  position: fixed;
  inset: 0;
  width: 100%;
  z-index: 500;
  opacity: 1;
  background: none;
}
@media screen and (min-width: 768px) {
.intro-overlay-wrap {
  position: absolute;
}
}
.intro-overlay {
  width: 100%;
  height: 100dvh;
  display: flex;
  position: absolute;
  top:0;
  left:0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
}
.intro-overlay.fadeout {
  opacity: 0;
}
/*
.intro-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}*/
.intro-svg {
  position: absolute;
  width: 100%;/*
  height: 100%;*/
  top: 0;
  left: 0;/*
  transform: translateY(0);*/
  transition: transform 0.3s ease-out;
}
.intro-text {
  position: absolute;
  width: 286px;
  z-index: 2;
  transition: opacity 0.5s ease;
}
.intro-overlay.fadeout {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

@media screen and (min-width: 768px) {
.intro-text {
  width: min(370px, 70vw);
  }
}
.intro-overlay.fadeout .intro-text {
  opacity: 0;
}
/* 円が広がる間にオーバーレイ全体をふんわりフェード */
.circle-fade {
  animation: circleFadeEffect 6s ease-in-out forwards;
}
@keyframes circleFadeEffect {
  0% { opacity: 1; }
  80% { opacity: 0.6; }
  100% { opacity: 0; }
}


  #holeCircle,
  #ring {
    transform: translateY(20%);
  }
#holeCircle,
#ring {
  transform-origin: center center;
  transition: transform 0.5s ease;
}
@media (min-width: 768px) {/*
.intro-overlay-wrap {
  width: 100vw;
  height: auto;
}*/
  #holeCircle,
  #ring {
    transform: translateY(0);
  }
}

/* intro-text / scroll-indicator 非表示制御 */
.intro-text.hide,
.scroll-indicator.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-out;
}

/* scroll indicator */
.scroll-indicator {
  position: fixed;
  bottom: 12%;
  left: 50%;
  margin-left: -20px;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.15em;
  text-align: center;
  opacity: 0.8;
  transform: rotate(90deg);
  font-family: 'Roboto', serif;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 3px solid #fff;
  padding: 0 20px 0 0;
  animation: fluffy 3s infinite;
}
.scroll-indicator::after {
  content: '';
  display: block;
  width: 140px;
  height: 1px;
  position: absolute;
  bottom: 0;
  background: #fff;
  margin: 5px auto 0;
}
.scroll-indicator::before {
  content: '';
  display: block;
  width:14px;
  height: 1px;
  position: absolute;
  bottom: -4.5px;
  right: -74px;
  background: #fff;
  transform: rotate(-40deg);
}
@keyframes fluffy {
  0%, 100% {
    transform: rotate(90deg) translateX(0);
  }
  50% {
    transform: rotate(90deg) translateX(-20px);
  }
}

@media screen and (min-width: 768px) {
.scroll-indicator {
  bottom: 23%;
}
}

/* Top header */
.site-header{
  background: transparent;
}
.site-header .logo span {
  color: var(--white);
  border: 1px solid var(--white);
}
.site-header {
  background: transparent;
  transition: background 0.3s;
}
.site-header.scrolled {
  background: #fff;
}
.site-header.scrolled .main-nav li a {
  color: var(--MS_blue);
}
.site-header.scrolled .main-nav li.sub a::after {
  color: var(--MS_blue);
}
.site-header.scrolled .logo span {
  color: var(--MS_blue_light);
  border-color: var(--MS_blue);
}
@media screen and (min-width: 1265px) {
  .main-nav li a {
    color: var(--white);
  transition: color 0.3s;
  }
  .main-nav li.sub a::after {
    content: '';
    background: none;
    display: inline-block;
    vertical-align: middle;
    color: var(--white);
    line-height: 1;
    width: 9px;
    height: 9px;
    border: 0.1em solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: translateY(-25%) rotate(135deg);
    opacity: 0.5;
  }
}
/* hero */
.hero {/*
  height: calc(100vh + 130px);*/
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  flex-direction: column;
}

.hero-content {
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  opacity: 0;
  translate: 0 15%;
}
.hero-content.visible {
  opacity: 1;
  translate: 0;
  transition-duration: 2.5s;
  transition-timing-function: opacity var(--ease-out-cubic), translate var(--ease-out-quint);
}
/* video */
.hero .video {
  filter: blur(12px) brightness(0.4);
  transition: filter 3s ease;
}
.hero.video-clear .video {
  filter: blur(0) brightness(0.6);
}
.hero .video-wrap {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
}
.hero .video {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.hero .video video {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;   /* クリック無効化 */
}
.hero .video video.video-pc { display:block; }
.hero .video video.video-sp { display:none; }
@media (max-width: 480px) {
  .hero .video video.video-pc { display:none; }
  .hero .video video.video-sp { display:block; }
}
@media screen and (min-width: 1265px) {
  .hero .video video {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
  }
}
/* 画面が縦長すぎる場合（例：スマホ） */
@media (max-width: 480px) and (min-aspect-ratio: 9/16) {
  .hero .video video {
    width: 100%;
    height: auto;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* 中央合わせ（縦方向は上端） */
  }
}
.hero .overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  width: 100%;
  height: 100%;
  z-index: -1;
}
.second-recruit{
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  color: var(--white);
  font-size: 12px;
    gap: 5px;
    padding: 5px;
    text-align: right;
    line-height: 1.2;
  z-index: 999;
  margin-top: 60px;
}
.hero-content {
  z-index: 2;
  text-align: left;
  color: #fff;
  padding: 0 20px;
  display: flex;
    flex-direction: column;
    margin-top: calc(100vh + 20px);
    z-index: 999;
    margin-bottom: 100px;
    transition: 2s;
}

.hero .subtitle {
  font-size: 1.25rem;
  margin: 0 auto 30px;
  letter-spacing: 1px;
      max-width: 730px;
    height: auto;
}
.hero-content p{
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 2;
    text-shadow: 3px 3px 10px #333;
}
.hero-content p span{
  font-size: 17px;
  display: block;
    font-weight: bold;
    margin-bottom: 10px;
}
.hero .catchphrase {
  display: none;
}
.hero-wrap{
    position: relative;
}
.btn-movie {
    background: var(--MS_blue);
    color: var(--white);
    display: flex;
    justify-content: center;
    width: 90%;
    margin: 20px auto 0;
    width: 326px;
    max-width: 100%;
    flex-direction: column;
    border-radius: 50px;
    z-index: 999;
}
.btn-movie span{
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: 'Roboto', Arial, sans-serif;
    letter-spacing: 0.1rem;
}
@media screen and (min-width: 768px) {/*
.hero {
    height: calc(100vh + 650px);
}*/
.second-recruit{
    font-size: 15px;
    margin-top: 80px;
  cursor: pointer;
}
.hero-content{
    margin-top: calc(60vh + 300px);
}
.hero .subtitle{
    margin: 0 auto 80px;
}
.hero-content p{
    font-size: 20px;
    font-weight: bold;
    line-height: 3;
    margin-bottom: 10px;
    text-align: center;
}
.hero-content p span{
  font-size: inherit;
  display: inline;
}
.hero .catchphrase {
  font-size: 40px;
  display: block;
  margin-top: 30px;
}
}
@media screen and (min-width: 920px) {
.hero-content p{
    font-size: 24px;
}
}
@media screen and (min-width: 1265px) {
.hero {/*
  margin-top: 72px;*/
  margin-top: 0;
}
}
/* Video Popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}
.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  padding: 0;
  max-width: 90%;
  width: 1200px;
  border-radius: 8px;
}
.popup-content iframe {
  width: 100%;
  height: 675px;
}
.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  color: white;
  font-size: 24px;
  border: none;
  cursor: pointer;
}
/* backgrounds */
.bg-top {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: 150px;
  display: block;
  z-index: 2;
}
@media screen and (min-width: 600px) {
.bg-top{
    height: 200px;
    bottom: -80px;
}
}
@media screen and (min-width: 768px) {
.bg-top{
    height: 300px;
    bottom: -120px;
}
.popup-close{
  font-size: 48px;
}
}
@media (min-width: 1024px) {
.bg-top{
    height: 400px;
    bottom: -180px;
}
}
@media (min-width: 1240px) {
.bg-top{
    height: 600px;
    bottom: -280px;
}
}
/* all */
.bg-main{
  background-image: linear-gradient(200deg, #63bcdc, #2b64a9, #2b64a9);
  position: relative;
  padding: 6rem 1rem 6rem;
  overflow: hidden;
}
.bg-secondary {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  display: block;
  opacity: 0.9;
}
.message .title-copy,
.vision .title-copy{
    margin-bottom: -30px;
}
.environment .title-copy{
    margin-bottom: -60px;
}
@media (min-width: 768px) {
.message .title-copy,
.vision .title-copy,
.environment .title-copy{
    margin-bottom: 20px;
}
.bg-secondary{
    height: 150px;
}
}
@media (min-width: 1024px) {
.bg-secondary{
    height: 200px;
}
}
/* message */
.message {
  padding: 0;
  text-align: center;
}
.message-box {
    position: relative;
    padding-bottom: 30px;
}
.message-box picture{
    max-width: 90%;
}
.message-box picture img {
    max-width: 270px;
    margin: 0 auto;
}
.message .btn-blue,
.worklife .btn-blue{
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -163px;
}
.btn-blue span span {
    display: none;
}
@media (min-width: 768px) {
.home .title-copy.white{
    font-size: 32px;
}
.message-box {
    display: flex;
    flex-direction: row;
    color: var(--white);
    gap: 30px;
    font-size: 18px;
    z-index: 2;
}
.message-box .title-box {
    width: 60%;
    max-width: 750px;
}
.message-box .title-box p{
    margin-bottom: 1rem;
}
.message-box picture {
    width: 40%;
}
.message picture img {
  max-width: 555px;
  height: auto;
  width: 100%;
}
.message .btn-blue,
.worklife .btn-blue{
    position: relative;
    margin-left: 0;
    left: 0;
}.btn-blue span span {
    display: inline-block;
}
}
@media (min-width: 960px) {
.home .title-copy.white{
    font-size: 40px;
}
}
@media (min-width: 1182px) {
.home .title-copy.white{
    font-size: 52px;
}
}
/* vision */
.vision {
    padding-bottom: 100px;
    margin-top: 30px;
}
.vision .container{
    position: relative;
}
.vision-img {
  margin-top: 24px;
}
@media (min-width: 768px) {
.vision {
    padding-bottom: 120px;
}
.vision-box {
    display: flex;
    flex-direction: row-reverse;
    color: var(--white);
    font-size: 18px;
    justify-content: flex-end;
}
.vision-box .title-box {
    max-width: 570px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: -20px;
}
.vision-box .title-box p{
    margin-bottom: 1rem;
}
.vision-box picture {
  max-width: 806px;
  width: 100%;
}
.vision picture img {
  max-width: 806px;
  height: auto;
  margin-left: -80px;
  width: 100%;
}
}
@media (min-width: 1440px) {
.vision .container{
    min-width: 1440px;
}
}
/* environment */
.bg-second {
  background-image: linear-gradient(180deg, #eaf1f7, #fff, #fff);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}
.environment {
  position: relative;
  margin-bottom: 100px;
}
.environment .title-copy{
  font-size: 41px;
}
.environment-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 18px;
}
.environment-box .title-box {
    max-width: 570px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.environment-box picture {
    max-width: 704px;
}
.environment picture img {
  max-width: 704px;
  height: auto;
  width: 100%;
}
.btn-blue h3{
  color: var(--white);
}
.features{
    position: absolute;
    bottom: -100px;
    left: 50%;
    margin-left: -163px;
}
@media (min-width: 768px) {
.bg-second {
  background-image: linear-gradient(180deg, #eaf1f7, #f8fafc, #fff, #fff);
  padding: 0 0 100px;
}
.environment {
  padding: 0 0 30px;
}
.environment-box {
    flex-direction: row;
}/*
.environment-box .title-box {
    width: 50%;
}*/
.features {
  display: flex;
  flex-wrap: nowrap;
  gap: 35px;
  justify-content: center;
  position: relative;
  left: auto;
  margin-left: 0;
  bottom: 0;
  margin-top: 60px;
}
.feature-box {
  background: #ffffff;
  padding: 30px 20px;
  width: 360px;
  height: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  opacity: 0.8;
  color: var(--MS_blue);
  display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    margin: 30px;
    position: relative;
    max-width: none;
    font-weight: normal;
    cursor: pointer;
  transition: opacity 0.3s ease;
  font-size: 14px;
}
.feature-box.btn:hover {
  background: #fff;
    opacity: 1;
}
.feature-box .icon{
    margin: 10px auto;
}
.feature-box h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.feature-box::after {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    background: url(../images/arrow_round_right.svg) no-repeat bottom;
    background-size: contain;
    position: absolute;
    bottom: 40px;
    margin-bottom: -6px;
}
.feature-box::before {
    content: "";
    border: 1px solid #fff;
    width: 130%;
    height: 130%;
    position: absolute;
    border-radius: 50%;
    top: -15%;
}
.feature-01{
    left: 30px;
    margin-top: 0;
}
.feature-02{
    top: 30px;
}
.feature-03{
    opacity: 1;
    right: -10%;
}
.feature-04{
    opacity: 1;
    right: -5%;
    top: 30px;
}
.feature-03::before,
.feature-04::before {
    content: "";
    border: 1px solid var(--MS_blue_light);
}
.btn-blue h3{
  color: var(--MS_black);
}
.pc-none{
  display: none;
}
}
@media (min-width: 1124px) {
.features {
    margin-right: 0;
}
.feature-box {
  width: 424px;
  height: 424px;
  z-index: 2;
  font-size: 16px;
}
.feature-box::after {
    width: 60px;
    height: 60px;
}
.feature-box .icon{
    margin: 20px auto;
}
.feature-02{
    margin-right: -250px;
}
.feature-03{
    top: -150px;
}
}
/* team → style.css */
@media (min-width: 768px) {
  .team {
      top: -100px;
      margin-bottom: -100px;
  }
}
@media (min-width: 1124px) {
  .team {
      top: -300px;
      margin-bottom: -300px;
  }
}
/* worklife */
.worklife {
  padding: 80px 0;
  text-align: center;
  position: relative;
  margin-top: -5px;
}
.worklife .worklife-img{
    margin: 0 -20px;
}
.worklife picture img {
  width: 100%;
}
@media (min-width: 768px) {
.worklife {
  padding: 80px 0;
}
.worklife-box {
    display: flex;
    flex-direction: row;
    gap: 60px;
}
.worklife-box .title-box {
    width: 50%;
}
.worklife-box .worklife-img {
    width: 50%;
    margin: 0;
    margin-top: 30px;
}
.worklife picture img {
  border-radius: 12px;
}
}