@charset "utf-8";

/* ページ内アンカーのスムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* ---------- レイアウト基盤 ---------- */
body {
  background-color: #ece6ff;
}

/* PC 幅（568px〜）のみ bg.webp を固定表示 */
@media (min-width: 568px) {
  body {
    background-image: url("/assets/img/common/bg.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
  }
}

.lp {
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
}

.lp section img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- FV ---------- */
.fv {
  padding: 0;
  position: relative;
}

.fv__cta {
  position: absolute;
  left: 8%;
  right: 3%;
  bottom: 4%;
  z-index: 2;
}

/* ---------- セクション見出し（共通） ---------- */
.section-title {
  text-align: center;
  padding: 40px 20px 24px;
  font-size: 32px;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  background: linear-gradient(to right, #ffbf00 0%, #ff9900 100%);
  border-radius: 2px;
}

/* ---------- 公開中バナー ---------- */
.info-banner {
  position: relative;
}

.info-banner__cta {
  position: absolute;
  left: 8%;
  right: 3%;
  bottom: 14%;
  z-index: 2;
}

/* ---------- 導入企業の声 ---------- */
.voices {
  background-color: #f6f6f6;
}

.voices .section-title {
  padding-bottom: 40px;
}

/* ---------- スライダー ---------- */
.slider {
  padding: 16px 20px 24px;
  overflow: hidden;
}

.slider__viewport {
  overflow: visible;
  width: 100%;
}

.slider__track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slider__slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.slider__card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.slider__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.slider__dots {
  display: none;
}

.slider__arrows {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 32px;
}

.slider__arrow {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.slider__arrow:hover {
  opacity: 0.6;
}

.slider__arrow img {
  width: 39px;
  height: 30px;
  display: block;
}

/* ---------- フォーム ---------- */
.form {
  padding: 0 24px 48px;
  background: #fff;
}

.form__lead {
  text-align: center;
  font-size: 14px;
  color: #808080;
  margin: -8px 0 28px;
  line-height: 1.6;
}

.form__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: normal;
  color: #000;
}

.form__badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.form__badge--required {
  background: #ff6363;
  color: #fff;
}

.form__badge--optional {
  background: #eaeaea;
  color: #000;
}

.form__input {
  width: 100%;
  padding: 16px 8px;
  background: #fbfbfb;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 14px;
  color: #000;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form__input::placeholder {
  color: #dcdcdc;
}

.form__input:focus {
  outline: none;
  border-color: #5d4fe0;
}

.form__input--error {
  border-color: #ff6363;
}

.form__error {
  display: none;
  margin: -4px 0 0;
  color: #ff6363;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.form__error.is-visible {
  display: block;
}

.form__input-wrap {
  position: relative;
}

.form__suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 240px;
  overflow-y: auto;
}

.form__suggestions.is-visible {
  display: block;
}

.form__suggestions li {
  padding: 10px 12px;
  font-size: 14px;
  color: #000;
  cursor: pointer;
}

.form__suggestions li.is-active,
.form__suggestions li:hover {
  background: #f4f4f4;
}

.form__agreement {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  margin-top: 4px;
}

.form__checkbox {
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  position: relative;
}

.form__checkbox:checked::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #ff6363;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__submit {
  display: block;
  width: 552px;
  max-width: 100%;
  height: 70px;
  align-self: center;
  padding: 0 20px;
  background: linear-gradient(135deg, #fda552 0%, #ff8000 100%);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  border: none;
  border-radius: 134px;
  cursor: pointer;
  margin-top: 16px;
  transition: opacity 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
  font-family: inherit;
}

.form__submit:hover {
  opacity: 0.9;
}

.form__submit:active {
  transform: translateY(1px);
}

/* ---------- 600px 以上のフォントサイズ調整 ---------- */
@media (min-width: 600px) {
  .section-title {
    font-size: 47px;
  }

  .form__lead {
    font-size: 20px;
  }

  .form__label {
    font-size: 20px;
    font-weight: normal;
  }

  .form__badge {
    font-size: 18px;
    font-weight: normal;
  }

  .form__input {
    font-size: 20px;
    padding: 24px 12px;
  }

  .form__suggestions li {
    padding: 14px 16px;
    font-size: 20px;
  }

  .form__error {
    font-size: 16px;
  }

  #form-name {
    width: 320px;
    max-width: 100%;
  }

  .form__agreement {
    font-size: 20px;
  }

  .form__body {
    gap: 24px;
  }

  .form__field {
    gap: 12px;
  }

  .form__checkbox {
    width: 36px;
    height: 36px;
  }

  .form__checkbox:checked::after {
    left: 12px;
    top: 5px;
    width: 9px;
    height: 18px;
    border-width: 0 3px 3px 0;
  }

  .form__submit {
    font-size: 36px;
    height: 104px;
    margin-top: 24px;
  }

  .slider__arrows {
    padding: 60px 16px 80px;
  }

  .slider {
    padding: 16px 40px 24px;
  }

  .slider__arrow img {
    width: 58px;
    height: 46px;
  }
}

