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: 8px;
  border: 1px solid #ccc;          /* ← border-left は重複なので削除 */
  border-radius: 6px;
  padding: 16px 16px 25px;
  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-catalog-title{

  font-family:"Zen Maru Gothic";
  font-weight: bold;
  font-size: 1.4em;
  margin: 6px 0 4px;


}

/* 新しく追加する要素へのスタイル 
.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; /* 各バナーの間隔 */
}

.banner-label {
    background-color: var(--course-banner);
    color: var(--white);
    border-radius: 20px;
    padding: 1px 12px;
    font-size: 1.0em;
    width: 80px;
    text-align: center;
    margin-right: 0.5rem;
}



.course-sidebar {
   margin-top: 46px;
    width: 70px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}



.banner-format {
  font-weight: normal;
}



/**************************/
/* プロフィール 横並び     */
/**************************/
.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-title); /* 通常時の色（文字・アイコン） */
  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);
}

/* フィルターグループ（ラベル + ドロップダウン） */
.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;       /* ✅ 改行させない */

}


.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) {
  .label,
  .course-options div {
    white-space: normal;   /* allow wrapping */
    word-break: break-word;
  }

  .course-code-box {
    margin: 0 auto; /* center to avoid overflow */
  }

 #course-cart {
    top: auto;
    bottom: 20px;
    right: 10px;
    width: 90%;
    max-width: 320px;
  }

  .speaker-profile-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Stack banners vertically */
 /*  .course-banner-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* left-align the content
    gap: 8px;
    width: 100%;
    margin-top: 1rem;
  }*/

  /* Each banner stretches full width */
  /* .course-banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    background: #fff;
  } */

  .banner-label {
    font-size: 0.9rem;
    background-color: var(--course-banner);
    color: var(--white);
    margin-bottom: 4px;
  
  }


  


  .banner-format,
  .attendance-choice label,
  .attendance-fixed {
    font-size: 0.95rem;
    color: #333;
  }

  /* Align radio buttons vertically */
  .attendance-choice {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }

  /* Make sure radios are visible and centered */
  .attendance-choice label {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Avoid overflow inside banner */
  .attendance-fixed,
  .banner-format {
    word-break: keep-all;
    white-space: nowrap;
  }

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .course-dropdown,
  .toggle-button {
    width: auto;
    min-width: 50px;
  }

  .speaker-bio {
    text-align: start;
  }
}


@media (max-width: 465px) {
  h3 {
    color: var(--congress-blue) !important;
    font-weight: normal !important;
    padding-top: 1.1rem !important;
    font-size: 1.0rem !important;
  }


.course-code-box {
    width: 24px;
    height: 24px;
    
}


.course-catalog-title{

  font-size: 1.1em;

}


.course-sidebar {
   margin-top: 4px;
    width: 70px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}


}
