/* =========================================================
   美ら美ら中古車フェア2026 LP
   ========================================================= */
:root {
  --red: #d7001a;
  --red-deep: #a80014;
  --red-dark: #6e000c;
  --yellow: #ffe600;
  --cream: #fff8d6;
  --ink: #1a1a1a;
  --sub: #5b5b5b;
  --line: #e6e1d4;
  --paper: #fffdf6;
  --blue: #0068b7;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --num: "Montserrat", "Arial Black", sans-serif;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--red);
  isolation: isolate;
  padding-bottom: 28px;
}
.hero__burst {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max(118vw, 860px);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: url(../img/bg-burst.webp) center / cover no-repeat;
  z-index: 0;
  animation: zoom 6s ease-in-out infinite alternate;
}
.hero::after { /* 下端をなじませる */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(110, 0, 12, .55));
  z-index: 1;
  pointer-events: none;
}

.cloud {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18));
  animation: cloudIn 1.1s var(--ease-pop) both, float 7s ease-in-out 1.1s infinite alternate;
}
.cloud--tl { width: clamp(130px, 30%, 420px); top: 5%; left: -14%; --fx: -60px; --fy: -40px; }
.cloud--tr { width: clamp(160px, 40%, 500px); top: -11%; right: -14%; --fx: 60px; --fy: -40px; animation-delay: .1s, 1.5s; }
.cloud--bl { width: clamp(130px, 32%, 440px); bottom: -12%; left: -12%; --fx: -60px; --fy: 40px; animation-delay: .2s, 1.8s; }
.cloud--br { width: clamp(130px, 30%, 420px); bottom: -14%; right: -11%; --fx: 60px; --fy: 40px; animation-delay: .3s, 1.2s; }
@media (min-width: 900px) {
  .cloud--tl { top: -12%; left: -7%; }
  .cloud--tr { top: -14%; right: -8%; }
  .cloud--bl { left: -7%; }
  .cloud--br { right: -6%; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin-inline: auto;
  padding: 0 16px;
}
.hero__top { display: flex; align-items: flex-start; gap: 4%; }
.hero__logo {
  width: 20%;
  max-width: 108px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25));
  animation: drop .7s var(--ease-pop) both;
}
.hero__store { width: 40%; max-width: 230px; margin-top: 4%; }
.hero__date {
  position: absolute;
  top: 2%;
  right: 3%;
  width: 29%;
  max-width: 170px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3));
}
.hero__date.is-done { animation: wobble 2.6s ease-in-out infinite; }

.hero__title {
  margin: 3% auto 0;
  display: grid;
  justify-items: center;
}
.hero__title > img:nth-child(1) { width: 70%; }
.hero__title > img:nth-child(2) { width: 94%; margin-top: -5%; }
.hero__year { position: relative; display: block; width: 100%; margin-top: -3%; }
.hero__year > img:last-child { width: 46%; margin: 0 auto; }
.hero__bubble {
  position: absolute;
  left: 2%;
  top: 10%;
  width: 27%;
  z-index: 1;
}
.hero__bubble.is-done { animation: pulse 1.8s ease-in-out infinite; transform-origin: 70% 100%; }

.ribbon {
  position: relative;
  margin: 3% 0 0;
  overflow: hidden;
}
.ribbon__band { width: 100%; }
.ribbon__text {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 86%;
  translate: -50% -44%;
}
.ribbon::after { /* キラッと光る */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%);
  translate: -120% 0;
  animation: shine 3.6s ease-in-out 2.4s infinite;
  mix-blend-mode: soft-light;
}

.hero__actions { position: relative; z-index: 1; display: grid; justify-items: start; gap: 10px; }
.countdown {
  margin: 0;
  width: fit-content;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: clamp(14px, 3.8vw, 18px);
  letter-spacing: .04em;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
  animation: fadeUp .6s ease 1.6s both;
}
.countdown b {
  font-family: var(--num);
  font-style: italic;
  font-size: 1.6em;
  color: var(--yellow);
  margin: 0 .15em;
  line-height: 1;
}

.hero__bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-top: 8%;
  min-height: 150px;
}
.hero__car {
  position: absolute;
  right: -4%;
  bottom: -4%;
  width: 58%;
  max-width: 330px;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .35));
  animation: driveIn 1.2s cubic-bezier(.2, .9, .3, 1.15) 1.5s both, idle 2.4s ease-in-out 2.8s infinite;
}
.hero__cta {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 44px 14px 18px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 16px;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  text-decoration: none;
  line-height: 1.25;
  animation: fadeUp .6s ease 1.9s both;
  transition: translate .15s, box-shadow .15s;
}
.hero__cta span { font-size: 12px; font-weight: 800; }
.hero__cta strong { font-size: clamp(17px, 4.6vw, 22px); font-weight: 900; }
.hero__cta i {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  rotate: 45deg;
  translate: 0 -70%;
  animation: nudge 1.2s ease-in-out infinite;
}
.hero__cta:active { translate: 0 4px; box-shadow: 0 2px 0 var(--ink); }

/* PC：タイトル中央・車は下（スマホと同じ縦構成を大きく） */
@media (min-width: 900px) {
  .hero { --tw: clamp(440px, calc(100svh - 420px), 600px); padding-bottom: 40px; }
  .hero__inner { width: min(1200px, 100%); padding: 0 40px; }
  .hero__logo { width: 96px; max-width: none; }
  .hero__store { width: 240px; max-width: none; margin-top: 18px; }
  .hero__date { top: 22px; right: 40px; width: 190px; max-width: none; }
  .hero__title { width: calc(var(--tw) * 1.1); margin-top: -48px; }
  .ribbon { width: calc(var(--tw) * 1.3); margin: 4px auto 0; }
  .hero__bottom {
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-top: -6px;
    min-height: 0;
  }
  .hero__car { position: relative; right: auto; bottom: auto; order: 2; width: min(380px, 30vw); max-width: none; }
  .hero__actions { order: 1; }
}

/* ---------- POINTS ---------- */
.points {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .09) 1.5px, transparent 0) 0 0 / 14px 14px,
    var(--red-dark);
  padding: 30px 16px 34px;
}
.points__inner { width: min(1040px, 100%); margin-inline: auto; }
.points__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 900;
  letter-spacing: .2em;
}
.points__title::before, .points__title::after { content: ""; flex: 1; height: 2px; background: rgba(255, 255, 255, .5); }
.perks {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 1040px;
}
@media (min-width: 640px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .perks { grid-template-columns: repeat(4, 1fr); }
  .perk { gap: 10px; padding: 10px 14px; }
  .perk img { width: 44px; }
  .perk p { font-size: 17px; white-space: nowrap; }
}
.perk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background:
    repeating-conic-gradient(from 0deg at 0% 50%, rgba(255, 255, 255, .06) 0 5deg, transparent 5deg 10deg),
    var(--red);
  border: 3px solid var(--yellow);
  border-radius: 16px;
}
.perk img { flex: none; width: 52px; }
.perk p {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 4.8vw, 20px);
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}
.perk small { display: block; font-size: .68em; }


/* ---------- CARS ---------- */
.cars {
  padding: 48px 0 40px;
  background:
    radial-gradient(circle at 1px 1px, rgba(215, 0, 26, .07) 1.6px, transparent 0) 0 0 / 16px 16px,
    var(--paper);
  scroll-margin-top: 0;
}
.cars__head { text-align: center; margin-bottom: 22px; }
.cars__eyebrow {
  margin: 0;
  font-family: var(--num);
  font-style: italic;
  font-weight: 900;
  color: var(--red);
  letter-spacing: .12em;
  font-size: 13px;
}
.cars__title {
  margin: 2px 0 8px;
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cars__title span {
  font-size: .5em;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 2px 10px;
}
.cars__lead { margin: 0; color: var(--sub); font-size: 14px; }
.cars__lead b { color: var(--red); }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -16px 20px;
  padding: 10px 16px;
  background: rgba(255, 253, 246, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, scale .2s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.chip:active { scale: .95; }
.chip small { font-family: var(--num); font-size: 11px; margin-left: 3px; opacity: .7; }
.sort { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--sub); }
.sort select {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  padding: 6px 28px 6px 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23d7001a'/%3E%3C/svg%3E") right 10px center no-repeat;
  appearance: none;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

/* 車両カード */
.car {
  position: relative;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 0 var(--line), 0 10px 24px -12px rgba(80, 30, 0, .25);
  border: 1px solid var(--line);
  transition: translate .25s, box-shadow .25s;
}
.car.is-hidden { display: none; }
@media (hover: hover) {
  .car:hover { translate: 0 -4px; box-shadow: 0 2px 0 var(--line), 0 18px 30px -14px rgba(80, 30, 0, .35); }
}
.car__photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: #eee;
  cursor: zoom-in;
  overflow: hidden;
}
.car__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s; }
@media (hover: hover) { .car:hover .car__photo img { scale: 1.04; } }
.car__photos-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.car__badge {
  position: absolute;
  top: 12px;
  left: -6px;
  background: var(--yellow);
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
  padding: 4px 14px 4px 16px;
  border-radius: 0 999px 999px 0;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
  animation: pulse 1.6s ease-in-out infinite;
  transform-origin: left center;
}
.car__type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.car__body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; flex: 1; }
.car__name { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.3; }
.car__name small { display: block; font-size: 13px; font-weight: 800; color: var(--sub); }

/* 価格 — いちばん目立たせる */
.price {
  position: relative;
  margin: 0 -18px;
  padding: 12px 18px 12px;
  background: linear-gradient(100deg, var(--red) 0%, #f2203a 100%);
  color: #fff;
  overflow: hidden;
}
.price::before { /* 集中線っぽい模様 */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 10px, transparent 10px 22px);
  pointer-events: none;
}
.price__row { position: relative; display: flex; align-items: flex-end; gap: 6px; flex-wrap: nowrap; }
.price__label {
  writing-mode: horizontal-tb;
  display: grid;
  line-height: 1.15;
  font-weight: 900;
  font-size: 15px;
  padding-bottom: 10px;
}
.price__label small { font-size: 10px; font-weight: 800; opacity: .9; }
.price__num {
  font-family: var(--num);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(44px, 17vw, 72px);
  font-size: clamp(44px, 18cqi, 72px);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--red-dark);
  font-variant-numeric: tabular-nums;
}
.price__unit { font-weight: 900; font-size: 20px; padding-bottom: 8px; }
.price__sub {
  position: relative;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px dashed rgba(255, 255, 255, .45);
  padding-top: 6px;
}
.price__sub b { font-family: var(--num); font-style: italic; font-size: 15px; }

.spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.spec div { background: #fff; padding: 7px 8px; min-width: 0; }
.spec dt { font-size: 10px; font-weight: 800; color: var(--sub); }
.spec dd { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }

.equip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.equip li {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: #eaf3fb;
  border-radius: 6px;
  padding: 3px 8px;
}

.car__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.car__no { font-size: 11px; color: var(--sub); font-weight: 800; white-space: nowrap; }
.car__no b { font-family: var(--num); font-size: 15px; color: var(--ink); }
.car__tel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 0 #000;
  transition: translate .15s, box-shadow .15s;
}
.car__tel:active { translate: 0 3px; box-shadow: 0 1px 0 #000; }

.empty { text-align: center; color: var(--sub); padding: 40px 0; font-weight: 800; }
.paynote {
  margin: 32px auto 0;
  max-width: 760px;
  padding: 18px 20px 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background:
    linear-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(0, 0, 0, .05) 1px, transparent 1px) 0 0 / 18px 18px,
    #fff;
  box-shadow: 0 5px 0 var(--line);
}
.paynote__title { margin: 0 0 8px; text-align: center; color: var(--red); font-size: 19px; font-weight: 900; }
.paynote p { margin: 0; font-size: 12px; line-height: 1.8; padding-left: 1em; text-indent: -1em; }

/* ---------- GIFT ---------- */
.gift {
  padding: 40px 16px 44px;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .07) 0 6deg, transparent 6deg 12deg),
    var(--red);
  overflow: hidden;
}
.scroll-card {
  position: relative;
  width: min(640px, 100%);
  margin-inline: auto;
  padding: 34px 20px 34px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(180, 120, 40, .18), transparent 60%),
    #f4dfae;
  border-radius: 6px;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .45);
  text-align: center;
}
.scroll-card::before, .scroll-card::after { /* 巻物の巻き部分 */
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(#e7c27a, #c7953f 55%, #a87526);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .25);
}
.scroll-card::before { top: -11px; }
.scroll-card::after { bottom: -11px; }
.gift__label {
  position: absolute;
  top: -24px;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  margin: 0;
  padding: 6px 22px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
.gift__lead {
  margin: 6px 0 0;
  font-size: clamp(19px, 5.4vw, 27px);
  font-weight: 900;
  line-height: 1.45;
}
.sp { display: inline; }
@media (min-width: 560px) { .sp { display: none; } }
.gift__main { display: grid; justify-items: center; gap: 14px; margin-top: 12px; }
.gift__steak { width: min(72%, 300px); }
.gift__prize {
  width: min(80%, 400px);
  filter: drop-shadow(2px 2px 0 #fff) drop-shadow(-2px -2px 0 #fff) drop-shadow(0 4px 0 rgba(120, 60, 0, .2));
}
.scroll-card.is-in .gift__steak { animation: sizzle 2.4s ease-in-out .6s infinite; }
.scroll-card.is-in .gift__prize { animation: popIn .7s var(--ease-pop) .3s both, pulse 2s ease-in-out 1.2s infinite; }

/* ---------- 認定中古車・Instagram ---------- */
.more { padding: 40px 0 8px; background: var(--paper); }
.more__grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .more__grid { grid-template-columns: 1.5fr 1fr; } }
.ucar, .insta {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px 22px 22px;
  border-radius: 20px;
  text-decoration: none;
  transition: translate .2s, box-shadow .2s;
}
@media (hover: hover) { .ucar:hover, .insta:hover { translate: 0 -3px; } }
.ucar {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 22px),
    var(--red);
  color: #fff;
  box-shadow: 0 6px 0 var(--red-dark);
}
.ucar__brand {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .25em;
}
.ucar__logo { font-family: var(--num); font-style: normal; font-weight: 800; font-size: 28px; letter-spacing: .28em; }
.ucar__text { margin: 0; font-size: 14px; line-height: 1.9; }
.ucar__btn, .insta__btn {
  justify-self: start;
  position: relative;
  padding: 11px 40px 11px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
}
.ucar__btn::after, .insta__btn::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  translate: 0 -50%;
  rotate: 45deg;
}
.ucar__btn { background: #fff; color: var(--red); }
.insta {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 6px 0 var(--line);
  justify-items: center;
  align-content: center;
  text-align: center;
}
.insta__bubble {
  position: relative;
  margin: 0;
  padding: 8px 18px;
  background: #4a4a4a;
  color: #fff;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}
.insta__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  translate: -50% 0;
  border: 10px solid transparent;
  border-bottom: 0;
  border-top-color: #4a4a4a;
}
.insta__handle { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 16px; color: #c13584; }
.insta__btn { justify-self: center; color: #fff; background: linear-gradient(45deg, #f9a825, #e1306c 45%, #833ab4); }
.ico--insta { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm0 2a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm5 3.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM17.3 5.5a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z'/%3E%3C/svg%3E"); }

/* ---------- ACCESS ---------- */
.access { padding: 52px 0 56px; background: var(--paper); }
.access__title {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--num);
  font-style: italic;
  font-weight: 900;
  font-size: 36px;
  color: var(--red);
  line-height: 1.1;
}
.access__title small { display: block; font-family: var(--font); font-style: normal; font-size: 14px; color: var(--ink); }
.access__body { display: grid; gap: 22px; }
@media (min-width: 860px) { .access__body { grid-template-columns: 1fr 1.1fr; align-items: stretch; } }
.access__info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.access__company { margin: 0; font-size: 13px; font-weight: 800; color: var(--sub); }
.access__store { margin: 0 0 12px; font-size: 26px; font-weight: 900; }
.access__info dl { margin: 0; display: grid; grid-template-columns: 5.5em 1fr; gap: 8px 10px; font-size: 14px; }
.access__info dt { font-weight: 800; color: var(--red); }
.access__info dd { margin: 0; font-weight: 800; }
.tel-link { font-family: var(--num); font-size: 20px; text-decoration: none; }
.access__btns { display: grid; gap: 10px; margin-top: 18px; }
.btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn--line { border: 2px solid var(--ink); background: #fff; }
.access__map { border-radius: 20px; overflow: hidden; min-height: 300px; border: 1px solid var(--line); }
.access__map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

.footer {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.footer p { margin: 0; }
.footer small { color: #aaa; font-weight: 500; }

/* ---------- 固定CTA ---------- */
.fixbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  background: #fff;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .1);
  translate: 0 calc(100% + 40px);
  transition: translate .35s ease;
}
.fixbar.is-show { translate: 0 0; }
.fixbar__item {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.fixbar__item--tel { background: var(--red); color: #fff; font-size: 14px; align-content: center; }
.ico { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico--tel { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ico--car { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.9 6c-.2-.6-.8-1-1.4-1h-11c-.7 0-1.2.4-1.4 1L3 12v8c0 .6.4 1 1 1h1c.6 0 1-.4 1-1v-1h12v1c0 .6.4 1 1 1h1c.6 0 1-.4 1-1v-8zM6.5 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm11 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM5 11l1.5-4.5h11L19 11z'/%3E%3C/svg%3E"); }
.ico--map { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .fixbar { inset: auto 24px 24px auto; grid-template-columns: auto; border-radius: 999px; overflow: hidden; border: 0; }
  .fixbar__item:not(.fixbar__item--tel) { display: none; }
  .fixbar__item--tel { grid-auto-flow: column; gap: 8px; padding: 14px 26px; font-size: 16px; }
}

/* ---------- 写真ビューア ---------- */
.viewer {
  width: min(900px, 100vw);
  max-width: 100vw;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.viewer::backdrop { background: rgba(0, 0, 0, .85); }
.viewer__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.viewer__track img { flex: none; width: 100%; scroll-snap-align: center; object-fit: contain; max-height: 80dvh; }
.viewer__cap { text-align: center; font-weight: 800; margin: 10px 0 0; }
.viewer__close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- アニメーション ---------- */
.pop { animation: popIn .7s var(--ease-pop) var(--d, 0s) both; }
.reveal { opacity: 0; translate: 0 32px; transition: opacity .7s ease var(--d, 0s), translate .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.car.reveal { transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s; }

@keyframes zoom { from { scale: 1; } to { scale: 1.12; } }
@keyframes popIn {
  0% { opacity: 0; scale: .3; }
  70% { opacity: 1; scale: 1.08; }
  100% { opacity: 1; scale: 1; }
}
@keyframes drop {
  0% { translate: 0 -110%; }
  100% { translate: 0 0; }
}
@keyframes cloudIn {
  0% { opacity: 0; translate: var(--fx) 0; scale: .7; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes float {
  0% { transform: translate(0, 0) rotate(0); }
  100% { transform: translate(8px, -12px) rotate(2deg); }
}
@keyframes wobble {
  0%, 100% { rotate: -5deg; }
  50% { rotate: 5deg; }
}
@keyframes pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.07; }
}
@keyframes shine {
  0% { translate: -120% 0; }
  40%, 100% { translate: 120% 0; }
}
@keyframes driveIn {
  0% { opacity: 0; translate: 110% 0; rotate: 0deg; }
  70% { opacity: 1; translate: -4% 0; rotate: -3deg; }
  85% { rotate: 1.5deg; }
  100% { opacity: 1; translate: 0 0; rotate: 0deg; }
}
@keyframes idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes fadeUp {
  0% { opacity: 0; translate: 0 16px; }
  100% { opacity: 1; translate: 0 0; }
}
@keyframes nudge {
  0%, 100% { translate: 0 -70%; }
  50% { translate: 0 -30%; }
}
@keyframes sizzle {
  0%, 100% { rotate: -2deg; }
  50% { rotate: 2deg; translate: 0 -3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__burst { animation: none; }
  html { scroll-behavior: auto; }
}
