.sp-only {
  display: none;
}

.site-shell:has(.hero-banners) main {
  overflow-x: clip;
}

.kv {
  overflow: hidden;
  background-color: #004dff;
  background-image: linear-gradient(
    90deg,
    #19c8ee 0%,
    #19c8ee calc(50% - 960px),
    #004dff calc(50% + 960px),
    #004dff 100%
  );
}

.kv__img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  vertical-align: top;
}

@media (min-width: 1200px) {
  .kv {
    display: flex;
    justify-content: center;
  }

  .kv__img {
    width: 1920px;
    max-width: none;
    flex-shrink: 0;
  }
}

.top-upper {
  padding-top: 80px;
}

.program-intro {
  margin-bottom: 80px;
}

.program-intro__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.program-intro__label {
  margin-bottom: 12px;
  color: #0051c4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.program-intro__item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

a.program-intro__item:hover {
  opacity: 0.7;
}

.program-intro__thumb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 129px;
}

.program-intro__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-intro__body {
  flex: 1 1 auto;
  min-width: 0;
}

.program-intro__row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #999999;
}

.program-intro__text {
  color: #222222;
  font-size: 16px;
  font-weight: 500;
  font-feature-settings: "pwid" 1;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.program-intro__row .program-intro__text {
  flex: 1 1 0;
  min-width: 0;
}

.program-intro__arrow {
  display: block;
  flex-shrink: 0;
  width: 25px;
  height: 20px;
  max-width: none;
}

.program-intro__body--links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #999999;
}

.program-intro__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-intro__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0051c4;
  font-size: 14px;
  font-weight: 500;
  font-feature-settings: "pwid" 1;
  line-height: 1.8;
}

.program-intro__link:hover {
  opacity: 0.7;
}

.program-intro__link-arrow {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 14px;
  max-width: none;
}

.hero-banners {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.hero-banners__stage {
  position: relative;
}

.hero-banners__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.hero-banner {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  border: 4px solid #006aff;
  border-radius: 32px;
}

.hero-banner picture {
  display: block;
}

.hero-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 580 / 435;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-banner:hover img {
  transform: scale(1.06);
}

.hero-banners__charas {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -24px;
  pointer-events: none;
}

.hero-banners__chara {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

.hero-banners__chara--left {
  width: 102px;
  height: 150px;
  background-image: url("/30thanniversary/common/img/top/scappy-banner-left.svg");
}

.hero-banners__chara--right {
  width: 142px;
  height: 125px;
  background-image: url("/30thanniversary/common/img/top/scappy-banner-right.svg");
}

.news-preview-section {
  position: relative;
  z-index: 0;
  margin-top: -46px;
  background: var(--color-bg-soft);
  border-radius: 240px;
}

.news-preview {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 120px 0 60px;
}

.news-preview__heading {
  flex-shrink: 0;
  background-image: linear-gradient(200.56deg, #006aff 50%, #0051c4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.news-preview__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
  max-width: 960px;
}

.news-preview .news-list__item:last-child {
  padding-bottom: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid #999999;
}

.news-preview .news-empty {
  text-align: left;
}

.news-preview__more {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 44px;
  color: #222222;
  font-size: 16px;
  font-weight: 700;
  font-feature-settings: "pwid" 1;
  line-height: 1.8;
}

.news-preview__more:hover {
  opacity: 0.7;
}

.top-lower {
  margin-top: 80px;
  border-radius: 240px 240px 0 0;
  background:
    linear-gradient(182.22deg, rgba(0, 106, 255, 0.8) 1.51%, rgba(75, 201, 212, 0.8) 98.49%),
    #006aff;
}

.top-projects {
  position: relative;
  padding: 80px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.section-heading--light h2 {
  color: #ffffff;
}

.section-heading--gradient h2 {
  background-image: linear-gradient(196.75deg, #006aff 0%, #0051c4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.section-heading__icon {
  display: block;
  flex-shrink: 0;
  width: 100px;
  height: auto;
}

.section-heading__icon--mail {
  width: 80px;
}

.top-projects .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
}

.top-projects__intro {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
}

.project-lead {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}

.project-list {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.project-card {
  display: flex;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 32px;
  background: #ffffff;
}

.project-card__thumb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #999999;
  border-radius: 16px;
  background: #ffffff;
}

.project-card__thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-card__thumb img {
  transform: scale(1.08);
}

.project-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.project-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.project-card__title {
  width: 100%;
  color: var(--color-brand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.project-card__text {
  width: 100%;
  color: #222222;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.u-text-red {
  color: #ff0000;
}

.icon-pill {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 40px;
  overflow: visible;
  border: 2px solid var(--color-brand-bright);
  border-radius: 20px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.icon-pill::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: 20px;
  background: linear-gradient(189deg, #006aff 12.207%, #0051c4 87.793%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.icon-pill__arrows {
  position: relative;
  z-index: 1;
  display: block;
  width: 25px;
  height: 20px;
  overflow: visible;
}

.icon-pill__arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 20px;
  background-color: var(--color-brand);
  mask: url("/30thanniversary/common/img/icon-arrow.svg") center / 25px 20px no-repeat;
  -webkit-mask: url("/30thanniversary/common/img/icon-arrow.svg") center / 25px 20px no-repeat;
}

.icon-pill__arrow:first-child {
  transform: translateX(0);
  opacity: 1;
  transition: opacity 0.35s ease, background-color 0.2s ease, transform 0s linear;
}

.icon-pill__arrow:last-child {
  transform: translateX(-24px);
  opacity: 0;
  transition: opacity 0.35s ease, background-color 0.2s ease, transform 0s linear 0.35s;
}

.project-card:hover,
.message-banner:hover {
  opacity: 1;
}

.project-card:hover .icon-pill,
.message-banner:hover .icon-pill {
  border-color: transparent;
}

.project-card:hover .icon-pill::before,
.message-banner:hover .icon-pill::before {
  opacity: 1;
}

.project-card:hover .icon-pill__arrow,
.message-banner:hover .icon-pill__arrow {
  background-color: #ffffff;
}

.project-card:hover .icon-pill__arrow:first-child,
.message-banner:hover .icon-pill__arrow:first-child {
  transform: translateX(24px);
  opacity: 0;
  transition: background-color 0s, transform 0.2s ease-in, opacity 0.2s ease-in;
}

.project-card:hover .icon-pill__arrow:last-child,
.message-banner:hover .icon-pill__arrow:last-child {
  transform: translateX(0);
  opacity: 1;
  transition: background-color 0s, transform 0.2s ease-out 0.2s, opacity 0.2s ease-out 0.2s;
}

.top-projects__chara {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  width: 148px;
  height: 150px;
  max-width: none;
  margin-bottom: 0;
  pointer-events: none;
  align-self: end;
  justify-self: end;
}

.top-message {
  padding: 80px 0;
  border-radius: 240px 240px 0 0;
}

.top-message__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-message .section-heading {
  margin-bottom: 48px;
}

.message-banner-wrap {
  position: relative;
  width: min(100%, 900px);
}

.message-banner {
  position: relative;
  z-index: 1;
  display: block;
}


.message-banner__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 450px;
  padding: 47px 24px 24px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.message-banner__visual picture,
.message-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.message-banner__bg {
  object-fit: cover;
}

.message-banner__logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 660px);
  height: 196px;
  border-radius: 24px;
  background: #ffffff;
}

.message-banner__logo img {
  width: min(100%, 435px);
  height: auto;
}

.message-banner__catch {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: #ffffff;
  font-family: "Tsukushi A Round Gothic", "FOT-TsukuARdGothic Std", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.message-banner__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border: 2px solid #0099ff;
  border-top: 0;
  border-radius: 0 0 24px 24px;
  background: #ffffff;
  color: var(--color-brand);
  font-family: "Tsukushi A Round Gothic", "FOT-TsukuARdGothic Std", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.message-banner__chara {
  position: absolute;
  top: -60px;
  left: -70px;
  z-index: 2;
  width: 158px;
  height: 150px;
  max-width: none;
  pointer-events: none;
}

@media (max-width: 1439px) {
  .hero-banners__chara--left {
    width: 88px;
    height: 130px;
  }

  .hero-banners__chara--right {
    width: 120px;
    height: 105px;
  }

}

@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }


  .top-upper {
    padding-top: 80px;
  }

  .program-intro {
    margin-bottom: 80px;
  }

  .program-intro__list {
    gap: 40px;
  }

  .program-intro__item,
  .program-intro__item--split {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .program-intro__thumb {
    align-self: center;
    width: 200px;
    height: 112px;
  }

  .program-intro__body {
    width: 100%;
    min-width: 0;
  }

  .program-intro__text {
    font-size: 14px;
    word-break: break-all;
  }

  .hero-banners {
    margin-bottom: 0;
  }

  .hero-banners__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-banner {
    border-width: 2px;
    border-radius: 16px;
  }

  .hero-banner img {
    aspect-ratio: 686 / 386;
  }

  .hero-banners__charas {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 72px;
    margin-top: -8px;
    padding: 0;
  }

  .hero-banners__chara--left {
    position: absolute;
    left: 0;
    bottom: -35px;
    width: 80px;
  }

  .hero-banners__chara--right {
    position: absolute;
    left: auto;
    right: 0;
    bottom: -37px;
    width: 114px;
    margin-left: 0;
  }

  .news-preview-section {
    margin-top: 16px;
    border-radius: 80px;
  }

  .news-preview {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 64px 0;
  }

  .news-preview__heading {
    width: 100%;
    background-image: linear-gradient(188.35deg, #006aff 0%, #0051c4 100%);
    font-size: 32px;
  }

  .news-preview__body {
    max-width: none;
  }

  .top-lower {
    margin-top: 80px;
    border-radius: 80px 80px 0 0;
    background:
      linear-gradient(194.06deg, rgba(0, 106, 255, 0.8) 1.51%, rgba(75, 201, 212, 0.8) 98.49%),
      #006aff;
  }

  .top-projects {
    padding: 80px 0;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .top-projects .section-heading h2 {
    font-size: 32px;
  }

  .section-heading__icon {
    width: 50px;
  }

  .section-heading__icon--mail {
    width: 40px;
  }

  .top-projects__intro {
    margin-bottom: 0;
  }

  .project-lead {
    margin-bottom: 0;
    font-size: 20px;
  }

  .project-list {
    grid-template-columns: 1fr;
    gap: 80px;
    margin-top: 48px;
  }

  .project-card {
    flex-direction: column;
    align-items: center;
    gap: 26px;
    min-height: 537px;
    padding: 40px 40px 16px;
    border-radius: 24px;
  }

  .project-card__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .project-card__body {
    flex: 1 1 auto;
    gap: 16px;
    width: 100%;
  }

  .project-card__copy {
    gap: 16px;
  }

  .project-card .icon-pill {
    margin-top: auto;
    margin-right: -24px;
  }

  .top-projects__chara {
    width: 88px;
    height: 89px;
    max-width: none;
    margin-bottom: -85px;
  }

  .top-message {
    padding: 80px 0;
    border-radius: 80px 80px 0 0;
  }

  .top-message .section-heading {
    margin-bottom: 48px;
  }

  .message-banner-wrap {
    width: 100%;
  }

  .message-banner__visual {
    height: 287px;
    padding: 26px 16px 16px;
  }

  .message-banner__logo {
    width: 100%;
    height: 103px;
    border-radius: 16px;
  }

  .message-banner__logo img {
    width: min(100%, 247px);
  }

  .message-banner__catch {
    font-size: 24px;
  }

  .message-banner__cta {
    justify-content: flex-end;
    padding-right: 8px;
    border-color: #5ad5f3;
    font-size: 18px;
  }

  .message-banner__chara {
    top: -24px;
    left: -8px;
    width: 64px;
    height: auto;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

[data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] .js-scappy {
  opacity: 0;
}

.top-upper:has(.news-preview-section.is-inview) .hero-banners .js-scappy,
.top-lower.is-inview .top-projects__chara,
.top-message.is-inview .js-scappy {
  animation: scappy-bounce 0.8s ease-out 0.3s both;
}

@keyframes scappy-bounce {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.9);
  }

  55% {
    opacity: 1;
    transform: translateY(-12px) scale(1.06);
  }

  75% {
    transform: translateY(5px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-inview {
    opacity: 1;
    transform: none;
    transition: none;
  }

  [data-reveal] .js-scappy,
  .top-upper:has(.news-preview-section.is-inview) .hero-banners .js-scappy,
  .top-lower.is-inview .top-projects__chara,
  .top-message.is-inview .js-scappy {
    opacity: 1;
    animation: none;
  }

  .hero-banner img,
  .project-card__thumb img,
  .icon-pill,
  .icon-pill::before,
  .icon-pill__arrow,
  .icon-pill__arrow:first-child,
  .icon-pill__arrow:last-child {
    transition: none;
  }

  .hero-banner:hover img,
  .project-card:hover .project-card__thumb img {
    transform: none;
  }

  .project-card:hover .icon-pill__arrow:first-child,
  .message-banner:hover .icon-pill__arrow:first-child {
    transform: none;
    opacity: 1;
  }

  .project-card:hover .icon-pill__arrow:last-child,
  .message-banner:hover .icon-pill__arrow:last-child {
    transform: none;
    opacity: 0;
  }
}
