/* =============================================
   style_v6.css — ヒーロー 背景画像フルスクリーン
============================================= */

/* ===========================
   グローバルタイポグラフィ
=========================== */

/* 本文：ゴシック体・読みやすさ優先 */
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: #333333;
}

p, li, a, td, th, span, label, input, textarea, button {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: #333333;
}

/* 見出し：明朝体・高級感 */
h1, h2, h3 {
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.06em;
  color: #222222;
}

/* PC：少し大きく */
@media (min-width: 769px) {
  body {
    font-size: 19px;
  }
}

/* ===========================
   ヒーロー 背景画像
=========================== */

/* ヒーロー全体の高さ設定 */
.hero {
  min-height: 100svh;
}

/* 背景画像レイヤー（PC：横向き） */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-pc.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* スマホ：縦向き画像に切り替え */
@media (max-width: 767px) {
  .hero-bg {
    background-image: url('images/hero-sp.png');
  }
}

/* ===========================
   ヒーロー内テキスト・UI を非表示
=========================== */
.hero-inner,
.hero-scroll,
.hero-overlay {
  display: none;
}

/* ===========================
   ヒーロー スクロール白幕
=========================== */
.hero-white-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #fff;
  transform-origin: bottom;
  z-index: 3;
  pointer-events: none;
}

/* ===========================
   お悩みカード（写真＋テキスト）
=========================== */

/* 2列グリッドに変更（横長カードに合わせる） */
.problem-grid {
  grid-template-columns: repeat(2, 1fr);
}

.problem-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  text-align: left;
  min-height: 130px;
}

.problem-card-img {
  width: 33.333%;
  height: 130px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.problem-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.problem-card-body p {
  text-align: center;
  font-size: 1.05rem;
  font-weight: bold;
  color: #222;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: 110px;
  }

  .problem-card-img {
    height: 110px;
  }
}

/* ===========================
   キャッチコピーセクション
=========================== */
.catchcopy {
  background: #fff;
  padding: 88px 0 80px;
  text-align: center;
}

.catchcopy-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #c9a96e;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  margin-bottom: 24px;
}

.catchcopy-label::before,
.catchcopy-label::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #c9a96e;
  margin: 0 12px;
  flex-shrink: 0;
}

.catchcopy-heading {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #2d1a0e;
  line-height: 1.55;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.catchcopy-desc {
  color: #5a3e2b;
  font-size: 1.05rem;
  line-height: 2.1;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .catchcopy {
    padding: 64px 0 60px;
  }

  .catchcopy-heading {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .catchcopy-desc {
    font-size: 0.97rem;
    padding: 0 8%;
  }
}

/* ===========================
   最後の一押し CTA
=========================== */
.final-cta {
  background: linear-gradient(135deg, #e8613a 0%, #f07040 60%, #f59060 100%);
  padding: 96px 0;
  text-align: center;
}

.final-cta-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.final-cta-heading {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 40px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.final-cta-btn {
  background: #fff;
  color: #e8613a;
  border: none;
  font-size: 1.15rem;
  font-weight: 900;
  padding: 20px 56px;
  min-height: 64px;
  border-radius: 50px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.final-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  color: #c94f2c;
}

@media (max-width: 768px) {
  .final-cta {
    padding: 72px 0;
  }

  .final-cta-btn {
    width: 100%;
    max-width: 320px;
    font-size: 1.05rem;
  }
}

/* ===========================
   ウェーブディバイダー
=========================== */


/* 安心サポート(#fdfaf5) → ご利用の流れ(#fff)
   flow 上端にクリーム色の2ウェーブを重ねる */
.flow {
  position: relative;
}

.flow::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 72px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72'><path d='M0,0 C240,60 480,8 720,55 C960,88 1200,16 1440,48 L1440,0 Z' fill='%23fdfaf5'/></svg>") no-repeat top / 100% 100%;
  pointer-events: none;
  z-index: 2;
}

/* ===========================
   料金プラン カード
=========================== */
.price-cards-row {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 20px;
  margin-top: 40px;
  align-items: center;
}

.price-cards-row-center {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}

.price-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border: 1.5px solid #f0e8e0;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 人気プラン：オレンジ系ハイライト */
.price-card-popular {
  background: linear-gradient(160deg, #fff8f4 0%, #fff2ea 100%);
  border-color: #e8613a;
  box-shadow: 0 4px 24px rgba(232, 97, 58, 0.15);
  padding-top: 44px;
}

.price-card-popular:hover {
  box-shadow: 0 10px 32px rgba(232, 97, 58, 0.28);
}

/* おすすめプラン：ブルー系ハイライト */
.price-card-recommend {
  background: linear-gradient(160deg, #f4f8ff 0%, #eaf2ff 100%);
  border-color: #5a9ef8;
  box-shadow: 0 4px 24px rgba(90, 158, 248, 0.15);
  padding-top: 44px;
}

.price-card-recommend:hover {
  box-shadow: 0 10px 32px rgba(90, 158, 248, 0.28);
}

/* バッジ */
.price-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #e8613a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

.price-card-badge-recommend {
  background: #5a9ef8;
}

/* カード内テキスト */
.price-card-type {
  font-size: 0.72rem;
  color: #a07858;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.price-card-plan {
  font-size: 1.15rem;
  font-weight: 900;
  color: #2d1a0e;
  margin-bottom: 4px;
}

.price-card-freq {
  font-size: 0.82rem;
  color: #7a5a47;
  margin-bottom: 20px;
  line-height: 1.6;
}

.price-card-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #e8613a;
  line-height: 1;
  margin-bottom: 8px;
}

.price-card-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: #a07858;
}

.price-card-per {
  font-size: 0.78rem;
  color: #a07858;
  margin-top: 4px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .price-cards-row {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .price-card-popular {
    order: -1;
  }
}

/* ===========================
   安心サポート カードグリッド
=========================== */
.support-card-v5 {
  background: #fff;
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card-v5:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===========================
   CTA pulse アニメーション
=========================== */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 140, 0, 0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(255, 140, 0, 0); }
  100% { box-shadow: 0 0 0 0   rgba(255, 140, 0, 0); }
}

.cta-btn {
  animation: pulse 2s infinite;
}

/* CTA ラッパー（セクション末尾） */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===========================
   フェードインアニメーション
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* カードは順番にずらして表示 */
.support-card-v5:nth-child(2) { transition-delay: 0.1s; }
.support-card-v5:nth-child(3) { transition-delay: 0.2s; }
.support-card-v5:nth-child(4) { transition-delay: 0.1s; }
.support-card-v5:nth-child(5) { transition-delay: 0.2s; }
.support-card-v5:nth-child(6) { transition-delay: 0.3s; }

.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }

.problem-card:nth-child(2) { transition-delay: 0.08s; }
.problem-card:nth-child(3) { transition-delay: 0.16s; }
.problem-card:nth-child(4) { transition-delay: 0.08s; }
.problem-card:nth-child(5) { transition-delay: 0.16s; }
.problem-card:nth-child(6) { transition-delay: 0.24s; }

/* モーション低減設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===========================
   スクロールインジケーター（右下固定）
=========================== */
.scroll-indicator {
  position: absolute;
  right: 20px;
  bottom: 100px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 1;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.scroll-indicator-hidden {
  opacity: 0;
}

.scroll-indicator-text {
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
}

.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.scroll-indicator-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  animation: scroll-bar-anim 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-bar-anim {
  0%   { transform: scaleY(0) translateY(0); opacity: 1; }
  60%  { transform: scaleY(1) translateY(0); opacity: 1; }
  100% { transform: scaleY(1) translateY(0); opacity: 0; }
}

.scroll-indicator-arrow {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  animation: scroll-arrow-anim 2s ease-in-out infinite;
}

@keyframes scroll-arrow-anim {
  0%, 30% { transform: translateY(-4px); opacity: 0; }
  70%      { transform: translateY(0);    opacity: 1; }
  100%     { transform: translateY(2px);  opacity: 0; }
}

/* ===========================
   ご利用の流れ
=========================== */
.flow-step p {
  text-align: center;
}

.flow-arrow {
  padding: 14px 0;
}
