/* top.css */
/* ---- Sections ---- */
section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: auto;
}
.text-center {
  text-align: center;
}

/* ---- Hero ---- */
/* オーバーレイ用の色・透明度を変えやすくする変数 */

:root {
  --hero-overlay-color: rgba(0, 0, 0, 0.1);
}

#hero {
  color: #fff;
  position: relative;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* ■ parallax 初期位置を変数で制御 ■ */
  --init-pos-y: 50%; /* 中画面時の初期位置 */
  /* デフォルト値 0px を与えると、JS 未読み込み時でもズレない */
  --scroll-y: 0px;
  background-image: url("../img/hero1.webp");
  background-size: cover;
  background-position: center calc(var(--init-pos-y) + var(--scroll-y));
}
/* 擬似要素でオーバーレイを追加 */
#hero::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; と同義 */
  background-color: var(--hero-overlay-color);
  pointer-events: none;
  z-index: 1;
}

/* テキスト・ボタンをオーバーレイの上に出す */
#hero .hero-title,
#hero .hero-subtitle,
#hero .hero-btn {
  position: relative;
  z-index: 2;
}
/* ---- Hero メディアクエリで初期位置を微調整 ---- */
/* 大きい画面で背景を少し上寄せ */
@media (min-width: 1200px) {
  #hero {
    --init-pos-y: 40%;
  }
}
/* 小さい画面で背景を下寄せ */
@media (max-width: 768px) {
  #hero {
    --init-pos-y: 60%;
  }
}
/* さらに小さい画面で微調整 */
@media (max-width: 425px) {
  #hero {
    --init-pos-y: 70%;
  }
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
#hero p {
  font-size: 1.25rem;
  font-weight: 600;
  max-width: 700px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background: #e06126;
  color: #fff;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease;
}
.hero-btn:hover {
  background: #e05414;
}

.section-banner--business {
  background-image: url("../img/para1.webp");
}

@media screen and (max-width: 991px) {
  .section-banner {
    background-size: 150%;
    background-position: bottom;
  }
  .section-banner--business {
    background-image: url("../img/para1.webp");
  }
}

@media screen and (max-width: 768px) {
  .section-banner {
    background-size: 175%;
    background-position: bottom;
  }
  .section-banner--business {
    background-image: url("../img/para1.webp");
  }
}

@media screen and (max-width: 425px) {
  .section-banner {
    background-size: 280%;
    background-position: bottom;
  }
  .section-banner--business {
    background-image: url("../img/para1.webp");
  }
}

/* もし parallax 内に文字や要素があるなら前面に出す */
.parallax > :not(.parallax__bg) {
  position: relative;
  z-index: 2;
}

/* ---- Simple list styling for services ---- */

/* カードコンテナ */
.services-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
}
@media screen and (max-width: 768px) {
  .services-container {
    flex-direction: column;
  }
}

/* カードのベース */
.card-wrap {
  width: 33%;
}
@media screen and (max-width: 768px) {
  .card-wrap {
    width: 100%;
  }
}
.service-card {
  height: 100%;
  text-align: center;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

/* カードホバーで浮き上がる */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* アイコン */
.service-card .card-icon i {
  color: #e06126;
  font-size: calc(1.375rem + 1.5vw);
}

/* タイトル */
.service-card .card-title {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* 説明文 */
.service-card .card-text {
  color: #666;
  font-size: 0.95rem;
}

/* カード内リンクの余白調整 */
.service-card .card-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* レスポンシブ：テキスト揃え */
@media (max-width: 576px) {
  .service-card .card-body {
    padding: 1.5rem 1rem;
  }
}
