* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.site-header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 98px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 4.2% 10px 2.1%;
}

.site-header__wave {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: rgba(255, 253, 255, 0.94);
}

.site-header__brand {
  display: block;
  width: 155px;
  height: 76px;
  flex: 0 0 155px;
}

.site-header__brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding-top: 13px;
}

.site-nav__link {
  position: relative;
  color: #a77af6;
  font-size: clamp(14px, 1.45vw, 20px);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: #b88bf9;
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav__link:focus-visible::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover::after {
    transform: scaleX(1);
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ad80f6;
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
}

.social-links__item {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #ad80f6;
  color: white;
}

.social-links__item svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.first-view {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  padding: 100px 6vw 50px;
  overflow: hidden;
  background: url("../assets/image/fv_bg.png") right center / cover no-repeat;
}

.first-view__content {
  position: relative;
  width: min(48vw, 620px);
  margin: 0;
  text-align: left;
}

.first-view__logo {
  display: block;
  width: min(88%, 600px);
  height: auto;
  margin: 0 auto 0 0;
}

.first-view__tagline {
  margin: -14px 0 3px;
  color: #a876ee;
  font-size: clamp(24px, 3vw, 42px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
}

.first-view__subtitle {
  margin: 0;
  color: #a876ee;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  bottom: 15px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #a876ee;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateX(-50%);
}

.scroll-cue__mouse {
  position: relative;
  width: 28px;
  height: 45px;
  margin-top: 5px;
  border: 3px solid currentColor;
  border-radius: 16px;
}

.scroll-cue__mouse::before {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.scroll-cue__arrows {
  margin-top: -3px;
  font-size: 24px;
  line-height: 10px;
}

.story-section {
  padding: 32px 24px;
  background: #f0f8ff;
}

.story-card {
  width: min(100%, 1100px);
  min-height: 340px;
  margin: 0 auto;
  padding: 28px 32px 24px;
  border: 1px solid #d9c8ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: #665c83;
  text-align: center;
}

.story-card__eyebrow {
  margin: 0 0 10px;
  color: #a876ee;
  font-size: 14px;
  font-weight: 500;
}

.story-card__title {
  margin: 0;
  color: #6489cb;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
}

.story-card__body {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #e6e0f2;
  font-size: 16px;
  line-height: 1.9;
}

.story-card__body p {
  margin: 0 0 10px;
}

.story-card__decoration {
  margin: 10px 0 0;
  color: #a876ee;
  font-size: 20px;
  letter-spacing: 0.15em;
}

.sumy-intro-card {
  display: flex;
  width: min(100%, 1100px);
  min-height: 320px;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 80px);
  margin: 32px auto 0;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid #d9c8ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.sumy-intro-card__text {
  flex: 1 1 0;
}

.sumy-intro-card__eyebrow {
  margin: 0 0 10px;
  color: #a876ee;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.sumy-intro-card__title {
  margin: 0 0 20px;
  color: #6489cb;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
}

.sumy-intro-card__message {
  max-width: 620px;
  margin: 0;
  color: #665c83;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
}

.sumy-intro-card__image {
  display: block;
  width: clamp(200px, 28vw, 320px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.unit-intro-card {
  display: flex;
  width: min(100%, 1100px);
  min-height: 360px;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  margin: 32px auto 0;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid #d9c8ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.unit-intro-card__image {
  display: block;
  width: clamp(220px, 32vw, 360px);
  height: auto;
  flex: 0 0 auto;
  border-radius: 12px;
}

.unit-intro-card__text {
  flex: 1 1 0;
}

.unit-intro-card__eyebrow {
  margin: 0 0 10px;
  color: #a876ee;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.unit-intro-card__title {
  margin: 0 0 20px;
  color: #6489cb;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
}

.unit-intro-card__message {
  color: #665c83;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.9;
}

.unit-intro-card__message p {
  margin: 0 0 12px;
}

.unit-intro-card__message p:last-child {
  margin-bottom: 0;
}

.unit-intro-card__name {
  margin-top: 18px !important;
  color: #8050d4;
  font-weight: 700;
}

.unit-intro-card__link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 28px;
  border: 1px solid #a876ee;
  border-radius: 999px;
  background: #a876ee;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.unit-intro-card__link:hover,
.unit-intro-card__link:focus-visible {
  background: white;
  color: #8b5bd8;
  transform: translateY(-2px);
}

.contact-card {
  width: min(100%, 1100px);
  margin: 32px auto 0;
  padding: clamp(28px, 5vw, 56px) 24px;
  border: 1px solid #d9c8ff;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #665c83;
  text-align: center;
}

.contact-card__eyebrow {
  margin: 0 0 10px;
  color: #a876ee;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.contact-card__title {
  margin: 0 0 18px;
  color: #6489cb;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
}

.contact-card__message {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.9;
}

.contact-card__status {
  display: inline-block;
  margin: 22px 0 0;
  padding: 8px 18px;
  border: 1px solid #d9c8ff;
  border-radius: 999px;
  background: #f8f4ff;
  color: #8c70bd;
  font-size: 14px;
  text-decoration: none;
}

.contact-card__status:hover,
.contact-card__status:focus-visible {
  background: #efe5ff;
}

.site-footer {
  position: relative;
  display: flex;
  min-height: 941px;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 70px;
  background-color: #e8defc;
  background-image: url("../assets/image/footer_bg.png");
  background-position: center top;
  background-size: 1920px 941px;
  background-repeat: no-repeat;
  color: #a876ee;
  text-align: center;
}

.site-footer__wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  fill: #f0f8ff;
  pointer-events: none;
}

.site-footer__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 760px);
  flex-direction: column;
  align-items: center;
}

.site-footer__brand {
  display: block;
  width: min(340px, 66vw);
}

.site-footer__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.footer-social-links .social-links__item {
  background: #ad80f6;
}

.footer-social-links .social-links__item svg {
  width: 17px;
  height: 17px;
}

.site-footer__copyright {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    height: 100px;
    align-items: center;
    padding: 8px 5% 8px 2.5%;
  }

  .site-header__brand {
    width: 145px;
    height: 72px;
    flex-basis: 145px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 82px;
    right: 5%;
    left: 5%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 100px);
    padding: 10px 20px;
    overflow-y: auto;
    border: 1px solid rgba(173, 128, 246, 0.15);
    border-radius: 16px;
    background: rgba(255, 253, 255, 0.98);
    box-shadow: 0 12px 30px rgba(83, 47, 137, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    padding: 12px 0;
    font-size: 17px;
  }

  .site-nav__link::after {
    bottom: 6px;
    transform-origin: left;
  }

  .menu-toggle {
    display: flex;
    order: 3;
    margin-left: 12px;
  }

  .social-links {
    gap: 7px;
    margin-left: auto;
    padding-top: 0;
  }

  .social-links__item {
    width: 27px;
    height: 27px;
  }

  .first-view {
    min-height: 100svh;
    align-items: flex-start;
    padding: 120px 6vw 75px;
  }

  .first-view__content {
    width: min(85vw, 470px);
    margin-top: 12vh;
    transform: none;
  }

  .first-view__logo {
    width: 100%;
    margin: 0 auto;
  }

  .first-view__tagline {
    margin-top: -8px;
    font-size: clamp(24px, 7vw, 34px);
  }

  .first-view__subtitle {
    font-size: 14px;
  }

  .scroll-cue {
    bottom: 8px;
  }
}

@media (max-width: 360px) {
  .site-header__brand {
    width: 118px;
    height: 60px;
    flex-basis: 118px;
  }

  .social-links {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .story-section {
    padding: 24px 16px;
  }

  .story-card {
    min-height: 0;
    padding: 24px 18px 20px;
  }

  .story-card__body {
    font-size: 15px;
    text-align: left;
  }

  .story-card__desktop-break {
    display: none;
  }

  .sumy-intro-card {
    min-height: 0;
    flex-direction: column;
    gap: 24px;
    padding: 28px 22px;
    text-align: center;
  }

  .sumy-intro-card__image {
    width: min(64vw, 260px);
  }

  .unit-intro-card {
    min-height: 0;
    flex-direction: column;
    gap: 24px;
    padding: 28px 22px;
  }

  .unit-intro-card__image {
    width: min(72vw, 300px);
  }

  .site-footer {
    padding: 80px 18px 60px;
  }
}

@media (max-width: 980px) {
  .first-view {
    align-items: flex-end;
    justify-content: center;
    padding: 110px 6vw 90px;
    background: none;
  }

  .first-view::before {
    position: absolute;
    inset: 0 -120px 0 0;
    background: url("../assets/image/fv_bg.png") right center / cover no-repeat;
    content: "";
  }

  .first-view__content,
  .scroll-cue {
    z-index: 1;
  }

  .first-view__content {
    width: min(85vw, 620px);
    margin: 0;
    text-align: center;
    transform: none;
  }

  .first-view__logo {
    width: 88%;
    margin: 0 auto;
  }
}
