/* ==========================================================================
 * Page Name : [自社開発プロダクト]レガシーシステム移行支援CSS
 * File Name : /assets/css/legacy-system-migration-support.css
 * Created   : 2026-07-28
 * Updated   : 2026-07-28
 * ========================================================================== */

/* -- ページヒーロー -- */
.pagehero.-legacy {
  min-height: 673px;
}

/* -- CTA（無料AI診断）-- */
.legacy-ctaFirst {
  margin-top: 60px;
}
.legacy-ctaFirst-fukidashi {
  text-align: center;
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.legacy-ctaFirst-box {
  margin-top: 20px;
  padding: 30px;
  background-color: var(--custom-color-1);
  border-radius: 15px;
  position: relative;
}
.legacy-ctaFirst-text1,
.legacy-ctaFirst-text2,
.legacy-ctaFirst-text3 {
  text-align: center;
  letter-spacing: 0.15em;
}
.legacy-ctaFirst-text1 {
  font-size: 42px;
  font-weight: var(--font-weight-bold);
}
.legacy-ctaFirst-text2 {
  margin-top: 20px;
  font-weight: var(--font-weight-bold);
  line-height: 2.0;
}
.legacy-ctaFirst-text3 {
  margin-top: 20px;
  font-size: 14px;
  font-weight: var(--font-weight-regular);
}
.legacy-ctaFirst-btnbox {
  margin-top: 20px;
  text-align: center;
}
@media screen and (min-width: 960px) {
  /* -- CTA（無料AI診断）-- */
  .legacy-ctaFirst-img {
    width: clamp(120px, calc(13.654vw - 5.62px), 191px);
    position: absolute;
    top: 60px;
    left: auto;
    right: 30px;
  }
}
@media screen and (max-width: 959px) {
  /* -- CTA（無料AI診断）-- */
  .legacy-ctaFirst-img {
    margin-bottom: 10px;
    margin-inline: auto;
    display: block;
    width: clamp(90px, calc(15.707vw - 30.63px), 120px);
  }
}
@media screen and (max-width: 767px) {
  /* -- CTA（無料AI診断）-- */
  .legacy-ctaFirst {
    margin-top: 50px;
  }
  .legacy-ctaFirst-fukidashi {
    font-size: 18px;
  }
  .legacy-ctaFirst-box {
    margin-top: 10px;
    padding: 30px 20px;
  }
  .legacy-ctaFirst-text1 {
    font-size: 28px;
  }
  .legacy-ctaFirst-text2 {
    margin-top: 15px;
  }
  .legacy-ctaFirst-text3 {
    margin-top: 15px;
    font-size: 12px;
  }
}

/* -- レガシーシステム移行支援とは -- */
.legacy-about {
  margin-top: 60px;
}
.legacy-about-subtitle {
  margin-inline: auto;
  padding: 9px 25px;
  border: 1px solid var(--custom-color-2);
  border-radius: 999px;
  width: fit-content;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
  color: var(--custom-color-2);
}
.legacy-about-title {
  margin-top: 20px;
  margin-inline: auto;
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
  line-height: 2.0;
}
.legacy-about-title div {
  display: inline-block;
  color: var(--color-main);
}
.legacy-about-title span {
  text-decoration: underline;
  text-decoration-color: var(--color-main);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.legacy-about-fl {
  margin-top: 50px;
  display: grid;
  grid-template-columns: 42% 53%;
  gap: 5%;
}
.legacy-about-text {
  font-weight: var(--font-weight-regular);
  line-height: 1.7;
  letter-spacing: 0.15em;
}
@media screen and (max-width: 767px) {
  .legacy-about {
    margin-top: 40px;
  }
  .legacy-about-subtitle {
    padding: 10px 40px;
    font-size: 14px;
  }
  .legacy-about-title {
    font-size: 20px;
    line-height: 1.5;
  }
  .legacy-about-fl {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .legacy-about-img {
    margin-inline: auto;
    display: block;
    width: 100%;
    max-width: 500px;
  }
}

/* -- どんなシステムに向いているの？ -- */
.legacy-taget {
  margin-top: 120px;
  padding-top: 120px;
  padding-bottom: 120px;
  background-color: var(--custom-color-1);
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
}
.legacy-taget-title {
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.legacy-taget-text {
  text-align: center;
  margin-top: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
  line-height: 2.0;
}
.legacy-taget-box {
  margin-top: 60px;
  padding: 30px;
  background-color: var(--color-white);
  border-radius: 15px;
}
.legacy-taget-subtitle {
  text-align: center;
  font-size: 20px;
  font-weight: var(--font-weight-bold);
}
.legacy-taget-list {
  margin-top: 20px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 20px;
  width: min(100%, 745px);
}
.legacy-taget-list li {
  padding: 10px 15px;
  width: 100%;
  border: 1px solid var(--text-main-color);
  border-radius: 5px;
}
@media screen and (max-width: 767px) {
  .legacy-taget {
    margin-top: 60px;
    padding-top: 60px;
    padding-bottom: 100px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .legacy-taget-title {
    font-size: 20px;
  }
  .legacy-taget-text {
    text-align: left;
  }
  .legacy-taget-box {
    margin-top: 20px;
    padding: 30px 20px;
  }
  .legacy-taget-subtitle {
    font-size: 16px;
  }
  .legacy-taget-list {
    margin-inline: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 7px;
    max-width: 500px;
  }
  .legacy-taget-list li {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* -- 移行までの流れ -- */
.legacy-flow {
  margin-top: -60px;
  padding-top: 120px;
  padding-bottom: 180px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  background-color: var(--color-white);
}
.legacy-flow-title {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.legacy-flow-list {
  margin-top: 25px;
  counter-reset: flow;
}
.legacy-flow-list > li {
  position: relative;
  padding-left: 55px;
  padding-bottom: 50px;
  counter-increment: flow;
}
.legacy-flow-list > li:last-of-type {
  padding-bottom: 0;
}
.legacy-flow-list > li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--custom-color-1);
}
.legacy-flow-list > li::after {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding-top: 2px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--custom-color-2);
  color: var(--color-white);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}
.legacy-flow-list > li:last-child::before {
  bottom: auto;
  height: 40px;
}
.legacy-flow-listTitle {
  padding-top: 8px;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
}
.legacy-flow-text {
  margin-top: 10px;
  font-size: 16px;
  font-weight: var(--font-weight-regular);
}
.legacy-flow-attention {
  padding-left: 1rem;
  margin-top: 10px;
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  position: relative;
}
.legacy-flow-attention::before {
  content: "※";
  position: absolute;
  top: 0;
  left: 0;
}
.legacy-flow-cnt {
  padding-left: 71px;
  display: grid;
  align-items: center;
  min-height: 57px;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
  position: relative;
}
.legacy-flow-cnt:nth-of-type(1) {
  margin-top: 20px;
}
.legacy-flow-cnt:nth-of-type(2) {
  margin-top: 10px;
}
.legacy-flow-cnt::before {
  content: "";
  display: block;
  width: 57px;
  aspect-ratio: 1;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
}
.legacy-flow-cnt.-ai::before {
  background-image: url(../../images/product/legacy-system-migration-support/flow-ai.png);
}
.legacy-flow-cnt.-engineer::before {
  background-image: url(../../images/product/legacy-system-migration-support/flow-engineer.png);
}
@media screen and (max-width: 767px) {
  .legacy-flow {
    margin-top: -20px;
    padding-top: 60px;
    padding-bottom: 80px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .legacy-flow-title {
    font-size: 24px;
  }
  .legacy-flow-list {
    margin-top: 20px;
  }
  .legacy-flow-list > li {
    padding-bottom: 30px;
  }
  .legacy-flow-listTitle {
    padding-top: 8px;
    font-size: 16px;
  }
  .legacy-flow-text {
    font-size: 14px;
  }
  .legacy-flow-cnt:nth-of-type(2) {
    margin-top: 15px;
  }
}

/* -- よくあるご質問 -- */
.page.-legacy .pr-faq {
  padding-bottom: 200px;
  background-color: var(--custom-color-1);
}
@media screen and (max-width: 767px) {
  .page.-legacy .pr-faq {
    padding-bottom: 80px;
  }
}

/* -- yepのAI活用実績 -- */
.legacy-ai {
  margin-top: -60px;
  padding-top: 120px;
  background-color: var(--color-white);
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
}
.legacy-ai-wrapper {
  margin-inline: auto;
  width: min(100% - 100px, 1380px);
}
.legacy-ai-box {
  padding: 50px;
  background-color: var(--custom-color-2);
  border-radius: 20px;
}
.legacy-ai-title {
  text-align: center;
  font-size: 30px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
  color: var(--color-white);
}
.legacy-ai-text {
  margin-top: 20px;
  text-align: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}
.legacy-ai-list {
  margin-inline: auto;
  margin-top: 30px;
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.legacy-ai-list dl {
  padding: 30px 24px;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 0 3px rgba(247, 234, 218, 1);
}
.legacy-ai-list dt {
  text-align: center;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
}
.legacy-ai-list dd {
  margin-top: 20px;
  font-weight: var(--font-weight-regular);
}
@media screen and (max-width: 767px) {
  .legacy-ai {
    margin-top: -20px;
    padding-top: 60px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .legacy-ai-wrapper {
    width: min(100% - 40px, 1080px);
  }
  .legacy-ai-box {
    padding: 30px 20px;
    border-radius: 15px;
  }
  .legacy-ai-title {
    font-size: 24px;
  }
  .legacy-ai-text {
    margin-top: 15px;
    text-align: left;
  }
  .legacy-ai-list {
    max-width: 500px;
    grid-template-columns: 1fr;
  }
  .legacy-ai-list dl {
    padding: 20px;
  }
  .legacy-ai-list dt {
    font-size: 16px;
  }
  .legacy-ai-list dd {
    margin-top: 10px;
    font-size: 12px;
  }
}

/* -- CTA2 -- */
.page.-legacy .pr-cta2::before {
  aspect-ratio: 345 / 97;
}
.page.-legacy .pr-cta2::before {
  background-image: url("../../images/product/legacy-system-migration-support/bg.svg");
}