@charset "UTF-8";

/*//////////////////////////////////////////
//  contact page
//////////////////////////////////////////*/
.contact-section {
  padding: 6.25rem 0 7.5rem;
  background-color: #f8fafc;
  min-height: calc(100vh - 12.5rem);
}
@media screen and (max-width: 768px) {
  .contact-section {
    padding: 16vw 0 21.3333333333vw;
  }
}
.contact-section .inner {
  max-width: 53.75rem;
}
.contact-section .contact-lead {
  text-align: center;
  margin-top: 1.25rem;
  margin-bottom: 3rem;
}
@media screen and (max-width: 768px) {
  .contact-section .contact-lead {
    margin-top: 4.2666666667vw;
    margin-bottom: 8.5333333333vw;
    text-align: left;
  }
}
.contact-section .contact-lead p {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
}
@media screen and (max-width: 768px) {
  .contact-section .contact-lead p {
    font-size: 3.7333333333vw;
  }
}

/* ==========================================
   フォーム本体スタイル
   ========================================== */
.contact-form {
  background: #ffffff;
  border-radius: 1rem;
  padding: 3.5rem 4rem;
  box-shadow: 0 0.625rem 1.875rem rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}
@media screen and (max-width: 768px) {
  .contact-form {
    padding: 8.5333333333vw 5.3333333333vw;
    border-radius: 3.2vw;
  }
}
.contact-form .form-item {
  margin-bottom: 2rem;
}
@media screen and (max-width: 768px) {
  .contact-form .form-item {
    margin-bottom: 6.4vw;
  }
}
.contact-form .form-item:last-of-type {
  margin-bottom: 0;
}
.contact-form .form-label {
  margin-bottom: 0.625rem;
}
@media screen and (max-width: 768px) {
  .contact-form .form-label {
    margin-bottom: 2.1333333333vw;
  }
}
.contact-form .form-label label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
@media screen and (max-width: 768px) {
  .contact-form .form-label label {
    font-size: 4vw;
    gap: 2.1333333333vw;
  }
}
.contact-form .form-label label .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  line-height: 1.4;
}
@media screen and (max-width: 768px) {
  .contact-form .form-label label .badge {
    font-size: 2.9333333333vw;
    padding: 0.5333333333vw 1.6vw;
  }
}
.contact-form .form-label label .badge.required {
  background-color: #ef4444;
  color: #ffffff;
}
.contact-form .form-content {
  position: relative;
}
.contact-form .form-content input[type=text],
.contact-form .form-content input[type=email],
.contact-form .form-content textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .contact-form .form-content input[type=text],
  .contact-form .form-content input[type=email],
  .contact-form .form-content textarea {
    padding: 3.2vw 3.7333333333vw;
    font-size: 4vw;
  }
}
.contact-form .form-content input[type=text]::placeholder,
.contact-form .form-content input[type=email]::placeholder,
.contact-form .form-content textarea::placeholder {
  color: #94a3b8;
}
.contact-form .form-content input[type=text]:focus,
.contact-form .form-content input[type=email]:focus,
.contact-form .form-content textarea:focus {
  outline: none;
  border-color: #183057;
  box-shadow: 0 0 0 0.1875rem rgba(24, 48, 87, 0.15);
}
.contact-form .form-content input[type=text].is-invalid,
.contact-form .form-content input[type=email].is-invalid,
.contact-form .form-content textarea.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}
.contact-form .form-content input[type=text].is-invalid:focus,
.contact-form .form-content input[type=email].is-invalid:focus,
.contact-form .form-content textarea.is-invalid:focus {
  box-shadow: 0 0 0 0.1875rem rgba(239, 68, 68, 0.15);
}
.contact-form .form-content textarea {
  resize: vertical;
  min-height: 10rem;
  line-height: 1.6;
}
@media screen and (max-width: 768px) {
  .contact-form .form-content textarea {
    min-height: 37.3333333333vw;
  }
}
.contact-form .form-content .error-msg {
  display: block;
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .contact-form .form-content .error-msg {
    font-size: 3.2vw;
  }
}
.contact-form .form-content .error-msg:empty {
  display: none;
}
.contact-form .form-submit {
  margin-top: 3rem;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .contact-form .form-submit {
    margin-top: 9.6vw;
  }
}
.contact-form .form-submit .btn {
  min-width: 17.5rem;
}
@media screen and (max-width: 768px) {
  .contact-form .form-submit .btn {
    width: 100%;
    min-width: 100%;
  }
}

/* ==========================================
   ボタン共通スタイル
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .btn {
    padding: 3.7333333333vw 6.4vw;
    font-size: 4vw;
  }
}
.btn.btn-primary {
  background-color: #183057;
  color: #ffffff;
  box-shadow: 0 0.25rem 0.75rem rgba(24, 48, 87, 0.2);
}
.btn.btn-primary:hover {
  background-color: #0f1f38;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.375rem 1rem rgba(24, 48, 87, 0.3);
}
.btn.btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.btn.btn-secondary:hover {
  background-color: #e2e8f0;
  color: #1e293b;
}

/* ==========================================
   モーダル / ポップアップ共通スタイル
   ========================================== */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
}
.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-modal.is-open .modal-card {
  transform: scale(1) translateY(0);
}
.contact-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.contact-modal .modal-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 1rem;
  width: 100%;
  max-width: 42.5rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 1.25rem 3.125rem rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(1.25rem);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .contact-modal .modal-card {
    padding: 7.4666666667vw 5.3333333333vw;
    border-radius: 3.2vw;
    max-height: 95vh;
  }
}
.contact-modal .modal-header {
  margin-bottom: 1.75rem;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .contact-modal .modal-header {
    margin-bottom: 5.3333333333vw;
  }
}
.contact-modal .modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
@media screen and (max-width: 768px) {
  .contact-modal .modal-header h3 {
    font-size: 5.3333333333vw;
  }
}
.contact-modal .modal-header .modal-sub {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}
@media screen and (max-width: 768px) {
  .contact-modal .modal-header .modal-sub {
    font-size: 3.4666666667vw;
  }
}
.contact-modal .modal-body {
  margin-bottom: 2.25rem;
}
@media screen and (max-width: 768px) {
  .contact-modal .modal-body {
    margin-bottom: 6.4vw;
  }
}
.contact-modal .modal-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
@media screen and (max-width: 768px) {
  .contact-modal .modal-footer {
    flex-direction: column-reverse;
    gap: 3.2vw;
  }
}
.contact-modal .modal-footer .btn {
  min-width: 11.25rem;
}
@media screen and (max-width: 768px) {
  .contact-modal .modal-footer .btn {
    width: 100%;
    min-width: 100%;
  }
}

/* 確認モーダルのリスト */
.confirm-list {
  background: #f8fafc;
  border-radius: 0.625rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
}
@media screen and (max-width: 768px) {
  .confirm-list {
    padding: 4.2666666667vw;
  }
}
.confirm-list .confirm-item {
  display: flex;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}
@media screen and (max-width: 768px) {
  .confirm-list .confirm-item {
    flex-direction: column;
    padding: 3.2vw 0;
    gap: 1.0666666667vw;
  }
}
.confirm-list .confirm-item:first-child {
  padding-top: 0;
}
.confirm-list .confirm-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.confirm-list .confirm-item dt {
  width: 10rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}
@media screen and (max-width: 768px) {
  .confirm-list .confirm-item dt {
    width: 100%;
    font-size: 3.4666666667vw;
  }
}
.confirm-list .confirm-item dd {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
@media screen and (max-width: 768px) {
  .confirm-list .confirm-item dd {
    font-size: 3.7333333333vw;
  }
}

/* ==========================================
   ローディングモーダル
   ========================================== */
.modal-loading-dialog .loading-card {
  max-width: 25rem;
  text-align: center;
  padding: 3rem 2rem;
}
@media screen and (max-width: 768px) {
  .modal-loading-dialog .loading-card {
    padding: 9.6vw 5.3333333333vw;
  }
}
.modal-loading-dialog .loading-spinner {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.modal-loading-dialog .loading-spinner .spinner-circle {
  width: 3.5rem;
  height: 3.5rem;
  border: 4px solid #e2e8f0;
  border-top-color: #183057;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@media screen and (max-width: 768px) {
  .modal-loading-dialog .loading-spinner .spinner-circle {
    width: 12.2666666667vw;
    height: 12.2666666667vw;
    border-width: 3px;
  }
}
.modal-loading-dialog .loading-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.625rem;
}
@media screen and (max-width: 768px) {
  .modal-loading-dialog .loading-title {
    font-size: 4.8vw;
  }
}
.modal-loading-dialog .loading-text {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}
@media screen and (max-width: 768px) {
  .modal-loading-dialog .loading-text {
    font-size: 3.4666666667vw;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   完了モーダル
   ========================================== */
.complete-card {
  max-width: 33.75rem;
  text-align: center;
  padding: 3rem 2.5rem;
}
@media screen and (max-width: 768px) {
  .complete-card {
    padding: 9.6vw 5.3333333333vw;
  }
}
.complete-card .complete-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.complete-card .complete-icon svg {
  width: 4rem;
  height: 4rem;
  background-color: #dcfce7;
  border-radius: 50%;
  padding: 0.75rem;
}
@media screen and (max-width: 768px) {
  .complete-card .complete-icon svg {
    width: 13.8666666667vw;
    height: 13.8666666667vw;
    padding: 2.6666666667vw;
  }
}
.complete-card .complete-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}
@media screen and (max-width: 768px) {
  .complete-card .complete-title {
    font-size: 5.0666666667vw;
    margin-bottom: 3.2vw;
  }
}
.complete-card .complete-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  text-align: left;
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
}
@media screen and (max-width: 768px) {
  .complete-card .complete-text {
    font-size: 3.4666666667vw;
    padding: 3.7333333333vw;
    margin-bottom: 6.4vw;
  }
}
.complete-card .modal-footer .btn {
  min-width: 12.5rem;
}
@media screen and (max-width: 768px) {
  .complete-card .modal-footer .btn {
    width: 100%;
  }
}
