/* ==============================================
   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;
}

/* ==============================================
   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;
  }

}

@media (max-width: 767px) {

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

.text__wrap {
  width: min(980px, 94%);
  margin-inline: auto;
  padding-block: 80px 40px;

  >div {
    margin-bottom: 4em;

    >div {
      margin-top: 1em;
    }
  }

  h2 {
    font-size: 2.0rem;
    line-height: 1.8;
    padding-bottom: 12px;
  }

  p {
    font-size: 1.6rem;
    line-height: 1.8;
    font-weight: 500;

    &.-small {
      font-size: 1.4rem;
      padding-left: 1em;
    }
  }

  ul {
    padding-left: 1em;
    margin-top: 1em;

    li {
      font-size: 1.6rem;
      line-height: 1.8;
      font-weight: 500;
    }
  }
}

@media screen and (max-width:767px) {
  .text__wrap {
    padding-block: 64px 24px;

    >div {
      margin-bottom: 3.2em;

      >div {
        margin-top: 0.8em;
      }
    }

    h2 {
      font-size: 1.6rem;
      padding-bottom: 8px;
    }

    p {
      font-size: 1.4rem;

      &.-small {
        font-size: 1.2rem;
        padding-left: 1em;
      }
    }

    ul {
      padding-left: 1em;
      margin-top: 1em;

      li {
        font-size: 1.4rem;
      }
    }
  }
}