/* ========== Reset / Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-size: 0;
  background: #fff;
}

img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

a:hover {
  opacity: .9;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

/* ========== Layout ========== */
.lp__wrapper {
  width: 100%;
  max-width: 750px;
  /* 上限は従来どおり */
  margin: 0 auto 160px;
  text-align: center;
  background: #fff;
}

/* ========== First View ========== */
.fv {
  position: relative;
  background: url(../images/FV-bk.png) center top / cover no-repeat;
}

h2 {
  width: 90%;
  margin: 0 auto;
  padding-top: 20px;
  /* SPで縮める（下の@media参照） */
}

/* Utility */
.w90 {
  width: 94%;
  margin: 0 auto;
}

.mt40 {
  margin-top: 40px;
}

/* ========== Buttons (Columns fixed) ========== */
/* ulは段ごとに幅を制御。Gridで「2列」「3列」を画面幅に関係なく維持 */
.btn_area {
  width: 100%;
  text-align: center;
}
@media (max-width: 650px) {
.btn_area {
    width: 96%;
    text-align: center;
    margin: 0 auto;
}
}

.btn_area .row {
  list-style: none;
  margin: 0 auto 20px;
  padding: 0;
  display: grid;
  gap: 20px;
}

/* 上段：2カラム（PC時350px相当×2になるよう最大幅を設定） */
.row-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  /* 350*2 + gap(20) = 720 */
}

/* 下段：3カラム（PC時225px相当×3になるよう最大幅を設定） */
.row-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 715px;
  /* 225*3 + gap(20*2) = 715 */
}

.btn_area li a {
  display: block;
  transition: transform .3s ease;
}

.btn_area li a:hover {
  transform: scale(1.05);
}

.btn_area img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

/* CTAボタン */
.btn__area {
  width: 80%;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* Map */
.map {
  margin: 40px auto;
}

/* ========== Sticky CTA (追従バナー) ========== */
.basic-page {
  position: relative;
}

.sp_contact {
  position: fixed;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 100%;
  max-width: 750px;
}

.sp_contact_bnr {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.sp_contact_bnr div {
  width: 50%;
}

/* ========== Page Top Button ========== */
.pagetop {
  position: fixed;
  right: 20px;
  bottom: 100px;
  /* 追従バナーと干渉しない高さ */
  z-index: 1000;
}

.pagetop a {
  display: block;
  width: 60px;
  height: 60px;
  transition: opacity .3s ease, transform .3s ease;
}

.pagetop a:hover {
  opacity: .8;
  transform: translateY(-5px);
}

/* ========== Responsive ========== */
/* 750px以下：背景の重要情報が左にある前提で左寄せ。安全余白も追加 */
@media (max-width: 750px) {
  .fv {
    background-position: left top;
  }

}

/* 650px以下：FVの余白縮小。追従バナーは全幅で固定 */
@media (max-width: 650px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  /* さらに圧縮 */
  .btn__area {
    width: 90%;
    margin: 30px auto 0;
    padding-bottom: 30px;
  }

  .sp_contact {
    left: 0;
    transform: none;
    max-width: 100%;
  }
}

/* 420px以下：FV余白を最小に、背景はさらに左寄せ */
@media (max-width: 420px) {
  .fv {
    background-position: left 0 top 0;
    padding-top: 20px;
  }

}