@charset "UTF-8";

/* ===================================================================
   札幌医科大学医学部 病院管理学講座
   共通スタイルシート

   色や文字サイズを変えたいときは、すぐ下の :root の値を書き換えると
   サイト全体にまとめて反映されます。
   =================================================================== */

:root {
  /* 配色
     大学のコミュニケーションマーク（SMUブルー／SMUレッド）に合わせています。
     マークの色そのものは明るく、小さな文字に使うと読みにくいため、
     文字やリンクには濃くした --accent を、帯や太い線には --smu-blue を使います。 */
  --smu-blue: #00aeb3;  /* SMUブルー（マークの色そのまま。帯・太い線など面で使う） */
  --smu-red:  #b81d22;  /* SMUレッド（「予定」の札など、目を引かせたいところ） */

  --ink:      #17262a;  /* 本文の文字色（青緑を含んだ濃いグレー） */
  --muted:    #5a6b6e;  /* 補足テキスト */
  --accent:   #00767b;  /* 文字・リンク用に濃くしたSMUブルー */
  --accent-d: #005b5f;  /* アクセント濃色（リンクのホバー等） */
  --paper:    #f1f7f7;  /* 薄い背景色 */
  --line:     #d3e0e0;  /* 罫線 */
  --white:    #ffffff;

  /* 書体 */
  --sans: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN",
          "Yu Gothic", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho",
           "MS PMincho", serif;

  /* 本文の最大幅（読みやすさのため 1行が長くなりすぎないように） */
  --measure: 34em;
  --wrap: 62rem;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent-d); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- レイアウトの共通部品 ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 100;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  text-decoration: none;
}

/* ---------- ヘッダー ---------- */
.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.masthead {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0 0;
}
/* マークと講座名を横に並べる（マークがなくても崩れません） */
.masthead-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.masthead-mark {
  width: 54px;
  flex: none;
}

.masthead-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}
.masthead-name a { color: var(--ink); text-decoration: none; }
.masthead-en {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.nav a {
  display: block;
  padding-bottom: 0.7rem;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--smu-blue);
}

/* 学外（附属病院サイト）へ出るリンクにつける小さな矢印 */
.nav-ext {
  margin-left: 0.25em;
  font-size: 0.78em;
  color: var(--muted);
}

/* ---------- ヒーロー（トップページ冒頭） ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.hero-en {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 40em;
}
.hero-lead {
  margin: 2.2rem 0 0;
  padding-top: 2rem;
  border-top: 4px solid var(--smu-blue);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.95;
  max-width: var(--measure);
}

/* ---------- セクション ---------- */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tinted { background: var(--paper); }

.section h2 {
  margin: 0 0 1.8rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.5;
  padding-top: 0.9rem;
  border-top: 4px solid var(--smu-blue);
  display: inline-block;
}
.section p { max-width: var(--measure); }

.sign {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.sign span {
  display: block;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- お知らせ（北海道病院経営インサイト） ---------- */
.notice {
  background: var(--ink);
  color: var(--white);
  padding: 3.2rem 0;
}
.notice h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.5;
}
.notice .kicker {
  margin: 0 0 1.2rem;
  font-size: 0.8rem;
  color: #7fd4d7;
  letter-spacing: 0.08em;
}
.notice p { max-width: var(--measure); color: #dfeaea; }
.notice a { color: #7fd4d7; }

.dl-notice {
  margin: 1.8rem 0 0;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem 1.2rem;
  max-width: 40em;
  font-size: 0.95rem;
}
.dl-notice dt {
  color: #7fd4d7;
  font-size: 0.85rem;
  padding-top: 0.15rem;
}
.dl-notice dd { margin: 0; }

/* ---------- スタッフ紹介 ---------- */
.staff-intro { max-width: var(--measure); margin-bottom: 1rem; }

.person {
  padding: 2.8rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0 2.5rem;
  align-items: start;
}
.person:first-of-type { border-top: 4px solid var(--smu-blue); }

.person-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 写真を置かない方（兼任教授・客員准教授）は1列にして、少し控えめに */
.person.person-min {
  grid-template-columns: 1fr;
  padding: 2rem 0;
}
.person-min .person-name { font-size: 1.25rem; }
.person-min .person-detail { margin-top: 1.2rem; }

.person-rank {
  margin: 0;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.person-name {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}
.person-name .kana {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}
.person-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  max-width: var(--measure);
}

.person-detail {
  margin: 1.6rem 0 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.1rem 1.5rem;
  font-size: 0.92rem;
}
.person-detail dt {
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1.8;
}
.person-detail dd { margin: 0; }
.person-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.person-detail li { line-height: 1.8; }

/* 年号つきの略歴 */
.career { margin: 0; }
.career div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
}
.career dt { color: var(--muted); font-size: 0.85rem; }
.career dd { margin: 0; }

/* 長い一覧を折りたためるようにする */
details.more {
  margin-top: 0.4rem;
  border-top: 1px dotted var(--line);
  padding-top: 0.5rem;
}
details.more > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.88rem;
  list-style-position: inside;
}
details.more > summary:hover { color: var(--accent-d); }
details.more ul { margin-top: 0.6rem; }

/* ---------- 北海道病院経営インサイトのページ ---------- */

/* 読み上げソフトにだけ伝えたい文字（画面には出ません） */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 見出しの上に置く小さな一行 */
.kicker-dark {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* 開催要項の一覧 */
.dl-outline {
  margin: 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem 1.5rem;
  max-width: 44em;
  font-size: 0.95rem;
}
.dl-outline dt {
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1.8;
}
.dl-outline dd { margin: 0; }

/* 補足の小さな文字 */
.note-small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}

/* プログラムの表（画面が狭いときは横スクロールします） */
.table-scroll {
  margin: 1.8rem 0 0.8rem;
  overflow-x: auto;
}
table.program {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.92rem;
}
table.program th,
table.program td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
table.program thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: none;
}
table.program tbody tr:nth-child(even) { background: var(--paper); }
table.program td:first-child {
  color: var(--accent);
  white-space: nowrap;
}
table.program td:nth-child(2) { white-space: nowrap; }

/* ---------- 新着情報 ---------- */
.news {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.2rem 0;
}
.news h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  padding-left: 0.7rem;
  border-left: 4px solid var(--smu-blue);
  line-height: 1.5;
}

.news-list { margin: 0; }
.news-list > div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.2rem 1.4rem;
  padding: 0.7rem 0;
  border-top: 1px dotted var(--line);
}
.news-list > div:first-child { border-top: none; }
.news-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  line-height: 1.9;
}
.news-list dd {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.85;
}

/* 「予定」などの小さな札 */
.news-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.45rem;
  background: var(--smu-red);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

/* ---------- フッター ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer h2 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
}
.footer dl {
  margin: 0;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.35rem 1.2rem;
  max-width: 34em;
}
.footer dt { color: var(--muted); font-size: 0.85rem; }
.footer dd { margin: 0; }
.footer .copyright {
  margin: 2.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* 日時などを途中で折り返さないようにする
   例：<span class="nowrap">毎週水曜 18:30～20:00</span> */
.nowrap { white-space: nowrap; }

/* ---------- 講座について：二つの分野 ---------- */
.dl-divisions {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.8rem 1.5rem;
  max-width: 46em;
}
.dl-divisions dt {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
}
.dl-divisions dd { margin: 0; }
@media (max-width: 700px) {
  .dl-divisions { grid-template-columns: 1fr; gap: 0.2rem; }
  .dl-divisions dd { margin-bottom: 0.8rem; }
}


/* ---------- プレイベント（insight.html） ---------- */
.pre-banner { margin: 0.8rem 0 0; }
.pre-banner a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--smu-red);
  color: #fff;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 3px;
}
.pre-banner a:hover { opacity: 0.85; color: #fff; }
.preevent h2 { max-width: 30em; }
.pre-sub { margin-top: -0.8rem; font-family: var(--serif); font-size: 1.05rem; }
.pre-note {
  margin: 1.6rem 0 0;
  padding: 0.9rem 1.1rem;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  max-width: 44em;
}
.pre-h3 {
  margin: 2.4rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
}
.btn-apply {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: var(--accent);
  border: 1px solid #7fd4d7;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.notice a.btn-apply { color: #fff; }
.btn-apply:hover { opacity: 0.88; }
.btn-apply.is-disabled {
  background: transparent;
  border: 1px solid #7fa3a5;
  color: #b9cfd0;
  font-weight: 400;
}
.apply-btn-row { margin: 1.6rem 0 2rem; }
.priority {
  margin: 0.4rem 0 1.2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  counter-reset: pr;
}
.priority li {
  counter-increment: pr;
  padding: 0.25rem 0.9rem;
  border: 1px solid #7fd4d7;
  border-radius: 999px;
  font-size: 0.9rem;
}
.priority li::before { content: counter(pr) ". "; }
.apply-notes { margin: 0; padding-left: 1.2em; max-width: 44em; color: #dfeaea; font-size: 0.9rem; }


/* ---------- インサイトの見出し・ファシリテーター ---------- */
.hero-catch {
  margin: 0.6rem 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--accent);
}
.hero-catch span {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--muted);
}
.hero-tagline { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); }
.fac-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 0 2rem;
}
.fac-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.fac-list p { margin: 0; max-width: none; }
.fac-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.fac-tag {
  margin-left: 0.7rem;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--smu-red);
}
.fac-aff { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 700px) {
  .fac-list { grid-template-columns: 1fr; }
}

.speaker {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}
.speaker-photo {
  flex: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .speaker { flex-direction: column; gap: 1rem; }
  .speaker-photo { width: 120px; height: 120px; }
}


/* ---------- 本講座とプレイベントの区別 ---------- */
.breadcrumb { margin: 0 0 1rem; font-size: 0.8rem; color: var(--muted); }
.event-cards {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.2rem;
}
.event-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  padding: 1.2rem 1.4rem 1rem;
}
.event-card.is-pre { border-top-color: var(--smu-red); }
.event-card p { max-width: none; color: var(--ink); margin: 0; }
.event-label {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 3px;
}
.event-card.is-pre .event-label { background: var(--smu-red); }
.event-title {
  margin-top: 0.6rem !important;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.event-card dl {
  margin: 0.8rem 0 0;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.35rem 0.8rem;
  font-size: 0.9rem;
}
.event-card dt { color: var(--muted); font-size: 0.82rem; }
.event-card dd { margin: 0; }
.event-more { margin-top: 0.9rem !important; font-size: 0.9rem; }
.event-card a { color: var(--accent); }
.event-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.9rem;
  background: var(--smu-red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 3px;
}
.pre-diff {
  margin: 1.6rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.9rem;
  max-width: 44em;
}

.sub-aff { margin: 0.3rem 0 0; padding-left: 1em; list-style: none; font-size: 0.88rem; color: var(--muted); }
.sub-aff li { line-height: 1.7; }


/* ---------- 北海道病院経営インサイトのロゴ ---------- */
.insight-logo { margin: 0.4rem 0 0.6rem; line-height: 0; }
.insight-logo img { width: 430px; max-width: 100%; height: auto; }
.pre-logo { display: block; width: fit-content; margin: 0 0 1rem; line-height: 0; }
.pre-logo img { width: 220px; max-width: 60vw; height: auto; }
.with-icon { display: flex; align-items: center; gap: 0.9rem; }
.with-icon img { width: 52px; height: 52px; border-radius: 10px; flex: none; }

/* ---------- お問い合わせフォームへのボタン ---------- */
.btn-contact {
  display: inline-block;
  margin: 0.1rem 0 0.4rem;
  padding: 0.55rem 1.3rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.btn-contact:hover { color: #fff; opacity: 0.88; }

/* 濃い背景の中の補足文字 */
.notice .note-small { color: #c9d8d8; }


/* ---------- プレイベント受付中の案内（帯・ボタン） ---------- */
.cta-bar { background: var(--smu-red); color: #fff; }
.cta-bar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 1.2rem; padding: 0.8rem 0;
}
.cta-text { margin: 0; font-size: 0.95rem; line-height: 1.7; max-width: none; }
.cta-flag {
  display: inline-block; margin-right: 0.6rem; padding: 0.05rem 0.6rem;
  background: #fff; color: var(--smu-red); font-weight: 700; font-size: 0.82rem; border-radius: 3px;
}
.cta-due { display: inline-block; margin-left: 0.8rem; font-size: 0.85rem; opacity: 0.92; }
.cta-btn {
  display: inline-block; padding: 0.6rem 1.4rem;
  background: #fff; color: var(--smu-red); font-weight: 700;
  text-decoration: none; border-radius: 4px; white-space: nowrap;
}
.cta-btn:hover { color: var(--smu-red); opacity: 0.9; }
.cta-btn.small { padding: 0.4rem 1rem; background: var(--smu-red); color: #fff; font-size: 0.9rem; }
.cta-btn.small:hover { color: #fff; }
.hero-cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.hero-cta .cta-btn { background: var(--smu-red); color: #fff; font-size: 1.05rem; padding: 0.8rem 1.8rem; }
.hero-cta .cta-btn:hover { color: #fff; }
.cta-sub { font-size: 0.92rem; }
.cta-due-dark { font-size: 0.9rem; color: var(--smu-red); font-weight: 600; }
.open-flag {
  display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.6rem;
  border: 1px solid var(--smu-red); color: var(--smu-red); background: #fff;
  font-size: 0.8rem; font-weight: 700; border-radius: 3px; vertical-align: middle;
}

.hero-pre-box {
  margin-top: 2rem; max-width: 46em;
  border: 2px solid var(--smu-red); border-radius: 6px;
  padding: 1rem 1.3rem; background: #fff;
}
.hero-pre-box p { margin: 0; max-width: none; }
.hpb-head { font-weight: 700; color: var(--smu-red); font-size: 1.05rem; }
.hpb-head .cta-flag { background: var(--smu-red); color: #fff; }
.hpb-body { margin-top: 0.4rem !important; font-size: 0.92rem; line-height: 1.8; }
.hpb-actions { margin-top: 0.8rem !important; font-size: 0.9rem; }


/* ---------- インサイトのロゴのオープニング演出 ---------- */
.op-stage {
  position: relative; width: 520px; max-width: 100%;
  aspect-ratio: 480 / 350; margin: 0.4rem 0 0.4rem -1.2rem;
  overflow: hidden; perspective: 1400px; container-type: inline-size;
}
.op-logo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.op-logo g { transform-box: fill-box; }
#op-door { opacity: 0; transform-origin: right center; }
.op-door-shade { opacity: 0; }
/* 扉：右端を軸に開きます。閉じている間は背景と同じ真っ白で見えず、開くにつれて影が付いて扉らしく見えます */
.op-door {
  position: absolute; left: 38.9%; top: 35.4%; width: 22.3%; height: 52.9%;
  background-color: #ffffff; border: 1px solid transparent; border-radius: 10px 3px 3px 10px;
  transform-origin: right center; box-shadow: none;
  opacity: 0; pointer-events: none;
}
.op-copy {
  position: absolute; left: 63%; top: 22%; height: 72%; margin: 0; max-width: none;
  writing-mode: vertical-rl; white-space: nowrap; font-family: var(--serif); font-weight: 500;
  font-size: clamp(10px, 3.2cqw, 18px); letter-spacing: 0.26em; line-height: 2.2;
  color: var(--ink); opacity: 0; pointer-events: none;
}
.op-stage.play { cursor: pointer; }
/* 0〜0.9秒：真っ白 → 0.9〜2.5秒：扉が開いて青い奥が見える → 点・コピー → i が左へ → 文字（約7秒） */
.op-stage.play #op-i    { animation: op-slide 0.9s cubic-bezier(.6,0,.2,1) 5.0s both; }
.op-stage.play #op-door { animation: op-door 1.7s cubic-bezier(.5,0,.3,1) 0.9s both; }
.op-stage.play .op-door-shade { animation: op-door-shade 1.7s ease 0.9s both; }
.op-stage.play #op-body { animation: op-show 0.01s linear 0.85s both; }
.op-stage.play #op-dot  { animation: op-drop 0.6s cubic-bezier(.3,1.4,.5,1) 2.6s both; }
.op-stage.play .op-copy { animation: op-copy 2.1s ease 2.9s both; }
.op-stage.play #op-t0   { animation: op-rise 0.6s ease 5.4s both; }
.op-stage.play #op-t1   { animation: op-rise 0.6s ease 5.6s both; }
.op-stage.play #op-t2   { animation: op-rise 0.6s ease 5.8s both; }
.op-stage.play #op-t3   { animation: op-rise 0.6s ease 6.0s both; }
.op-stage.play #op-en   { animation: op-rise 0.6s ease 6.3s both; }
@keyframes op-slide { from { transform: translateX(158px); } to { transform: translateX(0); } }
@keyframes op-door {
  0%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes op-door-shade {
  0%   { opacity: 0; }
  22%  { opacity: 0.55; }
  88%  { opacity: 0.9; }
  100% { opacity: 0.9; }
}
@keyframes op-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes op-drop { from { opacity: 0; transform: translateY(-40%) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes op-copy {
  0% { opacity: 0; transform: translateY(6%); } 30% { opacity: 1; transform: none; }
  80% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes op-rise { from { opacity: 0; transform: translateY(12%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .op-stage.play *, .op-stage.play .op-logo * { animation: none !important; }
  .op-stage.play .op-door, .op-stage.play .op-copy { opacity: 0 !important; }
}
@media (max-width: 700px) { .op-stage { margin-left: -0.6rem; } }

/* ---------- スマートフォン向け ---------- */
@media (max-width: 700px) {
  body { font-size: 15px; line-height: 1.85; }

  .hero { padding: 3rem 0 2.5rem; }

  .person {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .person-photo {
    width: 9rem;
    aspect-ratio: 3 / 4;
  }
  .person-detail,
  .career div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .person-detail { gap: 1.2rem 0; }
  .dl-notice,
  .dl-outline,
  .footer dl {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .dl-notice dt,
  .dl-outline dt,
  .footer dt { margin-top: 0.6rem; }
  .nav { gap: 1.1rem; }

  /* 新着情報は日付と本文を縦に並べる */
  .news-list > div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

/* ---------- 動きを減らす設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- 印刷時 ---------- */
@media print {
  .topbar, .nav { display: none; }
  body { font-size: 11pt; }
  .notice { background: none; color: var(--ink); }
  .notice p, .notice a { color: var(--ink); }
}

/* ---------- スマートフォンではプログラムの表を縦に並べる ---------- */
@media (max-width: 700px) {
  table.program { min-width: 0; }
  table.program thead { display: none; }
  table.program,
  table.program tbody,
  table.program tr,
  table.program td { display: block; }
  table.program tr {
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid var(--line);
  }
  table.program td { padding: 0; border: none; }
  table.program td:first-child,
  table.program td:nth-child(2) { white-space: normal; }
  /* 本講座：「1　4月28日」を1行に、その下にテーマとファシリテーター */
  table.program-course td:nth-child(1),
  table.program-course td:nth-child(2) { display: inline; }
  table.program-course td:nth-child(1)::before { content: "第"; }
  table.program-course td:nth-child(1)::after { content: "回　"; }
  table.program-course td:nth-child(3) { margin-top: 0.2rem; font-weight: 600; }
  table.program td.fac { font-size: 0.82rem; color: var(--muted); }
  table.program td.fac::before { content: attr(data-label) "："; }
  /* プレイベント：時間の下に内容 */
  table.program-pre td:nth-child(1) { font-size: 0.85rem; }
  .hero-pre h1 { font-size: clamp(1.4rem, 6vw, 2.4rem); }
  .event-card dl { grid-template-columns: 1fr; gap: 0; }
  .event-card dt { margin-top: 0.5rem; }
}
