@charset "UTF-8";

/***********************************************
***  HEADER ＊下層ページはメニューボタンを常時表示
***********************************************/
.header.goods .global-navigation-mob-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/***********************************************
***  BODY ＊グッズページは背景パターンなし
***********************************************/
body {
  background-color: #fff;
}

body::before {
  content: none;
}

/***********************************************
***  MV
***********************************************/
.goods-mv {
  position: relative;
  @media (max-width: 800px) {
   
  }
}

.goods-mv-info {
  width: 400px;
  padding: 10px 0 80px;
  margin: 0 auto;

  @media (max-width: 1000px) {

  }
  @media (max-width: 800px) {
  width: 50%;
  }
}

.goods-mv-logo {
  margin: 0 0 20px;

  @media (max-width: 800px) {

  }
}


.goods-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 1em;
  padding: 0;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);

  @media (max-width: 600px) {
    font-size: 14px;
  }
}

.goods-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 1em;
}

.goods-breadcrumb-item + .goods-breadcrumb-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-secondary);
  border-right: 2px solid var(--color-secondary);
  transform: rotate(45deg);
}

/***********************************************
***  GOODS section
***********************************************/
.goods-section {
  background: var(--color-base-1);
  padding: 0 0 80px;
  position: relative;

  @media (max-width: 600px) {
    padding: 0 0 60px;
  }
}

.goods-section::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  left: 0;
  height: var(--slant-height);
  background: var(--color-base-1);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  pointer-events: none;

  @media (max-width: 600px) {
    height: 60px;
  }
}

.goods-heading {
  width: 280px;
  padding-left: var(--side-padding);

  @media (max-width: 1300px) {
    width: 230px;
  }
  @media (max-width: 600px) {
    width: 38%;
  }
}

.goods-chara {
  position: absolute;
  background-image: url("../img/common/chara/chara-07.webp");
  background-repeat: no-repeat;
  background-size: contain;
  width: 305px;
  height: 580px;
  z-index: 1;
  right: 2%;
  top: -60px;
  pointer-events: none;

  @media (max-width: 1600px) {
    right: -2%;
  }
  @media (max-width: 1300px) {
 right: -2%;
    width: 22vw;
    height: 42vw;
    top: -15vw;
  }
  @media (max-width: 1000px) {
 
    width: 26vw;
  }
}

.goods-container {
  position: relative;
  z-index: 99;
  max-width: 1200px;
  margin: 0 auto;

  @media (max-width: 1300px) {
    width: var(--contents-area-width);
  }
}

/* リード */
.goods-lead-container {
  max-width: 1000px;
  margin: 0 auto 60px;
  display: none;

  @media (max-width: 600px) {
    margin: 0 auto 40px;
  }
}

/* 購入特典 */
.goods-tokuten-heading {
  margin: 0 auto 24px;
  padding-bottom: 5px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: var(--color-secondary);
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #2e3192 0%, #29abe2 100%) 1;

  @media (max-width: 800px) {
    font-size: 18px;
  }
}

.goods-tokuten-flex-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;

  @media (max-width: 800px) {
    flex-direction: column-reverse;
    gap: 20px;
  }
}

.goods-tokuten-info {
  flex: 1;
}

.goods-tokuten-text {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.9;

  @media (max-width: 600px) {
    font-size: 14px;
  }
}

.goods-tokuten-strong {
  font-weight: 800;
  color: var(--color-secondary);
}

.goods-tokuten-notice-lists .common-notice-list {
  font-size: 13px;

  @media (max-width: 600px) {
    font-size: 12px;
  }
}

.goods-tokuten-image-container {
  width: 40%;

  @media (max-width: 800px) {
    width: 100%;
  }
}

/***********************************************
***  GOODS list
***********************************************/
.goods-list-container {
  margin: 0 auto 60px;
}

.goods-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;

  @media (max-width: 1000px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  @media (max-width: 800px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  @media (max-width: 500px) {
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
  }
}

.goods-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 3px 3px 3px rgb(0 0 0 / 25%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


/* 四隅のライン（トップのNEWSと同じ意匠） */
.goods-item::before,
.goods-item::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: linear-gradient(45deg, #d6004a, #ff676a);
  pointer-events: none;
  z-index: 2;
  transition: width 0.25s ease, height 0.25s ease;
}

.goods-item::before {
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 100% 5px, 5px 5px, 5px 100%, 0 100%);
}

.goods-item::after {
  right: 0;
  bottom: 0;
  clip-path: polygon(
    calc(100% - 5px) 0, 100% 0,
    100% 100%, 0 100%,
    0 calc(100% - 5px),
    calc(100% - 5px) calc(100% - 5px)
  );
}

@media (hover: hover) {
  .goods-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgb(0 0 0 / 25%);
  }

  .goods-item:hover::before,
  .goods-item:hover::after {
    width: 36px;
    height: 36px;
  }
}

.goods-item__toggle {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 14px 0;
  cursor: zoom-in;

  @media (max-width: 600px) {
    padding: 10px 10px 0;
  }
}

.goods-item__toggle:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: -3px;
}

.goods-item__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.goods-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .goods-item__toggle:hover .goods-item__image img {
    transform: scale(1.05);
  }
}

/* 拡大アイコン */
.goods-item__zoom {
  position: absolute;
  right: 20px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  background: linear-gradient(90deg, #2e3192 0%, #29abe2 100%);
  transform: skewX(-15deg);

  @media (max-width: 600px) {
    right: 14px;
    width: 26px;
    height: 26px;
  }
}

.goods-item__zoom::before,
.goods-item__zoom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%) skewX(15deg);
}

.goods-item__zoom::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.goods-item__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 14px 16px 18px;

  @media (max-width: 600px) {
    padding: 10px 10px 14px;
  }
}

.goods-item__name {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;

  @media (max-width: 600px) {
    font-size: 13px;
  }
}

.goods-item__price {
  margin-top: auto;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-secondary);

  @media (max-width: 600px) {
    font-size: 16px;
  }
}

.goods-item__price .small,
.goods-modal__price .small {
  font-size: 12px;
  margin-left: 2px;
}
.goods-item__icon {
    display: inline-block;
    width: fit-content;
    margin-top: 10px;
    color: #fff;
    padding: 2px 6px 0;
    font-weight: 800;
    border-radius: 3px;
    position: absolute;
    bottom: 21px;
    right: 14px;

 &.up{
  bottom: 57px;
    @media (max-width: 600px) {
      bottom: 50px;
    }
 }
 &.random {
  background: linear-gradient(90deg, #2e3192 0%, #29abe2 100%);
}
 &.box {
  background: linear-gradient(90deg, #662d91 0%, #b57be0 100%);
}
 &.order {
  background: linear-gradient(90deg, #d6004a 0%, #ff7bac 100%);
}
}
.goods-item__limit {
  font-size: 13px;
  color: #555;

  @media (max-width: 600px) {
    font-size: 11px;
  }
}

/* 詳細・サイズはモーダルのみで表示 */
.goods-item__detail,
.goods-item__size {
  display: none;
}

.goods-item__select {
  position: relative;
  margin-top: 10px;
}

.goods-item__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.goods-item__select select {
  width: 100%;
  padding: 6px 30px 6px 10px;
  border: none;
  border-radius: 0;
  background: linear-gradient(90deg, #2e3192 0%, #29abe2 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;

  @media (max-width: 600px) {
    font-size: 12px;
  }
}

.goods-item__select select option {
  color: #000;
}

/***********************************************
***  注意事項
***********************************************/
.goods-notice-section {
  max-width: 1000px;
  margin: 0 auto 60px;
}

.goods-notice-heading {
  margin: 0 auto 24px;
  padding-bottom: 5px;
  font-size: 18px;
  text-align: center;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #2e3192 0%, #29abe2 100%) 1;

  @media (max-width: 800px) {
    font-size: 16px;
  }
}
.goods-notice-subheading {
  margin: 20px auto 10px;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 800;
}
.goods-notice-lists {
  text-align: left;
}

.goods-btn-container {
  text-align: center;
}

.goods-btn-container .btn-default {
  font-size: 22px;

  @media (max-width: 800px) {
    font-size: 18px;
  }
}

.goods-btn-container .btn-default a {
  padding: 6px 80px;

  @media (max-width: 600px) {
    padding: 6px 40px;
  }
}

/***********************************************
***  MODAL
***********************************************/
body.is-goods-modal-open {
  overflow: hidden;
}

.goods-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.goods-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.goods-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgb(6 90 174 / 80%);
  cursor: pointer;
}

.goods-modal__content.white-box-default {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 600px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 50px 40px 40px;
  transform: translateY(20px);
  transition: transform 0.3s ease;

  @media (max-width: 800px) {
    gap: 20px;
    padding: 50px 20px 24px;
  }
}

.goods-modal.is-active .goods-modal__content {
  transform: translateY(0);
}

.goods-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: linear-gradient(90deg, #d6004a 0%, #ff676a 100%);
  z-index: 3;
}

.goods-modal__close::before,
.goods-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.goods-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.goods-modal__image-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.goods-modal__image {
  aspect-ratio: 1 / 1;
}

.goods-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.goods-modal__prev,
.goods-modal__next {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: linear-gradient(90deg, #2e3192 0%, #29abe2 100%);
  transform: translateY(-50%) skewX(-15deg);
  z-index: 2;
  transition: opacity 0.2s ease;

  @media (max-width: 600px) {
    width: 32px;
    height: 32px;
  }
}

.goods-modal__prev {
  left: -10px;
}

.goods-modal__next {
  right: -10px;
}

@media (hover: hover) {
  .goods-modal__prev:hover,
  .goods-modal__next:hover {
    opacity: 0.8;
  }
}

.goods-modal__prev::before,
.goods-modal__next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.goods-modal__prev::before {
  transform: translate(-30%, -50%) skewX(15deg) rotate(-135deg);
}

.goods-modal__next::before {
  transform: translate(-70%, -50%) skewX(15deg) rotate(45deg);
}

.goods-modal__variation {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  color: var(--color-primary);
}

.goods-modal__info {
  text-align: left;
}

.goods-modal__name {
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #2e3192 0%, #29abe2 100%) 1;

  @media (max-width: 600px) {
    font-size: 18px;
  }
}

.goods-modal__price {
  margin-bottom: 4px;
  font-size: 26px;
  font-weight: 800;
  color: var(--color-secondary);

  @media (max-width: 600px) {
    font-size: 22px;
  }
}
.goods-modal__icon {
  display: inline-block;
  width: fit-content;
  margin-bottom: 10px;
  color: #fff;
  padding: 2px 6px 0;
  font-weight: 800;
  border-radius: 3px;
  background: linear-gradient(90deg, #2e3192 0%, #29abe2 100%);

 &.random {
  background: linear-gradient(90deg, #2e3192 0%, #29abe2 100%);
}
 &.box {
  background: linear-gradient(90deg, #662d91 0%, #b57be0 100%);
}
 &.order {
  background: linear-gradient(90deg, #d6004a 0%, #ff7bac 100%);
}
}
.goods-modal__limit {
  margin-bottom: 16px;
  font-size: 14px;
  color: #555;
}

.goods-modal__detail {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;

  @media (max-width: 600px) {
    font-size: 14px;
  }
}

.goods-modal__size {
  padding: 10px 14px;
  background: var(--color-base-2);
  font-size: 14px;

  @media (max-width: 600px) {
    font-size: 13px;
  }
}
/***********************************************
*** ページ送り
***********************************************/
.goods-list > .goods-item[hidden] {
  display: none !important;
}

.goods-list {
  scroll-margin-top: 100px;
}

.goods-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.goods-pagination__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.goods-pagination__button[aria-current="page"] {
  background: var(--color-secondary);
  color: #fff;
}

.goods-pagination__button:disabled {
  opacity: 0.35;
  cursor: default;
}

.goods-pagination__button:focus-visible {
  outline: 2px solid #399ac5;
  outline-offset: 3px;
}
