
/* =========================================================
   RE:RIDE Driving School 4.7.0
   Mobile-first / read-first / warm & reassuring
   ========================================================= */

.reride-site {
  --ink: #34495c;
  --ink-deep: #25394b;
  --muted: #69757f;
  --ivory: #fcf8f2;
  --ivory-deep: #f5eee5;
  --paper: #fffdfa;
  --sage: #91aa9b;
  --sage-deep: #647d70;
  --coral: #e7836d;
  --coral-deep: #d86f5b;
  --slate: #40586b;
  --slate-deep: #2f4658;
  --line: #e6ddd3;
  --line-green: #06c755;
  --line-green-dark: #05a948;
  --white: #fff;
  --shadow: 0 18px 48px rgba(52, 73, 92, .10);
  --shadow-soft: 0 10px 28px rgba(52, 73, 92, .07);
  --radius: 24px;
  --radius-sm: 16px;
  --header-height: 70px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  letter-spacing: .02em;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 14px); }
.reride-site img { display: block; max-width: 100%; }
.reride-site a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.reride-site button { font: inherit; }
.reride-site h1,
.reride-site h2,
.reride-site h3,
.reride-site p { margin-top: 0; }
.reride-site h1,
.reride-site h2,
.reride-site h3 { line-height: 1.35; }
.reride-site h1,
.reride-site h2 { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 820px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 252, 248, .94);
  border-bottom: 1px solid rgba(52, 73, 92, .08);
  backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { background: rgba(255, 252, 248, .98); box-shadow: 0 8px 24px rgba(52, 73, 92, .08); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; border-radius: 50%; }
.brand__text { min-width: 0; display: grid; line-height: 1.35; }
.brand__text strong { color: var(--ink-deep); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.brand__text small { max-width: 200px; color: var(--muted); font-size: .63rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  display: block;
  border: 1px solid rgba(52, 73, 92, .18);
  border-radius: 12px;
  color: var(--ink-deep);
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle__line {
  position: absolute !important;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  display: block !important;
  border-radius: 999px;
  background: currentColor;
  opacity: 1;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease;
}
.mobile-nav-toggle__line:nth-child(1) { transform: translateY(-7px); }
.mobile-nav-toggle__line:nth-child(2) { transform: translateY(0); }
.mobile-nav-toggle__line:nth-child(3) { transform: translateY(7px); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(1) { transform: rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle__line:nth-child(3) { transform: rotate(-45deg); }


.global-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 999;
  max-height: calc(100dvh - var(--header-height));
  padding: 10px 20px 18px;
  display: grid;
  overflow-y: auto;
  color: var(--ink-deep);
  background: rgba(255, 252, 248, .99);
  border-bottom: 1px solid rgba(52, 73, 92, .10);
  box-shadow: 0 18px 32px rgba(52, 73, 92, .13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity .22s ease, transform .25s ease, visibility .22s ease;
}
.global-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.global-nav a {
  padding: 13px 4px;
  border-bottom: 1px solid rgba(52, 73, 92, .10);
  font-size: .94rem;
  font-weight: 800;
}
.global-nav a:last-child { border-bottom: 0; }
body.reride-nav-open { overflow: hidden; }

@media (max-width: 420px) {
  .brand__text strong {
    max-width: calc(100vw - 140px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Hero: mobile first. Image and copy are separated to avoid overlap. */
.hero { position: relative; margin-top: var(--header-height); overflow: hidden; background: var(--ivory); }
.hero__media { position: relative; height: clamp(280px, 43svh, 430px); overflow: hidden; }
.hero__image {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% center;
  transform: scale(1.015); transform-origin: 68% 50%;
  animation: heroBreath 18s ease-in-out infinite; will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0 0 auto; height: clamp(280px, 43svh, 430px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(252,248,242,0) 58%, rgba(252,248,242,.96) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 26px 0 42px; }
.hero__panel { max-width: 720px; }
.hero__category {
  width: fit-content; margin: 0 0 18px; padding: 8px 13px;
  border: 1px solid rgba(100, 125, 112, .24); border-radius: 999px;
  color: var(--sage-deep); background: rgba(145, 170, 155, .11);
  font-size: .86rem; font-weight: 800; letter-spacing: .08em;
}
.hero h1 { margin: 0 0 20px; color: var(--ink-deep); font-size: clamp(2.45rem, 12vw, 4rem); letter-spacing: -.025em; }
.hero__lead { margin: 0 0 22px; color: #51616c; font-size: clamp(1rem, 4.5vw, 1.18rem); font-weight: 700; line-height: 1.85; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hero__badges span {
  padding: 7px 11px; border: 1px solid rgba(52, 73, 92, .18); border-radius: 999px;
  color: var(--ink); background: rgba(255,255,255,.72); font-size: .75rem; font-weight: 700;
}
.hero__sub-link {
  display: inline-flex; align-items: center; gap: 9px; padding-bottom: 5px;
  color: var(--ink-deep); border-bottom: 1px solid rgba(52, 73, 92, .34); font-weight: 800;
}

/* Shared sections */
.section { position: relative; padding: 78px 0; }
.section--soft { background: linear-gradient(180deg, var(--ivory-deep), #f8f3ec); }
.section--navy {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(231,131,109,.16), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(145,170,155,.15), transparent 30%),
    linear-gradient(145deg, var(--slate), var(--slate-deep));
}
.section-heading { position: relative; margin-bottom: 36px; }
.section-heading__number {
  position: absolute; top: -35px; left: -2px; z-index: 0;
  color: rgba(52,73,92,.07); font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(4.6rem, 22vw, 7.5rem); font-weight: 700; line-height: 1; pointer-events: none;
}
.section-heading--light .section-heading__number { color: rgba(255,255,255,.07); }
.section-heading > *:not(.section-heading__number) { position: relative; z-index: 1; }
.eyebrow { margin-bottom: 10px; color: var(--sage-deep); font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-heading--light .eyebrow, .contact .eyebrow { color: #d4e3d9; }
.section-heading h2 { margin-bottom: 12px; font-size: clamp(1.85rem, 8vw, 3.15rem); color: var(--ink-deep); }
.section-heading--light h2 { color: var(--white); }

/* Worries */
.worry-grid { display: grid; gap: 12px; }
.worry-card {
  min-height: 120px; padding: 20px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.92); box-shadow: var(--shadow-soft);
}
.worry-card__icon { color: var(--coral-deep); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.worry-card p { margin: 0; font-weight: 700; }
.message-block {
  margin-top: 24px; padding: 26px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fffaf6; box-shadow: var(--shadow-soft); text-align: center;
}
.message-block p { margin: 0; font-size: clamp(1rem, 4.4vw, 1.2rem); }

/* Split sections */
.split-layout { display: grid; gap: 34px; }
.split-layout__media { order: 1; }
.split-layout__content { order: 2; }
.lead-copy { margin-bottom: 24px; color: var(--muted); font-size: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 650; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; color: var(--white); background: var(--sage); font-size: .72rem; font-weight: 900;
}

.image-placeholder {
  min-height: 240px; padding: 20px; display: grid; place-items: center; align-content: center; gap: 8px;
  border: 1px dashed rgba(52,73,92,.22); border-radius: var(--radius); color: var(--ink);
  background:
    linear-gradient(135deg, rgba(145,170,155,.18), rgba(231,131,109,.12)),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.66) 0 12px, rgba(255,255,255,.24) 12px 24px);
  text-align: center;
}
.image-placeholder span { font-weight: 800; letter-spacing: .15em; }
.image-placeholder small { max-width: 320px; color: var(--muted); }
.image-placeholder--portrait { min-height: 420px; }

/* Scene cards */
.scene-grid { display: grid; gap: 18px; }
.scene-card { overflow: hidden; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 15px 36px rgba(36,57,75,.16); }
.scene-card__image { min-height: 210px; border: 0; border-radius: 0; }
.scene-card__body { padding: 22px; }
.scene-card__body > span { color: var(--sage-deep); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.scene-card h3 { margin: 8px 0 9px; }
.scene-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Features */
.feature-list { display: grid; gap: 16px; }
.feature-item {
  padding: 24px 22px; display: grid; grid-template-columns: 56px 1fr; align-items: start; gap: 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.96); box-shadow: var(--shadow-soft);
}
.feature-item__number { color: rgba(231,131,109,.55); font-family: "Zen Maru Gothic", sans-serif; font-size: 2rem; font-weight: 800; }
.feature-item h3 { margin-bottom: 7px; }
.feature-item p { margin: 0; color: var(--muted); }

/* Plans */
.plan-grid { display: grid; gap: 18px; }
.plan-card {
  position: relative; padding: 30px 24px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.96); box-shadow: var(--shadow-soft);
}
.plan-card--featured { border: 2px solid var(--sage); }
.plan-card__ribbon { position: absolute; top: 14px; right: 16px; padding: 5px 12px; border-radius: 999px; color: var(--white); background: var(--sage-deep); font-size: .72rem; font-weight: 800; }
.plan-card__label { color: var(--sage-deep); font-size: .76rem; font-weight: 800; }
.plan-card h3 { margin: 10px 0 15px; padding-right: 70px; }
.plan-card__price { margin-bottom: 16px; color: var(--ink-deep); font-family: "Zen Maru Gothic", sans-serif; font-size: 2rem; font-weight: 800; }
.plan-card__price span { font-family: "Noto Sans JP", sans-serif; font-size: .72rem; }
.plan-card ul { margin: 0 0 25px; padding-left: 1.2em; color: var(--muted); }
.plan-card .button { margin-top: auto; }

/* Buttons */
.button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 999px; font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--large { min-height: 58px; padding-inline: 26px; }
.button--primary { color: var(--white) !important; background: var(--coral); border-color: var(--coral); box-shadow: 0 10px 24px rgba(231,131,109,.24); }
.button--primary:hover { background: var(--coral-deep); border-color: var(--coral-deep); }
.button--outline { color: var(--ink-deep) !important; background: rgba(255,255,255,.9); border-color: rgba(52,73,92,.28); }
.button--outline:hover { background: var(--white); }
.button--line { color: var(--white) !important; background: var(--line-green); border-color: var(--line-green); box-shadow: 0 10px 24px rgba(6,199,85,.22); }
.button--white { color: var(--ink-deep) !important; background: var(--white); border-color: var(--white); }

/* Profile */
.profile-list { margin: 28px 0 0; border-top: 1px solid var(--line); }
.profile-list div { padding: 16px 0; display: grid; grid-template-columns: 92px 1fr; gap: 10px; border-bottom: 1px solid var(--line); }
.profile-list dt { font-weight: 800; }
.profile-list dd { margin: 0; color: var(--muted); }

/* Flow */
.flow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.flow-list li { padding: 24px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.08); }
.flow-list li > span { width: 42px; height: 42px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--coral); font-weight: 900; }
.flow-list h3 { margin-bottom: 8px; }
.flow-list p { margin: 0; color: rgba(255,255,255,.82); font-size: .9rem; }

/* FAQ */
.accordion { display: grid; gap: 11px; }
.accordion__item { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.accordion__button { width: 100%; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; color: var(--ink); background: transparent; text-align: left; font-weight: 800; cursor: pointer; }
.accordion__button i { position: relative; width: 22px; height: 22px; flex: 0 0 22px; }
.accordion__button i::before, .accordion__button i::after { content: ""; position: absolute; top: 10px; left: 3px; width: 16px; height: 2px; background: var(--ink-deep); transition: transform .25s ease; }
.accordion__button i::after { transform: rotate(90deg); }
.accordion__button[aria-expanded="true"] i::after { transform: rotate(0); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.accordion__panel > p { overflow: hidden; margin: 0; padding: 0 20px; color: var(--muted); transition: padding .3s ease; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__panel > p { padding-bottom: 20px; }

/* Contact */
.contact { position: relative; padding: 90px 0; overflow: hidden; color: var(--white); background: linear-gradient(140deg, #8fa99a, #6e8878); }
.contact__inner { position: relative; z-index: 1; text-align: center; }
.contact h2 { margin-bottom: 20px; font-size: clamp(1.9rem, 8vw, 3rem); }
.contact__actions { margin: 30px 0 18px; display: grid; gap: 12px; }
.contact small { color: rgba(255,255,255,.86); }
.contact__decor { position: absolute; border-radius: 50%; background: rgba(255,255,255,.11); }
.contact__decor--one { width: 260px; height: 260px; left: -110px; top: -100px; }
.contact__decor--two { width: 380px; height: 380px; right: -180px; bottom: -220px; }

/* Footer */
.site-footer { padding: 46px 0 120px; color: rgba(255,255,255,.84); background: #30475b; }
.site-footer__inner { display: grid; gap: 22px; }
.site-footer strong { color: var(--white); }
.site-footer p { margin: 6px 0 0; font-size: .84rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .84rem; }
.site-footer__copy { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }

/* Fixed inquiry CTA. Hidden in FV; JS reveals after the hero. */
.floating-cta {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 950;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(130%);
  pointer-events: none;
  transition: opacity .28s ease, transform .35s cubic-bezier(.2,.75,.2,1), visibility .28s ease;
}
.floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta__button {
  min-width: 0;
  min-height: 66px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(52,73,92,.22);
}
.floating-cta__button--line {
  color: var(--white) !important;
  background: var(--line-green);
}
.floating-cta__button--mail {
  color: var(--ink-deep) !important;
  background: var(--white);
  border-color: rgba(52,73,92,.12);
}
.floating-cta__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.floating-cta__button--line .floating-cta__icon { color: var(--line-green-dark); }
.floating-cta__button--mail .floating-cta__icon { color: var(--coral-deep); background: #fff5f1; }
.floating-cta__copy { min-width: 0; display: grid; line-height: 1.2; }
.floating-cta__copy strong { font-size: clamp(.76rem, 3.2vw, .96rem); font-weight: 900; white-space: nowrap; }
.floating-cta__copy small { margin-top: 3px; font-size: .56rem; font-weight: 700; white-space: nowrap; opacity: .88; }
.floating-cta__button--line .floating-cta__copy strong,
.floating-cta__button--line .floating-cta__copy small { color: var(--white); }
.floating-cta__button--mail .floating-cta__copy strong { color: var(--ink-deep); }
.floating-cta__button--mail .floating-cta__copy small { color: var(--muted); }
.reride-site.has-floating-cta { padding-bottom: 94px; }

@media (max-width: 420px) {
  .floating-cta__button { min-height: 62px; padding-inline: 7px; gap: 6px; }
  .floating-cta__icon { width: 34px; height: 34px; flex-basis: 34px; font-size: .52rem; }
  .floating-cta__copy small { display: none; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--delay,0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--delay,0s); }
.reveal--left { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--scale { transform: scale(.97); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes heroBreath { 0%,100% { transform: scale(1.015); } 50% { transform: scale(1.045); } }

@media (min-width: 640px) {
  .container { width: min(100% - 48px, 1120px); }
  .worry-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(3, 1fr); }
  .feature-item { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .contact__actions { display: flex; justify-content: center; flex-wrap: wrap; }
  .contact__actions .button { min-width: 260px; }
}


/* 4.7.2: ハンバーガーはスマートフォン幅のみ表示 */
@media (min-width: 768px) and (max-width: 959px) {
  .mobile-nav-toggle {
    display: none !important;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand__text strong {
    font-size: .74rem;
  }

  .brand__text small {
    font-size: .58rem;
  }

  .global-nav {
    position: static;
    margin-left: auto;
    max-height: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
    color: var(--ink-deep);
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
  }

  .global-nav a {
    position: relative;
    padding: 0;
    border: 0;
    font-size: inherit;
  }

  .global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transition: transform .2s ease;
  }

  .global-nav a:hover::after {
    transform: scaleX(1);
  }

  body.reride-nav-open {
    overflow: auto;
  }
}

@media (min-width: 960px) {
  .reride-site { --header-height: 80px; }
  .brand__logo { width: 52px; height: 52px; flex-basis: 52px; }
  .brand__text strong { font-size: .96rem; }
  .brand__text small { font-size: .72rem; }
  .mobile-nav-toggle { display: none; }
  .global-nav {
    position: static;
    margin-left: auto;
    max-height: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 25px);
    overflow: visible;
    color: var(--ink-deep);
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    font-size: .88rem;
    font-weight: 750;
  }
  .global-nav a { position: relative; padding: 0; border: 0; font-size: inherit; }
  .global-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--coral); transform: scaleX(0); transition: transform .2s ease; }
  .global-nav a:hover::after { transform: scaleX(1); }

  .hero { min-height: calc(100svh - var(--header-height)); display: grid; align-items: center; }
  .hero__media, .hero__veil { position: absolute; inset: 0; height: auto; }
  .hero__image { object-position: 64% center; transform-origin: 66% 50%; }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(252,248,242,.98) 0%, rgba(252,248,242,.94) 27%, rgba(252,248,242,.72) 46%, rgba(252,248,242,.18) 69%, rgba(252,248,242,0) 83%),
      linear-gradient(180deg, rgba(255,255,255,0) 62%, rgba(245,238,229,.20) 100%);
  }
  .hero__content { z-index: 2; padding: 60px 0 72px; }
  .hero__panel { width: min(650px, 57%); }
  .hero__category { font-size: .92rem; }
  .hero h1 { font-size: clamp(3.4rem, 5.2vw, 5.4rem); }
  .hero__lead { font-size: clamp(1.08rem, 1.5vw, 1.35rem); }
  .hero__badges span { font-size: .82rem; }

  .section { padding: 110px 0; }
  .section-heading { margin-bottom: 52px; }
  .worry-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .worry-card { min-height: 185px; padding: 22px 18px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
  .message-block { margin-top: 34px; padding: 32px; }
  .split-layout { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: center; gap: clamp(46px,7vw,88px); }
  .split-layout__media { order: initial; }
  .split-layout__content { order: initial; }
  .split-layout--reverse .split-layout__media { order: 2; }
  .split-layout--reverse .split-layout__content { order: 1; }
  .image-placeholder--portrait { min-height: 560px; }
  .scene-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .feature-list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature-item { min-height: 180px; padding: 28px; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .flow-list { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .flow-list li { min-height: 255px; }
  .site-footer { padding-bottom: 50px; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__copy { grid-column: 1 / -1; }

  .floating-cta { left: auto; right: 24px; bottom: 22px; width: min(520px, calc(100vw - 48px)); }
  .reride-site.has-floating-cta { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__image { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .floating-cta { transition: none; }
}


/* =========================================================
   RE:RIDE — image mapping and compact worries UI
   ========================================================= */
.reride-site .worries-intro {
  display: grid;
  gap: 24px;
  margin-bottom: 26px;
}

.reride-site .worries-intro .section-heading {
  margin-bottom: 0;
}

.reride-site .worries-intro__lead {
  position: relative;
  margin: 14px 0 0;
  color: var(--muted);
}

.reride-site .worries-intro__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.reride-site .worries-intro__media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
}

.reride-site .worry-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  justify-content: initial;
  gap: 12px;
  padding: 18px;
}

.reride-site .worry-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  letter-spacing: 0;
}

.reride-site .worry-card p {
  align-self: center;
  line-height: 1.65;
}

.reride-site .section-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.reride-site .section-photo--portrait {
  min-height: 420px;
  aspect-ratio: 4 / 3;
}

.reride-site .scene-card__image img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.reride-site .feature-visual-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.reride-site .feature-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.reride-site .feature-visual img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.reride-site .feature-visual figcaption {
  padding: 16px 18px 18px;
  color: var(--muted);
  font-weight: 650;
}

.reride-site .instructor-media {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 12px;
  align-items: end;
}

.reride-site .instructor-media img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.reride-site .instructor-media__portrait {
  height: 460px;
}

.reride-site .instructor-media__lesson {
  height: 300px;
}

.reride-site .consultation-strip {
  background: #fffaf5;
}

.reride-site .consultation-strip__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.reride-site .consultation-strip__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.reride-site .consultation-strip__media img {
  width: 100%;
  height: 290px;
  display: block;
  object-fit: cover;
}

.reride-site .consultation-strip__copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

@media (min-width: 720px) {
  .reride-site .worries-intro {
    grid-template-columns: .88fr 1.12fr;
    align-items: center;
    gap: 38px;
  }

  .reride-site .worries-intro__media img {
    height: 320px;
  }

  .reride-site .feature-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reride-site .consultation-strip__inner {
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(38px, 7vw, 82px);
  }
}

@media (min-width: 1000px) {
  .reride-site .worry-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .reride-site .worry-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .reride-site .worry-card p {
    align-self: start;
  }
}


/* =========================================================
   RE:RIDE — price packs and service area
   ========================================================= */
.reride-site .brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--sage-deep);
  border-radius: 50%;
  color: var(--white);
  background: var(--slate-deep);
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
}

.reride-site .brand__text strong {
  letter-spacing: 0;
}

.reride-site .single-plan-grid {
  display: grid;
  gap: 18px;
}

.reride-site .plan-card__description {
  margin: 0 0 26px;
  color: var(--muted);
}

.reride-site .pack-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.reride-site .pack-card {
  position: relative;
  padding: 28px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-soft);
}

.reride-site .pack-card--featured {
  border: 2px solid var(--sage);
}

.reride-site .pack-card__ribbon {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--sage-deep);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
}

.reride-site .pack-card__heading {
  margin-bottom: 18px;
  padding-right: 80px;
}

.reride-site .pack-card__heading h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.reride-site .pack-card__heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.reride-site .pack-price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

.reride-site .pack-price-list li {
  padding: 15px 0;
  display: grid;
  grid-template-columns: minmax(95px, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.reride-site .pack-price-list span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reride-site .pack-price-list strong {
  color: var(--ink-deep);
  font-size: 1rem;
}

.reride-site .pack-price-list small {
  color: var(--muted);
  font-size: .72rem;
}

.reride-site .pack-price-list b {
  color: var(--ink-deep);
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 1.12rem;
  white-space: nowrap;
}

.reride-site .pack-price-list em {
  grid-column: 2;
  color: var(--coral-deep);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.reride-site .rules-card {
  margin-top: 24px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffaf6;
  box-shadow: var(--shadow-soft);
}

.reride-site .rules-card > h3 {
  margin-bottom: 20px;
}

.reride-site .rules-grid {
  display: grid;
  gap: 18px;
}

.reride-site .rules-grid > div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.reride-site .rules-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-deep);
}

.reride-site .rules-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.reride-site .area-section {
  background: var(--paper);
}

.reride-site .area-lead {
  max-width: 720px;
  color: var(--muted);
}

.reride-site .area-lead strong {
  color: var(--coral-deep);
}

.reride-site .area-grid {
  display: grid;
  gap: 16px;
}

.reride-site .area-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-soft);
}

.reride-site .area-card__prefecture {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--slate);
  font-size: .82rem;
  font-weight: 800;
}

.reride-site .area-card p {
  margin: 0;
  color: var(--muted);
}

.reride-site .area-notes {
  margin-top: 20px;
  padding: 20px;
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--ivory-deep);
}

.reride-site .area-notes p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.reride-site .area-notes p + p {
  margin-top: 7px;
}

.reride-site .credential-link {
  display: inline-flex;
  margin-top: 7px;
  color: var(--sage-deep);
  border-bottom: 1px solid currentColor;
  font-size: .86rem;
  font-weight: 800;
}

.reride-site .profile-list__message {
  grid-template-columns: 92px 1fr;
}

.reride-site .instructor-media--single {
  display: block;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.reride-site .instructor-media--single .instructor-media__portrait {
  width: 100%;
  height: clamp(390px, 62vw, 560px);
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: 32% 44%;
}

.reride-site .instructor-media--single figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .reride-site .single-plan-grid,
  .reride-site .pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reride-site .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reride-site .area-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* 4.7.2: ハンバーガーはスマートフォン幅のみ表示 */
@media (min-width: 768px) and (max-width: 959px) {
  .mobile-nav-toggle {
    display: none !important;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand__text strong {
    font-size: .74rem;
  }

  .brand__text small {
    font-size: .58rem;
  }

  .global-nav {
    position: static;
    margin-left: auto;
    max-height: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
    color: var(--ink-deep);
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
  }

  .global-nav a {
    position: relative;
    padding: 0;
    border: 0;
    font-size: inherit;
  }

  .global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transition: transform .2s ease;
  }

  .global-nav a:hover::after {
    transform: scaleX(1);
  }

  body.reride-nav-open {
    overflow: auto;
  }
}

@media (min-width: 960px) {
  .reride-site .brand__mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .reride-site .single-plan-grid {
    width: min(100%, 820px);
    margin-inline: auto;
  }

  .reride-site .pack-grid,
  .reride-site .rules-card {
    margin-top: 30px;
  }

  .reride-site .pack-card {
    padding: 34px 30px;
  }

  .reride-site .rules-card {
    padding: 32px 30px;
  }

  .reride-site .instructor-media--single .instructor-media__portrait {
    height: 590px;
  }
}

@media (max-width: 639px) {
  .reride-site .profile-list div,
  .reride-site .profile-list__message {
    grid-template-columns: 76px 1fr;
  }
}

/* =========================================================
   BUILD 4.3.0 — full-width supplied visual only
   ========================================================= */
.reride-site .hero.hero--brand {
  min-height: 0;
  display: block;
  margin-top: var(--header-height);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.reride-site .hero--brand .hero__media {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  overflow: hidden;
  background: #fff;
}

.reride-site .hero--brand .hero__image {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
  animation: none;
}

/* =========================================================
   BUILD 4.5.0 — linked fixed pages, thumbnail cards and archive links
   ========================================================= */
.reride-site .post-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.reride-site .post-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-soft);
}

.reride-site .post-card__media {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ivory-deep);
}

.reride-site .post-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.reride-site .post-card__media:hover img {
  transform: scale(1.035);
}

.reride-site .post-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--sage-deep);
  background:
    radial-gradient(circle at 18% 20%, rgba(231, 131, 109, .20), transparent 28%),
    linear-gradient(135deg, rgba(145, 170, 155, .26), rgba(255, 255, 255, .92));
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.reride-site .post-card__body {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.reride-site .post-card__meta {
  margin-bottom: 8px;
  color: var(--sage-deep);
  font-size: .75rem;
  font-weight: 800;
}

.reride-site .post-card h3 {
  margin: 0 0 10px;
  color: var(--ink-deep);
  font-size: 1.15rem;
}

.reride-site .post-card h3 a {
  color: inherit;
}

.reride-site .post-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .9rem;
}

.reride-site .post-card__link {
  width: fit-content;
  margin-top: auto;
  padding-bottom: 3px;
  color: var(--ink-deep);
  border-bottom: 1px solid rgba(52, 73, 92, .34);
  font-size: .88rem;
  font-weight: 800;
}

@media (min-width: 640px) {
  .reride-site .post-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* 4.7.2: ハンバーガーはスマートフォン幅のみ表示 */
@media (min-width: 768px) and (max-width: 959px) {
  .mobile-nav-toggle {
    display: none !important;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand__text strong {
    font-size: .74rem;
  }

  .brand__text small {
    font-size: .58rem;
  }

  .global-nav {
    position: static;
    margin-left: auto;
    max-height: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
    color: var(--ink-deep);
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
  }

  .global-nav a {
    position: relative;
    padding: 0;
    border: 0;
    font-size: inherit;
  }

  .global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transition: transform .2s ease;
  }

  .global-nav a:hover::after {
    transform: scaleX(1);
  }

  body.reride-nav-open {
    overflow: auto;
  }
}

@media (min-width: 960px) {
  .reride-site .post-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}


/* Top-page archive links shown only when four or more posts exist. */
.reride-site .post-card-more {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.reride-site .post-card-more .button {
  min-width: min(100%, 280px);
}


/* =========================================================
   4.7.3 — actual mobile-device navigation switch
   Width alone is not used, so a narrow desktop browser keeps
   the normal global navigation. Touch devices use the menu.
   ========================================================= */

/* Default: desktop / mouse / trackpad */
.reride-site .mobile-nav-toggle {
  display: none !important;
}

.reride-site .global-nav {
  position: static;
  margin-left: auto;
  max-height: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.35vw, 22px);
  overflow: visible;
  color: var(--ink-deep);
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  font-size: clamp(.68rem, 1vw, .88rem);
  font-weight: 750;
  white-space: nowrap;
}

.reride-site .global-nav a {
  position: relative;
  padding: 0;
  border: 0;
  font-size: inherit;
}

.reride-site .global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.reride-site .global-nav a:hover::after {
  transform: scaleX(1);
}

body.reride-nav-open {
  overflow: auto;
}

/* Mobile/touch device only */
@media (hover: none) and (pointer: coarse) {
  .reride-site .mobile-nav-toggle {
    display: block !important;
  }

  .reride-site .global-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    margin-left: 0;
    max-height: calc(100dvh - var(--header-height));
    padding: 10px 20px 18px;
    display: grid;
    overflow-y: auto;
    color: var(--ink-deep);
    background: rgba(255, 252, 248, .99);
    border-bottom: 1px solid rgba(52, 73, 92, .10);
    box-shadow: 0 18px 32px rgba(52, 73, 92, .13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    font-size: .94rem;
    white-space: normal;
    transition: opacity .22s ease, transform .25s ease, visibility .22s ease;
  }

  .reride-site .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .reride-site .global-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(52, 73, 92, .10);
    font-size: .94rem;
  }

  .reride-site .global-nav a:last-child {
    border-bottom: 0;
  }

  .reride-site .global-nav a::after {
    content: none;
  }

  body.reride-nav-open {
    overflow: hidden;
  }
}
