/* ========================================
   LINEUP PAGE
======================================== */
.l-page-bg--lineup {
  background-color: #fff;
  background-image: url("../img/lineup/page-bg.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
}

.p-lineup {
  position: relative;
  overflow: hidden;
}

.p-lineup__bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/lineup/page-bg.webp") top center / 100% auto no-repeat;
  pointer-events: none;
}

@media screen and (max-width: 1023px) {
  .l-page-bg--lineup {
    background-image: url("../img/lineup/sp/page-bg.webp");
  }

  .p-lineup__bg {
    background: url("../img/lineup/sp/page-bg.webp") top center / cover
      no-repeat;
  }
}

/* ========================================
   HERO
======================================== */
.p-lineup-hero {
  position: relative;
}

.p-lineup-hero__inner {
  position: relative;
  max-width: 1280px;
  min-height: 196px;
  margin: 0 auto;
}

.p-lineup-hero__title {
  width: 525px;
  margin: 0 auto;
}

.p-lineup-hero__title img {
  display: block;
  width: 100%;
  height: auto;
}

.p-lineup-hero__hand {
  position: absolute;
  top: 50%;
  display: block;
  transform: translateY(-50%);
}

.p-lineup-hero__hand,
.p-lineup-hero__hand img {
  height: auto;
}

.p-lineup-hero__hand--left {
  left: 100px;
  width: 341px;
}

.p-lineup-hero__hand--right {
  right: 30px;
  width: 391px;
}

/* ========================================
   SORT TAB
======================================== */
.p-lineup-sort {
  margin-top: 50px;
}

.p-lineup-sort__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.p-lineup-sort__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.p-lineup-sort__item {
  flex-shrink: 0;
}

.p-lineup-sort__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  color: #ef7051;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 2px solid #ef7051;
  border-radius: 999px;
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s,
    opacity 0.3s;
}

.p-lineup-sort__tab:hover,
.p-lineup-sort__tab.is-active {
  color: #fff;
  background: #ef7051;
}

/* ========================================
   GRID
======================================== */
.p-lineup-grid {
  margin-top: 50px;
  padding-bottom: 32px;
}

.p-lineup-grid__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
}

.p-lineup-grid__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 20px;
}

.p-lineup-grid__empty {
  margin: 0;
  text-align: center;
}

/* ========================================
   COMMON CARD
======================================== */
.p-lineup-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.p-lineup-card__title {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.p-lineup-card__catch {
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  background: var(--catch-color);
}

.p-lineup-card__genre {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.p-lineup-card__genre::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 8px;
  height: 8px;
  background: #ef7051;
  border-radius: 50%;
}

.p-lineup-card__other-catch {
  margin: 8px 0 0;
  padding: 5px 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  background: #ef7051;
  transition:
    background-color 0.3s,
    color 0.3s;
}

/* ========================================
   MAGIC CARD
======================================== */
.p-lineup-card__magic-head {
  max-width: 234px;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border: 10px solid #e5e5e5;
  border-radius: 13px;
}

.p-lineup-card__magic-head .p-lineup-card__title {
  margin: 12px 0;
}

.p-lineup-card__magic-body {
  position: relative;
}

/* 白バー */
.p-lineup-card__hook--top {
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 35px;
  background: #fff;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.p-lineup-card__hook--top img {
  display: none;
}

/* グレー丸 */
.p-lineup-card__hook--bottom {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: #b3b3b3;
  border-radius: 50%;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.p-lineup-card__hook--bottom img {
  display: none;
}

/* 商品画像 */
.p-lineup-card__magic-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.p-lineup-card__magic-image {
  display: flex;
  justify-content: center;
  width: 264px;
  margin-top: 20px;
  transform-origin: 50% 0;
  transition: transform 0.3s ease;
}

.p-lineup-card__magic-image img {
  display: block;
  width: 100%;
  height: auto;
}

.p-lineup-card--magic:hover .p-lineup-card__magic-image {
  transform: rotate(5deg);
}

/* ========================================
   OTHER CARD
======================================== */
.p-lineup-card--other {
  height: 100%;
}

.p-lineup-card__other-inner {
  height: 100%;
  padding: 18px 18px 22px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  transition:
    background-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.p-lineup-card--other .p-lineup-card__title {
  margin-top: 10px;
  transition: color 0.3s;
}

.p-lineup-card__other-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1.35;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 2px;
}

.p-lineup-card__other-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.p-lineup-card--other:hover .p-lineup-card__other-inner {
  background: #fff;
  box-shadow:
    inset 0 0 0 5px #ef7051,
    0 0 4px rgba(0, 0, 0, 0.25);
}

.p-lineup-card--other:hover .p-lineup-card__other-image img {
  transform: scale(1.03);
}

/* ========================================
   FOCUS
======================================== */
.p-lineup-card:focus-visible {
  outline: 2px solid #ef7051;
  outline-offset: 4px;
}

/* ========================================
   Responsive
======================================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .l-page-bg--lineup {
    background-attachment: scroll;
    background-position: top center;
    background-size: cover;
  }

  .p-lineup-hero__inner,
  .p-lineup-sort__inner,
  .p-lineup-grid__inner {
    width: calc(100% - 80px);
    max-width: 688px;
    margin: 0 auto;
    padding: 0;
  }

  /* HERO */
  .p-lineup-hero__inner {
    min-height: 110px;
  }

  .p-lineup-hero__title {
    width: 320px;
  }

  .p-lineup-hero__hand--left {
    top: 50%;
    left: 8px;
    width: 140px;
  }

  .p-lineup-hero__hand--right {
    top: 50%;
    right: 4px;
    width: 158px;
  }

  /* SORT */
  .p-lineup-sort {
    margin-top: 24px;
  }

  .p-lineup-sort__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
  }

  .p-lineup-sort__item {
    flex: 0 0 auto;
    min-width: 0;
  }

  .p-lineup-sort__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 42px;
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.2;
    border-width: 1px;
    white-space: nowrap;
  }

  /* GRID */
  .p-lineup-grid {
    margin-top: 24px;
    padding-bottom: 16px;
  }

  .p-lineup-grid__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 14px;
  }

  /* COMMON CARD */
  .p-lineup-card__title {
    font-size: 14px;
    line-height: 1.3;
  }

  .p-lineup-card__catch {
    display: block;
    padding: 5px 6px;
    font-size: 10px;
    line-height: 1.25;
  }

  .p-lineup-card__genre {
    padding-left: 11px;
    font-size: 11px;
    line-height: 1.4;
  }

  .p-lineup-card__genre::before {
    top: 0.4em;
    width: 6px;
    height: 6px;
  }

  .p-lineup-card__other-catch {
    margin-top: 6px;
    padding: 5px 7px;
    font-size: 10px;
    line-height: 1.3;
  }

  /* MAGIC CARD */
  .p-lineup-card__magic-head {
    max-width: 100%;
    padding: 5px;
    border-width: 5px;
    border-radius: 8px;
  }

  .p-lineup-card__magic-head .p-lineup-card__title {
    margin: 8px 0 5px;
  }

  .p-lineup-card__hook--top {
    width: 7px;
    height: 20px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
  }

  .p-lineup-card__hook--bottom {
    top: 16px;
    width: 12px;
    height: 12px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
  }

  .p-lineup-card__magic-image {
    width: 100%;
    max-width: 180px;
    margin-top: 12px;
  }

  .p-lineup-card--magic:hover .p-lineup-card__magic-image {
    transform: rotate(3deg);
  }

  /* OTHER CARD */
  .p-lineup-card__other-inner {
    padding: 12px 12px 14px;
    border-radius: 6px;
  }

  .p-lineup-card--other .p-lineup-card__title {
    margin-top: 8px;
  }

  .p-lineup-card__other-image {
    aspect-ratio: 1 / 1.35;
    margin-top: 12px;
  }

  .p-lineup-card__other-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

@media screen and (max-width: 767px) {
  .l-page-bg--lineup {
    background-position: top center;
    background-size: cover;
  }

  .p-lineup {
  }

  /* HERO */
  .p-lineup-hero__inner,
  .p-lineup-sort__inner,
  .p-lineup-grid__inner {
    padding: 0 10px;
    max-width: 334px;
    margin: 0 auto;
  }

  .p-lineup-hero__inner {
    min-height: 74px;
  }

  .p-lineup-hero__title {
    width: 221px;
  }

  .p-lineup-hero__hand--left {
    top: 32px;
    left: -7px;
    width: 98px;
  }

  .p-lineup-hero__hand--right {
    top: 18px;
    right: -11px;
    width: 108px;
  }

  /* SORT */
  .p-lineup-sort {
    margin-top: 14px;
  }

  .p-lineup-sort__list {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
  }

  .p-lineup-sort__item {
    flex: 1 1 0;
    min-width: 0;
  }

  .p-lineup-sort__tab {
    width: 100%;
    min-height: 31px;
    padding: 5px 6px;
    font-size: 11px;
    line-height: 1.15;
    border-width: 1px;
  }

  /* GRID */
  .p-lineup-grid {
    margin-top: 16px;
    padding-bottom: 12px;
  }

  .p-lineup-grid__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  /* COMMON CARD */
  .p-lineup-card__title {
    font-size: 12px;
    line-height: 1.25;
  }

  .p-lineup-card__catch {
    display: block;
    padding: 4px 5px;
    font-size: 10px;
    line-height: 1.2;
  }

  .p-lineup-card__genre {
    padding-left: 10px;
    font-size: 10px;
    line-height: 1.4;
  }

  .p-lineup-card__genre::before {
    top: 0.4em;
    width: 6px;
    height: 6px;
  }

  .p-lineup-card__other-catch {
    margin-top: 6px;
    padding: 4px 6px;
    font-size: 9px;
    line-height: 1.3;
  }

  /* MAGIC CARD */
  .p-lineup-card__magic-head {
    max-width: 137px;
    padding: 4px;
    border-width: 4px;
    border-radius: 6px;
  }

  .p-lineup-card__magic-head .p-lineup-card__title {
    margin: 6px 0 4px;
  }

  .p-lineup-card__hook--top {
    width: 6px;
    height: 18px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
  }

  .p-lineup-card__hook--bottom {
    top: 14px;
    width: 11px;
    height: 11px;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
  }

  .p-lineup-card__magic-image {
    width: 137px;
    margin-top: 10px;
  }

  .p-lineup-card--magic:hover .p-lineup-card__magic-image {
    transform: rotate(3deg);
  }

  /* OTHER CARD */
  .p-lineup-card__other-inner {
    padding: 10px 10px 12px;
    border-radius: 4px;
  }

  .p-lineup-card--other .p-lineup-card__title {
    margin-top: 6px;
  }

  .p-lineup-card__other-image {
    aspect-ratio: 1 / 1.28;
    margin-top: 10px;
  }

  .p-lineup-card__other-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

/* ========================================
   商品一覧：腕画像の付け根と見出しの可読性
======================================== */

.p-lineup-hero__hand--left {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 7%, #000 20%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 7%, #000 20%, #000 100%);
}

.p-lineup-hero__hand--right {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.35) 7%, #000 20%, #000 100%);
  mask-image: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.35) 7%, #000 20%, #000 100%);
}

.p-lineup-card__catch {
  color: var(--catch-text-color, #fff);
}

@media screen and (min-width: 1024px) {
  .p-lineup-hero__hand--left {
    left: calc((100vw - min(100vw, 1280px)) / -2);
  }

  .p-lineup-hero__hand--right {
    right: calc((100vw - min(100vw, 1280px)) / -2);
  }
}
