/* =========================
  空き状況 専用ページ（最適化版）
========================= */
.bright-hero-flyer{
  --bhf-bg-1: #f4f9fd;
  --bhf-bg-2: #eef5fb;
  --bhf-line: #d9e4ef;
  --bhf-accent: #6BAED6;
  --bhf-accent-2: #8ecae6;
  --bhf-title: #183b6b;
  --bhf-text: #42556f;

  --bhf-good-bg: #eaf3ff;
  --bhf-good-text: #1b5fd1;
  --bhf-ok-bg: #ebf8f0;
  --bhf-ok-text: #237244;
  --bhf-maybe-bg: #fff6df;
  --bhf-maybe-text: #8a6500;

  --bhf-shadow-lg: 0 20px 48px rgba(20, 45, 84, 0.10);
  --bhf-shadow-md: 0 12px 28px rgba(20, 45, 84, 0.08);
  --bhf-shadow-sm: 0 8px 18px rgba(20, 45, 84, 0.06);

  --bhf-radius-xl: 30px;
  --bhf-radius-lg: 24px;
  --bhf-radius-md: 20px;
  --bhf-radius-sm: 16px;

  position: relative;
  padding: 42px 14px;
  background:
    radial-gradient(circle at top left, rgba(107,174,214,.18), transparent 36%),
    radial-gradient(circle at right center, rgba(168,218,220,.18), transparent 30%),
    linear-gradient(180deg, var(--bhf-bg-1) 0%, var(--bhf-bg-2) 100%);
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

.bhf{
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(107, 174, 214, 0.16);
  border-radius: var(--bhf-radius-xl);
  box-shadow: var(--bhf-shadow-lg);
}

.bhf::before{
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--bhf-accent) 0%, #88c8e7 45%, #b6e3ef 100%);
}

.bhf::after{
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,174,214,.10) 0%, rgba(107,174,214,0) 72%);
  pointer-events: none;
}

.bhf-head{
  padding: 30px 30px 12px;
}

.bhf-info-card{
  position: relative;
  overflow: hidden;
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(245,250,255,.98) 100%);
  border: 1px solid #dbe8f3;
  border-radius: var(--bhf-radius-lg);
  box-shadow: var(--bhf-shadow-md);
}

.bhf-info-card::before{
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,174,214,.16) 0%, rgba(107,174,214,0) 72%);
  pointer-events: none;
}

.bhf-info-card__label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid #d5e7f4;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5fbff 0%, #eaf5fc 100%);
  color: #1a4e82;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  box-shadow: 0 4px 10px rgba(38, 86, 135, 0.05);
}

.bhf-info-card__title{
  margin: 14px 0;
  color: var(--bhf-title);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .01em;
  text-wrap: balance;
}

.bhf-info-card__text{
  margin: 0;
  max-width: 780px;
  color: var(--bhf-text);
  font-size: 16px;
  line-height: 1.95;
  font-weight: 700;
}

.bhf-info-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.bhf-info-card__date,
.bhf-info-card__note{
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid #dce7f0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #51657f;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(20, 45, 84, 0.05);
}

.bhf-swipe-hint,
.sp-only{
  display: none;
}

/* =========================
  カード共通
========================= */
.bhf-cards{
  display: grid;
  gap: 18px;
  padding: 0 30px 20px;
}

.bhf-slot{
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dbe5ef;
  border-radius: var(--bhf-radius-md);
  box-shadow: var(--bhf-shadow-sm);
}

@media (hover: hover){
  .bhf-slot{
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  }

  .bhf-slot:hover{
    transform: translateY(-3px);
    border-color: rgba(107,174,214,.34);
    box-shadow: 0 16px 34px rgba(20, 45, 84, 0.10);
  }
}

.bhf-slot__time{
  position: relative;
  margin: 0;
  padding: 16px 20px 16px 56px;
  border-bottom: 1px solid #dde7f0;
  background: linear-gradient(180deg, #f9fcff 0%, #f2f8fd 100%);
  color: var(--bhf-title);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .01em;
}

.bhf-slot__time::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bhf-accent) 0%, var(--bhf-accent-2) 100%);
  box-shadow: 0 0 0 6px rgba(107,174,214,.14);
}

/* =========================
  通常の週間グリッド
========================= */
.bhf-slot__days{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--bhf-line);
}

.bhf-day{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 108px;
  padding: 16px 8px;
  background: #fff;
  text-align: center;
}

.bhf-slot__days:not(.bhf-slot__days--column) .bhf-day{
  flex-direction: column;
}

.bhf-slot__days:not(.bhf-slot__days--column) .bhf-day:nth-child(odd){
  background: #fcfdff;
}

.bhf-day__label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f5f8fc;
  color: #42556f;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.bhf-day__label.sat{
  background: #eef4ff;
  color: #245cd7;
}

.bhf-day__label.sun{
  background: #fff0f0;
  color: #d62828;
}

/* =========================
  曜日ごとレイアウト
========================= */
.bhf-cards--weekday{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.bhf-slot__days--column{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: transparent;
}

.bhf-slot__days--column .bhf-day{
  justify-content: space-between;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}

.bhf-slot__days--column .bhf-day__label{
  min-width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 700;
}

/* =========================
  状態バッジ
========================= */
.b,
.bhf-legend-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
}

.b{
  min-width: 46px;
  height: 36px;
  padding: 0 10px;
  font-size: 16px;
  letter-spacing: .02em;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.35);
}

.b-good,
.bhf-legend-badge--good{
  background: var(--bhf-good-bg);
  color: var(--bhf-good-text);
  border-color: rgba(27,95,209,.12);
}

.b-ok,
.bhf-legend-badge--ok{
  background: var(--bhf-ok-bg);
  color: var(--bhf-ok-text);
  border-color: rgba(35,114,68,.12);
}

.b-maybe,
.bhf-legend-badge--maybe{
  background: var(--bhf-maybe-bg);
  color: var(--bhf-maybe-text);
  border-color: rgba(138,101,0,.14);
}

/* =========================
  下部情報
========================= */
.bhf-info{
  margin: 0 30px 30px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
  border: 1px solid #dce7f1;
  border-radius: var(--bhf-radius-md);
  box-shadow: var(--bhf-shadow-sm);
}

.bhf-info p{
  margin: 0 0 10px;
  color: var(--bhf-text);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

.bhf-info p:last-child{
  margin-bottom: 0;
}

.bhf-info strong{
  color: var(--bhf-title);
}

.bhf-info-note{
  color: #315a86;
  font-weight: 800;
}

/* =========================
  凡例
========================= */
.bhf-legend,
.bhf-legend-badges{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.bhf-legend{
  gap: 8px;
}

.bhf-legend__item{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bhf-legend__mark{
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.bhf-legend__mark--good{ color: var(--bhf-good-text); }
.bhf-legend__mark--ok{ color: var(--bhf-ok-text); }
.bhf-legend__mark--maybe{ color: var(--bhf-maybe-text); }

.bhf-legend__text{ color: #4b5d75; }
.bhf-legend__sep{ color: #8a9bb0; }

.bhf-legend-badges{
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.bhf-legend-badge{
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: .01em;
  box-shadow: 0 4px 10px rgba(20, 45, 84, 0.05);
}

.bhf-legend-badge__mark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.bhf-legend-badge__text{
  line-height: 1;
}

.bhf-legend-badge--good .bhf-legend-badge__mark{ color: var(--bhf-good-text); }
.bhf-legend-badge--ok .bhf-legend-badge__mark{ color: var(--bhf-ok-text); }
.bhf-legend-badge--maybe .bhf-legend-badge__mark{ color: var(--bhf-maybe-text); }

/* =========================
  タブレット
========================= */
@media (max-width: 991px){
  .bright-hero-flyer{
    padding: 28px 12px;
  }

  .bhf-head{
    padding: 24px 20px 10px;
  }

  .bhf-info-card{
    padding: 22px 20px 20px;
  }

  .bhf-info-card__title{
    font-size: 28px;
  }

  .bhf-info-card__text{
    font-size: 15px;
  }

  .bhf-cards{
    padding: 0 20px 18px;
  }

  .bhf-cards--weekday{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bhf-slot__time{
    padding: 15px 18px 15px 52px;
    font-size: 17px;
  }

  .bhf-slot__time::before{
    left: 18px;
    width: 20px;
    height: 20px;
  }

  .bhf-day{
    min-height: 96px;
    padding: 14px 6px;
  }

  .bhf-info{
    margin: 0 20px 22px;
  }
}

/* =========================
  スマホ
========================= */
@media (max-width: 680px){
  .sp-only{
    display: inline;
  }

  .bhf{
    border-radius: 24px;
  }

  .bhf-head{
    padding: 18px 14px 8px;
  }

  .bhf-info-card{
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .bhf-info-card__label{
    min-height: 30px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .bhf-info-card__title{
    margin: 12px 0 10px;
    font-size: 23px;
    line-height: 1.45;
  }

  .bhf-info-card__text{
    font-size: 14px;
    line-height: 1.85;
  }

  .bhf-info-card__date,
  .bhf-info-card__note{
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .bhf-cards{
    gap: 14px;
    padding: 0 14px 16px;
  }

  .bhf-cards--weekday{
    grid-template-columns: 1fr;
  }

  .bhf-slot{
    border-radius: 16px;
  }

  .bhf-slot__time{
    padding: 13px 14px 13px 46px;
    font-size: 16px;
  }

  .bhf-slot__time::before{
    left: 14px;
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 5px rgba(107,174,214,.12);
  }

  .bhf-slot__days{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bhf-day{
    min-height: 84px;
    gap: 8px;
    padding: 12px 6px;
  }

  .bhf-day__label{
    min-width: 30px;
    min-height: 26px;
    font-size: 12px;
  }

  .b{
    min-width: 40px;
    height: 32px;
    font-size: 15px;
  }

  .bhf-info{
    margin: 0 14px 18px;
    padding: 16px 14px;
    border-radius: 16px;
  }

  .bhf-info p{
    font-size: 14px;
    line-height: 1.8;
  }

  .bhf-legend{
    gap: 6px;
  }

  .bhf-legend__mark{
    font-size: 14px;
  }

  .bhf-legend__text,
  .bhf-legend__sep{
    font-size: 12px;
  }

  .bhf-legend-badges{
    gap: 6px;
  }

  .bhf-legend-badge{
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .bhf-legend-badge__mark{
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}

/* =========================
  小さいスマホ
========================= */
@media (max-width: 420px){
  .bright-hero-flyer{
    padding: 20px 10px;
  }

  .bhf-info-card__title{
    font-size: 21px;
  }

  .bhf-slot__days{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bhf-day{
    min-height: 78px;
  }

  .b{
    min-width: 38px;
    height: 30px;
    font-size: 14px;
  }
}


/* ◎（空き多め）を太く見せる */
.b-good,
.bhf-legend__mark--good,
.bhf-legend-badge--good .bhf-legend-badge__mark{
  font-weight: 1100;
  text-shadow:
    0 0 0.01em currentColor,
    0 0 0.01em currentColor;
}


/* =========================
  ◎（空き多め）をスマホでも太く見せる
  ※ 必ずCSSの一番最後に追加
========================= */

/* PC共通 */
.b-good,
.bhf-legend__mark--good,
.bhf-legend-badge--good .bhf-legend-badge__mark{
  font-weight: 900;
  text-shadow:
    0 0 0.02em currentColor,
    0 0 0.02em currentColor;
}

/* スマホ */
@media (max-width: 680px){
  /* 表内の◎ */
  .b-good{
    font-weight: 900;
    font-size: 17px;          /* 既存15pxより少し大きく */
    transform: scale(1.12);   /* 少し拡大 */
    text-shadow:
      0 0 0.02em currentColor,
      0 0 0.02em currentColor,
      0 0 0.02em currentColor;
  }

  /* 凡例の◎ */
  .bhf-legend-badge--good .bhf-legend-badge__mark{
    width: 20px;              /* 既存18pxより少し大きく */
    height: 20px;
    font-size: 13px;          /* 既存11pxより少し大きく */
    font-weight: 900;
    transform: scale(1.12);
    text-shadow:
      0 0 0.02em currentColor,
      0 0 0.02em currentColor,
      0 0 0.02em currentColor;
  }
}

/* 小さいスマホ */
@media (max-width: 420px){
  .b-good{
    font-size: 16px;
    transform: scale(1.10);
  }

  .bhf-legend-badge--good .bhf-legend-badge__mark{
    width: 19px;
    height: 19px;
    font-size: 12px;
    transform: scale(1.10);
  }
}

/* =========================
  動きを減らしたい環境向け
========================= */
@media (prefers-reduced-motion: reduce){
  .bhf-slot{
    transition: none;
  }
}