.hidden {
  display: none;
  visibility: hidden;
}

.visible {
  display: block;
  visibility: visible;
  animation: fadeIn 0.5s ease;
}


.step-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-family: 'Arial', sans-serif;
}

.step-title {
    margin-right: 10px;
}

.steps {
    display: flex;
    align-items: center;
}

.step-circle {
    width: 50px;
    height: 50px;
    background-color: #ffcccc;
    color: #d00000;
    border: 2px solid #ffa6a6;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 5px;
    transition: all 0.3s ease-in-out;
}

.step-circle.active {
    background-color: #ff6666;
    color: #fff;
    border: 2px solid #ff3333;
}

.step-line {
    width: 5px;
    height: 2px;
    background-color: #ffa6a6;
    transition: background-color 0.3s ease-in-out;
}

.step-line.active {
    background-color: #ff6666;
}

.step-subtext {
    margin-left: 10px;
}

#question-container {
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 0 100px;
}

.question-block>div button {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #fff;
    width: 100%;
    text-align: center;
    margin: 0 auto 7px;
    font-size: 16px;
}

.question-block>div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.question-block.pccol_auto>div button {
    width: auto;
    min-width: 200px;
}

.question-block.pccol_1>div button {
    width: 100%;
}

.question-block.pccol_2>div button {
    width: calc(calc(100% / 2) - 5px);
}

.question-block.pccol_3>div button {
    width: calc(calc(100% / 3) - 5px);
}

.question-block.pccol_4>div button {
    width: calc(calc(100% / 4) - 5px);
}

.question-block.pccol_5>div button {
    width: calc(calc(100% / 5) - 5px);
}

.question-block>div button:hover {
    cursor: pointer;
}

.question-block h2 {
    text-align: center;
    margin: 0 auto 10px;
}

.question-block>div button.selected {
    background: #ffcccc;
}

#question-container input {
    background: #fff;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px 20px;
    max-width: 100%;
    width: 250px;
    font-size: 16px;
}

.question-block {
    margin-bottom: 40px;
}

#question-container>button {
    display: block;
    margin: 0 auto;
    position: relative;
    width: 230px;
    background: #ff6666;
    color: #fff;
    border-radius: 10px;
    font-size: 1.3em;
    font-weight: 700;
    padding: 0.6em;
    border: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

#question-container>button:hover {
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

#question-container>button:active {
    transform: translateY(2px); /* ??????????? */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* ?????? */
    background: #ff4d4d; /* ?????????????? */
}


@media screen and (max-width: 768px) {
    .question-block.pccol_auto>div button {
        width: auto;
        min-width: 100px;
    }

    .question-block.spcol_1>div button {
        width: 100%;
    }

    .question-block.spcol_2>div button {
        width: calc(calc(100% / 2) - 5px);
    }

    .question-block.spcol_3>div button {
        width: calc(calc(100% / 3) - 5px);
    }

    .question-block.spcol_4>div button {
        width: calc(calc(100% / 4) - 5px);
    }

    .question-block.spcol_5>div button {
        width: calc(calc(100% / 5) - 5px);
    }

    .step-container {
        padding: 0 10px;
    }

    .step-container {}

    span.step-title,
    .step-subtext {
        font-size: 12px;
        margin: 0;
    }

    .step-circle {
        font-size: 12px;
        width: 30px;
        height: 30px;
    }

    .question-block {
        padding: 0 10px;
        margin: 0 auto 20px;
    }

    #question-container {
        padding: 0 0 30px;
        min-height: 60vh;
    }

    .question-block h2 {
        font-size: 18px;
    }

    .question-block>div button {
        font-size: 14px;
    }

    #question-container>button {
        font-size: 18px;
        width: 200px;
        margin-top: 40px;
    }

}


/* ?????????? */
.btn {
  background-color: #007bff; /* ?? */
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.3s ease;
}

/* ???????????? */
.btn:active {
  transform: scale(0.9); /* ?????? */
}

/* ???????????? */
.btn.loading {
  background-color: #6c757d; /* ??? */
  cursor: not-allowed;
  position: relative;
}

/* ??????????? */
.btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  position: absolute;
  right: 10px; /* ?????????? */
  top: 50%;
  transform: translateY(-50%);
}

/* ??????????? */
@keyframes spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}
