ul.course-guide {
  list-style: none;
  padding-left: 0;
}

ul.course-guide li {
  font-size: 1.1em;
  line-height: 1.8rem;
  color: #333;
}

.course-guide td {
  padding: 1rem;
}

.course-guide {
  border-collapse: collapse;
  width: 100%;
}

.course-guide tr {
  border-top: 1px solid #8b8b8b;
  border-bottom: 1px solid #8b8b8b;
}

.course-guide td {
  padding: 1rem;
}

.course-guide .naka {
  text-align: center;
}


.label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: bold;
  border: 2px solid transparent;
}



/**************************/
/* リスト表示（共通）     */
/**************************/
.lec_area {
  display: flex;
  gap: 16px;
  border: 1px solid #ccc;          /* ← border-left は重複なので削除 */
  border-radius: 6px;
  padding: 16px;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.lec_area:hover {
  background: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ※ 旧レイアウト用（.lec_left/.lec_actions）は新レイアウトでは未使用
  　 他箇所で使っていなければ削除可（しばらく残すなら下記のまま） */
.lec_left { width: 140px; flex-shrink: 0; text-align: center; }

.lec_actions {
  margin-top: 10px;
  display: flex;
  flex-direction: row;   /* 横並び */
  gap: 8px;              /* ボタン間隔 */
  justify-content: flex-end; /* 右寄せ */
}
.lec_actions button,
.lec_actions .select-btn {
  min-width: 100px;
}

/* ボタン風チェックボックス */
.select-btn {
  display: inline-block; padding: 8px 0;
  border: 1px solid #0073aa; border-radius: 5px;
  background: #fff; color: #5d9cb9; font-weight: bold;
  cursor: pointer; transition: all .2s ease;
  text-align: center;
}
.select-btn input[type="checkbox"] { display: none; }
.select-btn:has(input[type="checkbox"]:checked) {
  background:  #5d9cb9; color: #fff; border-color: #0073aa;
}


/**************************/
/* コード・見出し          */
/**************************/
.course-header {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px;
}


.course-datetime {
  margin: 0 !important;
  padding: 0 !important;
  font-weight: normal;
}

.course-info { font-size: 14px; color: #333; }


.course-code-box {
  width: 45px;
  height: 45px;
  background-color: #f00;
  color: #fff;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(45deg);
  position: relative;
  margin: 10px;
  flex-shrink: 0; /* ✅ 小さくつぶれないように固定 */
  overflow: hidden; /* ✅ 文字がはみ出すのを防ぐ */
}

.course-code-box .letter {
  transform: rotate(-45deg);
  font-size: 14px;
  white-space: nowrap; /* ✅ 改行させない */
  line-height: 1;
}


/* 新しく追加する要素へのスタイル */
.course-title {
  font-family:"Zen Maru Gothic";
  font-weight: bold;
  font-size: 1.4em;
  margin: 6px 0 4px;
}

.course-speaker,
.course-keywords {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 4px;
}

.course-info > div {
  margin-bottom: 4px;
}

.course-banner-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* 各バナーの間隔 */
}

.course-banner {
  margin-top: 0.5rem;
  display: flex;         /* 横並び（ラベルと文字） */
  align-items: center;
  font-size: 1.0em;
  color: var(--log-cabin);
}

.course-sidebar {
   margin-top: 46px;
    width: 70px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/*************わからない*/
.banner-label {
  background-color: var(--course-banner);
  color: var(--white);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 1.0em;
  width: 80px;
  text-align: center;
  margin-right: 0.5rem;
}

.banner-format {
  font-weight: normal;
}

/* コード色 */
.bg-green { background-color: var(--course_e) }
.bg-blue  { background-color: var(--course_b) }
.bg-pink  { background-color: var(--course_p) }
.bg-default { background-color:var(--course_o) }


hr.lec_info.bg-blue {
  border-top: 1px solid var(--course_b);
}

hr.lec_info.bg-pink {
  border-top: 1px solid var(--course_p);
}

hr.lec_info.bg-green {
  border-top: 1px solid  var(--course_e);
}

hr.lec_info.bg-default {
  border-top: 1px solid  var(--course_o);
}




/**************************/
/* プロフィール 横並び     */
/**************************/
.profile-container {
  display: flex; align-items: flex-start; gap: 20px; margin-top: 10px;
}
.lecturer {                       /* ← 画像サイズはここに統一 */
  max-width: 150px; height: auto;
  border-radius: 6px; object-fit: cover; display: block; margin: 0;
}
.profile-text { flex: 1; }

.profile-photo{
  padding-top: 1rem;
}
/**************************/
/* グリッド               */
/**************************/
.course-grid {
  display: grid;
  grid-template-columns: 1fr; /* ← 常に1列表示に変更 */
  gap: 20px;
}

/* 共通ラベルスタイル */
.label {
  display: inline-block;
  padding: 1px 2px;
  border-radius: 4px;
  font-size: 0.80em;
  white-space: nowrap; /* ← これを追加 */
  border: 1px solid transparent;
}

/* 対面・オンライン（ピンク枠） */
.label-hybrid {
  border-color: #ec6391;   /* ピンク */
  color:  #ec6391;
  background-color: #fff;
}

/* オンライン（ブルー枠） */
.label-online {
  border-color: #2196f3;   /* ブルー */
  color: #2196f3;
  background-color: #fff;
}




.break-line {
  display: block;
  margin-top: 4px;
}







/* このテンプレート専用のセクション間隔 */
section.lec_area {
  margin-bottom: 40px;
}


.apply-course-btn {
  border: 1px solid #999;
  padding: 4px 10px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  font-size: 0.9em;
  border-radius: 4px;
  margin: 2px;
}

.apply-course-btn:hover {
  opacity: 0.85;
}


/***************************/
/* 修正：コースカード構造用ラッパー */
/**************************/
.course-wrapper {
  display: flex;
  justify-content: space-between;
  /*align-items: stretch; /* ← ここを修正 */
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

/**************************/
/* 右側のアクションボタン配置 */
/**************************/
.course-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

/**************************/
/* 検討するボタン（SVG付き） */
/**************************/
.select-check-button {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 12px;
  background-color: var(--course-select);
  color: var(--congress-blue); /* 通常時の色（文字・アイコン） */
  font-size: 0.75rem;
  font-weight: bold;
  text-align: center;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.select-check-button svg {
  width: 48px;
  height: 48px;
  stroke: currentColor; /* アイコンもボタンの色に追従 */
  fill: none;
  margin-bottom: 4px;
}

.select-check-button:hover,
.select-check-button.selected {
  background-color: var(--congress-blue); /* ホバー時の背景色 */
  color: var(--white)!important; /* ホバー時：文字もアイコンも白に */
}



/**************************/
/* 対面・オンライン選択ラジオ */
/**************************/
.course-format-selection {
  margin-top: 6px;
  text-align: right;
  font-size: 0.85rem;
}

.course-format-radios label {
  margin-left: 8px;
  cursor: pointer;
}

.course-format-radios input[type="radio"] {
  margin-right: 4px;
}

.course-format-label {
  font-size: 0.9em;
  color: #333;
  text-align: right;
}



/* 詳細エリア（アコーデオン対応） */
.course-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* 開いたときのスタイル */
.course-details.open {
  max-height: 1000px; /* 十分大きめに */
  opacity: 1;
}

/* ボタンのホバー時 */
.toggle-details-button:hover {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

/* 矢印の拡大 */
.toggle-details-button .arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.toggle-details-button.open .arrow-icon {
  transform: rotate(180deg); /* 矢印上向きに */
}









/**************************/
/* 申込バナー             */
/**************************/
#apply-btn {
  background-color: #ffa3e3;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 20px;
  line-height: 1.4;
  transition: background-color 0.3s ease;
}

#apply-btn:hover {
  background-color: #e24cad;
}

#course-cart {
  position: fixed;
  top: 120px;
  right: 20px;
  background-color: var(--lily-white);
  border: 1px solid #405a70ee;
  border-radius: 8px;
  padding: 1rem;
  width: 260px;
  max-height: 500px;
  overflow-y: auto;
  z-index: 10001;
  font-size: 14px;
}

#course-cart ul {
  margin: 0;
  padding-left: 1em;
  list-style-type: none; /* ← 追加して中丸を非表示に */
}

#course-cart li {
  margin-bottom: 0.5em;
}


/* lec_area は枠だけ利用。中身のレイアウトは reason-wrap で完結させる */
.reason-area .reason-wrap{
  /* lec_text を使わないため自前で余白と中央寄せを定義 */
  
  padding: 0px 16px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}
.reason-area .course-reason{
  font: inherit;
  line-height: 1.6;
  text-align: left;   /* デフォは左寄せ */
}

.reason-area .course-reason label.reason-label{
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  text-align: left;   /* 明示的に左寄せ */
}

.reason-area .course-reason textarea{
  width: 100%;
  max-width: 820px;
  display: block;
  margin: 10px 0 0;   /* 左寄せ */
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  font: inherit;
  line-height: 1.6;
}

/* ボタンだけ中央寄せ */
.reason-area .course-reason .reason-submit{
  display: block;
  margin: 14px auto 0;  /* auto で左右中央 */
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: #4a90e2;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: center;
}
.reason-area .course-reason .reason-submit:hover{
  background: #357ab7;
}


/* 受講理由エリアだけ上余白を詰める */
.reason-area {
  margin-top: 0 !important;   /* 上余白を消す */
  padding-top: 0 !important;  /* 内側の余白も消す */
}





/* フィルターバー全体 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;  /* ✅ 右寄せにする */
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}



/* ドロップダウン本体 */
.course-dropdown {
  font-size: 0.9em;
  border: 1px solid var(--course_btn);
  border-radius: 8px;
  padding: 0.1em 0.8em;
  background-color: white;
  color: var(--course_btn);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: all 0.3s ease;
  user-select: none;
  line-height: 1.2;
  margin-left: auto;
}


/* 選択時（トグルON）のスタイル */
#recruitingButton.active {
  background-color: var(--congress-blue);
  color: var(--white);
}



.attendance-choice {
  display: flex;
  gap: 0.5rem; /* ラジオボタン同士の間隔 */
  align-items: center;
}

.attendance-choice input[type="radio"] {
  display: none; /* デフォルトのラジオボタンを隠す */
}

.attendance-choice label {
  font-size: 0.8rem;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid var(--course_btn);

  border-radius: 12px;
  background-color: transparent;

  color: var(--course_btn);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease-in-out;
}

/* ✅ ラベル内にチェックされたinputがある場合 */
.attendance-choice label:has(input[type="radio"]:checked) {
  background-color: var(--congress-blue);
  color: var(--white);
}
.attendance-error {
  color: red;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}


.flash-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--congress-blue);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.flash-message.fadeout {
  opacity: 0;
}








/* フィルターグループ（ラベル + ドロップダウン） */
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



.filter-group label {
  font-weight: bold;
  font-size: 0.9em;
}

.toggle-details-button {
 background-color: transparent;
}



/* 矢印アイコン */
.course-dropdown .link-icon svg {
  width: 2em;
  height: 2em;
  fill: none;
  stroke: currentColor;
  display: block;
  margin: -0.25em 0;
  padding: 0;
}

/* クリック時に色が変わる（演出用） */
.course-dropdown.clicked {
  border-color: var(--course_btn_click);
  color: var(--course_btn_click);
  transition: border-color 0.3s ease, color 0.3s ease;
}

/* ドロップダウンメニュー全体 */
.course-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 4px;
  z-index: 1000;

  /* 開閉用アニメ */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;

  /* グループの背景・枠は不要 */
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ✅ 開いてる状態 */
.course-dropdown.open .course-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 各選択肢を独立したボックスに */
.course-options div {
  background-color: #fff;
  padding: 0.2em 0.2m;
  margin: 3px 0 3px 8px;
  /*border: 1px solid #e7e7e7;*/
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;       /* ✅ 改行させない */

}


.course-options div:hover {
/*ckground-color: #f8f8f8;*/
/*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}


.toggle-button {
  font-size: 0.9em;
  border: 1px solid var(--course_btn);
  border-radius: 8px;
  padding: 0.3em 0.8em;
  background-color: white;
  color: var(--course_btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: all 0.3s ease;
  user-select: none;
  line-height: 1.2;
}




.toggle-button.active {
  background-color: var(--congress-blue);
  border-color: var(--congress-blue);
  color: var(--white);
}


/* 講師プロフィール全体のレイアウト */
.speaker-profile-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
}

/* 講師の写真 */
.speaker-photo img {
  width: 100px;
  height: auto;
  border-radius: 8px; /* 角丸 */
  display: block;
}

/* テキスト情報（右側） */
.speaker-main-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 「講師」ラベルと名前（同一行） */
.speaker-line {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* 「講師」ラベル */
.speaker_kei {
  display: inline-block;
  border: 1px solid #333;
  border-radius: 9999px;
  padding: 0.2em 0.8em;
  font-size: 0.75em;
  line-height: 1.4;
}

/* 講師名 */
.speaker-name {
  font-size: 1em;
  font-weight: bold;
}

/* 所属（大学・役職など） */
.speaker-position {
  margin-top: 0.4rem;
  font-size: 0.9em;
  color: #666;
  font-weight: normal;
}

/* プロフィール本文 */
.speaker-bio {
  margin-top: 1.2rem;
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}






@media (max-width: 768px) {
  .profile-container { flex-direction: column; } /* スマホは縦並び */
}
