/* =====================================================
   TOP ページ専用スタイル
   public/assets/css/page/top.css
   ===================================================== */

/* ─────────────────────────────────────────────────────
   01-Mv.astro — MV（メインビジュアル）セクション
───────────────────────────────────────────────────── */
.mv {
  position: relative;
  background-color: #fff;
  height: calc(100svh - 64px);
  overflow: hidden;
}

@media (min-width: 768px) {
  .mv {
    height: calc(100svh - 112px);
  }
}

/* 背景画像 共通
   Astro <Image> が width/height 属性を付与するため
   CSS で明示的に上書きしないと bottom/right 指定が効かない */
.mv__bg {
  position: absolute;
  object-fit: cover;
  display: block;
}

/* SP 背景画像 */
.mv__bg--sp {
  top: 0;
  left: 8.2%;
  width: calc(100% - 1.5rem);
  height: calc(100% - 30px);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

@media (min-width: 768px) {
  .mv__bg--sp {
    display: none;
  }
}

/* PC 背景画像 */
.mv__bg--pc {
  display: none;
}

@media (min-width: 768px) {
  .mv__bg--pc {
    display: block;
    top: 0;
    left: 8.8%;
    width: calc(100% - 8.8%);
    height: calc(100% - 80px);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }
}

/* タイトル画像 */
.mv__ttl {
  position: absolute;
  z-index: 10;
  left: 4%;
  top: 4%;
  width: 72vw;
}

@media (min-width: 768px) {
  .mv__ttl {
    left: 6.6%;
    top: 7%;
    width: 38%;
    max-width: 480px;
  }
}

#mv-ttl {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease 0.4s,
    transform 0.8s ease 0.4s;
}

#mv-ttl.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll インジケーター */
.mv__scroll {
  position: absolute;
  left: 4px;
  bottom: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1.5rem;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .mv__scroll {
    left: 28px;
    bottom: 2.6rem;
  }
}

.mv__scroll span {
  font-family: var(--font-helvetica, sans-serif);
  letter-spacing: 0.02em;
  color: #2ca34f;
}

.mv__scroll-line {
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, #2ca34f, #a8e209);
  animation: mv-scroll-line 2s infinite;
}

/* 上から伸びて → 下から縮む、を繰り返す */
@keyframes mv-scroll-line {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }
  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }
  51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }
  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

/* ─────────────────────────────────────────────────────
   03-Business.astro — 業務内容セクション
   リンクありカードのホバー演出
───────────────────────────────────────────────────── */
.card-link {
  transition: opacity 0.3s ease;
}

.card-link:hover {
  opacity: 0.7;
}

/* ─────────────────────────────────────────────────────
   09-Sustainability.astro — 社会貢献活動セクション
   パララックス背景（clip-path 方式）
───────────────────────────────────────────────────── */
.sustainability {
  position: relative;
  min-height: 688px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sustainability__clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0);
}

.sustainability__fixed {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.sustainability__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .sustainability {
    min-height: 798px;
  }
}
