.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

input,
textarea,
button {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.error {
  border-color: red;
}

.message {
  font-size: 0.9rem;
  color: red;
  margin-top: 0.25rem;
}

.valid {
  color: green;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #666;
}

.modal-close:hover {
  color: #000;
}

.error-msg {
  color: red;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 0.5rem;
}

button:not(:disabled):hover {
  background-color: #0056b3;
}

.btnarea {
  display: flex;
  justify-content: space-between;
}

.btnarea button {
  width: 48%;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .modal {
    padding: 0.5rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    border-radius: 0.5rem;
  }
  
  input,
  textarea,
  button {
    padding: 0.875rem;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
    margin: 1.2rem;
  }
  
  input,
  textarea,
  button {
    padding: 0.5rem;
  }
  
  .modal-close {
    top: 5px;
    right: 10px;
    font-size: 20px;
  }
  
  .form-group {
    margin-bottom: 0.1rem !important;
  }
}

/* 横向きスマートフォン対応 */
@media (max-width: 768px) and (orientation: landscape) {
  .modal-content {
    max-height: 80vh;
    margin: 0.5rem;
  }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {  
  .modal-content {
    padding: 2.5rem;
  }
}

#contents {
  max-width: 100%;
  padding: 0;
  background: #f9f9f9;
}

.contents_h2 {
  padding: 122px 0 42px;
  background: #013782;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-blend-mode: lighten;
}

.contents_h2 h2 {
  color: #ffffff;
}

.success_in {
  max-width: 960px;
  text-align: center;
  margin: 0 auto;
  padding: 60px;
}

.success_img img {
  max-width: 75%;
}

.success_in p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.pankuzu {
  padding: 10px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.breadcrumb a:hover{
  opacity: 0.7;
}

.breadcrumb li:not(:last-of-type)::after {
  content: "›";
  margin: 0 0.6em;
  color: #777;
}

.pankuzu nav {
  max-width: 730px;
  margin: 0 auto;
}

span.kome {
  color: red;
}

div#modalBody p {
  margin-bottom: 1rem;
}

.policy {
  padding: 0 20px 50px;
}

@media screen and (min-width: 960px) {
  .policy_inner {
    padding: 40px !important;
  }
  
  .policy h3 {
    text-align: center;
    margin-bottom: 0.8rem;
    font-size: 1.5rem !important;
  }
}

ol.number {
  counter-reset: number 0;
  line-height: 1.8em;
}

ol.number li:before {
  counter-increment: number 1;
  content: counter(number);
  position: absolute;
  left: 0.6rem;
  letter-spacing: 0;
  z-index: 2;
  font-weight: bold;
}

.policy p {
  margin-bottom: 1.5rem;
}

.policy h3 {
  text-align: center;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.policy_inner li {
  list-style-type: none;
  position: relative;
  padding-left: 2rem;
}

.policy_inner {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  max-width: 830px;
  max-height: 242px;
  margin: 0 auto;
  overflow: auto;
}