@import url("/assets/book-editorial-update-20260901.css?v=20260901-4");

.school-project-section {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(380px, 1.06fr) minmax(340px, 0.94fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  min-height: 760px;
  padding: 105px max(7vw, 30px);
  background:
    radial-gradient(circle at 87% 18%, rgba(246, 211, 104, 0.3), transparent 24%),
    linear-gradient(118deg, #fffaf0 0 58%, #f4eef8 58% 100%);
}

.school-project-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 47% 0 0;
  opacity: 0.42;
  pointer-events: none;
  background: repeating-linear-gradient(
    transparent 0 35px,
    rgba(116, 182, 186, 0.2) 36px,
    transparent 37px
  );
}

.school-project-visual {
  position: relative;
  width: min(720px, 100%);
  min-height: 540px;
}

.school-project-visual::before {
  content: "";
  position: absolute;
  inset: 4% 4% -3% -3%;
  background: #dcd1e8;
  border-radius: 8px;
  transform: rotate(-3deg);
  box-shadow: 0 24px 55px rgba(66, 53, 77, 0.19);
}

.school-project-visual::after {
  content: "✦";
  position: absolute;
  z-index: 3;
  right: -19px;
  bottom: -26px;
  width: 82px;
  height: 82px;
  color: #5b315f;
  background: #f6d368;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  transform: rotate(9deg);
  box-shadow: 7px 8px 0 rgba(239, 130, 124, 0.48);
}

.school-project-visual img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 12px 12px 48px;
  background: #fffdf8;
  border-radius: 6px;
  transform: rotate(1.4deg);
  box-shadow: 0 28px 60px rgba(66, 53, 77, 0.2);
}

.school-project-copy {
  position: relative;
  max-width: 610px;
}

.school-project-copy::before {
  content: "";
  display: block;
  width: 118px;
  height: 13px;
  margin-bottom: 24px;
  border-bottom: 3px solid #ef827c;
  border-radius: 50%;
  transform: rotate(-2deg);
}

.school-project-copy h2 {
  color: #5b315f;
  margin: 0;
  font-family: "Hello Goodbye", cursive;
  font-size: clamp(55px, 5.4vw, 84px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
}

.school-project-copy p {
  color: #675c6b;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

.school-project-copy .school-book-name {
  color: #5b315f;
  font-family: "Hello Goodbye", cursive;
  font-size: 1.18em;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
}

.school-project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 17px 22px 15px;
  color: #fff;
  background: #5b315f;
  border-radius: 3px;
  box-shadow: 7px 7px 0 #f8c9d0;
  font-size: 17px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.school-project-link:hover,
.school-project-link:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 9px 11px 0 #f8c9d0;
}

@media (max-width: 980px) {
  .school-project-section {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 94px;
    padding-bottom: 100px;
  }

  .school-project-copy {
    order: 1;
    max-width: 760px;
    margin: 0 auto;
  }

  .school-project-visual {
    order: 2;
    width: min(720px, 94%);
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .school-project-section {
    gap: 54px;
    min-height: 0;
    padding: 78px max(26px, calc(env(safe-area-inset-left) + 18px)) 88px;
  }

  .school-project-copy::before {
    margin-bottom: 18px;
  }

  .school-project-copy h2 {
    font-size: clamp(50px, 14vw, 64px);
  }

  .school-project-copy p {
    font-size: 17px;
    line-height: 1.6;
  }

  .school-project-link {
    width: 100%;
    margin-top: 24px;
  }

  .school-project-visual {
    width: 100%;
    min-height: 370px;
  }

  .school-project-visual img {
    padding: 8px 8px 34px;
  }

  .school-project-visual::after {
    right: -10px;
    bottom: -20px;
    width: 62px;
    height: 62px;
    font-size: 31px;
  }
}
