.goods {
  position: relative;
  padding-top: 5.625rem;
  background: url("../assets/goods/bg_pc_item.jpg") center top / cover no-repeat;
  min-height: 100vh;
}

.goods__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 40px 120px;
}

.goods__title {
  margin: 0 0 36px;
  text-align: center;
}

.goods__title img {
  max-width: 260px;
  width: 60%;
  height: auto;
  display: inline-block;
}

.goods__tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 64px;
}

.goods__tab {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 220px;
  height: 68px;
  padding-top: 14px;
  border: 0;
  background: transparent no-repeat center / 100% 100%;
  color: #fff;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.goods__tab--jp {
  background-image: url("../assets/goods/asset_97.png");
}

.goods__tab--tw {
  background-image: url("../assets/goods/asset_98.png");
}

.goods__tab:hover {
  transform: translateY(-2px);
}

.goods__tab:not(.is-active) {
  filter: brightness(0.78) saturate(0.85);
}

.goods__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.goods-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 22px 26px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.goods-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.goods-card__img {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #b5b5b5;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.goods-card__meta {
  margin: 0;
  padding: 0;
  text-align: left;
}

.goods-card__name {
  margin: 0 0 8px;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.goods-card__price {
  margin: 0;
  color: #e60012;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.goods-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}

.goods-modal.is-open {
  display: flex;
}

.goods-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.goods-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.goods-modal__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.goods-modal__close:hover {
  transform: scale(1.08);
}

.goods-modal__close img {
  width: 100%;
  height: auto;
  display: block;
}

.goods-modal__img {
  aspect-ratio: 1 / 1;
  background: #a7a7a7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d3d3d;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 2px;
}

.goods-modal__body {
  margin-top: 20px;
}

.goods-modal__name {
  margin: 0 0 10px;
  color: #000;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.goods-modal__price {
  margin: 0 0 16px;
  color: #e60012;
  font-size: 1.05rem;
  font-weight: 700;
}

.goods-modal__divider {
  border: 0;
  border-top: 1px solid #e2e2e2;
  margin: 0 0 14px;
}

.goods-modal__spec {
  margin: 0;
  color: #8a8a8a;
  font-size: 0.95rem;
  line-height: 1.7;
}

.goods-modal__spec-row {
  display: flex;
  gap: 4px;
}

.goods-modal__spec dt,
.goods-modal__spec dd {
  margin: 0;
  font-weight: 400;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .goods {
    padding-top: 64px;
    background-image: url("../assets/goods/bg_sp_item.jpg");
    background-size: 100% auto;
    background-repeat: repeat-y;
  }

  .goods__inner {
    padding: 40px 24px 80px;
  }

  .goods__title {
    margin-bottom: 28px;
  }

  .goods__title img {
    max-width: 180px;
    width: 50%;
  }

  .goods__tabs {
    gap: 14px;
    margin-bottom: 40px;
  }

  .goods__tab {
    width: 46%;
    max-width: 180px;
    height: 56px;
    padding-top: 10px;
    font-size: 0.95rem;
  }

  .goods__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .goods-card {
    padding: 20px 20px 24px;
  }

  .goods-card__img {
    aspect-ratio: 1 / 0.75;
    font-size: 0.9rem;
  }

  .goods-modal {
    padding: 32px 16px;
  }

  .goods-modal__dialog {
    padding: 22px 22px 26px;
  }

  .goods-modal__close {
    top: -22px;
    right: -6px;
    width: 48px;
    height: 48px;
  }

  .goods-modal__name {
    font-size: 1.2rem;
  }
}
