﻿/* top 窶・Figma: top-hero / 譁ｰ縺励＞謖第姶繧・/ scroll / company / cta(蜍滄寔隕・・ */

:root {
  --c-yellow: #ffe600;
  --top-mint: #9fd9c4;
  --top-hero-cream: #f3ecd8;
  --font-en: "Roboto Condensed", sans-serif;
  --font-Arial: Arial, Helvetica, sans-serif;
}

/* ========== top-intro・・ero + challenge 蜈ｱ騾壽棧・・========== */
.top-intro {
  position: relative;
  overflow: visible;
}

/* ========== top-hero・・ample: .mainVisual・・========== */
.top-hero {
  position: relative;
  z-index: 1;
  background: none;
  padding: 0;
  min-height: clamp(520px, 50vw, 680px);
  overflow: visible;
  margin-bottom: 8vw;
}

.top-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--top-hero-cream) 0%, #fff 72%);
}

.top-hero__wrapper {
  position: relative;
  width: 100%;
  min-height: inherit;
  opacity: 0;
}

body.is-hero-loaded .top-hero__wrapper {
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* 陬・｣ｾ繧ｪ繝悶ず繧ｧ繧ｯ繝・*/
.top-hero__object,
.top-hero__shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.top-hero__object img,
.top-hero__shape img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.top-hero__object--shape01 {
  left: 25%;
  top: -10%;
  width: min(28vw, 360px);
}

.top-hero__shape--01 {
  left: -4%;
  top: 12%;
  width: min(16vw, 200px);
}

.top-hero__shape--02 {
  left: 46%;
  top: max(4%, 40px);
  width: min(11vw, 140px);
}

.top-hero__shape--03 {
  right: -1%;
  top: max(12%, 100px);
  width: min(9vw, 120px);
}

.top-hero__shape span {
  display: inline-block;
  animation: top-float 12s ease-in-out infinite;
}

.top-hero__shape--01 span {
  animation-duration: 10s;
}

.top-hero__shape--02 span {
  animation-duration: 8s;
  animation-delay: -3s;
}

.top-hero__shape--03 span {
  animation-duration: 9s;
  animation-delay: -5s;
}

/* 浮遊シェイプ共通キーフレームは common.css の @keyframes top-float を使用 */

/* 繝・く繧ｹ繝・*/
.top-hero__container {
  position: relative;
  z-index: 12;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(100px, 15vw, 160px) 0 120px;
}

.top-hero__block {
  max-width: 540px;
}

.top-hero__title {
  margin: 0;
}

.top-hero__title img {
  width: min(100%, 530px);
  height: auto;
  display: block;
}

/* 莠ｺ迚ｩ・夂ｷ代す繧ｧ繧､繝励ｈ繧願レ髱｢ */
.top-hero__visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 523px;
  max-width: min(523px, 92vw);
  padding-right: 1vw;
  z-index: 9;
  pointer-events: none;
}

.top-hero__visual-img {
  margin: 0;
  position: relative;
  width: 523px;
  max-width: 100%;
  aspect-ratio: 523 / 531;
}

.top-hero__visual-img picture,
.top-hero__visual-img img {
  display: block;
  width: 523px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 523 / 531;
}

/* 大画面では人物が相対的に小さく見えるためサイズを上げる */
@media (min-width: 1400px) {
  .top-hero__visual {
    width: 650px;
    max-width: min(650px, 92vw);
  }

  .top-hero__visual-img,
  .top-hero__visual-img picture,
  .top-hero__visual-img img {
    width: 650px;
  }
}

/* 邱代す繧ｧ繧､繝暦ｼ壻ｺｺ迚ｩ繧医ｊ蜑埼擇縲ゆｸ狗ｫｯ縺ｫ驥阪・縺ｦ繝ｪ繧ｵ繧､繧ｺ譎ゅ↓髫縺・*/
.top-hero__separator {
  position: absolute;
  left: 0;
  top: 101%;
  width: 100%;
  z-index: 10;
  transform: translateY(-34%);
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

.top-hero__separator img {
  width: 100%;
  height: auto;
  display: block;
}

/* 蜈･蝣ｴ繧｢繝九Γ・亥・譛滄撼陦ｨ遉ｺ・・*/
.top-hero__object,
.top-hero__shape,
.top-hero__visual,
.top-hero__block {
  opacity: 0;
}

body.is-hero-started .top-hero__object {
  opacity: 1;
  transition: opacity 0.5s ease;
  transition-delay: 0.25s;
}

body.is-hero-started .top-hero__shape {
  opacity: 1;
  transition: opacity 1s ease;
  transition-delay: 0.85s;
}

body.is-hero-started .top-hero__visual,
body.is-hero-started .top-hero__block {
  opacity: 1;
  transition: opacity 1s ease;
  transition-delay: 1.45s;
}

body.is-hero-started .top-hero__separator {
  animation: top-hero-separator-in 1.1s ease 1.1s both;
}

@keyframes top-hero-separator-in {
  from {
    opacity: 0;
    transform: translateY(-28%);
  }

  to {
    opacity: 1;
    transform: translateY(-34%);
  }
}

/* 譌ｧ繧ｯ繝ｩ繧ｹ莠呈鋤・域悴菴ｿ逕ｨ・・*/
.top-challenge__wave {
  display: none;
}


/* ========== top-section_譁ｰ縺励＞謖第姶繧偵・========== */
.top-challenge {
  position: relative;
  z-index: 2;
  background: none;
  padding: 80px 20px 88px;
  overflow: visible;
  margin-top: -1px;
}

.top-challenge__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  align-items: center;
}

.top-challenge__hex {
  margin: 0 0 12px;
  overflow: visible;
}

.top-challenge__hex picture {
  display: block;
  animation: top-float 10s ease-in-out infinite;
}

.top-challenge__hex img {
  display: block;
}

.top-challenge__copy {
  position: relative;
  padding-bottom: 24px;
  width: 660px;
}

.top-challenge__copy h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.top-challenge__line {
  display: inline-block;
  position: relative;
  width: fit-content;
  padding-bottom: 6px;
  overflow: hidden;
}

.top-challenge__line--sub {
  padding-bottom: 6px;
}

/* 文字：下からフェードイン（overflow:hidden でマスク） */
.top-challenge__line>span {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
}

.top-challenge.is-visible .top-challenge__line>span {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease;
}

.top-challenge.is-visible .top-challenge__line:nth-of-type(1)>span {
  transition-delay: 0.15s;
}

.top-challenge.is-visible .top-challenge__line--sub>span {
  transition-delay: 0.35s;
}

/* 下線：左から右へ */
.top-challenge__line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.top-challenge.is-visible .top-challenge__line::after {
  transform: scaleX(1);
  transition: transform 0.55s ease;
}

.top-challenge.is-visible .top-challenge__line:nth-of-type(1)::after {
  transition-delay: 0.5s;
}

.top-challenge.is-visible .top-challenge__line--sub::after {
  transition-delay: 0.7s;
}

.top-challenge__copy p {
  margin: 0 0 24px;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 2.05;
}

.top-challenge__copy p:last-child {
  margin: 0 0 0;
}

/* マーカーの見た目とアニメーションは common.css の mark 共通スタイルに集約 */

/* 見出し右上のキラキラ（figma: section1_title 準拠） */
.top-challenge__copy h2>picture {
  position: absolute;
  top: -74px;
  left: 6.5em;
  width: 115px;
  height: 100px;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
}

.top-challenge__copy h2>picture img {
  display: block;
  width: 100%;
  height: auto;
}

.top-challenge.is-visible .top-challenge__copy h2>picture {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 1.15s;
}

/* 浮遊シェイプ（サンプル .homeIntro-shape.-shape02 と同位置） */
.top-challenge__shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.top-challenge__shape img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.top-challenge__shape--02 {
  left: 85%;
  top: -30%;
  width: min(8vw, 110px);
}

.top-challenge__shape span {
  display: inline-block;
  animation: top-float 12s ease-in-out infinite;
}

.top-challenge__shape--02 span {
  animation-duration: 8s;
  animation-delay: -3s;
}

.top-challenge__person {
  margin: 0;
  display: block;
  position: absolute;
  top: -25%;
  right: -2%;
}

.top-challenge__person img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========== top-scroll-text・・VG 繧・▲縺上ｊ豬√＠・・========== */
.top-scroll {
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 12px 0;
  margin: -28px 0 -48px;
  position: relative;
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

.top-scroll__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.top-scroll__img {
  display: block;
  height: clamp(56px, 9vw, 140px);
  width: auto;
  max-width: none;
  flex-shrink: 0;
  padding-right: 48px;
}

/* ========== top-section-company ========== */
.top-company {
  position: relative;
  z-index: 1;
  padding: 240px 20px 56px;
  background: #fff;
  background: url("../images/top/section2_bg.svg") left top / 100% no-repeat;
  margin-top: -180px;
}

.top-company:after {
  content: "";
  position: absolute;
  left: -120px;
  top: 80%;
  z-index: 0;
  width: 520px;
  z-index: -1;
  height: 320px;
  background: url("../images/top/shape/polygon_99.svg") left top / contain no-repeat;
  pointer-events: none;
  animation: top-float 12s ease-in-out infinite;
}

.top-company__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.top-company__head {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  align-items: flex-start;
  gap: 20px 36px;
  margin-bottom: 60px;
}

.top-company__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.top-company__badge {
  display: inline-block;
  overflow: hidden;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  background: #fff;
  border: 1.5px solid var(--c-ink);
  padding: 2px 12px 8px 12px;
  margin: 0;
  font-family: var(--font-arial);
}

.top-company__pill {
  display: inline-block;
  overflow: hidden;
  border: none;
  border-radius: 0;
  margin-top: -1px;
  padding: 10px 30px 11px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  background: var(--c-ink);
  color: #fff;
}

/* サンプル .l-flipUp：枠はそのまま、テキストだけ下からフェードイン */
.top-company__badge>span,
.top-company__pill>span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.top-company.is-visible .top-company__badge>span,
.top-company.is-visible .top-company__pill>span {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.top-company.is-visible .top-company__badge>span {
  transition-delay: 0.2s;
}

.top-company.is-visible .top-company__pill>span {
  transition-delay: 0.35s;
}

.top-company__head>p {
  margin: 10px 0 0;
  /* max-width: 600px; */
  /* / flex: 1 1 280px; */
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-ink);
}

.top-company__grid {
  display: grid;
  width: 1000px;
  max-width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 80px 60px;
  /* #繝舌ャ繧ｸ縺悟ｷｦ荳翫↓縺ｯ縺ｿ蜃ｺ縺吝・縺ｮ菴咏區 */
  padding: 28px 0 0 0;
  box-sizing: border-box;
}

.top-card {
  position: relative;
  display: block;
  background: transparent;
  overflow: visible;
  transition: transform 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.top-card:hover {
  transform: translateY(-4px);
}

.top-card__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  /* 逕ｻ蜒上・蟾ｦ荳願ｧ偵↓蜊雁・荵励○繧・*/
  transform: translate(-42%, -42%);
}

@media (max-width: 1023px) {
  .top-card__num {
    width: 60px;
    height: 60px;
    font-size: 20px;
    transform: translate(-21%, -41%);
  }


}

.top-card picture {
  display: block;
}

.top-card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 460 / 328;
  object-fit: cover;
  display: block;
}

.top-card__label {
  position: absolute;
  left: 20px;
  bottom: 0;
  z-index: 2;
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 12px);
  margin: 0;
  padding: 8px 14px 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  border: none;
  background: #fff;
  color: var(--c-ink);
}

/* top-recruit シェイプアニメは common.css に共通化 */

@media (max-width: 1023px) {
  .top-hero {
    min-height: clamp(480px, 120vw, 720px);
    margin-bottom: 16vw;
  }

  .top-hero__container {
    padding: 85vw 0 0;
  }

  .top-hero__block {
    max-width: 70vw;
  }

  .top-hero__visual {
    width: min(523px, 92vw);
    max-width: min(523px, 92vw);
    right: max(-40px, -6vw);
    bottom: -7%;
  }

  .top-hero__visual-img,
  .top-hero__visual-img picture,
  .top-hero__visual-img img {
    width: 100%;
  }

  .top-hero__object--shape01 {
    width: min(42vw, 220px);
  }

  .top-hero__shape--01 {
    width: min(28vw, 140px);
  }

  .top-hero__shape--02,
  .top-hero__shape--03 {
    width: min(18vw, 100px);
  }

  .top-hero__separator {
    transform: translateY(-28%);
    top: 95%;
  }

  body.is-hero-started .top-hero__separator {
    animation-name: top-hero-separator-in-sp;
  }

  @keyframes top-hero-separator-in-sp {
    from {
      opacity: 0;
      transform: translateY(-22%);
    }

    to {
      opacity: 1;
      transform: translateY(-28%);
    }
  }

  .top-challenge__inner {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }

  .top-challenge__copy {
    order: 1;
    max-width: 100%;
    text-align: left;
    width: 100%;
  }

  .top-challenge__copy h2 {
    align-items: flex-start;
  }

  .top-challenge__copy h2>picture {
    width: 60px;
    height: 45px;
    top: -36px;
    left: 7em;
  }

  .top-challenge__copy p {
    font-size: clamp(14px, 1.55vw, 16px);
  }


  .top-challenge__shape--02 {
    left: 86%;
    top: 88%;
    width: min(18vw, 110px);
  }

  .top-challenge__hex {
    max-width: 200px;
    margin: 0 auto 8px;
    order: 2;
  }

  .top-challenge__person {
    max-width: 150px;
    margin: 0 auto;
    top: -20%;
    right: -7%;
  }

  .top-company__grid {
    grid-template-columns: 1fr;
  }


}

@media (prefers-reduced-motion: reduce) {

  .top-hero__shape span,
  .top-challenge__hex picture,
  .top-challenge__shape span,
  .top-company:after,
  body.is-hero-started .top-hero__separator {
    animation: none !important;
  }

  .top-hero__object,
  .top-hero__shape,
  .top-hero__visual,
  .top-hero__block,
  body.is-hero-loaded .top-hero__wrapper {
    opacity: 1 !important;
    transition: none !important;
  }

  .top-challenge__line>span,
  .top-challenge__copy h2>picture,
  .top-company__badge>span,
  .top-company__pill>span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .top-challenge__line::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  .top-hero__separator {
    opacity: 1;
  }
}