/* アニメーションの動き（キーフレーム）の定義 */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px); /* 開始位置：右に50pxずれた場所 */
  }
  100% {
    opacity: 1;
    transform: translateX(0); /* 終了位置：本来の場所 */
  }
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px); /* 開始位置：右に50pxずれた場所 */
  }
  100% {
    opacity: 1;
    transform: translateX(0); /* 終了位置：本来の場所 */
  }
}
.section-mv {
  .kaonavi-logo {
    max-width: 150px;
    width: 100%;
    margin: 16px auto 0;
  }
  .mv-title {
    display: flex;
    align-items: center;
    @media screen and (max-width: 768px) {
      flex-direction: column-reverse;
      align-items: center;
    }
    .kv {
      position: relative;
      width: calc(100% - 21vw);
      height: 29vw;
      @media screen and (min-width: 768px) {
        margin-right: 20px;
      }
      @media screen and (max-width: 768px) {
        width: 100%;
        height: 83vw;
      }
      .kv-image {
        opacity: 0;
        animation: slideInLeft 1.2s ease-out 0.8s both;
        position: absolute;
        top: -30px;
        left: -110px;
        z-index: 1;
        width: 81vw;
        @media screen and (max-width: 768px) {
          top: 25px;
          width: 150vw;
          left: -41vw;
        }
      }
      .kv-image-bg {
        opacity: 0;
        animation: slideInRight 1s ease-out forwards;
        position: absolute;
        top: -130px;
        left: -188px;
        z-index: -1;
        width: 84vw;
        @media screen and (max-width: 768px) {
          top: 13px;
          width: 178vw;
          left: -48vw;
        }
      }
    }
    h1 {
      width: 21vw;
      @media screen and (min-width: 768px) {
        margin-right: 60px;
      }
      @media screen and (max-width: 768px) {
        margin-top: 16px;
        padding: 0 16px;
        width: 100%;
      }
    }
  }
  .mv-text {
    margin: 30px 60px 52px;
    @media screen and (max-width: 768px) {
      margin: 10px 16px 0;
    }
    .only-pc {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    img {
      height: 48px;
      object-fit: contain;
      @media screen and (min-width: 1441px) {
        width: calc(100% - 21vw);
      }
      @media screen and (max-width: 1440px) {
        width: calc(100% - 300px);
      }
      @media screen and (max-width: 768px) {
        height: auto;
        width: 100%;
      }
    }
    .mv-cta {
      padding: 11px 20px;
      text-align: center;
      background-color: var(--black);
      color: var(--white);
      font-weight: bold;
      border-radius: 50px;
      margin-left: 80px;
      white-space: nowrap;
      @media screen and (min-width: 1441px) {
        width: 21vw;
      }
      @media screen and (max-width: 1440px) {
        max-width: 300px;
        width: 100%;
      }
      &:hover  {
        opacity: 1;
        background-color: var(--blue-primary);
      }
    }
  }
}

.program-loop {
  .swiper-wrapper {
    transition-timing-function: linear;
    .swiper-slide {
      margin-right: 24px;
      width: 350px;
      box-shadow: var(--ftf-shadow);
      border-radius: 16px;
      overflow: hidden;
      @media screen and (max-width: 768px) {
        width: 280px;
        margin-right: 20px;
      }
      img {
        display: block;
        width: 350px;
        height: auto;
        @media screen and (max-width: 768px) {
          width: 280px;
        }
      }
    }
  }
}
@keyframes rotate {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}

.section-concept {
  position: relative;
  margin-top: 350px;
  @media screen and (max-width: 768px) {
    margin-top: 280px;
  }
  &::before {
    content: "";
    position: absolute;
    background: url(/facetofes/2026/img/bg/concept-bg.png) no-repeat center center / contain;
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    width: 1550px;
    height: 1550px;
    z-index: -3;
    @media screen and (max-width: 768px) {
      top: -80px;
    }
  }
  &::after {
    content: "";
    position: absolute;
    display: block;
    background: url(/facetofes/2026/img/bg/concept-bg-text.svg) no-repeat center center / contain;
    top: -242px;
    left: calc(50% - 54.5rem);
    -webkit-animation: rotate 120s linear infinite;
    animation: rotate 120s linear infinite;
    width: 1750px;
    height: 1750px;
    z-index: -5;
    @media screen and (max-width: 768px) {
      top: -170px;
      left: calc(50% - 72.5rem);
      width: 2260px;
      height: 2260px;
      background: url(/facetofes/2026/img/bg/concept-bg-text_sp.svg) no-repeat center center / contain;
    }
  }
  .bg-illust {
    position: relative;
    &::before, &::after {
      content: "";
      position: absolute;
      z-index: 1;
      @media screen and (max-width: 768px) {
        z-index: -1;
      }
    }
    &::before {
      top: 80px;
      left: -150px;
      display: block;
      width: clamp(300px, 39vw, 442px);
      height: clamp(252px, 32vw, 374px);
      background: url(/facetofes/2026/img/illust/illust03.png) no-repeat center center / contain;
      @media screen and (max-width: 768px) {
        top: -200px;
        left: -148px;
        z-index: -4;
      }
    }
    &::after {
      bottom: -230px;
      right: -150px;
      display: block;
      width: clamp(300px, 39vw, 400px);
      height: clamp(252px, 41vw, 423px);
      background: url(/facetofes/2026/img/illust/illust01.png) no-repeat center center / contain;
      transform: scale(-1, 1);
      @media screen and (max-width: 768px) {
        bottom: -248px;
        right: -140px;
      }
    }
  }
  .concept-title {
    font-size: 44px;
    line-height: 1.6;
    font-weight: bold;
    @media screen and (max-width: 768px) {
      font-size: 31px;
    }
  }
  .sub-text {
    font-size: 20px;
    @media screen and (max-width: 768px) {
      font-size: 16px;
    }
    p {
      line-height: 180%;
      &:not(:last-child) {
        margin-bottom: 50px;
        @media screen and (max-width: 768px) {
          margin-bottom: 30px;
        }
      }
      .highlights {
        font-weight: bold;
        font-size: 24px;
        @media screen and (max-width: 768px) {
          font-size: 20px;
        }
      }
    }
  }
}

.section-update {
  margin-top: 90px;
  @media screen and (max-width: 768px) {
    margin-top: 60px;
  }
  .update-title {
    margin-top: 16px;
    max-width: 470px;
    width: 100%;
  }
  .update-list {
    margin-top: 16px;
  }
}

.section-last-year {
  margin-top: 210px;
  @media screen and (max-width: 768px) {
    margin-top: 100px;
  }
  .last-year-modal {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
  }
}

.section-speaker {
  position: relative;
  &::before, &::after {
    content: "";
    position: absolute;
  }
  &::after {
    background: url(/facetofes/2026/img/bg/bg01.png) no-repeat top center / cover;
    top: -13vw;
    right: 0;
    width: 100%;
    height: 111vw;
    z-index: -1;
    @media screen and (max-width: 768px) {
      background: url(/facetofes/2026/img/bg/bg01_sp.png) no-repeat top center / cover;
      top: 120px;
      height: 2100px;
    }
  }
  .speaker-list {
    position: relative;
    .speaker-list-item {
      background-color: var(--white);
      border-radius: 16px;
      box-shadow: var(--ftf-shadow);
      overflow: hidden;
      position: relative;
      cursor: pointer;
      &::before {
        content: "";
        position: absolute;
        bottom: 24px;
        right: 16px;
        width: 36px;
        height: 36px;
        @media screen and (max-width: 768px) {
          right: 14px;
          bottom: 16px;
          width: 24px;
          height: 24px;
        }
      }
      &.blue {
        .speaker-list-item__image {
          background-color: var(--blue-accent);
        }
        &::before {
          background: url(/facetofes/2026/img/icon/icon-blue-btn.svg) no-repeat top center / contain;
        }
      }
      &.yellow {
        .speaker-list-item__image {
          background-color: var(--yellow-accent);
        }
        &::before {
          background: url(/facetofes/2026/img/icon/icon-yellow-btn.svg) no-repeat top center / contain;
        }
      }
      &:hover {
        opacity: 0.7;
        .speaker-list-item__image {
          img {
            transform: scale(1.05);
          }
        }
      }
      .speaker-list-item__image {
        width: 100%;
        height: auto;
        background-color: var(--blue-accent);
        img {
          width: 100%;
          height: auto;
          transition: all 0.3s ease;
        }
      }
      .speaker-list-item__desc {
        position: relative;
        &::after {
          content: "";
          position: absolute;
          top: -30px;
          left: 50%;
          transform: translateX(-50%);
          display: block;
          width: 100%;
          height: 54px;
          background: url(/facetofes/2026/img/bg/bg-card.svg) no-repeat top center / cover;
          @media screen and (max-width: 768px) {
            top: -20px;
            height: 30px;
          }
        }
        .logo {
          padding: 2px 5px 8px;
          margin: 0 auto;
          max-width: 267px;
          width: 100%;
          position: relative;
          z-index: 1;
          @media screen and (max-width: 768px) {
            padding: 0 0 6px;
          }
        }
        .title {
          padding: 16px 57px 24px 16px;
          text-align: left;
          border-top: 1px solid #E5E5E5;
          @media screen and (max-width: 768px) {
            padding: 12px 37px 16px 14px;
          }
          h3 {
            font-size: 22px;
            font-weight: bold;
            @media screen and (max-width: 768px) {
              font-size: 18px;
            }
            span {
              font-size: 18px;
              @media screen and (max-width: 768px) {
                font-size: 14px;
              }
            }
          }
          p {
            margin-top: 8px;
            font-size: 14px;
            @media screen and (max-width: 768px) {
              font-size: 12px;
              margin-top: 6px;
            }
          }
        }
      }
    }
  }
}

.section-mentaro {
  position: relative;
  &::before {
    content: "";
    position: absolute;
    z-index: -1;
    background: url(/facetofes/2026/img/illust/chiemaru03.png) no-repeat center center / contain;
    width: 126px;
    height: 146px;
    bottom: -60px;
    right: -50px;
    transform: rotate(18deg);
    z-index: 12;
    @media screen and (max-width: 768px) {
      width: 100px;
      bottom: -146px;
      right: -20px;
    }
  }
  .mentaro-title {
    p {
      margin-top: 30px;
      font-size: 18px;
      @media screen and (max-width: 768px) {
        font-size: 16px;
      }
    }
  }
  .mentaro-list {
    .mentaro-list-item {
      background-color: var(--white);
      border-radius: 16px;
      box-shadow: var(--ftf-shadow);
      display: flex;
      align-items: center;
      transition: all 0.3s;
      cursor: pointer;
      @media screen and (max-width: 768px) {
        flex-direction: column;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
      }
      &:hover {
        opacity: 0.7;
      }
      .mentaro-list-item__image {
        width: 40%;
        background-color: #F0FFF6;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        @media screen and (max-width: 768px) {
          width: 100%;
        }
      }
      .mentaro-list-item__text {
        padding: 30px 93px 30px 40px;
        position: relative;
        width: 60%;
        @media screen and (max-width: 768px) {
          padding: 24px 16px 20px 16px;
          width: 100%;
        }
        &::before {
          content: "";
          position: absolute;
          right: 30px;
          bottom: 30px;
          width: 36px;
          height: 36px;
          background: url(/facetofes/2026/img/icon/icon-green-btn.svg) no-repeat top center / contain;
          @media screen and (max-width: 768px) {
            right: 14px;
            bottom: 20px;
            width: 24px;
            height: 24px;
          }
        }
        h4 {
          font-size: 28px;
          line-height: 1.4;
          font-weight: bold;
          text-align: left;
          margin-bottom: 20px;
          @media screen and (max-width: 768px) {
            font-size: 22px;
            margin-bottom: 16px;
          }
        }
        .user {
          display: flex;
          align-items: flex-start;
          padding-top: 20px;
          position: relative;
          flex-wrap: wrap;
          @media screen and (max-width: 768px) {
            flex-direction: column;
            padding-top: 16px;
          }
          &::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            background-image : linear-gradient(to right, var(--green-primary) 2px, transparent 2px);
            background-size: 10px 2px;
            background-repeat: repeat-x;
            background-position: bottom;
            width: 100%;
            height: 2px;
          }
          h5 {
            color: var(--green-primary);
            width: 110px;
            margin-top: 13px;
            margin-right: 20px;
            font-weight: bold;
            white-space: nowrap;
            text-align: left;
            @media screen and (max-width: 768px) {
              margin: 0 0 10px;
            }
            &.toudan {
              @media screen and (min-width: 768px) {
                margin-top: 8px;
              }
            }
          }
          .user-desc {
            &.three-columns {
              gap: 10px;
              @media screen and (max-width: 768px) {
                grid-template-columns: repeat(2, 1fr)
              }
            }
            .user-info {
              display: flex;
              align-items: center;
              gap: 8px;
              img {
                width: 48px;
                height: 48px;
                border-radius: 50%;
                object-fit: cover;
              }
              p {
                font-size: 14px;
                white-space: nowrap;
                @media screen and (max-width: 768px) {
                  font-size: 12px;
                }
              }
            }
          }
        }
      }
    }
  }
}

.section-booth {
  position: relative;
  .booth-bg {
    position: relative;
    z-index: 1;
    &::before, &::after {
      content: "";
      position: absolute;
      display: block;
    }
    &::before {
      background: url(/facetofes/2026/img/bg/bg-full-gray01.png) no-repeat top center / cover;
      width: 100vw;
      height: 90%;
      top: -2vw;
      left: 50%;
      transform: translate(-50%);
      z-index: -2;
      @media screen and (max-width: 768px) {
        background: url(/facetofes/2026/img/bg/bg-full-gray01_sp.png) repeat-y top center / contain;
        width: 100%;
        top: 180px;
        height: 92%;
        left: 0;
        transform: none;
      }
    }
    &::after {
      @media screen and (max-width: 768px) {
        background: var(--gray);
        bottom: 100px;
        left: 0;
        width: 100%;
        height: 92%;
        z-index: -3;
      }
    }
  }
  .booths-list {
    position: relative;
    &::before, &::after {
      content: "";
      position: absolute;
      z-index: -1;
    }
    &::before {
      background: url(/facetofes/2026/img/illust/illust02.png) no-repeat center center / contain;
      width: 400px;
      height: 308px;
      top: 37px;
      right: -21vw;
      transform: scale(-1, 1);
      @media screen and (max-width: 768px) {
        width: 328px;
        top: 865px;
        right: -180px;
      }
    }
    &::after {
      content: "";
      position: absolute;
      background: url(/facetofes/2026/img/illust/illust05.png) no-repeat center center / contain;
      width: 309px;
      height: 324px;
      top: 500px;
      left: -17vw;
      @media screen and (max-width: 768px) {
        width: 280px;
        top: 2288px;
        left: -160px;
      }
    }
  }
  .illust-box {
    position: relative;
    &::before {
      content: "";
      position: absolute;
      z-index: -1;
      background: url(/facetofes/2026/img/illust/illust04.png) no-repeat center center / contain;
      width: 400px;
      height: 308px;
      top: -500px;
      right: -178px;
      transform: scale(-1, 1);
      z-index: -1;
      @media screen and (max-width: 768px) {
        width: 283px;
        top: -923px;
        right: -137px;
        z-index: -1;
      }
    }
  }
}

.section-thanks {
  .thanks-contents {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 140px;
    position: relative;
    @media screen and (max-width: 768px) {
      padding: 0 44px;
    }
    &::before, &::after {
      content: "";
      position: absolute;
      display: block;
      width: 110px;
      height: 100%;
      top: 0;
      @media screen and (max-width: 768px) {
        width: 40px;
      }
    }
    &::before {
      background: url(/facetofes/2026/img/bg/campus-bg01.png) repeat-y top center / cover;
      left: 0;
      @media screen and (max-width: 768px) {
        background-size: contain;
      }
    }
    &::after {
      background: url(/facetofes/2026/img/bg/campus-bg02.png) repeat-y top center / cover;
      right: 0;
      @media screen and (max-width: 768px) {
        background-size: contain;
      }
    }
    h3 {
      max-width: 240px;
      width: 100%;
      margin: 0 auto;
      @media screen and (max-width: 768px) {
        max-width: 120px;
      }
    }
    .thanks-contents__bg {
      background-image: url(/facetofes/2026/img/bg/bg-letter.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
      background-position: center center;
      padding: 54px 40px;
      @media screen and (max-width: 768px) {
        padding: 30px 16px 24px;
        background-image:  none;
        background-color: var(--white);
        box-shadow: var(--ftf-shadow);
        border-radius: 16px;
      }
      .concept {
        margin: 36px 40px 20px;
        background: url(/facetofes/2026/img/bg/bg-letter-dashed.svg) repeat-y top center / 763px auto;
        @media screen and (max-width: 768px) {
          background-size: auto;
          background-image: url(/facetofes/2026/img/bg/bg-letter-dashed_sp.svg);
          margin: 24px 0 0;
        }
        p {
          line-height: 56px;
          @media screen and (max-width: 768px) {
            line-height: 44.5px;
          }
        }
        .loadmap {
          max-width: 496px;
          width: 100%;
          margin: 20px auto 0;
        }
        .open-time {
          margin-top: 16px;
          position: relative;
          font-size: 28px;
          line-height: 56px;
          font-weight: bold;
          color: var(--blue-primary);
          padding-left: 50px;
          display: inline-block;
          @media screen and (max-width: 768px) {
            margin-top: 12px;
            font-size: 18px;
            padding-left: 32px;
            line-height: 44px;
            white-space: nowrap;
          }
          &::after {
            content: "";
            position: absolute;
            display: block;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            width: 38px;
            height: 38px;
            background: url(/facetofes/2026/img/icon/icon-time.svg) no-repeat center center / contain;
            @media screen and (max-width: 768px) {
              width: 24px;
              height: 24px;
            }
          }
        }
        .caution{
          margin-top: 20px;
          font-size: 12px;
          @media screen and (max-width: 768px) {
            margin-top: 16px;
            font-size: 10px;
          }
        }
      }
    }
  }
}
