:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-red: #e60012;
  --color-blue: #004fa3;
  --color-aqua: #abe1f8;
  --color-yellow: #f7e600;
  --color-cream: #fffcdb;
  --color-gray: #b4b4b4;
  --color-warning: #ffe100;
  --body-padding-horizontal: 20px;
  --content-padding-vertical: 30px;
  --content-padding-horizontal: 10px;
  --border-radius: 30px;
  --font-size: 16px;
  --body-max-width: 750px;
  --body-base-width: 375px;
  /** 14px, (17px), 18px, 20px, 22px **/
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--color-white);
  color: var(--color-black);
  font-family: "kozuka-gothic-pr6n", sans-serif;
  font-style: normal;
  font-size: var(--font-size);
  letter-spacing: 0.05em; /** XD:AV = 50 **/
  line-height: 1.4;
}
body:has(.el-modal.open),
body:has(dialog[open]) {
  overflow: hidden;
}

.wrapper {
  position: relative;
  min-height: 100vh;
  min-height: 100lvh;
  width: 100%;
  max-width: var(--body-max-width);
  margin: 0 auto;
  background-color: var(--color-aqua);
}

/** box **/
.el-box {
  width: 100%;
  padding-left: var(--body-padding-horizontal);
  padding-right: var(--body-padding-horizontal);
  margin-left: auto;
  margin-right: auto;
}
.el-box.yellow {
  background-color: var(--color-yellow);
}

/** image **/
.el-img img {
  width: 100%;
  height: auto;
}

/** container **/
.el-container {
  padding: var(--content-padding-vertical) var(--content-padding-horizontal);
}
.el-container.white {
  background-color: var(--color-white);
}
.el-container.radius {
  border-radius: var(--border-radius);
}

/** heading **/
.el-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 100%;
  padding-top: 4px; /** フォントの影響でずれる **/
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}
.el-heading.mypage {
  background-color: var(--color-yellow);
  color: var(--color-blue);
}
.el-subheading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 3px;
  padding-top: 2px; /** フォントの影響でずれる **/
  color: var(--color-blue);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

/** button **/
.el-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  font-size: 16px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1em;
  border-radius: var(--border-radius);
  min-height: 56px;
  width: 100%;
  max-width: var(--body-base-width);
  cursor: pointer;
  vertical-align: middle;
}
.el-button.disabled,
.el-button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.el-button.red {
  background-color: var(--color-red);
  color: var(--color-white);
}
.el-button.blue {
  background-color: var(--color-blue);
  color: var(--color-white);
}
.el-button.white {
  background-color: var(--color-white);
  color: var(--color-black);
}
.el-button.white.border {
  border: solid 2px var(--color-black);
}
.el-button.right::after {
  position: absolute;
  right: 23px;
  width: 10px;
  height: 16px;
  z-index: 1;
  display: inline-block;
  background-image: url("/images/icons/caret-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
}
.el-button.left::after {
  position: absolute;
  left: 23px;
  width: 10px;
  height: 16px;
  z-index: 1;
  display: inline-block;
  background-image: url("/images/icons/caret-left.svg");
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
}
.el-button.u-font-22 {
  padding-top: 4px;
}
.el-button.line-2 {
  height: 68px;
}
.el-button.line-2_5 {
  height: 90px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

dialog {
  position: fixed;
  display: none;
  inset-inline: 0;
  inset-block: 0;
  overflow: hidden;

  width: 90%;
  max-width: 750px;
  margin: auto;
  padding: 0;
  border: none;
  background-color: transparent;

  animation-name: fadeOut;
  animation-fill-mode: forwards;
  animation-duration: 200ms;
  animation-timing-function: ease-out;
}

dialog[open] {
  display: block;
  animation-name: fadeIn;
  animation-fill-mode: forwards;
  animation-duration: 200ms;
  animation-timing-function: ease-out;
  -webkit-tap-highlight-color: transparent;
}
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}
dialog:modal {
  background-color: transparent;
  border: none;
}
dialog:focus-visible {
  outline: none;
}
dialog :focus-visible {
  outline: none;
}
dialog .content {
  background-color: var(--color-white);
  border: solid 2px var(--color-blue);
  border-radius: 10px;
}
dialog .header {
  position: relative;
  background-color: var(--color-blue);
}
dialog .header .heading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
}
dialog .header .close {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 1em;
  height: 1em;
  cursor: pointer;
}
dialog .header .close img {
  width: 100%;
  height: 100%;
}
dialog .body {
  padding: 20px 17.5px;
  overflow-y: auto;
  height: calc(80svh - 60px);
}

/** modal **/
.el-modal {
  opacity: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 100vh;
  min-height: 100lvh;
  transform: translateY(200vh);
  /*	transition: opacity 0.2s ease-out; */
}
.el-modal.open {
  opacity: 1;
  transform: translateY(0);
}
.el-modal .el-modal__overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}
.el-modal .el-modal__container {
  position: relative;
  width: 90%;
  max-width: 750px;
  margin: auto;
  border-radius: 10px;
  background-color: var(--color-white);
  overflow: hidden;
}
.el-modal .el-modal__container .header {
  position: relative;
  background-color: var(--color-blue);
}
.el-modal .el-modal__container .header .heading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
}
.el-modal .el-modal__container .header .close {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 1em;
  height: 1em;
}
.el-modal .el-modal__container .header .close img {
  width: 100%;
  height: 100%;
}
.el-modal .el-modal__container .body {
  padding: 20px 17.5px;
  overflow-y: auto;
  height: calc(80svh - 60px);
}

/** scrollable **/
.el-scrollable {
  width: 100%;
  background-color: var(--color-white);
  border: solid 2px var(--color-blue);
  border-radius: 10px;
  padding: 20px 5px 20px 20px;
}
.el-scrollable .inner {
  width: 100%;
  max-height: 60vh;
  padding-right: 15px;
  aspect-ratio: 1 / 1;
  overflow-y: scroll;
}
.el-scrollable .inner::-webkit-scrollbar {
  border-radius: 10px;
  width: 5px;
}
.el-scrollable .inner::-webkit-scrollbar-thumb {
  background: var(--color-gray);
  border-radius: 10px;
}

/** accordion **/
.el-accordion {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  padding: 13px;
  border: solid 2px var(--color-blue);
}
.el-accordion summary {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.el-accordion summary::marker,
.el-accordion summary::-webkit-details-marker {
  display: none;
}
.el-accordion summary::after {
  display: inline-block;
  width: 17px;
  height: 11px;
  z-index: 1;
  margin-left: 1em;
  background-image: url("/images/icons/chevron-down.svg");
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
}
.el-accordion[open] summary::after {
  background-image: url("/images/icons/chevron-up.svg");
}
.el-accordion p,
.el-accordion div {
  width: 100%;
  word-break: break-all;
  padding-bottom: 5px;
}

/** main visual **/
.el-main_visual {
  width: 100%;
  height: auto;
}
.el-main_visual img {
  width: 100%;
  height: auto;
}

/** el-agreement **/
.el-agreement {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  padding-left: calc(var(--content-padding-horizontal) + 28px + 5px);
  cursor: pointer;
}
.el-agreement input {
  display: none;
}
.el-agreement::before {
  position: absolute;
  left: var(--content-padding-horizontal);
  width: 28px;
  height: 28px;
  background-color: var(--color-white);
  border: solid 2px var(--color-red);
  display: block;
  content: "";
  z-index: 1;
}
.el-agreement:has(input:checked)::after {
  position: absolute;
  display: block;
  left: 14px;
  width: 20px;
  height: 14px;
  background: url("/images/icons/accepted.svg");
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
  z-index: 2;
}
.el-agreement a {
  text-decoration: underline;
}

/** utilities **/
.u-pt-0 {
  padding-top: 0px;
}
.u-pt-10 {
  padding-top: 10px;
}
.u-pt-15 {
  padding-top: 15px;
}
.u-pt-20 {
  padding-top: 20px;
}
.u-pt-30 {
  padding-top: 30px;
}
.u-pt-35 {
  padding-top: 35px;
}
.u-pt-40 {
  padding-top: 40px;
}

.u-pb-0 {
  padding-bottom: 0px;
}
.u-pb-20 {
  padding-bottom: 20px;
}

.u-prpl-10 {
  padding-right: 10px;
  padding-left: 10px;
}

.u-mt-5 {
  margin-top: 5px;
}
.u-mt-10 {
  margin-top: 10px;
}
.u-mt-15 {
  margin-top: 15px;
}
.u-mt-20 {
  margin-top: 20px;
}
.u-mt-25 {
  margin-top: 25px;
}
.u-mt-30 {
  margin-top: 30px;
}
.u-mt-35 {
  margin-top: 35px;
}
.u-mt-40 {
  margin-top: 40px;
}
.u-ml-10 {
  margin-left: 10px;
}

.u-font-r {
  font-weight: 400;
}
.u-font-m {
  font-weight: 500;
}
.u-font-b {
  font-weight: 700;
}

.u-font-28 {
  font-size: 28px;
}
.u-font-22 {
  font-size: 22px;
}
.u-font-20 {
  font-size: 20px;
}
.u-font-18 {
  font-size: 18px;
}
.u-font-16 {
  font-size: 16px;
}
.u-font-14 {
  font-size: 14px;
}
.u-font-12 {
  font-size: 12px;
}

.u-font-red {
  color: var(--color-red);
}
.u-font-blue {
  color: var(--color-blue);
}

.u-line_height-1 {
  line-height: 1;
}
.u-letter_spacing-0 {
  letter-spacing: 0;
}
.u-text-center {
  text-align: center;
}
.u-word-break-all {
  word-break: break-all;
}
.u-text-underline {
  text-decoration: underline;
}
.u-link-underline a {
  text-decoration: underline;
}

.u-maxWidth-100per {
  max-width: 100%;
}

.u-bg-warning {
  background-color: var(--color-warning);
}

/** top page **/
#top-menu {
  text-align: center;
}
#top-menu .inner-links {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 3px 8px;
}
#top-menu .inner-links::before {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 18px;
  background-color: var(--color-yellow);
  z-index: 0;
  content: "";
}
#top-menu .inner-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 54px;
  padding-bottom: 4px;
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-blue);
  border: solid 3px var(--color-blue);
  border-radius: 9px;
  text-align: center;
}
#top-menu .inner-links a::after {
  position: absolute;
  bottom: 5px;
  width: 14px;
  height: 8px;
  z-index: 1;
  display: inline-block;
  background-image: url("/images/icons/caret-down.svg");
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
}

#top-prize img {
  width: 100%;
  height: auto;
}

#top-prize [data-toggle-prize-part="open"],
#top-prize [data-toggle-prize-part="close"] {
  cursor: pointer;
}
#top-prize [data-toggle-prize-part="close"],
#top-prize [data-toggle-prize-part="body"] {
  height: 0;
  display: none;
  transition: height 0.3s ease-out;
}

#top-prize .opened[data-toggle-prize-part="open"] {
  display: none;
}
#top-prize .opened[data-toggle-prize-part="close"],
#top-prize .opened[data-toggle-prize-part="body"] {
  height: auto;
  display: block;
}

#how-to-apply .description {
  text-align: center;
  padding: 15px 0 15px;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}
#how-to-apply .description p:first-of-type {
  line-height: 1.5;
}
#how-to-apply img {
  width: 100%;
  height: auto;
}
#target-products img {
  width: 100%;
  height: auto;
}

#contact {
  text-align: center;
}

footer {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  letter-spacing: 0;
}
footer hr {
  width: 50%;
  color: #6e6e6e;
  margin-left: auto;
  margin-right: auto;
}
footer img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 120px;
}
footer a {
  display: inline-block;
  text-decoration: underline;
}

#go2top {
  position: fixed;
  bottom: 50px;
  right: 15px;
  cursor: pointer;
  z-index: 5;
}

/** mypage **/
.current-point {
  position: relative;
  width: 100%;
  aspect-ratio: 612/141;
  background-image: url("/images/mypage/point-head.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: -30px;
  container-type: inline-size;
}
.current-point .value {
  position: absolute;
  top: 34%;
  left: 38%;
  width: 20cqw;
  height: 13cqw;
  font-size: 13cqw;
  font-weight: 700;
  color: var(--color-red);
  text-align: right;
  line-height: 1;
}
#mypage-point .total-point {
  display: flex;
  justify-content: center;
  align-items: baseline;
}
#mypage-point .total-point .value {
  display: inline-block;
  width: 45px;
  text-align: right;
}

/** entry **/
.el-selected-prize {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding-top: 4px; /** フォントの影響でずれる **/
  border: solid 2px var(--color-blue);
  background-color: var(--color-white);
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

/** history **/
.el-history-item .date {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-blue);
  padding-left: 10px;
}
.el-history-item .name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin-top: 3px;
  padding-top: 4px; /** フォントの影響でずれる **/
  border: solid 2px var(--color-blue);
  background-color: var(--color-white);
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.el-history-item + .el-history-item {
  margin-top: 25px;
}

/** error page **/
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 100vh;
  min-height: 100lvh;
  width: 100%;
  max-width: var(--body-max-width);
  margin: 0 auto;
  background-color: var(--color-aqua);
}
body.close .error-page {
  background-color: transparent;
}
.error-page__inner {
  width: 100%;
  padding: 50px var(--body-padding-horizontal);
}
.error-page .icon {
  text-align: center;
}
.error-page .title,
.error-page .friendship,
.error-page .notes,
.error-page .buttons {
  width: 100%;
  margin-top: 30px;
}
.error-page .title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.error-page .friendship .help {
  background-color: var(--color-white);
  padding: 20px 10px;
}
.error-page .friendship .help .head {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}
.error-page .friendship .help .body {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}
.error-page .notes {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}
.error-page .image {
  width: 100%;
  padding-left: var(--content-padding-horizontal);
  padding-right: var(--content-padding-horizontal);
}
.error-page .image img {
  width: 100%;
  height: auto;
}
