main #breadcrumb ul li {
  color: #fff;
}

#hints {
  background-color: #140E28;
  max-width: 1500px;
  margin: auto;
  overflow: hidden;
  padding-top: 100px;
}

@media screen and (max-width: 767px) {
  #hints {
    padding-top: 50px;
  }
}

#hints #visual-bg {
  padding-bottom: 80px;
}

@media screen and (max-width: 767px) {
  #hints #visual-bg {
    padding-bottom: 40px;
  }
}


#hints #contents {
  position: relative;
}

#hints #contents .ball#ball6 {
  left: 10%;
}

#hints #contents h2 {
  margin-bottom: 50px;
}

#hints #contents .inner {
  max-width: calc(1180px + 6%);
}

@media screen and (max-width: 767px) {
  #hints #contents h2 {
    margin-bottom: 25px;
  }

  #hints #contents .inner {
    padding-inline: 0;
  }
}

#hints #contents .step-block {
  background-color: #E3E6EF;
  border-radius: 20px;
  padding: 70px 5%;
  margin-bottom: 50px;
}

@media screen and (max-width: 767px) {
  #hints #contents .step-block {
    padding: 25px 5%;
  }
}

#hints #contents .step-block h3 {
    position: relative;
    background-color: #915DA3;
    border-radius: 20px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 50px 40px 50px 12%;
    margin: 0 0 60px;
    box-shadow: 9px 9px 0px -1px #000000;
    line-height: 1.6;
    color:#FFFBD9;
}

@media screen and (max-width: 767px) {
  #hints #contents .step-block h3 {
    font-size: 1.7rem;
    line-height: 1.3;
    text-align: center;
    padding: 24% 4% 4% 4%;
    margin-top: 23%;
    margin-bottom: 30px;

  }
}

#hints #contents .step-block h3 .illust {
  position: absolute;
  top: 50%;
  left: 20px;
  max-width: 155px;
  width: 13%;
  transform: translateY(-50%);
}

#hints #contents .step-block h3 .catch {
    position: absolute;
    top: -28px;
    left: 18%;
    max-width: 210px;
    width: 26%;
}

@media screen and (max-width: 767px) {
  #hints #contents .step-block h3 .illust {
    top: 0;
    left: 30px;
    width: 20%;
  }

  #hints #contents .step-block h3 .catch {
    top: 5%;
    left: 30%;
    max-width: 260px;
    width: 40%;
  }
}


#hints #contents #step1 .layout {
  width: 100%;
  border-radius: 20px;
  background-color: #fff;
  padding: 80px 24px;
}

@media screen and (max-width: 767px) {
  #hints #contents #step1 .layout {
    width: 100%;
    margin-bottom: 16px;
    padding: 30px 4%;
  }
}

#hints #contents #step1 .layout .col {
  max-width: 450px;
  margin: 0 auto;
}

.password-input {
  background-color: #ffffff;
  border: 1px solid #000;
  border-radius: 50px;
  padding: 25px 25px;
  font-size: 1.6rem;
  width: 100%;
  margin: 0 auto 15px;
  outline: none;
  color: #666;
  box-sizing: border-box;
  text-align: center;
}

.password-input:focus {
  border-color: #ccc;
}

.instruction {
  font-size: 1.6rem;
  text-align: center;
  color: #000;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hint-button {
  position: relative;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 25px 123px 25px 50px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  width: 90%;
  transition: background-color 0.3s ease;
}

.hint-button:hover {
  background-color: #555;
}

.hint-button::after {
  content: '';
  background-image: url('/assets/image/hints/btn-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 34px;
  height: 34px;
  position: absolute;
  right: 10%;
  top: calc(50% - 17px);
}

@media screen and (max-width: 767px) {
  .hint-button {
    position: relative;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 6% 20% 6% 15%;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    width: 100%;
    transition: background-color 0.3s ease;
  }
}


.error-message {
  color: #ff0000;
  background-color: #ffe6e6;
  border: 1px solid #ff9999;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
}

/* 利用規約チェックボックスのスタイル */
.terms-checkbox {
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 3px;
  transform: scale(1.2);
}

.terms-checkbox label {
  cursor: pointer;
  line-height: 1.5;
}

.terms-link {
  color: #0066cc;
  text-decoration: underline;
  cursor: pointer;
}

.terms-link:hover {
  color: #004499;
}

/* モーダルのスタイル */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #E18700;
  padding-bottom: 15px;
}

.modal-header h3 {
  color: #E18700;
  font-size: 24px;
  margin: 0;
}

.modal-body {
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.modal-body h4 {
  color: #E18700;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

.modal-body ul {
  margin-top:15px;
  padding-left: 20px;
  margin-bottom: 15px;
}

.modal-body li {
  margin-bottom: 8px;
  list-style:disc;
}

.modal-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.modal-confirm-btn {
  background-color: #E18700;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-confirm-btn:hover {
  background-color: #c5760a;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: #333;
}

/* ボタンの無効化スタイル */
.hint-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
    max-height: 85vh;
  }

  .modal-header h3 {
    font-size: 20px;
  }

  .terms-checkbox {

    gap: 5px;
  }
}

.terms-text{
  text-align: center;
  margin-bottom:1em;
}