
/* ===================================================================
   学術集会・Dysmorphologyの夕べ を投稿で扱うための表示
   2026-08-03 追加 — inc/jspg-meetings.php のショートコード用
   =================================================================== */

/* --- 状態バッジ --- */

#main .jspg-badge {
  display: inline-block;
  padding: .05em .6em;
  margin-left: .4em;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: middle;
  border-radius: 999px;
  white-space: nowrap;
}
#main .jspg-badge--upcoming  { color: #0f6a6d; background: #e4f0f0; }
#main .jspg-badge--cancelled { color: #a8442a; background: #f7e7e2; }

#main .jspg-empty { color: #6b6b6b; }

/* --- 次回開催カード --- */

/* ポスターは縦長なのでカード内では控えめなサムネイルにする。
   大きな画像は上部のスライダーと各回の詳細ページが担当する。 */
#main .jspg-event-card__image {
  display: block;
  float: left;
  width: 8.5rem;
  margin: 0 1.2em .6em 0;
  border: 1px solid #e3e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: none;
}
#main .jspg-event-card__image img { display: block; width: 100%; height: auto; }
#main .jspg-event-card::after { content: ""; display: block; clear: both; }

@media (max-width: 30rem) {
  #main .jspg-event-card__image { float: none; width: 60%; margin: 0 0 1em; }
}

#main .jspg-event-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: .2em;
}
/* 色はテーマの #page a に頼らず自分で持つ。
   お知らせ一覧（.jspg-news__title）と同じリンク色にそろえてある。
   値はテーマ設定の Page Link（skin.css の #page a）と同じ #1565c0。
   リンク色を変えるときは、テーマ設定とここの3か所を一緒に変えること。 */
#main .jspg-event-card__title a,
#main .jspg-more a { color: #1565c0; }
#main .jspg-event-card__theme {
  color: #555;
  margin-bottom: .8em;
}

/* --- 開催一覧 --- */

#main .jspg-list__toolbar {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
}
#main .jspg-list__filter {
  flex: 1;
  max-width: 26em;
  padding: .45em .8em;
  font: inherit;
  font-size: .9rem;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}
#main .jspg-list__filter:focus {
  border-color: #0f6a6d;
  box-shadow: 0 0 0 3px #e4f0f0;
}
#main .jspg-list__count {
  font-size: .82rem;
  color: #6b6b6b;
  white-space: nowrap;
}

#main .jspg-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
#main .jspg-list__items > li { margin: 0; }

#main .jspg-item + .jspg-item { border-top: 1px solid #eee; }

#main .jspg-item__link {
  display: flex;
  gap: 1.2em;
  align-items: baseline;
  padding: .9em .6em;
  color: inherit;
  border-radius: 6px;
}
#main .jspg-item__link:hover {
  background: #f6f8f9;
  text-decoration: none;
  box-shadow: none;
}

#main .jspg-item__num {
  flex: 0 0 4.5em;
  font-weight: 700;
  font-size: .95rem;
  color: #0f6a6d;
}
#main .jspg-item--cancelled .jspg-item__num { color: #a8442a; }

#main .jspg-item__body { flex: 1; min-width: 0; line-height: 1.7; }

#main .jspg-item__head { display: block; }
#main .jspg-item__date { font-size: .88rem; color: #555; }

#main .jspg-item__theme {
  display: block;
  font-weight: 700;
  font-size: .95rem;
}

#main .jspg-item__meta {
  display: block;
  font-size: .85rem;
  color: #6b6b6b;
}
#main .jspg-item__chair { margin-right: 1em; white-space: nowrap; }

#main .jspg-list__empty { color: #6b6b6b; padding: 1em .6em; }

/* --- 次回開催を大きく見せるカード (layout="wide") ---
   ポスターは右、情報は左。枠で囲って本文から浮かせる。 */

#main .jspg-event-card--wide {
  padding: 1.6rem 1.8rem;
  border: 1px solid #cfe0df;
  border-top: 4px solid #14867f;
  border-radius: 10px;
  background: linear-gradient(180deg, #f5faf9 0%, #ffffff 55%);
}

#main .jspg-event-card--wide .jspg-event-card__cols {
  display: flex;
  flex-direction: row-reverse;   /* DOM は画像が先。表示だけ右に回す */
  align-items: flex-start;
  gap: 1.8rem;
}
/* 既定のカードは float でまわり込ませているので、その指定を解く */
#main .jspg-event-card--wide .jspg-event-card__image {
  float: none;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}
/* テーマの screen.css に img:not([src$=".svg"]) { height:auto } があるため
   詳細度で上回る必要がある。max-width も効いてしまうので併せて解除する。 */
#main .jspg-event-card--wide .jspg-event-card__image img {
  width: auto;
  height: 300px;
  max-width: none;
}
#main .jspg-event-card--wide .jspg-event-card__main { flex: 1; min-width: 0; }
#main .jspg-event-card--wide .jspg-event-card__title {
  font-size: 1.6rem;
  line-height: 1.45;
  margin-bottom: .35em;
}
#main .jspg-event-card--wide .jspg-event-card__title .jspg-badge {
  font-size: .7rem;
  vertical-align: .25em;
}
#main .jspg-event-card--wide .jspg-event-card__theme {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: .9em;
}
#main .jspg-event-card--wide .event_table { margin-bottom: 0; background: transparent; }

/* 日程が未定の回のお知らせ枠。
   見出しは学術集会の開催予定カードと同じく左寄せ（バッジを横に添える）、
   本文だけ中央寄せにする。 */
#main .jspg-event-card--notice .jspg-event-card__title { margin-bottom: .5em; }
#main .jspg-event-card__pending {
  margin: 0;
  color: #555;
  line-height: 2;
  text-align: center;
}

/* 大会長・副大会長は氏名の右に所属を小さく続ける（改行しない） */
#main .jspg-person__name { white-space: nowrap; }
#main .jspg-person__affil {
  margin-left: .9em;
  font-size: .84em;
  color: #666;
}

@media (max-width: 40rem) {
  #main .jspg-event-card--wide { padding: 1.1rem 1.1rem 1.3rem; }
  #main .jspg-event-card--wide .jspg-event-card__title { font-size: 1.3rem; }
  #main .jspg-event-card--wide .jspg-event-card__theme { font-size: 1.1rem; }
  #main .jspg-event-card--wide .jspg-event-card__image img { height: 260px; }
  #main .jspg-event-card--wide .jspg-event-card__cols { display: block; }
  /* 段組みを解くと枠がブロック幅いっぱいに広がってしまうので、
     inline-block にして画像の幅に合わせる */
  #main .jspg-event-card--wide .jspg-event-card__image {
    display: inline-block;
    margin: 0 0 1em;
  }
}

/* --- 枠で囲った一覧 (boxed="true") ---
   どこからどこまでが一覧なのかを見た目で示す。 */

#main .jspg-list--boxed {
  padding: .4rem 1.2rem 1rem;
  border: 1px solid #e0e5e9;
  border-radius: 10px;
  background: #fbfcfc;
}
#main .jspg-list--boxed .jspg-item__link:hover { background: #f1f5f6; }

/* リンクにしない一覧。<span> なのでカーソルも下線も出ない */
#main .jspg-item--plain .jspg-item__link { cursor: default; }
#main .jspg-item--plain .jspg-item__link:hover { background: none; }
#main .jspg-list--boxed .jspg-item--plain .jspg-item__link:hover { background: none; }

/* --- タイトル主体の一覧 (style="title") ---
   Dysmorphologyの夕べ のように回次・会長を持たない催し向け。
   開催日を上に小さく、タイトルを主役にする。 */

#main .jspg-list--titled .jspg-item__link { display: block; }
#main .jspg-item--titled .jspg-item__body { display: block; }
#main .jspg-item--titled .jspg-item__date {
  display: block;
  font-size: .85rem;
  color: #6b6b6b;
}
#main .jspg-item--titled .jspg-item__name {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.6;
}
#main .jspg-item--titled .jspg-item__theme {
  display: block;
  font-weight: 400;
  color: #555;
}

/* 畳んだぶんは「開催日 タイトル テーマ」を横に並べる。
   タイトルとテーマは省略せず、入りきらなければ折り返す。
   折り返しても列の先頭がそろうよう、行の揃えは上寄せにする。
   セレクタは .jspg-item--row の既定（同じ詳細度で後ろにある）に勝つ必要があるため
   2つのクラスを重ねている。 */
#main .jspg-item--row.jspg-item--titled-row .jspg-item__link {
  grid-template-columns: 7.8em 15.5em minmax(0, 1fr);
  align-items: start;
  gap: 0 1.2em;
  line-height: 1.6;
}
#main .jspg-item--titled-row .jspg-item__name { font-weight: 700; }
#main .jspg-item--titled-row .jspg-item__theme { color: #6b6b6b; font-weight: 400; }
/* 日付だけは折り返させない（「2021年11月12日〜14日」が途中で切れないように） */
#main .jspg-item--titled-row .jspg-item__date { white-space: nowrap; }
#main .jspg-item--titled-row .jspg-item__name,
#main .jspg-item--titled-row .jspg-item__theme {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 48rem) {
  #main .jspg-item--titled-row .jspg-item__link { display: block; }
  #main .jspg-item--titled-row .jspg-item__date { display: block; }
  #main .jspg-item--titled-row .jspg-item__name,
  #main .jspg-item--titled-row .jspg-item__theme { display: block; white-space: normal; overflow: visible; }
}

/* --- 「さらに表示」で畳む一覧 --- */

/* <details> で開閉するので JavaScript は使わない */
#main .jspg-list__rest { margin-top: .2em; }
#main .jspg-list__more {
  display: inline-block;
  padding: .5em .1em;
  font-size: .9rem;
  font-weight: 700;
  color: #1565c0;
  cursor: pointer;
  list-style: none;
}
#main .jspg-list__more::-webkit-details-marker { display: none; }
#main .jspg-list__more:hover { text-decoration: underline; }
#main .jspg-list__more::before {
  content: "";
  display: inline-block;
  width: .45em;
  height: .45em;
  margin-right: .6em;
  vertical-align: middle;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.15em) rotate(45deg);
}
#main .jspg-list__rest[open] .jspg-list__more::before {
  transform: translateY(.1em) rotate(-135deg);
}
#main .jspg-list__more-close { display: none; }
#main .jspg-list__rest[open] .jspg-list__more-open  { display: none; }
#main .jspg-list__rest[open] .jspg-list__more-close { display: inline; }

/* 畳んだぶんは「第XX回 会期 大会長 会場」を1行で出す */
#main .jspg-item--row .jspg-item__link {
  display: grid;
  grid-template-columns: 4.6em 13.5em 6.5em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 1.2em;
  padding: .45em .6em;
  font-size: .9rem;
}
#main .jspg-item--row .jspg-item__date  { color: #555; font-size: 1em; }
#main .jspg-item--row .jspg-item__chair { margin-right: 0; color: #555; }
#main .jspg-item--row .jspg-item__venue { color: #6b6b6b; }
#main .jspg-item--row .jspg-item__num,
#main .jspg-item--row .jspg-item__date,
#main .jspg-item--row .jspg-item__chair,
#main .jspg-item--row .jspg-item__venue {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#main .jspg-item--row .jspg-badge { margin-left: 0; }

@media (max-width: 48rem) {
  /* 4列は入らないので、回次を見出しにして折り返す */
  #main .jspg-item--row .jspg-item__link {
    display: block;
    padding: .55em .4em;
  }
  #main .jspg-item--row .jspg-item__num { display: inline; margin-right: .8em; }
  #main .jspg-item--row .jspg-item__chair::before { content: "／"; margin: 0 .4em; color: #bbb; }
  #main .jspg-item--row .jspg-item__venue { display: block; }
  #main .jspg-item--row .jspg-item__num,
  #main .jspg-item--row .jspg-item__date,
  #main .jspg-item--row .jspg-item__chair,
  #main .jspg-item--row .jspg-item__venue { white-space: normal; overflow: visible; }
}

/* --- 開催記録の単体ページ --- */

#main .jspg-meeting-summary { margin-bottom: 1.5em; }
#main .jspg-meeting-summary__theme {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6em;
}
#main .jspg-meeting-winners { margin-top: 2em; }

/* --- 狭い画面 --- */

@media (max-width: 48rem) {
  #main .jspg-item__link {
    display: block;
    padding: .8em .4em;
  }
  #main .jspg-item__num { display: block; margin-bottom: .1em; }
  #main .jspg-item__chair { display: block; margin-right: 0; }
  #main .jspg-list__toolbar { flex-wrap: wrap; }
  #main .jspg-list__filter { max-width: none; }
}

#main .jspg-event-card__note {
  margin-top: .6em;
  font-size: .8rem;
  color: #6b6b6b;
}

/* ===================================================================
   トップページ向け — 次回開催カード / お知らせリスト
   =================================================================== */

/* --- 次回開催（2枚を同じ高さで並べる） ---
   テーマの [one_half] はフロートなので、内容量が違うと高さが揃わない。
   グリッドにして align-items: stretch で揃える。 */

#main .jspg-upcoming {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

#main .jspg-upcoming .jspg-event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.3rem 1.5rem 1.1rem;
  background: #f7f9fa;
  border: 1px solid #e3e7eb;
  border-radius: 10px;
  box-sizing: border-box;
}

/* リンク行はカード下端に寄せる */
#main .jspg-upcoming .jspg-more { margin-top: auto; padding-top: .8em; }

#main .jspg-upcoming .event_table { background: transparent; }

@media (max-width: 48rem) {
  #main .jspg-upcoming { grid-template-columns: 1fr; gap: 1.1rem; }
}

#main .jspg-event-card--next  { }
#main .jspg-event-card--past  { }

#main .jspg-event-card__kicker {
  display: flex;
  align-items: baseline;
  gap: .6em;
  margin: 0 0 .6em;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.6;
}
#main .jspg-event-card__when {
  padding: .05em .7em;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}
#main .jspg-event-card--next .jspg-event-card__when {
  color: #fff;
  background: #0f6a6d;
}
#main .jspg-event-card--past .jspg-event-card__when {
  color: #6b6b6b;
  background: #eceff1;
}

#main .jspg-event-card__cta { margin: 1em 0 .3em; }

/* 背景はテーマの配色設定 Button Primary Color と同じ #4ca7a8。
   ホバーはそれを少し暗くした #3f9192。 */
#main .jspg-cta {
  display: inline-block;
  padding: .5em 1.4em;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  background: #4ca7a8;
  border-radius: 999px;
  box-shadow: none;
}
#main .jspg-cta:hover {
  background: #3f9192;
  color: #fff;
  text-decoration: none;
}

#main .jspg-more {
  margin: .6em 0 0;
  font-size: .85rem;
  text-align: right;
}

/* --- お知らせリスト --- */

#main .jspg-news {
  list-style: none;
  margin: 0;
  padding: 0;
}
#main .jspg-news__item + .jspg-news__item { border-top: 1px solid #eee; }

#main .jspg-news__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3em 1em;
  padding: .8em .4em;
  color: inherit;
  border-radius: 6px;
}
#main .jspg-news__link:hover {
  background: #f6f8f9;
  text-decoration: none;
  box-shadow: none;
}

#main .jspg-news__date {
  flex: 0 0 6em;
  font-size: .85rem;
  color: #6b6b6b;
  font-variant-numeric: tabular-nums;
}
#main .jspg-news__cat {
  flex: 0 0 auto;
  padding: .05em .7em;
  font-size: .72rem;
  color: #0f6a6d;
  background: #e4f0f0;
  border-radius: 999px;
}
#main .jspg-news__title { flex: 1; min-width: 12em; line-height: 1.7; }

@media (max-width: 48rem) {
  #main .jspg-news__link { padding: .7em .3em; }
  #main .jspg-news__date { flex: 0 0 auto; }
  #main .jspg-news__title { flex: 1 1 100%; }
  #main .jspg-event-card__kicker { flex-wrap: wrap; }
}


/* ===================================================================
   トップページの全幅スライダー（inc/jspg-slider.php）
   背景は 1920x350 の画像、文字は HTML で重ねる。
   文字は本文幅(1180px)の箱の中で左寄せ。狭い画面では自然に折り返る。
   =================================================================== */

.jspg-slider {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: #0c5254;
}

.jspg-slider__track { position: absolute; inset: 0; }

.jspg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
}
.jspg-slide.is-active { opacity: 1; visibility: visible; }

/* テーマの screen.css に img:not([src$=".svg"]) { height:auto } があり
   詳細度(0,1,1)で負けるため、クラスを2つ重ねて上回らせる。 */
.jspg-slider .jspg-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* 本文と同じ幅・同じ左端の箱。
   幅の計算はテーマの .inner に任せる（ブレークポイントごとに
   980/1200/748/95% と切り替わるため、自前で再現すると必ずずれる）。
   ここでは縦位置だけを足す。 */
.jspg-slide__inner {
  z-index: 1;
  display: flex;
  align-items: center;
}

.jspg-slide__text {
  max-width: 46em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .18);
}

.jspg-slide__kicker {
  margin: 0 0 .35em;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: #bae2df;
  line-height: 1.4;
}

.jspg-slide__title {
  margin: 0 0 .3em;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.jspg-slide__title a { color: inherit; box-shadow: none; }
.jspg-slide__title a:hover { color: #fff; text-decoration: underline; }

.jspg-slide__sub {
  margin: 0 0 .3em;
  font-size: 1.12rem;
  line-height: 1.6;
  color: #d6f0ee;
}

.jspg-slide__meta {
  margin: .5em 0 0;
  font-size: .95rem;
  line-height: 1.6;
  color: #bae2df;
}

/* 明るい背景のスライド（_jspg_tone = light）。
   白文字が読めないので濃色にし、影も落とす必要がないので消す。
   クリーム地 #fdf6e0 とのコントラストは 見出し 12.9 / 補足 5.6。 */
.jspg-slide--light .jspg-slide__text { color: #23303a; text-shadow: none; }
.jspg-slide--light .jspg-slide__title { color: #23303a; }
.jspg-slide--light .jspg-slide__title a:hover { color: #0f6a6d; }
.jspg-slide--light .jspg-slide__kicker,
.jspg-slide--light .jspg-slide__meta { color: #6b6257; }
.jspg-slide--light .jspg-slide__sub { color: #3d4750; }

/* 前後ボタン */
.jspg-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .2s;
  z-index: 2;
}
.jspg-slider:hover .jspg-slider__nav,
.jspg-slider__nav:focus-visible { opacity: 1; }
.jspg-slider__nav:hover { background: rgba(0, 0, 0, .48); }
.jspg-slider__nav--prev { left: 18px; }
.jspg-slider__nav--next { right: 18px; }

.jspg-slider__nav span {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.jspg-slider__nav--prev span { transform: rotate(-135deg) translate(-2px, -2px); }
.jspg-slider__nav--next span { transform: rotate(45deg) translate(-2px, -2px); }

/* ドット */
.jspg-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 2;
}
.jspg-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  /* 明るい背景のスライドでは白い点が地に溶けるので、薄い縁を付けて輪郭を残す */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .22);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.jspg-slider__dot:hover { background: rgba(255, 255, 255, .8); }
.jspg-slider__dot.is-active { background: #fff; transform: scale(1.25); }

@media (max-width: 64rem) {
  .jspg-slide__title { font-size: 1.8rem; }
  .jspg-slide__sub { font-size: 1.02rem; }
}

@media (max-width: 48rem) {
  .jspg-slider { height: 300px; }
  .jspg-slide__kicker { font-size: .88rem; }
  .jspg-slide__title { font-size: 1.5rem; }
  .jspg-slide__sub { font-size: .95rem; }
  .jspg-slide__meta { font-size: .85rem; }
  .jspg-slider__nav { display: none; }
  /* 背景の図版（ポスター等）は右寄りにあり、狭い画面では中途半端に
     見切れるので左側を表示する。文字が読みやすいよう少し暗くする。 */
  .jspg-slider .jspg-slide__bg {
    object-position: left center;
    filter: brightness(.82);
  }
  /* 明るい背景のスライドは文字が濃色なので、暗くすると逆に読みにくい */
  .jspg-slide--light .jspg-slide__bg { filter: none; }
}

@media (max-width: 30rem) {
  .jspg-slider { height: 280px; }
  .jspg-slide__title { font-size: 1.32rem; }
}

/* ===================================================================
   トップページをややコンパクトに
   -------------------------------------------------------------------
   テーマの body は line-height:2.4em（=28.8px 固定）で、
   font-size に関わらず全要素が 28.8px を継承していた。
   16px の本文で 1.8 倍にあたり、見出し・区切りの余白も大きめだったため、
   トップページ（#page.home）に限って詰める。
   他のページは長文が多く現状の行間が読みやすいので触らない。
   =================================================================== */

#page.home #main .content { line-height: 1.7; }

/* 見出し。比率にすると 32px 見出しがかえって広がるので個別に指定する */
#page.home #main .content h2 {
  padding-top: 1.1rem;
  margin-bottom: .7rem;
  line-height: 1.35;
}
#page.home #main .content h2 .sub_heading {
  line-height: 1.35;
  letter-spacing: .06em;
  margin-left: .6em;
}
#page.home #main .content h3 { line-height: 1.5; }

/* セクション間の区切り */
#page.home .divider_padding { padding-top: .9rem; }

/* 次回開催カード */
#page.home .jspg-upcoming { gap: 1.2rem; margin-bottom: .5rem; }
#page.home .jspg-event-card { padding: 1rem 1.15rem .85rem; }
#page.home .jspg-event-card__kicker { margin-bottom: .45em; }
#page.home .jspg-event-card__theme { margin-bottom: .55em; }
#page.home .jspg-event-card__cta { margin: .8em 0 .2em; }
#page.home .jspg-event-card .event_table th,
#page.home .jspg-event-card .event_table td { padding-top: .3em; padding-bottom: .3em; }

/* お知らせ一覧 */
#page.home .jspg-news__item { margin-left: 0; }
#page.home .jspg-news__link { padding-top: .5em; padding-bottom: .5em; }

/* 教育・研究カード */
#page.home #education_box .whitebox { padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
#page.home #education_box .whitebox h3 {
  padding-bottom: .45em;
  margin-bottom: .7em;
}
#page.home #education_box .whitebox p { margin-bottom: .7em; }

/* ===================================================================
   見出しサイズとお知らせリンクの調整
   =================================================================== */

/* h2 が 32px と大きかったので 24px に。h3(18px) との差は保つ。
   トップページだけでなく全ページに効かせる。 */
#main h2 {
  font-size: 1.5rem;
  line-height: 1.4;
}
#main h2 .sub_heading {
  font-size: .8rem;
  line-height: 1.4;
}

@media (max-width: 48rem) {
  #main h2 { font-size: 1.3rem; }
}

/* お知らせの見出しリンク。
   テーマは a を font-weight:700 にしているので打ち消し、
   色は本文の黒ではなくテーマのリンク色にそろえる。 */
#main .jspg-news__link { font-weight: 400; }
#main .jspg-news__title {
  font-weight: 400;
  color: #1565c0;
}
#main .jspg-news__link:hover .jspg-news__title { text-decoration: underline; }
#main .jspg-news__date { font-weight: 400; color: #6b6b6b; }

/* Dysmorphologyの夕べ一覧: タイトル直後にサブタイトル。日付は収まらなければ次の行へ */
.theme_blog_list h2.jspg-dysmo-row { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; column-gap:1em; }
.jspg-dysmo-row .jspg-dysmo-main { flex:1 1 auto; min-width:0; }
.jspg-dysmo-row .jspg-dysmo-theme { font-size:15px; font-weight:normal; margin-left:.3em; }
.jspg-dysmo-row .event_date { float:none; flex:0 0 auto; margin-left:auto; white-space:nowrap; }
