/* =========================================================
   KYABEL SITE 64 — responsive.css
   ≥1280px = 3カラム固定レール（style.css）。
   <1280px = 単一カラム＋上部バー＋左ドロワー／右ボトムシート。
   初回料金・本日出勤はヒーロー直後へ再掲（レール情報を消さず変換）。
   モバイル固定CTA（FIRST / HOST / PRICE / LINE）は ≤768px。
   ========================================================= */

/* 中央本文の可読幅（広い中間帯でも間延びさせない） */
@media (min-width: 600px) {
  .event-card { grid-template-columns: 40% minmax(0, 1fr); align-items: stretch; }
  .event-card__ph { aspect-ratio: auto; }
  .recruit__points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
  /* 下層 */
  .cd__top { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .sched-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys-first { grid-template-columns: auto minmax(0, 1fr); }
  .rc-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc-flow div { grid-template-columns: 56px minmax(0, 1fr); }
}
/* HOST詳細の写真列はデスクトップで固定気味に */
@media (min-width: 1280px) {
  .cd__top { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
/* 狭幅では field 行を縦積み */
@media (max-width: 519.98px) {
  .field--row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559.98px) {
  .pickup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 上部バー・ドロワー・ボトムシート（<1280px） ===== */
@media (max-width: 1279.98px) {
  body { padding-top: var(--topbar-h); }
  .rail--left, .rail--right { display: none; }
  .center { max-width: 760px; margin: 0 auto; }
  .recap { display: block; }

  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 55; height: var(--topbar-h);
    padding: 0 14px; background: rgba(245,242,234,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .topbar__burger { width: 46px; height: 46px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: var(--radius); color: var(--char); background: #fff; }
  .topbar__burger svg { width: 22px; height: 22px; }
  .topbar__brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
  .topbar__brand img { width: 30px; height: 30px; }
  .topbar__brand b { font-family: var(--f-display); font-size: 1.25rem; letter-spacing: .05em; color: var(--char); font-weight: 600; }
  .topbar__first { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
    border-radius: var(--radius); background: var(--camel); color: var(--on-camel); font-size: 14px; font-weight: 600; border: 1.5px solid var(--camel); }
  .topbar__first svg { width: 16px; height: 16px; }
}

/* デスクトップでは上部バー・ドロワートグルを完全に隠す */
@media (min-width: 1280px) {
  .topbar { display: none !important; }
}

/* ===== モバイル固定CTA（FIRST / HOST / PRICE / LINE）＝ ≤768px ===== */
@media (max-width: 768px) {
  .fixcta {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; height: var(--cta-h);
    background: var(--char); border-top: 1px solid #4a483f;
  }
  .fixcta a, .fixcta button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: #e7e0d2; font-size: 12px; letter-spacing: .04em; min-height: 44px;
    border-right: 1px solid #4a483f; font-family: var(--f-mono);
  }
  .fixcta > :last-child { border-right: 0; }
  .fixcta b { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
  .fixcta svg { width: 20px; height: 20px; color: var(--camel-hi); }
  .fixcta .is-accent { color: var(--camel-hi); }
}
@media (min-width: 769px) {
  :root { --cta-h: 0px; }
  .fixcta { display: none !important; }
}

/* 極小端末の詰め（文字は縮めず余白/カラムで調整） */
@media (max-width: 360px) {
  .center { padding-left: 14px; padding-right: 14px; }
  .rail { padding-left: 14px; padding-right: 14px; }
  .host-grid { gap: 12px; }
}
