@layer base;

@layer modules {
  .top-area-article {
    padding: 48px var(--SPACING_CONTENT);
    position: relative;

    &:before {
      content: "";
      z-index: -1;
      background-color: var(--COLOR_BEIGE_DARK);
      width: 100%;
      height: calc(100% - 81px);
      position: absolute;
      bottom: 0;
      left: 0;
    }

    @media (width >= 768px) {
      padding-bottom: 64px;

      &:before {
        height: calc(100% - 117px);
      }
    }
  }

  .top-area-article__inner {
    max-width: 1360px;
    margin: 0 auto;
    position: relative;

    @media (width >= 768px) {
      &:after {
        content: "";
        background-image: url("/assets/img/pages/index-line-3.svg");
        width: 261px;
        height: 255px;
        position: absolute;
        top: -158px;
        left: -236px;
      }
    }
  }

  .top-area-article__body {
    margin-top: 40px;
  }

  .top-area-article__row {
    row-gap: 32px;
    display: grid;

    & + & {
      border-top: 1px solid var(--COLOR_PURPLE);
      margin-top: 40px;
      padding-top: 40px;
    }

    @media (width >= 768px) {
      grid-template-columns: 44.8529% 52.7941%;
      column-gap: 32px;
      min-height: 498px;

      & + & {
        margin-top: 48px;
        padding-top: 48px;
      }
    }
  }

  .top-area-article__cluster {
    @media (width >= 768px) {
      position: relative;
      overflow: hidden;
    }
  }

  .top-area-article__heading {
    & img {
      width: auto;
      height: 35px;
    }

    @media (width >= 768px) {
      & img {
        height: 50px;
      }
    }
  }

  .top-area-article__carousel {
    & > :first-child {
      margin-top: 0;
    }

    @media (width >= 768px) {
      position: absolute;
      inset: 0;
    }
  }

  .top-area-article__description, .top-area-article__pickup {
    margin-top: 24px;
  }

  .top-area-article__sp-link {
    justify-content: center;
    margin-top: 24px;
    display: flex;

    @media (width >= 768px) {
      display: none;
    }
  }

  .top-area-article__pc-link {
    display: none;

    @media (width >= 768px) {
      margin-top: 24px;
      display: block;
    }
  }

  .top-area-events {
    --height-background: 643px;
    min-height: var(--height-background);
    padding: 56px var(--SPACING_CONTENT) 0;
    position: relative;

    &:before, &:after {
      content: "";
      z-index: -1;
      width: 100%;
      height: var(--height-background);
      position: absolute;
      top: 0;
      left: 0;
    }

    &:before {
      background: url("/assets/img/pages/index-background-1-sp.webp") center / cover no-repeat;
    }

    &:after {
      background-color: color-mix(in srgb, var(--COLOR_PURPLE) 80%, transparent);
      background-image: url("/assets/img/common/background-dot.svg");
    }

    @media (width >= 768px) {
      --height-background: 722px;
      padding-top: 64px;

      &:before {
        background-image: url("/assets/img/pages/index-background-1-pc.webp");
      }
    }
  }

  .top-area-events__inner {
    max-width: 1360px;
    margin: 0 auto;
  }

  .top-area-events__body {
    background-color: var(--COLOR_BEIGE_DARK);
    border-radius: 4px;
    margin-top: 40px;
    padding: 24px 16px 32px;

    @media (width >= 768px) {
      margin-top: 16px;
      padding: 64px 56px;
    }
  }

  .top-area-events__content {
    & > :first-child {
      margin-top: 0;
    }
  }

  .top-area-events__carousel {
    & > :first-child {
      margin-top: 0;
    }
  }

  .top-area-events__all {
    justify-content: center;
    margin-top: 24px;
    display: flex;
  }

  .top-area-hero {
    grid-template-areas: "image"
                         "concept"
                         "controls"
                         "quick"
                         "primary";
    display: grid;
    overflow: hidden;

    @media (width >= 768px) {
      grid-template: "concept carousel"
                     "quick quick"
                     "primary primary"
                     / 1fr 48.8281%;
      column-gap: 16px;
    }

    @media (width >= 1024px) {
      grid-template: "concept carousel"
                     "quick carousel" 36px
                     "quick primary"
                     / 1fr 60.6445%;
      row-gap: 16px;
    }

    @media (width >= 1200px) {
      grid-template-rows: auto 24px auto;
      grid-template-columns: 1fr 63%;
    }

    @media (width >= 1440px) {
      grid-template-rows: auto 40px auto;
      grid-template-columns: 1fr 63.1944%;
      gap: 24px;
    }

    @media (width >= 1920px) {
      grid-template-rows: auto 53px auto;
      grid-template-columns: 1fr 69.2708%;
    }
  }

  .top-area-hero__concept {
    z-index: 1;
    grid-area: concept;
    margin-top: -55px;
    position: relative;

    &:before {
      content: "";
      background-image: url("/assets/img/common/background-dot.svg");
      border-radius: 0 4px 4px 0;
      width: 38px;
      height: 237px;
      position: absolute;
      top: 71px;
      left: 0;
    }

    @media (width >= 768px) {
      flex-direction: column;
      justify-content: center;
      margin-top: 0;
      padding-bottom: 5px;
      display: flex;

      &:before {
        width: 85px;
        height: 100%;
        top: 0;
      }
    }

    @media (width >= 1024px) {
      padding-bottom: 1px;
    }

    @media (width >= 1200px) {
      padding-top: 7px;
      padding-bottom: 0;
    }

    @media (width >= 1440px) {
      padding-top: 2px;
    }
  }

  .top-area-hero__concept-catch {
    background-color: var(--COLOR_WHITE);
    border-top-left-radius: 4px;
    width: fit-content;
    margin: 0 0 0 auto;
    padding: 20px 18px 0 30px;
    position: relative;

    & img {
      width: 142px;
    }

    &:before {
      content: "";
      background: url("/assets/img/pages/index-line-1.svg") center / 100% no-repeat;
      width: 279px;
      height: 35px;
      position: absolute;
      top: calc(100% - 4px);
      left: -33px;
    }

    @media (width >= 768px) {
      background-color: #0000;
      width: auto;
      margin: 0 0 0 113px;
      padding: 0;

      & img {
        width: 161px;
      }

      &:before {
        background-image: url("/assets/img/pages/index-line-1-md.svg");
        width: 318px;
        height: 40px;
        top: calc(100% - 2px);
        left: -49px;
      }
    }

    @media (width >= 1200px) {
      & img {
        width: 192px;
      }

      &:before {
        background-image: url("/assets/img/pages/index-line-1-xl.svg");
        width: 381px;
        height: 48px;
        top: calc(100% + 5px);
        left: -70px;
      }
    }

    @media (width >= 1440px) {
      margin-left: 112px;

      & img {
        width: 242px;
      }

      &:before {
        background-image: url("/assets/img/pages/index-line-1-2xl.svg");
        width: 479px;
        height: 61px;
        left: -88px;
      }
    }

    @media (width >= 1920px) {
      margin-left: 136px;

      & img {
        width: 326px;
      }

      &:before {
        background-image: url("/assets/img/pages/index-line-1-max.svg");
        width: 600px;
        height: 80px;
        top: calc(100% + 8px);
        left: -92px;
      }
    }
  }

  .top-area-hero__concept-lead-ja {
    margin: -8px var(--SPACING_CONTENT) 0 calc(59 / 375 * 100%);
    letter-spacing: .05em;
    font-size: 1.4rem;
    line-height: 2;
    position: relative;

    @media (width >= 768px) {
      margin: 32px 0 0 117px;
    }

    @media (width >= 1200px) {
      margin: 51px 0 0 115px;
      font-size: 1.6rem;
    }

    @media (width >= 1440px) {
      margin-top: 45px;
    }

    @media (width >= 1920px) {
      margin: 64px 0 0 134px;
      font-size: 2rem;
    }
  }

  .top-area-hero__concept-lead-en {
    margin: 24px var(--SPACING_CONTENT) 0 calc(55 / 375 * 100%);

    & img {
      width: 304px;
    }

    @media (width >= 768px) {
      margin: 17px 0 0 115px;

      & img {
        width: 251px;
      }
    }

    @media (width >= 1200px) {
      margin: 22px 0 0 113px;

      & img {
        width: 300px;
      }
    }

    @media (width >= 1440px) {
      margin: 33px 0 0 120px;

      & img {
        width: 377px;
      }
    }

    @media (width >= 1920px) {
      margin: 34px 0 0 132px;

      & img {
        width: 433px;
      }
    }
  }

  .top-area-hero__concept-link-sp {
    margin: 24px var(--SPACING_CONTENT) 0 calc(58 / 375 * 100%);

    @media (width >= 768px) {
      display: none;
    }
  }

  .top-area-hero__concept-link-pc {
    display: none;

    @media (width >= 768px) {
      width: 100%;
      height: 100%;
      display: block;
      position: absolute;
      top: 0;
      left: 0;
    }
  }

  .top-area-hero__image {
    grid-area: image;
    overflow: hidden;

    @media (width >= 768px) {
      grid-area: carousel;
    }
  }

  .top-area-hero__image-container {
    display: flex;
  }

  .top-area-hero__image-slide {
    flex: 0 0 100%;
    min-width: 0;

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

    @media (width >= 768px) {
      & img {
        border-radius: 4px 0 0 4px;
      }
    }
  }

  .top-area-hero__controls {
    grid-area: controls;
    justify-content: center;
    align-items: center;
    column-gap: 8px;
    margin: 16px 8px 0 16px;
    display: flex;

    @media (width >= 768px) {
      background-color: var(--COLOR_WHITE);
      border-top-left-radius: 4px;
      grid-area: carousel;
      width: fit-content;
      height: fit-content;
      margin: auto 0 0 auto;
      padding: 4px 4px 0 24px;
      position: relative;
    }

    @media (width >= 1440px) {
      padding: 8px 24px 0 32px;
    }
  }

  .top-area-hero__controls-dots {
    flex-wrap: wrap;
    gap: 8px 16px;
    display: flex;

    & button {
      background-color: var(--COLOR_WHITE);
      border: 1px solid var(--COLOR_PURPLE);
      border-radius: 50%;
      width: 10px;
      height: 10px;

      &[aria-pressed="true"] {
        background-color: var(--COLOR_PURPLE);
      }

      @media (width >= 768px) {
        transition: background-color var(--TRANSITION);

        @media (any-hover: hover) {
          &:hover {
            background-color: var(--COLOR_PURPLE);
          }
        }
      }
    }
  }

  .top-area-hero__controls-toggle {
    justify-content: center;
    align-items: center;
    column-gap: 11px;
    width: 48px;
    height: 48px;
    display: flex;
    position: relative;

    &:not(.is-paused):before {
      content: "";
      background-color: var(--COLOR_PURPLE);
      width: 48px;
      height: 48px;
      mask: url("/assets/img/common/ico-carousel-pause.svg") center / contain no-repeat;
    }

    &.is-paused {
      &:before {
        content: "";
        background-color: var(--COLOR_PURPLE);
        width: 48px;
        height: 48px;
        mask: url("/assets/img/common/ico-carousel-play.svg") center / contain no-repeat;
      }
    }
  }

  .top-area-hero__quick {
    grid-area: quick;
    margin: 8px 16px 0 0;

    @media (width >= 768px) {
      margin-top: 16px;
    }

    @media (width >= 1024px) {
      margin-top: 0;
      margin-right: 0;
    }
  }

  .top-area-hero__quick-inner {
    --border-width: 1px;
    --background-color: var(--COLOR_PURPLE);
    background-color: var(--background-color);
    color: var(--COLOR_WHITE);
    border-radius: 0 4px 4px 0;
    padding: 32px 16px;
    font-size: 1.4rem;

    @media (width >= 768px) {
      padding: 16px 32px;
    }

    @media (width >= 1024px) {
      padding: 32px 16px;
    }

    @media (width >= 1024px) {
      padding: 40px 24px;
    }

    @media (width >= 1920px) {
      padding: 40px 48px;
      font-size: 1.6rem;
    }
  }

  .top-area-hero__quick-list {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    position: relative;

    &:before {
      content: "";
      width: 100%;
      height: var(--border-width);
      background-color: var(--background-color);
      position: absolute;
      bottom: 0;
      left: 0;
    }

    @media (width >= 768px) {
      grid-template-columns: repeat(4, 1fr);
    }

    @media (width >= 1024px) {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .top-area-hero__quick-item {
    border-bottom: var(--border-width) solid;
  }

  .top-area-hero__quick-link {
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 16px 0;
    display: flex;

    &:where([target="_blank"]) {
      column-gap: 4px;
    }

    @media (width >= 768px) {
      transition: background-color var(--TRANSITION),
      color var(--TRANSITION);

      &:where([target="_blank"]) {
        column-gap: 0;
      }

      @media (any-hover: hover) {
        &:hover {
          background-color: var(--COLOR_WHITE);
          color: var(--COLOR_PURPLE);
        }
      }
    }

    @media (width >= 1024px) {
      padding-left: 8px;
    }

    @media (width >= 1200px) {
      padding-left: 0;
    }

    @media (width >= 1920px) {
      column-gap: 4px;
    }
  }

  .top-area-hero__quick-icon {
    flex-shrink: 0;
  }

  .top-area-hero__primary {
    grid-area: primary;
    margin: 24px 16px;

    @media (width >= 1024px) {
      margin: 0 16px 16px 0;
    }

    @media (width >= 1440px) {
      margin: 0 24px 24px 0;
    }
  }

  .top-area-hero__primary-list {
    row-gap: 16px;
    display: grid;

    @media (width >= 768px) {
      grid-template-columns: repeat(2, 1fr);
      column-gap: 16px;
    }
  }

  .top-area-hero__primary-link {
    background-color: var(--COLOR_BEIGE_DARK);
    border-radius: 4px;
    align-items: end;
    column-gap: 8px;
    padding: 16px 8px 16px 16px;
    display: flex;

    @media (width >= 768px) {
      height: 100%;
      transition: background-color var(--TRANSITION);
      padding: 16px 8px 16px 16px;

      @media (any-hover: hover) {
        &:hover {
          background-color: var(--COLOR_BEIGE_LIGHT);
        }
      }
    }

    @media (width >= 1024px) {
      padding: 16px 16px 16px 24px;
    }

    @media (width >= 1920px) {
      padding: 24px 16px 24px 32px;
    }
  }

  .top-area-hero__primary-content {
    flex: 1;
    height: 100%;
  }

  .top-area-hero__primary-label {
    align-items: center;
    column-gap: 8px;
    font-size: 1.6rem;
    display: flex;

    &:before {
      content: "";
      background: url("/assets/img/common/logo-symbol.svg") center / contain no-repeat;
      width: 30px;
      height: 28px;
    }

    @media (width >= 768px) {
      transition: color var(--TRANSITION);

      @media (any-hover: hover) {
        .top-area-hero__primary-link:hover & {
          color: var(--COLOR_PURPLE);
          text-decoration: underline;
        }
      }
    }

    @media (width >= 1024px) {
      letter-spacing: .05em;
    }

    @media (width >= 1200px) {
      font-size: 1.8rem;

      &:before {
        width: 39px;
        height: 35px;
      }
    }

    @media (width >= 1920px) {
      font-size: 2rem;
    }
  }

  .top-area-hero__primary-description {
    color: var(--COLOR_PURPLE);
    margin-top: 4px;
    font-size: 1.4rem;

    @media (width >= 1024px) {
      margin-top: 8px;
    }
  }

  .top-area-hero__primary-icon {
    @media (width >= 1024px) {
      justify-content: center;
      width: 32px;
      display: flex;
    }
  }

  .top-area-hero__cursor {
    pointer-events: none;
    z-index: 1000;
    background-color: color-mix(in srgb, var(--COLOR_WHITE) 65%, transparent);
    opacity: 0;
    border-radius: 50%;
    place-items: center;
    width: 218px;
    height: 218px;
    transition: opacity .4s ease-in, scale .4s cubic-bezier(.4, 0, 1, 1);
    display: grid;
    position: fixed;
    top: 0;
    left: 0;
    translate: -50% -50%;
    scale: .4;

    &.is-visible {
      opacity: 1;
      transition: opacity .4s ease-out, scale .4s cubic-bezier(.2, 0, 0, 1);
      scale: 1;
    }

    & svg {
      width: 200px;
      height: 200px;
      fill: var(--COLOR_PURPLE);
      display: block;
    }

    & .arrow {
      transform-origin: 100px 100px;
      transition: scale .3s ease-in;
      scale: 0;
    }

    &.is-visible .arrow {
      transition: scale .35s cubic-bezier(.2, 0, 0, 1.2);
      scale: 1;
    }

    & .ring {
      transform-origin: center;
      animation: 6s linear infinite paused hero-cursor-rotate;
    }

    &.is-moving .ring {
      animation-play-state: running;
    }
  }

  @keyframes hero-cursor-rotate {
    to {
      transform: rotate(1turn);
    }
  }

  .top-area-information {
    padding: 32px 0 0 var(--SPACING_CONTENT);

    @media (width >= 768px) {
      flex-direction: row-reverse;
      column-gap: 24px;
      padding: 0;
      display: flex;
    }

    @media (width >= 1920px) {
      max-width: 1920px;
      margin: 0 auto;
    }
  }

  .top-area-information__inner {
    --bg: var(--COLOR_BEIGE_DARK);
    background-color: var(--bg);
    border-radius: 4px 0 0 4px;
    padding: 40px 16px 40px 24px;

    @media (width >= 768px) {
      flex: 1;
      min-width: 60%;
      margin-top: 80px;
      padding: 64px 56px 56px;
      position: relative;

      &:before {
        content: "";
        background-image: url("/assets/img/pages/index-line-2.svg");
        width: 241px;
        height: 94px;
        position: absolute;
        top: -80px;
        right: 44px;
      }
    }

    @media (width >= 1536px) {
      display: flex;
    }

    @media (width >= 1920px) {
      &:after {
        content: "";
        border-image-source: linear-gradient(var(--bg), var(--bg));
        border-image-slice: 0 fill;
        border-image-width: 1;
        border-image-outset: 0 100vw 0 0;
        width: 1px;
        height: 100%;
        position: absolute;
        top: 0;
        left: 100%;
      }
    }
  }

  .top-area-information__body {
    margin-top: 16px;

    @media (width >= 768px) {
      margin-top: 32px;
    }

    @media (width >= 1536px) {
      border-left: 1px solid var(--COLOR_PURPLE);
      flex: 1;
      max-width: 886px;
      margin-top: 0;
      margin-left: 48px;
      padding-left: 48px;
    }
  }

  .top-area-information__list {
    row-gap: 8px;
    display: grid;

    @media (width >= 768px) {
      row-gap: 16px;
    }
  }

  .top-area-information__list-link {
    background-color: var(--COLOR_WHITE);
    border-radius: 4px;
    align-items: center;
    column-gap: 4px;
    padding: 8px 12px 8px 16px;
    display: flex;

    @media (width >= 768px) {
      transition: background-color var(--TRANSITION);
      padding: 16px 24px;

      @media (any-hover: hover) {
        &:hover {
          background-color: var(--COLOR_BEIGE_LIGHT);
        }
      }
    }
  }

  .top-area-information__list-content {
    flex-direction: column;
    flex: 1;
    row-gap: 4px;
    display: flex;

    @media (width >= 768px) {
      flex-direction: row;
      align-items: center;
      column-gap: 16px;
    }
  }

  .top-area-information__list-date {
    color: var(--COLOR_PURPLE);
    letter-spacing: .05em;

    @media (width >= 768px) {
      font-size: 1.4rem;
    }
  }

  .top-area-information__list-title {
    @media (width >= 768px) {
      flex: 1;

      @media (any-hover: hover) {
        .top-area-information__list-link:hover & {
          text-decoration: underline;
        }
      }
    }
  }

  .top-area-information__list-icon {
    display: flex;

    @media (width >= 768px) {
      transition: transform var(--TRANSITION);

      @media (any-hover: hover) {
        .top-area-information__list-link:hover & {
          transform: translateX(var(--TRANSLATE_HOVER_SM));
        }
      }
    }
  }

  .top-area-information__image {
    display: none;

    @media (width >= 768px) {
      border-radius: 0 4px 4px 0;
      height: fit-content;
      display: block;
      position: relative;
      overflow: hidden;

      &:after {
        content: "";
        background-image: url("/assets/img/common/background-dot.svg");
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
      }
    }
  }

  .top-area-links {
    padding: 48px var(--SPACING_CONTENT) 0;

    @media (width >= 768px) {
      padding-top: 80px;
    }
  }

  .top-area-links__inner {
    max-width: 1360px;
    margin: 0 auto;
  }

  .top-area-links__body {
    max-width: var(--WIDTH_CONTENT);
    margin: 24px auto 0;

    & > :first-child {
      margin-top: 0;
    }

    @media (width >= 768px) {
      margin-top: 32px;
    }
  }

  .top-area-news {
    padding: 48px var(--SPACING_CONTENT) 0;
    position: relative;

    &:before {
      content: "";
      z-index: -1;
      background-image: url("/assets/img/common/background-dot.svg");
      width: calc(100% - 48px);
      height: calc(100% - 306px);
      position: absolute;
      top: 78px;
      left: 0;
    }

    @media (width >= 768px) {
      &:before {
        width: 66.6667%;
        height: calc(100% - 434px);
        top: 116px;
      }
    }
  }

  .top-area-news__inner {
    max-width: 1360px;
    margin: 0 auto;
  }

  .top-area-news__body {
    background-color: var(--COLOR_WHITE);
    border-radius: 4px;
    margin-top: 32px;
    padding: 24px 0 0 16px;

    & > :first-child {
      margin-top: 0;
    }

    @media (width >= 768px) {
      margin-top: 24px;
      padding: 48px 0 0 48px;
    }
  }

  .top-area-news__list {
    & > :first-child {
      margin-top: 0;
    }
  }

  .top-area-news__all {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 24px;
    margin-top: 16px;
    display: flex;

    @media (width >= 768px) {
      flex-flow: wrap;
      column-gap: 32px;
    }
  }

  .top-area-pickup {
    --height-background: 340px;
    min-height: var(--height-background);
    padding: 56px var(--SPACING_CONTENT) 0;
    position: relative;

    &:before, &:after {
      content: "";
      z-index: -1;
      width: 100%;
      height: var(--height-background);
      position: absolute;
      top: 0;
      left: 0;
    }

    &:before {
      background: url("/assets/img/pages/index-background-1-sp.webp") center / cover no-repeat;
    }

    &:after {
      background-color: color-mix(in srgb, var(--COLOR_PURPLE) 80%, transparent);
      background-image: url("/assets/img/common/background-dot.svg");
    }

    @media (width >= 768px) {
      --height-background: 461px;
      padding-top: 64px;

      &:before {
        background-image: url("/assets/img/pages/index-background-1-pc.webp");
      }
    }
  }

  .top-area-pickup__inner {
    max-width: 1360px;
    margin: 0 auto;
  }

  .top-area-pickup__body {
    margin-top: 40px;

    @media (width >= 768px) {
      margin-top: 32px;
    }
  }

  .top-carousel {
    row-gap: 24px;
    margin-top: 40px;
    display: grid;

    @media (width >= 768px) {
      margin-top: 48px;
    }
  }

  .top-carousel__viewport {
    margin: 0 calc(var(--SPACING_CONTENT) * -1);
    padding-left: var(--SPACING_CONTENT);
    overflow: hidden;

    @media (width >= 768px) {
      margin: 0;
      padding-left: 0;
    }
  }

  .top-carousel__container {
    --slide-spacing: 16px;
    margin-left: calc(var(--slide-spacing) * -1);
    display: flex;
  }

  .top-carousel__slide {
    padding-left: var(--slide-spacing);
    flex: 0 0 276px;

    @media (width >= 768px) {
      --loop-buffer: 1px;
      flex: 0 0 calc(100% / var(--slides-per-view) + var(--loop-buffer));
      padding-right: var(--loop-buffer);

      &:not(:last-child) {
        margin-right: calc(var(--loop-buffer) * -1);
      }
    }
  }

  .top-carousel__controls {
    justify-content: space-between;
    align-items: center;
    column-gap: 16px;
    display: flex;

    @media (width >= 768px) {
      justify-content: end;
      column-gap: 24px;
    }

    @media (scripting: none) {
      display: none;
    }
  }

  .top-carousel__arrows {
    column-gap: 16px;
    display: flex;
  }

  .top-carousel__prev, .top-carousel__next {
    background-color: var(--COLOR_BEIGE_DARK);
    border-radius: 4px;
    place-items: center;
    width: 48px;
    height: 48px;
    display: grid;

    &:before {
      content: "";
      background-color: var(--COLOR_PURPLE);
      width: 100%;
      height: 100%;
      mask: url("/assets/img/common/ico-r.svg") center / contain no-repeat;
    }

    @media (width >= 768px) {
      transition: background-color var(--TRANSITION);

      &:before {
        transition: transform var(--TRANSITION);
      }

      @media (any-hover: hover) {
        &:hover {
          background-color: var(--COLOR_BEIGE_LIGHT);

          &:before {
            transform: translateX(var(--TRANSLATE_HOVER));
          }
        }
      }
    }
  }

  .top-carousel__prev {
    rotate: 180deg;
  }

  .top-carousel__dots {
    flex-wrap: wrap;
    gap: 8px 16px;
    display: flex;

    & button {
      border: 1px solid var(--COLOR_PURPLE);
      border-radius: 50%;
      width: 10px;
      height: 10px;

      &[aria-pressed="true"] {
        background-color: var(--COLOR_PURPLE);
      }

      @media (width >= 768px) {
        transition: background-color var(--TRANSITION);

        @media (any-hover: hover) {
          &:hover {
            background-color: var(--COLOR_PURPLE);
          }
        }
      }
    }
  }

  .top-carousel.is-disabled {
    & .top-carousel__container {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin-left: 0;
      display: grid;

      @media (width >= 768px) {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px 24px;
      }
    }

    & .top-carousel__viewport {
      margin: 0;
      padding-left: 0;
    }

    & .top-carousel__slide {
      padding-left: 0;
    }

    & .top-carousel__controls {
      display: none;
    }
  }

  .top-carousel.is-disabled[data-auto-disable="responsive"] {
    @media (width < 768px) {
      & .top-carousel__container:has(.top-carousel__slide:only-child) {
        display: flex;
      }
    }
  }

  .top-carousel--background-white {
    & .top-carousel__prev, & .top-carousel__next {
      background-color: var(--COLOR_WHITE);

      @media (width >= 768px) {
        @media (any-hover: hover) {
          &:hover {
            background-color: var(--COLOR_BEIGE_LIGHT);
          }
        }
      }
    }
  }

  .top-carousel[data-axis-pc="y"] {
    @media (width >= 768px) {
      column-gap: 16px;
      height: 100%;
      display: flex;

      & .top-carousel__viewport {
        flex: 1;
        min-height: 0;
      }

      & .top-carousel__container {
        --slide-spacing: 8px;
        height: 100%;
        margin-left: 0;
        margin-top: calc(var(--slide-spacing) * -1);
        flex-direction: column;
      }

      & .top-carousel__slide {
        --loop-buffer: 0px;
        min-height: 0;
        padding-left: 0;
        padding-top: var(--slide-spacing);
        flex: none;
      }

      & .top-carousel__controls, & .top-carousel__arrows {
        flex-direction: column;
        row-gap: 16px;
      }

      & .top-carousel__prev {
        rotate: -90deg;
      }

      & .top-carousel__next {
        rotate: 90deg;
      }

      & .top-carousel__dots {
        flex-direction: column;
        row-gap: 16px;
      }

      &.is-disabled {
        height: auto;

        & .top-carousel__container {
          grid-template-columns: 1fr;
          margin-top: 0;
        }

        & .top-carousel__slide {
          padding-top: 0;
        }
      }
    }
  }

  .top-carousel--spacing-pc-lg {
    @media (width >= 768px) {
      & .top-carousel__container {
        --slide-spacing: 24px;
      }
    }
  }

  .top-heading {
    color: var(--COLOR_PURPLE);
    flex-direction: column;
    display: flex;

    @media (width >= 768px) {
      flex-direction: row;
      align-items: center;
      column-gap: 32px;
    }
  }

  .top-heading__main img {
    width: auto;
    height: 78px;

    @media (width >= 768px) {
      height: 135px;
    }
  }

  .top-heading__sub {
    background-color: var(--COLOR_WHITE);
    border-top: 1px solid;
    border-bottom: 1px solid;
    align-items: center;
    min-height: 43px;
    padding: 8px;
    display: flex;

    @media (width >= 768px) {
      flex: 1;
      padding: 16px 24px;
      font-size: 1.8rem;
    }
  }

  .top-heading--sm {
    & .top-heading__main img {
      height: 60px;

      @media (width >= 768px) {
        height: 90px;
      }
    }

    & .top-heading__sub {
      background-color: #0000;
    }
  }

  .top-heading--white {
    color: var(--COLOR_WHITE);

    & .top-heading__sub {
      background-color: #0000;
    }
  }

  .top-heading--vertical {
    flex-direction: column;
    align-items: start;

    & .top-heading__sub {
      width: 100%;
    }
  }

  .top-panel-article {
    --background-color: var(--COLOR_WHITE);
    height: 100%;
    font-size: 1.4rem;
    display: block;
  }

  .top-panel-article__body {
    background-color: var(--background-color);
    height: 100%;
    transition: background-color var(--TRANSITION);
    border-radius: 4px;
    grid-template: "category"
                   "image"
                   "content"
                   "icon" 1fr;
    padding: 12px 16px 8px;
    display: grid;

    &:not(:has(.top-panel-article__category)) {
      padding-top: 16px;
    }

    @media (width >= 768px) {
      transition: background-color var(--TRANSITION);
      padding: 12px 24px;

      @media (any-hover: hover) {
        &:hover {
          background-color: var(--COLOR_BEIGE_LIGHT);
        }
      }
    }
  }

  .top-panel-article__category {
    height: fit-content;
    color: var(--COLOR_PURPLE);
    font-weight: var(--FONT_WEIGHT_BOLD);
    grid-area: category;
    align-items: center;
    column-gap: 4px;
    margin-bottom: 12px;
    display: flex;

    &:before {
      content: "[";
    }

    &:after {
      content: "]";
    }
  }

  .top-panel-article__content {
    grid-area: content;
    margin-top: 8px;
  }

  .top-panel-article__date {
    color: var(--COLOR_PURPLE);
    letter-spacing: .05em;
  }

  .top-panel-article__title {
    margin-top: 4px;

    @media (width >= 768px) {
      @media (any-hover: hover) {
        .top-panel-article:hover & {
          text-decoration: underline;
        }
      }
    }
  }

  .top-panel-article__icon {
    grid-area: icon;
    justify-content: end;
    align-items: end;
    margin-top: 8px;
    display: flex;
  }

  .top-panel-article__image {
    grid-area: image;
    display: flex;

    & img {
      aspect-ratio: 3 / 2;
      object-fit: cover;
      object-position: center;
      border-radius: 4px;
      width: 100%;
    }
  }

  .top-panel-article--image-top {
    & .top-panel-article__image img {
      object-position: top;
    }
  }

  .top-panel-article--category-float {
    padding-top: 13px;

    & .top-panel-article__body {
      padding-top: 24px;

      @media (width >= 768px) {
        padding-top: 16px;
      }
    }

    & .top-panel-article__category {
      margin-top: -37px;
      margin-bottom: 0;

      @media (width >= 768px) {
        margin-top: -29px;
        margin-left: -8px;
      }
    }
  }

  .top-panel-article--pc-horizontal {
    @media (width >= 768px) {
      & .top-panel-article__body {
        grid-template: "category category category"
                       "image content icon" 1fr
                       / minmax(auto, 236px) minmax(50%, 1fr) auto;
        padding: 16px;
      }

      & .top-panel-article__category {
        margin-left: 0;
      }

      & .top-panel-article__content {
        align-self: center;
        margin-top: 0;
      }

      & .top-panel-article__image {
        align-self: center;
        margin-right: 16px;
      }

      & .top-panel-article__icon {
        margin-top: 0;
      }
    }
  }
}

@layer layouts, utils;
