body {
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: var(--body-background-color, #fff);
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

img {
  width: 100%;
  height: 100%;
  margin: auto;
  object-fit: cover;
}

.common-h1-text {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}

.common-p-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.common-p-help-text {
  margin: 0;
  font-size: 12px;
  text-align: center;
  white-space: pre-wrap;
}

.common-p-warning-text {
  margin-top: 8px;
  font-size: 12px;
  color: var(--apply-warning-color, #ffa726);
  text-align: center;
  white-space: pre-wrap;
}

.campaign-display-block {
  display: block;
}

.campaign-display-none {
  display: none;
}

.campaign-rule {
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}

.campaign-rule-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rule-button-text, #333);
  cursor: pointer;
  background: var(--rule-button-bg, #fff);
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.campaign-apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.campaign-apply-other-button {
  display: block;
  margin: auto;
  color: #00b0ff;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.auth-lottery-confirm-button {
  display: block;
  padding: 16px 24px;
  margin: auto;
  margin-bottom: 16px;
  color: var(--apply-button-text, #fff);
  cursor: pointer;
  background-color: var(--apply-button-bg, #009ccb);
  border: 1px solid var(--apply-button-bg, #009ccb);
  border-radius: 4px;
}

.auth-lottery-confirm-button:disabled {
  color: #00000042;
  cursor: not-allowed;
  background-color: #ccc;
  border-color: #ccc;
}

.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(0 0 0 / 60%);
}

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

.rules-modal__panel {
  position: relative;
  width: min(800px, 100%);
  max-height: 80vh;
  padding: 32px 32px 40px;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 20%);
}

.rules-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  background: transparent;
  border: none;
}

.rules-modal__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.rules-modal__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.is-modal-open {
  overflow: hidden;
}

.x-profile {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.x-profile-person {
  display: flex;
  flex-direction: column;
}

.x-profile-icon-url {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.x-profile-name {
  margin: 0;
  font-size: 14px;
  color: #484848;
}

.x-profile-screen-name {
  margin: 0;
  font-size: 12px;
  color: #888;
}

.x-auth-error-message {
  margin: 0;
  margin-block: 0;
  margin-inline: 0;
  font-size: 12px;
  color: var(--apply-error-color, #ef5350);
  text-align: center;
  white-space: pre-wrap;
}

.preview-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  padding: 16px 56px;
  color: #fff;
  text-align: center;
  background-color: #aaa;
}

.preview-footer__text {
  display: block;
  margin: 0;
}

.preview-footer__toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  transform: translateY(-50%);
}

.preview-footer.is-hidden {
  color: transparent;
  background-color: transparent;
}

.preview-footer.is-hidden .preview-footer__text {
  visibility: hidden;
}

.custom-footer {
  padding: 24px 16px;
  font-size: 12px;
  color: var(--footer-text-color, #666);
  text-align: center;
  background-color: var(--footer-background-color, var(--body-background-color, #fff));
  border-top: 1px solid #dcdfe6;
}

.section-rule {
  color: var(--apply-text-color, #000);
}

.image-link-reset {
  display: block;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}

.logo-section {
  display: flex;
  justify-content: flex-start;
  padding: calc(var(--logo-header-pc-height, 32px) * 0.25);
}

.logo-section img {
  width: auto;
  height: calc(var(--logo-header-pc-height, 32px) * 0.5);
  margin: 0;
}

.custom-section .section-inner {
  margin: 0 auto;
}

.custom-section:last-of-type {
  flex: 1;
}

.section-media img {
  width: 100%;
}

.media-pc {
  display: block;
}

.media-sp {
  display: none;
}

.section-title {
  margin-bottom: 12px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .media-pc {
    display: none;
  }

  .media-sp {
    display: block;
  }

  .logo-section {
    padding: calc(var(--logo-header-sp-height, 32px) * 0.25);
  }

  .logo-section img {
    height: calc(var(--logo-header-sp-height, 32px) * 0.5);
  }
}
