.awards {

  /* Layout
  * ------------------------ */

  .inner {
    max-width: 75rem;
    margin: 0 auto;

    @media (max-width: 959px) {
      padding: 0 1rem;
    }
  }

  /* Typo
  * ------------------------ */

  main p {
    line-height: 1.75;
  }

  /*
  * ----------------------- */
  .button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    height: 3rem;
    padding: 0 1.5rem 0 1.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 0.5rem;
    background: #000;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.08);
    color: #fff;
    text-decoration: none;
    position: relative;
    &::after {
      content: "";
      display: block;
      width: 0.5rem;
      height: 0.8125rem;
      background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="13" viewBox="0 0 8 13" fill="none"><path d="M1 1.00008L6.49996 6.50004L1 12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="white"/></svg>');
      background-repeat: no-repeat;
      background-position: 0 0;
      background-size: 0.5rem auto;
    }

    &::before {
      content: "";
      opacity: 0;
      background: #fff3;
      width: 100%;
      height: 100%;
      display: block;
      position: absolute;
      inset: 0;
    }
    @media ( min-width: 960px ){
      &:hover {
        &::before {
          opacity: 1;
        }
        &::after {
          animation: arrow-sweep .3s ease;
        }
      }
    }
    @media ( max-width: 767px ){
      & span {
        flex: 1;
        text-align: center;
      }
    }
  }


  /* partner_navi
  * ----------------------- */
  .partner_navi {
    background: #fff;
  }

  .partner_navi a {
    color: #000;
  }

  .navi_list .link_to_inquiry a {
    border-color: #D2D2D2;
  }

  @media ( max-width: 959px ){
    .partner_navi .inner {
      padding: 0;
    }

    .partner_navi .service_title {
      background: #fff;
    }

    .partner_navi .sp_navi_open {
      line-height: 0;
    }

    .partner_navi .navi_list {
      height: calc(100dvh - 100px - env(safe-area-inset-bottom, 0));
      top: 100px;
    }
  }

  /* HERO
  * ----------------------- */
  .hero {
    text-align: center;
    padding: max(4.75rem,5.2778vw) 0;
    background: url(../images/awards/bg-hero-pc.png) no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    &::before {
      content: '';
      display: block;
      width: max(40.5rem, 45vw);
      height: max(40.5rem, 45vw);
      border-radius: 50%;
      background: #fff;
      filter: blur(20px);
      position: absolute;
      inset: 0;
      margin: auto;
    }

    @media ( max-width: 767px ){
      padding: 0;
      background: #fff;
      &::before {
        display: none;
      }
    }
  }

  .hero__contents {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;

    & p {
      font-size: max(1rem, 1.1111vw);
    }

    @media ( max-width: 767px ){
      gap: 0;
      & p {
        padding: 1.5rem 1.5rem 2rem;
        font-size: 1rem;
      }
    }
  }

  .hero__headline {
    width: max(31.0625rem,34.5139%);
    margin: 0 auto;
    & img {
      width: 100%;
    }
    @media ( max-width: 767px ){
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 16.25rem;
      background: url(../images/awards/bg-hero-sp.png) no-repeat center center / cover;
      position: relative;
      & img {
        width: 8.21625rem;
        position: relative;
      }

      &::before {
        content: "";
        display: block;
        width: 13.625rem;
        height: 13.625rem;
        border-radius: 50%;
        background: #fff;
        filter: blur(0.5rem);
        position: absolute;
        inset: 0;
        margin: auto;
      }
    }
  }

  /* Showcase
  * ----------------------- */
  .showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: url(../images/awards/bg-showcase-pc.png) no-repeat center center / cover;
    color: #fff;
    text-align: center;
    padding: 4.5rem 0 4rem;

    @media ( max-width: 767px ){
      padding: 3.5rem 1rem;
      gap: 1rem;
    }
  }

  /* Slider */
  .slider {
    overflow: hidden;
    --slider-scroll-speed: 30;

    @media ( max-width: 767px ){
      margin: 0 -1rem;
    }
  }

  .slider__track {
    display: flex;
    width: max-content;
  }

  .slider__item {
    flex-shrink: 0;
    width: 24rem;
    height: 14.4375rem;
    margin-right: 1.5rem;
    border-radius: 1rem;

    @media ( max-width: 767px ){
      width: 17rem;
      height: 10.1875rem;
    }
  }

  .slider__item img {
    display: block;
    width: 100%;
    height: auto;
  }

  .slider__track--animate {
    animation: slider-scroll linear infinite;
  }

  /* contents
  * ----------------------- */

  .contents {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 5rem 0;
    position: relative;

    &::before {
      content: "";
      display: block;
      width: 100%;
      height: 100%;
      background: url(../images/awards/bg-contents-pc.svg) no-repeat center top / 100% auto;
      position: absolute;
      top: -3.19444vw;
      left: 0;
    }

    @media ( max-width: 767px ){
      padding: 3rem 0;
      &::before {
        width: 100%;
        height: 83.8462vw;
        background-image: url(../images/awards/bg-contents-sp.svg);
        top: -5.1282vw;
      }
    }
  }

  .contents__layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;

    @media ( max-width: 767px ){
      gap: 2.5rem;
    }
  }

  .contents__headline {
    line-height: 1;
    text-align: center;
    margin: 0 0 2rem;
    @media ( max-width: 767px ){
      margin: 0 0 1.5rem;
    }
  }

  /* contents */
  .contents__section {
    display: grid;
    grid-template-columns: 34.78261% 1fr;
    gap: 1.5rem 2.5rem;
    padding: 3rem;
    background: #FFF5F7;
    position: relative;

    &::before {
      content: "";
      display: block;
      width: 3.80631rem;
      height: 3.80631rem;
      background: url(../images/awards/deco-ribbon.svg) no-repeat center center / 100%;
      position: absolute;
      inset: -2.25rem 0 0;
      margin: 0 auto;
    }

    &.-gold {
      background: url(../images/awards/bg-partner-of-the-year-pc.png) no-repeat center center / cover;
      &::before {
        width: 5.43756rem;
        height: 5.43756rem;
        background-image: url(../images/awards/deco-ribbon-gold.svg);
        inset: -3.25rem 0 0;
      }

      & .contents__lead {
        color: #000;
        border-bottom: 1px solid rgba(124, 82, 0, 0.50);
      }
    }

    &.-short {
      .contents__lead {
        grid-column: 2;
        text-align: left;
        padding: 0 0 1rem;
        margin: 0;
        line-height: 1.5;
      }

      .contents__company {
        grid-row: 2 / span 3;
      }
    }

    @media ( max-width: 767px ){
      display: flex;
      flex-direction: column;
      padding: 3rem 1rem;
      &::before {
        width: 2.5rem;
        height: 2.5rem;
        inset: -1.47rem 0 0;
      }

      &.-gold {
        &::before {
          width: 4rem;
          height: 4rem;
          inset: -2.53rem 0 0;
        }
      }
      &.-short {
        .contents__lead {
          text-align: center;
        }
      }
    }
  }

  .contents__title {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    text-align: center;
    & em {
      font-family: "Inter", sans-serif;
      font-style: normal;
      font-size: 3.25rem;
      font-weight: 600;
      line-height: 1;
    }

    & span {
      font-size: 1.25rem;
      line-height: 1.6;
    }

    @media ( max-width: 767px ){
      gap: 0.25rem;
      & em {
        font-size: 2rem;
      }

      & span {
        font-size: 1rem;
      }
    }
  }

  .contents__lead {
    grid-column: span 2;
    font-family: "Noto Serif JP", serif;
    padding: 0 2.5rem 1rem 2.5rem;
    margin: 0 0 1.5rem;
    border-bottom: 1px solid #F57;
    color: #F57;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;

    @media ( max-width: 767px ){
      font-size: 1rem;
      padding: 0 0 1rem;
      margin: 0;
    }
  }

  .contents__company {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    @media ( max-width: 767px ){
      align-items: stretch;
      margin: 0 0 1rem;
    }
  }

  .contents__figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 14.4375rem;
    padding: 0 1rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 20px 20px 0 rgba(139, 30, 51, 0.04);

    @media ( max-width: 767px ){
      height: 8.5rem;
      padding: 1.5rem 1rem;

      &.logo-optage {
        padding: 1.5rem 3.5rem;
      }
      &.logo-hitachi {
        padding: 1.5rem 3rem;
      }
      &.logo-net-assist {
        padding: 1.5rem;
      }
    }
  }

  .contents__text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    & dl {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      & dt {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.7;
        &::before {
          content: "";
          display: block;
          width: 1.8745rem;
          height: 1.62313rem;
          background: url(../images/awards/icon-title.svg) no-repeat center center / 100%;
        }
      }
    }
  }

  /* CTA */
  .cta {
    padding: 5rem 0 7.5rem;
    background: url(../images/awards/bg-cta-pc.png) no-repeat center center / cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.30);
    text-align: center;
    color: #fff;

    @media ( max-width: 767px ){
      padding: 3.5rem 0;
    }
  }

  .cta__layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta__title {
    font-size: 2.5625rem;
    letter-spacing: -0.0625rem;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    word-break: keep-all;
    overflow-wrap: anywhere;
    & span {
      display: inline-block;
      padding: 0 0 0.25rem;
      border-bottom: 0.5rem solid #FFE655;
    }
    @media ( max-width: 767px ){
      font-size: 1.25rem;
      & span {
        display: block;
        padding: 0 0 0.5rem;
        border-bottom: 0.25rem solid #FFE655;
      }
    }
  }

  .cta__list {
    display: flex;
    gap: 2rem;
    & li {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      max-width: 36.75rem;

      & p {
        font-size: 0.875rem;
        & a {
          color: #fff;
        }
      }
    }

    @media ( max-width: 767px ){
      flex-direction: column;
      & li {
        max-width: 100%;
      }
    }
  }

  .cta__button {
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    height: 4.5rem;
    padding: 0 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #B1B1B1;
    background: #FFE655;
    color: #000;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: anywhere;
    position: relative;
    & strong {
      font-size: 1.4375rem;
      font-weight: 600;
    }
    &::after {
      content: "";
      display: block;
      width: 0.5rem;
      height: 0.8125rem;
      background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="13" viewBox="0 0 8 13" fill="none"><path d="M1 1.00008L6.49996 6.50004L1 12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="black"/></svg>') no-repeat center center / 100%;
    }
    &::before {
      content: "";
      opacity: 0;
      background: #0001;
      width: 100%;
      height: 100%;
      display: block;
      position: absolute;
      inset: 0;
    }
    @media ( min-width: 960px ){
      &:hover {
        &::before {
          opacity: 1;
        }
        &::after {
          animation: arrow-sweep .3s ease;
        }
      }
    }
    @media ( max-width: 767px ){
      font-size: 1rem;
      line-height: 1.4;

      & span {
        flex: 1;
      }
      & strong {
        font-size: 1rem;
      }
    }
  }
}

@keyframes arrow-sweep {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 0.5rem 0;
  }
  51% {
    background-position: -0.5rem 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes slider-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider__track--animate {
    animation-play-state: paused;
  }
}
