/* TOP page */
.top-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.top-hero__img--sp {
  display: none;
}

.top-hero__catch {
  position: absolute;
  top: 59%;
  right: 4.2%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0.35em 0.5em;
  width: auto;
  max-width: none;
  text-align: right;
  color: #fff;
  font-family: "source-han-serif-jp-subset", "Source Han Serif JP", var(--font-serif);
  font-size: clamp(20px, 2.58vw, 31px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.46;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 4px rgba(228, 248, 255, 1),
    0 0 8px rgba(242, 220, 255, 0.95),
    0 0 14px rgba(242, 220, 255, 0.75),
    0 0 24px rgba(228, 248, 255, 0.85),
    0 0 38px rgba(242, 220, 255, 0.55);
  z-index: 2;
}

.top-hero__line {
  display: block;
  white-space: nowrap;
}

.top-hero__u {
  font-size: 0.8em;
  vertical-align: baseline;
}

.top-hero__line--sp {
  display: none;
}

.gradation {
  background-image: linear-gradient(0deg, transparent 60%, #f2dcff4d 78%, #e4f8ff 100%);
}

/* COMPANY intro */
.top-company {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}

.top-company__head {
  text-align: center;
  margin-bottom: 36px;
}

.top-company__head .icon-mark {
  margin-bottom: 8px;
}

.top-company__photo {
  position: absolute;
  top: 94px;
  left: 0;
  width: 300px;
  height: 444px;
}

.top-company__photo--right {
  left: auto;
  right: 0;
  height: 431px;
}

.top-company__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-company__text {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.top-company__text h2 {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  margin-bottom: 24px;
  color: var(--color-text);
}

.top-company__text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5625;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-text);
}

.top-company__circles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 70px;
}

.top-company__circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 231px;
  height: 231px;
  border-radius: 50%;
  background: linear-gradient(180deg, #9278bb 0%, #481c8c 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.top-company__circle:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(107, 71, 161, 0.35);
}

.top-company__circle .kira {
  display: block;
  width: 30px;
  height: 30px;
  background: none;
  filter: none;
}

/* ABOUT US */
.top-about {
  position: relative;
  padding: 40px 0 80px;
}

.top-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/common/bg-crystal.jpg") center / cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

.top-about > * {
  position: relative;
  z-index: 1;
}

.top-about__head {
  text-align: center;
  margin-bottom: 80px;
}

.top-about__head .icon-mark {
  margin-bottom: 8px;
}

.top-about__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 59px;
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
}

.top-card {
  position: relative;
  display: block;
  width: 85.42%;
  max-width: 1025px;
  height: 321px;
  margin: 0;
  overflow: hidden;
  background: #f0f0fa;
  transition: transform 0.35s var(--ease);
}

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

.top-card > picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 245px;
  z-index: 1;
}

.top-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(
    110deg,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 10%,
    rgba(0, 0, 0, 0.25) 22%,
    rgba(0, 0, 0, 0.55) 34%,
    rgba(0, 0, 0, 0.8) 46%,
    #000 58%
  );
  mask-image: linear-gradient(
    110deg,
    transparent 0%,
    rgba(0, 0, 0, 0.05) 10%,
    rgba(0, 0, 0, 0.25) 22%,
    rgba(0, 0, 0, 0.55) 34%,
    rgba(0, 0, 0, 0.8) 46%,
    #000 58%
  );
}

.top-card__text {
  position: relative;
  width: 566px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 42px;
  background: linear-gradient(70deg, #f0f0fa 0%, #f0f0fa 62%, rgba(240, 240, 250, 0.92) 78%, rgba(240, 240, 250, 0) 100%);
  box-shadow: 0 6px 20px rgba(34, 35, 99, 0.06);
}

.top-card__text > * {
  position: relative;
  z-index: 2;
}

.top-card__text .tag-ribbon {
  width: 321px;
  max-width: 100%;
  margin-bottom: 18px;
}

.top-card__text h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--color-text);
}

.top-card__text p {
  font-size: 16px;
  line-height: 1.5625;
  color: var(--color-text);
}

@media (max-width: 960px) {
  .top-hero__catch {
    top: 72%;
    right: 5%;
    font-size: clamp(15px, 5.4vw, 22px);
    line-height: 1.47;
    padding: 0.3em 0.4em;
    transform: translateY(-50%);
  }

  .top-hero__line--pc {
    display: none;
  }

  .top-hero__line--sp {
    display: block;
  }

  .top-hero__img--pc {
    display: none;
  }

  .top-hero__img--sp {
    display: block;
  }

  .top-company__photo {
    position: static;
    width: auto;
    height: auto;
    max-width: 280px;
    margin: 0 auto 24px;
  }

  .top-company__photo img {
    height: 220px;
  }

  .top-company__circles {
    gap: 16px;
  }

  .top-company__circle {
    width: 160px;
    height: 160px;
    font-size: 18px;
    gap: 10px;
  }

  .top-card {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 var(--side-gutter);
    overflow: visible;
  }

  .top-card > picture {
    position: static;
    inset: auto;
  }

  .top-card__text {
    width: 100%;
    height: auto;
    padding: 24px 20px;
  }

  .top-card__text .tag-ribbon {
    width: auto;
    padding-right: 70px;
  }

  .top-card__text h3 {
    font-size: 22px;
  }

  .top-card__img {
    position: static;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 600px) {
  .top-company {
    display: block;
    position: relative;
    padding: 48px 0 40px;
    overflow: hidden;
  }

  .top-company__head {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    margin: 0;
    padding: 0 16px;
  }

  .top-company__head .icon-mark {
    width: 22px;
    height: 22px;
    margin-bottom: 6px;
  }

  .top-company__head .section-en {
    font-size: 31px;
    letter-spacing: 0.06em;
    line-height: 1.2;
  }

  .top-company__body {
    display: block;
  }

  .top-company__photo {
    position: absolute;
    z-index: 1;
    top: 48px;
    left: 0;
    right: auto;
    width: 100px;
    height: 148px;
    max-width: none;
    margin: 0;
    overflow: hidden;
    aspect-ratio: auto;
  }

  .top-company__photo--right {
    top: 48px;
    left: auto;
    right: 0;
    width: 100px;
    height: 148px;
  }

  .top-company__photo picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .top-company__photo img {
    display: block;
    width: 315px;
    height: 100%;
    max-width: none;
    margin: 0 0 0 -108px;
    object-fit: cover;
    object-position: center;
  }

  .top-company__photo--right img {
    width: 329px;
    height: 204px;
    margin-left: -55px;
    margin-top: -55px;
    object-fit: fill;
    object-position: center;
  }

  .top-company__text {
    position: relative;
    z-index: 2;
    max-width: none;
    margin: 28px 0 0;
    padding: 0 20px;
  }

  .top-company__text h2 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.5;
    text-align: center;
  }

  .top-company__text p {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
  }

  .top-company__circles {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 161px);
    gap: 19px 20px;
    width: 342px;
    margin-top: 28px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  .top-company__circle {
    width: 161px;
    height: 161px;
    font-size: 18px;
    gap: 10px;
  }

  .top-company__circle .kira {
    width: 21px;
    height: 21px;
  }

  .top-about {
    padding: 75px 0 50px;
  }

  .top-about__head {
    margin-bottom: 44px;
  }

  .top-about__cards {
    gap: 30px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
  }

  /* SPカード: 左テキスト + 右写真（フェード）、リボンは左上 */
  .top-card {
    --ribbon-h: 28px;
    width: 100%;
    max-width: none;
    height: 160px;
    margin: 0;
    overflow: hidden;
    background: #f0f0fa;
    box-shadow: 0 4px 14px rgba(34, 35, 99, 0.07);
  }

  .top-card > picture {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 32%;
    z-index: 1;
    display: block;
    margin: 0;
    padding: 0;
  }

  .top-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(
      110deg,
      transparent 0%,
      rgba(0, 0, 0, 0.08) 8%,
      rgba(0, 0, 0, 0.3) 18%,
      rgba(0, 0, 0, 0.6) 30%,
      rgba(0, 0, 0, 0.82) 42%,
      #000 54%
    );
    mask-image: linear-gradient(
      110deg,
      transparent 0%,
      rgba(0, 0, 0, 0.08) 8%,
      rgba(0, 0, 0, 0.3) 18%,
      rgba(0, 0, 0, 0.6) 30%,
      rgba(0, 0, 0, 0.82) 42%,
      #000 54%
    );
  }

  .top-card__text {
    position: relative;
    width: 58%;
    height: 100%;
    padding: 38px 10px 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: linear-gradient(
      110deg,
      #f0f0fa 0%,
      #f0f0fa 62%,
      rgba(240, 240, 250, 0.92) 78%,
      rgba(240, 240, 250, 0) 100%
    );
    box-shadow: none;
    z-index: 2;
  }

  .top-card__text .tag-ribbon {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    height: var(--ribbon-h);
    margin: 0;
    padding: 0 36px 0 10px;
    font-size: 15px;
    gap: 8px;
    box-sizing: border-box;
    z-index: 3;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
  }

  .top-card__text .tag-ribbon .kira {
    width: 21px;
    height: 21px;
  }

  .top-card__text h3 {
    margin-bottom: 6px;
    font-size: 21px;
  }

  .top-card__text p {
    font-size: 13px;
    line-height: 1.45;
  }
}
