/* ==============================
  Hero
============================== */

/* 初期表示制御 */
.diverse-hero-sp {
  display: none;
}

/* ==============================
  Hero - PC
============================== */

.diverse-hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background-color: #f7fbff;
  background-image: url("../images/diverse-hero.png");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

.diverse-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  min-height: 660px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 56px 76px;
}

.diverse-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.diverse-hero__label {
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 7px;
  border-bottom: 3px solid #9dc7e8;
  color: #12345a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.diverse-hero__title {
  margin: 0;
  color: #0f2f57;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.38;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.diverse-hero__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  max-width: 560px;
}

.diverse-hero__point {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 14px 12px;
  border: 1px solid rgba(18, 52, 90, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(18, 52, 90, 0.08);
  color: #12345a;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
  text-align: center;
}

.diverse-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  min-width: 360px;
  padding: 19px 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a1a, #ff9b2f);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(255, 122, 26, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.diverse-hero__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 122, 26, 0.32);
}

.diverse-hero__visual {
  display: none;
}

/* ==============================
  Hero - SP
============================== */

@media (max-width: 767px) {
  .diverse-hero--pc {
    display: none;
  }

  .diverse-hero-sp {
    display: block;
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #f6f9fc;
  }

  .diverse-hero-sp__inner {
    position: relative;
    min-height: 0;
    height: auto;
    padding: 24px 22px 22px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .diverse-hero-sp__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #f6f9fc;
    pointer-events: none;
  }

  .diverse-hero-sp__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../images/diverse-hero-sp.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 62% -170px;
    opacity: 1;
    filter: brightness(0.96) contrast(1.14) saturate(1.06);
  }

  .diverse-hero-sp__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(
        90deg,
        rgba(246, 249, 252, 0.99) 0%,
        rgba(246, 249, 252, 0.96) 36%,
        rgba(246, 249, 252, 0.58) 47%,
        rgba(246, 249, 252, 0.14) 56%,
        rgba(246, 249, 252, 0.02) 63%,
        rgba(246, 249, 252, 0) 70%,
        rgba(246, 249, 252, 0) 100%
      ),
      linear-gradient(
        180deg,
        rgba(246, 249, 252, 0) 0%,
        rgba(246, 249, 252, 0) 72%,
        rgba(246, 249, 252, 0.12) 88%,
        rgba(246, 249, 252, 0.68) 100%
      );
    pointer-events: none;
  }

  .diverse-hero-sp__copy {
    position: relative;
    z-index: 2;
  }

  .diverse-hero-sp__label {
    display: inline-block;
    margin: 0 0 14px;
    padding-bottom: 7px;
    border-bottom: 3px solid #5fa5df;
    color: #0b2d55;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.03em;
  }

  .diverse-hero-sp__title {
    margin: 0;
    color: #0b2d55;
    font-size: clamp(39px, 10.8vw, 49px);
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: 0.01em;
  }

  .diverse-hero-sp__title span {
    color: #4a95dc;
  }

  .diverse-hero-sp__points {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: clamp(170px, 46vw, 215px);
    padding-bottom: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .diverse-hero-sp__points::-webkit-scrollbar {
    display: none;
  }

  .diverse-hero-sp__point {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 10px 4px;
    border: 1px solid rgba(11, 45, 85, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(11, 45, 85, 0.09);
    color: #0b2d55;
    font-size: clamp(10px, 2.7vw, 11.5px);
    font-weight: 850;
    line-height: 1.5;
    text-align: center;
    box-sizing: border-box;
    scroll-snap-align: unset;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .diverse-hero-sp__point-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #eef6ff;
  }

  .diverse-hero-sp__point-icon i {
    font-size: 17px;
    color: #2f78bd;
  }

  .diverse-hero-sp__button {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 13px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7517 0%, #ffa12a 100%);
    color: #fff;
    font-size: clamp(15.5px, 4vw, 17px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(255, 117, 23, 0.22);
    box-sizing: border-box;
  }
}

/* ==============================
  Hero - Small SP
============================== */

@media (max-width: 374px) {
  .diverse-hero-sp__inner {
    padding: 22px 18px 20px;
  }

  .diverse-hero-sp__visual::after {
    background-position: 64% -54px;
  }

  .diverse-hero-sp__label {
    margin-bottom: 13px;
    font-size: 12.5px;
  }

  .diverse-hero-sp__title {
    font-size: 37px;
    line-height: 1.06;
  }

  .diverse-hero-sp__points {
    gap: 7px;
    margin-top: 158px;
  }

  .diverse-hero-sp__point {
    min-height: 88px;
    padding: 9px 3px;
    border-radius: 14px;
    font-size: 9.8px;
    line-height: 1.5;
  }

  .diverse-hero-sp__point-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .diverse-hero-sp__point-icon i {
    font-size: 16px;
  }

  .diverse-hero-sp__button {
    min-height: 49px;
    margin-top: 12px;
    font-size: 15px;
  }
}

/* ==============================
  Logo Slider
============================== */

.diverse-logo-marquee {
  position: relative;
  z-index: 5;
  display: block;
  margin-top: -32px !important;
  margin-bottom: 0 !important;
  margin-block-end: 0 !important;
  padding: 16px 0 !important;
  overflow: hidden;
  background: #fff;
}

.diverse-logo-marquee__inner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.diverse-logo-marquee__label {
  display: none;
}

.diverse-logo-marquee__viewport {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.diverse-logo-marquee__list {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-shrink: 0;
  min-width: max-content;
  margin: 0;
  padding: 0 34px 0 0;
  list-style: none;
  animation: diverse-logo-scroll 45s linear infinite;
}

.diverse-logo-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 46px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  line-height: 0;
}

.diverse-logo-marquee__item img {
  display: block;
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.diverse-logo-marquee__viewport:hover .diverse-logo-marquee__list {
  animation-play-state: paused;
}

@keyframes diverse-logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ==============================
  Logo Slider - SP
============================== */

@media screen and (max-width: 767px) {
  .diverse-logo-marquee {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-block-end: 0 !important;
    padding: 16px 0 !important;
  }

  .diverse-logo-marquee__list {
    gap: 24px;
    padding-right: 24px;
    animation-duration: 28s;
  }

  .diverse-logo-marquee__item {
    width: 118px;
    height: 40px;
  }

  .diverse-logo-marquee__item img {
    max-height: 30px;
  }
}

/* ==============================
  SWELL Spacing Overrides
============================== */

/* ヒーロー直後にSWELLブロックが来る場合の余白調整 */
.diverse-hero + .swell-block-fullWide,
.diverse-hero-sp + .swell-block-fullWide {
  margin-top: 0 !important;
}

/* SWELL標準のブロック下marginをFV周辺だけ消す */
.post_content section.diverse-logo-marquee.alignfull,
.post_content > section.diverse-hero.alignfull,
.post_content > section.diverse-hero-sp.alignfull,
.post_content > section.diverse-logo-marquee.alignfull,
.post_content > .diverse-hero,
.post_content > .diverse-hero-sp,
.post_content > .diverse-logo-marquee,
section.diverse-logo-marquee.alignfull {
  margin-bottom: 0 !important;
  margin-block-end: 0 !important;
}

/* ==============================
  Accessibility
============================== */

@media (prefers-reduced-motion: reduce) {
  .diverse-logo-marquee__list {
    animation: none;
  }

  .diverse-logo-marquee__viewport {
    overflow-x: auto;
  }
}