/* Revision 4: scoped text wrapping and existing photograph display correction. */
.p-entry-content .earth-revision-copy {
  display: block;
  line-height: 1.95;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.p-entry-content .earth-revision-copy__sentence {
  display: block;
  text-wrap: balance;
}
.p-entry-content .earth-revision-copy__phrase {
  display: inline-block;
  max-width: 100%;
}
.p-entry-content
  .earth-revision-copy__sentence
  + .earth-revision-copy__sentence {
  margin-top: 0.45em;
}
.p-entry-content .school-lead {
  max-width: 50em;
  margin-inline: auto;
}
.p-entry-content .smb-section-break-the-grid__body .earth-revision-copy {
  max-width: 36em;
}
.p-entry-content .smb-section-side-heading__lede .earth-revision-copy {
  max-width: 33em;
}
.p-entry-content .smb-section-side-heading__title {
  text-wrap: balance;
  line-break: strict;
}
/* Brightness only: retain the original photograph and its attachment mapping. */
img[src*="facility-classroom-02-20260922"] {
  filter: brightness(1.24) contrast(1.02);
}
/* Existing mobile drawer download CTA: white background needs dark text. */
#drawer-nav .c-drawer__item > a[href$="/download/"] {
  color: #502600 !important;
}
@media (max-width: 781px) {
  .p-entry-content .earth-revision-copy {
    line-height: 1.9;
  }
  .p-entry-content .school-lead {
    text-align: left;
  }
  .p-entry-content .smb-section-side-heading__title {
    font-size: clamp(20px, 6vw, 26px) !important;
    line-height: 1.5;
  }
}

.p-entry-content .earth-revision-heading-unit {
  display: inline-block;
}

/* Approved PDF layouts: annual schedule and timetable, 2026-10-11. */

.es-sec .es-timeline {
  width: 100%;
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.es-sec .es-timeline > .es-row {
  width: 100%;
  box-sizing: border-box;
}
.es-sec .es-row > .es-panel {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.es-sec .es-panel .es-events {
  justify-content: center;
  gap: 18px 28px;
}
.es-sec .es-event__name {
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
@media (max-width: 781px) {
  .es-sec .es-timeline > .es-row {
    padding-left: 66px;
  }
  .es-sec .es-timeline::before {
    left: 26px;
  }
  .es-sec .es-badge {
    left: 26px;
    width: 52px;
    height: 52px;
    border-width: 3px;
  }
  .es-sec .es-badge__num {
    font-size: 22px;
  }
  .es-sec .es-row > .es-panel {
    padding: 16px 8px;
    border-radius: 18px;
  }
  .es-sec .es-panel .es-events {
    gap: 16px 8px;
  }
  .es-sec .es-event {
    width: calc(50% - 4px);
    min-width: 0;
  }
  .es-sec .es-event img {
    max-width: 100%;
  }
  .es-sec .es-event__name {
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0;
  }
}

.earth-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: auto;
}
.earth-time-course {
  background: #fff;
  border: 2px solid #502600;
  border-radius: 18px;
  overflow: hidden;
}
.earth-time-heading {
  padding: 22px 24px;
  background: #502600;
  color: white;
  text-align: center;
}
.earth-time-heading h3 {
  margin: 0 !important;
  font-size: 19px !important;
  color: white !important;
}
.earth-time-range {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.earth-time-caption {
  font-size: 14px;
  margin: 5px 0 0;
  opacity: 0.95;
}
.earth-time-list {
  list-style: none !important;
  padding: 20px 26px !important;
  margin: 0 !important;
}
.earth-time-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #eadfce;
  line-height: 1.5;
}
.earth-time-list li:last-child {
  border: 0;
}
.earth-time-number {
  font-weight: 700;
  color: #502600;
}
.earth-time-slot {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.earth-time-list .earth-time-break {
  background: #faf2e6;
  justify-content: center;
  color: #735b41;
  margin: 8px -8px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  font-size: 14px;
}
@media (max-width: 700px) {
  .earth-time-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .earth-time-heading {
    padding: 18px 16px;
  }
  .earth-time-range {
    font-size: 29px;
  }
  .earth-time-list {
    padding: 12px 20px !important;
  }
  .earth-time-slot {
    font-size: 18px;
  }
}

/* ===== Revision 6 (2026-11-07): ページ上部を色帯にそろえる（先方決定：案B-2） ===== */
/* テーマ本体のCSS（app__*.css）が後から読み込まれるため、各セレクターの先頭に body を付けて優先させている */
body .c-page-header {
  min-height: clamp(180px, 24vw, 260px);
  padding: 0;
  background: linear-gradient(115deg, #fbf6ef 0%, #f7e6d1 60%, #f3d6b5 100%);
  border-bottom: 3px solid #e88936;
}
body .c-page-header::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -60%;
  width: 46vw;
  max-width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 137, 54, 0.32),
    rgba(232, 137, 54, 0) 68%
  );
}
body .c-page-header::after {
  content: "";
  position: absolute;
  left: -4%;
  bottom: -70%;
  width: 30vw;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(11, 73, 197, 0.12),
    rgba(11, 73, 197, 0) 68%
  );
}
body .c-page-header .c-page-header__content::before {
  content: "EARTH INSTITUTE OF LANGUAGE";
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: #e88936;
  margin-bottom: 10px;
}
body .c-page-header .c-page-header__title {
  color: #694b3d;
  text-shadow: none;
}
body .c-page-header .c-page-header__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: #e88936;
  margin-top: 14px;
}
body .c-page-header .c-page-header__bgimage {
  display: none;
}
body .c-page-header[data-has-image="true"] {
  height: auto;
}
body .c-page-header .c-page-header__content {
  color: #694b3d;
}
