/* ======================================
   Index Page Styles
   kawaii / TOP only
   ====================================== */

/* ===== HERO ===== */
.hero{
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* 背景画像（PC / SP 切り替え） */
.hero__bg{
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/hero_anime_web.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay{
  position:absolute;
  inset:0;
  background:
    /* ほんの少しの体温（上から） */
    radial-gradient(1200px 700px at 35% 28%,
      rgba(232, 179, 198, 0.10),
      rgba(232, 179, 198, 0.00) 60%
    ),
    /* 既存の白膜（読みやすさ） */
    linear-gradient(
      to bottom,
      rgba(247,246,242,0.14) 0%,
      rgba(247,246,242,0.26) 52%,
      rgba(247,246,242,0.58) 100%
    );
}

/* 中身 */
.hero__inner{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-pc);
}

/* ロゴ＋コピーの塊 */
.hero__brand{
  max-width: 520px;
  display: grid;
  gap: 22px;
}

/* メインコピー */
.hero__headline{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-title {
  word-break: keep-all;
  line-break: strict;
}

/* サブコピー（説明しすぎない） */
.hero__sub{
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.75;
}

/* ===== スクロールサイン ===== */
.hero__scroll{
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  z-index: 1;
  opacity: 0.55;
}

.hero__scrollLine{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(31,31,31,0.35);
  overflow: hidden;
}

.hero__scrollLine::after{
  content:"";
  position:absolute;
  left:0;
  top:-40%;
  width:1px;
  height:40%;
  background: rgba(31,31,31,0.65);
  animation: scrollLine 1.6s ease-in-out infinite;
}

@keyframes scrollLine{
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(220%); opacity: 0; }
}

/* ===== PHILOSOPHY ===== */
.philo{
  padding: 64px 0 0;
  margin-bottom: 56px;
}

.philo__inner{
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-sp);
}

.philo__body{
  text-align: center;
}

.philo__body p{
  margin: 0 0 18px;
  line-height: 2;
}

.philo__body p:last-child{
  margin-bottom: 0;
}

/* ===== CTA ===== */
.index-cta{
  display: flex;
  justify-content: center;
  margin: 0 0 96px;
}

/* ===== Responsive (SP) ===== */
@media (max-width: 640px){

  .hero{
    min-height: 86vh;
  }

  .hero__bg{
    background-image: url("../img/hero_anime.jpg");
  }

  .hero__inner{
    padding: 0 var(--pad-sp);
  }

  .hero__brand{
    max-width: 88vw;
  }

  .hero__headline{
    font-size: clamp(26px, 7vw, 34px);
  }

  .hero__sub{
    font-size: 13px;
  }

  .philo{
    padding-top: 48px;
    margin-bottom: 44px;
  }

  .index-cta{
    margin-bottom: 72px;
  }
}

.nowrap{
  white-space: nowrap;
  display: inline-block;
}

/* ===== TOP: remove vertical scroll indicator ===== */
.hero__scroll{
  display: none !important;
}

/* ===== Sheep ===== */

.sheep-wrap{
  position: fixed;
  bottom: 0;
  left: 6vw;
  width: 160px;
  z-index: 10;
  pointer-events: auto;
}

.sheep{
  width: 100%;
  display: block;
  cursor: pointer;
  transition: transform .25s ease;
}

.sheep:active{
  transform: scale(.97);
}

/* 影のような段差 */

.sheep-step{
  position: absolute;
  bottom: -6px;
  left: -18px;
  width: 190px;
  height: 22px;
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
  filter: blur(4px);
  z-index: -1;
}

/* =========================
   Sheep + "shadow step"
   ========================= */

.sheep-corner{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  pointer-events: none; /* 反応はJSで img にだけ付けたいので基本OFF */
}

/* ひつじ自体は反応させるのでONに戻す */
.sheep-corner .sheep-img{
  width: 120px;               /* 好みで調整 */
  height: auto;
  display: block;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.10));
}

/* 段差の“影”だけで作る（2層） */
.sheep-step{
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 6px;  /* ひつじの接地に合わせて微調整 */
  height: 46px;
  border-radius: 999px;
  pointer-events: none;

  /* 2段の影：上面っぽい薄い影 + 下に落ちる影 */
  background:
    radial-gradient(80% 60% at 50% 35%,
      rgba(0,0,0,0.10) 0%,
      rgba(0,0,0,0.04) 45%,
      rgba(0,0,0,0.00) 70%),
    radial-gradient(85% 70% at 50% 75%,
      rgba(0,0,0,0.16) 0%,
      rgba(0,0,0,0.06) 55%,
      rgba(0,0,0,0.00) 78%);
  opacity: 0.55;
  transform: translateY(10px);
  filter: blur(0.2px);
}

/* SPは少し小さく＆余白調整 */
@media (max-width: 640px){
  .sheep-corner{
    right: 14px;
    bottom: 14px;
  }
  .sheep-corner .sheep-img{
    width: 96px;
  }
  .sheep-step{
    height: 40px;
    bottom: 4px;
    opacity: 0.50;
  }
}

.sheep-corner .sheep-img{
  cursor: pointer;
  transform-origin: 60% 85%;
}

@keyframes sheepWiggle{
  0%   { transform: translateY(0) rotate(0deg); }
  20%  { transform: translateY(-1px) rotate(-2deg); }
  50%  { transform: translateY(0) rotate(2deg); }
  80%  { transform: translateY(-1px) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.sheep-wiggle{
  animation: sheepWiggle 260ms ease-in-out;
}