/* ===== 英検ESG祭り 終了のお知らせ（固定モーダル） =====
   ヘッダー・フッターは操作可能。#contents（MV＋本文）だけを覆う。
   #contents をグリッドにして main とお知らせを同じセルに重ね、
   高さは「本文」と「お知らせ」の高い方に自動で合わせる。 */
#contents { display: grid; }
#contents > #main,
#contents > .esg-end-notice { grid-area: 1 / 1; min-width: 0; }
.esg-end-notice {
  position: relative;
  z-index: 999; /* SP固定ヘッダー(z-index:1000)より下 */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
  background: rgba(0, 0, 0, 0.6);
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  text-align: left;
  box-sizing: border-box;
}
.esg-end-notice *, .esg-end-notice *::before, .esg-end-notice *::after { box-sizing: border-box; }
.esg-end-notice__box {
  width: 100%;
  max-width: 760px;
  padding: 40px 48px;
  border: 4px solid #439fad;
  background: #fff;
  font-size: 15px;
  line-height: 1.8;
}
.esg-end-notice__box:focus { outline: none; }
.esg-end-notice__box p { margin: 0 0 1em; font-size: 15px; white-space: normal; }
.esg-end-notice__meta { text-align: right; font-size: 13px !important; }
.esg-end-notice__title {
  margin: 8px 0 24px;
  color: #439fad;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.esg-end-notice__heading {
  margin: 24px 0 8px;
  padding-left: 10px;
  border-left: 4px solid #439fad;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}
.esg-end-notice sup { font-size: 0.6em; vertical-align: super; line-height: 0; }
.esg-end-notice__note { font-size: 13px !important; }
.esg-end-notice__contact {
  margin-top: 24px;
  padding: 16px 20px;
  background: #f2f8f9;
}
.esg-end-notice__contact p { margin: 0; }
.esg-end-notice__contact-title { font-weight: 700; }
.esg-end-notice__contact a { color: inherit; text-decoration: none; }
.esg-sp { display: none; }
@media screen and (max-width: 750px) {
  .esg-end-notice { padding: 24px 12px 40px; }
  .esg-end-notice__box { padding: 24px 18px; }
  .esg-end-notice__box p { font-size: 14px; }
  .esg-end-notice__title { font-size: 20px; }
  .esg-end-notice__heading { font-size: 16px; }
  .esg-end-notice__contact a { text-decoration: underline; }
  .esg-sp { display: inline; }
}

/* ----- /festival/search/ 用 -----
   #contents の中に main の後ろに #sec8（お問い合わせ）があるため、
   #sec8 を2行目に固定し、お知らせを1〜2行目にまたがらせて両方を覆う。
   （.esg-end-notice--with-sec8 は /festival/search/ のHTMLにだけ付けている） */
#contents > #sec8 { grid-area: 2 / 1; min-width: 0; }
#contents > .esg-end-notice--with-sec8 { grid-row: 1 / span 2; }
