@charset "utf-8";
@media screen and (max-width: 768px) {
    .section02{
        padding-top: 0px;
    }
}

.main-wrap {
  position: relative;
  overflow: hidden;
}
.section02, .section03 {
  background: #EFEFEF;
}
.section01 {
  position: relative; /* ::before の基準 */
  min-height: 100vh;
  overflow: hidden;
  background: url("https://saikienkahonten.co.jp/system_panel/uploads/images/top1.jpg") center / cover no-repeat;
  padding: clamp(90px, 10vw, 140px) clamp(16px, 6vw, 90px);
  /* ★ flexで左右配置 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 7vw, 120px);
}
.section01 p, .section01 h2 {
  color: #fff;
}
/* 中身を暗幕より前へ */
.section01 > * {
  position: relative;
  z-index: 1;
}
/* DOM順が title→txt なので、orderで「左txt / 右title」にする */
.section01 .txtbox {
  order: 1;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  padding-top: calc(600px - 28vw);
}
.section01 .titlebox1 {
  order: 2;
  align-self: flex-start; /* 見本っぽく上寄り */
  margin-top: clamp(10px, 3vw, 50px);
}
/* 本文調整 */
.section01 .txtbox p {
  line-height: 2.2;
  letter-spacing: 0.08em;
}
/* View more */
.section01 .txtbox .more1 {
  justify-content: flex-start;
}
/* 1080px以下：間隔を詰める */
@media (max-width: 1080px) {
  .section01 {
    gap: clamp(24px, 5vw, 70px);
  }
  .section01 .txtbox {
    max-width: 520px;
  }
}
/* 768px以下：縦積み（タイトル→本文の順にしたいなら order 入れ替え） */
@media (max-width: 768px) {
  .section01 {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .section01 .titlebox1 {
    order: 1;
    margin-left: auto; /* 右寄せのまま */
    margin-top: 0;
  }
  .section01 .txtbox {
    order: 2;
    max-width: 100%;
    padding-top: 0;
  }
}
/* =========================
   section02 layout
   ========================= */
.section02 h2 {
  color: #222;
}
.section02 .boxwrap1 {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: clamp(20px, 6vw, 100px);
}
.section02 .boxwrap1 > .txtbox {
  width: 600px;
  margin-left: clamp(20px, 6vw, 100px);
  margin-right: auto;
}
.section02 .rightbox {
  flex: 1 1 auto;
  min-width: 0;
}
/* =========================
   left title + text
   ========================= */
.section02 .boxwrap1 > .txtbox > p {
  margin: 0;
  line-height: 2.2;
}
/* =========================
   right image
   ========================= */
.section02 .rightbox > .imgbox {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.section02 .rightbox > .imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* =========================
   right lower block (txtwrap)
   ========================= */
.txtwrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 20px;
}
/* 縦タイトル（右線） */
.txtwrap h3 {
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.3;
  letter-spacing: 0.18em;
  position: relative;
  padding-right: 9px; /* 線の分 */
}
.txtwrap h3::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: #caa24a;
}
/* 説明＋View more */
.txtwrap .txtbox {
  max-width: 420px;
}
.txtwrap .txtbox p {
  margin: 0;
  line-height: 2.1;
}
.txtwrap .txtbox .more1 {
  margin-top: 18px;
}
/* =========================
   responsive
   ========================= */
@media (max-width: 1080px) {
  .section02 .boxwrap1 > .txtbox {
    width: 48%;
  }
  .section02 .rightbox {
    width: 52%;
  }
}
@media (max-width: 768px) {
  .section02 .boxwrap1 {
    flex-direction: column;
  }
  .section02 .boxwrap1 > .txtbox, .section02 .rightbox {
    width: 100%;
  }
  .section02 .boxwrap1 > .txtbox {
    margin-left: 0;
    padding: 0 40px;
  }
.txtwrap {
    padding: 0 40px;}
  .section02 .rightbox .txtwrap {
    gap: 24px;
  }
  /* SPは縦タイトルを横に（※元コードの default_title1 指定を h3 に合わせて維持） */
  .section02 .rightbox h3.default_title1 {
    writing-mode: horizontal-tb;
    padding-left: 0;
    padding-top: 12px;
  }
  .section02 .rightbox h3.default_title1::before {
    width: 60px;
    height: 2px;
    left: 0;
    top: 0;
    right: auto; /* 念のため */
  }
}
.section03 {
  position: relative;
}
/* 左上アイコン */
.section03::before {
  content: "";
  position: absolute;
  top: -180px;
  left: clamp(10px, 4vw, 40px);
  width: clamp(200px, 18vw, 340px); /* ★大きめ */
  aspect-ratio: 249 / 256; /* ★比率保持 */
  background: url("https://saikienkahonten.co.jp/system_panel/uploads/images/icon1.svg") no-repeat center / contain;
  z-index: 0;
}
.section03 .boxwrap1 > .imgbox {
  position: relative;
}
.section03 .boxwrap1 > .imgbox::before, .section03 .boxwrap1 > .imgbox::after {
  content: "";
  position: absolute;
  width: clamp(200px, 18vw, 340px);
  aspect-ratio: 249 / 256;
  background: url("https://saikienkahonten.co.jp/system_panel/uploads/images/icon1.svg") no-repeat center / contain;
  opacity: 1;
  pointer-events: none;
  z-index: 2; /* ★画像の上に出す */
}
.section03 .boxwrap1 > .imgbox::before {
  top: -350px;
  right: -60px;
}
.section03 .boxwrap1 > .imgbox::after {
  bottom: -200px;
  left: -180px;
}
/* 横並び */
.recruit_wrap {
  color: #fff;
  position: relative;
}
.recruit_wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* ← 濃さ調整 */
  z-index: 1;
}
.recruit_wrap > * {
  position: relative;
  z-index: 2;
}
.newstop_b {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 6vw, 120px);
  width: 100%;
}
.newstop_b .titlebox {
  flex: 0 0 auto; /* ★縮まない */
}
.newstop_b .contents {
  flex: 1; /* ★残り幅を全部使う */
  min-width: 0; /* テキスト折り返し対策 */
}
.newstop_b webgene-blog {
  width: 100%;
}
.newstop_b .webgene-item .catelabel {
  margin: 0;
  font-size: 13px;
  padding: 2px 10px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0px;
  color: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.section07 h2, .section07 i {
  color: #fff;
}
.section07 .contents .webgene-blog {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-box;
  display: -webkit-flexbox;
  display: -moz-flexbox;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  -webkit-box-lines: multiple;
  -moz-box-lines: multiple;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: row;
  gap: 10px;
}
.section07 .contents .webgene-blog .webgene-item {
  width: calc(100% / 5 - 40px / 5);
}
.section07 .contents .webgene-blog .webgene-item a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.section07 .contents .webgene-blog .webgene-item a > div {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: ease 1.0s;
}
.section07 .contents .webgene-blog .webgene-item a:hover > div {
  transform: translate(-50%, -50%) scale(1.1);
}
@media screen and (max-width: 768px) {
  .section07 .contents .webgene-blog {
    gap: 6px;
  }
  .section07 .contents .webgene-blog .webgene-item {
    width: calc(100% / 5 - 24px / 5);
  }
}
/* ---------- 576px ~ ---------- */
@media screen and (max-width: 576px) {
  .section07 .contents .webgene-blog {
    gap: 8px;
  }
  .section07 .contents .webgene-blog .webgene-item {
    width: calc(100% / 2 - 8px / 2);
  }
  .section07 .titlebox .default_txt1 {
    font-size: 13px;
  }
}
.section08 {
  display: flex;
  gap: 40px;
  justify-content: center;
}
.section08 .txtbox {
  background: #111731; /* カード背景 */
  padding: 40px;
  width: 520px;
  color: #fff;
}
@media (max-width: 768px) {
  .section08 {
    flex-direction: column; /* 縦並び */
    align-items: center; /* 中央寄せ（任意） */
  }
  .section08 .txtbox {
    width: 100%; /* 横幅いっぱい */
    max-width: 520px; /* PCと同じ最大幅にしたい場合 */
  }
}
.fv {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
body.gjs-dashed .fv {
  height: auto;
}
/* overlay */
.fv::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.8) 100%);
}
body.gjs-dashed .fv::before, body.gjs-dashed .fv::after {
  display: none;
}
/* =========================================
   Swiper
   ========================================= */
.fv .swiper {
  z-index: 1;
  position: relative;
}
@keyframes zoomUp {
  0% {
    -ms-filter: blur(6px);
    filter: blur(6px);
    transform: scale(1);
  }
  30% {
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
  100% {
    transform: scale(1.15);
  }
}
body:not(.gjs-dashed) .fv .swiper-slide {
  width: 100% !important;
  height: 100vh;
}
body:not(.gjs-dashed) .fv .swiper-slide .swiper-img {
  width: 100% !important;
  height: 100vh;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.fv .swiper-slide-active .swiper-img, .fv .swiper-slide-duplicate-active .swiper-img, .fv .swiper-slide-prev .swiper-img {
  animation: zoomUp 10s linear 0s normal both;
}
body:not(.gjs-dashed) .fv .swiper-slide img {
  display: block !important;
  opacity: 0;
  height: auto;
  width: 100%;
}
/* =========================================
   Text
   ========================================= */
.fv .txtbox {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  width: min(900px, 92vw);
}
/* 編集モード（gjs）用 */
body.gjs-dashed .fv .txtbox {
  position: static;
  transform: none;
}
.fv .txtbox .imgbox {
  aspect-ratio: 270 / 327;
  width: clamp(160px, 22vw, 300px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fvlogo 1.2s cubic-bezier(.18, .9, .25, 1) forwards;
  animation-delay: 0.2s;
  will-change: transform, filter, opacity;
}
@keyframes fvlogo {
  0% {
    opacity: 0;
    transform: scale(0.4);
    filter: blur(18px) brightness(2.2);
  }
  55% {
    opacity: 1;
    transform: scale(1.12);
    filter: blur(2px) brightness(1.4);
  }
  75% {
    transform: scale(0.96);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}
.fv .txtbox .imgbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fv .txtbox .imgbox, .fv .txtbox h1, .fv .txtbox p {
  opacity: 0;
}
body.gjs-dashed .fv .txtbox .imgbox, body.gjs-dashed .fv .txtbox h1, body.gjs-dashed .fv .txtbox p {
  opacity: 1;
}
/* h1 */
.fv .txtbox h1 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: clamp(18px, 3.2vw, 42px);
  letter-spacing: 0.14em;
  font-weight: 500;
  animation-name: fvtxt1;
  animation-duration: 1.2s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 0.8s;
  color: #fff;
}
/* h1 lines */
.fv .txtbox h1::before, .fv .txtbox h1::after {
  content: "";
  width: clamp(20px, 10vw, 40px);
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}
/* p class別（※この後に .fv .txtbox p があるので最終的に上書きされる＝現状維持） */
.fv .txtbox .catch {
  font-size: clamp(16px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: 0.10em;
  line-height: 1.35;
  animation-name: fvtxt2;
  animation-duration: 1.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 1.2s;
  color: #fff;
}
.fv .txtbox .enline {
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.10em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  animation-name: fvtxt2;
  animation-duration: 1.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 1.8s;
}
/* p（最後に置く＝現状と同じく class別設定を上書きして最終結果を維持） */
.fv .txtbox p {
  animation-name: fvtxt2;
  animation-duration: 1.8s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  font-size: clamp(18px, 3.4vw, 36px);
  font-weight: 300;
  animation-delay: 1.4s;
  letter-spacing: 0.1rem;
}
/* =========================================
   Text Animations
   ========================================= */
@keyframes fvtxt1 {
  0% {
    opacity: 0;
    -ms-filter: blur(6px);
    filter: blur(6px);
    letter-spacing: -0.2rem;
  }
  100% {
    opacity: 1;
    -ms-filter: blur(0px);
    filter: blur(0px);
    letter-spacing: 0.1rem;
  }
}
@keyframes fvtxt2 {
  0% {
    opacity: 0;
    -ms-filter: blur(6px);
    filter: blur(6px);
    letter-spacing: -0.1rem;
  }
  100% {
    opacity: 1;
    -ms-filter: blur(0px);
    filter: blur(0px);
    letter-spacing: 0.1rem;
  }
}
/* ---------- IEのみ ---------- */
@media all and (-ms-high-contrast: none) {}
/* ---------- 1280px ~ ---------- */
@media screen and (max-width: 1280px) {}
/* ---------- 1080px ~ ---------- */
@media screen and (max-width: 1080px) {}
/* ---------- 768px ~ ---------- */
@media screen and (max-width: 768px) {}
/* ---------- 576px ~ ---------- */
@media screen and (max-width: 576px) {}
/* ---------- 350px ~ ---------- */
@media screen and (max-width: 350px) {}