@charset "utf-8";
/*
 * - Base
 * - Layout
 * - Module
 * - Unique
 * - Theme
 * - State
 * - Utility
 */

/* Base ----------------------------------------------------------------------------------------- */

:root {
  --spacing: 4px;
  --header-height: 0;

  --font-normal: 'sans-serif';
  --font-bold: 'sans-serif';

  --line-height-narrow: 1.35;
  --line-height-medium: 1.5;
  --line-height-wide: 1.75;

  --color-news: #cc0000;
  --color-automobiles: #8ab13a;
  --color-motorcycle: #1184e2;
  --color-motorsports: #4449cb;
  --color-powerproducts: #efb71c;
  --color-innovation: #316855;
  --color-corporate: #8d4074;
  --color-feature: #000;
}

html {
  &[lang='en'] {
    --header-height: 65px;
    --font-normal: 'HondaGlobalFontEN-Regular', sans-serif;
    --font-bold: 'HondaGlobalFontEN-Bold', sans-serif;
  }

  &[lang='ja'] {
    --header-height: 0;
    --font-normal: 'HondaGlobalFontJP-Regular', sans-serif;
    --font-bold: 'HondaGlobalFontJP-Bold', sans-serif;
  }
}

body {
  font-family: var(--font-normal);
}

b,
em,
strong {
  font-family: var(--font-normal);
  font-style: normal;
  font-weight: normal;
}

@media (width >= 1025px) {
  html {
    &[lang='en'] {
      --header-height: 120px;
    }
  }
}

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

.l-content {
  padding-top: var(--header-height);
}

.l-content__outer {
  display: grid;
  grid-template-columns: 1fr minmax(272px, 1320px) 1fr; /* 272 = 320px - (16 * 2), 1320 = 1480 - (80 * 2) */
  gap: 0 clamp(1rem, -0.357rem + 5.79vw, 5rem); /* https://min-max-calculator.9elements.com/?16,80,375,1480 */
  padding: calc(var(--spacing) * 10) 0;
}

.l-content__outer--background {
  background-color: #efefef;
}

.l-content__outer--gradient {
  position: relative;

  /* gradient */
  &::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -10;
    display: block;
    width: 100%;
    height: 180px;
    content: '';
    background-image: linear-gradient(to bottom, #f9f9f9 0%, #eee 100%);
  }
}

.l-content__inner {
  grid-column: 2 / 3;

  > :is(:first-child) {
    margin-top: 0;
  }

  > :is(:last-child) {
    margin-bottom: 0;
  }
}

/* メインビジュアル用コンテナ */
.l-gradient-container {
  position: relative;

  /* gradient */
  &::before {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -10;
    width: 100%;
    height: 720px;
    content: '';
    background-image: linear-gradient(to bottom, #f9f9f9 0%, #eee 100%);
  }
}

.l-breadcrumb {
  margin-top: calc(var(--spacing) * 10);

  :where(li) {
    display: inline;

    /* separator */
    &::before {
      display: inline-block;
      width: 1px;
      height: 1em;
      margin-right: 0.5em;
      vertical-align: middle;
      background-color: #4c4c4c;
    }
  }

  :where(li + li) {
    margin-left: 0.5em;

    &::before {
      content: '';
    }
  }

  :where(a) {
    font-size: 1.2rem;
  }

  :where(em) {
    font-weight: normal;
  }
}

.l-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

@media (width >= 1025px) {
  .l-content__outer {
    padding: calc(var(--spacing) * 16) 0;

    &.l-content__outer--gradient {
      &::before {
        height: 260px;
      }
    }
  }

  .l-breadcrumb {
    margin-top: calc(var(--spacing) * 16);

    :where(a) {
      font-size: 1.4rem;
    }
  }
}

/* Module --------------------------------------------------------------------------------------- */

/* Module / Heading --------------------------------------------------------- */

.m-heading-type2 {
  margin-top: calc(var(--spacing) * 8);

  :where(h1, h2, h3, h4, h5, h6, em) {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    line-height: var(--line-height-narrow);
  }
}

.m-heading-type2__logo {
  position: relative;
  display: block;
  max-width: 130px;
  height: auto;

  :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
  }

  & + .m-heading-type2__text {
    position: relative;
    padding-left: 1em;
    margin-left: 1em;

    &::before {
      position: absolute;
      top: 50%;
      left: 0;
      display: block;
      width: 1px;
      height: 1em;
      content: '';
      background-color: #d9d9d9;
      transform: translateY(-50%);
    }
  }
}

@media (width >= 1025px) {
  .m-heading-type2 {
    margin-top: calc(var(--spacing) * 16);

    :where(h1, h2, h3, h4, h5, h6, em) {
      font-size: 1.8rem;
    }
  }

  .m-heading-type2__logo {
    max-width: 216px;
  }
}

.m-heading-type3 {
  margin-top: calc(var(--spacing) * 8);

  :where(h1, h2, h3, h4, h5, h6, em) {
    font-family: var(--font-bold);
    font-size: 2.4rem;
    font-weight: normal;
    line-height: var(--line-height-narrow);
  }
}

@media (width >= 1025px) {
  .m-heading-type3 {
    margin-top: calc(var(--spacing) * 16);

    :where(h1, h2, h3, h4, h5, h6, em) {
      font-size: 3.2rem;
    }
  }
}

.m-heading-type4 {
  margin-top: calc(var(--spacing) * 8);

  :where(h1, h2, h3, h4, h5, h6, em) {
    font-family: var(--font-bold);
    font-size: 1.6rem;
    font-weight: normal;
    line-height: var(--line-height-narrow);
  }
}

@media (width >= 1025px) {
  .m-heading-type4 {
    margin-top: calc(var(--spacing) * 16);

    :where(h1, h2, h3, h4, h5, h6, em) {
      font-size: 2.4rem;
    }
  }
}

/* Module / Text ------------------------------------------------------------ */

.m-text {
  margin-top: calc(var(--spacing) * 6);

  :where(p) {
    font-size: 1.4rem;
    line-height: var(--line-height-wide);
  }

  &.m-text--small {
    :where(p) {
      font-size: 1.1rem;
    }
  }
}

@media (width >= 1025px) {
  .m-text {
    margin-top: calc(var(--spacing) * 10);

    :where(p) {
      font-size: 1.6rem;
    }

    &.m-text--small {
      :where(p) {
        font-size: 1.4rem;
      }
    }
  }
}

/* Module / List ------------------------------------------------------------ */

.m-list-banner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--spacing) * 6);
  margin-top: calc(var(--spacing) * 6);

  > * {
    height: 100%;
  }

  :where(li) {
    list-style: none;
  }

  :where(a) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
  }
}

@media (width >= 1025px) {
  .m-list-banner {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing) * 6) clamp(2rem, -23.712rem + 25.08vw, 9.4rem); /* 20px ～ 94px */
    align-items: center;
    justify-content: center;
    margin-top: calc(var(--spacing) * 10);
  }
}

/* Module / Button ---------------------------------------------------------- */

.m-button {
  --local-foreground: #35363b;
  --local-background: #fff;
  --local-outline: #35363b;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  padding: 1em calc(20px + 2em);
  font-size: 1.6rem;
  font-weight: normal;
  line-height: var(--line-height-medium);
  vertical-align: middle;
  color: var(--local-foreground);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background-color: var(--local-background);
  border: 1px solid var(--local-outline);
  transition:
    background-color 0.4s,
    color 0.4s,
    border-color 0.4s;

  &.m-button--plus,
  &.m-button--arrowTop,
  &.m-button--arrowRight,
  &.m-button--arrowBottom,
  &.m-button--arrowLeft {
    &::before {
      position: absolute;
      top: 50%;
      right: 32px;
      display: block;
      width: 0.75em;
      height: 0.75em;
      content: '';
      background-color: var(--local-foreground);
      mask-repeat: no-repeat;
      mask-size: cover;
      transform: translateY(-50%);
      transition: background-color 0.4s;
    }
  }

  &.m-button--plus {
    &::before {
      mask-image: url('/jp/discover/assets/img/icon/plus.svg');
    }
  }

  &.m-button--arrowTop {
    &::before {
      mask-image: url('/jp/discover/assets/img/icon/angle-up.svg');
    }
  }

  &.m-button--arrowRight {
    &::before {
      mask-image: url('/jp/discover/assets/img/icon/angle-right.svg');
    }
  }

  &.m-button--arrowBottom {
    &::before {
      mask-image: url('/jp/discover/assets/img/icon/angle-down.svg');
    }
  }

  &.m-button--arrowLeft {
    &::before {
      mask-image: url('/jp/discover/assets/img/icon/angle-left.svg');
    }
  }
}

@media (any-hover: hover) {
  .m-button {
    padding: 1.2em calc(32px + 2em);

    &:hover {
      --local-foreground: #fff;
      --local-background: #35363b;
      --local-outline: #35363b;
    }
  }
}

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

.m-layout {
  display: grid;
  margin-top: calc(var(--spacing) * 10);

  > * {
    height: 100%;
  }
}

.m-layout__item {
  list-style: none;

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

  > :last-child {
    margin-bottom: 0;
  }
}

@media (width < 1024px) {
  .m-layout {
    gap: calc(var(--spacing) * 6);

    &[data-column-sp='1'],
    &[data-column-sp='2'],
    &[data-column-sp='3'],
    &[data-column-sp='4'] {
      :where(.m-button) {
        width: 100%;
        min-width: revert;
      }
    }

    &[data-column-sp='1'] {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    &[data-column-sp='2'] {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    &[data-column-sp='3'] {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    &[data-column-sp='4'] {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    &[data-column-sp='auto'] {
      display: flex;
      flex-wrap: wrap;

      > * {
        flex: 0 0 auto;
        max-width: 100%;
      }
    }
  }
}

@media (width >= 1025px) {
  .m-layout {
    margin-top: calc(var(--spacing) * 16);

    &[data-column-pc='1'],
    &[data-column-pc='2'] {
      gap: calc(var(--spacing) * 10);
    }

    &[data-column-pc='3'],
    &[data-column-pc='4'] {
      gap: calc(var(--spacing) * 10) calc(var(--spacing) * 6);
    }

    &[data-column-pc='1'],
    &[data-column-pc='2'],
    &[data-column-pc='3'],
    &[data-column-pc='4'] {
      :where(.m-button) {
        width: 100%;
        min-width: revert;
      }
    }

    &[data-column-pc='1'] {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    &[data-column-pc='2'] {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    &[data-column-pc='3'] {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    &[data-column-pc='4'] {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    &[data-column-pc='auto'] {
      display: flex;
      flex-wrap: wrap;

      > * {
        flex: 0 0 auto;
        max-width: 100%;
      }
    }
  }
}

.m-layout-media {
  display: grid;
  grid-template-columns: auto fit-content(50%);
  gap: calc(var(--spacing) * 4);
  margin-top: calc(var(--spacing) * 6);
}

.m-layout-media__content,
.m-layout-media__media {
  direction: ltr;
  flex: 0 0 auto;

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

  > :last-child {
    margin-bottom: 0;
  }
}

@media (width < 1024px) {
  .m-layout-media--rowReverseSP {
    direction: rtl;
  }

  .m-layout-media--columnSP,
  .m-layout-media--columnReverseSP {
    display: flex;
  }

  .m-layout-media--columnSP {
    flex-direction: column;
  }

  .m-layout-media--columnReverseSP {
    flex-direction: column-reverse;
  }
}

@media (width >= 1025px) {
  .m-layout-media {
    gap: calc(var(--spacing) * 8);
  }

  .m-layout-media--rowReversePC {
    direction: rtl;
  }

  .m-layout-media--columnPC,
  .m-layout-media--columnReversePC {
    display: flex;
  }

  .m-layout-media--columnPC {
    flex-direction: column;
  }

  .m-layout-media--columnReversePC {
    flex-direction: column-reverse;
  }
}

/* Module / Box ------------------------------------------------------------- */

.m-box {
  position: relative;
  margin-top: calc(var(--spacing) * 6);

  /* decoration */
  &::before {
    position: absolute;
    top: calc(var(--spacing) * -5);
    right: calc(50% - 47vw);
    z-index: -1;
    width: 160px;
    height: 160px;
    content: '';
    background-image: url('/jp/discover/assets/img/background-mainVisual.webp');
  }

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

  > :last-child {
    margin-bottom: 0;
  }
}

@media (width >= 1025px) {
  .m-box {
    padding: calc(var(--spacing) * 10);
    margin-top: calc(var(--spacing) * 10);
    background-color: #fff;
    box-shadow: 0 0 40px 3px rgba(0, 0, 0, 0.1);

    /* decoration */
    &::before {
      top: calc(var(--spacing) * -6);
      right: calc(var(--spacing) * -6);
      width: 200px;
      height: 200px;
    }
  }
}

/* Module / Media ----------------------------------------------------------- */

.m-media {
  margin-top: calc(var(--spacing) * 6);
}

.m-media__wrap {
  display: table;
  gap: calc(var(--spacing) * 4);
  margin: auto;
  vertical-align: top;

  &:any-link {
    color: #35363b;
    text-decoration: none;
  }
}

.m-media__caption {
  display: table-caption;
  margin: calc(var(--spacing) * 4) auto 0;
  font-size: 1.4rem;
  text-align: center;
  caption-side: bottom;
}

.m-media__item {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (width >= 1025px) {
  .m-media {
    margin-top: calc(var(--spacing) * 8);
  }
}

/* Unique --------------------------------------------------------------------------------------- */

/* Unique / Card ------------------------------------------------------------ */

/* 余白（gap, margin は theme- で設定） */

.u-card {
  position: relative;
  display: flex;
  height: 100%;
  outline: none;
  transition: opacity 0.3s;

  &:focus {
    opacity: 0.7;
  }
}

.u-card__media {
  flex: 1 1 100%;
  border: 1px solid #d9d9d9;

  /* アスペクト比維持
  :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
  }
  */

  :where(img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.u-card__content {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  justify-content: space-between;

  > * {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

.u-card__badge {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing) * 2);

  :where(em) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing) calc(var(--spacing) * 2);
    font-size: 1rem;
    line-height: 1;
    color: #838383;
    text-align: center;
    background-color: #fff;
    border: 1px solid currentColor;
  }
}

.u-card__badge--disabled {
  display: none; /* 詰めない場合は visibility: hidden; に変------更 */
}

.u-card__head {
  flex: 1 1 100%;
  font-family: var(--font-bold);
  font-size: 1.3rem;
  font-weight: normal;
  line-height: var(--line-height-narrow);
}

.u-card__body {
  flex: 1 1 100%;
  order: 1;
  font-size: 1.2rem;
  line-height: var(--line-height-medium);
}

.u-card__data {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing);
  align-items: flex-start;
  order: 2;
  font-size: 1rem;
  line-height: var(--line-height-narrow);

  :where(b) {
    display: flex;
    gap: var(--spacing);
    align-items: center;

    &::before {
      display: block;
      width: 1em;
      height: 1em;
      content: '';
    }

    &[data-label='automobiles']::before {
      background-color: var(--color-automobiles);
    }
    &[data-label='motorcycle']::before {
      background-color: var(--color-motorcycle);
    }
    &[data-label='motorsports']::before {
      background-color: var(--color-motorsports);
    }
    &[data-label='powerproducts']::before {
      background-color: var(--color-powerproducts);
    }
    &[data-label='innovation']::before {
      background-color: var(--color-innovation);
    }
    &[data-label='corporate']::before {
      background-color: var(--color-corporate);
    }
    &[data-label='feature']::before {
      background-color: var(--color-feature);
    }
  }

  :where(time) {
    flex: 0 0 auto;
    padding-left: var(--spacing);
    color: #b2b2b2;
    border-left: 1px solid #b2b2b2;
  }
}

@media (width >= 1025px) {
  .u-card {
    display: flex;
    flex-direction: column;
  }

  .u-card__head {
    font-size: 2.2rem;
    line-height: var(--line-height-medium);
  }

  .u-card__body {
    font-size: 1.6rem;
    line-height: var(--line-height-medium);
  }

  .u-card__data {
    gap: calc(var(--spacing) * 4);
    font-size: 1.4rem;
  }

  .u-card__data :where(b) {
    gap: calc(var(--spacing) * 2);
  }

  .u-card__data :where(time) {
    padding-left: calc(var(--spacing) * 4);
  }
}

.u-card-feature {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #fff;

  > * {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

.u-card-feature__media {
  border: 1px solid #d9d9d9;

  :where(img) {
    display: block;
    width: 100%;
    height: auto;
  }
}

.u-card-feature__content {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 4);
  padding: calc(var(--spacing) * 2) calc(var(--spacing) * 4)
    calc(var(--spacing) * 4);
}

.u-card-feature__title {
  position: relative;
  padding: calc(var(--spacing) * 2) 0;
  font-family: var(--font-bold);
  font-size: 1.6rem;
  font-weight: normal;
  line-height: var(--line-height-narrow);
  color: #4c4c4c;
  border-bottom: 1px solid currentColor;

  &::before {
    position: absolute;
    top: 50%;
    right: 0;
    display: block;
    width: 0.75em;
    height: 0.75em;
    content: '';
    background-color: currentColor;
    mask-image: url('/jp/discover/assets/img/icon/angle-right.svg');
    mask-repeat: no-repeat;
    mask-size: cover;
    transform: translateY(-50%);
  }

  :where(em) {
    display: block;
    padding-right: calc(0.75em + (var(--spacing) * 4));
  }
}

.u-card-feature__description {
  font-size: 1.1rem;
  line-height: var(--line-height-medium);
}

@media (width >= 1025px) {
  .u-card-feature__content {
    gap: calc(var(--spacing) * 6);
    padding: calc(var(--spacing) * 6) calc(var(--spacing) * 8)
      calc(var(--spacing) * 8);
  }

  .u-card-feature__title {
    font-size: 2.4rem;

    &::before {
      width: 0.5em;
      height: 0.5em;
    }

    :where(em) {
      padding-right: calc(0.5em + (var(--spacing) * 8));
    }
  }

  .u-card-feature__description {
    font-size: 1.8rem;
  }
}

/* Unique / MainVisual ------------------------------------------------------ */

.u-mainVisual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(272px, 1320px) 1fr; /* 272 = 320px - (16 * 2), 1320 = 1480 - (80 * 2) */
  gap: 0 clamp(1rem, -0.357rem + 5.79vw, 5rem); /* https://min-max-calculator.9elements.com/?16,80,375,1480 */
  padding: 48px 0 0;

  /* decoration */
  &::before {
    position: absolute;
    top: 20px;
    right: 0;
    z-index: -1;
    display: block;
    width: 50vw;
    height: 160px;
    content: '';
    background-image: url('/jp/discover/assets/img/background-mainVisual.webp');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
  }
}

@media (width >= 1025px) {
  .u-mainVisual {
    padding: 56px 0;

    /* decoration */
    &::before {
      position: absolute;
      top: revert;
      right: revert;
      bottom: 0;
      left: 0;
      z-index: 0;
      display: block;
      width: 100%;
      height: 200px;
      content: '';
    }
  }
}

.u-mainVisual__logo {
  position: absolute;
  top: -32px;
  left: 0;
  z-index: 30;
  width: 144px;

  :where(a) {
    display: block;
  }

  :where(img) {
    display: block;
    width: 100%;
    height: 100%;
  }
}

@media (width >= 1025px) {
  .u-mainVisual__logo {
    top: 0;
    width: 320px;
  }
}

.u-mainVisual__inner {
  position: relative;
  z-index: 20;
  grid-column: 2 / 3;

  > :is(:first-child) {
    margin-top: 0;
  }

  > :is(:last-child) {
    margin-bottom: 0;
  }
}

/* Unique / Filter ---------------------------------------------------------- */

.u-filter {
  margin-top: 40px;
}

.u-filter__control {
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  display: flex;
  gap: 0;
  align-items: center;
  width: 100%;
  background-color: #fff;

  &.is-scroller-active {
    :where(.u-filter__controlLeft, .u-filter__controlRight) {
      display: revert;
      flex: 0 0 auto;
      width: auto;
    }
  }
}

.u-filter__controlLeft,
.u-filter__controlRight {
  display: none;
  width: 0;

  :where(button) {
    position: relative;
    display: flex;
    width: 32px;
    height: 32px;
    padding: 32px 0 0 32px;
    overflow: hidden;
    cursor: pointer;
    background-color: transparent;
    border: none;

    &::before {
      position: absolute;
      top: 0;
      left: 0;
      display: block;
      width: 100%;
      height: 100%;
      pointer-events: none;
      content: '';
      background-color: #666;
      mask-repeat: no-repeat;
      mask-position: center;
      mask-size: 1.5em;
    }

    &:disabled {
      cursor: revert;

      &::before {
        background-color: #ccc;
      }
    }
  }
}

.u-filter__controlLeft {
  :where(button) {
    &::before {
      mask-image: url('/jp/discover/assets/img/icon/angle-left.svg');
    }
  }
}

.u-filter__controlRight {
  order: 10;

  :where(button) {
    &::before {
      mask-image: url('/jp/discover/assets/img/icon/angle-right.svg');
    }
  }
}

.u-filter__controlInner {
  display: flex;
  flex: 1 1 100%;
  min-height: 0;
  padding-bottom: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-y: none;
  touch-action: pan-x;
}

.u-filter__list {
  z-index: 20;
  display: flex;
  flex: 1 1 100%;
  background-color: #fff;

  :where(li) {
    flex: 1 1 auto;
    list-style: none;
    border-bottom: 1px solid #b2b2b2;
  }

  :where(button) {
    position: relative;
    display: flex;
    gap: 0.5em;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 16px 8px;
    font-size: 1.4rem;
    color: #35363b;
    white-space: nowrap;
    cursor: pointer;
    background-color: transparent;
    border: none;
    transition: border 0.4s;

    /* tab icon */
    &::before {
      bottom: 0;
      left: 0;
      display: block;
      width: 1em;
      height: 1em;
      content: '';
    }

    /* current marker */
    &::after {
      position: absolute;
      bottom: -3px;
      left: 0;
      display: block;
      width: 100%;
      height: 5px;
      content: '';
      opacity: 0;
      transition: opacity 0.4s;
    }

    &[aria-checked='true'] {
      font-family: var(--font-bold);
      font-weight: normal;

      &::after {
        opacity: 1;
      }
    }

    &[data-filter-name='news']::before,
    &[data-filter-name='news']::after {
      background-color: var(--color-news);
    }
    &[data-filter-name='automobiles']::before,
    &[data-filter-name='automobiles']::after {
      background-color: var(--color-automobiles);
    }
    &[data-filter-name='motorcycle']::before,
    &[data-filter-name='motorcycle']::after {
      background-color: var(--color-motorcycle);
    }
    &[data-filter-name='motorsports']::before,
    &[data-filter-name='motorsports']::after {
      background-color: var(--color-motorsports);
    }
    &[data-filter-name='powerproducts']::before,
    &[data-filter-name='powerproducts']::after {
      background-color: var(--color-powerproducts);
    }
    &[data-filter-name='innovation']::before,
    &[data-filter-name='innovation']::after {
      background-color: var(--color-innovation);
    }
    &[data-filter-name='corporate']::before,
    &[data-filter-name='corporate']::after {
      background-color: var(--color-corporate);
    }
    &[data-filter-name='feature']::before,
    &[data-filter-name='feature']::after {
      background-color: var(--color-feature);
    }
  }
}

.u-filter__liveRegion {
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

@media (scripting: none) {
  .u-filter__control,
  .u-filter__liveRegion {
    display: none;
  }

  .m-heading-type3 {
    &:has(.js-filter__heading) {
      display: none;
    }
  }
}

@media (width >= 1025px) {
  .u-filter__control {
    padding: 0;

    &.is-scroller-active {
      gap: 24px;
    }
  }

  .u-filter__controlLeft,
  .u-filter__controlRight {
    :where(button) {
      width: 40px;
      height: 40px;
      padding: 40px 0 0 40px;
    }
  }

  .u-filter__list {
    :where(button) {
      padding: 16px;
      font-size: 1.8rem;
    }
  }
}

/* Unique / Drawer ---------------------------------------------------------- */

.u-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  width: calc(100vw - clamp(1rem, -0.357rem + 5.79vw, 5rem) * 2);
  min-width: 272px;
  max-width: 1100px;
  padding: 0 16px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) translateY(100%);
  transition: transform 0.3s ease-out;

  &::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2100;
    display: block;
    width: 100%;
    height: 240px;
    content: '';
    background-image: linear-gradient(
      to bottom,
      rgba(209, 209, 209, 1) 0%,
      rgba(209, 209, 209, 0) 100%
    );
  }

  > * {
    position: relative;
    z-index: 2200;
  }
}

.u-drawer__head {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;

  /* decoration */
  &::before {
    display: block;
    width: 40px;
    height: 4px;
    pointer-events: none;
    content: '';
    background-color: #999;
    border-radius: 100em;
  }
}

.u-drawer__body {
  flex: 1 1 auto;
  width: 100%;
  overflow: auto;
}

.u-drawer__foot {
  flex: 0 0 auto;
  width: 100%;
  padding: calc(var(--spacing) * 4) 0;
  text-align: center;
}

.u-drawer__link {
  display: inline-flex;
  gap: 0 1em;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1em 0;
  margin: 0 auto;
  font-size: 1.4rem;
  border: 1px solid #717171;
}

.u-drawer__linkLogo {
  max-width: 104px;
  height: auto;
}

.u-drawer__linkIcon {
  width: 1em;
  height: auto;
}

.u-drawer__closeButton {
  position: absolute;
  top: 50%;
  right: 0;
  display: none;
  width: 32px;
  height: 32px;
  padding: 32px 0 0 32px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: none;
  transform: translateY(-50%);
  transition: opacity 0.4s;

  /* mask を使うと outline が効かないため、before で擬似的に作成 */
  &::before {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    content: '';
    background: #838383;
    mask-image: url('/jp/discover/assets/img/icon/xmark.svg');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 50%;
  }
}

@media (width < 1024px) and (orientation: landscape) {
  .u-drawer {
    max-height: 75dvh;
  }
}

@media (width >= 1025px) {
  .u-drawer {
    padding: 0 40px;
  }

  .u-drawer__head {
    position: static;
    height: 40px;
  }

  .u-drawer__foot {
    padding: 24px 0 40px;
  }

  .u-drawer__link {
    width: auto;
    min-width: 400px;
    font-size: 1.6rem;
  }

  .u-drawer__linkLogo {
    max-width: revert;
  }

  .u-drawer__closeButton {
    top: 16px;
    right: 16px;
    transform: none;

    &::before {
      mask-size: 75%;
    }
  }
}

@media (hover: hover) {
  .u-drawer__head {
    &::before {
      content: none;
    }
  }

  .u-drawer__closeButton {
    display: block;

    &:hover {
      opacity: 0.6;
    }
  }
}

@media (hover: hover) and (width >= 1025px) {
  .u-drawer__head {
    &::before {
      content: none;
    }
  }
}

/* Theme ---------------------------------------------------------------------------------------- */

/* Theme / MainVisual ------------------------------------------------------- */

.theme-mainVisual {
  :where(.u-card) {
    position: relative;
    z-index: 20;
    flex-direction: column;
    gap: 0;
  }

  :where(.u-card__media) {
    position: relative;
    border: none;

    &::before {
      position: absolute;
      bottom: -24px;
      left: calc(50% - 50vw);
      z-index: 10;
      width: 40vw;
      height: 48px;
      content: '';
      background-image: linear-gradient(to bottom, #f9f9f9 0%, #eee 100%);
    }

    :where(img) {
      position: relative;
      z-index: 20;
      width: 100%;
      height: auto;
      object-fit: revert;
    }
  }

  :where(.u-card__content) {
    z-index: 10;
    margin-top: calc(var(--spacing) * 4);
  }

  :where(.u-card__head) {
    margin-top: calc(var(--spacing) * 3);
    font-size: 1.8rem;
  }

  :where(.u-card__body) {
    display: none;
  }

  :where(.u-card__data) {
    margin-top: calc(var(--spacing) * 2);
  }
}

@media (any-hover: hover) {
  .theme-mainVisual {
    :is(.u-card) {
      &:hover {
        opacity: revert;
        transform: none;
      }
    }
  }
}

@media (width >= 1025px) {
  .theme-mainVisual {
    :where(.u-card) {
      position: relative;
      display: grid;
      grid-template-rows: 140px auto 32px;
      grid-template-columns: 35% 30% 35%;
    }

    :where(.u-card__media) {
      grid-row: 1 / 3;
      grid-column: 2 / 4;

      &::before {
        top: -24px;
        bottom: revert;
        left: -24px;
        width: 120px;
        height: 120px;
        background-color: #ff6526;
        background-image: revert;
      }

      &::after {
        position: absolute;
        right: -24px;
        bottom: -24px;
        width: 200px;
        height: 200px;
        content: '';
        border: 2px solid #fff;
      }
    }

    :where(.u-card__content) {
      display: grid;
      grid-template-rows: 1fr auto;
      grid-template-columns: subgrid;
      grid-row: 2 / 4;
      grid-column: 1 / 3;
      gap: 0;
      padding: 40px;
      background-color: #fff;
      box-shadow: 0 0 40px 3px rgba(0, 0, 0, 0.1);
    }

    :where(.u-card--media) {
      :where(.u-card__content) {
        grid-template-rows: auto 1fr auto;
      }
    }

    :where(.u-card__head) {
      grid-column: 1 / 2;
      margin-top: calc(var(--spacing) * 3);
      margin-right: 40px;
      font-size: 2.8rem;
    }

    :where(.u-card__data) {
      grid-column: 1 / 2;
      margin-top: 24px;
      margin-right: 40px;
      font-size: 1.6rem;
    }
  }
}

/* Theme / Pickup ----------------------------------------------------------- */

.theme-pickup {
  > :is(:first-child) {
    margin-top: 0;
  }

  > :is(:last-child) {
    margin-bottom: 0;
  }

  :where(.u-card) {
    gap: 0 calc(var(--spacing) * 2);

    /* decoration */
    &::before {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 10;
      width: 48px;
      height: 48px;
      content: '';
      background-color: #ff9e39;
      transform: translate(-8px, -8px);
    }

    > * {
      position: relative;
      z-index: 20;
    }
  }

  :where(.u-card__media) {
    border: none;
  }

  :where(.u-card__head) {
    flex: 1 1 auto;
    margin-top: var(--spacing);
    font-family: var(--font-normal);
    font-weight: normal;
  }

  :where(.u-card__body) {
    display: none;
  }

  :where(.u-card__data) {
    margin-top: var(--spacing);
  }
}

@media (width >= 1025px) {
  .theme-pickup {
    :where(.u-card) {
      flex-direction: row;
      gap: 0 calc(var(--spacing) * 5);

      /* decoration */
      &::before {
        top: 0;
        left: 0;
        width: 96px;
        height: 96px;
        transform: translate(-16px, -16px);
      }
    }

    :where(.u-card__badge--disabled) {
      display: revert;
      visibility: hidden;
    }

    :where(.u-card__head) {
      margin-top: calc(var(--spacing) * 4);
    }

    :where(.u-card__data) {
      margin-top: calc(var(--spacing) * 4);
    }
  }
}

/* Theme / Filter ----------------------------------------------------------- */

.theme-filter {
  :where(.js-filter__item) {
    display: none;
  }

  :where(.u-card) {
    gap: 0 calc(var(--spacing) * 2);
  }

  :where(.u-card__head) {
    margin-top: var(--spacing);
    font-family: var(--font-normal);
    font-size: 1.3rem;
    font-weight: normal;
    line-height: var(--line-height-medium);
  }

  :where(.u-card__body) {
    display: none;
  }

  :where(.u-card__data) {
    margin-top: var(--spacing);
  }
}

@media (scripting: none) {
  .theme-filter {
    margin-top: 0;

    :where(.js-filter__item) {
      display: revert;
    }
  }
}

@media (width >= 1025px) {
  .theme-filter {
    :where(.u-card) {
      gap: calc(var(--spacing) * 4) 0;
    }

    :where(.u-card__badge--disabled) {
      display: revert;
      visibility: hidden;
    }

    :where(.u-card__head) {
      margin-top: calc(var(--spacing) * 3);
      font-size: 1.6rem;
    }

    :where(.u-card__body) {
      display: none;
    }

    :where(.u-card__data) {
      margin-top: calc(var(--spacing) * 4);
    }
  }
}

/* Theme / Drawer ----------------------------------------------------------- */

.theme-drawer {
  > :is(:first-child) {
    margin-top: 0;
  }

  > :is(:last-child) {
    margin-bottom: 0;
  }

  :where(.u-card__media) {
    flex: 0 0 auto;
    text-align: center;
    border: none;

    :where(img) {
      max-height: 50vh;
      border: 1px solid #d9d9d9;
    }
  }

  :where(.u-card__content) {
    gap: 8px;
  }

  :where(.u-card__badge) {
    display: none;
  }

  :where(.u-card__head) {
    display: block;
    margin-top: calc(var(--spacing) * 3);
    font-size: 1.6rem;
  }

  :where(.u-card__body) {
    order: revert;
    margin-top: calc(var(--spacing) * 1);
  }

  :where(.u-card__data) {
    order: revert;
    margin-top: calc(var(--spacing) * 1);
    font-size: 1.1rem;
  }
}

@media (width >= 1025px) {
  .theme-drawer {
    &::before {
      height: 320px;
    }

    :where(.u-card__media) {
      :where(img) {
        display: block;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 30vh;
        margin: 0 auto;
      }
    }

    :where(.u-card__content) {
      gap: 0;
    }

    :where(.u-card__head) {
      margin-top: calc(var(--spacing) * 4);
      font-size: 2.4rem;
    }

    :where(.u-card__body) {
      margin-top: calc(var(--spacing) * 4);
      font-size: 1.6rem;
    }

    :where(.u-card__data) {
      margin-top: calc(var(--spacing) * 3);
      font-size: 1.6rem;
    }
  }
}

/* Theme / Feature ---------------------------------------------------------- */

.theme-feature {
  margin-top: calc(var(--spacing) * 6);

  > :is(:first-child) {
    margin-top: 0;
  }

  > :is(:last-child) {
    margin-bottom: 0;
  }

  :where(.u-card) {
    gap: 0 calc(var(--spacing) * 2);

    > * {
      position: relative;
      z-index: 20;
    }
  }

  :where(.u-card__head) {
    margin-top: var(--spacing);
    font-family: var(--font-normal);
    font-size: 1.3rem;
    font-weight: normal;
    line-height: var(--line-height-medium);
  }

  :where(.u-card__body) {
    display: none;
  }

  :where(.u-card__data) {
    margin-top: var(--spacing);
  }
}

@media (width >= 1025px) {
  .theme-feature {
    margin-top: calc(var(--spacing) * 8);

    :where(.u-card) {
      gap: calc(var(--spacing) * 4) 0;
    }

    :where(.u-card__badge--disabled) {
      display: revert;
      visibility: hidden;
    }

    :where(.u-card__head) {
      margin-top: calc(var(--spacing) * 3);
      font-size: 1.6rem;
    }

    :where(.u-card__body) {
      display: none;
    }

    :where(.u-card__data) {
      margin-top: calc(var(--spacing) * 4);
    }
  }
}

/* State ---------------------------------------------------------------------------------------- */

.is-filter-visible.is-showMore-visible {
  display: revert;
  opacity: 1;
  transition:
    opacity 0.5s ease-in-out,
    display 0.5s ease-in-out allow-discrete;

  @starting-style {
    opacity: 0;
  }
}

/* 文字省略実行前 */
.theme-pickup .u-card__head:not(.is-truncated),
.theme-filter .u-card__head:not(.is-truncated),
.theme-feature .u-card__head:not(.is-truncated) {
  visibility: hidden;
  height: 0;
  opacity: 0;
}

@media (scripting: none) {
  .theme-pickup .u-card__head:not(.is-truncated),
  .theme-filter .u-card__head:not(.is-truncated),
  .theme-feature .u-card__head:not(.is-truncated) {
    visibility: revert;
    height: revert;
    opacity: revert;
  }
}

/* Utility -------------------------------------------------------------------------------------- */

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

@media (width >= 1025px) {
  .md\:hidden {
    display: none;
  }
}
