/* =====================================================================
   2026-11-12 セミナー開催情報ページ（/event/seminar・PC/SP両版）＝直近の開催日程ブロック
   ・TOPの「無料セミナー・キャンペーン情報」タブ（index.html #cpane-sem ／ css/style.css の .cbox__* ）と同じ見た目を、
     このページ用に .semlist の中だけへ移植したもの。style.css はこのページ（旧テーマCSS）では読み込まない（崩れるため）
   ・描画＝js/top-seminars.js（TOPと同じファイル。[data-sem] を探して /contact/seminars から直近3件を描く）
   ・色はTOPの値をそのまま（CSS変数は .semlist に定義＝ページ全体には効かせない）
   ・SPの切り替え幅＝TOPと同じ 840px
   ===================================================================== */
.semlist-hd { margin-top: -46px; position: relative; z-index: 1; clear: both; }
.semlist {
  --cb-pink: #B32469;
  --cta: #D42F7A;
  --cta-dk: #B32469;
  --text: #1E2A3A;
  --text-mid: #465364;
  --soft-bd: #F6D5E3;
  box-sizing: border-box;
  max-width: 1100px; margin: 16px auto 64px; background: #fff; /* 2026-11-12 見出しを足したので上の詰め（-46px）は見出し側 .semlist-hd へ移した。旧メモ：上＝前の空き枠ぶん詰める（置き換えた旧見出し枠の ex-topSpacingTweak-up-9s と同じ考え方。旧ページと同じ約74pxの間隔になる） */
  border: 1px solid var(--soft-bd); border-radius: 12px;
  box-shadow: 0 6px 24px rgba(192,82,122,.07);
  padding: 24px 28px 28px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px; font-weight: 400; line-height: 1.9; color: var(--text); text-align: center;
  position: relative; z-index: 1; clear: both;
}
/* 旧テーマの p / ul / li / dl / a の装飾をこの中だけ打ち消す */
.semlist *, .semlist *::before, .semlist *::after { box-sizing: border-box; }
.semlist p, .semlist ul, .semlist li, .semlist dl, .semlist dt, .semlist dd { margin: 0; padding: 0; float: none; background: none; border: 0; font-weight: inherit; }
.semlist ul, .semlist li { list-style: none; }
.semlist li::before { content: none; }
.semlist a { text-decoration: none; }

.semlist .fbw { display: inline-block; }
.semlist .cbox__note {
  max-width: 820px; margin: 0 auto 18px;
  font-size: 16px; color: var(--text-mid); line-height: 1.8; text-align: center;
  text-wrap: balance; line-break: strict;
}
.semlist .cbox__note b { color: var(--text); font-weight: 700; }

/* 直近の開催日程（行＝日付｜タイトル＋時刻・参加費｜詳細›） */
.semlist .cbox__sem { max-width: 820px; margin: 0 auto 16px; }
.semlist .cbox__sem-hd { font-size: 15px; font-weight: 700; color: var(--cb-pink); text-align: center; margin: 0 0 10px; letter-spacing: .04em; }
.semlist .cbox__sem-list { margin: 0; padding: 0; display: grid; gap: 8px; }
.semlist .cbox__sem-list:empty { display: none; }
.semlist .cbox__sem.is-loading .cbox__sem-list { display: block; min-height: 232px; border-radius: 10px;
  background: repeating-linear-gradient(#FFF8FB 0 72px, transparent 72px 80px); }
.semlist .cbox__sem.is-loading .cbox__sem-empty { visibility: hidden; height: 0; margin: 0; padding: 0; }
.semlist .cbox__sem-item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 72px; padding: 10px 14px; border-radius: 10px;
  background: #fff; border: 1px solid #F0DBE4; box-shadow: 0 2px 6px rgba(174,50,108,.06);
  color: var(--text); text-decoration: none; transition: border-color .18s, background .18s; text-align: left;
}
@media (hover: hover) and (pointer: fine) { .semlist .cbox__sem-item:hover { border-color: var(--cta); background: #FFF8FB; color: var(--text); } }
.semlist .cbox__sem-item:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.semlist .cbox__sem-date { display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 6px 0; border-radius: 8px; background: #FFF8FB; }
.semlist .cbox__sem-md { font-size: 20px; font-weight: 800; color: var(--cb-pink); letter-spacing: .02em; }
.semlist .cbox__sem-wd { font-size: 15px; font-weight: 700; color: var(--text-mid); }
.semlist .cbox__sem-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.semlist .cbox__sem-ttl { font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--text); }
.semlist .cbox__sem-nw { white-space: nowrap; }
.semlist .cbox__sem-meta { font-size: 15px; line-height: 1.5; color: var(--text-mid); }
.semlist .cbox__sem-go { font-size: 15px; font-weight: 700; color: var(--cb-pink); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.semlist .cbox__sem-go::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; }
.semlist .cbox__sem-empty { margin: 0; padding: 14px; border-radius: 10px; background: #FFF8FB; font-size: 15px; line-height: 1.8; color: var(--text); text-align: center; }

/* 時間・形式の2枠 */
.semlist .cbox__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 820px; margin: 0 auto 20px; }
.semlist .cbox__facts > div { background: #FFF8FB; border-radius: 10px; padding: 12px 8px; text-align: center; }
.semlist .cbox__facts dt { font-size: 12px; font-weight: 700; color: var(--cb-pink); margin: 0 0 2px; letter-spacing: .06em; line-height: 1.9; }
.semlist .cbox__facts dd { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.5; }

/* ボタン（Primary）＋ひとこと */
.semlist .cbox__go {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 20px;
  max-width: 820px; margin: 0 auto;
  border-radius: 999px; background: var(--cta); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.9; transition: background .18s;
}
.semlist .cbox__go:visited { color: #fff; }
@media (hover: hover) and (pointer: fine) { .semlist .cbox__go:hover { background: var(--cta-dk); color: #fff; } }
.semlist .cbox__go:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.semlist .cbox__after { font-size: 13px; color: var(--text-mid); text-align: center; margin: 12px 0 0; }

@media (max-width: 840px) {
  .semlist { padding: 20px 10px 22px; margin: 20px auto 56px; }
  .semlist .cbox__note { font-size: 15px; }
  .semlist .cbox__sem-item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .semlist .cbox__sem-md { font-size: 18px; }
  .semlist .cbox__sem-empty { text-align: left; }
  .semlist .cbox__facts { grid-template-columns: 1fr; gap: 6px; }
  .semlist .cbox__facts > div { display: flex; align-items: baseline; gap: 12px; text-align: left; padding: 10px 14px; }
  .semlist .cbox__facts dt { flex: 0 0 auto; margin: 0; }
}
/* 390px未満（保証外）＝「詳細」の文字を外して矢印だけにし、タイトルの幅を確保（TOPと同じ） */
@media (max-width: 389px) {
  .semlist .cbox__sem-item { gap: 8px; }
  .semlist .cbox__sem-go { font-size: 0; gap: 0; }
}
