@charset "UTF-8";
/* =========================================================
   大谷大学 オープンキャンパス 2027 詳細ページ共通CSS
   - すべて .oc27 配下にスコープ（サイト共通CSSと干渉させない）
   - ブレークポイント（3段階・モバイルファースト）
       SP : 〜767px（基本スタイル）
       TB : 768px〜1023px
       PC : 1024px〜
   ========================================================= */

/* ---------- 設定値（色・フォント・幅はここで一括管理） ---------- */
.oc27 {
  --oc-font-ja: "Noto Sans JP", sans-serif;
  --oc-font-en: "DM Sans", "Noto Sans JP", sans-serif; /* 英数字のフォント（KVの New Hero の代わりに DM Sans に決定）。差し替えはここだけ */

  --oc-text: #222;
  --oc-pink: #f9d3e3;
  --oc-yellow: #ffe9a9;  --oc-orange: #f47216;
  --oc-red: #c92f07; /* 旧ページの赤。時計アイコン（clock_red.svg）の針も同じ色 */
  --oc-blue: #4081cb;
  --oc-dark: #393536;
  --oc-black: #110b09;
  --oc-stripe-a: #f4f4f4;
  --oc-stripe-b: #e9e9e9;

  --oc-grad-btn: linear-gradient(90deg, #7d5ab2 0%, #6a78bb 55%, #5996be 100%);
  --oc-grad-s1: linear-gradient(90deg, #f9b03f, #f2558f);
  --oc-grad-s2: linear-gradient(90deg, #b051af, #5f81ca);
  --oc-grad-s3: linear-gradient(90deg, #4f84d3, #2eb6aa);
  --oc-season1: #ee2368;
  --oc-season2: #a2319d;
  --oc-season3: #3a83d4;

  --oc-panel-w: 1140px;   /* 色付きパネル（白・ピンク・黄）の最大幅 */
  --oc-content-w: 1000px; /* 本文コンテンツの最大幅（旧ページとほぼ同じ） */
  --oc-banner-pickup-w: 600px; /* ピックアップ欄のバナー幅 */
  --oc-banner-links-w: 750px;  /* フッター側バナー（2列）全体の幅 */
  --oc-radius: 10px;     /* バナーの角丸 */
  --oc-radius-photo: 7px; /* 写真（ピックアップ・プログラム）の角丸 */
  --oc-radius-sec: 32px; /* セクション背景の角丸 */
  --oc-gutter: 16px;     /* 左右余白（SP） */
}

/* ---------- WRテンプレートのページ見出しを非表示（旧ページと同じ） ----------
   このCSSは詳細ページでしか読み込まないので、サイトの他ページには影響しない */
.p-pageHeader2 { display: none !important; }
/* ヘッダー下の余白（テンプレートの .c-articleSet の margin-top：PC 80px／SP 60px）をなくす
   :has() で「このページの本文が入っている .c-articleSet」だけに限定 */
.c-articleSet:has(.oc27) { margin-top: 0; }
body { background-color: #fff; } /* 万一すき間が出てもサイト地のグレーが見えないように（旧ページと同じ） */

/* ---------- スコープ内リセット ----------
   :where() で詳細度を0にし、下の各パーツ指定が必ず勝つようにする */
:where(.oc27),
:where(.oc27) *,
:where(.oc27) *::before,
:where(.oc27) *::after { box-sizing: border-box; }
:where(.oc27) :where(h1, h2, h3, p, ul, dl, dd, figure) { margin: 0; padding: 0; }
:where(.oc27) ul { list-style: none; }
:where(.oc27) img { display: block; max-width: 100%; height: auto; border: 0; }
:where(.oc27) a { color: inherit; text-decoration: none; }

.oc27 {
  font-family: var(--oc-font-ja);
  color: var(--oc-text);
  font-size: 14px;
  font-weight: 500; /* 旧ページ（body）と同じ */
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-x: clip;
  background: repeating-linear-gradient(135deg, var(--oc-stripe-a) 0 3px, var(--oc-stripe-b) 3px 13px);
  /* 親要素の幅に関係なく、ブラウザの左右いっぱいに広げる
     --oc-vw はJSでスクロールバーを除いた幅を入れる（未設定時は100vw） */
  width: var(--oc-vw, 100vw);
  margin-left: calc(50% - var(--oc-vw, 100vw) / 2);
}
.oc27 .oc-en { font-family: var(--oc-font-en); }

/* ---------- 共通：見出し ---------- */
.oc-head {
  position: relative;
  /* 重なり順：文字（3）＞丸写真（2）＞手書き英字・ドット（1）。
     手書き英字を丸写真の下に回すため、.oc-head 自体には z-index を付けず、中の要素ごとに指定する */
  text-align: center;
  margin-bottom: 28px;
  padding: 0 var(--oc-gutter);
}
/* 見出し背景の手書き風英字（SVG）
   表示幅＝ --en-w（デザイン実寸）× --en-scale（SP 0.744／TB 1.02／PC 1.2）
   見出し（h2）の中心に、英字の中心を重ねる */
.oc-head { --en-scale: 0.744; }
.oc-head__en {
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 1; /* 丸写真（2）より下 */
  width: calc(var(--en-w, 300px) * var(--en-scale));
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}
.oc-head__en--pickup    { --en-w: 260px; opacity: 0.5; }
.oc-head__en--program   { --en-w: 330px; opacity: 0.5; }
.oc-head__en--cafeteria { --en-w: 305px; }
.oc-head__en--schedule  { --en-w: 365px; }
.oc-head__en--movie     { --en-w: 290px; }
.oc-head__en--access    { --en-w: 310px; opacity: 0.5; }
/* 見出しまわりの文字は丸写真（2）より前 */
.oc-head__ja,
.oc-head__lead,
.oc-head__note { position: relative; z-index: 3; }
.oc-head__ja {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.oc-head__lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  word-break: auto-phrase;
}
/* リード文の下の注記（※〜）：本文より2px小さく */
.oc-head__note {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
}

/* 画面幅ごとに有効な改行：<br class="oc-br-sp">＝スマホのみ、<br class="oc-br-tb">＝タブレットのみ（両方付ければ両方で有効） */
.oc27 .oc-br-tb { display: none; }
.oc27 .oc-br-sp { display: inline; }
@media (min-width: 768px) {
  .oc27 .oc-br-sp { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .oc27 .oc-br-tb { display: inline; }
}

.oc-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: calc(var(--oc-content-w) + var(--oc-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--oc-gutter);
}

/* ---------- ページタイトル（旧ページと同じ書体・級数） ----------
   トップページ：KVをヘッダー直下までぴったり上げ、パンくず・h1はKVの上に重ねる（position: absolute）。
   KVにかぶっても読めるよう、パンくずの行とh1をそれぞれ白い帯（左右が丸い）で囲む。帯の幅は文字に合わせる
   HTMLの順番（h1 → KV）は変えず、見た目だけ重ねている */
.oc27 { position: relative; } /* ページタイトルの位置の基準 */
.oc-pagetitle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3; /* 文字（3）：KV・ドット（1）より前 */
  padding: 12px var(--oc-gutter) 0;
}
/* ローカル確認用：ブラウザ標準の body の余白（8px）をなくし、KVを画面の一番上にぴったり付ける
   .oc27 が body の直下にあるとき（ローカルで直接開いたとき）だけ効く。WRではテンプレートの中に入るので効かない */
body:has(> .oc27) { margin: 0; }

/* 帯は「受験生の方へ」「オープンキャンパス」「h1」の3本。文字の大きさ・帯の形はすべて同じ */
.oc-pagetitle__links,
.oc-pagetitle__title {
  /* 帯の左端を本文（最大1000px）の左端にそろえる */
  margin-left: max(0px, calc((100% - var(--oc-content-w)) / 2));
}
.oc-pagetitle__links a,
.oc-pagetitle__title {
  width: fit-content;
  padding: 3px 14px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* 淡いKVの上でも帯の輪郭がわかるよう、ごく薄い影 */
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}
.oc-pagetitle__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--oc-red);
}
.oc-pagetitle__title { font-size: 14px; } /* h1はパンくずより2px大きく（SP・TBは本文と同じ） */
.oc-pagetitle__links a::before { content: "－ "; }
.oc-pagetitle__links a:hover { text-decoration: underline; }

/* ---------- KV ----------
   KV画像 kv_2027top は 3800×1850（詳細ページのKV 3800×1577 の上を273px伸ばしたもの。パンくず・h1の帯のまわりに余裕を持たせるため）

   【見せ方のルール】各サイズで決めるのは次の2つだけ。ほかはすべて calc() で自動計算する
     --kv-scale：拡大率（1＝画面幅ぴったり）。左右は同じ量ずつ切り落とす
     --kv-crop ：上の切り落とし量（KV画像のpx。3800px幅での値）。下端は常にそろえたまま
   現在：SP 1.807倍・0px／TB 1.1倍・170px／PC 1倍・180px
   しくみ：画像を --kv-scale 倍の幅で表示し、左と上にずらして枠（overflow: hidden）からはみ出た分を隠す
     margin の % は「枠の幅」に対する値なので、画像のpxを 3800 で割って幅に換算できる
   ※KV画像を作り直したら --kv-w（横幅）と、ドットの --y（画像の何px目か）を確認する */
.oc-kv {
  position: relative;
  z-index: 1; /* ドット（1）：白地より前、丸写真（2）・文字（3）より後ろ */
  --kv-w: 3800;     /* KV画像の横幅（px） */
  --kv-scale: 1.807; /* SP：左右の柄を見切り、中央の黒いタイトル部分を大きく見せる（左右を約40.4%ずつ切り落とし） */
  --kv-crop: 0;      /* SP：上は切り落とさない */
  --kv-offset: calc((var(--kv-scale) - 1) / 2 * 100%); /* 左の切り落とし量（自動計算） */
}
.oc-kv__frame { overflow: hidden; }
.oc-kv__frame picture { display: block; }
.oc-kv__img {
  width: calc(var(--kv-scale) * 100%);
  max-width: none;
  margin-left: calc(var(--kv-offset) * -1);
  margin-top: calc(var(--kv-crop) / var(--kv-w) * var(--kv-scale) * -100%);
  animation: oc-kv-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* TB：1.1倍。上は170pxを切り落とす（表示の高さ＝(1850−170)×1.1＝1848。KV画像の3800px幅に対する値）
   拡大率を変えて高さを保つときは、切り落とし＝1850 − 1848 ÷ 拡大率 */
@media (min-width: 768px) {
  .oc-kv { --kv-scale: 1.1; --kv-crop: 170; }
}
/* PC：等倍。上は伸ばした273pxのうち180pxを切り落とし、93px分だけ見せる
   ※1024px幅で h1の帯と黒枠のすき間は約17px（計算値）。約220pxより多く切ると、1024px付近で帯が黒枠にかかり始める */
@media (min-width: 1024px) {
  .oc-kv { --kv-scale: 1; --kv-crop: 180; }
}
@keyframes oc-kv-in {
  from { opacity: 0; transform: scale(1.05); }
  to   { opacity: 1; transform: scale(1); }
}

/* KVの上のドット
   --x / --w：KV画像の横幅に対する位置・幅（%）
   --y      ：KV画像の上から何px目か（3800×1850 の画像のpx）。上の切り落とし・拡大率に合わせて自動で換算する
   --dx / --dy：画面幅に関係なく px でずらす量
   縦位置は画面幅（--oc-vw。JSで設定、未設定時は100vw）から計算する（KVは画面の左右いっぱいの幅のため） */
.oc-kv__dot {
  position: absolute;
  left: calc(var(--x) * var(--kv-scale) - var(--kv-offset) + var(--dx, 0px));
  top: calc((var(--y) - var(--kv-crop)) / var(--kv-w) * var(--kv-scale) * var(--oc-vw, 100vw) + var(--dy, 0px));
  width: calc(var(--w) * var(--kv-scale));
  max-width: none;
  pointer-events: none;
  animation:
    oc-dot-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--in-delay, 0.6s) both,
    oc-float var(--float-dur, 5s) ease-in-out var(--float-delay, 1.5s) infinite;
}
/* --y は元のKV（3800×1577）での位置＋273px（元は 71% / 89.3% → 1120px＋273／1408px＋273） */
.oc-kv__dot--1 { --x: 55%;   --y: 1393; --dy: 20px; --w: 19%; --in-delay: 0.7s; --float-dur: 4.4s; }  /* オレンジ→緑：2027の「7」の右下（詳細ページは 63% / 54%） */
.oc-kv__dot--2 { --x: 17.8%; --y: 1681; --dx: 25px; --w: 28%; --in-delay: 0.9s; --float-dur: 5.2s; --float-delay: 2s; } /* 青→紫：黒枠の左下 */
@keyframes oc-dot-in {
  from { opacity: 0; scale: 0.8; }
  to   { opacity: 1; scale: 1; }
}


/* ---------- パネル（白い本体） ---------- */
.oc-panel {
  max-width: var(--oc-panel-w);
  margin: 0 auto;
}

/* ---------- 事前申込 ---------- */
.oc-entry {
  position: relative;
  background: #fff;
  text-align: center;
  padding: 45px var(--oc-gutter) calc(138px + var(--oc-radius-sec));
}
.oc-entry__deco {
  position: absolute;
  z-index: 1; /* ドット（1）＜丸写真（2）＜文字（3） */
  pointer-events: none;
  opacity: 0.9;
  animation: oc-float 7s ease-in-out infinite;
}
.oc-entry__deco--r { top: 10px; right: 70px; width: 264px; animation-delay: -3s; } /* dot3.webp（1400×645） */
.oc-entry__title {
  position: relative;
  font-size: 20px; /* 各見出し（.oc-head__ja）と同じ */
  font-weight: 900;
  letter-spacing: 0.02em;
}
.oc-entry__text {
  position: relative;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}
.oc-entry__btn-wrap { position: relative; margin-top: 22px; }
/* 事前申込の文字・ボタンは丸写真より前 */
.oc-entry__title,
.oc-entry__text,
.oc-entry__btn-wrap,
.oc-pamphlet { z-index: 3; }

/* ボタン */
.oc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  height: 60px;
  padding: 0 52px 0 40px;
  border-radius: 999px;
  background: var(--oc-grad-btn);
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(98, 88, 178, 0.28);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
  -webkit-tap-highlight-color: transparent;
}
.oc-btn::after { /* 矢印 */
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.3s;
}
.oc-btn::before { /* 光が流れる演出 */
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
}
.oc-btn span { position: relative; }
@media (hover: hover) {
  .oc-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 14px rgba(98, 88, 178, 0.38);
  }
  .oc-btn:hover::after { right: 20px; }
  .oc-btn:hover::before { animation: oc-shine 0.8s ease; }
}
.oc-btn:active { transform: scale(0.97); }
.oc-btn:focus-visible { outline: 3px solid #5996be; outline-offset: 4px; }
/* タッチ端末：バナー・スケジュールカード・SNSアイコンは、タップした瞬間に少し縮む（申込ボタンと同じ） */
@media (hover: none) {
  .oc-banner,
  a.oc-sch__card,
  .oc-sns__list a { -webkit-tap-highlight-color: transparent; }
  .oc-banner:active,
  a.oc-sch__card:active,
  .oc-sns__list a:active { transform: scale(0.97); transition-duration: 0.1s; }
}
/* 全サイズ：目立たせるため、ゆっくり呼吸するように拡大縮小（ふわふわ）
   scale プロパティで動かすので、ホバー時の拡大・タップ時の縮小（transform）と重ねがけできる */
.oc-btn { animation: oc-breath 2.8s ease-in-out infinite; }
@keyframes oc-breath {
  0%, 100% { scale: 1; }
  50%      { scale: 1.04; }
}
/* 全端末：「光が流れる演出」を一定間隔で自動再生（PCはカーソルを合わせたときにも光る） */
.oc-btn::before { animation: oc-shine-loop 3.5s ease 1s infinite; }
@keyframes oc-shine-loop {
  0%        { left: -60%; }
  25%, 100% { left: 130%; } /* 最初の約0.9秒で光が流れ、残りは休み */
}
@keyframes oc-shine {
  from { left: -60%; }
  to   { left: 130%; }
}

/* 当日パンフレット（公開時にHTMLのコメントを外す） */
.oc-pamphlet {
  position: relative;
  max-width: var(--oc-content-w);
  margin: 40px auto 0;
}
.oc-pamphlet__title { font-size: 18px; font-weight: 900; }
.oc-pamphlet__table { display: block; margin-top: 16px; }
.oc-pamphlet__table img { width: 100%; border-radius: var(--oc-radius); border: 1px solid #ddd; }
.oc-pamphlet__text { margin-top: 14px; font-size: 14px; }
.oc-pamphlet__btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--oc-text);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}
.oc-pamphlet__btn small { font-weight: 400; font-size: 11px; }
.oc-pamphlet__btn:hover { background: var(--oc-text); color: #fff; }

/* ---------- セクション共通 ---------- */
.oc-sec { position: relative; }

/* 開催スケジュール（ピンク）：詳細ページの「ピックアップ」欄の位置・地色・丸写真（p1〜p3）をそのまま使用 */
/* 各セクションには z-index を付けない（付けると、セクションをまたいで「文字＞丸写真＞ドット」の順にできなくなる）。
   背景どうしの重なりはHTMLの順（後ろのセクションが前）で決まる */
.oc-sec--schedule {
  /* メッシュグラデーション風：薄いピンクの地に、Seasonの6色をぼかした円で散らす（画像なし・CSSのみ）
     at 横% 縦% ＝色の中心、rgba の最後の数値＝濃さ、transparent の % ＝にじみの広さ
     後ろに書いたものほど下に重なる */
  background-color: #fdf0f4;
  background-image:
    radial-gradient(at 6% 4%,   rgba(249, 176, 63, 0.30) 0, transparent 45%),  /* 左上：オレンジ（1st） */
    radial-gradient(at 94% 10%, rgba(242, 85, 143, 0.26) 0, transparent 50%),  /* 右上：ピンク（1st） */
    radial-gradient(at 30% 42%, rgba(176, 81, 175, 0.16) 0, transparent 45%),  /* 中央左：紫（2nd） */
    radial-gradient(at 82% 58%, rgba(95, 129, 202, 0.20) 0, transparent 50%),  /* 中央右：青紫（2nd） */
    radial-gradient(at 10% 88%, rgba(79, 132, 211, 0.18) 0, transparent 45%),  /* 左下：青（3rd） */
    radial-gradient(at 70% 98%, rgba(46, 182, 170, 0.22) 0, transparent 50%);  /* 右下：青緑（3rd） */
  border-radius: var(--oc-radius-sec) var(--oc-radius-sec) 0 0;
  margin-top: calc(var(--oc-radius-sec) * -1); /* 上の白地を角丸の下まで回り込ませる */
  padding: 70px 0 calc(56px + var(--oc-radius-sec));
}

/* プログラム（白） */
.oc-sec--program {
  background: #fff;
  border-radius: var(--oc-radius-sec) var(--oc-radius-sec) 0 0;
  margin-top: calc(var(--oc-radius-sec) * -1);
  padding: 64px 0 calc(64px + var(--oc-radius-sec));
}

/* 動画でわかる！大谷大学：詳細ページの「学食&カフェ」欄の位置・角丸・丸写真（c1〜c3）をそのまま使用 */
.oc-sec--movie {
  /* 開催スケジュールと同じメッシュグラデーション風。色の配置をアレンジ：
     地は薄いラベンダー（紫系のエリアとして残す）。上は寒色（青紫・青緑）、中ほどに紫・ピンク、下は青（左）とオレンジ（右）
     at 横% 縦% ＝色の中心、rgba の最後の数値＝濃さ、transparent の % ＝にじみの広さ。後ろに書いたものほど下に重なる */
  background-color: #f4f0f9;
  background-image:
    radial-gradient(at 8% 6%,   rgba(95, 129, 202, 0.24) 0, transparent 45%),  /* 左上：青紫（2nd） */
    radial-gradient(at 92% 8%,  rgba(46, 182, 170, 0.20) 0, transparent 45%),  /* 右上：青緑（3rd） */
    radial-gradient(at 76% 46%, rgba(176, 81, 175, 0.20) 0, transparent 50%),  /* 中央右：紫（2nd） */
    radial-gradient(at 20% 56%, rgba(242, 85, 143, 0.14) 0, transparent 45%),  /* 中央左：ピンク（1st） */
    radial-gradient(at 92% 96%, rgba(249, 176, 63, 0.24) 0, transparent 45%),  /* 右下：オレンジ（1st） */
    radial-gradient(at 8% 96%,  rgba(79, 132, 211, 0.20) 0, transparent 50%);  /* 左下：青（3rd） */
  border-radius: var(--oc-radius-sec) var(--oc-radius-sec) 0 0;
  margin-top: calc(var(--oc-radius-sec) * -1);
  padding: 112px 0 calc(56px + var(--oc-radius-sec)); /* 下の余白は開催スケジュールと同じ56px（＋下のアクセス欄が重なる角丸分） */
}

/* 大谷大学へのアクセス（白）：パネル内の最後のセクション。
   下の角は角丸なしで、下の黒い関連リンク欄にぴったり付ける（事前申込エリアの上側とKVの関係と同じ） */
.oc-sec--access {
  background: #fff;
  border-radius: var(--oc-radius-sec) var(--oc-radius-sec) 0 0;
  margin-top: calc(var(--oc-radius-sec) * -1);
  padding: 64px 0 56px;
}

/* ---------- 丸抜き写真 ----------
   位置・大きさは画面幅に対する計算式で指定（SPはこの下、TB・PCは後半の「丸写真（TB・PC共通）」）
   margin-top はセクションの色地の上端からの位置（マイナスで上にはみ出す） */
.oc-circles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.oc-circle {
  position: absolute;
  top: 0;
  aspect-ratio: 1;
  border-radius: 50%;
}
.oc-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: oc-float var(--float-dur, 4.6s) ease-in-out var(--float-delay, 0s) infinite;
}
@keyframes oc-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
/* ふわふわの周期・開始のずれ（全サイズ共通） */
.oc-circle--p1 { --float-dur: 5.2s; }
.oc-circle--p2 { --float-dur: 4.2s; --float-delay: -1.4s; }
.oc-circle--p3 { --float-dur: 4.8s; --float-delay: -2.6s; }
.oc-circle--c1 { --float-dur: 4.6s; --float-delay: -0.8s; }
.oc-circle--c2 { --float-dur: 4s;   --float-delay: -2.2s; }
.oc-circle--c3 { --float-dur: 5.4s; --float-delay: -1.6s; }
/* SP：TB・PCと同じ並び（見切れ位置・大小関係）を大きくし、見出しにかからないよう個別に調整
   （各値は画面幅に対する比率なので、どのスマホでも同じバランス） */
@media (max-width: 767px) {
  /* ピックアップ：p1は申込ボタンにかかってよい */
  .oc-circle--p1 { left: calc(50% - var(--oc-vw, 100vw) * 0.5807); width: calc(var(--oc-vw, 100vw) * 0.4600); margin-top: calc(var(--oc-vw, 100vw) * -0.4456); }
  .oc-circle--p2 { left: calc(50% - var(--oc-vw, 100vw) * 0.3673); width: calc(var(--oc-vw, 100vw) * 0.2726); margin-top: calc(var(--oc-vw, 100vw) * -0.0867); }
  .oc-circle--p3 { left: calc(50% + var(--oc-vw, 100vw) * 0.0191); width: calc(var(--oc-vw, 100vw) * 0.5206); margin-top: calc(var(--oc-vw, 100vw) * -0.3284); }
  /* 学食：c2（05）は画面中央に置き、c1（04）とc3（06）の両方に重ねて一番手前に */
  .oc-circle--c1 { left: calc(50% - var(--oc-vw, 100vw) * 0.5324); width: calc(var(--oc-vw, 100vw) * 0.4300); margin-top: calc(var(--oc-vw, 100vw) * -0.1287); }
  .oc-circle--c2 { left: calc(50% - var(--oc-vw, 100vw) * 0.1267); width: calc(var(--oc-vw, 100vw) * 0.2533); margin-top: calc(var(--oc-vw, 100vw) * -0.0979); z-index: 1; }
  .oc-circle--c3 { left: calc(50% + var(--oc-vw, 100vw) * 0.0687); width: calc(var(--oc-vw, 100vw) * 0.5333); margin-top: calc(var(--oc-vw, 100vw) * -0.1772 - 5px); } /* トップページ：詳細ページより5px上 */
  /* 丸写真まわりにゆとりを持たせるため、プログラム欄の下（+30px）と学食見出しの上（+20px）を広げる */
  .oc-sec--program { padding-bottom: calc(94px + var(--oc-radius-sec)); }
  .oc-sec--movie { padding-top: 132px; }
}

/* ---------- ピックアップ記事 ---------- */
.oc-pick {
  display: flex;
  flex-direction: column-reverse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.oc-pick + .oc-pick { margin-top: 20px; }
.oc-pick__body { padding: 18px 18px 22px; }
.oc-pick__dept { font-size: 14px; font-weight: 700; color: var(--oc-blue); }
.oc-pick__title {
  margin-top: 2px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--oc-blue);
}
.oc-pick__time {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
}
.oc-pick__text { margin-top: 6px; font-size: 13px; line-height: 1.75; }
.oc-pick__photo img {
  width: 100%;
  aspect-ratio: 8 / 5; /* プログラム写真と同じ比率。画像は 1200×750 */
  object-fit: cover;
}

/* 時計アイコン（SVGファイルを読み込み）
   色を変えたいときは top/img/clock_*.svg の fill を書き換えるか、別名のSVGを用意して url() を差し替える */
.oc-icon-clock,
.oc-prog__time::before {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  background: center / contain no-repeat;
}
.oc-icon-clock         { background-image: url("../img/clock_black.svg"); } /* ピックアップ記事 */
.oc-prog__time::before { background-image: url("../img/clock_red.svg"); }   /* プログラムの時間ラベル */

/* ---------- バナー（5:2） ---------- */
.oc-banner {
  display: block;
  border-radius: var(--oc-radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}
.oc-banner img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
@media (hover: hover) {
  .oc-banner:hover { transform: scale(1.05); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2); }
}
.oc-banner--pickup {
  max-width: var(--oc-banner-pickup-w);
  margin: 40px auto 0;
}

/* KV下の白いエリア：次回開催バナー＋ODLバナー（SP・TBは縦に2枚、PCは左右に2枚） */
.oc-entry__banners {
  position: relative;
  z-index: 3; /* 丸写真・ドットより前 */
  display: grid;
  gap: 24px;
  max-width: var(--oc-banner-pickup-w);
  margin: 0 auto;
}
/* ODLポップアップを開いている間は最前面へ（z-index: 3 の中に閉じ込められないように） */
.oc-entry__banners:has(.odl-modal-toggle:checked) { z-index: 10000; }
/* ODLバナー＋ポップアップの囲み：表示中は囲みが無いものとして扱い、レイアウトを変えない。hidden を付けると丸ごと非表示 */
.oc-entry__odl { display: contents; }
.oc-entry__odl[hidden] { display: none; }
/* KV下の2枚（次回開催・ODL）は黒い罫線で囲む（白地の上でバナーの端を締める） */
.oc-entry__banners .oc-banner {
  border: 2px solid var(--oc-black);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12); /* ふだんからうっすら影 */
}
/* ホバー時は通常のバナーと同じ濃い影（上の指定が .oc-banner:hover より後ろにあるため、ここで改めて指定） */
@media (hover: hover) {
  .oc-entry__banners .oc-banner:hover { box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2); }
}
/* 白地の上なのでフォーカス枠は文字色 */
.oc-entry .oc-banner:focus-visible { outline: 3px solid var(--oc-text); outline-offset: 4px; }

/* ---------- プログラム ---------- */
.oc-prog-list {
  display: grid;
  grid-template-columns: 1fr; /* SP：1列／TB：2列／PC：3列 */
  gap: 32px;
}
.oc-prog__photo {
  position: relative;
  border-radius: var(--oc-radius-photo);
  overflow: hidden;
}
.oc-prog__photo img {
  width: 100%;
  aspect-ratio: 8 / 5; /* ピックアップ写真と同じ比率。画像は 800×500 */
  object-fit: cover;
}
/* 時間ラベル：写真の左下にぴったり。左下は写真と同じ角丸、右上だけ角丸 */
.oc-prog__time {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 0 var(--oc-radius-photo) 0 0;
  background: var(--oc-red);
  color: #fff;
  font-size: 12px; /* 本文（.oc-prog__text）より1px小さく */
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
}
.oc-prog__time::before { content: ""; margin-right: -2px; }
/* トップページ：時間ラベルと同じ赤い枠にプログラム名を入れる（時計アイコンなし） */
.oc-prog__name {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 4px 14px 4px 10px;
  border-radius: 0 var(--oc-radius-photo) 0 0;
  background: var(--oc-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.oc-prog__title {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--oc-red);
}
.oc-prog__text { margin-top: 4px; font-size: 13px; line-height: 1.7; }

/* ---------- 特典の案内バナー（プログラム欄の最後。リンクなし） ----------
   バナーと同じ 5:2・角丸。中央揃えで、全サイズ最大600px（SP・TBのKV下のバナーと同じ幅） */
.oc-tokuten {
  max-width: var(--oc-banner-pickup-w);
  margin: 32px auto 0; /* プログラムの写真どうしの間隔と同じ（SP 32px／TB 24px／PC 30px） */
}
.oc-tokuten img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  border-radius: var(--oc-radius);
}

/* ---------- 動画でわかる！大谷大学 ----------
   白いカード（見出し・説明・動画またはリンク画像）。SPは1列、TB・PCは2列 */
/* 見出しとカードの間隔は、スケジュール（.oc-sch-list の padding-top）とそろえる */
.oc-movie-list { display: grid; gap: 16px; padding-top: 28px; }
/* 動画・リンク画像はカードの左右・下にぴったり付ける（旧ページと同じ）。余白は見出し・説明文だけに付ける（左右は --movie-pad） */
.oc-movie {
  --movie-pad: 16px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--oc-radius);
  overflow: hidden; /* 動画・画像の下の角をカードの角丸で切る */
}
.oc-movie__title {
  padding: 18px var(--movie-pad) 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--oc-red);
}
.oc-movie__text {
  margin-top: 6px;
  margin-bottom: 16px;
  padding: 0 var(--movie-pad);
  font-size: 13px;
  line-height: 1.7;
}
/* 動画・リンク画像はカードの下端にそろえる（説明文の長さが違っても2列で下がそろう） */
.oc-movie__media,
.oc-movie__link { margin-top: auto; }
.oc-movie__media { aspect-ratio: 16 / 9; }
.oc-movie__media iframe { display: block; width: 100%; height: 100%; border: 0; }
.oc-movie__link {
  display: block;
  transition: opacity 0.3s;
}
.oc-movie__link img { display: block; width: 100%; height: auto; }
@media (hover: hover) {
  .oc-movie__link:hover { opacity: 0.8; }
}

/* ---------- 大谷大学へのアクセス ----------
   SP・TB：路線図 → 最短ルート動画の縦並び。PC：左に路線図、右に最短ルート動画 */
.oc-access {
  display: grid;
  gap: 32px;
  padding-top: 8px;
}
.oc-access__map {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.oc-access__map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--oc-radius-photo);
}
/* 路線図：クリック／タップで拡大表示（oc2027.js の initZoom）。右下に「拡大」の目印 */
.oc-zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.oc-zoom__badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  transition: background 0.3s;
}
/* 虫めがね＋プラスのアイコン（白。SVGをCSSに直接記述） */
.oc-zoom__badge::before {
  content: "";
  width: 14px;
  height: 14px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M15.5 15.5 22 22M10 7v6M7 10h6'/%3E%3C/svg%3E");
}
@media (hover: hover) {
  .oc-zoom:hover .oc-zoom__badge { background: var(--oc-red); }
}
.oc-zoom:focus-visible { outline: 3px solid var(--oc-text); outline-offset: 4px; border-radius: var(--oc-radius-photo); }

/* 拡大表示の画面（JSで .oc27 の直下に作る）：黒い半透明の背景に、画面に収まる大きさで表示 */
.oc-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(17, 11, 9, 0.9);
  opacity: 0;
  transition: opacity 0.25s;
}
.oc-viewer.is-open { opacity: 1; }
.oc-viewer__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none; /* ピンチ・ドラッグはJSで処理（ページ全体が拡大されないように） */
  cursor: grab;
}
.oc-viewer__stage.is-dragging { cursor: grabbing; }
.oc-viewer__img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.oc-viewer__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--oc-text);
  font-size: 26px;
  line-height: 44px;
  cursor: pointer;
}
.oc-viewer__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.oc-viewer__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 1;
  translate: -50% 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .oc-viewer { transition: none; }
}

.oc-access__route { text-align: center; }
/* 駅からの近さ（旧ページでは見出し下のリード文）：最短ルートの上に置く */
.oc-access__lead {
  margin-top: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.75;
}
.oc-access__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--oc-red);
}
.oc-access__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
}
.oc-access__movie {
  max-width: 600px;
  margin: 16px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--oc-radius-photo);
  overflow: hidden;
}
.oc-access__movie iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- 学食&カフェ（トップページでは未使用。不要CSSの整理時に削除） ---------- */
.oc-cafe-list { display: grid; gap: 16px; }
.oc-cafe {
  display: grid;
  /* 文字：写真＝半々。画面が狭く文字が収まらないときは、写真の列のほうを縮める
     （写真の列を50%固定にすると、文字に押されてカードの右へはみ出し、右側だけ切れてしまう） */
  grid-template-columns: 1fr minmax(0, 1fr);
  align-items: center;
  background: #fff;
  border: 2px solid var(--oc-orange);
  border-radius: var(--oc-radius);
  overflow: hidden;
}
.oc-cafe__body {
  word-break: auto-phrase;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 10px 10px 14px;
}
.oc-cafe__note { font-size: 13px; line-height: 1.6; }
.oc-cafe__catch {
  margin: 4px 0;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--oc-orange);
}
.oc-cafe__small { font-size: 12px; line-height: 1.6; }
.oc-cafe__photo { aspect-ratio: 1; } /* SP・PCは正方形（画像1200×750の中央を切り抜き）。TBは8:5で全体表示 */
/* SP・PC：文章が写真より高いとき（狭い画面）は、写真をカードの高さいっぱいに伸ばし、左右を切り抜く（上下のすき間をなくす） */
@media (max-width: 767px), (min-width: 1024px) {
  /* 幅は列いっぱいに固定（指定しないと、伸ばした高さに合わせて幅まで正方形に広がり、右側だけはみ出して切れる） */
  .oc-cafe__photo { align-self: stretch; width: 100%; }
}
.oc-cafe__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 開催スケジュール ---------- */
.oc-sch-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 28px;
}
@media (min-width: 480px) {
  .oc-sch-list { grid-template-columns: repeat(3, 1fr); }
  .oc-sch__date .oc-en { font-size: 26px; }
  .oc-sch__season { font-size: 10.5px; padding: 3px 8px; }
}
/* 日程が仮のカードは <li hidden> で非表示（外せば元どおり）
   非表示のカードがあるあいだは、表示中のカードを通常と同じ幅のまま中央に寄せる
   （列幅＝通常の列数で割った幅。SP 479px以下は2列なので指定なし） */
.oc-sch[hidden] { display: none; }
@media (min-width: 480px) {
  .oc-sch-list:has(> .oc-sch[hidden]) { grid-template-columns: repeat(auto-fit, calc((100% - 8px * 2) / 3)); justify-content: center; }
}
@media (min-width: 768px) {
  .oc-sch-list:has(> .oc-sch[hidden]) { grid-template-columns: repeat(auto-fit, calc((100% - 12px * 3) / 4)); }
}
@media (min-width: 1024px) {
  .oc-sch-list:has(> .oc-sch[hidden]) { grid-template-columns: repeat(auto-fit, calc((100% - 14px * 4) / 5)); }
}
.oc-sch__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 16px 6px 14px;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  a.oc-sch__card:hover { transform: translateY(-4px); box-shadow: 0 4px 9px rgba(0, 0, 0, 0.12); }
}
.oc-sch__year {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  font-family: var(--oc-font-en);
  font-weight: 900;
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
}
.oc-sch__date { display: flex; align-items: baseline; justify-content: center; font-weight: 700; line-height: 1.1; }
.oc-sch__date .oc-en { font-weight: 900; font-style: italic; font-size: 28px; letter-spacing: -0.01em; }
/* 曜日：全角カッコの外側の空き（半角分）を詰めて、日付＋曜日の塊が中央に来るように（palt＝プロポーショナル詰め）
   左カッコの空きも詰まるので、日付との間は margin-left で確保 */
.oc-sch__date small {
  font-size: 12px;
  font-feature-settings: "palt";
  margin-left: 0.2em;
}
.oc-sch__season {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}
.oc-sch__season i { font-family: var(--oc-font-en); font-style: italic; }
.oc-sch--s1 .oc-sch__season { background: var(--oc-grad-s1); }
.oc-sch--s2 .oc-sch__season { background: var(--oc-grad-s2); }
.oc-sch--s3 .oc-sch__season { background: var(--oc-grad-s3); }
.oc-sch__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
}
.oc-sch__more::after {
  content: "";
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 1 0 16A8 8 0 1 1 8 0zM6.3 4.4l1.2-1.2L12.3 8l-4.8 4.8-1.2-1.2L9.9 8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 0a8 8 0 1 1 0 16A8 8 0 1 1 8 0zM6.3 4.4l1.2-1.2L12.3 8l-4.8 4.8-1.2-1.2L9.9 8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* ページ公開前の日程：「coming soon」表示（矢印なし・リンクなし） */
.oc-sch__more--soon {
  font-family: var(--oc-font-en);
  font-style: italic;
  font-weight: 700;
  font-size: 13px; /* 「詳細を見る」より1px大きく（TB 14px／PC 15px） */
  color: var(--oc-red);
}
.oc-sch__more--soon::after { content: none; }
/* ページ公開前の日程は、カードの地だけグレーにする（日付・Seasonラベル・coming soon は元の色のまま）
   カードの地は半透明にしない（丸写真と重なるカードで、後ろの写真が透けるため） */
.oc-sch.is-soon .oc-sch__card { background: #e8e8e8; }

/* 3行のかたまりは中央に置き、行頭は左で揃える（幅＝一番長い行）
   2列のグリッド（左＝帯、右＝説明）にして、帯の幅を一番長い帯にそろえる */
.oc-season {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  column-gap: 0.5em;
  row-gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 28px auto 0;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}
.oc-season__row { display: contents; } /* 行の<div>はグリッドに影響させない */
/* SP：説明は帯の下に回し、帯・説明とも中央揃え（帯は真ん中の列に置くので幅はそろう） */
@media (max-width: 767px) {
  .oc-season { grid-template-columns: 1fr max-content 1fr; row-gap: 4px; text-align: center; }
  .oc-season__row dt { grid-column: 2; }
  .oc-season__row dd { grid-column: 1 / -1; }
  .oc-season__row + .oc-season__row dt { margin-top: 12px; }
}
/* TB・PC：説明の2行目以降は先頭の「：」1文字分下げて、日本語どうしで頭をそろえる（ぶら下げインデント） */
@media (min-width: 768px) {
  .oc-season__row dd { padding-left: 1em; text-indent: -1em; }
}
/* シーズン名：スケジュールカードのSeasonラベルと同じ帯＋白文字。文字は帯の中央 */
.oc-season__row dt {
  text-align: center;
  padding: 3px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 1em; /* 本文と同じ級数 */
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}
.oc-season__row dt i { font-family: var(--oc-font-en); font-style: italic; }
.oc-season__row--s1 dt { background: var(--oc-grad-s1); }
.oc-season__row--s2 dt { background: var(--oc-grad-s2); }
.oc-season__row--s3 dt { background: var(--oc-grad-s3); }

/* ---------- 関連リンク・SNS ---------- */
.oc-links {
  background: var(--oc-dark);
  color: #fff;
  padding: 36px 0 36px;
}
/* SP：横スライド。表示中のバナーを中央に置き、左右に前後のバナーが少しのぞく（ループはJS）
   スクロールバーの代わりに、下に枚数分の丸、左右に＜＞（どちらも .oc-links__dots / __arrow をJSで生成） */
.oc-links__banners {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.oc-links__banners::-webkit-scrollbar { display: none; }
.oc-links__banners > li { scroll-snap-align: center; }
.oc-links__slider { position: relative; }
.oc-links__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.oc-links__arrow::before { /* く の字の矢印 */
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--oc-dark);
  border-right: 2px solid var(--oc-dark);
}
/* 中央のバナー（幅78%）の左右の端に重ねる */
.oc-links__arrow--prev { left: calc(11% - 16px); }
.oc-links__arrow--prev::before { transform: translateX(1px) rotate(-135deg); }
.oc-links__arrow--next { right: calc(11% - 16px); }
.oc-links__arrow--next::before { transform: translateX(-1px) rotate(45deg); }
.oc-links__arrow:active { transform: translateY(-50%) scale(0.92); }
.oc-links__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 768px) {
  .oc-links__arrow { display: none; }
}
.oc-links__dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
}
.oc-links__dots button {
  display: grid;
  place-items: center;
  width: 22px;  /* 押しやすいよう、丸より広めの押せる範囲 */
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.oc-links__dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s, transform 0.3s;
}
.oc-links__dots button.is-active::before { background: #fff; transform: scale(1.15); }
.oc-links__dots button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 50%; }
@media (min-width: 768px) {
  .oc-links__dots { display: none; }
}
.oc-links__banners .oc-banner { border-radius: 6px; }

.oc-sns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 0 var(--oc-gutter);
}
.oc-sns[hidden] { display: none; } /* 上の display: flex に負けないよう明示（トップページは現在SNS非表示） */
.oc-sns__text { font-size: 14px; font-weight: 700; line-height: 1.7; text-align: center; }
.oc-sns__list { display: flex; gap: 14px; }
.oc-sns__list a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* アイコンは白い円の中に配置。ロゴごとに余白の入り方が違うので、見た目の大きさがそろうよう個別に調整
   LINE・Instagram・X：画像いっぱいにロゴ（Xは線が太く大きく見えるので少し小さめ）／YouTube：横長ロゴ（上下が透明） */
.oc-sns__list img { width: 54%; height: 54%; object-fit: contain; }
.oc-sns__list img.oc-sns__icon--youtube { width: 62%; height: 62%; }
.oc-sns__list img.oc-sns__icon--x { width: 48%; height: 48%; }
@media (hover: hover) {
  .oc-sns__list a:hover { transform: scale(1.1); }
}

/* ---------- お問い合わせ ---------- */
.oc-contact {
  background: var(--oc-black);
  color: #fff;
  text-align: center;
  padding: 30px var(--oc-gutter) 40px;
}
.oc-contact__label {
  display: inline-block;
  padding: 1px 26px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.oc-contact__name { margin-top: 12px; font-size: 18px; font-weight: 700; }
.oc-contact__info { margin-top: 6px; font-size: 14px; line-height: 1.9; }
.oc-contact__info a:hover { text-decoration: underline; }
.oc-contact__sep { display: block; }

/* =========================================================
   TB : 768px〜
   ========================================================= */
@media (min-width: 768px) {
  .oc27 { --oc-gutter: 40px; }

  .oc-pagetitle { padding-top: 16px; }
  .oc-pagetitle__links { margin-bottom: 8px; }

  .oc-panel { margin: 0 20px; }

  .oc-head { margin-bottom: 32px; --en-scale: 1.02; }
  .oc-head__ja { font-size: 22px; }

  .oc-entry { padding: 48px var(--oc-gutter) calc(48px + var(--oc-radius-sec)); } /* バナーの上下の白地を均等に（48px。KVとバナー2枚がなるべく1画面に収まるよう詰めている） */
  .oc-entry__banners { max-width: calc(var(--oc-banner-pickup-w) * 0.9); } /* TB：KVとバナー2枚がなるべく1画面に収まるよう、SPの90%（540px）。PCは左右2枚並びの指定で上書き */
  .oc-entry__deco--r { top: 14px; right: calc(-2% + 130px); width: 336px; } /* TB：右の丸写真の後ろから左側がのぞく（PCと同じ見せ方） */
  .oc-entry__title { font-size: 22px; }
  .oc-entry__text { text-align: center; }
  .oc-btn { height: 64px; font-size: 17px; }

  .oc-sec--schedule { padding-top: 64px; }
  .oc-sec--movie { padding-top: 64px; } /* スケジュールと同じ */
  .oc-movie-list { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 34px; }
  .oc-movie { --movie-pad: 22px; }
  .oc-movie__title { padding-top: 22px; }
  .oc-movie__text { margin-bottom: 18px; }
  .oc-sec--access { padding: 64px 0 64px; }

  .oc-pick {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 文字：写真＝50:50 */
    align-items: center;
    gap: 24px;
    padding: 22px 22px 22px 32px;
  }
  .oc-pick__body { padding: 0; }
  .oc-pick__photo img { border-radius: var(--oc-radius-photo); }

  .oc-prog-list { grid-template-columns: repeat(2, 1fr); gap: 24px; } /* トップページ：写真の下に文字がないので縦も横と同じ */
  .oc-tokuten { margin-top: 24px; } /* 特典バナーもプログラムの写真と同じ間隔 */

  .oc-cafe-list { gap: 20px; }
  .oc-cafe__catch { font-size: 24px; }
  .oc-sch-list { grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 34px; }
  .oc-sch__card { padding: 18px 6px 16px; }
  .oc-sch__year { font-size: 20px; }
  .oc-sch__date .oc-en { font-size: 32px; }
  .oc-sch__date small { font-size: 14px; }
  .oc-sch__season { padding: 3px 10px; font-size: 11px; }
  .oc-sch__more { font-size: 13px; }
  .oc-sch__more--soon { font-size: 14px; }

  .oc-links { padding: 40px 0; }
  .oc-links__banners { /* 2列の通常表示 */
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: calc(var(--oc-banner-links-w) + var(--oc-gutter) * 2);
    margin: 0 auto;
    overflow: visible;
    padding: 0 var(--oc-gutter);
  }
  .oc-sns { flex-direction: row; justify-content: center; gap: 30px; margin-top: 30px; }
  .oc-sns__list { gap: 16px; }
  .oc-sns__list a { width: 70px; height: 70px; }

  .oc-contact__sep { display: inline-block; width: 1em; }
}

/* =========================================================
   丸写真（TB・PC共通：768px〜）
   TBもPCと同じ計算式。画面が狭くなっても「見切れてよい量」の位置で止まり、縮みながら中央へ寄る
   （--oc-cvw ＝ 計算に使う画面幅）
   ========================================================= */
@media (min-width: 768px) {
  .oc27 { --oc-cvw: var(--oc-vw, 100vw); }

  /* ---- 丸写真（TB・PC）の配置 ----
     広い画面：画面中央からの距離・大きさをpxで固定（パネルの外のストライプ部分まではみ出す）
     狭い画面：大きい写真が「見切れてよい量」まで画面端で切れたら、そこから先は
               画面中央・セクション上端を基準に、位置・大きさ・高さをまとめて縮小（＝縮みながら中央へ寄る）
     書き方：各値＝ min/max(広い画面の値, 画面幅 × 広い画面の値 ÷ 切り替え幅)
             切り替え幅 D ＝ 2 ×（中央から写真の外側の端までの距離 − 見切れてよい量）
     margin-top はセクションの色地の上端からの位置（マイナスで上にはみ出す）
     ピックアップ：大きさ p3（大）＞p1（中）＞p2（小） */
  /* p1・p2：見切れてよい量 55px（p1の左端）→ D＝2×(730−55)＝1350px。p2はp1と同じ縮小率で一緒に動く */
  .oc-circle--p1 {
    left: max(calc(50% - 730px), calc(50% - var(--oc-cvw) * 0.5407));
    width: min(340px, calc(var(--oc-cvw) * 0.2519));
    margin-top: max(-245px, calc(var(--oc-cvw) * -0.1815));
  }
  .oc-circle--p2 {
    left: max(calc(50% - 460px), calc(50% - var(--oc-cvw) * 0.3407));
    width: min(230px, calc(var(--oc-cvw) * 0.1704));
    margin-top: max(-45px, calc(var(--oc-cvw) * -0.0333));
  }
  /* p3：見切れてよい量 50px（右端）→ D＝2×(270＋410−50)＝1260px。下端は記事カードの下に潜る */
  .oc-circle--p3 {
    left: min(calc(50% + 270px), calc(50% + var(--oc-cvw) * 0.2143));
    width: min(410px, calc(var(--oc-cvw) * 0.3254));
    margin-top: max(-190px, calc(var(--oc-cvw) * -0.1508));
  }

  /* 学食の丸写真（TB・PC）：ピックアップと同じ仕組み（上の「丸写真（TB・PC）の配置」参照）
     大きさ：c3（大／circle_06）＞c1（中／circle_04）＞c2（小／circle_05） */
  /* c1・c2：見切れてよい量 45px（c1の左端）→ D＝2×(740−45)＝1390px。c2はc1に約20px重ね、同じ縮小率で一緒に動く */
  .oc-circle--c1 {
    left: max(calc(50% - 740px), calc(50% - var(--oc-cvw) * 0.5324));
    width: min(340px, calc(var(--oc-cvw) * 0.2446));
    margin-top: max(-50px, calc(var(--oc-cvw) * -0.0360));
  }
  .oc-circle--c2 {
    left: max(calc(50% - 425px), calc(50% - var(--oc-cvw) * 0.3058));
    width: min(220px, calc(var(--oc-cvw) * 0.1583));
    margin-top: max(-40px, calc(var(--oc-cvw) * -0.0288));
  }
  /* c3：見切れてよい量 60px（右端）→ D＝2×(265＋410−60)＝1230px */
  .oc-circle--c3 {
    left: min(calc(50% + 265px), calc(50% + var(--oc-cvw) * 0.2154));
    width: min(410px, calc(var(--oc-cvw) * 0.3333));
    margin-top: max(-95px, calc(var(--oc-cvw) * -0.0772));
  }
}

/* PCのみ（トップページ）：開催スケジュールの丸写真 p1・p2 の位置を変更（大きさは上の共通指定のまま）
   p1：中心を、もとの p2 の中心から110px左・30px上に置く（もとの p2：左 50%−460px・上 −45px・幅230px の中心）
   p2：KV下の左のバナー（次回開催）の左上の角の後ろからのぞく位置。バナーの大きさは画面幅で変わるので計算で追従させる
       バナーの左端 ＝ 50% − min(500px, (画面幅 − 120px) ÷ 2)
       バナーの高さ ＝ (min(1000px, 画面幅 − 120px) − 24px) ÷ 2 × 0.4（5:2）
       バナーの上端 ＝ スケジュール色地の上端から −(バナーの高さ ＋ 60px)（白いエリアの下の余白）
       → p2 はバナーの左端から100px左、上端から191px上（KVの下端から約140px上にはみ出し、KVと白いエリアの境目にかぶる） */
@media (min-width: 1024px) {
  .oc-circle--p1 {
    left: max(calc(50% - 625px), calc(50% - var(--oc-cvw) * 0.3815 - 110px)); /* もとの p2 の中心から110px左 */
    margin-top: max(-130px, calc(var(--oc-cvw) * -0.0741 - 30px));          /* もとの p2 の中心から30px上 */
  }
  /* 動画欄の c3（丸6）：共通指定の位置より110px上 */
  .oc-circle--c3 { margin-top: calc(max(-95px, var(--oc-cvw) * -0.0772) - 110px); }
  /* 動画欄の c2（丸5）：共通指定の位置より50px上 */
  .oc-circle--c2 { margin-top: calc(max(-40px, var(--oc-cvw) * -0.0288) - 50px); }
  /* 動画欄の c1（丸4）：共通指定より約1.1倍に大きく、位置は220px上・30px右 */
  .oc-circle--c1 {
    left: calc(max(calc(50% - 740px), calc(50% - var(--oc-cvw) * 0.5324)) + 30px);
    width: min(374px, calc(var(--oc-cvw) * 0.2691));
    margin-top: calc(max(-50px, var(--oc-cvw) * -0.0360) - 220px);
  }
  .oc-circle--p2 {
    left: calc(50% - min(500px, (var(--oc-cvw) - 120px) / 2) - 100px);
    margin-top: calc((min(1000px, var(--oc-cvw) - 120px) - 24px) * -0.2 - 251px);
  }
}

/* TBのみ：大（p3・c3）と中（p1・c1）の丸写真を1.1倍に
   画面端側（見切れ位置）は固定したまま内側へ大きくし、上下は中心を保つ。小（p2・c2）は中に合わせて一緒に動かす */
@media (min-width: 768px) and (max-width: 1023px) {
  .oc-circle--p1 { width: calc(var(--oc-cvw) * 0.2771); margin-top: calc(var(--oc-cvw) * -0.1941); }
  .oc-circle--p2 { left: calc(50% - var(--oc-cvw) * 0.3155); margin-top: calc(var(--oc-cvw) * -0.0333 - 10px); } /* PCの位置より10px上 */
  .oc-circle--p3 { left: calc(50% + var(--oc-cvw) * 0.1818); width: calc(var(--oc-cvw) * 0.3579); margin-top: calc(var(--oc-cvw) * -0.1671); }
  .oc-circle--c1 { width: calc(var(--oc-cvw) * 0.2691); margin-top: calc(var(--oc-cvw) * -0.0482 + 30px); } /* PCの位置より30px下 */
  .oc-circle--c2 { left: calc(50% - var(--oc-cvw) * 0.2813); margin-top: calc(var(--oc-cvw) * -0.0288 - 10px); } /* PCの位置より10px上 */
  .oc-circle--c3 { left: calc(50% + var(--oc-cvw) * 0.1821); width: calc(var(--oc-cvw) * 0.3667); margin-top: calc(var(--oc-cvw) * -0.0939); }

  /* 学食カード：2列。カード内は上に文字、下に8:5の写真。
     2枚の高さをそろえ、文字の量が違っても写真の上端が同じ位置に来るよう、文字の行を伸ばす */
  .oc-cafe-list { grid-template-columns: 1fr 1fr; }
  .oc-cafe {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: stretch;
  }
  .oc-cafe__body { padding: 18px 18px 16px; }
  /* HTMLの改行（<br>）を無効にして、カード幅でなりゆきに流す（文節で折り返す） */
  .oc-cafe__body br { display: none; }
  .oc-cafe__body { text-align: center; }
  .oc-cafe__catch { font-size: 22px; } /* 768px幅でも「内容は後日ご案内します。」が1行に収まるサイズ */
  .oc-cafe__photo { aspect-ratio: 8 / 5; } /* プログラム写真と同じ比率。画像（1200×750）をそのまま全体表示 */
}

/* =========================================================
   PC : 1024px〜
   ========================================================= */
@media (min-width: 1024px) {

  .oc-pagetitle { padding: 20px calc(20px + var(--oc-gutter)) 0; } /* 本文の左端とそろえる */
  .oc-pagetitle__links { gap: 8px; margin-bottom: 8px; }
  .oc-pagetitle__links a,
  .oc-pagetitle__title { font-size: 16px; padding: 4px 18px; }
  .oc-pagetitle__title { font-size: 18px; } /* h1はパンくず（16px）より2px大きく */

  .oc-panel { width: calc(100% - 40px); margin: 0 auto; }

  .oc-head { --en-scale: 1.2; }

  .oc-entry { padding: 60px 0 calc(60px + var(--oc-radius-sec)); } /* バナーの上下の白地を均等に（60px）。左右の余白はバナー側（.oc-entry__banners）で取る */
  /* dot3：画面中央を基準に固定。右の丸写真の後ろから左下側がのぞく */
  .oc-entry__deco--r { top: 10px; left: calc(50% + 80px); right: auto; width: 384px; }
  /* バナー2枚を左右に並べてコンパクトに。左右幅は .oc-inner と同じ指定にして、スケジュール・プログラムのカードの左右端にそろえる */
  .oc-entry__banners {
    grid-template-columns: 1fr 1fr;
    max-width: calc(var(--oc-content-w) + var(--oc-gutter) * 2);
    padding: 0 var(--oc-gutter);
  }
  /* ODLを非表示にしている間：次回開催バナー1枚を、2枚並びのときと同じ大きさのまま中央に置く */
  .oc-entry__banners:has(> .oc-entry__odl[hidden]) {
    grid-template-columns: minmax(0, calc((min(var(--oc-content-w), var(--oc-cvw, 100vw) - 120px) - 24px) / 2));
    justify-content: center;
  }

  .oc-sec--schedule { padding-top: 66px; }
  /* p2・p3 の下端はスケジュールのカード（白）の下に少し潜り込む場合がある。カードが前面なので文字は隠れない */
  .oc-pick { padding: 22px 21px 22px 42px; gap: 30px; }
  /* 本文サイズ：旧ページに合わせる（SP・TB 14px／PC 16px、プログラム説明 13px／15px） */
  .oc-head__lead,
  .oc-entry__text,
  .oc-pamphlet__text,
  .oc-season { font-size: 16px; }
  .oc-head__note { font-size: 14px; }
  .oc-pick__text,
  .oc-prog__text { font-size: 15px; }
  .oc-cafe__note { font-size: 14px; }
  .oc-cafe__small { font-size: 13px; }
  .oc-sns__text { font-size: 15px; }
  .oc-contact__name { font-size: 20px; }
  .oc-contact__info { font-size: 16px; }

  .oc-pick__title { font-size: 28px; }
  .oc-pick__dept { font-size: 17px; }
  .oc-pick__time { font-size: 18px; }

  .oc-prog-list { grid-template-columns: repeat(3, 1fr); gap: 30px; } /* トップページ：縦も横と同じ */
  .oc-tokuten { margin-top: 30px; } /* 特典バナーもプログラムの写真と同じ間隔（TBの指定より後ろに書く） */
  .oc-prog__time { font-size: 14px; }
  .oc-prog__title { font-size: 18px; }
  .oc-prog__name { padding: 5px 16px 5px 12px; font-size: 17px; }

  .oc-sec--movie { padding-top: 66px; } /* スケジュールと同じ */
  .oc-movie-list { gap: 30px; padding-top: 38px; }
  .oc-movie { --movie-pad: 28px; }
  .oc-movie__title { padding-top: 26px; font-size: 19px; }
  .oc-movie__text { margin-bottom: 20px; font-size: 15px; }
  .oc-sec--access { padding: 66px 0 72px; }
  /* 左に路線図（縦長）、右に最短ルート動画。動画は路線図の上端にそろえる */
  .oc-access {
    grid-template-columns: minmax(0, 46%) 1fr;
    align-items: start;
    gap: 48px;
    padding-top: 12px;
  }
  .oc-access__map { max-width: none; }
  .oc-access__lead { margin-top: 10px; margin-bottom: 28px; font-size: 16px; }
  .oc-access__title { font-size: 19px; }
  .oc-access__text { font-size: 16px; }
  .oc-access__movie { max-width: none; margin-top: 20px; }
  .oc-cafe-list { grid-template-columns: 1fr 1fr; gap: 28px; }
  /* 写真は最大50%。狭い画面で文字が収まらないときは写真の列を縮める（50%固定だと右側がはみ出して切れ、写真が右寄りに見える） */
  .oc-cafe { grid-template-columns: 1fr minmax(0, 50%); }
  .oc-cafe__body { padding: 12px 14px 12px 20px; }
  .oc-cafe__catch { font-size: 28px; }
  .oc-sch-list { grid-template-columns: repeat(5, 1fr); gap: 14px; padding-top: 38px; }
  .oc-sch__card { padding: 20px 8px 18px; }
  .oc-sch__year { font-size: 22px; }
  .oc-sch__date .oc-en { font-size: 36px; }
  .oc-sch__date small { font-size: 16px; }
  .oc-sch__season { padding: 4px 13px; font-size: 12.5px; }
  .oc-sch__more { font-size: 14px; }
  .oc-sch__more--soon { font-size: 15px; }

  .oc-links__banners { max-width: calc(var(--oc-banner-links-w) + var(--oc-gutter) * 2); }
}

/* =========================================================
   ODLポップアップ（チェックボックス＋labelで開閉。JSなしでも動作）
   ========================================================= */
.oc27 .odl-modal-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
label.oc-banner { cursor: pointer; }
label.oc-banner:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ---- 以下、旧ページ（1213/css/style.css）のODLポップアップをそのまま移植 ----
   ブレークポイントだけこのページに合わせた（旧 750px／751px → 767px／768px）
   画像：タイトル odl2027_title.webp（2027年版）／背景 background.jpg・図 odl_figure.png（旧ページの資材をコピー） */
.odl-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
/* 開いている間は、所属セクションごと最前面へ（後続セクションの下に潜らないように） */
.oc-sec:has(.odl-modal-toggle:checked) { z-index: 10000; }
.odl-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;
  cursor: pointer;
}
.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;
}
.odl-modal-toggle:checked ~ .odl-modal .odl-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.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);
  cursor: pointer;
}
.odl-modal__close:focus-visible { outline: 3px solid #5996be; outline-offset: 2px; }
.odl-modal__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  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__title {
  background-image: url(../img/background.jpg);
  background-size: cover;
  background-position: center;
  padding: 56px 48px 32px;
  margin: -80px -48px 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: 22px;
  border: 3px solid #1d2088;
  box-shadow: 3px 3px 0 0 #1d2088;
  background: #fff;
  padding: 10px 1em;
  margin: 64px auto 32px;
  position: relative;
}
.odl-modal__heading::before,
.odl-modal__heading::after {
  content: '';
  height: 0;
  width: 0;
  border: solid transparent;
  position: absolute;
  left: 30px;
}
.odl-modal__heading::before {
  border-color: transparent;
  border-top-color: #1d2088;
  border-right-color: #1d2088;
  border-width: 10px;
  top: 100%;
  left: 26px;
}
.odl-modal__heading::after {
  border-color: transparent;
  border-top-color: #fff;
  border-right-color: #fff;
  border-width: 6.5px;
  top: 99%;
}
.odl-modal__title + .odl-modal__heading { margin-top: 32px; }
.odl-modal__text {
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: 14px;
  line-height: 1.8;
}
.odl-modal__text--center { text-align: center; }
.odl-modal__text a { color: #c92f07; font-weight: bold; text-decoration: underline; }
.odl-modal__figure img {
  display: block;
  width: 100%;
  max-width: 550px;
  margin: 0 auto 48px;
}
.odl-modal__figure--rounded img { max-width: none; border-radius: 16px; }
.odl-modal__admission-block {
  background-image: url(../img/background.jpg);
  background-size: cover;
  background-position: center;
  padding: 24px 48px 48px;
  margin: 0 -48px -80px;
}
.odl-admission-links {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 24px;
}
.odl-admission-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  color: #333;
}
.odl-admission-links a:hover { color: var(--key-color, #333); }
.odl-admission-links a::after { content: "→"; flex-shrink: 0; font-size: 14px; }

/* SP（〜767px）：旧ページの 〜750px の指定 */
@media (max-width: 767px) {
  .odl-modal__body { padding: 40px 24px 40px; }
  .odl-modal__title { padding: 28px 24px 16px; margin: -40px -24px 24px; }
  .odl-modal__heading { font-size: 16px; margin: 32px auto 16px; padding-top: 4px; padding-bottom: 4px; }
  .odl-modal__title + .odl-modal__heading { margin-top: 16px; }
  .odl-modal__text { margin-bottom: 15px; }
  .odl-modal__figure img { margin-bottom: 24px; }
  .odl-modal__admission-block { padding: 12px 24px 24px; margin: 0 -24px -40px; }
}
/* TB（768px〜）：旧ページの 751px〜 の指定 */
@media (min-width: 768px) {
  .odl-modal__panel { width: 85%; max-width: 680px; max-height: 88vh; margin: 6vh auto 0; }
  .odl-admission-links { grid-template-columns: 1fr 1fr; }
  .odl-admission-links a { padding: 10px 2px; font-size: 14px; }
}
/* PC（1024px〜） */
@media (min-width: 1024px) {
  .odl-modal__panel { width: 90%; max-width: 950px; max-height: 85vh; margin: 7vh auto 0; }
  .odl-modal__text { font-size: 16px; }
}

/* =========================================================
   スクロール連動フェードイン（JSが .oc27 に .is-js を付けた時だけ有効）
   ========================================================= */
.oc27.is-js .js-inview {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.8s ease var(--d, 0s),
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
.oc27.is-js .oc-circle.js-inview {
  translate: 0 0;
  scale: 0.6;
  transition:
    opacity 0.6s ease var(--d, 0s),
    scale 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s);
}
/* 表示後は translate / scale を none に戻す（値が残ると重なりのグループができ、手書き英字を丸写真の下に回せなくなるため） */
.oc27.is-js .js-inview.is-inview { opacity: 1; translate: none; scale: none; }
/* フェードイン付きのバナーも、ホバー時の拡大アニメーションを残す */
.oc27.is-js .oc-banner.js-inview {
  transition:
    opacity 0.8s ease var(--d, 0s),
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s;
}

/* 動きを減らす設定の閲覧者にはアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  .oc27 *, .oc27 *::before, .oc27 *::after {
    animation: none !important;
    transition: none !important;
  }
  .oc27.is-js .js-inview { opacity: 1; translate: none; scale: none; }
}
