/* SP */
@media (max-width: 768px) {

  /* STEP */
  .reserve-procedure {
    padding: 30px 10px 40px;
    background-color: #ffd1da;
    /* STEP-Basic */
    /* STEP-etc */
  }

  .reserve-procedure .step-box {
    position: relative;
    border-radius: 20px;
    padding: 65px 20px 30px;
    margin-top: 60px;
    background-color: #fff;
    text-align: center;
  }

  .reserve-procedure .step-box span {
    width: 22.3880597%;
    position: absolute;
    top: -8vw;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  .reserve-procedure .step-box-2 p:nth-child(3),
  .reserve-procedure .step-box-3 p:nth-child(3),
  .reserve-procedure .step-box-3-2 p:nth-child(3),
  .reserve-procedure .step-box-4 p:nth-child(3) {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .reserve-procedure .step-box-3-2 p:nth-child(3) {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .reserve-procedure .step-box-2 p:nth-child(3):after {
    content: "";
    position: absolute;
    background-image: url(../images/icon-finger.png);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 100%;
    width: 16.1194029851%;
    height: 20%;
    bottom: 35vw;
    right: 25vw;
  }

  .reserve-procedure .step-box-3 p:nth-child(3) {
    margin-top: 45px;
  }

  .reserve-procedure .step-box-3 p:nth-child(3):after {
    content: "";
    position: absolute;
    background-image: url(../images/icon-finger.png);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 100%;
    width: 16.1194029851%;
    height: 20%;
    bottom: -4vw;
    right: 12vw;
  }

  .reserve-procedure .step-box-3 p:nth-child(3) img {
    width: 100%;
  }

  .reserve-procedure .etc-box p {
    margin-bottom: 0;
    background-color: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
  }
}

/* PC:2022-04 */
@media (min-width: 769px) {

  /* STEP */
  .reserve-procedure {
    padding: 30px 20px 40px;
    background-color: #ffd1da;
    /* STEP-Basic */
    /* STEP-etc */
  }

  .reserve-procedure .step-box {
    position: relative;
    border-radius: 20px;
    padding: 56px 20px 30px;
    margin: 60px auto 0;
    background-color: #fff;
    text-align: center;
    width: 50%;
  }

  .reserve-procedure .step-box span {
    width: 12%;
    position: absolute;
    top: -3vw;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  .reserve-procedure .step-box-2 p:nth-child(3),
  .reserve-procedure .step-box-3 p:nth-child(3),
  .reserve-procedure .step-box-3-2 p:nth-child(3) {
    width: 70%;
    margin: 20px auto 0;
  }

  .reserve-procedure .step-box-3-2 p:nth-child(3) {
    margin-top: 20px;
    margin-bottom: 0;
  }

  .reserve-procedure .step-box-2 p:nth-child(3):after {
    content: "";
    position: absolute;
    background-image: url(../images/icon-finger.png);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 100%;
    width: 10%;
    height: 20%;
    bottom: 14vw;
    right: 17vw;
  }

  .reserve-procedure .step-box-3 p:nth-child(3) {
    margin-top: 45px;
  }

  .reserve-procedure .step-box-3 p:nth-child(3):after {
    content: "";
    position: absolute;
    background-image: url(../images/icon-finger.png);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 100%;
    width: 10%;
    height: 20%;
    bottom: -2vw;
    right: 13vw;
  }

  .reserve-procedure .etc-box p {
    width: 50%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
  }
  .item-box {
    width: 560px;
    margin: 0 auto;
  }

  #device-modal-overlay #device-modal {
    width: 28%;
  }
}


.l-lp h3 {
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
}

.container {
  text-align: center;
}

h2 {
  color: #000;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.item-box {
  display: flex;
  flex-wrap: wrap;
}

.item-box::after {
  content: "";
    display: block;
    width: 50%;
    height: 0;
}

.item-box .text-item {
  position: absolute;
  bottom: 1rem;
  right: 0;
  left: 0;
  line-height: 1.1;
}

.button {
  display: block;
  width: 36%;
  flex-grow: 1;
  height: 12rem;
  margin: 2%;
  padding: 0.625rem 0;
  background-color: #800000;
  color: #fff;
  text-decoration: none;
  border-radius: 1.5625rem;
  font-size: 24px;
  font-weight: bold;
  border: 3px solid #fff;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.button:hover {
  background-color: #a00000;
}

.button::after {
  content: "";
  display: inline-block;
  width: 6rem;
  height: 6rem;
}

.button:nth-child(1)::after {
  background: url(/support/contact/ez.sizedai/images/icon-procedure.svg) 0 0 no-repeat;
}
.button:nth-child(3)::after {
  background: url(/support/contact/ez.sizedai/images/icon-operation.svg) 0 0 no-repeat;
}
.button:nth-child(4)::after {
  background: url(/support/contact/ez.sizedai/images/icon-operation.svg) 0 0 no-repeat;
}
.button:nth-child(5)::after {
  background: url(/support/contact/ez.sizedai/images/icon-trouble.svg) 0 0 no-repeat;
  margin-top: 1rem;
}
.button:nth-child(6)::after {
  background: url(/support/contact/ez.sizedai/images/icon-erase-data.svg) 0 0 no-repeat;
  margin-bottom: 54px;
}

.op-box {
  max-width: 27%;
  margin: 0 auto;
  background-image: url(/support/contact/images/operator.png?2024-12);
  height: 9rem;
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: 11rem 1rem;
  margin-top: 2rem;
}

.op-text {
  font-weight: bold;
  text-align: center;
  margin-right: 5rem;
}

.text {
  font-weight: bold;
  text-align: center;
  color: #000;
  font-size: 24px;
  line-height: 1.2;
}

.text a {
  color: #157ED8;
  font-size: 24px;
}

.step-box.step-box-1 {
  padding: 65px 8px 30px;
}

.step-box.step-box-1 .button {
  cursor: none;
}

.step-box.step-box-1 .button:hover {
  background-color: #800000;
}

@media (max-width: 768px) {

  .op-box {
    max-width: 100%;
  }
}

.reserve-procedure h1 {
  color: #000;
  font-weight: bold;
  font-size: 35px;
  text-align: center;
}

h2.sba-page {
  font-size: 22px;
  line-height: 1.2;
}

#device-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: #f0f0f0;
}

#device-modal {
  width: 80%;
  text-align: center;
  position: relative;
}

.device-modal-title {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #000;
}

.device-modal-buttons .device-btn {
  display: block;
  font-weight: bold;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  font-size: 2rem;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
  background: #dcdcdc;
}

.device-modal-buttons .device-btn:hover {
  background: #f0f0f0;
  border-color: #999;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.modal-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f7f7f7;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.modal-btn {
  display: block;
  border-radius: 6px;
  padding: 12px 50px;
  font-size: 1.3rem;
  font-weight: bold;
}

.modal-btn.blue {
  background: #800000;
  color: #fff;
}

.modal-btn.white {
  background: #fff;
  color: #333;
  border: 1px solid #333;
  padding: 25px 50px;
}

.modal-btn:hover {
  opacity: 0.8;
}
