@charset "utf-8";

/* 設計メモ:
   - 素材PNGには影・光が焼き込み済み → 画像に drop-shadow は掛けない（自作UIのみ軽い影）
   - 背景はセクションを跨いで連続させる（A+B=劇場の赤、C=紅白ストライプ、D=赤+放射、E=空、J=劇場に回帰） */

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
body {
  background: #2b0304;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #fff;
  -webkit-text-size-adjust: 100%;
}

.sec { position: relative; }
.hero, .closing { overflow: hidden; }
body { overflow-x: hidden; }
.sec .inn { position: relative; max-width: 1000px; margin: 0 auto; }

/* ===== 共通 ===== */
.sparkles {
  position: absolute;
  inset: 0;
  background-image: url("../images/sparkle_a.png");
  background-size: 900px 900px;
  pointer-events: none;
  z-index: 3;
  animation: twinkle 2s ease-in-out infinite;
}
.sparkles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/sparkle_b.png");
  background-size: 900px 900px;
  background-position: 300px 400px;
  animation: twinkle 2.9s ease-in-out .9s infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
  70% { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .sparkles, .sparkles::after { animation: none; opacity: .95; }
}

.note { font-size: 11px; line-height: 1.7; color: #ffe3e3; padding: 14px 4% 26px; position: relative; z-index: 5; }

.anim { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.anim.in-view { opacity: 1; transform: translateY(0); }
.anim.d1 { transition-delay: .15s; }
.anim.d2 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .anim { opacity: 1; transform: none; transition: none; } }

/* ボタン（自作UIなので影あり） */
.btn-img {
  display: inline-block;
  position: relative;
  overflow: hidden;
  min-width: 300px;
  padding: 16px 34px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .35), inset 0 2px 6px rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: transform .15s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.btn-img::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 34%;
  height: 140%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.btn-img { box-shadow: 0 5px 12px rgba(0,0,0,.35), inset 0 2px 6px rgba(255,255,255,.5), 0 0 0 3px #e6b422; }
.btn-img:hover { transform: translateY(-2px); }
.btn-img span { font-size: .8em; }
.btn-green { background: linear-gradient(180deg, #7ed957 0%, #2e9e44 55%, #187a2f 100%); }
.btn-blue  { background: linear-gradient(180deg, #7adcf5 0%, #1f8fd0 55%, #0d6bb0 100%); }
.btn-red   { background: linear-gradient(180deg, #ff9a9a 0%, #e8384f 55%, #c11830 100%); }
.btn-row { text-align: center; padding: 8px 16px 30px; position: relative; z-index: 6; }

/* ===== A ヒーロー: ア7（紙束+幕+放射+ストライプ全部入り）を背景に敷く ===== */
.hero {
  background:
    url("../images/アセット 7.png") center top / 100% auto no-repeat,
    url("../images/stripe_tile.png") center top / 100% auto repeat-y;
}
.hero .inn { padding: 3% 0 6%; z-index: 5; }

.copy  { width: 31%; margin: 0 auto;      position: relative; z-index: 6; }
.title { width: 66%; margin: -1% auto 0;  position: relative; z-index: 7; }
.date  { width: 43%; margin: 2.5% auto 0; position: relative; z-index: 7; }

.hero-car {
  position: absolute;
  bottom: -2%;
  width: 34%;
  z-index: 8;
}
.hero-car-l { left: -4%; }
.hero-car-r { right: -4%; }

.bee { position: absolute; z-index: 8; }
.bee-a { width: 6%; top: 3%; left: 15%; animation: fuwa 3.2s ease-in-out infinite; }
.bee-b { width: 4.5%; top: 40%; right: 8%; animation: fuwa 2.6s ease-in-out .8s infinite; }
@keyframes fuwa {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(5deg); }
}

/* ヒーロー裾のストライプはア7に含まれるため非表示 */
.hero .stripe { display: none; }
.stripe {
  position: relative;
  height: 84px;
  background-image: url("../images/アセット 34.png");
  background-size: auto 100%;
  background-position: center bottom;
  background-repeat: repeat-x;
  z-index: 9;
}

/* ===== B ご購入特典: 全幅ベタではなく、ア9の長方形ブロック ===== */
.tokuten {
  background: url("../images/stripe_tile.png") center top / 100% auto repeat-y;
  padding: 0 0 46px;
}
.tokuten .card {
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 34px 3.5% 30px;
  background: url("../images/アセット 9.png") center / 100% 100% no-repeat;
  border-radius: 10px;
  position: relative;
  z-index: 5;
}
.tokuten .card img { width: 100%; }

/* ===== C ご来店のお楽しみ: 紅白ストライプ ===== */
.event {
  background: url("../images/stripe_tile.png") center top / 100% auto repeat-y;
}
.ribbon {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 94%;
  padding: 16px 60px;
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: .04em;
  color: #4a2000;
  background: url("../images/アセット 30.png") center / cover;
  border-top: 3px solid #fff2c9;
  border-bottom: 3px solid #b8860b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  text-shadow: 0 1px 0 #fff, 0 2px 6px rgba(255, 255, 255, .8);
}
.ribbon-tl { margin: 0 0 30px -10px; transform: rotate(-2.5deg) skewX(-6deg); border-radius: 0 10px 10px 0; }
.ribbon-tl > * { transform: skewX(6deg); }
.ribbon-br { margin: 8px -10px 34px auto; transform: rotate(-2.5deg) skewX(-6deg); border-radius: 10px 0 0 10px; }
.ribbon-br > * { transform: skewX(6deg); }
.rb-bee { width: 52px; }

.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 40px;
  width: 92%;
  margin: 0 auto;
  padding: 10px 0 10px;
}
.blk {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 34px 22px;
  text-align: center;
  background: radial-gradient(closest-side, rgba(255,255,255,.95) 55%, rgba(255,255,255,.55) 75%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
}
.blk img { width: 62%; max-width: 340px; }

.fukidashi {
  position: relative;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}
.fukidashi::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-bottom: none;
}
.fk-green { background: #2e9e44; }
.fk-green::after { border-top-color: #2e9e44; }
.fk-green b { color: #ffe95e; }
.fk-blue { background: #1f8fd0; }
.fk-blue::after { border-top-color: #1f8fd0; }
.fk-blue b { color: #ffe95e; }

/* 査定クイズ: 金背景なし。ストライプ上に直接置く */
.satei-band { position: relative; z-index: 5; padding: 8px 0 46px; }
.satei { width: 68%; max-width: 860px; margin: 0 auto; }
.satei img { width: 100%; }

/* ===== D 新車: 放射の中心は車ゾーン（見出し裏には出さない） ===== */
.shinsha {
  background:
    repeating-conic-gradient(from 0deg at 50% 46%,
      rgba(255, 150, 110, .12) 0deg 5deg, rgba(0, 0, 0, 0) 5deg 10deg),
    radial-gradient(ellipse 140% 100% at 50% 0%, #e01010 0%, #b30909 55%, #7c0a12 100%);
  padding: 0 0 20px;
}
.badge {
  width: 380px;
  margin: 0 auto -62px;
  position: relative;
  top: -80px;
  z-index: 30;
  text-align: center;
  filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, .55));
}
.badge img { width: 100%; }
/* セクションを分かつライン */
.shinsha::before, .chuko::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(180deg, #fff 0 3px, #e6b422 3px 6px, rgba(0,0,0,.25) 6px 10px);
  z-index: 20;
}
.shinsha .midashi { width: 80%; margin: 0 auto 10px; position: relative; z-index: 5; }
.shinsha .midashi img, .pack img, .car-block img { width: 100%; }
.shinsha .pack { width: 96%; margin: 0 auto 6px; position: relative; z-index: 5; }
.car-block { width: 98%; margin: 0 auto; position: relative; z-index: 5; }
.car-block + .car-block { margin-top: -7%; }

/* 夢のりプラン: ア19帯+白箱（プロのサイト専用図解のCSS再現・トーン抑えめ） */
.plan-box {
  width: 96%;
  margin: -3% auto 0;
  background: #fff;
  border-radius: 8px;
  padding: 0 0 18px;
  color: #333;
  position: relative;
  z-index: 5;
  overflow: hidden;
}
.plan-head { width: 100%; }
.plan-head img { width: 100%; }
.plan-desc { font-size: 14px; line-height: 1.9; padding: 14px 24px 0; }
.plan-desc em { font-style: normal; color: #c11830; font-weight: bold; }
.plan-desc small { display: block; font-size: 11px; color: #888; }
.plan-choices { margin: 14px 24px 0; border: 2px solid #eee0c0; border-radius: 8px; padding: 12px 16px; }
.pc-title { font-size: 13.5px; font-weight: bold; color: #a06a00; margin-bottom: 8px; }
.plan-choices ol { list-style: none; display: grid; gap: 6px; }
.plan-choices li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: bold; }
.plan-choices li b { margin-left: auto; color: #c11830; }
.pc-num {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #c11830;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* ===== E 中古車: 自作の空・雲・街並み背景 ===== */
.chuko {
  background:
    linear-gradient(180deg, #9fd6f0 0%, #cdecfa 60%, #eef9ff 100%);
  padding: 0;
}
.badge-green {
  display: inline-block;
  padding: 14px 70px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #6cc24a 0%, #2e9e44 55%, #14672a 100%);
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
  letter-spacing: .2em;
}
.chuko .badge { width: auto; top: -38px; margin-bottom: 14px; filter: drop-shadow(4px 6px 8px rgba(0,0,0,.4)); }
.concierge { width: 88%; margin: 0 auto; position: relative; z-index: 5; }
.concierge img { width: 100%; }

.town {
  height: 300px;
  margin-top: -80px;
  background: url("../images/townscape.png") center bottom / auto 300px repeat-x;
}
.road {
  height: 56px;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, #fff 0 46px, rgba(255,255,255,0) 46px 92px) center / 100% 6px no-repeat,
    #565d63;
}
.road::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 200%;
  height: 60px;
  margin-top: -30px;
  background: url("../images/road_cars.png") 0 center / 900px 60px repeat-x;
  animation: drive 14s linear infinite;
}
@keyframes drive {
  from { transform: translateX(0); }
  to { transform: translateX(-900px); }
}
@media (prefers-reduced-motion: reduce) { .road::after { animation: none; } }

.anshin {
  background:
    linear-gradient(rgba(10, 42, 20, .2), rgba(10, 42, 20, .2)),
    url("../images/アセット 25.png") center top / 420px auto repeat;
  padding: 26px 0 30px;
}
.anshin-bar {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 94%;
  background: rgba(255, 255, 255, .96);
  border-radius: 12px;
  padding: 14px 18px;
  color: #14421f;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .25);
  flex-wrap: wrap;
}
.an-title {
  flex: 0 0 175px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #2e9e44, #14672a);
  border-radius: 8px;
  padding: 10px 14px;
}
.an-title b { font-size: 21px; }
.anshin-bar ul { list-style: none; display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
.anshin-bar li {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  border-left: 2px dotted #9ccf9c;
  padding: 4px 0 4px 14px;
  position: relative;
}
.anshin-bar li b { font-size: 16px; color: #14672a; padding-left: 30px; }
.an-num {
  position: absolute;
  left: 12px; top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #f5a623;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
}

/* ===== J 締め: ヒーローと同じア7で世界観を閉じる ===== */
.closing {
  background:
    url("../images/アセット 7.png") center top / 100% auto no-repeat,
    url("../images/stripe_tile.png") center top / 100% auto repeat-y;
}
.closing .inn { padding: 4% 0 3%; z-index: 5; }
.closing-copy {
  text-align: center;
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: bold;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .65);
  padding-bottom: 10px;
  position: relative;
  z-index: 6;
  line-height: 1.6;
}
.big-bee {
  position: relative;
  display: block;
  margin: 6% auto 0;
  width: 14%;
  z-index: 8;
}
.cl-car { position: absolute; bottom: 6%; width: 22%; z-index: 7; }
.cl-car-l { left: 8%; }
.cl-car-r { right: 8%; }
.closing .stripe { display: none; }

/* ===== モーダル ===== */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.modal.open { display: block; }
.modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }
.modal__content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(86vw, 340px);
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}
.modal__content img { width: 100%; }
.modal__note { font-size: 12px; color: #333; text-align: center; padding-top: 10px; }
.modal__close {
  position: absolute;
  top: 6px; right: 8px;
  width: 34px; height: 34px;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  background: #2b0304;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

/* ===== totop ===== */
.totop {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 52px; height: 52px;
  border: 2px solid #fff2c9;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe9a0, #d99b16);
  color: #5c1500;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.totop.active { opacity: 1; pointer-events: auto; }

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .copy { width: 46%; }
  .title { width: 84%; }
  .date { width: 72%; }
  .bee-a { width: 9%; top: 4%; left: 8%; }
  .bee-b { width: 7%; right: 4%; }
  .hero { background-size: 200% auto; }
  .hero-car { width: 34%; position: relative; bottom: 0; display: inline-block; }
  .hero-car-l { left: 8%; }
  .hero-car-r { right: -42%; margin-top: -20%; }

  .tokuten .card { padding: 20px 4% 18px; }
  .event-grid { grid-template-columns: 1fr; gap: 20px; }
  .blk { border-radius: 26px; padding: 26px 18px; }
  .blk img { width: 92%; max-width: 320px; }
  .satei { width: 94%; }
  .ribbon { font-size: 15px; padding: 10px 22px; }

  .badge { width: 96px; }
  .shinsha .midashi { width: 94%; }
  .plan-box { width: 94%; }
  .plan-desc { padding: 12px 14px 0; }
  .plan-choices { margin: 12px 14px 0; }
  .plan-choices li { font-size: 13px; flex-wrap: wrap; }

  .concierge { width: 96%; }
  .town { height: 150px; background-size: auto 150px; margin-top: -20px; }
  .anshin-bar { flex-direction: column; }
  .an-title { flex: none; }

  .closing { background-size: 200% auto; }
  .closing-copy { font-size: 19px; }
  .big-bee { width: 22%; }
  .cl-car { width: 30%; }
  .btn-img { min-width: 0; width: 88%; font-size: 16px; padding: 14px 20px; }
}
