

.hero__photo--educationgroup { background-image: url("../pageimg/educationgroup/images/hero-bg-educationgroup.webp"); }

.eg { background: #ffffff; padding: var(--section-y) 0; }
.eg-stack {
  width: 1260px;
  max-width: calc(100% - 2 * var(--pad-x-sp));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 134px;
}

.eg-head { display: flex; flex-direction: column; gap: var(--space-40); text-align: center; }
.eg-h1 {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 44px; line-height: 1.4; color: #131936;
}
.eg-lead {
  font-family: var(--font-jp); font-weight: 400;
  font-size: 20px; line-height: 2; color: #131936;
}

.eg-block { display: flex; gap: 80px; align-items: flex-start; }
.eg-block__side {
  flex: 0 0 250px;
  border-top: 1px solid #cacfe3;
  padding-top: var(--space-24);
  display: flex; flex-direction: column; gap: var(--space-16);
}
.eg-block__side-jp {
  font-family: var(--font-jp); font-weight: var(--fw-medium, 500);
  font-size: 15px; line-height: 1.4; color: #131936;
}
.eg-block__side-bar { width: 45px; height: 4px; background: var(--c-accent-blue); }
.eg-block__side-en {
  font-family: var(--font-en); font-weight: 500;
  font-size: 40px; line-height: 1.2; letter-spacing: -0.04em; color: #131936;
}
.eg-block__body {
  flex: 1 1 0; min-width: 0;
  border-top: 1px solid #cacfe3;
  border-bottom: 1px solid #cacfe3;
  padding: var(--space-32) 0 57px;
  display: flex; flex-direction: column; gap: var(--space-32);
}

.eg-phil-diagram {
  position: relative;
  width: 930px; max-width: 100%;
  aspect-ratio: 930 / 399;
  margin-inline: auto;
}
.eg-phil-diagram::before,
.eg-phil-diagram::after {
  content: "";
  position: absolute; top: 0;
  width: 42.9%;
  aspect-ratio: 1 / 1;
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  box-sizing: border-box;
}
.eg-phil-diagram::before { left: 0; }
.eg-phil-diagram::after { right: 0; }
.eg-phil-center {
  position: absolute; z-index: 1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 25.4%;
  aspect-ratio: 1 / 1;
  background: #131936; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-16);
  text-align: center;
}
.eg-phil-center__label {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 14px; line-height: 1.4; color: #ffffff;
}
.eg-phil-center__text {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 20px; line-height: 1.4; color: #ffffff;
}
.eg-phil-school {
  position: absolute; top: 33.3%;
  width: 30.4%;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-24);
  text-align: center;
}
.eg-phil-school--kinoshita { left: 4.6%; }
.eg-phil-school--tokyo { right: 4.6%; }
.eg-phil-school__logo { width: 278px; max-width: 100%; height: auto; display: block; }
.eg-phil-school__desc {
  font-family: var(--font-jp);
  font-size: 14px; line-height: 1.8; color: #131936;
}

.eg-mission {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 26px; line-height: 1.8; color: #131936;
}
.eg-vision {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 34px; line-height: 1.6; color: #131936;
}

.eg-values {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-16);
}
.eg-value { display: flex; flex-direction: column; align-items: center; gap: var(--space-20); text-align: center; }
.eg-value__letter {
  font-family: var(--font-en); font-weight: var(--fw-bold);
  font-size: 64px; line-height: 1; color: #131936;
  margin-bottom: var(--space-16);
}
.eg-value__en {
  font-family: var(--font-en); font-weight: 500;
  font-size: 14px; line-height: 1.2; letter-spacing: 0.02em; color: #131936;
}
.eg-value__jp {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 16px; line-height: 1.4; color: #131936;
}

.eg-block__body--flush { padding-top: 0; padding-bottom: 0; }
.eg-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.eg-principle {
  border-right: 1px solid #cacfe3;
  padding: var(--space-32) var(--space-24);
  display: flex; flex-direction: column; gap: var(--space-12);
}
.eg-principle:nth-child(3n) { border-right: none; }
.eg-principle:nth-child(n+4) { border-top: 1px solid #cacfe3; }
.eg-principle__no {
  font-family: var(--font-en); font-weight: 500;
  font-size: 14px; line-height: 1; letter-spacing: 0.04em; color: #131936;
}
.eg-principle__en {
  font-family: var(--font-en); font-weight: var(--fw-bold);
  font-size: 30px; line-height: 1.2; color: #131936;
}
.eg-principle__jp {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 16px; line-height: 1.4; color: #131936;
  margin-top: var(--space-10);
}
.eg-principle__text {
  font-family: var(--font-jp);
  font-size: 14px; line-height: 1.8; color: #131936;
}

.eg-block__body--stmt { gap: var(--space-16); }
.eg-stmt__title {
  font-family: var(--font-en); font-weight: var(--fw-bold);
  font-size: 35px; line-height: 1.4; color: #131936;
}
.eg-stmt__sec { display: flex; flex-direction: column; gap: var(--space-12); }
.eg-stmt__lead {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 16px; line-height: 1.8; color: #131936;
}
.eg-stmt__text {
  font-family: var(--font-jp);
  font-size: 14px; line-height: 1.9; color: #131936;
}

.eg-block__body--msg { padding-top: 0; border-top: none; border-bottom: none; }
.eg-msg__intro { display: flex; flex-direction: column; gap: var(--space-32); }
.eg-msg__photo { width: 930px; max-width: 100%; height: auto; display: block; }
.eg-msg__name {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 26px; line-height: 1.4; color: #131936;
}
.eg-msg__profile { display: flex; flex-direction: column; gap: var(--space-12); }
.eg-msg__row { display: flex; gap: var(--space-40); align-items: flex-start; margin-top: var(--space-16); }
.eg-msg__sub { flex: 0 0 497px; width: 497px; height: auto; display: block; }
.eg-msg__body {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: var(--space-16);
}
.eg-msg__body p {
  font-family: var(--font-jp);
  font-size: 14px; line-height: 1.9; color: #131936;
}

.eg-spark {
  margin-top: 88px;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-48);
  text-align: center;
  padding-inline: var(--pad-x-sp);
}
.eg-spark__title {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 44px; line-height: 1.3; color: #131936;
}
.eg-spark__stripes { width: 100%; max-width: 1260px; height: auto; display: block; }
.eg-spark__lead {
  font-family: var(--font-jp); font-weight: var(--fw-bold);
  font-size: 26px; line-height: 1.5; color: #131936;
  margin-top: var(--space-16);
}
.eg-spark__text {
  font-family: var(--font-jp);
  font-size: 16px; line-height: 1.75; color: #131936;
}
.eg-spark__lead + .eg-spark__text { margin-top: calc(-1 * var(--space-32)); }

@media (max-width: 1023px) {
  .eg-stack { gap: var(--space-64); }
  .eg-block { flex-direction: column; gap: var(--space-24); }
  .eg-block__side { flex: none; padding-top: var(--space-16); }
  .eg-block__body { border-top: none; }
  .eg-h1 { font-size: 34px; }
  .eg-values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-32); }
  .eg-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eg-principle { border-right: none; }
  .eg-principle:nth-child(odd) { border-right: 1px solid #cacfe3; }
  .eg-principle:nth-child(n+3) { border-top: 1px solid #cacfe3; }
  .eg-spark { margin-top: var(--space-64); }
  .eg-msg__row { flex-direction: column; }
  .eg-msg__sub { flex: none; width: 100%; max-width: 497px; }

  .eg-phil-diagram { width: 375px; height: 708px; }
  .eg-phil-diagram::before,
  .eg-phil-diagram::after {
    width: 304px; height: 304px;
    border-width: 6px;
    left: 50%; right: auto; transform: translateX(-50%);
  }
  .eg-phil-diagram::before { top: 0; }
  .eg-phil-diagram::after { top: auto; bottom: 0; }
  .eg-phil-center {
    width: 200px; height: 200px;
    top: 254px; transform: translateX(-50%);
    gap: var(--space-16);
  }
  .eg-phil-center__label { font-size: 12px; }
  .eg-phil-center__text { font-size: 17px; }
  .eg-phil-school {
    width: 240px; top: auto;
    left: 50%; right: auto; transform: translateX(-50%);
    gap: var(--space-16);
  }
  .eg-phil-school--kinoshita { top: 89px; }
  .eg-phil-school--tokyo { top: 509px; }
  .eg-phil-school__logo { width: 235px; }
  .eg-phil-school__desc { font-size: 12px; }
}

@media (max-width: 767px) {
  .eg { padding: var(--section-y-sp) 0; }
  .eg-stack { gap: var(--space-48); }

  .eg-block__side { border-top: none; padding-top: 0; }
  .eg-block__body { border-top: none; border-bottom: none; }
  .eg-head { gap: var(--space-24); }
  .eg-h1 { font-size: 24px; }
  .eg-lead { font-size: 15px; }
  .eg-block__side-en { font-size: 28px; }
  .eg-block__body { padding: var(--space-24) 0 var(--space-32); gap: var(--space-24); }
  .eg-mission { font-size: 18px; }
  .eg-vision { font-size: 22px; }
  .eg-values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); row-gap: var(--space-24); }
  .eg-value__letter { font-size: 44px; }
  .eg-value__jp { font-size: 13px; }
  .eg-principles { grid-template-columns: 1fr; }
  .eg-principle { padding: var(--space-20) var(--space-16); border-right: none; }
  .eg-principle:nth-child(odd) { border-right: none; }
  .eg-principle:nth-child(n+2) { border-top: 1px solid #cacfe3; }
  .eg-stmt__title { font-size: 24px; }
  .eg-msg__name { font-size: 20px; }
  .eg-spark { gap: var(--space-24); }
  .eg-spark__title { font-size: 26px; }
  .eg-spark__lead { font-size: 16px; margin-top: 0; }
  .eg-spark__text { font-size: 14px; }
  .eg-spark__lead + .eg-spark__text { margin-top: 0; }
}
