@charset "UTF-8";

.p-pageHeader2 { display: none !important; }

/* =============================================
    全体・ベース設定・汎用クラス
 ============================================== */
html, body {
  overflow-x: hidden;
}

 body {
  background-color: #ffffff;
}

.background {
  background-color: white;
}

a:hover {
  opacity: 0.6;
}

img {
  max-width: 100%;
  height: auto;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

/* PC・SPの表示切替 */
.pc {
  display: block !important;
}

.sp {
  display: none !important;
}

.br-sp {
  display: none;
}

@media only screen and (max-width: 768px) {
  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
  }
}

@media (max-width: 600px) {
  .br-sp {
    display: block;
  }
}

/* コンテナ幅制御 (c-container--oc-lg) */
.c-container--oc-lg {
  max-width: 1024px !important;
}

@media (min-width: 680px) {
  .c-container--oc-lg {
    max-width: 640px !important;
  }
}

@media (min-width: 1024px) {
  .c-container--oc-lg {
    max-width: 740px !important;
    padding: 0 20px;
  }
}

@media (min-width: 1200px) {
  .c-container--oc-lg {
    max-width: 900px !important;
    padding: 0 20px;
  }
}

@media (min-width: 1400px) {
  .c-container--oc-lg {
    max-width: 1200px !important;
    padding: 0 20px;
  }
}

/* コンテナ幅制御 (c-container--oc) */
.c-container--oc {
  max-width: 1024px !important;
  margin: 0 auto;
}

@media (min-width: 380px) {
  .c-container--oc {
    max-width: 360px !important;
  }
}

@media (min-width: 400px) {
  .c-container--oc {
    max-width: 380px !important;
  }
}

@media (min-width: 420px) {
  .c-container--oc {
    max-width: 400px !important;
  }
}

@media (min-width: 440px) {
  .c-container--oc {
    max-width: 420px !important;
  }
}

@media (min-width: 480px) {
  .c-container--oc {
    max-width: 440px !important;
  }
}

@media (min-width: 500px) {
  .c-container--oc {
    max-width: 480px !important;
  }
}

@media (min-width: 550px) {
  .c-container--oc {
    max-width: 500px !important;
  }
}

@media (min-width: 600px) {
  .c-container--oc {
    max-width: 550px !important;
  }
}

@media (min-width: 640px) {
  .c-container--oc {
    max-width: 600px !important;
  }
}

@media (min-width: 680px) {
  .c-container--oc {
    max-width: 640px !important;
  }
}

@media (min-width: 1024px) {
  .c-container--oc {
    max-width: 900px !important;
    padding: 0 20px;
  }
}

@media (min-width: 1200px) {
  .c-container--oc {
    max-width: 1024px !important;
    padding: 0 20px;
  }
}

@media (min-width: 1400px) {
  .c-container--oc {
    max-width: 1024px !important;
    padding: 0 20px;
  }
}

/* =============================================
    ヘッダー
 ============================================== */
.page-title {
  display: inline-block;
  padding-top: 0px;
  text-align: center;
  font-weight: 500;
}

@media (max-width: 768px) {
  .page-title {
    margin-top: -20px;
  }
}

.page-title img {
  margin-top: 16px;
}

.page-title h1 {
  font-size: 16px;
  font-weight: bold;
  margin-top: 8px;
}

.page-info {
  display: flex;
  text-align: left;
  color: #af272f;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-info span {
  font-weight: 900;
}

.page-info-link {
  margin-right: 16px;
}

@media (max-width: 768px) {
  .page-title h1 {
    font-size: 15px;
    line-height: 1.3;
  }
}

@media (min-width: 680px) {
  .page-title h1 {
    font-size: 24px;
    margin-top: 24px;
  }
}

@media (min-width: 1024px) {
  .page-title {
    padding-top: 0px;
  }

  .page-title img {
    margin-top: 24px;
  }

  .page-title h1 {
    font-size: 36px;
    margin-top: 24px;
  }

  .page-info {
    font-size: 16px;
    margin-bottom: 24px;
  }
}

/* =============================================
    メインビジュアル
 ============================================== */
.page-content--area {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding-top: 10px;
}

@media (min-width: 767px) {
  .page-content--area {
    padding-top: 10px;
  }
}

.page-mv {
  margin-top: 0px;
  margin-bottom: 0px;
  background-color: black;
}

.page-mv img {
  width: 100%;
  height: auto;
}

.top-sp-area {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  padding-top: -80px;
}

.top-pc-area {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}


/* =============================================
    詳細情報・事前申込エリア（黒背景）
 ============================================== */
.page-outline {
  padding: 10px 0px;
  background-color: black;
}

.content-top2 {
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: bold;
}

.content-nazeka {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 100px;
}

@media (max-width: 768px) {
  .content-nazeka {
    margin-top: 50px;
    margin-bottom: 40px;
  }

  .content-nazeka img {
    width: 70%;
    display: block;
    margin: 0 auto;
  }
}

.page-outline .title,
.page-outline .title strong {
  text-align: center;
  font-size: 40px;
  margin: 20px 0;
  color: #c6a75c;
  font-weight: 900;
}

.page-outline .title img {
  width: 60%;
}

@media (max-width: 680px) {
  .c-container--oc .title,
  .c-container--oc .title strong {
    white-space: normal;
    font-size: clamp(18px, 6.2vw, 40px);
    line-height: 1.45;
  }

  .page-outline .title img {
    width: 70%;
  }
}

.page-outline .content {
  text-align: center;
  margin-top: 0px;
  padding-bottom: 0px;
  padding-left: 20px;
  padding-right: 20px;
  color: white;
  font-size: 30pt;
}

.page-outline .content p {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

/* プログラム一覧直後の「変更注意書き」は上下の余白を揃える（PC:30px / タブレット:20px / スマホ:15px） */
.page-outline .common-program-flex + .content {
  margin-top: 30px;
  padding-bottom: 30px;
}

@media (max-width: 768px) {
  .page-outline .common-program-flex + .content {
    margin-top: 15px;
    padding-bottom: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .page-outline .common-program-flex + .content {
    margin-top: 20px;
    padding-bottom: 20px;
  }
}

@media (max-width: 680px) {
  .page-outline .content p {
    font-weight: 500;
  }
}

@media (min-width: 1024px) {
  .page-outline .content {
    margin-top: 24px;
    padding-bottom: 10px;
    font-size: 14pt;
  }

  .page-outline .content p {
    font-size: 16px;
  }
}

.content-moushikomi {
  text-align: center;
  margin-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 768px) {
  .content-moushikomi {
    margin-left: 10px;
    margin-right: 10px;
  }

  .content-moushikomi img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.page-outline .content-program {
  text-align: center;
  margin-top: 40px;
  padding-bottom: 30px;
  font-weight: bold;
  color: black;
}

/* =============================================
    プログラム内容カード（白背景）
 ============================================== */
.common-program-flex {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .common-program-flex {
    flex-direction: row;
  }
}

.common-program-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .common-program-item {
    width: 49%;
  }
}

.common-program {
  background-color: #fff;
  padding: 10px 0 0 0;
  /* 下左右の余白を消して画像を断ち切りに */
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .common-program {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (min-width: 1024px) {
  .common-program {
    padding: 10px 0 0 0;
    flex: 1;
  }
}

/* プログラム一覧の最終行の直後に「変更注意書き」が来る場合、
   カード側のmargin-bottomを打ち消して.contentの margin-top / padding-bottom だけで余白を揃える */
.page-outline .common-program-flex:has(+ .content) .common-program {
  margin-bottom: 0;
}

.title-bar {
  border-bottom: solid 1px #C6A75C;
  color: black;
  font-size: 1.3em;
  line-height: 1.3;
  text-align: center;
  padding: 0;
  margin: 0;
  font-weight: 700;
}

.title-bar--sm {
  font-size: 16px;
  padding: 2px 10px 8px;
}

.title-bar--special {
  color: #C6A75C;
  font-size: 18px;
  padding: 2px 10px 8px;
}

@media (max-width: 768px) {
  .title-bar--special {
    line-height: 1.2;
  }
}

@media (min-width: 1024px) {
  .title-bar--sm {
    font-size: 17px;
    padding: 2px 0px 8px;
  }

  .title-bar--special {
    font-size: 28px;
    padding: 8px 0px 8px;
  }
}

/* Otani Discover Lab 2026：見出しテキストをタイトル画像に置き換え */
.title-bar__img-odl {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 20px auto 0;
}

@media (min-width: 1024px) {
  .title-bar__img-odl {
    max-width: 560px;
    margin-top: 32px;
  }
}

/* Otani Discover Lab 2026カードのみ：タイトル下の罫線を非表示 */
.common-program--odl .title-bar {
  border-bottom: none;
}

/* Otani Discover Lab 2026カードのみ：説明文をカード本体の90%幅・中央揃えに */
.common-program--odl .text-sm {
  width: 90%;
  margin: 0 auto;
}

.common-program-content {
  margin-top: 0;
  padding: 8px 10px 10px;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .common-program-content {
    padding: 10px 10px 8px;
  }
}

@media (min-width: 1024px) {
  .common-program-content {
    padding: 16px 20px 15px;
  }
}

.program-list {
  display: flex;
  margin-bottom: 12px;
  align-items: start;
}

.program-list-head {
  background-color: #e6e6e7;
  font-size: 12px;
  padding: 2px 10px;
  font-weight: bold;
  margin-right: 0px;
  min-width: 50px;
  text-align: center;
}

.program-list-text {
  font-size: 14px;
  font-weight: 500;
  margin-left: 15px;
}

@media (min-width: 1024px) {
  .program-list-text {
    font-size: 14px;
    font-weight: 600;
  }
}

@media (min-width: 1024px) {
  .flex-list-item--200 {
    min-width: 200px;
  }
}

.text-sm {
  font-size: 12px;
}

.common-program .text-sm {
  text-align: left;
}

@media (max-width: 768px) {
  .common-program .text-sm {
    padding: 0 10px;
  }

  .common-program .program-list{
    padding: 0 10px;
    box-sizing: border-box;
  }
  
}
@media (min-width: 769px) and (max-width: 1024px) {
  .common-program .text-sm {
    padding-left: 10px;
    padding-right: 10px;
  }

  .common-program .program-list{
  padding: 0 10px;
  box-sizing: border-box;
  }
}

@media (min-width: 1024px) {
  .text-sm {
    font-size: 14px;
  }
}

.text-sm p {
  font-size: 13px;
  line-height: 1.7;
  padding: 5px 0px;
}

.common-program-content .text-sm p {
  font-weight: 400;
}

.common-program .text-sm p {
  text-align: left;
}



@media (min-width: 1024px) {
  .text-sm p {
    font-size: 15px;
    font-weight: 600;
    padding: 5px 0px;
  }
}

/* =============================================
    赤本プレゼント・学食カフェ体験
 ============================================== */
.akahon {
  margin-bottom: 20px;
}

.area-apointed {
  text-align: center;
}

@media (max-width: 768px) {
  .akahon {
    margin-left: 10px;
    margin-right: 10px;
  }

  .akahon img {
    display: block;
    width: 100%;
    height: auto;
  }

  .area-apointed {
    margin-left: 16px;
    margin-right: 16px;
  }

  .area-apointed img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.page-outline-cafe {
  padding: 30px 0px;
  background-color: #f7eeda;
  text-align: center;
}

.page-outline-cafe .content p {
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .page-outline-cafe .content p {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  br.pc-only-br {
    display: none;
  }

  .page-outline-cafe .content p {
    padding: 0 10px;
  }

  .area-cafe .content:not(:first-child) {
    margin-left: 10px;
    margin-right: 10px;
  }

  .area-cafe .content:not(:first-child) img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.content-cafe {
  text-align: center;
  font-weight: bold;
  color: black;
}

/* =============================================
    動画でわかる！大谷大学
 ============================================== */
.page-outline-movie {
  padding: 30px 0px;
  background-color: #f5e8ee;
}

.content-movie {
  text-align: center;
  padding-bottom: 20px;
}

.movie-area-content {
  width: 100%;
  aspect-ratio: 16/9;
  max-width: 800px;
  margin: 24px auto 0;
}

.movie-area-content iframe {
  width: 100%;
  height: 100%;
}

/* =============================================
    お問い合わせ
 ============================================== */
.page-outline-contact {
  padding: 30px 0px;
  text-align: center;
  font-size: 1.2em;
}

.page-outline-contact .content:first-child {
  padding-bottom: 6px;
}

.contact-text1 {
  font-size: 2em;
  margin-top: 20px;
  font-weight: 700;
}

.contact-text2 {
  font-size: 1.4em;
  font-weight: 600;
}

/* =============================================
    開催スケジュール
 ============================================== */
.page-outline-schedule {
  padding: 30px 0px;
  background-color: #000000;
  text-align: center;
}

.schedule-theme1 {
  display: block;
  margin: 40px auto 10px;
}

.schedule-theme2 {
  display: block;
  margin: 18px auto 10px;
}

.schedule-icon {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .page-outline-schedule .sp.schedule-theme1 {
    width: 50%;
    height: auto;
  }

  .page-outline-schedule .sp.schedule-theme2 {
    width: 50%;
    height: auto;
  }
}

.content-kako {
  text-align: center;
  color: white;
  margin: 50px 0px 30px 0px;
  font-size: 16px;
  font-weight: bold;
}

.content-kako p {
  margin-bottom: 30px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .content-kako {
    margin-left: 10px;
    margin-right: 10px;
  }

  .content-kako .content {
    display: inline;
  }

  .content-kako img {
    width: 20% !important;
    margin: 0 1% 8px !important;
    height: auto;
    display: inline-block;
  }
}

@media (min-width: 769px) {
  .content-kako .content+.content {
    margin-top: 18px;
  }
}

/* =============================================
    入試アプリ・公式LINE
 ============================================== */
.page-notice {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .page-notice {
    margin-top: 50px;
    margin-bottom: 40px;
  }
}

/* =============================================
    小論文型特別セミナー
 ============================================== */

/* ▼ PC閲覧時のレイアウト（2列にして余白を確保） ▼ */
@media (min-width: 1024px) {
  .seminar-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    padding-top: 16px;
    padding-bottom: 24px;
  }
  
  .seminar-wrap .common-program-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 0 !important; /* 内側の余白はgapで作るためゼロに */
  }

  .seminar-wrap .seminar-img {
    padding-right: 24px;
  }
}

/* スマホ閲覧時のレイアウト（縦並び、画像は余白なしの断ち切り） */
@media (max-width: 1023px) {
  .seminar-wrap {
    display: flex;
    flex-direction: column;
  }
  
  .seminar-wrap .seminar-img {
    margin-top: 10px; /* テキストと画像の間の余白 */
    /* スマホ時は断ち切り表示にするため左右・下の余白は書かない */
  }
}

@media (min-width: 1024px) {
  .title-bar--special .title-sub {
    font-size: 24px; /* PC表示時のサイズ（少し小さく） */
    margin-top: 0px; /* 1行目との間を少し開ける */
  }
}

/* =============================================
    当日のタイムテーブル／当日配付パンフレット
 ============================================== */
/* 1. 外側の白いコンテナ（セクション全体） */
.area-special {
  background-color: #ffffff;
  padding: 16px 10px;
  border-radius: 0;
  margin: 48px 10px 0;
}

@media (min-width: 1024px) {
  .area-special {
    padding: 64px 48px;
    margin: 48px 0 0;
  }
}

/* 2. タイムテーブル内の見出し（タイトル） */
.area-time {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.area-time .title {
  font-size: 24px;
  font-weight: bold;
  color: #b0894e;
  line-height: 1.3;
  margin-bottom: 8px;
}

@media (min-width: 1024px) {
  .area-time .title {
    font-size: 24px;
    margin-bottom: 16px;
  }
}

/* 3. 画像下の説明文と余白 */
.pamphlet > p {
  font-weight: 500;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 20px; /* 下のボタンとの距離 */
  line-height: 1.8;
}

@media (min-width: 1024px) {
  .area-time p {
    font-size: 16px;
  }
  .pamphlet > p {
    margin-bottom: 28px;
  }
}

/* 4. PDFダウンロードボタン */
.btn-time-red {
  display: inline-block;
  color: #fff;
  background-color: #c92c08;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 10px;
  font-weight: bold;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .btn-time-red {
    font-size: 16px;
    padding: 6px 24px;
  }
}

/* 5. ボタン内のPDFタグと容量表示 */
.btn-time-red span {
  font-size: 10px;
}

.btn-time-red::after {
  content: "PDF";
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px;
  font-weight: bold;
  border: 1px solid #ffffff;
  vertical-align: middle;
}

@media (min-width: 1024px) {
  .btn-time-red span {
    font-size: 14px;
  }
  .btn-time-red::after {
    font-size: 14px;
    padding: 2px 6px;
  }
}

/* =============================================
    学び紹介詳細
 ============================================== */
/* 全体設定 */
.manabi-detail-area .title-bar--special {
  color: #000 !important;
  border-bottom: none !important;
  margin-top: 20px;
  margin-bottom: 0px;
}

.manabi-detail-card {
  border: none !important;
  background-color: transparent !important;
  text-align: center;
  margin-bottom: 40px;
}

/* 学科見出し */
.manabi-detail-card .title-bar--sm {
  color: #fff !important;
  border: none !important;
  display: inline-block;
  width: 90%;
  margin: 0 auto;
  padding: 8px 15px !important;
  font-size: 16px;
}

/* 学部別カラー設定 */
.header-bungaku { background-color: #ed6c00 !important; }
.header-shakai  { background-color: #22ac38 !important; }
.header-kyoiku  { background-color: #187fc4 !important; }
.header-kokusai { background-color: #af4d8e !important; }

/* カード内部（左寄せ） */
.manabi-detail-card .common-program-content {
  text-align: left;
}

.manabi-detail-card .instructor-img {
  text-align: center;
  padding-top: 10px;
}

.manabi-detail-card .instructor-img img {
  width: 180px;
  height: auto;
}

/* 歴史学科の注釈ボックス */
.history-walking-box {
  border: 2px solid #ed6c00; /* 文学部オレンジの罫線 */
  border-radius: 5px;
  padding: 12px;
  margin-top: 15px;
  background-color: #fffaf5; /* ほんのり背景色 */
  text-align: left;
}
.history-walking-box strong {
  display: block;
  color: #ed6c00;
  margin-bottom: 5px;
  font-size: 1.2em;
  text-align: center;
}

/* =============================================
    学び紹介詳細へのジャンプボタン
 ============================================== */
.btn-detail-jump {
  display: inline-block;
  background-color: #000 !important;
  color: #fff !important;
  padding: 10px 40px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-detail-jump:hover {
  opacity: 0.8;
}

/* 写真が縮まないようにするための設定 */
.common-program > img.w-full {
  flex-shrink: 0;
  object-fit: cover;
}

/* ボタンを入れるコンテナに余白を追加 */
.btn-container {
  text-align: center;
  margin-bottom: 20px;
}

/* =============================================
    LINEバナー
 ============================================== */
.line-banner-pc-tab {
  display: block;
  width: 100%;
  height: auto;
}

.line-banner-sp {
  display: none;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .line-banner-pc-tab {
    display: none;
  }

  .line-banner-sp {
    display: block;
  }
}

/* LINEバナーのエリア（.c-container--ocの余白が効かない380px未満の画面幅でも
   フチまで広がらないよう、他バナーと同じく個別に左右余白を指定） */
@media (max-width: 768px) {
  .page-notice .notice-list {
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* =============================================
    Otani Discover Lab バナー
 ============================================== */
.content-banner-card img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .content-banner-card {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (max-width: 1023px) {
  .odl-banner-card {
    margin-top: 22px !important;
  }
}

@media (max-width: 750px) {
  .odl-banner-card {
    margin-top: 16px !important;
  }
}

.odl-program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 32px;
  margin-bottom: 32px;
}

/* Otani Discover Lab 2026カードのみ：数理教育専攻編1枚のみのため常に1段 */
.common-program--odl .odl-program-grid {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto auto;
}

/* Otani Discover Lab 2026カードのみ：本文とカードの間に余白を設ける */
.common-program--odl .common-program-content + .odl-program-grid {
  margin-top: 24px;
}

/* 左右のカードの本文・時間場所講師・ゲスト講師の高さを情報量にかかわらず揃える（subgrid） */
.common-program--odl .odl-program-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
}

.common-program--odl .odl-program-card__content {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
}

.odl-program-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 28px rgba(0, 0, 0, .18);
}

.odl-program-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 24px 24px;
  text-align: center;
}

.odl-program-card__label {
  color: var(--accent);
  font-weight: bold;
  font-style: italic;
  font-size: 22px;
  margin: 0 0 1px;
}

.odl-program-card__course {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent);
  margin: 0 0 2px;
}

.odl-program-card__title {
  color: var(--accent);
  font-weight: bold;
  font-size: 36px;
  margin: -8px 0 4px;
}

.odl-program-card__title .suffix {
  font-size: 18px;
  font-weight: bold;
  margin-left: 6px;
}

/* Otani Discover Lab 2026カードのみ：ラベル非表示 */
.common-program--odl .odl-program-card__label {
  display: none;
}

/* 学部・学科タイトルは必ず2行表示・行間を詰める（枠は廃止） */
.common-program--odl .odl-program-card__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  align-self: start;
  margin: 0 0 8px;
}
.common-program--odl .odl-program-card__heading .odl-program-card__course,
.common-program--odl .odl-program-card__heading .odl-program-card__title {
  margin: 0;
}

/* 京都文化学科・数理教育専攻カードのみ：見出し～時間欄までの間隔を詰める */
.common-program--odl .odl-program-card__lecture {
  align-self: start;
  margin: 0 0 8px;
  min-height: 0;
}
.common-program--odl .odl-program-card__desc {
  align-self: start;
  margin: 0 0 8px;
}
.common-program--odl .odl-program-card__desc:last-child {
  text-align: center;
  margin-bottom: 0;
}
.common-program--odl .odl-program-card__content:has(> .odl-program-card__desc:last-child) {
  padding-bottom: 14px;
}
.common-program--odl .odl-program-card__meta {
  align-self: start;
}
.common-program--odl .odl-program-card__guest {
  margin-top: 8px;
  padding-top: 12px;
}

.odl-program-card__desc {
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 20px;
}

@media (min-width: 1024px) {
  .odl-program-card__desc {
    font-size: 15px;
  }
}

/* ゲスト講師のプロフィール文 */
.odl-program-card__guest-profile {
  text-align: left;
  font-size: 13px;
  line-height: 1.8;
  margin: 8px 0 0;
}

@media (min-width: 1024px) {
  .odl-program-card__guest-profile {
    font-size: 15px;
  }
}

.odl-program-card__thumb {
  aspect-ratio: 815 / 500;
  overflow: hidden;
}

.odl-program-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.odl-program-card__thumb:not(:has(img)) {
  display: none;
}

/* ゲスト講師は本文と区切り線で分けたブロックとして下部に表示 */
.common-program--odl .odl-program-card__guest {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #000;
}


@media (max-width: 750px) {
  .odl-program-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
    margin-bottom: 16px;
  }

  .odl-program-card__content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =============================================
    ODLポップアップ関連
    （トップページの#discover-lab-modalからコピー。
    既存の.odl-program-card系クラスは上の「学び紹介」
    インライン表示と共用のため、ポップアップ内のみ
    異なる値が必要な箇所は #discover-lab-modal で
    スコープして既存表示に影響しないようにしている）
 ============================================== */

/* ODLバナーは<label>のため、次回開催バナー(<a>)と同じホバー暗転にするため個別指定 */
.odl-banner-card label {
  cursor: pointer;
}
.odl-banner-card label:hover {
  opacity: 0.6;
}

.odl-modal-toggle {
  display: none;
}
.odl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#discover-lab-modal-toggle:checked ~ .odl-modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.odl-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: block;
}
.odl-modal__panel {
  position: relative;
  width: 94%;
  max-width: 480px;
  max-height: 85vh;
  margin: 10vh auto 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#discover-lab-modal-toggle:checked ~ .odl-modal .odl-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* タブレットサイズではポップアップを大きく */
@media (min-width: 751px) {
  .odl-modal__panel {
    width: 85%;
    max-width: 680px;
    max-height: 88vh;
    margin: 6vh auto 0;
  }
}

/* PCサイズではポップアップをさらに大きく */
@media (min-width: 1024px) {
  .odl-modal__panel {
    width: 90%;
    max-width: 950px;
    max-height: 85vh;
    margin: 7vh auto 0;
  }
}

/* タブレットサイズでは「京都文化学科」などの学科タイトルを少し縮小 */
@media (min-width: 751px) and (max-width: 1023px) {
  #discover-lab-modal .odl-program-card__title {
    font-size: 32px;
  }
}
.odl-modal__close {
  position: absolute;
  top: 16px;
  right: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: none;
  border-radius: 12px;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.odl-modal__body {
  overflow-y: auto;
  padding: 80px 48px 80px;
  scrollbar-width: auto;
  scrollbar-color: #9a9a9a #f2f2f2;
}
.odl-modal__body::-webkit-scrollbar {
  width: 14px;
}
.odl-modal__body::-webkit-scrollbar-track {
  background: #f2f2f2;
  border-radius: 8px;
}
.odl-modal__body::-webkit-scrollbar-thumb {
  background: #9a9a9a;
  border-radius: 8px;
}
.odl-modal__body::-webkit-scrollbar-thumb:hover {
  background: #808080;
}
.odl-modal__body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.odl-modal__eyebrow {
  text-align: center;
  color: #c8893c;
  font-weight: bold;
  font-size: 18px;
}
.odl-modal__title {
  background-image: url(../img/background.jpg);
  background-size: cover;
  background-position: center;
  padding: 56px 48px 32px;
  margin: -80px -48px 48px;
}
.odl-modal__title--plain {
  background-image: none;
  padding: 0;
  margin: 0 0 48px;
}
.odl-modal__title img {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.odl-modal__heading {
  display: table;
  text-align: center;
  font-weight: bold;
  font-size: 26px;
  border-bottom: 1px solid #333;
  padding-bottom: 6px;
  margin: 64px auto 32px;
}
.odl-modal__title + .odl-modal__heading {
  margin-top: 32px;
}
.odl-modal__text {
  max-width: 650px;
  margin: 0 auto 48px;
  font-size: 16px;
  line-height: 1.8;
}
.odl-modal__figure img {
  display: block;
  width: 100%;
  max-width: 550px;
  margin: 0 auto 48px;
}
.odl-modal__admission-block {
  background-image: url(../img/background.jpg);
  background-size: cover;
  background-position: center;
  padding: 24px 48px 48px;
  margin: 0 -48px -80px;
}

/* スマホサイズではポップアップ内の余白を半分に、見出しは1行に収まるよう縮小 */
@media (max-width: 750px) {
  .odl-modal__body {
    padding: 40px 24px 40px;
  }
  .odl-modal__title {
    padding: 28px 24px 16px;
    margin: -40px -24px 24px;
  }
  .odl-modal__heading {
    font-size: 20px;
    margin: 32px auto 16px;
    padding-bottom: 4px;
  }
  .odl-modal__title + .odl-modal__heading {
    margin-top: 16px;
  }
  .odl-modal__text {
    margin-bottom: 24px;
  }
  .odl-modal__figure img {
    margin-bottom: 24px;
  }
  .odl-modal__admission-block {
    padding: 12px 24px 24px;
    margin: 0 -24px -40px;
  }
  #discover-lab-modal .odl-program-grid {
    margin-bottom: 16px;
  }
  #discover-lab-modal .odl-program-card__title {
    font-size: 30px;
  }
}

/* ポップアップ内グリッドは.odl-modal__bodyの余白に揃えるため左右paddingなし */
#discover-lab-modal .odl-program-grid {
  padding: 0;
}
#discover-lab-modal .odl-program-card__course {
  margin-bottom: 0;
}
#discover-lab-modal .odl-program-card__title {
  margin-top: -6px;
}
#discover-lab-modal .odl-program-card__desc {
  font-size: 16px;
}
.odl-program-card__date {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-weight: bold;
  font-style: italic;
  padding: 20px 16px 7px;
  border-bottom: 1px solid #222;
}
.odl-program-card__date .year {
  font-size: 24px;
}
.odl-program-card__date .day {
  font-size: 56px;
  line-height: 1;
}
.odl-program-card__date .dow {
  font-size: 24px;
}
.odl-program-card__lecture {
  display: flex;
  align-items: center;
  min-height: 3.2em;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  text-align: left;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.6;
}
@media (max-width: 750px) {
  .odl-program-card__lecture {
    font-size: 15px;
  }
}

/* Otani Discover Lab 2026カードのみ：講座タイトルの級数 */
.common-program--odl .odl-program-card__lecture {
  font-size: 18px;
}
@media (max-width: 750px) {
  .common-program--odl .odl-program-card__lecture {
    font-size: 16px;
  }
}

/* Otani Discover Lab 2026カードのみ：時間・場所・講師をPCで横一列に */
@media (min-width: 1024px) {
  .common-program--odl .odl-program-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
  }
}

/* Otani Discover Lab 2026カードのみ：時間・場所・講師の行間を詰める */
.common-program--odl .odl-program-card__meta .program-list {
  margin-bottom: 2px;
}

/* ゲスト講師名（森脇 清隆）のみ文字サイズを倍に */
.odl-program-card__guest-name {
  font-size: 2em;
}

/* ゲスト講師の行のみ、ラベルと名前を中央揃えに */
.common-program--odl .program-list:has(.odl-program-card__guest-name) {
  align-items: center;
}

.odl-program-card__btn {
  display: inline-block;
  align-self: center;
  margin-top: auto;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: bold;
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 28px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.odl-program-card__btn:hover {
  background-color: var(--accent);
  color: #fff;
  opacity: 1;
}
.odl-admission-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
@media (max-width: 750px) {
  .odl-admission-links {
    grid-template-columns: 1fr;
  }
}
.odl-admission-links__wide {
  grid-column: 1 / -1;
  font-size: 17px;
}
.odl-admission-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  color: #333;
}
.odl-admission-links a:hover {
  color: var(--key-color, #333);
  opacity: 1;
}
.odl-admission-links a::after {
  content: "→";
  flex-shrink: 0;
  font-weight: normal;
  font-size: 14px;
}
.odl-admission-links .dept {
  margin-right: 0.3em;
}
@media (max-width: 750px) {
  .odl-admission-links a {
    padding: 12px 2px;
    font-size: 14px;
  }
  .odl-admission-links__wide {
    font-size: 16px;
  }
}

/* ODLポップアップ関連（ここまで） */