/* ============================================================
   レンタカー & 夏ドライブ ページ専用の追加デザイン
   （元の style.css はさわらず、このファイルで上書き・追加します）
   ============================================================ */

/* ===== ページ全体の背景：うすい青 ＋ 下まで続くカーブ道（ときどき車） ===== */
body {
  background-color: #E9F3FB;                 /* 全体のうすい青 */
  background-image: url("images/road-bg.svg");
  background-repeat: repeat-y;               /* 縦にくり返して、道が下まで続く */
  background-position: top center;
  background-size: 1100px auto;              /* 道の幅。画面が狭くても中央基準 */
  overflow-x: hidden;                        /* 余白アイコンで横スクロールが出ないように */
}

/* ===== 背景に散らす装飾アイコン（左右の余白に置く） ===== */
/* アイコンを「余白側」に置くため、各セクションを位置の基準にする */
.wrap .hero,
.wrap .section { position: relative; }
.decor {
  position: absolute;
  width: 96px; height: auto;
  opacity: 0.2;           /* さらにうっすら */
  pointer-events: none;   /* クリックのじゃまをしない */
  user-select: none;
  z-index: 0;
}
/* 余白が無くなる狭い画面（スマホ・タブレット）では隠す */
@media (max-width: 1280px) { .decor { display: none; } }

/* ===== リード文（中央寄せ・ゆったり） ===== */
.wrap .hero { padding: 46px 0 10px; }
.wrap .hero__lead {
  font-size: 16px; color: #3E4C63; line-height: 2.15;
  text-align: center;
  max-width: 620px; margin: 0 auto;
  word-break: keep-all;   /* 文節の途中で折り返さない（<wbr>の位置だけで改行） */
}

/* ===== 3ステップのナビ（リード文の下） ===== */
.steps {
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px;
  max-width: 640px; margin: 28px auto 4px;
}
.steps__item {
  flex: 1;
  display: block; text-decoration: none;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(7px) saturate(140%);
  -webkit-backdrop-filter: blur(7px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 14px 10px 13px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.steps__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(222, 27, 101, 0.14);
  border-color: rgba(222, 27, 101, 0.35);
  background: rgba(255, 235, 244, 0.6);
}
.steps__item:hover .steps__label { color: #de1b65; }
.steps__no {
  display: block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em;
  color: #de1b65; margin-bottom: 3px;
}
/* ゴール（楽しむ）：枠ではなく「バッジ＋やさしく光る」で誘導 */
.steps__item--goal {
  position: relative;
  animation: goal-glow 2.6s ease-in-out infinite;
}
.steps__item--goal::after {
  content: "";
  position: absolute; top: -6px; right: -6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #de1b65;
  box-shadow: 0 0 0 4px rgba(222, 27, 101, 0.18);
}
@keyframes goal-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(30, 58, 95, 0.05); }
  50%      { box-shadow: 0 6px 22px rgba(222, 27, 101, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .steps__item--goal { animation: none; }
}
.steps__label {
  display: block;
  font-size: 13.5px; font-weight: 800; color: #1E3A5F;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .steps { flex-wrap: wrap; gap: 8px; }
  .steps__item { flex: 1 1 28%; padding: 12px 6px 11px; }
  .steps__label { font-size: 13px; }
}

/* ナビから飛んだとき、固定ヘッダーに隠れない位置で止まる */
#step1, #step2, #step3, #step4, #step5 { scroll-margin-top: 64px; }

/* 強調語は、上品な黄色マーカーで統一 */
.hero__lead strong,
.card p strong {
  color: #16314F;
  background: linear-gradient(transparent 68%, rgba(244, 169, 0, 0.32) 68%);
  font-weight: 800;
}

/* ===== カード（枠組み）：すりガラス（背景の道路がぼんやり透ける） ===== */
.card {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 34px 36px;
  margin: 26px 0;
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
  counter-reset: topic;        /* 項目カードの番号（CHECK 01〜）用 */
}
.card > .section__title { margin-top: 0; }
.card > p:last-child,
.card > .tip:last-child,
.card > .photo-ph:last-child { margin-bottom: 0; }
.card p { color: #4A5568; }

/* セクション見出しの上の英字ラベル */
.card__eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.24em;
  color: #de1b65;
  margin: 0 0 6px;
}
/* セクション見出し：ネイビーに統一（テンプレのオレンジ下線をやめる） */
.card .section__title {
  display: block;
  font-size: clamp(21px, 4vw, 26px);
  color: #1E3A5F;
  line-height: 1.45;
  border-bottom: none; padding-bottom: 0;
  margin-bottom: 14px;
}
/* 見出しの下の短いアクセントバー */
.card .section__title::after {
  content: ""; display: block;
  width: 36px; height: 4px; border-radius: 2px;
  background: #de1b65;
  margin-top: 10px;
}

/* 公式サイトへのリンク：ピル型の控えめボタンに */
.cta-row {
  margin: 20px 0 24px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 600px) {
  .cta-row { flex-direction: column; }
  .cta-link { text-align: center; }
}
.cta-link {
  display: inline-block;
  font-size: 14.5px; font-weight: 700; color: #1E3A5F;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid #C9D8E6;
  border-radius: 999px;
  padding: 12px 28px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.cta-link:hover {
  background: #1E3A5F; border-color: #1E3A5F; color: #fff;
  transform: translateY(-1px);
}
/* リンク先が未定のボタン：ホバーは効くがクリックでは飛ばない */
.cta-link--disabled { pointer-events: auto; cursor: default; }
.cta-link--disabled:hover { transform: none; }

/* カード内に入れる画像（角丸・余白を他と統一） */
.card-figure { margin: 22px 0 0; }
.card-figure__cap {
  font-size: 13.5px; font-weight: 700; color: #1E3A5F;
  text-align: left; margin: 0 0 8px;
}
.card-figure img {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  border: 1px solid #E7EEF5;
}

/* コツのボックス：白基調 */
.card .tip {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #E7EEF5;
  border-radius: 14px;
  padding: 20px 24px;
}
.card .tip__title { color: #2C6A9E; }

/* ===== 注意の各項目カード（左端に正方形の画像） ===== */
.topic {
  display: flex;
  align-items: stretch;
  min-height: 124px;            /* 左の画像を正方形に保つための高さの目安 */
  background: #fff;
  border: 1px solid #E9F0F7;
  border-radius: 16px;
  margin: 16px 0;
  overflow: hidden;            /* 左画像の角を枠に合わせて丸く切る */
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.topic:last-child { margin-bottom: 0; }
/* マウスを乗せるとふわっと持ち上がる（PCのみ） */
@media (hover: hover) {
  .topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(30, 58, 95, 0.10);
  }
}
/* 左端にピッタリくっついた正方形の画像エリア */
.topic__icon {
  flex-shrink: 0;
  width: 124px;                /* 正方形の一辺。高さ(min-height)と合わせています */
  align-self: stretch;
  background: #E4EFF8;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.topic__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topic__body { flex: 1; min-width: 0; padding: 18px 24px 20px; }
/* タイトルの上の小さな番号ラベル（CHECK 01〜は自動で振られます） */
.topic .topic__title::before {
  counter-increment: topic;
  content: "CHECK " counter(topic, decimal-leading-zero);
  display: block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.22em;
  color: #de1b65;
  margin-bottom: 5px;
}
/* .section p より優先させるため .topic を前に付けて指定 */
.topic .topic__title {
  font-size: 18px; font-weight: 900; color: #1E3A5F; /* ネイビー */
  line-height: 1.5; letter-spacing: 0.01em;
  margin: 0 0 8px;
}
.topic__body p { margin: 0; font-size: 14.5px; color: #4A5568; line-height: 1.9; }
.topic__body .list { margin: 12px 0 0; }

/* ===== スマホ：項目カードは写真を全面に敷き、文字を重ねる ===== */
@media (max-width: 600px) {
  .card { padding: 26px 20px; }
  .wrap .hero__lead { text-align: left; font-size: 15px; }

  .topic { display: block; position: relative; min-height: 0; }
  /* 写真をカード全面に */
  .topic__icon {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
  }
  /* 文字エリア：上詰め。上が濃く、下にいくほど写真が見えるネイビーのグラデ */
  .topic__body {
    position: relative; z-index: 1;
    padding: 18px 18px 104px;
    background: linear-gradient(180deg,
      rgba(13, 27, 48, 0.88) 0%,
      rgba(13, 27, 48, 0.52) 60%,
      rgba(13, 27, 48, 0.06) 100%);
  }
  .topic .topic__title::before { color: #FF9EC6; }   /* CHECK 01 は明るいピンク */
  .topic .topic__title {
    color: #fff; font-size: 17px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  }
  .topic__body p {
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  }
  /* 強調語：白文字＋黄色マーカーのまま読めるように */
  .topic__body p strong {
    color: #fff;
    background: linear-gradient(transparent 68%, rgba(244, 169, 0, 0.55) 68%);
  }
}

/* ===== 車内トーク 話題ルーレット（優しいピンク基調のすりガラス） ===== */
.roulette {
  background-color: rgba(165, 203, 235, 0.55);   /* ブルーのすりガラス（少し濃いめ） */
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(40, 90, 150, 0.10);
}

.roulette__window {
  position: relative;
  height: 168px;               /* 1コマ56px × 3コマ */
  max-width: 460px;
  margin: 26px auto 0;
  overflow: hidden;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1.5px solid #C8DCED;   /* ブルー基調に合わせた枠 */
  box-shadow:
    inset 0 2px 6px rgba(56, 72, 96, 0.07),
    0 3px 10px rgba(30, 58, 95, 0.06);
}
/* 上下のフェード（窓の中だけを白くぼかす。maskだと枠ごと消えるので重ねる方式に） */
.roulette__window::before,
.roulette__window::after {
  content: ""; position: absolute; left: 0; right: 0; height: 52px;
  z-index: 2; pointer-events: none;
}
.roulette__window::before { top: 0;    background: linear-gradient(180deg, #FFFFFF 12%, rgba(255,255,255,0)); }
.roulette__window::after  { bottom: 0; background: linear-gradient(0deg,   #FFFFFF 12%, rgba(255,255,255,0)); }

.roulette__reel {
  list-style: none; margin: 0; padding: 0;
  will-change: transform;      /* GPUでなめらかに */
}
.roulette__item {
  height: 56px; line-height: 56px; padding: 0 24px;
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif; /* 丸ゴシック */
  font-size: 17px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 話題の文字を、5色（貯める緑／増やす橙／稼ぐ赤／使う桃／守る青）で順番に */
.roulette__item:nth-child(5n+1) { color: #3E9A5A; } /* 緑 */
.roulette__item:nth-child(5n+2) { color: #D98A1E; } /* オレンジ */
.roulette__item:nth-child(5n+3) { color: #DB5B52; } /* 赤 */
.roulette__item:nth-child(5n+4) { color: #D45D8B; } /* ピンク */
.roulette__item:nth-child(5n)   { color: #4A8FCB; } /* 青 */

/* 真ん中の当たり枠（リベシティ・グリーン）＋左右の三角マーカー */
.roulette__center {
  position: absolute; left: 12px; right: 12px; top: 56px; height: 56px;
  z-index: 3;
  border-radius: 12px;
  border: 2.5px solid #478e21;
  background: rgba(71, 142, 33, 0.07);
  box-shadow: 0 0 0 4px rgba(71, 142, 33, 0.10);
  pointer-events: none;
}
.roulette__center::before,
.roulette__center::after {
  content: ""; position: absolute; top: 50%;
  border: 7px solid transparent;
  transform: translateY(-50%);
}
.roulette__center::before { left: -3px;  border-left-color: #478e21;  border-right: none; }
.roulette__center::after  { right: -3px; border-right-color: #478e21; border-left: none; }

.roulette__window.is-done .roulette__center { animation: roulette-pop 0.45s ease; }
@keyframes roulette-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ボタン：リベシティのオレンジ立体ボタン（白文字＋右に「›」、押すと沈む） */
.roulette__btn {
  display: block;
  margin: 24px auto 0;         /* カード内で中央に */
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  font-size: 18px; font-weight: 900; letter-spacing: 0.04em; color: #fff;
  background: #F2A03D;                  /* リベシティのオレンジ */
  border: none; border-radius: 9999px;  /* まる型ボタン */
  padding: 16px 64px; cursor: pointer;
  box-shadow:
    0 5px 0 #D9831F,                    /* 下のふち＝立体感 */
    0 10px 20px rgba(242, 160, 61, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}
.roulette__btn::after {
  content: "\203A";                     /* › */
  margin-left: 14px; font-weight: 700;
}
.roulette__btn:hover { filter: brightness(1.05); }
.roulette__btn:active {
  transform: translateY(4px);           /* 押すと沈む */
  box-shadow:
    0 1px 0 #D9831F,
    0 4px 10px rgba(242, 160, 61, 0.3);
}
.roulette__btn:disabled {
  opacity: 0.55; cursor: default; filter: none;
  transform: translateY(4px);
  box-shadow: 0 1px 0 #D9831F;
}

@media (max-width: 600px) {
  /* 窓をカードの余白いっぱいまで横に広げる */
  .roulette__window { max-width: none; margin-left: -6px; margin-right: -6px; }
  /* 文字サイズはそのまま、緑枠との左右スペースを確保 */
  .roulette__item { font-size: 15px; padding: 0 28px; }
  .roulette__center { left: 10px; right: 10px; }
}

/* ===== 動くトップ画面（ヒーロー） ===== */
.vhero {
  position: relative;
  /* 画面の高さいっぱい（上の固定ナビ56px分を引く） */
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* 写真の読み込み前に見えるつなぎの背景 */
  background: linear-gradient(160deg, #7CC4E8 0%, #A9D98C 55%, #6FB35C 100%);
}

/* 背景写真：ゆっくり「じわっと引く」ズーム（Ken Burns効果） */
.vhero__img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;   /* 画面いっぱいに、はみ出しはトリミング */
  z-index: 0;
  /* 少し寄った状態(1.12倍)から、ゆっくり等倍(1.0)へ引いていく動き。
     往復(alternate)させて、カクッと戻らないようにしています。 */
  transform: scale(1.12);
  /* 1回だけ引いて、終わったら等倍(1.0)のまま止める（forwards） */
  animation: vhero-zoom-out 7s ease-out forwards;
}
@keyframes vhero-zoom-out {
  from { transform: scale(1.12); }  /* 寄り */
  to   { transform: scale(1.0); }   /* 引き */
}

/* 開いた瞬間：真っ白から、じわっと全体が浮かび上がる演出
   （白い1枚を上にかぶせて、ゆっくり透明にしていく） */
.vhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 3;            /* 写真・文字よりさらに手前 */
  pointer-events: none;  /* 操作のじゃまをしない */
  animation: vhero-fade-from-white 1.6s ease-out forwards;
}
@keyframes vhero-fade-from-white {
  from { opacity: 1; }   /* 真っ白 */
  to   { opacity: 0; }   /* 写真が見えてくる */
}

/* 「動きは控えめがいい」という端末設定の人には、動かさず静止画にする配慮 */
@media (prefers-reduced-motion: reduce) {
  .vhero__img { animation: none; transform: scale(1.0); }
  .vhero::after { animation: none; opacity: 0; }
  .vhero__eyebrow,
  .vhero__l1, .vhero__l2, .vhero__l3, .vhero__l4 { animation: none; opacity: 1; transform: none; }
}

/* 文字を読みやすくする、うっすら暗いオーバーレイ
   （下にいくほど少し濃くして、写真に奥行きを出す） */
.vhero__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(10, 25, 45, 0.22) 0%,
    rgba(10, 25, 45, 0.30) 55%,
    rgba(10, 25, 45, 0.48) 100%);
  z-index: 1;
}

/* 動画が無いあいだだけ出る「動画が入ります」の案内（動画を入れたら消してOK） */
.vhero__placeholder {
  position: absolute;
  z-index: 1;
  bottom: 92px;
  font-size: 12px; font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px; border-radius: 999px;
}

/* タイトルなどの文字（動画の上に乗る） */
.vhero__inner {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #fff;
  text-align: left;            /* 左詰め */
  width: 100%; max-width: 720px;
  margin: 0 auto;
}
/* ラベル＋タイトル3行を、順番に下からふわっと出す */
.vhero__eyebrow,
.vhero__l1, .vhero__l2, .vhero__l3, .vhero__l4 {
  opacity: 0; /* 出てくる前は隠しておく */
  animation: vhero-rise 0.7s ease-out forwards;
}
.vhero__eyebrow { animation-delay: 0.7s; }
.vhero__l1 { animation-delay: 1.1s; }
.vhero__l2 { animation-delay: 1.5s; }
.vhero__l3 { animation-delay: 1.9s; }
.vhero__l4 { animation-delay: 2.3s; }
@keyframes vhero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vhero__eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em;
  background: rgba(255, 255, 255, 0.22);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.vhero__title {
  margin: 0; font-weight: 900;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px;
}
.vhero__l1, .vhero__l2, .vhero__l3, .vhero__l4 {
  line-height: 1.4;
  font-size: clamp(18px, 4.2vw, 28px);   /* 連結部（地の文）は少し小さめ */
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}
/* 「レンタカー」は大、「オフ会」は特大 */
.vhero__big  { font-size: clamp(27px, 6.4vw, 44px); font-weight: 900; }
.vhero__mark { font-size: clamp(48px, 12vw, 84px); font-weight: 900; margin: 0 0.16em; }
/* 大きい文字と地の文のあいだの小さなスペース */
.vhero__gap { display: inline-block; width: 0.22em; }

/* スマホ：左右余白を詰めて、4行が1行に収まるギリギリまで大きく（PCは変更なし） */
@media (max-width: 600px) {
  .vhero__inner { padding-left: 16px; padding-right: 16px; }
  .vhero__l1, .vhero__l2, .vhero__l3, .vhero__l4 { font-size: 17.5px; }
  .vhero__big  { font-size: 24px; }
  .vhero__mark { font-size: 50px; }
}
/* 「オフ会」だけにかかる、太いマーカー（「に」にはかからない） */
.vhero__mark { position: relative; display: inline-block; }
.vhero__mark::after {
  content: ""; position: absolute; z-index: -1;
  left: -0.06em; right: -0.06em;
  bottom: 0.02em; height: 0.32em;   /* 少しだけ上げる */
  background: #de1b65; border-radius: 3px;
}

/* 下の「↓ スクロール」案内 */
.vhero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  color: #fff;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  animation: vhero-bounce 1.8s ease-in-out infinite;
}
@keyframes vhero-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50%      { transform: translateY(7px); opacity: 0.5; }
}

/* ===== 注意ボックスを少し見やすく ===== */
.warn--big {
  border-left: 6px solid #E8793B;
}

/* ===== 書いた人カード・フッターをページの配色に合わせる ===== */
.author {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
}
.author__label { color: #8CA0B8; }
.author__name { color: #1E3A5F; }
.author__link { color: #de1b65; }
.footer { background: #1E2A40; color: #93A5BE; }
.footer a { color: #CFE0F2; }
