/* フォームのエラー表示用スタイル */
.response-message{
  padding:12px;
}

#applyform .error {
  border: 2px solid #ffb6ae !important;
  background-color: #fef0f0;
}
#applyform .response-message.error{
  border: 2px solid #ffe5e2 !important;
  margin:1em 0;
}
#applyform .error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  font-weight: bold;
}

#applyform .form-error-message {
  background-color: #e74c3c;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

#applyform .success-message {
  background-color: #2ecc71;
  color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  margin: 20px 0;
}

#applyform .success-message h3 {
  margin-top: 0;
  font-size: 20px;
}

#applyform .char-count {
  text-align: right;
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

#applyform .char-count.warn {
  color: #e74c3c;
  font-weight: bold;
}

#applyform .loading {
  display: inline-block;
  margin-left: 10px;
  color: #333;
  font-weight: bold;
}

/* フォーム送信ボタンのホバーエフェクト */
.submit-btn img {
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.submit-btn img:hover {
  opacity: 0.8;
}

/* 確認モーダルのスタイル */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.modal-content {
  position: relative;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1002;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.modal-form-data {
  margin-bottom: 20px;
}

.modal-form-row {
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.modal-form-row:last-child {
  border-bottom: none;
}

.modal-form-row .label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
  font-size: 14px;
}

.modal-form-row .value {
  display: block;
  word-break: break-all;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
}

.modal-confirm-text {
  text-align: center;
  font-weight: bold;
  margin: 20px 0;
  color: #333;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.modal-button {
  text-align: center;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.modal-button.cancel {
  background-color: #e0e0e0;
  color: #333;
}

.modal-button.cancel:hover {
  opacity:0.7;
}

.modal-button.submit {
  background-color: #7DBCBF;
  color: white;
}

.modal-button.submit:hover {
  opacity:0.7;
}

/* 成功モーダルのスタイル */
.success-modal .modal-content {
  text-align: center;
}

.success-icon {
  margin: 20px auto;
  display: inline-block;
}

.success-message-text {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0;
  color: #7DBCBF;
}

.additional-info {
  margin: 15px 0 25px;
  color: #555;
  line-height: 1.5;
  font-size: 14px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
  .modal-content {
    padding: 15px;
    width: 95%;
  }
  
  .modal-buttons {
    gap: 10px;
  }
  
  .modal-button {
    width: 48%;
  }
}

/* place holder */

/* WebKit, Edge */
::-webkit-input-placeholder {
  color: #aaa;
}

/* Firefox 4-18 */
:-moz-placeholder {
  color: #aaa;
  opacity: 1;
}

/* Firefox 19+ */
::-moz-placeholder {
  color: #aaa;
  opacity: 1;
}

/* IE 10-11 */
:-ms-input-placeholder {
  color: #aaa;
}

/* Edge */
::-ms-input-placeholder {
  color: #aaa;
}

/* 標準 (将来のブラウザ向け) */
::placeholder {
  color: #aaa;
}