/* =========================================
   FATHER'S DAY 2026 : Center-Aligned Layout
   ========================================= */
:root {
  --father-navy: #0a1629;
  --father-white: #ffffff;
  --taya-gold: #b2a173;
}

.father-theme {
  background-color: #f4f7f9; 
  color: #333;
  overflow-x: hidden; /* 横揺れ・はみ出し防止 */
}

/* --- 全要素を中央に配置する基本設定 --- */
.father-theme .block {
  text-align: center !important;
  max-width: 900px !important; 
  margin: 80px auto !important;
}

/* 最下部の関連コンテンツブロックの余計な下余白をカット（★余白対策） */
.father-theme .block.grid-2up {
  margin-bottom: 0 !important;
  padding-bottom: 40px; /* 必要最低限の下パディングのみ残す */
}

/* 段落（p）の中央揃えと余白 */
.father-theme p {
  text-align: center !important;
  max-width: 750px;
  margin: 0 auto 30px !important;
  line-height: 2.0;
  display: block;
}

/* 画像（picture / img）を確実に中央に置く */
.father-theme picture img {
  display: block !important;
  margin: 0 auto 40px !important; 
  max-width: 100%;
  height: auto;
}

/* --- メインビジュアル：文字の浮遊感と可読性向上（重複を統合） --- */
.father-theme .main-visual .caption {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -45%) !important; 
  z-index: 5 !important;
  text-align: center !important;
  width: 90% !important;
  opacity: 0;
  transition: opacity 2.5s ease, transform 2.5s ease;
  color: #fff !important;
}

.father-theme .main-visual.is-loaded .caption {
  opacity: 1;
  transform: translate(-50%, -50%) !important;
}

/* H1メイン：重厚感のあるシャドウ */
.father-theme .animate-title {
  font-size: 2.5rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.15em !important;
  color: #fff !important;
  line-height: 1.4 !important;
  margin: 0 0 10px 0 !important;
  text-shadow: 
    0 1px 2px rgba(0,0,0,0.8),
    0 4px 10px rgba(0,0,0,0.6),
    0 10px 30px rgba(0,0,0,0.5),
    0 20px 60px rgba(0,0,0,0.4),
    0 0 100px rgba(0,0,0,0.3) !important;
}

/* span（キーワード部分）：発光感と輪郭を両立 */
.father-theme .animate-title span {
  font-weight: 300 !important;
  font-size: 1.2rem !important; 
  letter-spacing: 0.4em !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-top: 30px !important;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif !important;
  text-shadow: 
    0 0 15px rgba(0,0,0,0.9),
    0 0 30px rgba(0,0,0,0.7),
    0 5px 20px rgba(0,0,0,0.5) !important;
  border-top: 1px solid rgba(241, 235, 235, 0.959) !important;
  display: inline-block !important;
  padding-top: 20px !important;
  background: none !important;
}

@media (max-width: 768px) {
  .father-theme .animate-title { font-size: 1.8rem !important; }
  .father-theme .animate-title span { 
    font-size: 0.8rem !important; 
    letter-spacing: 0.3em !important;
  }
}

/* 画像比率を固定（PC 36.6% / SP 168.3%） */
.father-theme .mv-slider {
  position: relative;
  width: 100%;
  height: 0 !important;
  padding-top: 36.6% !important; 
}

@media (max-width: 767px) {
  .father-theme .mv-slider { padding-top: 168.3% !important; }
}

.father-theme .mv-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 2.5s ease-in-out !important;
  z-index: 1;
}

.father-theme .mv-slide.active { opacity: 1; z-index: 2; }
.father-theme .mv-slide img { width: 100%; height: 100%; object-fit: cover; }
.father-theme .animate-text { font-size: 1.5rem !important; }

/* --- JavaScript生成ボタンの回り込み・余白対策（★重要） --- */
.father-theme .more-button {
  clear: both !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.father-theme .more-button[style*="display: none"] {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

/* =========================
   父の日キャンペーンBOX
========================= */
.cart-campaign-wrap,
.cart-campaign-wrap * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.cart-campaign-wrap {
  width: 100%;
  max-width: 900px;
  margin: 35px auto 45px;
  padding: 0 20px;
  box-sizing: border-box;
}

.cart-campaign {
  background: #fdfaf5;
  border: 2px solid #d8c8a8;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  box-sizing: border-box;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.campaign-title {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.campaign-period {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #b8860b;
  margin: 0 0 18px;
  line-height: 1.7;
}

.campaign-text {
  display: block;
  font-size: 14px;
  color: #444;
  margin: 0;
  line-height: 2;
}

.highlight {
  font-weight: bold;
  color: #333;
  padding: 0 4px;
  background: linear-gradient(transparent 70%, #eee8aa 70%);
}

.free-text {
  display: inline-block;
  color: #d9534f;
  font-size: 15px;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-left: 4px;
}

/* =========================
   スマホ
========================= */
@media screen and (max-width: 767px) {
  .cart-campaign-wrap {
    margin: 25px auto 35px;
    padding: 0 16px;
  }
  .cart-campaign {
    padding: 22px 16px;
    border-radius: 6px;
  }
  .campaign-title {
    font-size: 18px;
    line-height: 1.5;
  }
  .campaign-period {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .campaign-text {
    font-size: 15px;
    line-height: 1.9;
  }
  .free-text {
    font-size: 21px;
  }
}

/* =========================================
   メルカート：ヘッダーのレイアウトを壊さない最前面化
   ========================================= */
#header {
  z-index: 99999 !important;
}

/* 特集ページ（LP）全体を一歩奥に引っ込める（レイアウトに影響しない安全な方法） */
.father-theme {
  position: relative !important;
  z-index: 1 !important;
}