@charset "utf-8";
/* CSS Document */

/*** ＯＰアニメーション
*********************************/
.JS_intro {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  background: url(../../img/recruit/op_bg.jpg) center center / cover no-repeat;
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 9999;
  animation: scaleDown 1.8s ease forwards;
  overflow: hidden;
}
.JS_intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../../img/recruit/op_op1.png) top center / cover no-repeat;
  opacity: 1;
  animation: fadeOut 1.2s ease 1.2s forwards;
  z-index: 1;
}
.JS_intro::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.2s forwards;
  z-index: 2;
}
@media (min-width: 960px) {
  .JS_intro::after {
    background: url(../../img/recruit/op_op2.png) top center / cover no-repeat;
  }
}
@media (max-width: 959px) {
  .JS_intro::after {
    background: url(../../img/recruit/op_op2.png) bottom left -145vw / auto 130vw no-repeat;
  }
}
.JS_intro.fadeout {
  animation: introFadeOut 1.0s ease forwards;
}

@keyframes scaleDown {
  from { transform: scale(1.1); }
  to { transform: scale(1.0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes introFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.JS_intro_ttl {
  color: #fff;
  overflow: hidden;
  transform: translate(-100%, 0);
  transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 6.5vw;
  font-weight: 700;
  margin: 0;
  z-index: 3;
  position: relative;
}
.JS_intro_ttl span {
  display: block;
  transform : translate(100%, 0);
  transition: transform cubic-bezier(0.215, 0.61, 0.355, 1) 0.6s;
}
.JS_intro_ttl.-visible,
.JS_intro_ttl.-visible span {
  transform: translate(0, 0);
}

.JS_starOverlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  opacity: 0;
  transform: translate(50px, -50px);
  transition: opacity 1.8s ease, transform 1.8s ease;
  pointer-events: none;
  will-change: opacity, transform, position, top;
}
@media (min-width: 960px) {
  .JS_starOverlay {
    background: url(../../img/recruit/op_star.png) top center / auto 770px no-repeat;
  }
}
@media (max-width: 959px) {
  .JS_starOverlay {
    background: url(../../img/recruit/op_star_s.png) top center / 100% auto no-repeat;
  }
}

.JS_starOverlay.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.JS_starOverlay.postIntro{
  position: absolute;
  z-index: 1;
  transform: none;
  opacity: 1;
}

.JS_star.inline {
  position: absolute;
  z-index: 2;
}
.JS_top_txt1,
.JS_top_txt2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.JS_top_txt1.visible,
.JS_top_txt2.visible {
  opacity: 1;
  transform: translateY(0);
}


/*** 流れる文字
*********************************/
:root{
  --accent: #E7E7E7;
  --stroke-color: #b1facd;
  --stroke-width: 1.5px;
  --tilt: -30deg; /* 角度 */
}
@media (min-width: 960px) {
  :root{
    --speed: 22s;         /* 流れる速さ（小さいほど速い） */
    --text-size: 150px;   /* 文字サイズ */
    --gap: 5vmax;         /* 単語間隔 */
    --row-line-gap: 130px;/* 2行の上下距離 */
  }
}
@media (max-width: 959px) {
  :root{
    --speed: 22s;         /* 流れる速さ（小さいほど速い） */
    --text-size: 100px;   /* 文字サイズ */
    --gap: 5vmax;         /* 単語間隔 */
    --row-line-gap: 90px;/* 2行の上下距離 */
  }
}
#JS_fontbg{
  position: relative;
  overflow: hidden;
  --overscanY: 20vh;/* スマホの上下バッファ。PCは後ろの@mediaで上書き */
  padding-top: var(--overscanY);
  padding-bottom: var(--overscanY);
  margin-top: calc(var(--overscanY) * -1);
  margin-bottom: calc(var(--overscanY) * -1);
}

@media (min-width: 960px){
  #JS_fontbg{ --overscanY: 15vh; }
}

#JS_fontbg .bgLayer{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  transform: rotate(var(--tilt));
  transform-origin: center center;
  will-change: transform;
  z-index:0;
}

/*recruit top用に対応*/
#RECRUIT.contents{
  z-index:1;
  left:0;
  top:0;
}
#RECRUIT #JS_fontbg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}
#RECRUIT #JS_fontbg .bgLayer{
  z-index:0;
}






#JS_fontbg .rowSet{
  position: absolute;
  left: -50vw;
  width: 200vw;
}
#JS_fontbg .lane{
  position: absolute;
  left: 0;
  display: flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
  animation: marquee var(--speed) linear infinite;
  animation-direction: reverse;
  transform: translate3d(0,0,0);
}
#JS_fontbg .lane.line1{ top: 0; }
#JS_fontbg .lane.line2{ top: var(--row-line-gap); animation-delay: calc(var(--speed) / -2); }
#JS_fontbg .lane span{
  font-weight: 900;
  font-size: var(--text-size);
  white-space: nowrap;
  line-height: 1;
  flex: 0 0 auto;
}
#JS_fontbg .lane.line1 span{
  color: var(--accent);
}
#JS_fontbg .lane.line2 span{
  color: transparent;
  -webkit-text-stroke: var(--stroke-width) var(--stroke-color);
}
@keyframes marquee{
  from{ transform: translateX(0%); }
  to  { transform: translateX(-50%); }
}


/*** 流れ星
*********************************/
#JS_starbg {
  position: fixed;
  top : 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
#JS_starbg .JS_star {
  position: absolute;
  width : 190px;
  height: 190px;
  opacity: 0;
  animation: floatStar 2.6s ease-in-out forwards;
}
@keyframes floatStar {
  0% {
    transform: translate(-20px, 20px) scale(0.9); /* 左下から */
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translate(20px, -20px) scale(1.4); /* 右上へ */
    opacity: 0;
  }
}

/*** ライトボックス
*********************************/
.JS_lightbox{
  padding:10px;
	background-color:#fff;
	border-radius:10px;
}
@media all and (min-width: 960px){
  .JS_lightbox{
    min-width:600px;
  }
}
@media all and (max-width: 959px) {
  .JS_lightbox{
    min-width:300px;
  }
}