/* 応募フォーム専用スタイル */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 48px;
  border: 1px solid var(--white-gray);
}

.entry-form {
  margin-bottom: 32px;
}

.form-error {
  background: #fee;
  color: #c33;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #fcc;
  display: none;
}

.form-error.show {
  display: block;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--sub-navy);
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-label small {
  font-size: 0.85rem;
  color: #666;
  font-weight: normal;
}

.required {
  color: #e74c3c;
  font-weight: bold;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--white-gray);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-family-base);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--main-pink);
  box-shadow: 0 0 0 3px rgba(211,130,147,0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: #e74c3c;
  background: #fef;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-file {
  width: 100%;
  padding: 16px;
  border: 2px dashed var(--white-gray);
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-file:hover {
  border-color: var(--main-pink);
  background: #fef;
}

.form-file:focus {
  outline: none;
  border-color: var(--main-pink);
  box-shadow: 0 0 0 3px rgba(211,130,147,0.1);
}

.form-buttons {
  text-align: center;
  margin-top: 48px;
}

.form-buttons .btn {
  margin: 0 8px;
}

.form-navigation {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--white-gray);
}

/* reCAPTCHA用スタイル */
.g-recaptcha {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

/* 個人情報同意セクション */
.agreement-section {
  border: 2px solid var(--white-gray);
  border-radius: 12px;
  padding: 24px;
  background: #fafafa;
  margin: 32px 0;
}

.agreement-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sub-navy);
  margin-bottom: 20px;
  text-align: center;
}

.agreement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: var(--sub-navy);
  flex: 1;
  min-width: 200px;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--main-pink);
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  background: #fff;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--main-pink);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.detail-btn {
  background: var(--main-pink);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.detail-btn:hover {
  background: #c97a8a;
  transform: translateY(-1px);
}

.agreement-detail {
  display: none;
  margin-top: 20px;
  border-top: 1px solid var(--white-gray);
  padding-top: 20px;
}

.agreement-detail.show {
  display: block;
}

.agreement-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--white-gray);
  max-height: 400px;
  overflow-y: auto;
}

.agreement-content h4 {
  color: var(--sub-navy);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

.agreement-content h5 {
  color: var(--sub-navy);
  font-size: 1rem;
  margin: 20px 0 12px 0;
  font-weight: 600;
}

.agreement-content p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #333;
}

.agreement-content ul {
  margin: 12px 0;
  padding-left: 20px;
}

.agreement-content li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #333;
}

.contact-info {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 6px;
  margin-top: 20px;
}

.contact-info h5 {
  margin-bottom: 8px;
  color: var(--sub-navy);
}

.contact-info p {
  margin: 0;
  line-height: 1.6;
}

/* 確認画面・完了画面用スタイル */
.confirmation-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.confirmation-table th,
.confirmation-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--white-gray);
}

.confirmation-table th {
  background: var(--beige-ivory);
  font-weight: 600;
  color: var(--sub-navy);
  width: 30%;
}

.confirmation-table tr:last-child th,
.confirmation-table tr:last-child td {
  border-bottom: none;
}

.confirmation-table td {
  background: #fff;
  word-break: break-all;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .form-container {
    padding: 32px 24px;
    margin: 0 16px;
  }
  
  .form-group {
    margin-bottom: 24px;
  }
  
  .form-input,
  .form-textarea,
  .form-file {
    padding: 12px;
    font-size: 0.95rem;
  }
  
  .form-buttons {
    margin-top: 32px;
  }
  
  .form-buttons .btn {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
  
  .confirmation-table th,
  .confirmation-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  .confirmation-table th {
    border-bottom: none;
    padding-bottom: 8px;
  }
  
  .confirmation-table td {
    border-top: none;
    padding-top: 0;
    margin-bottom: 16px;
  }
  
  .confirmation-table tr:last-child td {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .form-container {
    padding: 24px 16px;
  }
  
  .form-label {
    font-size: 0.95rem;
  }
  
  .form-input,
  .form-textarea,
  .form-file {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .form-textarea {
    min-height: 100px;
  }
  
  /* 個人情報同意セクションのレスポンシブ対応 */
  .agreement-section {
    padding: 16px;
    margin: 24px 0;
  }
  
  .agreement-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .checkbox-label {
    min-width: auto;
    width: 100%;
  }
  
  .detail-btn {
    align-self: flex-end;
  }
  
  .agreement-content {
    padding: 16px;
    max-height: 300px;
  }
  
  .agreement-content h4 {
    font-size: 1rem;
  }
  
  .agreement-content h5 {
    font-size: 0.95rem;
  }
} 