.l-lottery-kv {
  position: relative;
}
.l-lottery-kv .heading-1 {
  font-size: 0;
}

.l-lottery-kv-modal {
  position: absolute;
  bottom: 7.3%;
  left: 0;
  width: 100%;
  text-align: center;
}
.l-lottery-kv-modal .text_link-window {
  position: relative;
  display: inline-block;
  font-size: 2.7vw;
  color: #fff;
}
.l-lottery-kv-modal .text_link-window > span::after {
  position: absolute;
  top: 0;
  width: 1.6em;
  aspect-ratio: 1;
  margin-left: 4px;
  background-color: #fff;
}

.l-lottery-intro {
  padding: 32px 0;
}

.l-lottery-intro-box {
  padding: 16px 14px;
  margin: 0 auto;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  background: #fdfae1;
  border-radius: 15px;
  max-width: 750px
}

.l-lottery-forall {
  padding: 40px 0;
}

.l-lottery-apply {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
          flex-direction: column;
  gap: 16px;
  padding: 24px 16px;
  background: #ecf8ff;
  border-radius: 15px;
}

.l-lottery-apply-list {
  display: grid;
  gap: 24px;
}
.l-lottery-apply-list > li {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
          flex-direction: column;
  gap: 8px;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
}

.l-lottery-apply-title {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  line-height: 1.6;
}

.l-lottery-apply-premium {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
          flex-direction: column;
  padding: 24px 16px;
  background: #ecf8ff;
  border-radius: 15px;
}

.l-lottery-apply-premium-list {
  display: grid;
  gap: 24px;
}
.l-lottery-apply-premium-list > li {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
          flex-direction: column;
  gap: 21px;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
}
.l-lottery-apply-premium-list .button-premium .inner img {
  width: 70%;
}

/* modal-service
----------------------------------------------------------------------- */
:where(.modal.modal-service) {
  z-index: 9001;
  overflow-y: auto;
}
:where(.modal.modal-service) .modal-close::before, :where(.modal.modal-service) .modal-close::after {
  content: none;
}
:where(.modal.modal-service) .modal-content {
  background-color: #fff;
  max-width: 950px;
  width: 100%;
  margin: 30px auto;
  border-radius: 4px;
  box-sizing: border-box;
  transform: translate(-50%, -45vh);
  position: absolute;
  height: auto;
  padding: 0;
  z-index: 1100;
}
:where(.modal.modal-service) .modal-content .modal-inner {
  width: 100%;
  height: auto;
  overflow-y: inherit;
  margin: auto;
  padding: 0;
}
.modal-service .modal-header {
  background: #0e66b3;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 150px;
  padding: 0 30px;
  position: relative;
}
.modal-service .modal-header h2 {
  display: block;
}
.modal-service .modal-body {
  padding: 60px 52px 30px;
  line-height: 1.5;
}
.modal-service .modal-body a {
  color: var(--main-link-color);
}
.modal-service .modal-lead {
  margin-bottom: 37px;
  font-size: 1.8rem;
}
:where(.modal.modal-service) .modal-close-button-top {
  position: absolute;
  top: 10px;
  right: 10px;
  width: min(60px, 5vw);
  min-width: 30px;
  height: min(60px, 5vw);
  min-height: 30px;
  background: #fff;
  border-radius: 50%;
}
:where(.modal.modal-service) .modal-close-button-top::before, :where(.modal.modal-service) .modal-close-button-top::after {
  position: absolute;
  content: " ";
  top: 50%;
  left: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  height: min(33px, 2.75vw);
  min-height: 15px;
  width: min(5px, 0.4166666667vw);
  min-width: 2px;
  background-color: #0e66b3;
}
:where(.modal.modal-service) .modal-close-button-top::before {
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}
:where(.modal.modal-service) .modal-close-button-top::after {
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.modal-service .modal-close-button-bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 32px;
  border: 2px solid #fff;
  background: #acacac;
  width: 180px;
  height: 40px;
  padding: 0 67px;
  margin: 0 auto;
  text-align: center;
  position: initial;
}
.modal-service .note-list li {
  font-size: 1.2rem;
  margin-right: 1em;
  margin-bottom: 3px;
  position: relative;
  padding-left: 1.5em;
}
.modal-service .note-list li::before {
  position: absolute;
  content: "\203B";
  left: 0;
}
.modal-service .note-list li .f_red {
  color: #D2322E;
}
.modal-service .mb-22 {
  margin-bottom: 5.5rem;
}
.modal-service .mb-18 {
  margin-bottom: 4.5rem;
}
/* ガス機器無料診断サービスとは */
.modal-about-gas-check .check-mv {
    max-width: 618px;
    margin: 0 auto;
}
.modal-about-gas-check .check-intro {
    background: #fbf5d1;
    padding: 27px 48px 30px;
    margin-bottom: 60px;
    border-radius: 10px;
}
.modal-about-gas-check .check-intro-title {
    max-width: 524px;
    margin: 0 auto 30px;
}
.modal-about-gas-check .check-intro-list {
    display: grid;
    -webkit-column-gap: 6.6666666667%;
    -moz-column-gap: 6.6666666667%;
    column-gap: 6.6666666667%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.modal-about-gas-check .check-intro-item-image {
    margin-bottom: 18px;
}
.modal-about-gas-check .check-intro-item p {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.75;
}
.modal-about-gas-check .check-point-title {
    max-width: 282px;
    margin: 0 auto 40px;
}
.modal-about-gas-check .check-point-list {
    margin-bottom: 60px;
    display: grid;
    -webkit-column-gap: 5.3333333333%;
    -moz-column-gap: 5.3333333333%;
    column-gap: 5.3333333333%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 住まいの無料メンテナンスサービスとは */
.modal-about-maintenance .maintenance-box {
    margin-bottom: 20px;
}
.modal-about-maintenance .maintenance-box-header {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #003789;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding: 10px 10px 10px 30px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.modal-about-maintenance .maintenance-box-num {
    max-width: 60px;
    margin-right: 18px;
}
.modal-about-maintenance .maintenance-box-time {
    max-width: 255px;
    margin-left: auto;
}
.modal-about-maintenance .maintenance-box-body {
    border: 2px solid #0e66b3;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 30px 30px 36px;
}
.modal-about-maintenance .maintenance-box-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    -webkit-column-gap: 21px;
    -moz-column-gap: 21px;
    column-gap: 21px;
    margin-bottom: 20px;
}
.modal-about-maintenance #maintenance-03 .maintenance-box-list div:nth-child(3) {
    padding-top: 26px;
}
.modal-about-maintenance #maintenance-03 .maintenance-box-list div:nth-child(3) img {
    width: 84.7826086957%;
}
.modal_inner_table {
  width: 100%;
  min-width: 846px;
}
.modal_inner_table tr th,
.modal_inner_table tr td {
  color: #2d2e2f;
  font-size: 1.2rem;
  padding: 10px;
}
.modal_inner_table tr th.menu {
  width: 35%;
}
.modal_inner_table tr th,
.modal_inner_table tr td.center {
  text-align: center;
}
.modal_inner_table tr td {
  text-align: right;
}
.modal_inner_table tr td.left {
  text-align: left;
}
.modal_inner_table tr td.txt_red,
.modal_inner_table tr td span.txt_red {
  color: #D2322E;
}
.modal_inner_table tr td.gray {
  background: #eee;
}

/* user */
.l-lottery-apply .users {
  position: relative;
}
.l-lottery-apply .user {
  max-width: 100%;
  border: 3px solid #2e60b2;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
  overflow: hidden;
  padding: 0 1.6rem 3rem;
}
.l-lottery-apply .user p:first-of-type {
  height: 5rem;
  width: calc(100% + 3.2rem);
  margin-left: -1.6rem;
  margin-bottom: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2e60b2;
  color: #fff;
}
.l-lottery-forall .users .user hr {
  margin-top: calc(28px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(22px * calc(1 - var(--tw-space-y-reverse)));
  border: 0;
  border-bottom: 1px solid #d9d9d9;
}

/* button-label */
.button-label-wrap {
  position: relative;
  padding: 43px 0 0;
}
.button-label-wrap .button-label {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  max-width: 270px;
  top: 0;
  margin: 0 auto;
  padding: 10px 5px;
  border-radius: 999px;
  border: 3px solid #aee0ff;
  background: #fff;
}
.button-label-wrap .button-label::before,
.button-label-wrap .button-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  border-style: solid;
  border-width: 16px 9px 0 9px;
  border-color: #aee0ff transparent transparent;
  translate: -50% 100%;
}
.button-label-wrap .button-label::after {
  border-width: 9px 5px 0 5px;
  border-color: #ffffff transparent transparent;
}
.button-label-wrap .button-label {
  color: #2e60b2;
}

@media (min-width: 375px){
  .button-label-wrap {
    padding-top: 48px;
  }
}
@media (min-width: 480px) {
  .l-lottery-apply-premium-list .button-premium .inner img {
    width: auto;
    max-width: 260px;
  }
}
@media (min-width: 768px) {
  .l-lottery-kv-modal {
    bottom: 14.7%;
  }
  .l-lottery-kv-modal .text_link-modal {
    font-size: 0.83vw;
  }
  .l-lottery-kv-modal .text_link-window {
    font-size: 0.83vw;
  }
  .l-lottery-apply {
    gap: 24px;
    padding: 40px;
    border-radius: 20px;
  }
  .l-lottery-apply-list {
    grid-template-columns: repeat(2, 1fr);
    -webkit-box-align: start;
            align-items: start;
  }
  .l-lottery-apply-premium {
    gap: 16px;
    padding: 40px 60px;
    border-radius: 20px;
  }
  .l-lottery-apply-premium-list {
    grid-template-columns: 1fr;
    -webkit-box-align: start;
            align-items: start;
  }
  .l-lottery-apply-premium-list > li {
    gap: 24px;
  }
  .l-lottery-apply-premium-list .button-premium .inner img {
    max-width: 300px;
  }
  .button-label-wrap {
    padding-top: 43px;
  }
}
@media (min-width: 992px) {
  .l-lottery-intro {
    padding: 80px 0 64px;
  }
  .l-lottery-intro-box {
    width: 720px;  
    padding: 24px 56px;
    margin: 0 auto;
    font-size: 21px;
    line-height: 1.4;
    border-radius: 20px;
  }
  .l-lottery-forall {
    padding: 64px 0 80px;
  }
  .l-lottery-apply-title {
    font-size: 18px;
    line-height: 1.4;
  }
  .l-lottery-apply-premium-list .button-premium .inner {
    padding: 14px 18px 18px;
  }
  .l-lottery-apply-premium-list .button-premium .inner img {
    max-width: 490px;
    aspect-ratio: 490/53;
  }
  .l-lottery-apply-premium-list .button-premium .button-premium-label {
    position: relative;
    top: 0;
    left: 0;
    padding: 0 0 13px;
    font-size: 23px;
    line-height: 1.1;
    color: #094aa4;
    text-shadow: 2px 2px 1px #fff, -2px -2px 1px #fff, -2px 2px 1px #fff, 2px -2px 1px #fff, 2px 0 1px #fff, -2px 0 1px #fff, 0 2px 1px #fff, 0 -2px 1px #fff;
    background: transparent;
    -webkit-transform: none;
            transform: none;
  }
  .l-lottery-forall .users .user hr {
    margin-top: calc(38px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(32px * calc(1 - var(--tw-space-y-reverse)));
  }
  .button-label-wrap .button-label {
    padding: 12px 10px;
  }
}
@media screen and (max-width: 520px) {
  .button-label-wrap .button-label {
    max-width: 70%;
  }
  .modal-service .modal-header {
    height: auto;
    min-height: 30.6666666667vw;
    padding: 3vw 4vw;
  }
  .modal-service .modal-body {
    /* max-width: 89.3333333333vw; */
    padding: 8vw 5.3333333333vw;
  }
  .modal-service .modal-lead {
    font-size: 3.7333333333vw;
  }
  .modal-service .modal-title {
    max-width: 70%;
    display: flex;
    margin: auto;
  }
  /* ガス機器無料診断サービスとは */
  .modal-about-gas-check .check-intro {
    padding: 6.9333333333vw 0;
    margin-bottom: 13.3333333333vw;
  }
  .modal-about-gas-check .check-intro-title {
    max-width: 74.6666666667vw;
    margin: 0 auto 4.8vw;
    text-align: center;
  }
  .modal-about-gas-check .check-intro-list {
    width: 68vw;
    margin: 0 auto;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: 8vw;
  }
  .modal-about-gas-check .check-intro-item-image {
    margin-bottom: 3.2vw;
  }
  .modal-about-gas-check .check-intro-item p {
    font-size: 3.7333333333vw;
    margin-bottom: 4.8vw;
  }
  .modal-about-gas-check .check-point-title {
    max-width: 62.4vw;
    margin-bottom: 4.2666666667vw;
  }
  .modal-about-gas-check .check-point-list {
    margin-bottom: 9.6vw;
    row-gap: 14.6666666667vw;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  /* 住まいの無料メンテナンスサービスとは */
  .modal-about-maintenance .maintenance-box {
    margin-bottom: 13.3333333333vw;
  }
  .modal-about-maintenance .maintenance-box-header {
    padding: 12.8vw 5.3333333333vw 4.2666666667vw;
    position: relative;
  }
  .modal-about-maintenance .maintenance-box-num {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16vw;
    -webkit-transform: translate(-50%, -5.3333333333vw);
    transform: translate(-50%, -5.3333333333vw);
  }
  .modal-about-maintenance .maintenance-box-title {
    width: 100%;
  }
  .modal-about-maintenance .maintenance-box-time {
    position: absolute;
    top: calc(100% + 5.3333333333vw);
    width: 68vw;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    margin: 0;
  }
  .modal-about-maintenance .maintenance-box-body {
    padding-top: 24vw;
  }
  .modal-about-maintenance .maintenance-box-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: 5.8666666667vw;
    margin-bottom: 4vw;
  }
  .modal-about-maintenance #maintenance-03 .maintenance-box-list div:nth-child(3) {
    padding-top: 0;
  }
}