@media screen and (min-width: 768px) {
  .htp-page {
    padding-top: 6.8rem;
    padding-bottom: 10rem;
  }

  .htp-body {
    width: calc(100% - 12rem);
    max-width: 120rem;
    margin-inline: auto;
  }

  /* Section heading */
  .htp-section {
    margin-top: 8rem;
  }

  .htp-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 4.8rem;
  }

  .htp-section-heading__line {
    width: 8.9rem;
    height: 0.1rem;
    margin-top: 1.3rem;
    display: block;
  }

  .htp-section-heading__ja {
    color: var(--JOPT-Games-Color-Style-JG-Grey-01);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.036rem;
  }

  .htp-section-heading__en {
    margin-top: 0.8rem;
    font-family: Inter, sans-serif;
    color: var(--JOPT-Games-Color-Style-JG-Blue);
    font-size: 4.2rem;
    font-weight: 700;
    letter-spacing: 0.084rem;
    line-height: 1;
  }

  /* Stage cards */
  .htp-stages {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .htp-stage {
    display: flex;
    flex-direction: row;
    min-height: 18rem;
    border-radius: 1.2rem;
    border: 2px solid #EDEDED;
    background: rgba(0, 91, 160, 0.04);
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
    gap: 0rem;
    justify-content: center;
    padding: 0 7rem;
  }

  .htp-stage__label {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    width: 16rem;
    min-height: 18rem;
    padding: 0;
    border-radius: 1.2rem 0 0 1.2rem;
    border: 0.2rem solid #ededed;
    background: var(--JOPT-Games-Color-Style-JG-Blue);
    box-sizing: border-box;
  }

  .htp-stage__tag,
  .htp-stage__num {
    background: linear-gradient(180deg, #d9d9d9 0%, #fff 46.64%, #b3b3b3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Inter, sans-serif;
    font-weight: 700;
    text-align: center;
  }

  .htp-stage__tag {
    width: 100%;
    font-size: 2.8rem;
    line-height: 1;
    letter-spacing: 0.032rem;
  }

  .htp-stage__num {
    width: 100%;
    font-size: 8.2rem;
    line-height: 1;
    letter-spacing: -0.12rem;
  }

  .htp-stage__icon {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
  }

  .htp-stage__icon img {
    max-width: 100%;
    max-height: 13.4rem;
    object-fit: contain;
  }

  .htp-stage__body {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.8rem;
    width: 32.7rem;
    padding: 2.4rem 0;
    box-sizing: border-box;
    margin-top: 1rem;
  }

  .htp-stage__title {
    color: var(--JOPT-Games-Color-Style-JG-Blue);
    font-size: 2rem;
    font-weight: 700;
    line-height: 4.2rem;
  }

  .htp-stage__desc {
    color: var(--JOPT-Games-Color-Style-JG-Black-02);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2.2rem;
    letter-spacing: 0.028rem;
  }

  .htp-stage__meta {
    grid-column: 5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
    padding: 2.4rem;
  }

  .htp-stage__meta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    width: 20rem;
    height: 13.2rem;
    border-radius: 1.2rem;
    background: rgba(0, 91, 160, 0.04);
    padding: 1.8rem 0;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .htp-stage__meta-label {
    color: var(--JOPT-Games-Color-Style-JG-Blue);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.3rem;
  }

  .htp-stage__requirements {
    list-style: none;
    color: var(--JOPT-Games-Color-Style-JG-Black-02);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2.2rem;
    letter-spacing: 0.028rem;
  }

  .htp-stage__reward {
    color: var(--JOPT-Games-Color-Style-JG-Black-02);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2.2rem;
    letter-spacing: 0.028rem;
  }

  /* Ticket matrix */
  .htp-tickets {
    margin-top: 8rem;
}

.htp-tickets__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
    padding-block: 2.4rem;
    border-top: 0.1rem solid var(--JOPT-Games-Color-Style-JG-Grey-02);
    border-bottom: 0.1rem solid var(--JOPT-Games-Color-Style-JG-Grey-02);
    margin-bottom: 1.6rem;
  }

  /* .htp-tickets.is-open .htp-tickets__header {
  } */

  .htp-tickets__title {
    color: var(--JOPT-Games-Color-Style-JG-Blue);
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.8rem;
    letter-spacing: 0;
    margin-left: 1.6rem;
  }

  .htp-tickets__toggle {
    display: inline-flex;
    align-items: center;
    margin-right: 1.6rem;
  }

  .htp-tickets__toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .htp-tickets__toggle-btn img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .htp-tickets.is-open [data-htp-tickets-toggle="open"] {
    display: none;
  }

  .htp-tickets:not(.is-open) [data-htp-tickets-toggle="close"] {
    display: none;
  }

  .htp-tickets__content-inner {
    display: flex;
    flex-direction: column;
    gap: 4.8rem;
    padding: 4.8rem;
    background: #f4f4f4;
  }

  .htp-tickets__group-label {
    margin-bottom: 2.4rem;
    color: var(--JOPT-Games-Color-Style-JG-Black-02);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 3.2rem;
  }

  .htp-tickets__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .htp-event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
    padding: 2.4rem 1.6rem;
    border: 0.2rem solid #ededed;
    border-radius: 1.2rem;
    background: var(--JOPT-Games-Color-Style-JG-White);
    text-align: center;
  }

  .htp-event-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 8rem;
  }

  .htp-event-card__logo img {
    display: block;
    max-width: 12rem;
    max-height: 8rem;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .htp-event-card__divider {
    width: 100%;
    height: 0.1rem;
    border: none;
    background: repeating-linear-gradient(
      to right,
      var(--JOPT-Games-Color-Style-JG-Grey-02) 0,
      var(--JOPT-Games-Color-Style-JG-Grey-02) 0.3rem,
      transparent 0.3rem,
      transparent 0.6rem
    );
  }

  .htp-event-card__name {
    padding: 0.2rem 2rem;
    border-radius: 10rem;
    color: var(--JOPT-Games-Color-Style-JG-White);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 2.2rem;
  }

  .htp-event-card__tickets {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 10rem;
    padding: 0.4rem 1.6rem;
    border-radius: 0.6rem;
    background: rgba(0, 91, 160, 0.04);
    color: var(--JOPT-Games-Color-Style-JG-Black-01);
  }

  .htp-event-card__count {
    font-family: Inter, sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
  }

  .htp-event-card__unit {
    margin-left: 0.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 3.2rem;
  }

  .htp-tickets__note {
    font-size: 1.4rem;
    text-align: right;
  }

  /* App guide */
  .htp-section--guide {
    position: relative;
    width: 100%;
    margin-top: 8rem;
    padding: 10rem 0;
  }

  .htp-section--guide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      url('../../images/how-to-play/app-guide-bg.jpg') center / cover no-repeat;
    z-index: 0;
  }

  .htp-section--guide .htp-body {
    position: relative;
    z-index: 1;
  }

  .htp-section--guide .htp-section-heading__ja,
  .htp-section--guide .htp-section-heading__en {
    color: var(--JOPT-Games-Color-Style-JG-White);
  }

  .htp-guide-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
    list-style: none;
    margin-top: 8rem;
  }

  .htp-guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .htp-phone {
    width: 19rem;
    height: 40.9rem;
    padding: 1.2rem;
    border-radius: 1.6rem;
    background: var(--JOPT-Games-Color-Style-JG-White);
    box-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.28);
  }

  .htp-phone__screen {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f5f7fa 0%, #e8edf3 100%);
    align-content: center;
  }

  .htp-guide-step__label {
    margin-top: 3.2rem;
    padding: 0.4rem 1.6rem;
    border-radius: 10rem;
    background: var(--JOPT-Games-Color-Style-JG-Blue);
    color: var(--JOPT-Games-Color-Style-JG-White);
    font-family: Inter, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.7rem;
    letter-spacing: 0.024rem;
  }

  .htp-guide-step__text {
    margin-top: 1.6rem;
    color: var(--JOPT-Games-Color-Style-JG-White);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2.2rem;
    letter-spacing: 0.028rem;
  }

}

@media screen and (max-width: 767px) {
  .htp-page {
    padding-top: 6.8rem;
    padding-bottom: 6rem;
  }

  .htp-body {
    width: 35.4rem;
    margin-inline: auto;
  }

  .htp-section {
    margin-top: 4.8rem;
  }

  .htp-section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.4rem;
    margin-bottom: 4.2rem;
  }

  .htp-section-heading__text {
    display: contents;
  }

  .htp-section-heading__line {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 6rem;
    height: 0.1rem;
    margin-top: 0;
    display: block;
  }

  .htp-section-heading__ja {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    color: var(--JOPT-Games-Color-Style-JG-Grey-01);
    font-size: 1.4rem;
    font-weight: 700;
  }

  .htp-section-heading__en {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
    font-family: Inter, sans-serif;
    color: var(--JOPT-Games-Color-Style-JG-Blue);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .htp-stages {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .htp-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 0.2rem solid #ededed;
    border-radius: 1.2rem;
    background: rgba(0, 91, 160, 0.04);
    overflow: hidden;
    gap: 2rem;
  }

  .htp-stage__label {
    position: absolute;
    top: 1.6rem;
    left: 11.6rem;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 7.5rem;
    height: 2.6rem;
    min-height: 0;
    padding: 0 0.8rem;
    border: none;
    border-radius: 10rem;
    background: var(--JOPT-Games-Color-Style-JG-Blue);
    box-sizing: border-box;
  }

  .htp-stage__tag,
  .htp-stage__num {
    background: linear-gradient(180deg, #d9d9d9 0%, #fff 46.64%, #b3b3b3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Inter, sans-serif;
    font-weight: 700;
    text-align: center;
    width: auto;
  }

  .htp-stage__tag {
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 0.024rem;
  }

  .htp-stage__num {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04rem;
  }

  .htp-stage__icon {
    grid-area: icon;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    margin: 5.3rem 0 0 0.6rem;
    padding: 0;
  }

  .htp-stage__icon img {
    width: 10.1rem;
    height: 9.2rem;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

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

  .htp-stage__title {
    color: var(--JOPT-Games-Color-Style-JG-Blue);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 3.2rem;
    letter-spacing: 0.032rem;
  }

  .htp-stage__desc {
    margin-top: 0.4rem;
    color: var(--JOPT-Games-Color-Style-JG-Black-02);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 2rem;
  }

  .htp-stage__meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0;
    border-top: none;
  }

  .htp-stage__meta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.2rem 2rem;
    border-radius: 1.2rem;
    background: rgba(0, 91, 160, 0.04);
    text-align: center;
  }

  .htp-stage__meta-block:first-child {
    border-right: none;
  }

  .htp-stage__meta-label {
    color: var(--JOPT-Games-Color-Style-JG-Blue);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: normal;
  }

  .htp-stage__requirements,
  .htp-stage__reward {
    margin-top: 0;
    color: var(--JOPT-Games-Color-Style-JG-Black-02);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.048rem;
  }

  .htp-stage__requirements {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
  }

  .htp-tickets {
    margin-top: 9.6rem;
  }

  .htp-tickets__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding-block: 1.6rem;
    border-top: 0.1rem solid var(--JOPT-Games-Color-Style-JG-Grey-02);
    border-bottom: 0.1rem solid var(--JOPT-Games-Color-Style-JG-Grey-02);
    margin-bottom: 1.2rem;
  }

  .htp-tickets__title {
    width: 28.4rem;
    min-width: 0;
    color: var(--JOPT-Games-Color-Style-JG-Blue);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2.4rem;
  }

  .htp-tickets__toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
  }

  .htp-tickets__toggle-btn {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    margin-right: 1.2rem;
  }

  .htp-tickets__toggle-btn img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .htp-tickets.is-open [data-htp-tickets-toggle="open"] {
    display: none;
  }

  .htp-tickets:not(.is-open) [data-htp-tickets-toggle="close"] {
    display: none;
  }

  .htp-tickets__content-inner {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    padding: 2.4rem 1.6rem;
    background: #f4f4f4;
  }

  .htp-tickets__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .htp-tickets__group-label {
    margin-bottom: 1.6rem;
    color: var(--JOPT-Games-Color-Style-JG-Black-02);
    font-size: 1.6rem;
    line-height: 3.2rem;
    font-weight: 700;
  }

  .htp-tickets__group + .htp-tickets__group {
    margin-top: 0;
  }

  .htp-event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 1.4rem;
    border: 0.2rem solid #ededed;
    border-radius: 1.2rem;
    background: var(--JOPT-Games-Color-Style-JG-White);
    text-align: center;
  }

  .htp-event-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 6rem;
    margin-inline: auto;
  }

  .htp-event-card__logo img {
    display: block;
    max-width: 7.9rem;
    min-height: 7.9rem;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .htp-event-card__divider {
    width: 100%;
    height: 0.1rem;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
    border: none;
    background: repeating-linear-gradient(
      to right,
      var(--JOPT-Games-Color-Style-JG-Grey-02) 0,
      var(--JOPT-Games-Color-Style-JG-Grey-02) 0.3rem,
      transparent 0.3rem,
      transparent 0.6rem
    );
  }

  .htp-event-card__name {
    margin-top: 1.2rem;
    padding: 0.2rem 1.6rem;
    border-radius: 10rem;
    color: var(--JOPT-Games-Color-Style-JG-White);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 2.2rem;
  }

  .htp-event-card__tickets {
    width: 10rem;
    min-width: 0;
    display: inline-flex;
    justify-content: center;
    align-items: baseline;
    /* margin-top: 1rem; */
    padding: 0.4rem 1.2rem;
    border-radius: 0.6rem;
    background: rgba(0, 91, 160, 0.04);
    color: var(--JOPT-Games-Color-Style-JG-Black-01);
  }

  .htp-event-card__count {
    font-size: 2.4rem;
    font-weight: 700;
  }

  .htp-event-card__unit {
    margin-left: 0.2rem;
    font-size: 1.4rem;
  }

  .htp-tickets__note {
    font-size: 1.4rem;
    text-align: right;
  }

  .htp-section--guide {
    position: relative;
    margin-top: 4.8rem;
    margin-inline: calc(50% - 50vw);
    width: 100vw;
    padding: 4.8rem 0;
  }

  .htp-section--guide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      url('../../images/how-to-play/app-guide-bg.jpg') center / cover no-repeat;
  }

  .htp-section--guide .htp-body {
    position: relative;
    z-index: 1;
  }

  .htp-section--guide .htp-section-heading__ja,
  .htp-section--guide .htp-section-heading__en,
  .htp-guide-step__label,
  .htp-guide-step__text {
    color: #fff;
  }

  .htp-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    list-style: none;
    margin-top: 2.4rem;
  }

  .htp-phone {
    width: 16rem;
    height: 34rem;
    margin-inline: auto;
    padding: 1rem;
    border-radius: 1.4rem;
    background: #fff;
    box-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.28);
  }

  .htp-phone__screen {
    width: 100%;
    height: 100%;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #f5f7fa 0%, #e8edf3 100%);
    align-content: center;
  }

  .htp-guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .htp-guide-step__label {
    display: inline-block;
    margin-top: 1.6rem;
    padding: 0.4rem 1.2rem;
    border-radius: 10rem;
    background: var(--JOPT-Games-Color-Style-JG-Blue);
    color: var(--JOPT-Games-Color-Style-JG-White);
    font-family: Inter, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
  }

  .htp-guide-step__text {
    margin-top: 1.2rem;
    color: var(--JOPT-Games-Color-Style-JG-White);
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 2rem;
  }

}

.htp-tickets__content {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}

.htp-tickets:not(.is-open) .htp-tickets__content {
  grid-template-rows: 0fr;
}

.htp-tickets__content-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.htp-tickets:not(.is-open) .htp-tickets__content-inner {
  opacity: 0;
}

.htp-tickets__header {
  transition: margin-bottom 0.35s ease;
}

.htp-tickets:not(.is-open) .htp-tickets__header {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .htp-tickets__content,
  .htp-tickets__content-inner,
  .htp-tickets__header {
    transition: none;
  }
}
