/* =========================
   ペット用 ファーストビュー
========================= */

/* ヘッダー分の余白 */
.home .pet-fv {
  margin-top: 80px;
}

/* FV本体 */
.pet-fv {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
}

/* SP高さ */
@media (max-width: 768px) {
  .pet-fv {
    height: 480px;
  }
}

/* =========================
   スライド（背景画像）
========================= */
.pet-fv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}

/* 表示中スライド */
.pet-fv-slide.is-active {
  opacity: 1;
}

/* ★ 背景マスク（ここだけ数値調整） */
.pet-fv-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* ← 好きに調整 */
}

/* 背景画像 */
.pet-fv-slide:nth-child(1) {
  background: url("/wp-content/themes/ystandard-child/image/fv-pc-1.jpg") center / cover no-repeat;
}

.pet-fv-slide:nth-child(2) {
  background: url("/wp-content/themes/ystandard-child/image/fv-pc-2.jpg") center / cover no-repeat;
}

/* =========================
   中身（文字）
========================= */
.pet-fv-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  color: #fff;
  text-align: center;
}

/* キャッチ */
.pet-fv-catch {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* SP */
@media (max-width: 768px) {
  .pet-fv-catch {
    font-size: 24px;
  }
}

.pet-fv-sub {
  font-size: 18px;
  line-height: 1.7;
}

/* =========================
   ドット
========================= */
.pet-fv-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.pet-fv-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.pet-fv-dots .dot.is-active {
  background: #fff;
}


/* =========================
   FV内ヘッダー（修正版）
========================= */

.pet-fv-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  background: #fffef8;
}

.pet-fv-header-inner {
  max-width: 1480px;
  margin: 0 auto;

  /* 余白を「高さ固定」に寄せる */
  padding: 14px 5%;

  display: flex;
  align-items: center;

  /* 端に寄せすぎないための余白 */
  justify-content: space-between;
  gap: 16px;
}

/* ロゴ：縮みすぎ防止 */
.pet-fv-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.pet-fv-logo img {
  height: 63px;   /* PCの基準を少し控えめに */
  width: auto;
  display: block;
}

/* CTA：右側で自然に整列 */
.pet-fv-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ボタン：高さを揃える（位置ズレ防止） */
.pet-fv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 38px;        /* これが一番効く：縦位置が揃う */
  padding: 0 16px;

  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

/* ボタン色 */
.pet-fv-btn.is-estimate {
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd; /* 白ボタンが締まる */
}

.pet-fv-btn.is-contact {
  background: #ff6b3b;
  color: #fff;
}

/* hover */
.pet-fv-btn:hover {
  opacity: 0.85;
}

/* SP調整 */
@media (max-width: 768px) {
  .pet-fv-header-inner {
    padding: 10px 1.5%;
    gap: 10px;
  }

  .pet-fv-logo img {
	  height: 52px;
  }

  .pet-fv-cta {
    gap: 8px;
  }

  .pet-fv-btn {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
}
