@charset "utf-8";

/* ========================================
   scroll reveal target　
======================================== */
.fadein.amin1 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadein.amin1.is-show {
  opacity: 1;
  transform: translateY(0);
}

.fadein.amin1.logo {
  transition:
    opacity 0.8s ease 1s,
    transform 0.8s ease 1s;
}


/* ========================================
   文字右から左
======================================== */
.animinner {
  display: inline-block;
}

.anim1.fadein.is-show .animinner {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  animation: title_text 1.2s forwards linear;
}

@-webkit-keyframes title_text {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes title_text {
  0% { width: 0%; }
  100% { width: 100%; }
}

@media (max-width: 768px) {
  .animinner {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
  }

  .anim1.fadein.is-show .animinner {
    overflow: hidden;
    position: relative;
    z-index: 100;
    clip-path: inset(0 100% 0 0);
    animation: title_clip 1.2s linear forwards;
  }

  @keyframes title_clip {
    to { clip-path: inset(0 0 0 0); }
  }
}


/* ========================================
   要素 左から右
======================================== */
.sliderightin {
  opacity: 0;
}

.sliderightin.is-show {
  animation: slideRightIn 2s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes slideRightIn {
  0% {
    opacity: 0;
    transform: translateX(80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ========================================
   要素 右から左
======================================== */
.slideleftin {
  opacity: 0;
}

.slideleftin.is-show {
  animation: slideLeftIn 2s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes slideLeftIn {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ========================================
   要素 ぼやけた画像から表示
======================================== */
.blur-in,
.blur-in2,
.blur-in3 {
  opacity: 0;
}

.blur-in3 {
  filter: blur(20px);
}

.blur-in.is-show {
  animation: blurFadeIn 1.2s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: 1.2s;
}

.blur-in2.is-show {
  animation: blurFadeIn2 1.7s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: 1.7s;
}

/* 左 */
.penimg2_left.blur-in3.is-show {
  animation:
    blurFadeIn 3.2s cubic-bezier(.22,1,.36,1) forwards,
    float 4s ease-in-out 1.2s infinite;
}

/* 右 */
.penimg2_right.blur-in3.is-show {
  animation:
    blurFadeIn 3.2s cubic-bezier(.22,1,.36,1) forwards,
    float 4s ease-in-out 2s infinite;
}

@keyframes blurFadeIn {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes blurFadeIn2 {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}


/* ========================================
   要素 見出し
======================================== */
.midashi_anim img {
  opacity: 0;
  transition:
    opacity 0.8s ease 0.5s,
    transform 0.8s ease 0.5s;
}

.midashi_anim.is-show img {
  opacity: 1;
  animation: blurFadeIn 1.2s forwards;
}

@media (max-width: 768px) {
  .midashi_anim img {
    opacity: 0;
    transition:
      opacity 0.8s ease 0.5s,
      transform 0.8s ease 0.5s;
  }
}


/* ========================================
   要素 クロスさせる
======================================== */
.pen2 {
  position: absolute;
  left: 50%;
  top: 0;
  opacity: 0;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
  filter: blur(20px);
}

.pen2.is-show-anim {
  width: 110px;
  opacity: 1;
}

/* 左右の初期位置を margin-left で持つ */
.pen2.left {
  margin-left: -360px;
}

.pen2.right {
  margin-left: 360px;
}

/* スペーサー */
.pen2-stage {
  position: relative;
  min-height: 580px;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.pen2-stage.is-fixed {
  opacity: 1;
}

.pen2-wrap {
  position: relative;
  height: 0;
  pointer-events: none;
  z-index: 0;
}

.pen2-stage.is-fixed .pen2-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/* ペン登場 */
.pen2.left.is-show-anim {
  animation: penBlurInLeft 1.1s cubic-bezier(.22,1,.36,1) forwards;
}

.pen2.right.is-show-anim {
  animation: penBlurInRight 1.1s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes penBlurInLeft {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes penBlurInRight {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
  }
}

/* ふわふわ */
.pen2.float-left {
  animation:
    penBlurInLeft 1.1s cubic-bezier(.22,1,.36,1) forwards,
    penFloatLeft 4s ease-in-out 1.1s infinite;
}

.pen2.float-right {
  animation:
    penBlurInRight 1.1s cubic-bezier(.22,1,.36,1) forwards,
    penFloatRight 4s ease-in-out 1.6s infinite;
}

@keyframes penFloatLeft {
  0%   { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50%  { transform: translateX(-50%) translateY(-14px) rotate(0deg); }
  100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
}

@keyframes penFloatRight {
  0%   { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50%  { transform: translateX(-50%) translateY(-14px) rotate(0deg); }
  100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
}

/* クロス発火 */
.pen2-stage.is-cross .pen2.left {
  margin-left: 0;
  animation:
    penCrossLeft 0.8s cubic-bezier(.22,1,.36,1) forwards,
    penFloatCrossLeft 4s ease-in-out 0.8s infinite;
}

.pen2-stage.is-cross .pen2.right {
  margin-left: 0;
  animation:
    penCrossRight 0.8s cubic-bezier(.22,1,.36,1) forwards,
    penFloatCrossRight 4s ease-in-out 1.2s infinite;
}

@keyframes penCrossLeft {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(-10px) rotate(45deg);
  }
}

@keyframes penCrossRight {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(-10px) rotate(-45deg);
  }
}

@keyframes penFloatCrossLeft {
  0%   { transform: translateX(-50%) translateY(-10px) rotate(45deg); }
  50%  { transform: translateX(-50%) translateY(-24px) rotate(45deg); }
  100% { transform: translateX(-50%) translateY(-10px) rotate(45deg); }
}

@keyframes penFloatCrossRight {
  0%   { transform: translateX(-50%) translateY(-10px) rotate(-45deg); }
  50%  { transform: translateX(-50%) translateY(-24px) rotate(-45deg); }
  100% { transform: translateX(-50%) translateY(-10px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pen2,
  .pen2-stage.is-cross .pen2 {
    animation: none !important;
    opacity: 1;
    filter: none;
  }
}

/* fixed開始演出 */
@keyframes focusIn {
  0%   { opacity: 0; filter: blur(20px); }
  100% { opacity: 1; filter: blur(0); }
}

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

.pen2-stage.is-fixed:not(.is-cross) .pen2.fix-in-left {
  animation:
    focusIn 0.7s cubic-bezier(.22,1,.36,1) forwards,
    penFloatLeft 4s ease-in-out 0.7s infinite !important;
}

.pen2-stage.is-fixed:not(.is-cross) .pen2.fix-in-right {
  animation:
    focusIn 0.7s cubic-bezier(.22,1,.36,1) forwards,
    penFloatRight 4s ease-in-out 1.2s infinite !important;
}

.pen2-stage.is-unfixing .pen2.unfix-left {
  animation: focusOut 0.6s cubic-bezier(.22,1,.36,1) forwards !important;
}

.pen2-stage.is-unfixing .pen2.unfix-right {
  animation: focusOut 0.6s cubic-bezier(.22,1,.36,1) forwards !important;
}

@media (max-width: 768px) {
  .pen2 {
    width: 65px;
  }

  .pen2.is-show-anim {
    width: 65px;
  }

  .pen2.left {
    margin-left: -170px;
  }

  .pen2.right {
    margin-left: 140px;
  }

  .pen2-wrap {
    top: 20%;
  }

  .pen2-stage {
    min-height: 380px;
  }

  .pen2-stage.is-fixed .pen2-wrap {
    position: absolute;
    top: -240px;
    left: 0;
    width: 100%;
  }

  .pen2-stage .pen2-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .pen2-stage.active_sp .pen2-wrap {
    position: fixed;
    top: 20px;
    opacity: 1;
    transform: translateY(0);
  }

  .pen2-stage.is-cross .pen2-wrap {
    position: relative;
    opacity: 1;
  }

  .pen2-stage.is-cross {
    position: relative;
    top: -210px;
    left: 0;
    right: 0;
  }
}


/* ========================================
   要素 文字バラバラ
======================================== */
.visual-title {
  --p: 0;
  --invp: 1;
  position: relative;
  height: 50vh;
}

.visual-title .piece {
  position: absolute;
}

.visual-title .piece__inner {
  display: block;
  will-change: transform, opacity;
  transform:
    translate(
      calc(var(--sx, 0px) * var(--invp)),
      calc(var(--sy, 0px) * var(--invp))
    )
    rotate(calc(var(--sr, 0deg) * var(--invp)));
  opacity: calc(0.8 + (var(--p) * 0.2));
}
/*

.visual-title .piece__inner {
  display: block;
  will-change: transform, opacity;
  transform: translate(0, 0) rotate(0deg);
  opacity: 1;
}
*/

.visual-title img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .visual-title {
    height: 510px;
  }
}

.p-text1 { left: 109px; top: 0; width: 114px; }
.p-text2 { left: 129px; top: 100px; width: 68px; }
.p-text3 { left: 179px; top: 139px; width: 50px; }
.p-text4 { left: 148px; top: 179px; width: 63px; }
.p-text5 { left: 175px; top: 217px; width: 70px; }
.p-text6 { left: 47px; top: 134px; width: 79px; }
.p-text7 { left: 75px; top: 200px; width: 71px; }
.p-text8 { left: 105px; top: 266px; width: 65px; }
.p-text9 { left: 0; top: 332px; width: 281px; }

.p2-text1 { left: 105px; top: 0; width: 122px; }
.p2-text2 { left: 164px; top: 59px; width: 78px; }
.p2-text3 { left: 132px; top: 113px; width: 60px; }
.p2-text4 { left: 154px; top: 160px; width: 40px; }
.p2-text5 { left: 45px; top: 112px; width: 76px; }
.p2-text6 { left: 57px; top: 176px; width: 78px; }
.p2-text7 { left: 74px; top: 244px; width: 67px; }
.p2-text8 { left: 0; top: 314px; width: 281px; }

@media (max-width: 768px) {
  .p-text1 { left: 13%; top: 0%; width: 72%; }
  .p-text2 { left: 26%; top: 14%; width: 40%; }
  .p-text3 { left: 57%; top: 19%; width: 30%; }
  .p-text4 { left: 51%; top: 25%; width: 43%; }
  .p-text5 { left: 27%; top: 31%; width: 44%; }
  .p-text6 { left: 25%; top: 40%; width: 49%; }
  .p-text7 { left: 8%; top: 49%; width: 47%; }
  .p-text8 { left: 41%; top: 56%; width: 47%; }
  .p-text9 { left: 0%; top: 65%; width: 100%; }

  .p2-text1 { left: 15%; top: 0%; width: 74%; }
  .p2-text2 { left: 32%; top: 12%; width: 52%; }
  .p2-text3 { left: 14%; top: 22%; width: 42%; }
  .p2-text4 { left: 32%; top: 30%; width: 25%; }
  .p2-text5 { left: 24%; top: 37%; width: 51%; }
  .p2-text6 { left: 7%; top: 47%; width: 50%; }
  .p2-text7 { left: 35%; top: 57%; width: 43%; }
  .p2-text8 { left: 1%; top: 65%; width: 100%; }
}


/* ========================================
   要素 スクロールバー
======================================== */
.scroll-indicator {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-indicator.fadein.is-show {
  animation: blurFadeIn 1.2s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: 2s;
}

.scroll-indicator.fadein.is-hidden {
  animation: blurFadeIn 1.2s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: 1s;
}

.scroll-indicator__line {
  display: block;
  width: 1px;
  height: 50px;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
}

.scroll-indicator.is-line-anim .scroll-indicator__line {
  animation: scrollLineLoop 1.6s ease-in-out infinite;
}

@keyframes scrollLineLoop {
  0%   { transform: scaleY(0); opacity: 0; }
  10%  { opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator.is-line-anim .scroll-indicator__line {
    animation: none;
    transform: scaleY(1);
    opacity: 1;
  }
}

.scroll-indicator.is-hidden {
  animation: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

@media (min-width: 769px) {
  .scroll-indicator.is-hidden {
    transform: translateY(-40%) !important;
  }
}

@media (max-width: 768px) {
  .scroll-indicator.is-hidden {
    transform: translateY(10px) !important;
  }
}