/* ご利用方法 / page1000 */
.howto-page {
  --howto-gold: #ba9550;
  --howto-white: #f5f5f5;
  --howto-panel: rgba(0, 0, 0, 0.35);
  --howto-note: #5f1212;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  color: var(--howto-white);
}

.howto-page .sub-header {
  z-index: 20;
}

.howto-page .sub-header-logo {
  flex: 0 0 auto;
}

.howto-main {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
  padding: 150px 0 180px;
}

/* 濃い背景は本文レイアウトから切り離した装飾レイヤー */
.howto-main::after {
  position: absolute;
  z-index: 0;
  top: 196px;
  right: 0;
  bottom: 180px;
  left: 20px;
  background: var(--howto-panel);
  content: "";
  pointer-events: none;
}

.howto-title,
.howto-inner {
  position: relative;
  z-index: 1;
}

.howto-title {
  width: max-content;
  margin-inline: auto;
  color: var(--howto-white);
  text-align: center;
}

.howto-title p,
.howto-title h1 {
  margin: 0;
}

.howto-title p {
  font-family: var(--sub-font-ja);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.howto-title h1 {
  font-family: var(--sub-font-en);
  font-size: 50px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.howto-ornament {
  position: relative;
  display: block;
  width: 100px;
  height: 20px;
  margin: 10px auto 0;
}

.howto-ornament::before,
.howto-section-heading::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--howto-gold);
  content: "";
}

.howto-ornament::before {
  top: 50%;
  height: 1px;
}

.howto-ornament::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 20px;
  background: var(--howto-gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  content: "";
  transform: translate(-50%, -50%);
}

.howto-inner {
  width: min(calc(100% - 40px), 1068px);
  margin: 108px auto 0;
}

.howto-section-heading {
  position: relative;
  text-align: center;
}

#howto-live-title,
#howto-donation-title {
  scroll-margin-top: 140px;
}

.howto-section-heading h2 {
  margin: 0;
  padding: 0 0 20px;
  color: var(--howto-white);
  font-family: var(--sub-font-ja);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.howto-section-heading::after {
  bottom: 0;
  height: 2px;
}

.howto-social-rail {
  display: none;
}

.howto-social-rail a {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.howto-social-rail img {
  max-width: 20px;
  max-height: 20px;
  filter: brightness(0) invert(1);
}

.howto-steps {
  position: relative;
  display: grid;
  gap: 72px;
  margin-top: 45px;
}

/* STEPをつなぐ線だけ装飾として絶対配置。本文位置には使わない */
.howto-steps::before {
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 36px;
  width: 2px;
  background: var(--howto-gold);
  content: "";
}

.howto-step {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  column-gap: 31px;
  align-items: start;
}

.howto-step-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 50px;
  height: 50px;
  margin: 8px 0 0 11px;
  place-items: center;
  color: var(--sub-red);
  background: var(--howto-gold);
  transform: rotate(45deg);
}

.howto-step-marker span {
  font-family: var(--sub-font-en);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-45deg);
}

.howto-step-body {
  min-width: 0;
  padding-top: 20px;
  color: var(--howto-white);
}

.howto-step-body h3,
.howto-step-body p {
  margin: 0;
}

.howto-step-body h3 {
  font-family: var(--sub-font-ja);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.howto-copy {
  margin-top: 38px !important;
  font-family: var(--sub-font-ja);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}

.howto-placeholder {
  display: grid;
  place-items: center;
  color: var(--howto-white);
  /* background: #9d9d9d; */
  font-family: var(--sub-font-ja);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  border: 1px #5f1212 solid;
}

.howto-placeholder--store {
  width: min(100%, 597px);
  aspect-ratio: 597 / 285;
  margin-top: 25px;
}

.howto-placeholder--live {
  width: 100%;
  aspect-ratio: 934 / 285;
  margin-top: 25px;
}

.howto-placeholder-mobile {
  display: none;
}

.howto-step--2 .howto-copy--detail {
  margin-top: 24px !important;
}

.howto-page .howto-button {
  position: relative;
  display: flex;
  width: 273px;
  height: 53px;
  align-items: center;
  justify-content: center;
  color: #121212;
  border: 1px solid var(--howto-gold);
  background: var(--howto-gold);
  font-family: var(--sub-font-ja);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.howto-page .howto-button--outline {
  color: var(--howto-gold);
  background: transparent;
}

.howto-button i {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: translateY(-50%);
  transition: transform 0.45s ease;
}

.howto-button:hover i {
  transform: translateY(-50%) rotate(360deg);
}

.howto-actions--register {
  display: grid;
  grid-template-columns: repeat(2, 273px);
  gap: 30px;
  width: max-content;
  margin-top: 32px;
}

.howto-button--single {
  margin-top: 36px;
}

.howto-donation {
  margin-top: 106px;
  padding-bottom: 140px;
}

.howto-donation .howto-section-heading h2 {
  font-size: 24px;
}

.howto-donation-box {
  margin-top: 24px;
  padding: 17px 19px;
  border-radius: 4px;
  color: var(--howto-white);
  background: var(--howto-note);
}

.howto-donation-box p {
  margin: 0;
  font-family: var(--sub-font-ja);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.howto-donation-note {
  margin: 8px 6px 0 0;
  font-family: var(--sub-font-ja);
  font-size: 10px;
  font-weight: 500;
  text-align: right;
}

.howto-button--donation {
  display: flex;
  margin: 25px auto 0;
}

.howto-page .sub-footer {
  flex: 0 0 auto;
  margin-top: 0;
  padding-bottom: 50px;
}

@media (max-width: 960px) {
  #howto-live-title,
  #howto-donation-title {
    scroll-margin-top: 112px;
  }

  .howto-main {
    padding: 140px 0 130px;
  }

  .howto-main::after {
    top: 119px;
    bottom: 130px;
    left: 0;
  }

  .howto-title p {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .howto-title h1 {
    font-size: 31px;
  }

  .howto-ornament {
    width: 74px;
    height: 15px;
    margin-top: 17px;
  }

  .howto-ornament::after {
    width: 8px;
    height: 15px;
  }

  .howto-inner {
    width: calc(100% - 28px);
    margin-top: 72px;
  }

  .howto-section-heading h2,
  .howto-donation .howto-section-heading h2 {
    padding-bottom: 13px;
    font-size: 16px;
    line-height: 1.35;
  }

  .howto-social-rail {
    display: none;
  }

  .howto-steps {
    gap: 66px;
    margin-top: 62px;
  }

  .howto-steps::before {
    display: none;
  }

  .howto-step {
    display: block;
  }

  .howto-step-marker {
    width: 32px;
    height: 32px;
    margin: 0 auto;
  }

  .howto-step-marker span {
    font-size: 16px;
  }

  .howto-step-body {
    padding-top: 31px;
  }

  .howto-step-body h3 {
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
  }

  .howto-copy {
    margin-top: 24px !important;
    font-size: 11px;
    line-height: 1.7;
    text-align: left;
  }

  .howto-actions--register {
    grid-template-columns: 273px;
    gap: 16px;
    width: 273px;
    margin: 25px auto 0;
  }

  .howto-placeholder {
    width: 100%;
    font-size: 14px;
  }

  .howto-placeholder--store {
    aspect-ratio: 597 / 285;
    margin-top: 24px;
  }

  .howto-placeholder--live {
    aspect-ratio: 348 / 108;
    margin-top: 24px;
  }

  .howto-placeholder-desktop {
    display: none;
  }

  .howto-placeholder-mobile {
    display: inline;
  }

  .howto-step--2 .howto-copy--detail {
    margin-top: 24px !important;
  }

  .howto-button--single {
    display: flex;
    margin: 24px auto 0;
  }

  .howto-donation {
    margin-top: 104px;
    padding-bottom: 120px;
  }

  .howto-donation-box {
    margin: 20px 10px 0;
    padding: 17px 10px;
  }

  .howto-donation-box p {
    font-size: 12px;
    line-height: 1.7;
  }

  .howto-donation-note {
    margin: 8px 11px 0 0;
    font-size: 10px;
  }

  .howto-button--donation {
    margin-top: 25px;
  }

  .howto-page .sub-footer {
    padding-top: 38px;
    padding-bottom: 58px;
  }
}
