/* リセットとベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
    "Meiryo", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* メインコンテンツ */
main {
  padding: 40px 0 60px;
}

.page-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 32px;
  color: #2d3748;
}

/* LINE誘導セクション */
.line-box {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 32px 24px;
  background: #e6f6fd;
  border: 2px solid #4ba4d8;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(75, 164, 216, 0.1);
  text-align: center;
}

.line-box h3 {
  font-size: 24px;
  color: #217dbb;
  margin-bottom: 16px;
  line-height: 1.4;
}

.line-box p {
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 24px;
}

.line-button {
  display: inline-flex;
  align-items: center;
  background-color: #06c755;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.line-button:hover {
  background-color: #04b14f;
}

.arrow-icon {
  margin-left: 8px;
}

/* フォーム導入文 */
.form-intro {
  text-align: center;
  margin: 32px 0 24px;
}

.form-intro p {
  font-size: 16px;
  color: #4a5568;
}

/* お問い合わせフォーム */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 22px;
  color: #2d3748;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #4a5568;
}

.required {
  color: #e53e3e;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4ba4d8;
  box-shadow: 0 0 0 3px rgba(75, 164, 216, 0.2);
}

.contact-form input.error,
.contact-form textarea.error {
  border-color: #e53e3e;
}

.error-text {
  color: #e53e3e;
  font-size: 13px;
  margin-top: 4px;
  min-height: 18px;
}

.submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #4ba4d8;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 8px;
}

.submit-button:hover {
  background-color: #3994c8;
}

.submit-button:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
}

/* アラート */
.alert {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.success-alert {
  background-color: #f0fff4;
  border: 1px solid #c6f6d5;
}

.error-alert {
  background-color: #fff5f5;
  border: 1px solid #fed7d7;
}

.alert-icon {
  flex-shrink: 0;
  margin-right: 12px;
  margin-top: 2px;
}

.success-alert .alert-icon {
  color: #38a169;
}

.error-alert .alert-icon {
  color: #e53e3e;
}

.alert p {
  margin: 0;
  font-size: 14px;
}

.success-alert p {
  color: #2f855a;
}

.error-alert p {
  color: #c53030;
}

/* ローディングスピナー */
.spinner {
  animation: rotate 2s linear infinite;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.spinner-circle {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .page-title {
    margin-top: 5rem;
  }

  .nav-container {
    gap: 12px;
  }

  .nav-divider {
    display: none;
  }

  .line-box {
    padding: 24px 16px;
  }

  .line-box h3 {
    font-size: 20px;
  }

  .contact-container {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .page-title {
    margin-top: 3rem;
    font-size: 24px;
  }

  .line-box h3 {
    font-size: 18px;
  }

  .line-button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .contact-container h2 {
    font-size: 20px;
  }

  .sp-only {
    display: inline;
  }
}

@media (min-width: 481px) {
  .sp-only {
    display: none;
  }
}
