@charset "utf-8";

/* ===============================
   ロード画面（他アニメに干渉しない・完全ブロック）
   =============================== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #F5F4F4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3rem;
  z-index: 10000;
  transition: opacity 0.8s ease;
  opacity: 1;
  pointer-events: all;
}

/* 非表示状態 */
#loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.gjs-dashed .loading{
  opacity: 1 !important;
  position: relative!important;
  visibility: visible !important;
}

.gjs-dashed .loading__logo {
  opacity:1 !important;
}

.fv {
  position: relative;
  padding-bottom: 3rem;
  margin-bottom: 3rem
}

.fv-back{
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

@media screen and (max-width: 960px) {
  .fv {
    position: relative;
    padding-bottom: 1rem;
    margin: 100px auto 2rem;
  }

  .fv-back{
    display: none;
  }
}

.load-slider{
  width: 400px!important;
  max-width: 400px!mportant;
  height: auto;
}

.swiper{
  width: 45%;
  max-width: 800px;
  margin: 0 0 1rem 5%;
}

.slider-thumbnail .swiper-slide {
  opacity: .5;
  transition: opacity .5s;
  width: calc(60% / 5)!important;
}

.slider-thumbnail .swiper-slide.swiper-slide-thumb-active {
  opacity: 1;
}
.swiper-slide .swiper-slide-inner{
  position: relative;
  width: 100%;
  height: auto; /* 自動高さにする */
}

.swiper-slide .swiper-slide-inner::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background-color: #F5F4F4;
  transition: 1s ease;
  opacity: .9;
}
.swiper-slide.swiper-slide-active .swiper-slide-inner::before {
  width: 0;
  opacity: 1;
}
.swiper-slide.swiper-slide-active .swiper-slide-inner::before {
  opacity: 0; /* サッとフェードアウト */
  transition: opacity 0.3s ease-out; /* 一瞬で消す */
}

.swiper-slide-inner img{
  width: 100%;       /* 横幅いっぱいに */
  height: auto;      /* 縦横比を保つ */
  object-fit: contain; /* 全体を表示、切り取りなし */
  display: block; 
}

.fv-item{
  position: absolute;
  top: 30%;
  right: 5%;
  text-align: right;
  letter-spacing: normal!important;
}

.fv-item h1{
  font-size: 2.5rem;
  font-weight: normal;
  text-align: right;
  margin-bottom: 1rem;
  animation-duration: 2s;
  animation-delay: 5s;
}

.fv-item-tw h1{
  animation-delay: 1s!important;
}

.fv-item-tw p{
  animation-delay: 2s!important;
}

.fv-item p{
  text-align: right;
  letter-spacing: normal!important;
  animation-duration: 2s;
  animation-delay: 8s;
}

.blur-animation {
  /* 初期状態でぼかしをかけたい場合 */
  opacity: 0;
  filter: blur(5px);
  animation: blurFadeIn 2s forwards; /* animate.cssのアニメーション時間と合わせる */
}

.fv-news{
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 40%;
}
.fv-news h2{
  position: relative;
  padding-left: 3rem;
  font-size: 1.25rem;
}
.fv-news h2:before{
  content: "";
  position: absolute;
  top: .375rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 5px solid #000;
  border-radius: 80px;
}

@keyframes blurFadeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
  }
}

@media screen and (max-width: 960px) {
  .load-slider{
    width: 300px!important;
    max-width: 300px!mportant;
    height: auto;
  }
  .swiper{
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    max-height: 340px;
  }
  .slider-thumbnail .swiper-slide {
    opacity: .5;
    transition: opacity .5s;
    width: calc(80% / 5)!important;
  }
  .fv-item{
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 2rem;
  }
  .fv-item h1{
    text-align: center;
    font-size: 2rem;
  }
  .fv-item p{
    text-align: center;
  }
  .fv-news{
    position: relative;
    bottom: auto;
    right: auto;
    width: 90%;
    margin: 2rem auto;
  }
}

/*====================
List Layout
====================*/
.news-main .webgene-blog { display:flex; flex-wrap:wrap; gap:2%; }
.news-main .webgene-blog article { width:100%; font-size:clamp(1.5rem, 0.659rem + 0.3vw, 2rem); }
.news-main .webgene-blog article > a { padding:10px 10px 1rem; display:flex; flex-direction:column; gap:1rem; }
.newsItemTit { font-size:1rem; font-weight:400; color:#000;}
.newsItemText { display:flex; align-items:baseline; margin:0.5rem 0; gap:0.5rem; font-size:clamp(0.75rem, 0.659vw + 0.3vw, 1rem); color:#707070; }
.newsItem-text { font-size:14px; font-weight:400; color:#707070; }
.newsItemCatewrap { display:flex; gap:1rem; }
.newsItemCate { line-height:1; font-size:clamp(0.75rem, 0.659rem + 0.3vw, 1rem); color:#707070!important; width:fit-content; }
.newsTextWrap { display:flex; flex-direction:column; gap:.25rem; border-bottom:1px solid #000; width:100%; padding-bottom:2rem; }
.newsItem{ position: relative; padding: .5rem 0; border-bottom: 1px solid #000000;}

/*====================
List Layout(blog)
====================*/
.blog-main .webgene-blog { display:flex; flex-wrap:wrap; gap:2%; }
.blog-main .webgene-blog article { width:30%; font-size:clamp(1.5rem, 0.659rem + 0.3vw, 2rem); }
.blog-main .webgene-blog article > a { padding:10px 10px 1.5rem; display:flex; flex-direction:column; gap:1rem; }
.blog-main .webgene-blog article > a:hover { background:#7070702e; }
#wgc-1764494031615{display:flex; gap:5%; width: 100%;}
.webgene-item-main-image{
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blogItem{
	width: 100%;
    max-width: 30%;
    display: block;
}

.blogItem:hover{
	opacity: .7;
}

.blog-btn{
  	padding: .25rem!important;
    width: 150px!important;
    margin: 2rem auto!important;
}

.blogItemTit { font-size:1rem; font-weight:400; color:#000; min-height: 40px}
.blogItemText { display:flex; align-items:baseline; margin:0.5rem 0; gap:0.5rem; font-size:clamp(0.75rem, 0.659vw + 0.3vw, 1rem); color:#707070; }
.blogItem-text { font-size:14px; font-weight:400; color:#707070; }
.blogItemCatewrap { display:flex; gap:1rem; }
.blogItemCate { line-height:1; font-size:clamp(0.75rem, 0.659rem + 0.3vw, 1rem); color:#707070!important; width:fit-content; }
.blogTextWrap { display:flex; flex-direction:column; gap:.25rem; border-bottom:1px solid #000; width:100%; padding-bottom:2rem; }


.newsItem:before{ 
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  right: 2rem;
  width: 1rem;
  height: 1rem;
  background-image: url("https://001japan.com/system_panel/uploads/images/20251130182916159316.png");
  background-size: cover;
  transition: all 1s;
}

.newsItem:hover:before{ 
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  background-image: url("https://001japan.com/system_panel/uploads/images/20251130182922280278.png");
  background-size: cover;
}

.blog{
  position: relative;
  margin: 5rem auto;
  width: 80%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.blog-content{
  margin-right: 2rem;
}

.blog-content h2{
  position: relative;
  padding-left: 3rem;
  margin-right: 2rem;
  font-size: 1.25rem;
}
.blog-content h2:before{
  content: "";
  position: absolute;
  top: .375rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 5px solid #000;
  border-radius: 80px;
}

.news{
  position: relative;
  margin: 5rem 0 5rem auto;
  width: 85%;
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: space-between;
}

.news img{
  max-width: 50%;
  height: auto;
}

.news-content{
  width: 40%;
}

.news-content h2{
  position: relative;
  padding-left: 3rem;
  font-size: 1.25rem;
}
.news-content h2:before{
  content: "";
  position: absolute;
  top: .375rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 5px solid #000;
  border-radius: 80px;
}


@media screen and (max-width: 960px) {
  .blog{
    position: relative;
    margin: 3rem auto;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .blog-main .webgene-blog article { width:100%; font-size:clamp(1.5rem, 0.659rem + 0.3vw, 2rem); }
.blog-main .webgene-blog article > a { padding:10px 10px 1.5rem; display:flex; flex-direction:column; gap:1rem; }
#wgc-1764494031615{display:flex; flex-direction: column;gap:2rem; width: 100%;}
  .blogItem{
	max-width: 100%;
    display: block;
}
  .news{
  position: relative;
  margin: 5rem auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.news img{
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
}

.news-content{
  width: 100%;
}

}


.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-slide-text {
  position: absolute;
  top: 15%;
  left: 10%;
  z-index: 1;
}

.hero-slide-text h2 {
  position: relative;
  padding-left: 3rem;
  font-size: 1.25rem;
}
.hero-slide-text h2:before{
  content: "";
  position: absolute;
  top: .375rem;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 5px solid #000;
  border-radius: 80px;
}

.hero-slide-text-desc {
  line-height: 2;
}

.hero-slide-text-desc::first-letter {
  font-size: 3rem;
  margin-right: .5rem;
}

.hero-btn{
  	padding: .25rem!important;
    width: 150px!important;
    margin: 2rem 0!important;
}

/* SP: 縦並びに変更 */
@media (max-width: 768px), (max-height: 700px) {
  .hero {
    height: auto; /* 高さ固定解除 */
  }

  .hero-slide {
    position: relative;
    height: auto; /* 画像縦幅に合わせる */
    opacity: 1;   /* 常に表示 */
    margin-bottom: 1rem;
  }

  .hero-slide-text {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    padding: 2rem 10%;
  }
}

.horizontal-scroll {
  position: relative;
  height: 100vh; /* 画面いっぱいの高さ */
  overflow: hidden;
    margin: 5rem 0 0;
}

.scroll-container {
  position: absolute;
  top: 50%;
  right: -100%; /* 画面外右に配置 */
  transform: translateY(-50%);
  display: flex;
}

.scroll-image {
  max-width: 200vw; /* 横長画像 */
  height: auto;
  min-height: 600px;
}

@media screen and (max-width: 960px) {
  .horizontal-scroll {
    display: none;
  }
}

.craft{
  width: 80%;
  margin: 0 auto 8rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.craft-text{
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.craft-img-wrap{
  width: 50%;
}

.craft-btn{
  padding: .25rem!important;
  width: 150px!important;
  margin: 2rem 0 2rem auto;
}

#wgc-1764509913156{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.blockCatch .webgene-item-main-image{
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.blockItem{
  position: relative;
}

.blockLink{
  position: relative;
  transition: all 1s;
}

.blockLink:hover .blockItemWrap{
  opacity: 1;
}

.blockItemWrap{
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background-color: #0000008e;
  transition: all 1s;
}

.blockItemWrap .newsItemText p{
  color: #FFF!important;
}

.blockItemWrap .blockLink-wrap h3{
  color: #FFF;
}

@media screen and (max-width: 960px) {
  .craft{
    width: 90%;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column-reverse;
  }
  .craft-img-wrap{
    width: 100%;
  }
  .craft-btn{
    padding: .25rem!important;
    width: 150px!important;
    margin: 2rem 0 2rem auto;
  }
  .blockLink{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
  }
  #wgc-1764509913156{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .blockItemWrap{
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: .5rem;
    background-color: #0000008e;
  }
}
