@charset "utf-8";

.contact-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-accent);
  padding-top: 120px;
  color: #fff;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.contact-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 24s infinite ease-in-out;
}

.shape-1 {
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.18);
  top: -180px;
  left: -160px;
}

.shape-2 {
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.14);
  bottom: -140px;
  right: -100px;
  animation-delay: 6s;
}

.shape-3 {
  width: 520px;
  height: 520px;
  background: rgba(255, 255, 255, 0.08);
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  animation-delay: 12s;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  max-width: 760px;
}

.contact-hero-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.contact-hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-family: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  font-weight: bold;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.contact-hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-weight: bold;
}

.contact-section {
  padding: 5rem 0;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-form {
  background: #fff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #047857;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-alert-error {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-label {
  font-weight: bold;
  color: #0f172a;
  font-size: 0.95rem;
}

.form-required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  color: #1f2937;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(91, 181, 237, 0.8);
  box-shadow: 0 0 0 4px rgba(91, 181, 237, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236482a3' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.146a.5.5 0 0 1 .708 0L8 8.793l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--color-accent);
}

.form-consent a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.form-consent a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #5bb5ed 0%, #9d7cbe 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(91, 181, 237, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(91, 181, 237, 0.45);
}

.form-submit:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(91, 181, 237, 0.35);
}

.form-submit:focus-visible {
  outline: 3px solid rgba(91, 181, 237, 0.5);
  outline-offset: 4px;
}

.contact-form .error-message {
  color: #ef4444;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .contact-form {
    order: 1;
    max-width: 100%;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 50vh;
    padding: 120px 1.5rem 60px;
  }

  .contact-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  .contact-hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

  .contact-container {
    padding: 0 1.5rem;
  }

  .contact-form {
    padding: 2rem;
    border-radius: 20px;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 0.95rem;
    padding: 0.8rem;
  }

  .form-textarea {
    min-height: 140px;
  }

  .form-submit {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  .preview-content {
    max-width: 90vw;
    margin: 1rem;
  }

  .preview-header {
    padding: 1.5rem;
  }

  .preview-body {
    padding: 1.5rem;
  }

  .preview-footer {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    min-height: 45vh;
    padding: 100px 1rem 40px;
  }

  .contact-hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
  }

  .contact-hero-lead {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
  }

  .contact-container {
    padding: 0 1rem;
  }

  .contact-form {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .form-row {
    gap: 0.5rem;
  }

  .form-label {
    font-size: 0.85rem;
    font-weight: bold;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 10px;
  }

  .form-textarea {
    min-height: 120px;
  }

  .form-consent {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .form-consent input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .preview-content {
    margin: 0.5rem;
    max-width: 95vw;
  }

  .preview-title {
    font-size: 1.25rem;
  }

  .preview-section-title {
    font-size: 1rem;
  }

  .preview-label {
    font-size: 0.85rem;
    min-width: 80px;
  }

  .preview-value {
    font-size: 0.85rem;
  }
}

/* プレビュー画面のスタイル */
.contact-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.preview-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.preview-content {
  background: #fff;
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: previewFadeIn 0.3s ease;
}

@keyframes previewFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.preview-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f172a;
  margin: 0;
}

.preview-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.preview-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #334155;
}

.preview-body {
  padding: 2rem;
}

.preview-section {
  margin-bottom: 2rem;
}

.preview-section-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(91, 181, 237, 0.2);
}

.preview-data {
  background: rgba(91, 181, 237, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(91, 181, 237, 0.1);
}

.preview-item {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
  gap: 1rem;
}

.preview-item:last-child {
  margin-bottom: 0;
}

.preview-label {
  font-weight: bold;
  color: #334155;
  min-width: 100px;
  flex-shrink: 0;
}

.preview-value {
  color: #0f172a;
  word-break: break-word;
  flex: 1;
}

.preview-message {
  color: #0f172a;
  word-break: break-word;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.preview-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.preview-warning p {
  margin: 0;
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.6;
}

.preview-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.8);
}

.preview-edit {
  padding: 0.75rem 1.5rem;
  border: 2px solid #64748b;
  background: transparent;
  color: #64748b;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-edit:hover {
  background: #64748b;
  color: #fff;
}

.preview-confirm {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #5bb5ed 0%, #9d7cbe 100%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(91, 181, 237, 0.3);
  transition: all 0.3s ease;
}

.preview-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 181, 237, 0.4);
}

@media (max-width: 640px) {
  .preview-overlay {
    padding: 1rem;
  }

  .preview-content {
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }

  .preview-header {
    padding: 1.25rem 1.25rem 1rem;
  }

  .preview-title {
    font-size: 1.125rem;
  }

  .preview-close {
    font-size: 1.25rem;
    padding: 0.4rem;
  }

  .preview-body {
    padding: 1.25rem;
  }

  .preview-section-title {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .preview-data {
    padding: 1.25rem;
  }

  .preview-item {
    margin-bottom: 0.875rem;
    gap: 0.75rem;
  }

  .preview-label {
    font-size: 0.8rem;
    min-width: 70px;
  }

  .preview-value {
    font-size: 0.8rem;
  }

  .preview-message {
    font-size: 0.8rem;
    padding: 0.875rem;
  }

  .preview-warning {
    padding: 1rem;
    margin-top: 1.25rem;
  }

  .preview-warning p {
    font-size: 0.8rem;
  }

  .preview-footer {
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .preview-edit,
  .preview-confirm {
    width: 100%;
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
  }
}

