@charset "UTF-8";

#ai-education {
  padding-bottom: 0;
}

.deco--aip-title-r { top: 108px; height: 193px; }
.deco--aip-title-r .img-ph {
  left: calc(50% + 485px);
  width: 133px;
  animation: deco-float-a 6s ease-in-out infinite;
}

.deco--aip-split-l { top: 718px; height: 130px; }
.deco--aip-split-l .img-ph {
  left: calc(50% - 595px);
  width: 105px;
  animation: deco-float-b 7.5s ease-in-out infinite;
  animation-delay: -2s;
}

.deco--aip-dept-r { top: 170px; height: 179px; }
.deco--aip-dept-r .img-ph {
  left: calc(50% + 440px);
  width: 133px;
  animation: deco-float-c 9s ease-in-out infinite;
  animation-delay: -4s;
}

.aip-learn {
  padding-block: 130px 0;
}

.aip-learn__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  column-gap: 37px;
  padding: 50px 46px 50px 52px;
  border-radius: 16px;
  background: var(--gradient-accent);
  color: #fff;
}

.aip-learn__title {
  margin: 0;
  color: #fff;
  font-size: 37px;
  font-weight: 500;
  line-height: 55px;
  letter-spacing: 0.08em;
  text-align: left;
}

.aip-learn__title span {
  display: block;
  font-size: 23px;
  line-height: 36px;
  letter-spacing: 0.05em;
}

.aip-learn__steps {
  margin-top: 22px;
}

.aip-learn__step {
  display: flex;
  column-gap: 17px;
  font-size: 15px;
  line-height: 31px;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-family: var(--font-family-noto);
}

.aip-learn__step + .aip-learn__step {
  margin-top: 2px;
}

.aip-learn__step dt {
  flex: none;
  width: 59px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.aip-learn__flow {
  display: grid;
  row-gap: 24px;
}

.aip-learn__flow li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  border-radius: 8px;
  background: #fff;
  color: #3f3a39;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: var(--font-family-noto);
}

.aip-learn__flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 24px;
  height: 12px;
  background: #6b8db0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

.aip-dept {
  position: relative;
  padding-block: 120px 200px;
}

.aip-dept__lead {
  color: #3f3a39;
  font-size: 28px;
  font-weight: 500;
  line-height: 55px;
  letter-spacing: 0.05em;
  text-align: center;
  font-family: var(--font-family-noto);
}

.aip-dept__arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 35px;
}

.aip-dept__arrows span {
  width: 30px;
  height: 15px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.aip-dept__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
  margin-top: 55px;
}

.aip-dept__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(60, 70, 110, 0.18);
  text-align: center;
}

.aip-dept__badge {
  height: 58px;
  color: #fff;
  font-size: 23px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0.05em;
  font-family: var(--font-family-noto);
}

.aip-dept__card--eng .aip-dept__badge {
  background: #7fcef4;
}

.aip-dept__card--soc .aip-dept__badge {
  background: #c4b6d9;
}

.aip-dept__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 31px 35px;
  color: #3f3a39;
}

.aip-dept__name {
  margin: 0;
  color: #3f3a39;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.aip-dept__catch {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: var(--font-family-noto);
}

.aip-dept__img {
  margin-top: 22px;
}

.aip-dept__img .img-ph,
.aip-dept__img img {
  display: block;
  width: 100%;
  aspect-ratio: 426 / 246;
  border-radius: 0;
  object-fit: cover;
}

.aip-dept__fields {
  margin: 20px 0 22px;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.05em;
  font-family: var(--font-family-noto);
}

.aip-dept__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--gradient-accent-flow) 0 0 / 200% 100%;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: var(--font-family-noto);
  transition: background-position 0.4s ease;
}

.aip-dept__btn::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .aip-dept__btn:hover {
    background-position: 100% 0;
  }
  .aip-dept__btn:hover::after {
    transform: translate(5px, -50%) rotate(45deg);
  }
}

@media (max-width: 1000px) {
  .aip-learn__box {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
    padding: 40px 32px;
  }
  .aip-learn__flow {
    width: min(478px, 100%);
    margin-inline: auto;
  }
  .aip-dept__cards {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
    max-width: 495px;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .aip-learn {
    padding-top: 72px;
  }
  .aip-learn__box {
    padding: 24px 20px;
    border-radius: 12px;
  }
  .aip-learn__title {
    font-size: 24px;
    line-height: 1.5;
  }
  .aip-learn__title span {
    font-size: 15px;
    line-height: 1.6;
  }
  .aip-learn__step {
    flex-direction: column;
    font-size: 15px;
    line-height: 1.7;
  }
  .aip-learn__step + .aip-learn__step {
    margin-top: 12px;
  }
  .aip-learn__flow {
    row-gap: 20px;
  }
  .aip-learn__flow li {
    height: 50px;
    font-size: 15px;
  }
  .aip-learn__flow li:not(:last-child)::after {
    top: calc(100% + 4px);
    width: 18px;
    height: 9px;
  }
  .aip-dept {
    padding-block: 72px;
  }
  .aip-dept__lead {
    font-size: 17px;
    line-height: 1.8;
    text-align: left;
  }
  .aip-dept__lead br {
    display: none;
  }
  .aip-dept__arrows {
    gap: 8px;
    margin-top: 20px;
  }
  .aip-dept__arrows span {
    width: 20px;
    height: 10px;
  }
  .aip-dept__cards {
    row-gap: 16px;
    margin-top: 32px;
  }
  .aip-dept__badge {
    height: 44px;
    font-size: 17px;
    line-height: 44px;
  }
  .aip-dept__body {
    padding: 24px 20px 28px;
  }
  .aip-dept__name {
    font-size: 21px;
  }
  .aip-dept__catch {
    font-size: 15px;
  }
  .aip-dept__fields {
    font-size: 15px;
    line-height: 1.9;
  }
  .aip-dept__btn {
    height: 44px;
    font-size: 16px;
  }

  .aip-learn__step dt {
    width: 64px;
  }
}

.js-anim .aip-dept__arrows.js-stagger > * {
  transform: translateY(-10px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.js-anim .aip-dept__arrows.js-stagger.is-inview > * {
  transform: none;
}
.js-anim .aip-dept__arrows.js-stagger > :nth-child(1) { transition-delay: 0.1s; }
.js-anim .aip-dept__arrows.js-stagger > :nth-child(2) { transition-delay: 0.3s; }
.js-anim .aip-dept__arrows.js-stagger > :nth-child(3) { transition-delay: 0.5s; }

.js-anim .aip-dept__cards.js-inview .aip-dept__card {
  opacity: 0;
  transition:
    opacity 1.2s var(--ease-soft) 0.3s,
    transform 1.4s var(--ease-soft) 0.3s;
}
.js-anim .aip-dept__cards.js-inview .aip-dept__card--eng {
  transform: translateX(calc(50% + 30px)) scale(0.94);
}
.js-anim .aip-dept__cards.js-inview .aip-dept__card--soc {
  transform: translateX(calc(-50% - 30px)) scale(0.94);
}
.js-anim .aip-dept__cards.js-inview.is-inview .aip-dept__card {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .js-anim .aip-dept__cards.js-inview .aip-dept__card--eng,
  .js-anim .aip-dept__cards.js-inview .aip-dept__card--soc {
    transform: translateY(24px);
  }
  .js-anim .aip-dept__cards.js-inview .aip-dept__card--soc {
    transition-delay: 0.45s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .aip-dept__cards.js-inview .aip-dept__card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
