/* ==========================================================================
   HIRO 教室予約 — フロント用スタイル
   既存テーマ（front-page.css）の配色・書体に合わせています
   ========================================================================== */

.hlb {
  --hlb-text:       #4a6070;
  --hlb-text-light: #7a96a6;
  --hlb-bg:         #f3f5f9;
  --hlb-bg-mint:    #edf2f1;
  --hlb-accent:     #94bae6;
  --hlb-green:      #93d157;
  --hlb-border:     #c4d1e8;
  --hlb-font-en:    'EB Garamond', serif;
  --hlb-font-ja:    "游明朝", "Yu Mincho", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;

  color: var(--hlb-text);
  font-family: var(--hlb-font-ja);
  line-height: 1.9;
}

.hlb *,
.hlb *::before,
.hlb *::after { box-sizing: border-box; }

/* --- 見出し ------------------------------------------------------------- */
.hlb-intro,
.hlb-status__head {
  text-align: center;
  margin: 0 0 40px;
}

.hlb-label {
  display: block;
  font-family: var(--hlb-font-en);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--hlb-text-light);
  margin-bottom: 12px;
}

.hlb-title {
  font-family: var(--hlb-font-ja);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: normal;
  color: var(--hlb-text);
  line-height: 1.7;
  margin: 0;
}

.hlb-divider {
  width: 56px;
  height: 1px;
  background: linear-gradient(to right, #94bae6, #93d157);
  margin: 24px auto;
}

.hlb-lead {
  font-size: 15px;
  color: var(--hlb-text-light);
  margin: 0;
}

/* --- 教室ブロック -------------------------------------------------------- */
.hlb-lesson {
  border-top: 1px solid var(--hlb-border);
  padding: 40px 0 8px;
}

.hlb-lesson:first-of-type { border-top: none; }

.hlb-lesson__head { margin-bottom: 18px; }

.hlb-lesson__sub {
  display: block;
  font-family: var(--hlb-font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hlb-text-light);
  margin-bottom: 6px;
}

.hlb-lesson__title {
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: normal;
  margin: 0 0 6px;
  color: var(--hlb-text);
}

.hlb-lesson__freq {
  font-size: 13px;
  color: var(--hlb-text-light);
  margin: 0;
}

.hlb-lesson__desc {
  font-size: 15px;
  margin-bottom: 22px;
}

.hlb-lesson__desc p { margin: 0 0 8px; }

/* --- 日程リスト ---------------------------------------------------------- */
.hlb-sessions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hlb-session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--hlb-border);
  padding: 20px 22px;
  margin-bottom: 12px;
}

.hlb-session--full,
.hlb-session--closed,
.hlb-session--past { background: var(--hlb-bg); }

.hlb-session__main { flex: 1 1 300px; }

.hlb-session__date {
  font-size: 19px;
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}

.hlb-session__time {
  font-size: 14px;
  color: var(--hlb-text-light);
  margin-left: 10px;
}

.hlb-session__meta {
  font-size: 13px;
  color: var(--hlb-text-light);
  margin: 0;
}

.hlb-session__meta span { margin-right: 16px; white-space: nowrap; }

.hlb-session__note {
  font-size: 13px;
  margin: 6px 0 0;
  color: var(--hlb-text-light);
}

.hlb-session__action {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

/* --- バッジ -------------------------------------------------------------- */
.hlb-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border: 1px solid var(--hlb-border);
  border-radius: 999px;
  white-space: nowrap;
  background: #fff;
}

.hlb-badge--open   { color: #4e8a3a; border-color: #bcdca0; background: #f5faef; }
.hlb-badge--few    { color: #b07a2b; border-color: #e6cfa5; background: #fdf8ef; }
.hlb-badge--full   { color: #a2555b; border-color: #e0bfc2; background: #fbf3f4; }
.hlb-badge--closed,
.hlb-badge--past   { color: #8b9aa4; border-color: #d6dee6; background: #f4f6f8; }

/* --- ボタン -------------------------------------------------------------- */
.hlb-btn {
  display: inline-block;
  font-family: var(--hlb-font-en);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--hlb-text);
  background: #fff;
  border: 1px solid var(--hlb-accent);
  padding: 11px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
  white-space: nowrap;
}

.hlb-btn:hover {
  background: var(--hlb-accent);
  color: #fff;
  text-decoration: none;
  opacity: 1;
}

.hlb-btn--primary {
  background: var(--hlb-accent);
  border-color: var(--hlb-accent);
  color: #fff;
  padding: 13px 44px;
  font-size: 14px;
}

.hlb-btn--primary:hover { background: #7ba9dd; border-color: #7ba9dd; }

.hlb-btn--line { background: transparent; }

.hlb-btn--disabled {
  border-color: #d6dee6;
  color: #a9b6bf;
  background: #f4f6f8;
  cursor: default;
  pointer-events: none;
}

.hlb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin: 34px 0 10px;
}

/* --- フォーム ------------------------------------------------------------ */
.hlb-summary {
  background: var(--hlb-bg-mint);
  border: 1px solid var(--hlb-border);
  padding: 24px 26px;
  margin-bottom: 30px;
}

.hlb-summary__lesson {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--hlb-text-light);
  margin: 0 0 4px;
}

.hlb-summary__date {
  font-size: 21px;
  margin: 0 0 10px;
}

.hlb-summary__date span {
  font-size: 15px;
  color: var(--hlb-text-light);
  margin-left: 8px;
}

.hlb-summary__row { font-size: 14px; margin: 0 0 4px; }

.hlb-note {
  font-size: 13px;
  color: var(--hlb-text-light);
  margin: 12px 0 0;
}

.hlb-form { max-width: 640px; margin: 0 auto; }

.hlb-field { margin-bottom: 22px; }

.hlb-field label {
  display: block;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}

.hlb-field input[type="text"],
.hlb-field input[type="email"],
.hlb-field input[type="tel"],
.hlb-field select,
.hlb-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--hlb-text);
  background: #fff;
  border: 1px solid var(--hlb-border);
  border-radius: 0;
  padding: 12px 14px;
  -webkit-appearance: none;
  appearance: none;
}

.hlb-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--hlb-text-light) 50%), linear-gradient(135deg, var(--hlb-text-light) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.hlb-field input:focus,
.hlb-field select:focus,
.hlb-field textarea:focus {
  outline: none;
  border-color: var(--hlb-accent);
  box-shadow: 0 0 0 3px rgba(148, 186, 230, .18);
}

.hlb-req {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #a2555b;
  border: 1px solid #e0bfc2;
  background: #fbf3f4;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: 2px;
}

.hlb-help,
.hlb-privacy {
  font-size: 12px;
  color: var(--hlb-text-light);
  margin: 6px 0 0;
}

.hlb-privacy { text-align: center; margin-top: 20px; }

/* ハニーポット（人には見せない） */
.hlb-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* --- 完了・詳細 ---------------------------------------------------------- */
.hlb-detail {
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--hlb-border);
}

.hlb-detail > div {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hlb-border);
  padding: 14px 4px;
}

.hlb-detail dt {
  flex: 0 0 130px;
  font-size: 13px;
  color: var(--hlb-text-light);
  font-weight: normal;
  margin: 0;
}

.hlb-detail dd { flex: 1 1 200px; margin: 0; font-size: 15px; }

.hlb-alert {
  border: 1px solid #e0bfc2;
  background: #fbf3f4;
  color: #a2555b;
  padding: 14px 18px;
  font-size: 14px;
  margin: 0 0 24px;
}

.hlb-empty {
  font-size: 14px;
  color: var(--hlb-text-light);
  background: var(--hlb-bg);
  padding: 16px 20px;
  margin: 0 0 12px;
}

.hlb-cancel-link {
  text-align: center;
  font-size: 13px;
  color: var(--hlb-text-light);
  margin: 34px 0 0;
}

.hlb-cancel-link a { color: var(--hlb-text); text-decoration: underline; }

/* --- トップページ用の予約状況 -------------------------------------------- */
.hlb-front-section { background: var(--hlb-bg); }

.hlb-status__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.hlb-status__col {
  flex: 1 1 260px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--hlb-border);
  padding: 24px 24px 20px;
}

.hlb-status__lesson {
  font-size: 17px;
  font-weight: normal;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hlb-border);
}

.hlb-status__sub {
  display: block;
  font-family: var(--hlb-font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hlb-text-light);
  margin-bottom: 4px;
}

.hlb-status__list { list-style: none; margin: 0; padding: 0; }

.hlb-status__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  padding: 7px 0;
}

.hlb-status__date { letter-spacing: 0.04em; }

.hlb-status__empty {
  font-size: 13px;
  color: var(--hlb-text-light);
  margin: 0;
}

.hlb-status__more { text-align: center; margin: 34px 0 0; }

/* --- スマートフォン ------------------------------------------------------ */
@media (max-width: 767px) {
  .hlb-session {
    padding: 18px 16px;
    align-items: flex-start;
  }

  .hlb-session__action {
    width: 100%;
    justify-content: space-between;
  }

  .hlb-session__meta span {
    display: block;
    margin: 0 0 2px;
    white-space: normal;
  }

  .hlb-btn { padding: 11px 20px; }

  .hlb-btn--primary { width: 100%; text-align: center; }

  .hlb-actions { flex-direction: column-reverse; align-items: stretch; text-align: center; }

  .hlb-detail dt { flex: 0 0 100px; }
}

/* --------------------------------------------------------------------------
   カレンダー表示
   -------------------------------------------------------------------------- */
.hlb-cal {
  margin: 0 0 48px;
}

.hlb-cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.hlb-cal__title {
  font-family: var(--hlb-font-en);
  font-size: 20px;
  letter-spacing: 0.08em;
  min-width: 140px;
  text-align: center;
}

.hlb-cal__navbtn {
  font-size: 13px;
  color: var(--hlb-text-light);
  text-decoration: none;
  border: 1px solid var(--hlb-border);
  background: #fff;
  padding: 6px 14px;
  white-space: nowrap;
  transition: background .3s ease, color .3s ease;
}

.hlb-cal__navbtn:hover {
  background: var(--hlb-bg-mint);
  color: var(--hlb-text);
  text-decoration: none;
}

.hlb-cal__caption {
  text-align: center;
  font-size: 15px;
  margin: 26px 0 10px;
}

.hlb-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--hlb-border);
  border: 1px solid var(--hlb-border);
}

.hlb-cal__head {
  background: var(--hlb-bg-mint);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 0;
  color: var(--hlb-text-light);
}

.hlb-cal__head--0 { color: #b47c80; }
.hlb-cal__head--6 { color: #6d8ec0; }

.hlb-cal__cell {
  background: #fff;
  min-height: 92px;
  padding: 6px 6px 8px;
}

.hlb-cal__cell--empty { background: var(--hlb-bg); }

.hlb-cal__cell--today { box-shadow: inset 0 0 0 2px var(--hlb-accent); }

.hlb-cal__day {
  display: block;
  font-family: var(--hlb-font-en);
  font-size: 14px;
  color: var(--hlb-text-light);
  margin-bottom: 5px;
}

.hlb-cal__cell--w0 .hlb-cal__day { color: #b47c80; }
.hlb-cal__cell--w6 .hlb-cal__day { color: #6d8ec0; }

.hlb-cal__item {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid var(--hlb-border);
  border-radius: 3px;
  padding: 3px 5px;
  margin-bottom: 4px;
  transition: opacity .3s ease;
}

.hlb-cal__item:hover { text-decoration: none; opacity: .75; }

.hlb-cal__item-name { display: block; font-weight: bold; }
.hlb-cal__item-state { display: block; font-size: 10px; }

.hlb-cal__item--open   { color: #4e8a3a; border-color: #bcdca0; background: #f5faef; }
.hlb-cal__item--few    { color: #b07a2b; border-color: #e6cfa5; background: #fdf8ef; }
.hlb-cal__item--full   { color: #a2555b; border-color: #e0bfc2; background: #fbf3f4; }
.hlb-cal__item--closed { color: #8b9aa4; border-color: #d6dee6; background: #f4f6f8; }

.hlb-cal__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 12px;
  color: var(--hlb-text-light);
}

.hlb-cal__legend li { display: flex; align-items: center; gap: 6px; }

.hlb-cal__chip {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--hlb-border);
  display: inline-block;
}

.hlb-cal__chip--open   { border-color: #bcdca0; background: #f5faef; }
.hlb-cal__chip--few    { border-color: #e6cfa5; background: #fdf8ef; }
.hlb-cal__chip--full   { border-color: #e0bfc2; background: #fbf3f4; }
.hlb-cal__chip--closed { border-color: #d6dee6; background: #f4f6f8; }

@media (max-width: 767px) {
  .hlb-cal__nav { gap: 10px; }
  .hlb-cal__title { font-size: 17px; min-width: 110px; }
  .hlb-cal__navbtn { padding: 6px 10px; font-size: 12px; }
  .hlb-cal__cell { min-height: 62px; padding: 4px 3px 5px; }
  .hlb-cal__day { font-size: 12px; margin-bottom: 3px; }
  .hlb-cal__item { font-size: 9px; padding: 2px 3px; margin-bottom: 2px; }
  .hlb-cal__item-state { display: none; }
}

/* 月送り中（Ajax読み込み中）の表示 */
.hlb-cal.is-loading {
  opacity: .45;
  pointer-events: none;
  transition: opacity .15s ease;
}

.hlb-cal__none {
  text-align: center;
  font-size: 13px;
  color: var(--hlb-text-light);
  margin: 14px 0 0;
}

/* 申し込みフォーム：区分ごとの人数 */
.hlb-counts {
  border: 1px solid var(--hlb-border);
  background: #fff;
  padding: 6px 18px 14px;
}

.hlb-counts__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hlb-bg);
}

.hlb-counts__row:last-of-type { border-bottom: none; }

.hlb-counts__label { font-size: 15px; line-height: 1.6; flex: 1 1 auto; }

.hlb-counts__price {
  display: block;
  font-size: 12px;
  color: var(--hlb-text-light);
  margin-top: 2px;
}

.hlb .hlb-counts__row select.hlb-counts__select,
.hlb-counts__select {
  width: 120px;
  min-width: 120px;
  flex: 0 0 120px;
  font-family: inherit;
  font-size: 16px;
  color: var(--hlb-text);
  background: #fff;
  border: 1px solid var(--hlb-border);
  border-radius: 0;
  padding: 10px 12px;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--hlb-text-light) 50%), linear-gradient(135deg, var(--hlb-text-light) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.hlb-counts__total {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hlb-border);
  text-align: right;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--hlb-text);
}

.hlb-counts__total.is-empty { color: var(--hlb-text-light); font-size: 13px; }
.hlb-counts__total.is-over  { color: #a2555b; }

@media (max-width: 767px) {
  .hlb-counts { padding: 4px 14px 12px; }
  .hlb .hlb-counts__row select.hlb-counts__select,
  .hlb-counts__select { width: 104px; min-width: 104px; flex: 0 0 104px; padding: 9px 10px; }
}
