/* ============================================
   ファインシティ横濱鶴見 LP共通CSS
   ============================================ */

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
/* ── Visually hidden (accessible to crawlers/screen readers) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ────────────────────────────── */
.serif { font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; }
.en    { font-family: 'EB Garamond', 'Georgia', serif; }

/* ── Layout ────────────────────────────────── */
.inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}
.inner--narrow { max-width: 780px; }
.inner--wide   { max-width: 1200px; }

/* ── Section spacing ───────────────────────── */
.section { padding: 80px 0; }
.section--sm { padding: 56px 0; }
.section--lg { padding: 112px 0; }

/* ── Section headings ──────────────────────── */
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head__en {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  display: block;
  line-height: 1.2;
  text-transform: uppercase;
}
.sec-head__ja {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  display: block;
  margin-top: 8px;
  line-height: 1.4;
}
.sec-head__body {
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-top: 20px;
}

/* ── FV (First View) ───────────────────────── */
.fv {
  position: relative;
  height: min(800px, 82vh);
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.fv__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--fv-bg);
}
.fv__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,0.65) 100%
  );
}
/* ── FV Main Visual (LP-specific CG image) ─── */
.fv__mv {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  z-index: 1;
}
/* SP: MV image becomes full-width hero, stacked above the text block */
@media (max-width: 768px) {
  .fv__mv {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: none;
    max-width: 100%;
    z-index: 0;
    display: block;
  }
}

.fv__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 56px;
  max-width: 1060px;
  margin: 0 auto;
  color: #fff;
}
.fv__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 12px;
  margin-bottom: 16px;
  border-radius: 2px;
}
.fv__sub {
  font-size: clamp(13px, 1.8vw, 16px);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  opacity: 0.9;
}
.fv__main {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.fv__price {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  background: var(--color-price-bg, rgba(0,0,0,0.45));
  border-left: 4px solid var(--color-accent);
  padding: 12px 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.fv__price-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.fv__price-label {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 0.08em;
}
.fv__price-num {
  font-family: -apple-system, 'Helvetica Neue', Arial, 'Noto Sans JP', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.fv__price-unit {
  font-size: 13px;
  opacity: 0.85;
}
.fv__note {
  font-size: 10px;
  opacity: 0.6;
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* ── CTA Block ─────────────────────────────── */
.cta {
  background: var(--color-cta-bg, var(--color-primary));
  padding: 48px 24px;
}
.cta__inner { max-width: 880px; margin: 0 auto; }
.cta__lead {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.cta__lead strong { color: #fff; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
}
/* mid-page CTA insert */
.cta--mid { padding: 36px 24px; }
.cta--mid .cta__lead { font-size: 14px; margin-bottom: 18px; }
.cta--mid .cta-grid { max-width: 480px; margin: 0 auto; }
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px;
  border-radius: 8px;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-align: center;
  line-height: 1.3;
}
.cta-btn:hover { opacity: 0.88; transform: translateY(-2px); }
.cta-btn__sub {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.06em;
}
.cta-btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.cta-btn--secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.cta-btn--site {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 12px;
}

/* ── Feature cards ─────────────────────────── */
.features { padding: 80px 0; background: var(--color-bg); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.feature-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.feature-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.feature-card:hover .feature-card__img img { transform: scale(1.04); }
.feature-card__body { padding: 24px; }
.feature-card__no {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  display: block;
}
.feature-card__title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}
.feature-card__text {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-muted);
}

/* ── Cost comparison ───────────────────────── */
.cost { padding: 80px 0; background: var(--color-cost-bg, #f8f8f8); }
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
  font-size: 14px;
}
.cost-table th, .cost-table td {
  padding: 16px 20px;
  text-align: center;
  border: 1px solid var(--color-border, #e0e0e0);
  line-height: 1.5;
}
.cost-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cost-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.025); }
.cost-table .highlight {
  background: var(--color-accent-light, #fff8ee) !important;
  font-weight: 700;
  color: var(--color-primary);
}
.cost-table .num {
  font-family: -apple-system, 'Helvetica Neue', Arial, 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.cost-note {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.7;
}

/* ── Persona section ───────────────────────── */
.persona { padding: 80px 0; background: var(--color-persona-bg, var(--color-primary)); }
.persona__inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.persona__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.persona__img { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; position: relative; }
.persona__img img { width: 100%; height: 100%; object-fit: cover; }
.persona__copy { color: #fff; }
.persona__label {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 3px 10px;
  margin-bottom: 20px;
  border-radius: 2px;
}
.persona__heading {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}
.persona__text {
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 2;
  opacity: 0.85;
}
.persona__list { margin-top: 24px; }
.persona__list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.9;
}
.persona__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ── Spec table ─────────────────────────────── */
.specs { padding: 80px 0; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 40px;
}
.spec-table th, .spec-table td {
  padding: 14px 20px;
  border: 1px solid var(--color-border, #e0e0e0);
  line-height: 1.7;
  text-align: left;
}
.spec-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  width: 28%;
  letter-spacing: 0.04em;
  vertical-align: top;
}
.spec-table td { background: #fff; }

/* ── Sticky CTA footer ─────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  min-height: 68px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
  transition: transform 0.3s ease;
}
.sticky-cta--hidden { transform: translateY(100%); }
.sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
  line-height: 1.3;
  padding: 0 12px;
  min-height: 68px;
}
.sticky-cta__btn:hover { opacity: 0.88; }
.sticky-cta__btn--request {
  background: transparent;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
}
.sticky-cta__btn--reserve {
  background: var(--color-accent);
  color: #fff;
}
/* legacy (kept for LP-specific overrides) */
.sticky-cta__btn--entry { background: var(--color-primary); color: #fff; }
.sticky-cta__btn--site  { background: var(--color-bg-dark, #2c2c2c); color: rgba(255,255,255,0.8); font-size: 12px; }

/* ── Legal footer ───────────────────────────── */
.lp-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.55);
  padding: 40px 24px;
  font-size: 11px;
  line-height: 1.9;
}
.lp-footer__inner { max-width: 960px; margin: 0 auto; }
.lp-footer__title {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  font-weight: 600;
}
.lp-footer__logo {
  margin-bottom: 20px;
}
.lp-footer__logo img { height: 28px; filter: brightness(0.6); }

/* ── Scroll animations ──────────────────────── */
.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-fade.is-visible {
  opacity: 1;
  transform: none;
}
.js-fade--delay-1 { transition-delay: 0.1s; }
.js-fade--delay-2 { transition-delay: 0.2s; }
.js-fade--delay-3 { transition-delay: 0.3s; }

/* ── Table scroll wrapper ───────────────────── */
.cost-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Image captions (photo/CG overlay) ─────── */
.img-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.42);
  color: rgba(255,255,255,0.88);
  font-size: 9px;
  font-style: italic;
  padding: 2px 7px;
  letter-spacing: 0.04em;
  z-index: 2;
  pointer-events: none;
  line-height: 1.5;
}
.section-note {
  font-size: 10px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-top: 12px;
  letter-spacing: 0.04em;
}
.plan-madori__ref-note {
  font-size: 10px;
  color: var(--color-text-muted);
  font-style: italic;
  letter-spacing: 0.06em;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Divider ────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 20px auto;
}
.divider--left { margin-left: 0; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  /* 全体spacing */
  .section    { padding: 56px 0; }
  .section--lg { padding: 64px 0; }
  .inner      { padding: 0 20px; }
  .sec-head   { margin-bottom: 32px; }
  .sec-head__en   { font-size: 11px; }
  .sec-head__ja   { font-size: 22px; }
  .sec-head__body { font-size: 14px; margin-top: 14px; line-height: 1.9; }

  /* FV — vertical stack: MV image on top, text block below */
  .fv {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg-dark, #111928);
  }
  .fv__bg { display: none; }  /* photo BG hidden on SP; MV PNG is the hero */
  .fv__inner {
    position: relative;
    z-index: auto;
    padding: 24px 20px 20px;
    background: var(--color-bg-dark, #111928);
  }
  .fv__badge      { font-size: 11px; padding: 4px 12px; margin-bottom: 12px; }
  .fv__sub        { font-size: 13px; margin-bottom: 8px; letter-spacing: 0.05em; }
  .fv__main       { font-size: clamp(26px, 7vw, 38px); margin-bottom: 16px; letter-spacing: 0.02em; }
  .fv__price      {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    width: 100%;
  }
  .fv__price-item  { align-items: baseline; gap: 6px; }
  .fv__price-label { font-size: 12px; letter-spacing: 0.06em; opacity: 0.75; }
  .fv__price-num   { font-size: clamp(40px, 11vw, 52px); }
  .fv__price-unit  { font-size: clamp(18px, 4.5vw, 22px); }
  .fv__note        { font-size: 10px; }

  /* CTA ブロック */
  .cta        { padding: 24px 20px; }
  .cta__lead  { font-size: 13px; margin-bottom: 20px; line-height: 1.8; }
  .cta__lead strong { font-size: 18px; display: block; margin-top: 6px; }
  .cta-grid   { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cta-btn--primary { order: -1; grid-column: 1 / -1; }
  .cta-btn    { padding: 18px 12px; font-size: 15px; min-height: 56px; }
  .cta-btn__sub { font-size: 11px; margin-top: 2px; }

  /* Feature cards */
  .features        { padding: 56px 0; }
  .features__grid  { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .feature-card__body  { padding: 20px 18px; }
  .feature-card__no    { font-size: 12px; margin-bottom: 8px; }
  .feature-card__title { font-size: 18px; margin-bottom: 10px; line-height: 1.45; text-wrap: balance; }
  .feature-card__text  { font-size: 14px; line-height: 1.95; }

  /* Cost table */
  .cost { padding: 56px 0; }
  .cost .inner { padding: 0 20px; }
  .cost .sec-head { padding: 0; }
  .cost .cost-note { padding: 0; margin-top: 16px; font-size: 12px; line-height: 1.8; }
  .cost-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cost-table      { font-size: 13px; min-width: 480px; margin-top: 24px; }
  .cost-table th, .cost-table td { padding: 13px 12px; }
  .cost-table .num { font-size: 16px; }

  /* Persona */
  .persona        { padding: 56px 0; }
  .persona__inner { padding: 0 20px; }
  .persona__row   { grid-template-columns: 1fr; gap: 28px; }
  .persona__label { font-size: 12px; margin-bottom: 16px; }
  .persona__heading { font-size: clamp(22px, 5.5vw, 28px); line-height: 1.55; margin-bottom: 20px; }
  .persona__text    { font-size: 15px; line-height: 2; }
  .persona__list    { margin-top: 20px; }
  .persona__list li { font-size: 14px; padding: 12px 0; gap: 12px; }

  /* Spec table */
  .specs  { padding: 56px 0; }
  .spec-table { margin-top: 28px; }
  .spec-table th, .spec-table td { padding: 13px 14px; font-size: 13px; line-height: 1.7; }
  .spec-table th { width: 30%; }

  /* Sticky CTA */
  .sticky-cta { min-height: 64px; }
  .sticky-cta__btn { min-height: 64px; font-size: 13px; letter-spacing: 0.04em; }
}

@media (max-width: 480px) {
  .fv__main    { font-size: 24px; }
  .cta-grid    { grid-template-columns: 1fr; gap: 8px; }
  .cta-btn--primary { grid-column: auto; order: -1; }
  .cta-btn     { padding: 20px 12px; }
  .features__grid { grid-template-columns: 1fr; }
  .sec-head__en { font-size: 11px; }
  .sec-head__ja { font-size: 20px; }
  .feature-card__title { font-size: 17px; }
  .persona__heading { font-size: 22px; }
}

/* ── Bus Cards (共通) ───────────────────────── */
.bus-cards-block { margin-top: 16px; }

.bus-lead {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}

.bus-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0 14px;
  align-items: center;
}
.bus-card:last-child { margin-bottom: 0; }

.bus-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bus-station {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text, #111);
  line-height: 1;
}

.bus-stop-name {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bus-route {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.3;
  opacity: 0.75;
}

.bus-divider {
  width: 0.5px;
  height: 52px;
  background: rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.bus-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.bus-freq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 20px;
  background: #f5f5f5;
  color: var(--color-text-muted);
  border: 0.5px solid rgba(0,0,0,0.15);
  white-space: nowrap;
}

.bus-time {
  font-family: 'Garamond Premier Pro', 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-accent);
  white-space: nowrap;
}
.bus-time .yaku {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-right: 1px;
  vertical-align: 0.1em;
  font-family: inherit;
}
.bus-time .wave {
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-muted);
}
.bus-time .unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 1px;
  font-family: inherit;
}
