/* ============================================
   ITリトライ LP - Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   Section Image Layout
   ============================================ */
.section-image-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Section backgrounds */
.section-hero {
  background-color: #3bb78f;
}

.section-discovery {
  background-color: #fff;
}

.section-solution {
  background-color: #f0fdf4;
}

.section-proof {
  background-color: #fff;
}

.section-offer {
  background-color: #f0fdf4;
}

.section-urgency {
  background-color: #fef3c7;
}

/* ============================================
   CTA Overlay Buttons
   ============================================ */
.cta-overlay {
  position: absolute;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cta-overlay:hover {
  opacity: 0.8;
}

.cta-overlay--hero {
  bottom: 10.5%;
  left: 6%;
  right: 6%;
  height: 9.5%;
}

.cta-overlay--urgency {
  bottom: 6.5%;
  left: 6%;
  right: 6%;
  height: 12.5%;
}

/* ============================================
   Contact Form Section
   ============================================ */
.section-form {
  background-color: #059669;
  padding: 60px 16px;
}

.form-container {
  max-width: 560px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 12px;
}

.form-subtitle {
  font-size: 15px;
  color: #d1fae5;
  line-height: 1.6;
}

/* Form Card */
.inquiry-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.required {
  color: #ef4444;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  color: #1f2937;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Submit Button */
.form-submit {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background-color: #059669;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
  margin-top: 8px;
}

.form-submit:hover {
  background-color: #047857;
}

.form-submit:active {
  transform: scale(0.97);
}

.form-submit:disabled {
  background-color: #6ee7b7;
  cursor: not-allowed;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-top: 16px;
}

/* Success State */
.form-success {
  background: #fff;
  border-radius: 16px;
  padding: 48px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: #059669;
  font-weight: bold;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.success-message {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background-color: #111827;
  padding: 40px 16px;
  text-align: center;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  color: #6b7280;
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-title {
    font-size: 20px;
  }

  .section-form {
    padding: 48px 16px;
  }

  .inquiry-form {
    padding: 24px 20px;
  }
}

@media screen and (min-width: 641px) {
  .form-title {
    font-size: 26px;
  }

  .section-form {
    padding: 80px 24px;
  }

  .inquiry-form {
    padding: 40px 36px;
  }
}

@media screen and (min-width: 1024px) {
  .section-image-wrap {
    max-width: 640px;
  }
}

.footer-note {
  font-size: 11px;
  line-height: 1.7;
  color: #9ca3af;
  max-width: 560px;
  margin: 12px auto 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: #dc2626;
  font-size: 14px;
  text-align: center;
  margin: 12px 0 0;
}
