/* ============================================================
   EARS Front Page — carousel version (rolled back from grid).
   ============================================================ */

/* ====================== Activities section header ====================== */
.ears-activities { padding: 42px 0 46px; background: #f3f6fb; }
.ears-activities-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 18px 24px;
  flex-wrap: wrap;
}
.ears-activities-head-left { flex: 1; min-width: 240px; }
.ears-activities-title {
  margin: 0 0 4px;
  color: #0B1F3A;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ears-activities-sub {
  margin: 0 0 8px;
  color: #6b7480;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.ears-activities-link {
  color: #C9A96E;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.ears-activities-link:hover { border-bottom-color: #C9A96E; }
.ears-activities-arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ====================== Activities Carousel ====================== */
.ears-carousel {
  position: relative;
  margin-top: 0;
}
.ears-carousel-viewport {
  overflow: hidden;
  padding: 4px;
  margin: 0;
}
.ears-carousel-track {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.ears-carousel-card {
  flex: 0 0 calc((100% - 72px) / 4); /* 4 per row */
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(7, 43, 97, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.ears-carousel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 43, 97, 0.15);
  box-shadow: 0 14px 32px rgba(7, 43, 97, 0.08);
}
.ears-carousel-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.ears-carousel-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #14305a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ears-carousel-card-placeholder {
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.2em;
  font-size: 14px;
  text-transform: uppercase;
}
.ears-carousel-card-body {
  position: relative;
  padding: 16px 18px 22px;
}
.ears-carousel-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(7, 43, 97, 0.18);
  color: #072B61;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.ears-carousel-card:hover .ears-carousel-card-arrow {
  background: #072B61;
  color: #fff;
  border-color: #072B61;
  transform: translateX(2px);
}
.ears-carousel-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ears-carousel-card-date {
  color: #888;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.ears-carousel-card-tag {
  background: #f0f4f8;
  color: #5a6470;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.ears-carousel-card-title {
  color: #0B1F3A;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ears-carousel-card-excerpt {
  color: #6b7480;
  font-size: 0.78rem;
  line-height: 1.7;
  margin: 0;
  padding-right: 40px; /* room for corner arrow */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Arrows (now in top-right of section header, not absolute on viewport) */
.ears-carousel-arrow {
  position: static;
  transform: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(11, 31, 58, 0.18);
  background: #fff;
  color: #0B1F3A;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.ears-carousel-arrow:hover {
  background: #0B1F3A;
  color: #C9A96E;
  border-color: #0B1F3A;
}
.ears-carousel-arrow[disabled] { opacity: 0.35; cursor: default; }
.ears-carousel-arrow[disabled]:hover {
  background: #fff;
  color: #0B1F3A;
  border-color: rgba(11, 31, 58, 0.18);
}

/* Dots */
.ears-carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.ears-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.2);
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ears-carousel-dot.is-active {
  background: #C9A96E;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .ears-carousel-card { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 900px) {
  .ears-carousel-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .ears-activities { padding: 34px 0 38px; }
  .ears-activities-head { margin-bottom: 14px; }
  .ears-activities-title { font-size: 1.25rem; }
  .ears-activities-sub { margin-bottom: 6px; }
  .ears-carousel-card { flex-basis: 100%; }
  .ears-carousel-arrow { width: 36px; height: 36px; }
}

/* ====================== Stats — white bg, linear icons ====================== */
.ears-stats-band {
  background: #fff;
  padding: 24px 0;
  border-top: 0;
  border-bottom: 1px solid #eef1f5;
}
.ears-stat-band-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: center;
}
.ears-stat-band-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: clamp(6px, 1vw, 14px);
  padding: 6px clamp(6px, 2vw, 28px);
  background: transparent;
  border: 0;
  border-right: 1px solid #d8dde6;
  border-radius: 0;
}
.ears-stat-band-card:last-child { border-right: 0; }
.ears-stat-band-icon {
  flex-shrink: 0;
  width: clamp(20px, 3.2vw, 36px);
  height: clamp(20px, 3.2vw, 36px);
  color: #072B61;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ears-stat-band-icon svg { width: 100%; height: 100%; }
.ears-stat-band-value {
  font-size: clamp(1rem, 2.3vw, 1.65rem);
  font-weight: 700;
  color: #072B61;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}
.ears-stat-band-label {
  margin-top: 4px;
  color: #6b7480;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.ears-stat-note {
  margin-top: 16px;
  color: #aab0bb;
  font-size: 0.72rem;
  text-align: right;
  display: none;
}
body.logged-in .ears-stat-note { display: block; }

@media (max-width: 1100px) {
  .ears-stat-band-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ears-stat-band-card:nth-child(3) { border-right: 1px solid #d8dde6; }
  .ears-stat-band-card { padding-inline: 12px; }
  .ears-stat-band-label { display: none; }
}
@media (max-width: 600px) {
  .ears-stats-band { padding: 14px 0; }
  .ears-stat-band-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ears-stat-band-card,
  .ears-stat-band-card:nth-child(odd) {
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #d8dde6 !important;
    border-bottom: 0 !important;
    padding: 4px 2px;
  }
  .ears-stat-band-card:last-child { border-right: 0 !important; }
  .ears-stat-band-icon { width: 20px; height: 20px; }
  .ears-stat-band-value { font-size: clamp(0.72rem, 3.9vw, 1rem); }
}

/* ====================== Single 活動・イベント (弹性详情) ====================== */
.ears-event-single { background: #fff; }
.ears-event-hero {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
}
.ears-event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.05), rgba(11, 31, 58, 0.5));
}
.ears-event-header { padding: 56px 24px 32px; max-width: 880px; }
.ears-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.ears-event-tags li {
  background: #fbf8f1;
  border: 1px solid #ecdcb7;
  color: #6b6450;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.ears-event-title {
  color: #0B1F3A;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 16px;
}
.ears-event-lead {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0 0 24px;
}
.ears-event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid #ecdcb7;
  border-bottom: 1px solid #ecdcb7;
}
.ears-event-facts li { display: flex; flex-direction: column; gap: 4px; }
.ears-event-fact-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: #C9A96E;
  text-transform: uppercase;
}
.ears-event-body {
  padding: 32px 24px 24px;
  max-width: 880px;
  font-size: 1rem;
  line-height: 1.95;
  color: #2c333d;
}
.ears-event-body img { border-radius: 6px; margin: 16px 0; }
.ears-event-section-title {
  margin: 56px 0 20px;
  font-size: 1.2rem;
  color: #0B1F3A;
  border-left: 3px solid #C9A96E;
  padding-left: 12px;
}
.ears-event-gallery-wrap,
.ears-event-video-wrap,
.ears-event-cta { max-width: 880px; padding-left: 24px; padding-right: 24px; }
.ears-event-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ears-event-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
@media (max-width: 600px) { .ears-event-gallery { grid-template-columns: repeat(2, 1fr); } }

.ears-event-video iframe,
.ears-event-video embed,
.ears-event-video object {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
}
.ears-event-cta { padding-top: 32px; padding-bottom: 32px; }
.ears-event-nav { max-width: 880px; padding: 32px 24px 64px; }
.ears-event-nav a { color: #0B1F3A; }

/* ====================== Hero — 深海蓝 (TED / 北欧 / 教育机构感) ====================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,0.06) 0%, transparent 55%),
    linear-gradient(180deg, #072B61 0%, #0A3472 50%, #041E49 100%) !important;
  color: #fff;
  overflow: hidden;
  margin: 0 !important;
  padding: 120px 24px 96px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 45%);
  pointer-events: none;
}
.hero-overlay { display: none; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.hero-crest { margin-bottom: 32px; }
.hero-crest .crest-logo {
  width: clamp(72px, 9vw, 130px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.18));
}
.hero-title {
  color: #fefefe !important;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 18px;
  letter-spacing: 0.04em;
}
.hero-subtitle {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin: 0 0 40px;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  margin: 0;
}
.hero-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.hero-btn--primary {
  background: #fff;
  color: #072B61 !important;
  border-color: #fff;
}
.hero-btn--primary:hover {
  background: #f0f4fa;
  color: #041E49 !important;
}

/* scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  z-index: 2;
}
.hero-scroll-text {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: ears-scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes ears-scroll-pulse {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

/* ====================== Hero background video (v2.4.0) ====================== *
 * The <video> is hidden until JS confirms a source for this viewport and adds
 * `.has-video` to .hero (desktop only for now; mobile keeps the text hero).
 * When active: video fills the hero, the crest/title/subtitle become sr-only
 * (kept in DOM for SEO/AT — the video already carries the wordmark), and the
 * CTAs drop to the lower third over a legibility scrim so they never sit on
 * top of the video's centered logo/text. */
.hero-video {
  display: none;
  position: absolute;
  /* full-bleed: the nav floats transparently on top (see .nav-at-top) instead
     of covering the video, so the whole frame — including its logo/text — shows */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
  /* hidden until it is actually playing — guarantees no autoplay/poster
     play-button overlay ever shows; the first frame is carried by ::before */
  opacity: 0;
  transition: opacity 0.6s ease;
}
/* At rest the hero is a live "title card": blue background (matching the video)
   with a breathing/glowing crest + tagline + CTAs, all real DOM. Clicking the
   crest plays the video (×2, sound) over the top. */
.hero.has-video {
  justify-content: center;
  min-height: 86vh;
  background:
    radial-gradient(ellipse 95% 85% at 50% 40%, #336699 0%, #1d4d85 48%, #0e3877 100%) !important;
}
.hero.has-video .hero-video { display: block; }
.hero.video-playing .hero-video { opacity: 1; }
/* the live card replaces the old static poster layer */
.hero.has-video::before { display: none; }
/* legibility scrim: clear at top (where the video's logo/text sits), darker at
 * the bottom (where the CTAs + scroll hint live) */
.hero.has-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(4, 30, 73, 0.55) 0%,
    rgba(4, 30, 73, 0.12) 110px,
    rgba(4, 30, 73, 0.03) 34%,
    rgba(4, 30, 73, 0.10) 62%,
    rgba(4, 30, 73, 0.55) 100%);
}
/* the live card sits above the (hidden) video; it fades out while the video
   plays and fades back in when playback stops */
.hero.has-video .hero-content {
  z-index: 3;
  transition: opacity 0.5s ease;
}
.hero.video-playing .hero-content {
  opacity: 0;
  pointer-events: none;
}
.hero.has-video .hero-scroll { display: none; }

/* crest = breathing, glowing, clickable play button */
.hero.has-video .crest-link {
  cursor: pointer;
  display: inline-block;
}
.hero.has-video .crest-logo {
  /* closer to the video title-card's logo:text ratio (logo noticeably larger) */
  width: clamp(160px, 18vw, 260px);
  animation: ears-crest-breathe 4s ease-in-out infinite;
}
@keyframes ears-crest-breathe {
  0%, 100% { transform: scale(1);     filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.22)); }
  50%      { transform: scale(1.045); filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.42)); }
}
/* hover → stronger glow (overrides the animated filter via !important) */
.hero.has-video .crest-link:hover .crest-logo {
  filter:
    drop-shadow(0 0 46px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 16px rgba(150, 200, 255, 0.7)) !important;
}
@media (prefers-reduced-motion: reduce) {
  .hero.has-video .crest-logo { animation: none; }
}
/* more transparent glassy CTAs over the video */
.hero.has-video .hero-btn {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero.has-video .hero-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.hero.has-video .hero-btn--primary {
  background: rgba(255, 255, 255, 0.62);
  color: #072B61 !important;
  border-color: rgba(255, 255, 255, 0.75);
}
.hero.has-video .hero-btn--primary:hover {
  background: rgba(255, 255, 255, 0.85);
}
/* mobile/tablet: 9:16 vertical video — taller hero so less of it gets cropped */
@media (max-width: 921px) {
  .hero.has-video { min-height: 82vh; }
}

@media (max-width: 600px) {
  .hero { min-height: 65vh; padding: 100px 20px 80px; }
  .hero-crest .crest-logo { width: 80px; }
  .hero-btn { min-height: 46px; font-size: 0.82rem; padding: 0 22px; }
}

/* ====================== Pillars (教育・プログラム / 研究・出版) ====================== */
.ears-pillars {
  background: #fff;
  padding: 38px 0 42px;
}
.ears-pillars--alt {
  background: #f3f6fb;
}
.ears-pillars-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ears-pillars-head-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ears-pillars-arrows {
  display: flex;
  gap: 8px;
}
.ears-pillars-title {
  margin: 0;
  color: #072B61;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ears-pillars-link {
  color: #6b7480;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.ears-pillars-link:hover { color: #072B61; }

.ears-pillars-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.ears-pillars-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Pillar carousel — reuse activity carousel mechanics, show 4 per slide */
.ears-pillars--carousel .ears-carousel-viewport { overflow: hidden; padding: 4px; margin: 0; }
.ears-pillar-track {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.ears-pillars--carousel .ears-pillar-card {
  flex: 0 0 calc((100% - 72px) / 4); /* 4 per visible slide */
}

@media (max-width: 1100px) {
  .ears-pillars--carousel .ears-pillar-card { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 900px) {
  .ears-pillars--carousel .ears-pillar-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .ears-pillars--carousel .ears-pillar-card { flex-basis: 100%; }
  .ears-pillars { padding: 26px 0 32px; }
  .ears-pillars-head { margin-bottom: 10px; }
  .ears-pillars-title { font-size: 1.25rem; }
  .ears-pillars-head-right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

.ears-pillar-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(7, 43, 97, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.ears-pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 43, 97, 0.15);
  box-shadow: 0 14px 32px rgba(7, 43, 97, 0.08);
}
.ears-pillar-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.ears-pillar-card-photo {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #072B61;
}
.ears-pillar-card-body {
  position: relative;
  padding: 18px 22px 22px;
}
.ears-pillar-card-title {
  margin: 0 0 6px;
  color: #072B61;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ears-pillar-card-desc {
  margin: 0;
  padding-right: 40px;
  color: #6b7480;
  font-size: 0.82rem;
  line-height: 1.7;
}
.ears-pillar-card-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(7, 43, 97, 0.18);
  color: #072B61;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.ears-pillar-card:hover .ears-pillar-card-arrow {
  background: #072B61;
  color: #fff;
  border-color: #072B61;
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .ears-pillars { padding: 32px 0 36px; }
  .ears-pillars-grid--3 { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .ears-pillars { padding: 26px 0 32px; }
  .ears-pillars-head { margin-bottom: 10px; }
}

/* ====================== Prefooter — 理事長メッセージ + 法人概要 ====================== */
.ears-prefooter {
  background: #f7f9fc;
  padding: 36px 0 32px;
}
.ears-prefooter-grid {
  display: grid;
  /* 5-col logical split: chair 2fr | org-left 1.5fr | org-right 1.5fr */
  grid-template-columns: 2fr 3fr;
  gap: 0;          /* divider provides visual gap; padding on org adds breathing room */
  align-items: stretch;
}
.ears-prefooter-message { padding-right: 40px; }
.ears-prefooter-org {
  padding-left: 40px;
  border-left: 1px solid rgba(11, 31, 58, 0.08);
}
/* Two-column dl layout inside 法人概要 */
.ears-org-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.ears-prefooter-heading {
  color: #0B1F3A;
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

/* Left — chair message */
.ears-prefooter-message { font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif; }
.ears-chair-body p {
  font-size: 0.84rem;
  color: #3a4150;
  line-height: 1.95;
  margin: 0 0 4px;
}
.ears-chair-body p:last-child { margin-bottom: 0; }

.ears-chair-sign {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: #555;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.ears-chair-role { color: #6b7480; }
.ears-chair-name { font-weight: 600; color: #0B1F3A; }
.ears-chair-name-en {
  margin: 4px 0 0;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #0B1F3A;
  letter-spacing: 0.02em;
}
.ears-chair-signature {
  display: inline-block;
  margin: 0 0 0 8px;
  max-height: 38px;
  width: auto;
  vertical-align: middle;
  align-self: center;
}

/* Right — 法人概要 mini table */
.ears-org-list {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.65;
}
.ears-org-list dt { color: #0B1F3A; font-weight: 600; }
.ears-org-list dd { margin: 0; color: #4a5160; }
.ears-org-more {
  margin: 14px 0 0;
  font-size: 0.78rem;
  text-align: right;
}
.ears-org-more a { color: #0B1F3A; letter-spacing: 0.02em; }
.ears-org-more a:hover { color: #C9A96E; }

@media (max-width: 900px) {
  .ears-prefooter { padding: 32px 0 28px; }
  .ears-prefooter-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Stacked: swap vertical divider for a horizontal one between the two cells */
  .ears-prefooter-message { padding-right: 0; }
  .ears-prefooter-org {
    padding-left: 0;
    border-left: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(11, 31, 58, 0.08);
  }
}
@media (max-width: 560px) {
  .ears-org-split { grid-template-columns: 1fr; gap: 16px; }
}

/* ====================== Newsletter strip (dark navy) ====================== */
.ears-cta-strip {
  background: #072B61;
  color: #fff;
  padding: 28px 0;
}
.ears-cta-strip-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.ears-cta-strip-heading {
  margin: 0 0 2px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ears-cta-strip-sub {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  line-height: 1.65;
}
.ears-cta-strip-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #0B1F3A;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.ears-cta-strip-btn:hover {
  background: #C9A96E;
  color: #fff;
  transform: translateY(-2px);
}

.ears-cta-strip-right {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-end;
}
.ears-cta-strip-right .ears-sns-label {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ears-sns-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ears-sns-list--placeholder .ears-sns-link { opacity: 0.55; cursor: default; }
.ears-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.ears-sns-link svg { width: 15px; height: 15px; }
.ears-sns-link:hover { transform: translateY(-3px); filter: brightness(1.1); }
.ears-sns-link svg { width: 18px; height: 18px; }
.ears-sns-link img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ears-sns-line      { background: #06C755; }
.ears-sns-x         { background: #000000; }
.ears-sns-facebook  { background: #1877F2; }
.ears-sns-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.ears-sns-youtube   { background: #FF0000; }

@media (max-width: 700px) {
  .ears-cta-strip-grid { grid-template-columns: 1fr; gap: 28px; }
  .ears-cta-strip-right { justify-content: flex-start; }
}

/* ====================== Main Footer (dark navy) ====================== */
.ears-footer {
  background: #041E49;
  color: #c9d1da;
  padding: 64px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ears-footer a { color: #c9d1da; text-decoration: none; transition: color 0.2s; }
.ears-footer a:hover { color: #C9A96E; }

.ears-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 3fr;
  gap: 40px;
  align-items: start;
}
.ears-footer-brand { display: flex; flex-direction: column; gap: 4px; }
.ears-footer-logo {
  width: 54px;
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.ears-footer-org-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.ears-footer-org-name {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ears-footer-org-name span {
  color: #C9A96E;
  font-weight: 500;
  margin-left: 5px;
  letter-spacing: 0.1em;
}
.ears-footer-tagline {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

/* Right — 5 columns */
.ears-footer-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.ears-footer-col-title {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}
.ears-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ears-footer-col li {
  margin: 0 0 5px;
  font-size: 0.72rem;
  line-height: 1.7;
}

/* Bottom row */
.ears-footer-bottom {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ears-footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.ears-footer-legal li {
  font-size: 0.68rem;
  position: relative;
  padding: 0 12px;
}
.ears-footer-legal li:first-child { padding-left: 0; }
.ears-footer-legal li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
}
.ears-footer-copy {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .ears-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .ears-footer-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .ears-footer-nav { grid-template-columns: repeat(2, 1fr); }
  .ears-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ====================== Floating mail button (sits below ichigo widget) ====================== */
.ears-mail-btn {
  position: fixed;
  right: 24px;
  bottom: 110px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0B1F3A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.35);
  z-index: 998;
  transition: transform 0.25s ease, background 0.25s ease;
}
.ears-mail-btn:hover {
  transform: translateY(-3px);
  background: #1a2f54;
  color: #C9A96E;
}
.ears-mail-btn svg { width: 26px; height: 26px; }
.ears-mail-btn .ears-mail-tooltip {
  position: absolute;
  right: 70px;
  background: #0B1F3A;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ears-mail-btn:hover .ears-mail-tooltip { opacity: 1; }

@media (max-width: 600px) {
  .ears-mail-btn { right: 16px; bottom: 90px; width: 48px; height: 48px; }
  .ears-mail-btn svg { width: 22px; height: 22px; }
}

/* ===== AI学習ラボ 入口 (front-page, v2.2.0) ===== */
.ears-ailab { padding-top: 40px; padding-bottom: 40px; }
.ears-ailab-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(120deg, #0B1F3A 0%, #00509e 100%);
  border-radius: 20px; padding: 48px 52px; color: #fff;
  box-shadow: 0 18px 50px rgba(11,31,58,.22);
}
.ears-ailab-label { font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: #C9A96E; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.ears-ailab-new { background: #C9A96E; color: #0B1F3A; font-size: .66rem; padding: 2px 8px; border-radius: 100px; letter-spacing: .05em; }
.ears-ailab-title { font-size: 1.9rem; font-weight: 800; margin: 14px 0 12px; line-height: 1.3; color: #fff; }
.ears-ailab-desc { font-size: .95rem; line-height: 1.85; color: rgba(255,255,255,.82); margin-bottom: 28px; }
.ears-ailab-btn {
  display: inline-block; background: #fff; color: #0B1F3A; font-weight: 700;
  padding: 14px 30px; border-radius: 10px; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.ears-ailab-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); color: #00509e; }
.ears-ailab-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ears-ailab-badges li {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 14px 16px; font-size: .88rem; font-weight: 600;
}
@media (max-width: 860px) {
  .ears-ailab-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .ears-ailab-title { font-size: 1.5rem; }
}

/* ===== ERSF UI preview polish v1.1.0 ===== */
.hero-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title {
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}
.hero-subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.hero-ctas {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero.has-video .hero-btn {
  background: rgba(7, 43, 97, 0.18);
  border-color: rgba(255, 255, 255, 0.48);
}
.hero.has-video .hero-btn--primary {
  background: #fff;
  color: #072B61 !important;
  border-color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.hero.has-video .hero-btn--primary:hover {
  background: #f7f9fc;
  transform: translateY(-2px);
}

.ears-carousel-card,
.ears-pillar-card {
  border-radius: 8px;
  border: 1px solid #e7ebf1;
  box-shadow: 0 10px 24px rgba(16, 34, 61, 0.08);
}
.ears-carousel-card-photo,
.ears-pillar-card-photo {
  border-radius: 8px 8px 0 0;
}
.ears-carousel-card:hover,
.ears-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 34, 61, 0.12);
}
.ears-carousel-card-title,
.ears-pillar-card-title {
  letter-spacing: 0;
}
.ears-carousel-card-excerpt,
.ears-pillar-card-desc {
  color: #5d6876;
}

.ears-ailab-card {
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.98) 0%, rgba(9, 54, 111, 0.98) 58%, rgba(22, 85, 128, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(11, 31, 58, 0.18);
}
.ears-ailab-btn,
.ears-ailab-badges li {
  border-radius: 6px;
}
.ears-ailab-badges li {
  background: rgba(255, 255, 255, 0.09);
}

.ears-stats-band {
  padding: 24px 0;
}
.ears-stat-band-card {
  align-items: center;
  padding: 6px clamp(6px, 2vw, 22px);
}
.ears-stat-band-label {
  max-width: 118px;
  color: #425064;
  font-size: 0.76rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .hero.has-video {
    min-height: 78vh;
    padding-top: 108px;
  }
  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(100%, 304px);
    gap: 10px;
  }
  .hero-btn {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.78rem;
  }
  .hero-btn--primary {
    grid-column: 1 / -1;
  }
  .ears-stats-band {
    padding: 14px 0;
  }
  .ears-stat-band-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ears-stat-band-card,
  .ears-stat-band-card:nth-child(odd) {
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #e3e8ef !important;
    border-bottom: 0;
    padding: 4px 2px;
  }
  .ears-stat-band-card:last-child {
    border-right: 0 !important;
  }
  .ears-stat-band-label {
    display: none;
  }
}

/* ===== ERSF crest watermark system v1.1.6-preview ===== */
:root {
  --ersf-crest-mask: url("../img/logo-hero.4bbdf2b234cb.png");
}

.ears-activities,
.ears-pillars,
.ears-ailab,
.ears-prefooter,
.ears-cta-strip,
.ears-footer {
  position: relative;
  overflow: hidden;
}

.ears-activities > .container,
.ears-pillars > .container,
.ears-ailab > .container,
.ears-prefooter > .container,
.ears-cta-strip > .container,
.ears-footer > .container {
  position: relative;
  z-index: 1;
}

.ears-activities::before,
.ears-pillars::before,
.ears-prefooter::before {
  content: "";
  position: absolute;
  right: clamp(-120px, -6vw, -56px);
  bottom: clamp(-150px, -9vw, -72px);
  width: clamp(220px, 28vw, 460px);
  aspect-ratio: 1;
  background: #072B61;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  -webkit-mask: var(--ersf-crest-mask) center / contain no-repeat;
  mask: var(--ersf-crest-mask) center / contain no-repeat;
}

.ears-pillars--alt::before,
.ears-prefooter::before {
  right: auto;
  left: clamp(-130px, -7vw, -64px);
  top: clamp(12px, 3vw, 42px);
  bottom: auto;
  opacity: 0.04;
}

.ears-ailab-card {
  position: relative;
  overflow: hidden;
}

.ears-ailab-card::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -82px;
  width: clamp(220px, 26vw, 390px);
  aspect-ratio: 1;
  background: #fff;
  opacity: 0.07;
  pointer-events: none;
  -webkit-mask: var(--ersf-crest-mask) center / contain no-repeat;
  mask: var(--ersf-crest-mask) center / contain no-repeat;
}

.ears-ailab-text,
.ears-ailab-badges {
  position: relative;
  z-index: 1;
}

.ears-cta-strip::before,
.ears-footer::before {
  content: "";
  position: absolute;
  left: clamp(-120px, -6vw, -64px);
  bottom: clamp(-150px, -8vw, -72px);
  width: clamp(240px, 30vw, 480px);
  aspect-ratio: 1;
  background: #fff;
  opacity: 0.035;
  pointer-events: none;
  -webkit-mask: var(--ersf-crest-mask) center / contain no-repeat;
  mask: var(--ersf-crest-mask) center / contain no-repeat;
}

.ears-footer::after {
  content: "";
  position: absolute;
  right: -110px;
  top: 48px;
  width: clamp(220px, 24vw, 390px);
  aspect-ratio: 1;
  background: #C9A96E;
  opacity: 0.045;
  pointer-events: none;
  -webkit-mask: var(--ersf-crest-mask) center / contain no-repeat;
  mask: var(--ersf-crest-mask) center / contain no-repeat;
}

@media (max-width: 600px) {
  .ears-activities::before,
  .ears-pillars::before,
  .ears-prefooter::before {
    width: 210px;
    opacity: 0.03;
  }
  .ears-ailab-card::after {
    right: -82px;
    bottom: -72px;
    width: 220px;
    opacity: 0.055;
  }
  .ears-cta-strip::before,
  .ears-footer::before,
  .ears-footer::after {
    width: 210px;
    opacity: 0.03;
  }
}

/* ===== ERSF section form experiment v1.1.7-preview ===== */
.ears-activities--news {
  padding: 38px 0 42px;
}

.ears-activities--news .ears-activities-head {
  margin-bottom: 16px;
}

.ears-activity-newsboard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.ears-activity-feature,
.ears-activity-list {
  min-width: 0;
}

.ears-activity-feature-link {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr);
  min-height: 300px;
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 28px rgba(16, 34, 61, 0.08);
}

.ears-activity-feature-photo {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.ears-activity-feature-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ears-activity-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: #6b7480;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.ears-activity-meta span {
  color: #C9A96E;
}

.ears-activity-feature h3 {
  margin: 0 0 12px;
  color: #0B1F3A;
  font-size: 1.18rem;
  line-height: 1.55;
}

.ears-activity-feature p {
  margin: 0 0 16px;
  color: #5d6876;
  font-size: 0.84rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ears-activity-feature-more {
  margin-top: auto;
  color: #072B61;
  font-weight: 700;
  font-size: 0.82rem;
}

.ears-activity-list {
  display: grid;
  gap: 10px;
}

.ears-activity-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 18px rgba(16, 34, 61, 0.05);
}

.ears-activity-row-date {
  color: #C9A96E;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ears-activity-row-main {
  min-width: 0;
  display: block;
}

.ears-activity-row-title {
  display: block;
  color: #0B1F3A;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ears-activity-row-excerpt {
  display: block;
  margin-top: 4px;
  color: #6b7480;
  font-size: 0.74rem;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ears-activity-row-arrow,
.ears-program-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(7, 43, 97, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #072B61;
  background: #fff;
  font-size: 12px;
}

.ears-programs-section {
  background: #fff;
}

.ears-program-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ears-program-item {
  min-width: 0;
}

.ears-program-link {
  min-height: 132px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(16, 34, 61, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ears-program-link:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 43, 97, 0.22);
  box-shadow: 0 16px 28px rgba(16, 34, 61, 0.1);
}

.ears-program-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #eef3f8;
}

.ears-program-copy {
  display: block;
  min-width: 0;
}

.ears-program-kicker {
  display: block;
  margin-bottom: 5px;
  color: #C9A96E;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ears-program-title {
  display: block;
  color: #072B61;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.ears-program-desc {
  display: block;
  margin-top: 4px;
  color: #5d6876;
  font-size: 0.74rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ears-publication-shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ears-publication-link {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 150px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 34, 61, 0.07);
}

.ears-publication-cover {
  width: 96px;
  height: 118px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(11, 31, 58, 0.16);
}

.ears-publication-type {
  display: inline-flex;
  margin-bottom: 7px;
  color: #C9A96E;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ears-publication-title {
  margin: 0 0 6px;
  color: #072B61;
  font-size: 0.96rem;
  line-height: 1.45;
}

.ears-publication-desc {
  margin: 0 0 10px;
  color: #5d6876;
  font-size: 0.76rem;
  line-height: 1.55;
}

.ears-publication-more {
  color: #072B61;
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .ears-activity-newsboard {
    grid-template-columns: 1fr;
  }

  .ears-activity-feature-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ears-activity-feature-photo {
    min-height: 180px;
  }

  .ears-program-menu {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 2px 10px;
  }

  .ears-program-item {
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
  }

  .ears-publication-shelf {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ===== ERSF activities heading polish v1.1.8-preview ===== */
.ears-activities--news .ears-activities-head {
  align-items: flex-end;
  margin-bottom: 22px;
}

.ears-activities--news .ears-activities-title {
  max-width: 680px;
  margin-bottom: 8px;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.ears-activities--news .ears-activities-sub {
  max-width: 720px;
  margin-bottom: 0;
  color: #4f5c6c;
  font-size: clamp(0.92rem, 1.2vw, 1.04rem);
  line-height: 1.9;
}

.ears-activities--news .ears-activities-link {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .ears-activities--news .ears-activities-head {
    margin-bottom: 18px;
  }

  .ears-activities--news .ears-activities-title {
    font-size: 1.62rem;
    line-height: 1.32;
  }

  .ears-activities--news .ears-activities-sub {
    font-size: 0.86rem;
    line-height: 1.78;
  }

  .ears-activities--news .ears-activities-link {
    margin-bottom: 0;
  }
}

@media (max-width: 600px) {
  .ears-activities--news {
    padding: 30px 0 34px;
  }

  .ears-activity-feature-link {
    box-shadow: 0 8px 18px rgba(16, 34, 61, 0.06);
  }

  .ears-activity-feature-photo {
    min-height: 150px;
  }

  .ears-activity-feature-body {
    padding: 18px;
  }

  .ears-activity-feature h3 {
    font-size: 1rem;
  }

  .ears-activity-list {
    gap: 8px;
  }

  .ears-activity-row {
    grid-template-columns: 68px minmax(0, 1fr) 24px;
    min-height: 62px;
    padding: 12px;
    gap: 10px;
  }

  .ears-activity-row-excerpt {
    display: none;
  }

  .ears-program-link {
    min-height: 112px;
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    padding: 13px;
  }

  .ears-program-thumb {
    width: 56px;
    height: 56px;
  }

  .ears-program-title {
    font-size: 0.86rem;
  }

  .ears-program-desc {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }

  .ears-publication-link {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 118px;
    padding: 12px;
    gap: 12px;
  }

  .ears-publication-cover {
    width: 76px;
    height: 94px;
  }

  .ears-publication-title {
    font-size: 0.9rem;
  }

  .ears-publication-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ===== ERSF activity archive experiment v1.1.9-preview ===== */
.ears-activities--archive {
  padding: 56px 0 58px;
  background:
    linear-gradient(180deg, #f3f6fb 0%, #eef3f8 100%);
}

.ears-activities--archive .ears-activities-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 28px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(7, 43, 97, 0.1);
}

.ears-activities-kicker {
  margin: 0 0 12px;
  color: #C9A96E;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ears-activities--archive .ears-activities-title {
  max-width: 720px;
  margin: 0 0 12px;
  color: #0B1F3A;
  font-size: 3.05rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.ears-activities--archive .ears-activities-sub {
  max-width: 720px;
  margin: 0;
  color: #4f5c6c;
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0;
}

.ears-activities--archive .ears-activities-link {
  margin-bottom: 4px;
  letter-spacing: 0;
}

.ears-activity-archive {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 1.06fr);
  gap: 26px;
  align-items: stretch;
}

.ears-activity-archive-feature,
.ears-activity-timeline {
  min-width: 0;
}

.ears-activity-archive-feature-link {
  display: grid;
  grid-template-rows: 272px minmax(0, 1fr);
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(7, 43, 97, 0.12);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(16, 34, 61, 0.1);
}

.ears-activity-archive-image {
  position: relative;
  display: block;
  min-height: 272px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.ears-activity-archive-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7, 43, 97, 0.02), rgba(7, 43, 97, 0.68));
}

.ears-activity-archive-year {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 3.65rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.ears-activity-archive-feature-body {
  display: flex;
  flex-direction: column;
  padding: 24px 26px 26px;
}

.ears-activity-archive-label {
  margin-bottom: 14px;
  color: #C9A96E;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ears-activity-archive-date {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #687484;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.ears-activity-archive-date span {
  color: #0B1F3A;
}

.ears-activity-archive-title {
  margin-bottom: 12px;
  color: #0B1F3A;
  font-size: 1.26rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.ears-activity-archive-excerpt {
  color: #5d6876;
  font-size: 0.88rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ears-activity-archive-more {
  margin-top: 20px;
  color: #072B61;
  font-size: 0.84rem;
  font-weight: 700;
}

.ears-activity-timeline {
  --timeline-line-left: 93px;
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.ears-activity-timeline::before {
  content: "";
  position: absolute;
  left: var(--timeline-line-left);
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: rgba(7, 43, 97, 0.14);
}

.ears-activity-timeline-item {
  position: relative;
  min-width: 0;
}

.ears-activity-timeline-link {
  position: relative;
  display: grid;
  grid-template-columns: 72px 18px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 15px 16px;
  border: 1px solid rgba(7, 43, 97, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 34, 61, 0.06);
}

.ears-activity-timeline-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #C9A96E;
  font-weight: 700;
  letter-spacing: 0;
}

.ears-activity-timeline-date > span {
  font-size: 0.9rem;
  line-height: 1.1;
}

.ears-activity-timeline-date small {
  color: #7b8796;
  font-size: 0.68rem;
  font-weight: 700;
}

.ears-activity-timeline-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 3px solid #f3f6fb;
  border-radius: 50%;
  background: #C9A96E;
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.55);
}

.ears-activity-timeline-body {
  display: block;
  min-width: 0;
}

.ears-activity-timeline-type {
  display: block;
  margin-bottom: 4px;
  color: #6b7480;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ears-activity-timeline-title {
  display: block;
  color: #0B1F3A;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.48;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ears-activity-timeline-excerpt {
  display: block;
  margin-top: 5px;
  color: #6b7480;
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ears-activity-timeline-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(7, 43, 97, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #072B61;
  background: #fff;
  font-size: 12px;
}

@media (max-width: 900px) {
  .ears-activity-archive {
    grid-template-columns: 1fr;
  }

  .ears-activities--archive .ears-activities-title {
    font-size: 2.45rem;
  }
}

@media (max-width: 600px) {
  .ears-activities--archive {
    padding: 34px 0 38px;
  }

  .ears-activities--archive .ears-activities-head {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .ears-activities-kicker {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .ears-activities--archive .ears-activities-title {
    margin-bottom: 10px;
    font-size: 2rem;
    line-height: 1.18;
  }

  .ears-activities--archive .ears-activities-sub {
    font-size: 0.86rem;
    line-height: 1.78;
  }

  .ears-activities--archive .ears-activities-link {
    display: inline-flex;
    margin-top: 14px;
  }

  .ears-activity-archive {
    gap: 16px;
  }

  .ears-activity-archive-feature-link {
    grid-template-rows: 188px minmax(0, 1fr);
    box-shadow: 0 10px 24px rgba(16, 34, 61, 0.08);
  }

  .ears-activity-archive-image {
    min-height: 188px;
  }

  .ears-activity-archive-year {
    left: 16px;
    bottom: 14px;
    font-size: 2.7rem;
  }

  .ears-activity-archive-feature-body {
    padding: 18px;
  }

  .ears-activity-archive-label {
    margin-bottom: 10px;
    font-size: 0.68rem;
  }

  .ears-activity-archive-title {
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .ears-activity-archive-excerpt {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }

  .ears-activity-timeline {
    --timeline-line-left: 72px;
    gap: 10px;
  }

  .ears-activity-timeline-link {
    grid-template-columns: 56px 14px minmax(0, 1fr) 24px;
    gap: 8px;
    min-height: 74px;
    padding: 12px;
  }

  .ears-activity-timeline-date > span {
    font-size: 0.78rem;
  }

  .ears-activity-timeline-date small {
    font-size: 0.62rem;
  }

  .ears-activity-timeline-dot {
    width: 11px;
    height: 11px;
    border-width: 2px;
  }

  .ears-activity-timeline-title {
    font-size: 0.84rem;
  }

  .ears-activity-timeline-excerpt,
  .ears-activity-timeline-type {
    display: none;
  }

  .ears-activity-timeline-arrow {
    width: 24px;
    height: 24px;
  }
}

/* ===== ERSF AI lab product panel v1.1.10-preview ===== */
.ears-ailab {
  padding-top: 46px;
  padding-bottom: 46px;
  background: #fff;
}

.ears-ailab-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  padding: 46px 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 18%, rgba(201, 169, 110, 0.18), transparent 28%),
    linear-gradient(118deg, #071d38 0%, #08336b 56%, #165780 100%);
  box-shadow: 0 20px 42px rgba(11, 31, 58, 0.18);
}

.ears-ailab-label {
  margin: 0;
  color: #D9BE82;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ears-ailab-new {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #D9BE82;
  color: #0B1F3A;
  font-size: 0.66rem;
  letter-spacing: 0;
}

.ears-ailab-title {
  max-width: 560px;
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0;
}

.ears-ailab-desc {
  max-width: 560px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.9;
  letter-spacing: 0;
}

.ears-ailab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.ears-ailab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 6px;
  background: #fff;
  color: #0B1F3A;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ears-ailab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
  color: #072B61;
}

.ears-ailab-note {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.ears-ailab-preview {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 36px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(8px);
}

.ears-ailab-preview-head,
.ears-ailab-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ears-ailab-preview-head {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  letter-spacing: 0;
}

.ears-ailab-preview-head strong {
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 169, 110, 0.18);
  color: #F1D394;
  font-size: 0.68rem;
  line-height: 1;
}

.ears-ailab-score span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
}

.ears-ailab-score strong {
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: 0;
}

.ears-ailab-meter {
  height: 8px;
  margin: 16px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.ears-ailab-meter span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #D9BE82, #ffffff);
}

.ears-ailab-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.ears-ailab-preview-grid div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 29, 56, 0.2);
}

.ears-ailab-preview-grid span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
}

.ears-ailab-preview-grid strong {
  display: block;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ears-ailab-insights {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ears-ailab-insights li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ears-ailab-insights span {
  color: #D9BE82;
  font-size: 0.7rem;
  font-weight: 700;
}

.ears-ailab-text,
.ears-ailab-preview {
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .ears-ailab-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 28px;
  }
}

@media (max-width: 600px) {
  .ears-ailab {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .ears-ailab-card {
    padding: 28px 22px;
  }

  .ears-ailab-title {
    font-size: 1.56rem;
  }

  .ears-ailab-desc {
    font-size: 0.86rem;
    line-height: 1.78;
  }

  .ears-ailab-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .ears-ailab-btn {
    width: 100%;
  }

  .ears-ailab-preview {
    padding: 18px;
  }

  .ears-ailab-preview-grid {
    grid-template-columns: 1fr;
  }

  .ears-ailab-score strong {
    font-size: 1.9rem;
  }
}
