/* BONUS SECTION */
#bonus {
  position: relative;
  background: #333;
  padding: 50px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

/* 背景画像 */
.bonus__bg-stadium {
  position: absolute;
  width: 682.75px;
  height: 394px;
  left: -143px;
  top: 248px;
  pointer-events: none;
  overflow: hidden;
}

.bonus__bg-stadium::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 259.9%;
  top: -43.15%;
  left: 0;
  background-image: url("../img/bonus/bg2.png");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  filter: grayscale(100%);
}

.bonus__bg-halftone {
  position: absolute;
  width: 1218px;
  height: 609px;
  left: -581px;
  top: 0.04px;
  pointer-events: none;
  overflow: hidden;
}

.bonus__bg-halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/bonus/bg1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
}

/* ヘッダー */
.bonus__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.bonus__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 4px;
  position: relative;
}

.bonus__badge-main {
  background: #fe0000;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 4px 16px 6px;
  border-radius: 4px;
  margin-bottom: -4px;
  letter-spacing: -0.84px;
  line-height: normal;
}

.bonus__badge-arrow {
  width: 21px;
  height: 14px;
  transform: rotate(0deg);
  margin-bottom: -4px;
}

.bonus__title {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: normal;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}

/* コンテンツ */
.bonus__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.bonus__description {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  line-height: 23.8px;
  width: 100%;
}

/* NFTプレビュー */
.bonus__nft-preview {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.bonus__nft-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* アコーディオン */
.bonus__accordion {
  background: #f7f7f7;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  overflow: hidden;
  width: 343px;
  max-width: 100%;
}

.bonus__accordion-header {
  background: #eeeeee;
  padding: 16px 16px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 10px;
}

.bonus__accordion-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  flex: 1;
  white-space: pre-wrap;
  margin: 0;
}

.bonus__accordion-toggle {
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #333333;
  flex-shrink: 0;
}

.bonus__accordion-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.bonus__accordion-toggle {
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #333333;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bonus__accordion-header.is-open .bonus__accordion-toggle {
  transform: rotate(180deg);
}

.bonus__accordion-content {
  background: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease-in-out;
  opacity: 0;
}

.bonus__accordion.is-open .bonus__accordion-content {
  max-height: 5000px;
  opacity: 1;
}

.bonus__accordion-inner {
  padding: 1.6rem 0;
}

.bonus__steps {
  display: flex;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.bonus__step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 90px;
}

.bonus__step-label {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: #000000;
  line-height: 1.4;
  margin: 0;
  margin-bottom: 4px;
  min-height: 3.4rem;
}

.bonus__step-image {
  width: 90px;
  height: auto;
  object-fit: contain;
}

.bonus__step-arrow {
  width: 14px;
  height: 27.713px;
  margin-top: 3rem;
}

/* チームボタンセクション */
.bonus__team-buttons {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  padding: 23px 12px;
  width: 100%;
  position: relative;
  z-index: 1;
  min-height: 151px;
}

.bonus__team-buttons::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 375px;
  height: 151px;
  background-image: url("../img/bonus/team-buttons-bg.png");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: -1;
}

.bonus__team-button {
  position: relative;
  width: 160px;
  height: 85px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.bonus__team-button--jefunited {
  height: 87px;
}

.bonus__team-button:hover {
  opacity: 0.9;
}

.bonus__team-button-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: rem;
  height: 7rem;
  object-fit: cover;
  pointer-events: none;
  z-index: 10;
}

.bonus__team-button-card {
  top: -1.5rem;
}

.bonus__team-button-text {
  position: absolute;
  left: 0;
  top: 55px;
  padding: 6px 8px;
  background: linear-gradient(
    90deg,
    rgba(51, 51, 51, 1) 0%,
    rgba(190, 179, 1, 1) 49%,
    rgba(51, 51, 51, 1) 100%
  );
  border-radius: 5px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  text-align: center;
  line-height: 1.6rem; /* 145.455% */
  letter-spacing: -0.077rem;
  line-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16rem;
  height: 4.4rem;
  z-index: 1;
}

.bonus__team-button--jefunited .bonus__team-button-text {
  top: 55px;
  background: linear-gradient(
    90deg,
    rgba(51, 51, 51, 1) 0%,
    rgba(0, 155, 105, 1) 50%,
    rgba(51, 51, 51, 1) 100%
  );
  letter-spacing: -0.84px;
}

.bonus__team-button--jefunited .bonus__team-button-text::first-line {
  font-size: 1.1rem;
  letter-spacing: -0.77px;
}

/* レスポンシブ調整 */
@media (max-width: 375px) {
  .bonus__title {
    font-size: 36px;
  }

  .bonus__nft-preview {
    width: 160px;
    height: 160px;
  }

  .bonus__accordion {
    width: 100%;
  }
}
