/* =========================================================
   エデュケーション事業部ページ
   education_article.html 用の追加CSS
   既存 style.css の末尾に追記してください。
   ========================================================= */

.education-page {
  --edu-blue: #0755a4;
  --edu-cyan: #16a6d4;
  --edu-ink: #183451;
  --edu-muted: #52677d;
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  color: var(--edu-ink);
  box-sizing: border-box;
  overflow: hidden;
}

.education-page *,
.education-page *::before,
.education-page *::after {
  box-sizing: border-box;
}

.education-page h1,
.education-page h2,
.education-page p,
.education-page ul {
  margin-top: 0;
}

.education-page p {
  line-height: 1.8;
}

.edu-hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 330px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(120deg, #f4f9ff 0%, #e5f3ff 58%, #cceaff 100%);
  box-shadow: 0 8px 24px rgba(18, 83, 145, 0.12);
}

.edu-hero-copy {
  align-self: center;
  padding: 34px 12px 34px 38px;
  position: relative;
  z-index: 1;
}

.edu-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 15px;
  border-radius: 30px;
  background: var(--edu-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.education-page .edu-hero h1 {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  color: #06488f;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.edu-lead {
  margin-bottom: 0;
  color: #24496e;
  font-size: 16px;
  font-weight: 700;
}

.edu-hero-visual {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background: radial-gradient(circle at 60% 38%, #ffffff 0, #8bd8ff 25%, #1678c7 72%, #06488f 100%);
}

.edu-hero-visual img,
.edu-service-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-hero-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.8), transparent 15%),
    radial-gradient(circle at 50% 45%, #3ac6f3 0, #137bc5 42%, #06488f 100%);
}

.edu-vr-icon {
  display: grid;
  place-items: center;
  width: 112px;
  height: 72px;
  border: 5px solid #fff;
  border-radius: 22px;
  background: rgba(5, 42, 91, .42);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.edu-hero-fallback strong {
  font-size: 21px;
}

.edu-hero-fallback span:last-child {
  font-size: 13px;
  letter-spacing: .08em;
}

.edu-intro {
  max-width: 850px;
  margin: 26px auto 30px;
  text-align: center;
}

.edu-intro-mark {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--edu-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}

.edu-intro p {
  margin-bottom: 0;
  color: #405b75;
  font-size: 15px;
}

.edu-services {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.edu-service {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  min-height: 225px;
  overflow: hidden;
  border: 1px solid #d7e8f7;
  border-left: 6px solid var(--service-color);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(28, 73, 116, .08);
}

.edu-service-blue { --service-color: #1683d1; --service-pale: #eaf5ff; }
.edu-service-green { --service-color: #0b9e9a; --service-pale: #e9f9f7; }
.edu-service-purple { --service-color: #8051c7; --service-pale: #f4efff; }

.edu-service-copy {
  align-self: center;
  padding: 22px 28px;
}

.edu-number {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--service-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.education-page .edu-service h2 {
  margin-bottom: 7px;
  color: var(--service-color);
  font-size: 23px;
  line-height: 1.35;
}

.edu-service-lead {
  margin-bottom: 7px;
  color: #263f59;
  font-size: 15px;
  font-weight: 800;
}

.edu-service-copy > p:not(.edu-service-lead) {
  margin-bottom: 9px;
  color: #52677d;
  font-size: 13px;
}

.edu-service ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.edu-service li {
  position: relative;
  padding-left: 17px;
  color: #29445e;
  font-size: 12px;
  line-height: 1.6;
}

.edu-service li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--service-color);
  font-weight: 800;
}

.edu-service-visual {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  background: var(--service-pale);
}

.edu-visual-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--service-color);
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, #fff 0, var(--service-pale) 55%, #dceaf7 100%);
}

.edu-visual-symbol {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 42px;
  font-weight: 700;
}

.edu-visual-fallback strong {
  font-size: 17px;
  letter-spacing: .08em;
}

.edu-visual-fallback span:last-child {
  font-size: 12px;
}

.edu-strengths {
  margin: 32px 0 28px;
}

.education-page .edu-strengths h2 {
  margin-bottom: 16px;
  color: #0755a4;
  font-size: 22px;
  text-align: center;
}

.edu-strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.edu-strength {
  min-height: 130px;
  padding: 16px 12px;
  border: 1px solid #d8e9f8;
  border-radius: 14px;
  background: #f5faff;
  text-align: center;
}

.edu-strength span {
  display: block;
  margin-bottom: 7px;
  color: #1683d1;
  font-size: 12px;
  font-weight: 800;
}

.edu-strength strong {
  display: block;
  margin-bottom: 6px;
  color: #174b7d;
  font-size: 14px;
}

.edu-strength p {
  margin-bottom: 0;
  color: #60758a;
  font-size: 11px;
  line-height: 1.6;
}

.edu-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 30px;
  border-radius: 18px;
  background: linear-gradient(110deg, #e6f4ff, #d2eaff);
}

.edu-contact-kicker {
  margin-bottom: 6px;
  color: #2675b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.education-page .edu-contact h2 {
  margin-bottom: 7px;
  color: #06488f;
  font-size: 20px;
  line-height: 1.45;
}

.edu-contact p:last-child {
  margin-bottom: 0;
  color: #46627d;
  font-size: 12px;
}

.edu-contact-link {
  flex: 0 0 auto;
  display: inline-block;
  padding: 12px 19px;
  border-radius: 30px;
  background: #0755a4;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}

.edu-contact-link:hover {
  background: #087bbd;
}

.edu-contact-link span {
  margin-left: 8px;
  font-size: 20px;
  vertical-align: -1px;
}

@media (max-width: 767px) {
  .education-page {
    padding: 12px 12px 28px;
  }

  .edu-hero {
    grid-template-columns: 1fr;
  }

  .edu-hero-copy {
    padding: 26px 22px 18px;
  }

  .education-page .edu-hero h1 {
    font-size: 32px;
  }

  .edu-hero-visual {
    min-height: 210px;
  }

  .edu-service {
    grid-template-columns: 1fr;
  }

  .edu-service-copy {
    padding: 20px 20px 17px;
  }

  .edu-service-visual {
    min-height: 190px;
  }

  .edu-strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edu-contact {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .edu-contact-link {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .education-page .edu-service h2 {
    font-size: 20px;
  }

  .edu-service ul {
    display: block;
  }

  .edu-strength-grid {
    gap: 8px;
  }

  .edu-strength {
    padding: 13px 8px;
  }
}
