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

body {
  background: #f3f7ff;
  color: #14263f;
  font-family: 'Ryo Gothic PlusN', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro',
    'メイリオ', Meiryo, 'MS PGothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ==============================================
   Hero / Title — PC
   ============================================== */
.form-hero {
  background: #f3f7ff;
}

/* flex-col + items-end → title self-aligns left, breadcrumb floats right */
.form-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 285px 120px 40px 123px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Page title — left-aligned within the right-aligning container */
.page-title {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 478px;
}

.page-title__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-dots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.dot {
  display: block;
  width: 12px;
  height: 12px;
}

.dot--green {
  background: #9fc707;
}

.dot--blue {
  background: #0798ed;
}

.page-title__ja {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 4px;
  color: #14263f;
  white-space: nowrap;
}

/* "Contact" — indented to align with h1 (after the dots) */
.page-title__en {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 1.8px;
  color: #14263f;
  padding-left: 24px;
}

/* Breadcrumb — auto-width, floated right by parent items-end */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
}

.breadcrumb__link {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1.2px;
  color: #14263f;
}

.breadcrumb__dot {
  display: block;
  width: 6px;
  height: 6px;
  background: #9fc707;
  border-radius: 50%;
  flex-shrink: 0;
}

.breadcrumb__current {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 1.2px;
  color: #14263f;
  opacity: 0.64;
}

/* ==============================================
   Form Section — PC
   ============================================== */
.form-section {
  background: #f3f7ff;
}

.form-section__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 120px;
}

/* Intro text */
.form-intro {
  font-size: 15px;
  line-height: 2.4;
  letter-spacing: 0.6px;
  color: #14263f;
  margin-bottom: 64px;
}

/* ==============================================
   Contact Form — PC
   ============================================== */
.contact-form {
  width: 680px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  /* between the 3 field groups */
}

/* Field group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Individual field */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Label row (label + required badge) */
.form-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Label text */
.form-label {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.56px;
  color: #14263f;
  white-space: nowrap;
}

/* Required badge */
.required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  padding: 0 12px;
  border: 1px solid #ff5757;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.48px;
  color: #ff5757;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Text / email / tel input */
.form-input {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 63, 0.64);
  border-radius: 4px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  color: #14263f;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: #14263f;
}

/* Textarea */
.form-textarea {
  width: 100%;
  height: 207px;
  background: #ffffff;
  border: 1px solid rgba(20, 38, 63, 0.64);
  border-radius: 4px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  color: #14263f;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

.form-textarea:focus {
  border-color: #14263f;
}

/* ==============================================
   Radio group
   ============================================== */
.radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Wrapping variant for many options */
.radio-group--wrap {
  flex-wrap: wrap;
  gap: 0 24px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  line-height: 2.4;
  letter-spacing: 0.52px;
  color: #14263f;
  white-space: nowrap;
  flex-wrap: wrap;
}

/* Custom radio */
.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(20, 38, 63, 0.5);
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.radio-option input[type="radio"]:checked {
  border-color: #14263f;
  border-width: 5px;
  background: #ffffff;
  box-shadow: inset 0 0 0 3px #14263f;
}

/* ==============================================
   Checkbox group
   ============================================== */
.checkbox-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
}

.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  line-height: 2.4;
  letter-spacing: 0.52px;
  color: #14263f;
  white-space: nowrap;
}

/* Custom checkbox — 14px square with 2px border-radius */
.checkbox-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(20, 38, 63, 0.64);
  border-radius: 2px;
  background: #ffffff;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-option input[type="checkbox"]:checked {
  background: #14263f;
  border-color: #14263f;
}

.checkbox-option input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 3px;
  width: 6px;
  height: 4px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

/* ==============================================
   Form footer (privacy + submit)
   ============================================== */
.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.form-privacy {
  font-weight: bold;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.48px;
  color: #14263f;
}

.form-privacy__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  padding: 12px 0;
  background: #14263f;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-weight: bold;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.48px;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.15s;
}

.form-submit-btn:hover {
  opacity: 0.8;
}

/* ==============================================
   SP Styles — max-width: 767px
   ============================================== */
@media (max-width: 767px) {

  /* Hero */
  .form-hero__inner {
    padding: 120px 11px 0;
    align-items: flex-end;
    /* keeps breadcrumb right-aligned */
  }

  .page-title {
    width: 100%;
    align-self: stretch;
  }

  .page-title__row {
    gap: 8px;
  }

  .title-dots {
    gap: 2px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .page-title__ja {
    font-size: 24px;
    letter-spacing: 2.4px;
    white-space: normal;
  }

  .page-title__en {
    font-size: 12px;
    letter-spacing: 1.2px;
    padding-left: 14px;
  }

  /* Breadcrumb */
  .breadcrumb {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .breadcrumb__link,
  .breadcrumb__current {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .breadcrumb__dot {
    width: 4px;
    height: 4px;
  }

  /* Form section */
  .form-section__inner {
    padding: 0 11px 120px;
  }

  /* Intro */
  .form-intro {
    font-size: 13px;
    letter-spacing: 0.52px;
    margin-top: 32px;
    margin-bottom: 40px;
  }

  /* Form layout */
  .contact-form {
    width: 100%;
    gap: 40px;
    /* between groups on SP */
  }

  /* Group 1 & 2: gap 16px (same as PC) */
  .form-group {
    gap: 16px;
  }

  /* Group 3 (detail): larger gap on SP */
  .form-group--detail {
    gap: 24px;
  }

  /* Field */
  .form-field {
    gap: 6px;
  }

  /* Labels */
  .form-label {
    font-size: 12px;
    letter-spacing: 0.48px;
  }

  /* Badge — smaller text on SP */
  .required-badge {
    font-size: 10px;
    letter-spacing: 0.4px;
  }

  /* Radio groups — allow wrap with tighter gap on SP */
  .radio-group {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .radio-group--wrap {
    gap: 8px 12px;
  }

  .radio-option {
    font-size: 12px;
    letter-spacing: 0.48px;
  }

  /* Checkboxes */
  .checkbox-group {
    gap: 8px 24px;
  }

  .checkbox-option {
    font-size: 12px;
    letter-spacing: 0.48px;
  }

  /* Textarea shorter on SP */
  .form-textarea {
    height: 177px;
  }

  /* Footer: left-align privacy, center button */
  .form-footer {
    align-items: flex-start;
    gap: 16px;
  }

  .form-submit-btn {
    align-self: center;
  }
}

@media (max-width: 767px) {

  /* Hero */
  .form-hero__inner {
    padding: 80px 10px 0;
    align-items: flex-end;
    /* keeps breadcrumb right-aligned */
  }
}