/* お問い合わせページ専用スタイル */

/* ヒーローセクション */
.contact-hero {
  background: var(--gradient-main);
  padding: 180px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: float 15s ease-in-out infinite;
}

/* 動的な光の粒子 */
.contact-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.light-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  filter: blur(1px);
  animation: lightFloat 15s infinite linear;
}

.light-particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.light-particle:nth-child(2) {
  left: 20%;
  animation-delay: 3s;
  animation-duration: 20s;
}

.light-particle:nth-child(3) {
  left: 35%;
  animation-delay: 6s;
  animation-duration: 16s;
}

.light-particle:nth-child(4) {
  left: 50%;
  animation-delay: 9s;
  animation-duration: 22s;
}

.light-particle:nth-child(5) {
  left: 65%;
  animation-delay: 12s;
  animation-duration: 19s;
}

.light-particle:nth-child(6) {
  left: 80%;
  animation-delay: 15s;
  animation-duration: 17s;
}

@keyframes lightFloat {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateX(0) scale(0);
  }

  10% {
    opacity: 1;
    transform: translateX(10px) scale(1);
  }

  90% {
    opacity: 1;
    transform: translateX(-10px) scale(1);
  }

  100% {
    bottom: 100%;
    opacity: 0;
    transform: translateX(0) scale(0);
  }
}

.contact-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  animation: fadeInUp 0.8s ease-out;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-description {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* フォームセクション */
.contact-form-section {
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 200px;
  background: var(--bg-light);
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* 抽象的な形状の背景 */
.form-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(0, 117, 191, 0.2), transparent);
  top: 10%;
  left: -10%;
  animation: morphShape 20s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(225deg, rgba(243, 152, 0, 0.15), transparent);
  bottom: 20%;
  right: -5%;
  animation: morphShape 25s ease-in-out infinite reverse;
}

@keyframes morphShape {

  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }

  33% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(120deg) scale(1.1);
  }

  66% {
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    transform: rotate(240deg) scale(0.9);
  }
}

/* フォームコンテナ */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 60px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* フォームグループ */
.form-group {
  margin-bottom: 35px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-color);
  position: relative;
}

.form-label.required::after {
  content: '*';
  color: var(--orange);
  margin-left: 5px;
  font-size: 1.2rem;
}

.optional {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 400;
  margin-left: 5px;
}

/* フォーム入力フィールド */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 117, 191, 0.1);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #d0d0d0;
}

/* 名前フィールド */
.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* セレクトボックス */
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 50px;
}

/* テキストエリア */
.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

/* エラーメッセージ */
.error-message {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc3545;
}

/* プライバシーポリシー */
.privacy-policy {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
}

.privacy-policy h3 {
  font-size: 1.25rem;
  margin-bottom: 25px;
  color: var(--text-color);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 15px;
}

.privacy-content {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 20px;
}

.privacy-content::-webkit-scrollbar {
  width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 3px;
}

.privacy-content h4 {
  font-size: 1rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: 700;
}

.privacy-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--text-light);
}

.privacy-content ul {
  margin-left: 25px;
  margin-bottom: 15px;
}

.privacy-content li {
  line-height: 1.8;
  margin-bottom: 8px;
  color: var(--text-light);
}

.privacy-note {
  font-size: 0.9rem;
  background: rgba(0, 117, 191, 0.05);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 3px solid var(--blue);
}

/* チェックボックス */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--blue);
}

.checkbox-label {
  cursor: pointer;
  user-select: none;
}

.checkbox-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* 送信ボタン */
.form-submit {
  text-align: center;
  margin-top: 50px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 50px;
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 30px rgba(243, 152, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(243, 152, 0, 0.4);
}

.submit-button:hover::before {
  width: 300px;
  height: 300px;
}

.submit-button:active {
  transform: translateY(-1px);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-button.loading {
  pointer-events: none;
}

.submit-button.loading span {
  opacity: 0;
}

.submit-button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid var(--white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.8s linear infinite;
}

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

/* 成功メッセージ */
.success-message {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #28a745;
  color: var(--white);
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(40, 167, 69, 0.3);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1001;
}

.success-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contact-form {
    padding: 40px 20px;
  }

  .name-fields {
    grid-template-columns: 1fr;
  }

  .privacy-policy {
    padding: 25px;
  }

  .privacy-content {
    padding-right: 10px;
  }

  .submit-button {
    width: 100%;
    justify-content: center;
  }

  .contact-title {
    font-size: 2.5rem;
  }
}

/* モバイルヘッダーの重複スタイルを削除 */