@charset "UTF-8";
/* =====================================================
   公開講座カレンダー（/schedule/）
   色はサイト共通の :root 変数（css/style.css）を使う
   ===================================================== */

.os-page {
  --os-max: 960px;
  --os-open: #1d7a3a;
  --os-open-bg: #e3f4e6;
  --os-few: #9a5b00;
  --os-few-bg: #fff1d6;
  --os-off: #5a6673; /* 白・薄グレー背景のどちらでもコントラスト比4.5以上 */
  --os-off-bg: #edf0f3;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--c-text);
}

.os-inner {
  max-width: var(--os-max);
  margin: 0 auto;
  padding: 0 16px;
}

.os-pc { display: none; }

/* ── ヒーロー ── */
.os-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.os-hero__label {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
}
.os-hero__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}
.os-hero__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* ── パンくず ── */
.os-breadcrumb {
  display: flex;
  gap: 8px;
  max-width: var(--os-max);
  margin: 0 auto;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-text-mid);
}
.os-breadcrumb p { margin: 0; }
.os-breadcrumb a { color: var(--c-blue); }

/* ── 日程一覧 ── */
.os-body { padding: 24px 0 64px; }

.os-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.os-tabs[hidden] { display: none; }
.os-tab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 2px solid var(--c-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--c-blue);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.os-tab[aria-selected="true"] {
  background: var(--c-blue);
  color: #fff;
}
.os-tab:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 2px;
}

.os-month + .os-month { margin-top: 40px; }
.os-calendar.is-tabbed .os-month + .os-month { margin-top: 0; }
.os-month[hidden] { display: none; }
.os-month__title {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--c-blue);
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
}

.os-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.os-item { border-bottom: 1px solid var(--c-gray-border); }
.os-item__body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  color: inherit;
  text-decoration: none;
}
a.os-item__body:hover { background: var(--c-gray-bg); }
a.os-item__body:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: -3px;
}

.os-item__date {
  flex: 0 0 88px;
  margin: 0;
}
.os-item__day {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
}
.os-item__days {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--c-text-mid);
}

.os-item__main {
  flex: 1;
  min-width: 0;
}
.os-item__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
a.os-item__body .os-item__name { color: var(--c-blue); }
.os-item__sessions {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text);
}
.os-item__session { white-space: nowrap; } /* 1回分の日付と曜日を途中で折り返さない */
.os-item__time {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--c-text-mid);
}
.os-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.os-item__arrow {
  flex: 0 0 auto;
  color: var(--c-text-light);
}

.os-tag {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--c-blue-light);
  color: var(--c-navy-mid);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.os-tag--open { background: var(--os-open-bg); color: var(--os-open); font-weight: 700; }
.os-tag--few { background: var(--os-few-bg); color: var(--os-few); font-weight: 700; }
.os-tag--full,
.os-tag--canceled { background: var(--os-off-bg); color: var(--os-off); font-weight: 700; }

/* 満席：行全体をグレーに（LPへのリンクは残す） */
.os-item.is-full .os-item__body { background: #f7f8fa; }
.os-item.is-full .os-item__day,
.os-item.is-full .os-item__name { color: var(--os-off); }

/* 中止：講座名に取り消し線 */
.os-item.is-canceled .os-item__day,
.os-item.is-canceled .os-item__name { color: var(--os-off); }
.os-item.is-canceled .os-item__name { text-decoration: line-through; }

/* 日程0件 */
.os-empty {
  margin: 0;
  padding: 48px 16px;
  border-radius: 8px;
  background: var(--c-gray-bg);
  text-align: center;
  line-height: 1.9;
}
.os-empty a {
  color: var(--c-blue);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .os-pc { display: inline; }
  .os-inner { padding: 0 24px; }
  .os-breadcrumb { padding: 12px 24px; }
  .os-hero { padding: 64px 0 56px; }
  .os-hero__title { font-size: 36px; }
  .os-item__body { padding: 18px 12px; }
  .os-item__date { flex-basis: 120px; }
}
