/* ===== 基本倍率（通常）===== */
html {
  font-size: 100%;
}



/* ===== デスクトップ大画面 (1920px以上) ===== */
@media screen and (min-width: 1920px) {
  html {
    font-size: 120%;
  }
}

/* ===== スマホ向け (幅768px未満) ===== */
@media screen and (max-width: 767.98px) {
  html {
    font-size: 70%;
  }

  #hero {
    height: 25vh !important;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

#hero {
  height: 45vh;
  position: relative;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: -1;
  transform: scale(1.2);
  transition: opacity 1s ease, transform 5s ease; /* transformの5秒を設定 */
}

.hero-img.active {
  opacity: 1;
  z-index: 0;
  transform: scale(1.2); /* 表示直後は等倍 */
}

.hero-img.active.shrink {
  transform: scale(1); /* 5秒かけて縮小 */
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.5s ease;
  z-index: 1;
}

.hero-content {
  z-index: 2;
  top: 50%;
  position: relative;
  transform: translateY(-50%);
}

.step-number {
  font-size: 1.5rem;
  font-weight: bold;
  background-color: #f0f0f0;
  color: #333;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  text-align: center;
  line-height: 2.5rem;
  flex-shrink: 0;
}

.fade-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-step.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline {
  position: relative;
  border-left: 4px solid #dee2e6;
  margin-left: 20px;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  height: 100%;
  width: 4px;
  background-color: #dee2e6;
}

/* ▼ 最後の矢印 */
.timeline::after {
  content: '';
  position: absolute;
  bottom: -10px; /* 少し下に突き出す */
  left: -6px;     /* 線と位置を揃える */
  border: 6px solid transparent;
  border-top: 10px solid #dee2e6; /* 矢印の色は線と同じ */
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-marker {
  position: absolute;
  left: -46px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #6c757d;
  color: white;
  text-align: center;
  line-height: 34px;
  font-weight: bold;
  font-size: 1.1rem;
}

.timeline-content {
  background-color: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.flow-img {
  width: 100%;
  height: 220px; /* お好みで調整（例：200～300px） */
  object-fit: cover;       /* はみ出しを許容して中央でトリミング */
  object-position: center; /* 常に中央表示 */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
