.home-hero {
  padding: 28px 0 0;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 50%, #fdf2f8 100%);
  overflow: hidden;
}

.home-hero__inner {
  width: min(1360px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(390px, .82fr) minmax(620px, 1.18fr);
  grid-template-areas: "copy visual";
  gap: 18px;
  align-items: center;
  margin-inline: auto;
}

.home-hero__copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  padding: 30px 0 38px;
}

.home-hero__visual {
  grid-area: visual;
  align-self: end;
  justify-self: end;
  width: min(100%, 820px);
  margin-right: -18px;
}

.home-hero__visual img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 22px 26px rgba(30, 64, 175, .13));
  transform: scale(1.08);
  transform-origin: center bottom;
}

.home-hero h1 {
  margin: 0 0 20px;
  color: var(--hero-title-blue);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", "Noto Serif JP", serif;
  font-size: clamp(2.35rem, 3.55vw, 3.55rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: default;
}

.home-hero h1 span {
  display: block;
  white-space: nowrap;
}

.home-hero__lead {
  max-width: 620px;
  margin: 0;
  color: #445066;
  font-size: 1.08rem;
  font-weight: 600;
}

.home-hero__lead a {
  margin-left: .45em;
  color: #3157c8;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.home-hero__cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 26px;
}

.home-hero__action {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: .9rem 1.05rem;
  border: 1px solid #bcd0ff;
  border-radius: 22px;
}

.home-hero__action span {
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1.15;
}

.home-hero__action small {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
}

.home-hero__action--primary {
  background: var(--ldla-blue);
  color: #fff;
  box-shadow: 0 18px 32px rgba(37, 99, 235, .24);
}

.home-hero__action--primary:hover {
  background: var(--ldla-blue-dark);
  color: #fff;
}

.home-hero__action--secondary {
  background: #fff;
  color: var(--ldla-blue);
}

.home-hero__action--secondary small {
  color: #46556e;
}

/* Home: IT Passport Shorts banner */
.home-shorts-banner {
  margin-top: 28px;
}

.home-shorts-banner__link {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 38, 70, .10);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-shorts-banner__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 38, 70, .14);
}

.home-shorts-banner__link:focus-visible {
  outline: 3px solid var(--ldla-blue);
  outline-offset: 4px;
}

.home-shorts-banner__picture {
  display: block;
  aspect-ratio: 4 / 1;
}

.home-shorts-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-shorts-banner + .home-news {
  margin-top: 32px;
}

.home-news-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ldla-border);
  border-radius: 18px;
  box-shadow: var(--ldla-shadow);
}

.home-news-item {
  display: grid;
  grid-template-columns: 112px 136px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ldla-border);
}

.home-news-item:last-child {
  border-bottom: 0;
}

.home-news-item time {
  color: var(--ldla-muted);
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-news-item__type {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: var(--ldla-soft);
  color: var(--ldla-blue-dark);
  font-size: .78rem;
  min-width: 128px;
  font-weight: 800;
  padding: .15rem .65rem;
  white-space: nowrap;
}

.home-news-item__title {
  min-width: 0;
  font-weight: 400;
  line-height: 1.65;
}

.home-news-item:hover .home-news-item__title {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.home-news__all-bottom {
  display: none;
}

.home-tabs {
  margin-top: 56px;
}

.home-tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.home-tab-button {
  border: 1px solid var(--ldla-border);
  background: #fff;
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.home-tab-button.is-active {
  background: var(--ldla-blue);
  color: #fff;
}

.home-tab-panel {
  display: none;
}

.home-tab-panel.is-active {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.home-lecturer-mini {
  padding: 12px;
}

.home-lecturer-mini img {
  border-radius: 16px;
  aspect-ratio: 720 / 1280;
  object-fit: cover;
}

.home-lecturer-mini h3 {
  margin: .7rem 0 .2rem;
  font-size: 1rem;
}

@media (max-width: 1023px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "visual" "copy";
    gap: 8px;
  }

  .home-hero__visual {
    max-width: 760px;
    margin-inline: auto;
  }

  .home-hero__visual img {
    transform: none;
  }

  .home-hero__copy {
    padding: 8px 0 12px;
  }

  .home-tab-panel.is-active {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .home-shorts-banner {
    margin-top: 18px;
  }

  .home-shorts-banner__link {
    border-radius: 16px;
  }

  .home-shorts-banner__picture {
    aspect-ratio: 15 / 8;
  }

  .home-shorts-banner + .home-news {
    margin-top: 28px;
  }

  .home-hero {
    padding: 8px 0 10px;
  }

  .home-hero__inner {
    width: min(100% - 24px, 1120px);
  }

  .home-hero__visual {
    width: 100%;
    max-width: 100%;
  }

  .home-hero__visual img {
    max-height: 34vh;
    object-fit: contain;
    margin-inline: auto;
  }

  .home-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 7.6vw, 2.45rem);
    line-height: 1.14;
  }

  .home-hero__lead {
    font-size: .92rem;
    line-height: 1.55;
  }

  .home-hero__cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .home-hero__action {
    min-height: 74px;
    border-radius: 18px;
    padding: .72rem .75rem;
  }

  .home-hero__action span {
    font-size: 1.1rem;
  }

  .home-hero__action small {
    font-size: .72rem;
    line-height: 1.35;
  }

  .home-news__all-top {
    display: none;
  }

  .home-news-item {
    grid-template-columns: 112px minmax(0, 1fr);
    justify-content: stretch;
    gap: 5px 10px;
    padding: 12px 14px;
  }

  .home-news-item__type {
    justify-self: start;
  }

  .home-news-item__title {
    grid-column: 1 / -1;
  }

  .home-news__all-bottom {
    display: flex;
    justify-content: center;
    padding: 13px 14px;
    background: #f8fbff;
    color: var(--ldla-blue);
    font-weight: 800;
  }

  .home-tab-panel.is-active {
    grid-template-columns: repeat(2, 1fr);
  }
}
