/* ======================== */
/* ボタン */
/* ======================== */
/* パターン１：装飾なし青ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: fit-content;
  padding: 1.1em 2em;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: var(--colorWhite);
  border: 1px solid var(--linkBlue);
  background-color: var(--linkBlue);
  border-radius: 4px;
  transition: 
    background-color 0.3s,
    color 0.3s,
    transform 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* ホバー用 white */
.button::before {
  background: #fff;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 0%;
  bottom: 0%;
  width: 500%;
  height: 500%;
  z-index: -1;
  transform: rotate(-45deg) translate(30%, 110%);
  transform-origin: right bottom;
  transition: transform .5s ease;
}

.button.en {
  font-family: var(--familyPoppins);
  font-weight: 600;
}

/* パターン２：右にドットあり */
.button.dot {
  padding-right: 3.5em;
  border-radius: 100px;

  &:after {
    content: "";
    background-color: #fff;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    position: absolute;
    right: 1.6875rem;
    top: 50%;
    transform: translateY(-50%) scale(1);
    transition: opacity .6s ease, transform .4s ease;
  }
  @media screen and (max-width: 768px) {
    padding: 1em 2.5em;
    
    &:after {
      right: 1.6875rem;
    }
  }
}

/* ボタンテキスト */
.button__label {
  display: inline-block;
}

@media (hover: hover) {
  .button:hover {
    color: var(--linkBlue);
  }
  
  .button.dot:hover::after {
    border: 1px solid var(--linkBlue);
    transform: translateY(-50%) scale(2.5);
    opacity: 0;
  }
  
  /* ホバー用 white */
  .button:hover::before {
    transform: rotate(-45deg) translate(50%, 10%);
  }
}

.button:focus-visible {
  background-color: #fff;
  color: var(--linkBlue);
}


/* ======================== */
/* 下層セクションタイトル */
/* ======================== */

.SectionLead__text-jp {
  display: block;
  font-size: clamp(1.5rem, 1.324rem + 0.75vw, 2rem);
  font-weight: 700;
  line-height: 181.25%;
  position: relative;
}

/* ======================== */
/* 下層ファーストビュー */
/* ======================== */
.pageMv {
  padding-top: 11.11vw;
  position: relative;
  overflow-x: clip;
  background-color: #fff;
}

.pageMv .container {
  z-index: 2;
}

.pageMv__titles {
  margin-top: 2rem;
}

.pageMv__title-en {
  font-family: var(--familyPoppins);
  font-weight: 600;
  font-size: clamp(2.375rem, 1.099rem + 5.45vw, 6rem);
  line-height: 104.167%;
}

.pageMv__text-jp {
  display: block;
  font-size: clamp(1rem, 0.912rem + 0.38vw, 1.25rem);
  font-weight: 700;
  line-height: 1;
  position: relative;
  margin-top: 1rem;
}

.pageMv__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;

  .animationLine-svg {
    position: absolute;
    top: -4vw;
    right: 0;
    width: 70%;
    z-index: var(--indexLine);
  }
  
  .pageMv__ring {
    position: absolute;
    img {
      width: 100%;
    }
  }
  .item-1 {
    width: 4.9vw;
    top: 0;
    left: 37.5vw;
    z-index: var(--indexRingTop);
  }
  .item-2 {
    width: 4.9vw;
    top: 0;
    left: 37.5vw;
    z-index: var(--indexRingBottom);
  }
  .item-3 {
    width: 3.5vw;
    top: 19vw;
    right: 27vw;
    z-index: var(--indexRingTop);
  }
  .item-4 {
    width: 12.5vw;
    top: 10vw;
    right: 12vw;
    z-index: var(--indexRingBottom);
  }
  .item-5 {
    width: 12.6vw;
    top: 10vw;
    right: 12vw;
    z-index: var(--indexMostTopText);
  }
  .item-6 {
    width: 17.5vw;
    top: 1vw;
    right: 0;
    z-index: var(--indexRingBottom);
  }
  .item-7 {
    width: 17.5vw;
    top: 1vw;
    right: 0;
    z-index: var(--indexRingTop);
  }
}

@media screen and (max-width: 768px) {
  .pageMv {
    padding-top: 6rem;
  }
  .pageMv__titles {
    margin-top: 2rem;
  }
  .pageMv__title-en {
    line-height: 115.789%;
  }
  .pageMv__text-jp {
    margin-top: 0.5rem;
    font-weight: 400;
  }

  .pageMv__bg {
    .animationLine-svg {
      top: 0;
    }
    .item-1,
    .item-2 {
      top: 1vw;
      left: 34.5vw;
    }
    .item-3 {
      width: 4vw;
      right: 23vw;
    }
    .item-4,
    .item-5 {
      width: 13vw;
      top: 15vw;
      right: 8vw;
    }
    .item-6,
    .item-7 {
      width: 14.5vw;
      top: 12vw;
    }
  }
}

/* ======================== */
/* パンくずリスト */
/* ======================== */
.breadcrumb {
  display: flex;
  align-items: center;
}
.breadcrumb__item,
.breadcrumb__link {
  font-family: var(--familyPoppins);
  font-size: 0.75rem;
  color: var(--colorBlack-2);
  font-weight: 600;
  line-height: 1.5;
  text-transform: capitalize;
}
.breadcrumb__item:not(:first-of-type) {
  position: relative;
  padding-left: 1.25rem;
}
.breadcrumb__item:not(:first-of-type)::before {
  content: "";
  background-color: #D0D0D0;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
}
.breadcrumb__item:last-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* ============================== */
/* フッター前　Company親ページ内のリンク */
/* ============================== */
.beforeFooterLinks {
  position: relative;
  padding-block: 9.5rem 10rem;
}

.beforeFooterLinks__container {
  display: flex;
  align-items: stretch;
  gap: 5%;
}

.beforeFooterLink {
  display: block;
  width: 100%;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--colorBlack);
  position: relative;
}

/* 青矢印アイコン */
.linkIcon__round--blue {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  aspect-ratio: 1 / 1;
  position: absolute;
  top: 0;
  right: 0;
}
.linkIcon__round--blue.is-active {
  display: none;
}
.linkIcon__round--blue::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2rem;
  aspect-ratio: 1 / 1;
  background-color: var(--linkBlue);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform .3s;
}
.linkIcon__round--blue::after {
  content: "";
  background: url(../../images/common/icon-arrow-left--white.svg) no-repeat center center / contain;
  width: 0.75rem;
  height: 0.75rem;
  aspect-ratio: 1 / 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* z-index: 2; */
}

/* テキスト */
.beforeFooterLink__en {
  font-family: var(--familyPoppins);
  font-weight: 600;
  line-height: 130%;
  font-size: clamp(2rem, 1.824rem + 0.75vw, 2.5rem);
  width: fit-content;
}
.beforeFooterLink__ja {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 185.714%;
  width: fit-content;
}
.beforeFooterLink.is-active {
  border-color: var(--textRed-2);
}
.beforeFooterLink.is-active .beforeFooterLink__en,
.beforeFooterLink.is-active .beforeFooterLink__ja {
  background: linear-gradient(244deg, #E7211A 46.97%, #FFA530 95.68%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.parentsBusiness {

  &.beforeFooterLinks {
    padding-block: 5rem 12rem;
  }
  .beforeFooterLinks__container {
    gap: 2.7%;
  }
  .beforeFooterLink__en {
    font-size: 1.75rem;
  }
}

@media (hover:hover) {
  .beforeFooterLink:hover .linkIcon__round--blue::before {
    transform: translate(-50%, -50%) scale(1.25);
  }
  .beforeFooterLink:hover .beforeFooterLink__en,
  .beforeFooterLink:hover .beforeFooterLink__ja {
    background: linear-gradient(244deg, #E7211A 46.97%, #FFA530 95.68%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.beforeFooterLink:focus-visible .linkIcon__round--blue::before {
  transform: translate(-50%, -50%) scale(1.25);
}
.beforeFooterLink:focus-visible .beforeFooterLink__en,
.beforeFooterLink:focus-visible .beforeFooterLink__ja {
  background: linear-gradient(244deg, #E7211A 46.97%, #FFA530 95.68%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* セクション上の背景など */
.beforeFooterLinks__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  
  .animationLine-svg {
    position: absolute;
    top: -7vw;
    left: 0;
    z-index: var(--indexLine);
  }
  .beforeFooterLinks__ring {
    position: absolute;
    img {
      width: 100%;
    }
  }
  .item-1 {
    width: 0.6vw;
    top: -2.4vw;
    left: 10vw;
    z-index: var(--indexRingTop);
  }
  .item-2 {
    width: 5.8vw;
    top: -3vw;
    right: 10.5vw;
    z-index: var(--indexRingBottom);
  }
  .item-3 {
    width: 6.1vw;
    top: -3.3vw;
    right: 10vw;
    z-index: var(--indexRingTop);
  }
  .item-4 {
    width: 1.1vw;
    top: -3.4vw;
    right: 7.5vw;
    z-index: var(--indexRingTop);
  }
}

@media screen and (max-width: 1080px) {
  .parentsBusiness {
    &.beforeFooterLinks {
      padding-block: 0 4rem;
    }
    .beforeFooterLink {
      padding-block: 1.28125rem;
    }
    .beforeFooterLink__en {
      line-height: 1.2;
    }
    .beforeFooterLinks__container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 2rem;
      row-gap: 0;
    }
    .linkIcon__round--blue {
      top: 50%;
      transform: translateY(-50%);
    }
  }
}

@media screen and (max-width: 768px) {
  .beforeFooterLinks {
    padding-block: 4rem;
  }
  .beforeFooterLinks__container {
    flex-direction: column;
  }
  .beforeFooterLink {
    padding-top: 1rem;
  }
  /* 青矢印アイコン */
  .linkIcon__round--blue {
    top: 50%;
    transform: translateY(-50%);
  }
  .linkIcon__round--blue::after {
    right: 1.25rem;
  }

  .parentsBusiness {
    .beforeFooterLinks__container {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
  }
}

/* ======================== */
/* 背景　赤い曲線とアイテム */
/* 使用箇所：TOP, ai-sokutionsなど */
/* ======================== */
.bg-object-a {
  position: relative;
  min-height: 25.20833vw;
  overflow-x: clip;

  .bg-object-a__ring {
    position: absolute;
    img {
      width: 100%;
    }
  }

  .item-1 {
    width: 10.278vw;
    top: 0;
    left: 0;
    z-index: var(--indexRingBottom);
  }
  .item-2-bottom {
    width: 8.5vw;
    top: 9vw;
    right: 22vw;
    z-index: var(--indexRingBottom1);
  }
  .item-2-top {
    width: 8.6vw;
    top: 9vw;
    right: 22vw;
    z-index: var(--indexRingTop);
  }
  .item-3 {
    width: 32vw;
    top: 0.5vw;
    right: -1px;
    z-index: var(--indexRingBottom);
  }
}
@media screen and (max-width: 768px) {
  .bg-object-a {
    min-height: 25.867vw;

      .item-1 {
        top: 1.5vw;
      }
      .item-2-bottom {
        width: 9vw;
        top: 10.5vw;
        right: 25vw;
      }
      .item-2-top {
        width: 9vw;
        top: 10.5vw;
        right: 25vw;
      }
      .item-3 {
        width: 37vw;
        top: 2.5vw;
        right: -1px;
        z-index: var(--indexRingBottom);
      }
  }
}

/* ======================== */
/* knowledgeスライダー */
/* 使用箇所：TOP, ai-sokutionsなど */
/* ======================== */
.knowlege {
  padding-bottom: 0;
}

.knowlege__contents {
  margin: 1.5rem 2rem 0;
  overflow: visible;
}

.knowlege__contents .swiper {
  overflow: visible;
}

.knowlegeCard__image img {
  width: 100%;
}
.knowlegeCard__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.89;
  margin-top: 2rem;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.knowlegeCard__text {
  color: var(--colorBlack-2);
  font-size: 0.875rem;
  line-height: 1.7143;
  margin-top: .5rem;
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.knowlegeCard__company {
  color: var(--colorBlack-2);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: calc(24 / 14);
  margin-top: 0.5rem;
}
.knowlegeCard__tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.knowlegeCard__tag {
  display: inline-block;
  color: #A6A6A6;
  font-size: 0.625rem;
  background-color: #eee;
  border-radius: 2px;
  padding: 0.4em 1.2em;
}
.knowlege__button {
  text-align: right;
  margin-top: 3.5rem;
}
.knowlege__button .button {
  min-width: 10.4375rem;
}

@media screen and (max-width: 768px) {
  .knowlege {
    margin-block: 0;
  }
  .knowlege__contents {
    margin-top: 1.5rem;

    .swiper-wrapper {
      padding-left: 20px;
    }
  }
  .knowlegeCard__title {
    font-size: 1rem;
    line-height: 1.75;
    margin-top: 1.25rem;
  }
  .knowlegeCard__text {
    font-size: 0.75rem;
    line-height: 1.667;
  }
  .knowlege__button {
    margin-top: 2rem;
  }
  .knowlege__button .button {
    min-width: auto;
  }
}

/* =========================== */
/* Business お問い合わせセクション */
/* =========================== */
.contactCTA {
  overflow-x: clip;
  position: relative;
  padding-block: 0;
  margin: 4.5rem auto 5.5rem auto;
  max-width: 1440px;
}
.contactCTA__container {
  background-color: #F7F7F7;
  border-radius: 8px;
  text-align: center;
  padding-block: 4.5rem;
}
.contactCTA__en {
  font-family: var(--familyPoppins);
  font-weight: 600;
  font-size: clamp(1.563rem, 1.012rem + 2.35vw, 3.125rem);
  line-height: 152%;
}
.contactCTA__button-wrapper {
  margin-top: 0.5rem;

  .button {
    font-size: clamp(0.563rem, 0.364rem + 0.85vw, 1.125rem);
    border-radius: 6px;
    min-width: 15.5rem;
    padding: 0.8em 2em;
  }
}
.contactCTA__items {
  .item {
    position: absolute;
    img {
      width: 100%;
    }
  }
  .item-1 {
    width: min(260px, 18.056vw);
    bottom: -2rem;
    left: 2%;
  }
  .item-2 {
    width: min(48px, 3.33vw);
    bottom: 6rem;
    left: 20%;
  }
  .item-3 {
    width: min(20px, 1.389vw);
    top: 2.5rem;
    right: 18.5%;
  }
  .item-4 {
    width: min(72px, 6vw);
    top: -1rem;
    right: 11.5%;
  }
  .item-5 {
    width: min(30px, 2.0833vw);
    bottom: 6.5rem;
    right: 10.2%;
  }
}
@media screen and (max-width: 768px) {
  .contactCTA {
    margin-block: 2rem 2.5rem;
  }
  .contactCTA__container {
    padding-block: 2.5rem 2rem;
  }
  .contactCTA__button-wrapper {
    margin-top: 0;
  }
  .contactCTA__button-wrapper .button {
    font-size: clamp(0.75rem, 0.364rem + 0.85vw, 1.125rem);
    min-width: 7.75rem;
  }
  .contactCTA__button-wrapper .button::after {
    right: 0.75rem;
    width: 0.125rem;
    height: 0.125rem;
  }
  .contactCTA__items {

  .item-1 {
      width: min(104px, 27.73vw);
      bottom: auto;
      top: 4rem;
      left: 0;
    }
    .item-2 {
      width: min(48px, 5.33vw);
      top: 3.5rem;
      bottom: auto;
      left: 17%;
    }
    .item-3 {
      width: min(6px, 1.6vw);
      top: 1rem;
      right: 19.5%;
    }
    .item-4 {
      width: min(24px, 6.4vw);
      top: -0.5rem;
      right: 11%;
    }
    .item-5 {
      width: min(10px, 2.67vw);
      top: 3.5rem;
      bottom: auto;
      right: 9%;
    }
  }
}