/* =============================================================
TOP-メインビジュアル
=============================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background: #050b14;
  isolation: isolate;
}
/* レイヤー */
.hero-bg, .hero-grad, .hero-inner {
  position: absolute;
  inset: 0;
}
/* =================================================
背景
================================================= */
.hero-bg {
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0;
  transform: scale(1.08);
}
/* 背景アニメーション */
.hero.is-animated .hero-bg img {
  animation: heroBgFadeZoom 2.2s ease forwards;
}
@keyframes heroBgFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* =================================================
白グラデーション
================================================= */
.hero-grad {
  z-index: 2;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96)0%, rgba(255, 255, 255, 0.88)20%, rgba(255, 255, 255, 0.72)36%, rgba(255, 255, 255, 0.46)52%, rgba(255, 255, 255, 0.18)66%, rgba(255, 255, 255, 0)78%);
}
.hero.is-animated .hero-grad {
  animation: heroGradFade 1.2s ease forwards;
  animation-delay: 1.1s;
}
@keyframes heroGradFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* =================================================
前景
================================================= */
.hero-inner {
  z-index: 3;
  width: min(1350px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 150px;
}
/* コピー */
.hero-copy {
  width: min(48%, 560px);
  opacity: 0;
  transform: translateY(24px);
  margin-left: 50px;
}
.hero-copy img {
  max-width: 100%;
  display: block;
}
.hero.is-animated .hero-copy {
  animation: heroContentFadeUp 1s ease forwards;
  animation-delay: 2s;
}
/* シーサー */
.hero-shisa {
  width: min(60%, 950px);
  text-align: right;
  opacity: 0;
  transform: translateY(-30px) scale(.96);
  margin-top: 30%;
}
.hero-shisa img {
  max-width: 135%;
  height: auto;
  display: inline-block;
}
.hero.is-animated .hero-shisa {
  animation: heroShisaFadeUp 1.1s ease forwards;
  animation-delay: 2.25s;
}
/* アニメ */
@keyframes heroContentFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroShisaFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* 浮遊 */
.hero.is-animated .hero-shisa img {
  animation: heroShisaFloat 6s ease-in-out 3.6s infinite;
}
@keyframes heroShisaFloat {
  0% {
    transform: translateY(0)
  }
  50% {
    transform: translateY(-3px)
  }
  100% {
    transform: translateY(0)
  }
}
/* =================================================
タブレット
================================================= */
@media (max-width:1280px) {
  .hero-inner {
    gap: 100px;
  }
  .hero-shisa {
    margin-top: 20%;
  }
}
@media (max-width:1100px) {
  .hero {
    min-height: 500px;
  }
  .hero-inner {
    width: min(1000px, calc(100% - 100px));
    gap: 50px;
  }
  .hero-copy {
    width: 50%;
    margin-left: 0%;
  }
  .hero-shisa {
    width: 70%;
    margin-top: 35%;
  }
}
@media (max-width:900px) {
  .hero {
    min-height: 450px;
  }
  .hero-inner {
	width: min(1000px, calc(100% - 50px));  
    gap: 20px;
  }
  .hero-shisa {
    width: 60%;
    margin-top: 30%;
  }
  .hero-copy {
    width: 40%;
    margin-left: 0%;
  }
}
/* =================================================
スマホ完全切替
================================================= */
@media (max-width:750px) {
  .hero {
    min-height: 650px;
  }
  /* 背景 */
  .hero-bg img {
    content: url("../img/top-hero/hero-sp.png");
    width: 100vw;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 1;
    transform: none;
    animation: none;
  }
  /* グラデーション無し */
  .hero-grad {
    display: none;
  }
  /* hero-innerを表示 */
  .hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding-top: 20px;
  }
  /* コピー表示 */
  .hero-copy {
    width: 100%;
    max-width: 390px;
    padding: 0 1%;
    opacity: 0;
    transform: translateY(16px);
  }
  .hero-copy img {
    content: url("../img/top-hero/hero-sp-copy.png");
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    padding: 0;
  }
  /* スマホ用の出現アニメーションを明示的に指定 */
  .hero.is-animated .hero-copy {
    animation: heroSpCopyFadeUp .9s ease forwards;
    animation-delay: .8s;
  }
  @keyframes heroSpCopyFadeUp {
    0% {
      opacity: 0;
      transform: translateY(16px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* シーサーはスマホでは消す */
  .hero-shisa {
    display: none;
  }
}
/* =================================================
小スマホ
================================================= */
@media (max-width:600px) {
  .hero {
    min-height: 600px;
  }
}
@media (max-width:530px) {
  .hero {
    min-height: 570px;
  }
  .hero-copy {
    padding: 0 3%;
  }
}
@media (max-width:450px) {
  .hero {
    min-height: 500px;
  }
}
@media (max-width:395px) {
  .hero {
    min-height: 450px;
  }
  .hero-copy {
    padding: 0 10%;
  }
}
/* =================================================
モーション削減
================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .hero-grad, .hero-copy, .hero-shisa, .hero-shisa img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ================================================================================================== */
/* ================================
hero下slider
================================ */
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.slider-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scrollSlide 28s linear infinite;
}
/* 画像サイズを固定寄りにする */
.slider-track img {
  width: 330px;
  height: 240px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}
/* タブレット */
@media (max-width: 1024px) {
  .slider-track img {
    width: 260px;
    height: 190px;
  }
}
/* スマホ */
@media (max-width: 750px) {
  .slider-track img {
    width: 160px;
    height: 105px;
  }
}
/* 2セット並んでいる前提で、ちょうど半分まで送る */
@keyframes scrollSlide {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
/* ホバーで少し止めたい場合は任意
.slider:hover .slider-track {
  animation-play-state: paused;
}
*/
