/*初見初回の場合[header]---------------------------*/
.anm-down {
  transform: translateY(-100%);
  opacity: 0; /* 完全に隠す */ 
  transition: transform 1s cubic-bezier(.31,.83,.6,.99), opacity 1s ease; /* アニメーション効果とイージング */

}
.anm-down.animated-down {
  transform: translateY(0);
  transition-delay: 1s; /* アニメーションの遅延 */;
  opacity: 1; /* 表示させる */ 
}
/* 初回訪問ではない場合のスタイル（即座に表示）[header] */
.anm-down.no-animation {
  transform: translateY(0);
  opacity: 1;
  transition: none; /* アニメーションを無効化[header] */
}
/*------------------------------------------------------
/
/[ kv ]
/
/-------------------------------------------------------*/
header a.logo-index{
  min-width: 260px;
  transition: 0.7s;
  background-image: url(../image/svg/counter-logo-yoko-white.svg);
  height: 45px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
}

header a.logo-index:hover{
  opacity: 0.5;
}

body.scrolled header a.logo-index{
  transition: 0.7s;
  background-image: url(../image/svg/counter-logo-yoko-blue.svg);
}


@media screen and (max-width: 768px){

header a.logo-index{
  width: 160px; 
 height: 30px;
    background-position: left;
}

body.scrolled header a.logo-index{
  background-position: left;
	}
}


h1.index{
  width: 100%;
  width: 260px;
  padding: 0;
  margin:0;
  line-height: 0;
}
.kv{
    height: 100svh;
    width: 100%;
    background-color: #75acdb;
    background-image: url(../image/idx_kv_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.kv p{
    position: absolute;
    font-size: calc(2rem + var(--font-size-scale));
    color: #fff;
    left: 50%;
    top:50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}
/*初見初回の場合---------------------------*/
.kv p {
  opacity: 0;
  filter: blur(12px);
}

  @keyframes anmblur {
    from {
      filter: blur(12px);
      opacity: 0;
    }
    to {
      filter: blur(0);
      opacity: 1;
    }
    }

.kv p.animated-blur {
  animation: anmblur 2s forwards;
  animation-delay: 0.3s;
}
.kv p.no-animation {
  opacity: 1 !important;
  filter: blur(0) !important;
}
/*ココまで---------------------------------------*/
@media screen and (max-width: 768px){
	h1.index{
  width: 160px;
}
.kv p{
  position: absolute;
  font-size: calc(1.2rem + var(--font-size-scale));
}
}
/* ---- reset ---- */

  /* ---- particles.js container ---- */
  
  #particles-js {
    position: absolute;
    width: 100%;
    height: 40%;
    bottom:0;
    z-index: 0;
  }
  
  /* ---- stats.js ---- */
  
  .count-particles{
    background: #000022;
    position: absolute;
    top: 48px;
    left: 0;
    width: 80px;
    color: #13E8E9;
    font-size: .8em;
    text-align: left;
    text-indent: 4px;
    line-height: 14px;
    padding-bottom: 2px;
    font-weight: bold;
  }
  
  .js-count-particles{
    font-size: 1.1em;
  }
  
  #stats,
  .count-particles{
    -webkit-user-select: none;
  }
  
  #stats{
    border-radius: 3px 3px 0 0;
    overflow: hidden;
  }
  
  .count-particles{
    border-radius: 0 0 3px 3px;
  }
/*------------------------------------------------------
/
/[ news ]
/
/-------------------------------------------------------*/
.kv{
  overflow: hidden;
}
.kv a.news{
    background-color: #22508b;
    color: #fff;
    position: absolute;
    bottom:0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 0;
    overflow: hidden;
    text-decoration: none;
    transition: 0.8s;
}
.kv h2{
	color:#FDE5B9
}
/*初見初回の場合---------------------------*/
.kv a.news {
  transform: translateY(100%);
  opacity: 0; /* 完全に隠す */ 
  transition: transform 1s cubic-bezier(.31,.83,.6,.99), opacity 1s ease; /* アニメーション効果とイージング */

}
.kv a.news.animated-up {
  transform: translateY(0);
  transition-delay: 1s; /* アニメーションの遅延 */;
  opacity: 1; /* 表示させる */ 
}
/* 初回訪問ではない場合のスタイル（即座に表示） */
.kv a.news.no-animation {
  transform: translateY(0);
  opacity: 1;
  transition: none; /* アニメーションを無効化 */
}
/*ココまで---------------------------------------*/
.kv a.news img{
    max-width: 150px;
    margin-right: 1rem;
	min-width:150px
}
.kv a.news ul li{
    font-size:large;
    background:url(../image/svg/idx_kv_news_arrow.svg);
    background-repeat: no-repeat;
    background-size: 40px;
    background-position: right;
    padding: .5rem 3rem .5rem .5rem;
    transform: translateY(2px);
}
.kv a.news ul li span{
    margin-right: 1rem;
}
.kv a.news:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #221815;
    transform: translateX(-100%);
    transition: 0.8s;
    z-index: -1;
  }
  .kv a.news:hover {
    color: #ffffff;
  }
  .kv a.news:hover:before {
    transform: translateX(0);
  }
  
@media screen and (max-width: 768px){

  .kv a.news img{
      max-width: 110px;
      margin-right: 0;
  }
  .kv a.news{
    padding:  0 .5rem .5rem .5rem;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
}

.kv a.news ul li{
  background-size: 40px;
  background-position: right;
  padding: .5rem 0 0 0;
  padding-right: 50px;
   border-top: dotted 1px #447ac2;
}
}

/*------------------------------------------------------
/
/ [ service ] - section
/
/-------------------------------------------------------*/
section.service{
  z-index: 0;
}
section.service .inner{
  padding: 8% 15%;
  display: flex;
  justify-content:flex-start;
  gap:50px
}
section.service h2{
  text-align: center;
  margin: 200px auto 100px;
  position: relative;
}
section.service h2:before{
  content: "";
  width: 1px;
  height: 100px;
  background-color: #000;
  position: absolute;
  top:-120px;
  left: 50%;
  transform: translateX(-50%);
}
section.service .inner div{
  flex: 1;
}
section.service .inner .wrap_img{
  overflow: hidden;
}
section.service .service-content .box:nth-child(odd){
  background-color: #ebeff7;
}

section.service .service-content .box:nth-child(odd) .inner{
  background-color: #ebeff7;
  flex-direction: row-reverse;
}
@media screen and (max-width: 768px) {
  section.service .service-content .box .inner,
  section.service .service-content .box:nth-child(odd) .inner{
    padding: 20% 1rem;
    display: flex;
    justify-content:flex-start;
    gap:50px;
    flex-direction: column;
  }
  
}

/*zoom-tigger****************************/
.trigger {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s ease-out, transform 1.5s ease-out;
  transition-delay: 0s, 0.8s;
}

.trigger.zoomout {
  opacity: 1;
  transform: scale(1);
}

/******************************/

body.noscroll {
  overflow: hidden;
}
#frame{
  position: fixed;
  z-index: 9;
  width: 100vw;
  height: 100vh;
  background-color: #fff;
  top:0;
  left: 0;
  opacity: 1;
  transition: opacity 1s ease;
}
#text_anime {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  font-size: 4em;
  text-align: center;
  text-transform: uppercase;
  z-index: 10;
  left:50%;
  top:50%;
}

@media screen and (max-width: 768px) {
  
#text_anime {
  font-size: 1.6em;
}
}
#text_anime span {
  position: relative;
  display: inline-block;
}
#text_anime span._ {
  color: #fff;
}
#text_mask {
  width: 100%;
  height: 40%;
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 10;
}
#text_top, #text_bottom {
  position: absolute;
  left: 5%;
  right: 5%;
  width: 90%;
  height: 0;
  background: #fff;
  z-index: 10;
}
#text_top {
  top: 0;
}
#text_bottom {
  top: auto;
  bottom: 0;
}
#text_bottom div {
  right: 0;
}
#top_sq, #bottom_sq {
  width: 10px;
  height: 10px;
  background: #000;
  position: absolute;
  border-radius: 5px;
  top:50%;
  transform: translateY(-50%);
}
#top_sq {
  bottom: -2px;
}
#bottom_sq {
  top: -2px;
}
#top_line, #bottom_line {
  width: 100%;
  height: 1px;
  background: #000;
  position: absolute;
}
#top_line {
  bottom: 0;
}
#bottom_line {
  top: 0;
}
#v_left, #v_right {
  width: 50%;
  height: 100vh;
  background: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
}
#v_left {
  left: 0;
  border-right: 1px solid #000;
}
#v_right {
  left: auto;
  right: 0;
  border-left: 1px solid #000;
}

/*********************************/

#frame2{
  position: fixed;
  z-index: 9;
  width: 100vw;
  height: 100vh;
  background-color: #22508b;
  top:0;
  left: 0;
  opacity: 1;
  transition: opacity 1s ease;
}
section.loading{
  position: relative;
}
section.loading .absolute{
position: absolute;
top:50%;
left: 50%;
transform: translate(-50%, -50%);
}
.all_wrap_text{
  text-align: center;

}
.wrapper_text{
  display:inline-block;
  overflow: hidden;
  min-width: 20px;
  color: #fff;
}
.wrapper_text span{
  font-size: 20px;
  transform:  translateX(-100%);
  animation: movetoright 1s 1;
  display: block;
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  animation-delay: .5s;
  animation-fill-mode: forwards
}

section.loading img{
  max-width: 100px;
  margin: 0 auto 30px;
  display: block;
  opacity: 0;
  animation: movetofade 1s ease-out 1;
  animation-delay: 1.5s;
  animation-fill-mode: forwards
}

@keyframes movetoright {
from {
  transform: translateX(-100%);
  opacity: 0;
}
to {
  transform:  translateX(0);
  opacity: 1;
}
}
@keyframes movetodown {
  from {
    transform: translateY(-40px);
  }
  to {
    transform: translateY(0);
  }
  }
  @keyframes movetofade {
    from {
    opacity: 0;;
    }
    to {
      opacity: 1;
    }
    }

/**/
.circle{
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%) rotate(-90deg);
}
.circle circle {
  stroke-dasharray: 565.48; /* 円周の長さ */
  stroke-dashoffset: 565.48; /* 初期状態で円全体を隠す */
  animation: drawCircle 3s forwards;
  animation-delay: 2s;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0; /* 円を完全に描く */
  }
}

@media screen and (max-width: 768px) {
  
  section.loading img{
    max-width: 50px;
  }
  }