/* =============================================
  企業さまからのお問い合わせ（form/sales.blade.php 用）
  固定ヘッダー（#header.fixed）の高さ：PC 100px / SP 80px
============================================= */
/* フッターの波（.footer-above）を引き上げて余白を詰める（.section-contact と同じ） */
.section-sales {
  line-height: 1.5;
  padding-bottom: 100px;
  margin-bottom: -170px;
}

/* =============================================
  Page
============================================= */
.sales-page {
  position: relative;
}
/* ヒーロー背景はヘッダーの裏まで伸ばす（480px + ヘッダー100px） */
.section-sales .sales-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 580px;
  background: url("../../img/bg-page.svg") no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

.sales-layout {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 100px;
  display: grid;
  grid-template-columns: 584px 472px;
  grid-template-areas:
    "hero card"
    "main card";
  column-gap: 64px;
  align-items: start;
}

/* =============================================
  Hero
============================================= */
.sales-hero {
  grid-area: hero;
  height: 480px;
  padding-top: 26px;
  color: #fff;
}

.sales-breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
}
.sales-breadcrumb a {
  color: #fff;
  text-underline-offset: 2px;
}
.sales-breadcrumb__sep {
  width: 4px;
  height: 8px;
}

.sales-hero__label {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-top: 46px;
  padding: 0 24px;
  border-radius: 20px;
  background: #fff;
  color: #46a73c;
  font-size: 15px;
  font-weight: bold;
}

.sales-hero__title {
  margin: 29px 0 0;
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.sales-hero__lead {
  margin: 31px 0 0;
  font-size: 16px;
  line-height: 1.8;
}

/* =============================================
  Main（お問い合わせ後の流れ / 他の窓口）
============================================= */
.sales-main {
  grid-area: main;
  margin-top: 80px;
}

.sales-flow {
  background: #fff;
  border-radius: 16px;
  padding: 46px 40px 40px;
}
.sales-flow__title {
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
}
.sales-flow__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 15px auto 0;
  border-radius: 2px;
  background: linear-gradient(135deg, #8fd535 0%, #46a73c 100%);
}
.sales-flow__list {
  margin-top: 32px;
}
.sales-flow__arrow {
  width: 16px;
  height: 10px;
  margin: 8px auto;
  background: #1b9e5a;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.sales-step {
  padding: 24px;
  border-radius: 8px;
  background: #f3f9ee;
}
.sales-step__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.sales-step__num {
  font-size: 14px;
  font-weight: bold;
  color: #1b9e5a;
}
.sales-step__title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}
.sales-step__desc {
  margin: 10px 0 0;
  font-size: 14px;
}
.sales-step__note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.sales-route {
  margin-top: 52px;
}
.sales-route__title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: bold;
}
.sales-route__list {
  display: grid;
  gap: 16px;
}
.sales-route__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 20px 12px 24px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(70, 167, 60, 0.15);
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sales-route__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(70, 167, 60, 0.22);
}
.sales-route__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8fd535 0%, #46a73c 100%);
}
.sales-route__label {
  flex: 1;
}
.sales-route__icon {
  flex: none;
  width: 32px;
  height: 32px;
}

/* =============================================
  Card（フォーム）
============================================= */
/* スクロール時はヘッダー（100px）の20px下で追尾 */
.sales-card {
  grid-area: card;
  position: sticky;
  top: 120px;
  margin-top: 48px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(43, 49, 46, 0.12);
  overflow: hidden;
}
.sales-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 61px;
  padding: 0 27px 0 24px;
  background: linear-gradient(171deg, #8fd535 0%, #46a73c 100%);
  color: #fff;
  font-weight: bold;
}
.sales-card__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.sales-card__step {
  font-size: 15px;
  letter-spacing: 0.1em;
  opacity: 0.9;
}
.sales-card__body {
  padding: 26px 24px 31.5px;
}

/* =============================================
  Form parts
============================================= */
.sales-field + .sales-field {
  margin-top: 23px;
}

.sales-label {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 19px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.sales-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 19px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.sales-badge-required {
  background: #d93a3a;
  color: #fff;
}
.sales-badge-optional {
  background: #ebebeb;
  color: #2b312e;
}

.sales-input,
.sales-textarea {
  display: block;
  width: 100%;
  margin-top: 11px;
  padding: 0 16px;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #2b312e;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sales-input {
  height: 48.5px;
}
.sales-textarea {
  height: 180px;
  padding: 14px 16px;
  line-height: 1.7;
  resize: vertical;
}
.sales-input::placeholder,
.sales-textarea::placeholder {
  color: #9aa09c;
}
.sales-input:focus,
.sales-textarea:focus {
  outline: none;
  border-color: #46a73c;
  box-shadow: 0 0 0 3px rgba(70, 167, 60, 0.15);
}

.is-invalid {
  border-color: #d93a3a;
}

.sales-agree {
  margin-top: 22px;
}
.sales-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.sales-check input {
  appearance: none;
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #bfc4c1;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}
.sales-check input:checked {
  border-color: #46a73c;
  background: #46a73c;
}
.sales-check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.sales-check input:focus-visible {
  box-shadow: 0 0 0 3px rgba(70, 167, 60, 0.25);
}
.sales-check a {
  color: inherit;
}
.sales-check .sales-badge {
  margin-left: 8px;
}

.sales-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}
.sales-btn-primary {
  height: 62px;
  margin-top: 21.6px;
  border-radius: 31px;
  background: linear-gradient(170deg, #f5a623, #f66712);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 20px -6px rgba(143, 213, 53, 0.3);
  transition: opacity 0.2s;
}
.sales-btn-primary:hover {
  opacity: 0.88;
}
.sales-btn-secondary,
.sales-btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 51px;
  margin-top: 13px;
  border: 0;
  border-radius: 26px;
  background: #fff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.06em;
  color: #46a73c;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(43, 49, 46, 0.08);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.sales-btn-secondary:hover,
.sales-btn-back:hover {
  box-shadow: 0 6px 20px rgba(43, 49, 46, 0.14);
}
.sales-btn-back svg {
  width: 7px;
  height: 12px;
}

.sales-form-note {
  margin-top: 21px;
  text-align: center;
}
.sales-form-note__lead {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.06em;
}
.sales-form-note__sub {
  margin: 2px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #7d8e97;
}

.sales-step-panel[hidden] {
  display: none;
}

/* =============================================
  Complete（送信完了）
============================================= */
.sales-complete {
  padding-top: 40px;
}
.sales-complete__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
}
.sales-complete__title {
  margin: 28px 0 0;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}
.sales-complete__body {
  margin: 21px 0 0;
  font-size: 15px;
  line-height: 1.8;
}
.sales-complete__note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

/* =============================================
  Tablet
============================================= */
@media screen and (min-width: 768px) and (max-width: 1200px) {
  .sales-layout {
    padding-right: 32px;
    padding-left: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 472px);
    column-gap: 40px;
  }
}

/* =============================================
  SP
============================================= */
@media screen and (max-width: 767px) {
  .section-sales {
    margin-bottom: -100px;
  }

  /* 436px + ヘッダー80px */
  .section-sales .sales-hero-bg {
    height: 516px;
  }

  .sales-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "card"
      "main";
    padding: 80px 20px 0;
  }

  .sales-hero {
    height: auto;
    min-height: 364px;
    padding-top: 22px;
  }
  .sales-breadcrumb {
    font-size: 12px;
  }
  .sales-hero__label {
    height: 32px;
    margin-top: 28px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 13px;
  }
  .sales-hero__title {
    margin-top: 23px;
    font-size: 26px;
    line-height: 1.5;
  }
  .sales-hero__lead {
    margin-top: 20px;
    font-size: 14px;
  }

  /* SPは1カラムなので追尾しない */
  .sales-card {
    position: static;
    margin-top: 0;
  }
  .sales-form-note__sub {
    line-height: 1.6;
  }
  .sales-check .sales-badge {
    margin-left: auto;
  }

  .sales-complete {
    padding-top: 32px;
  }
  .sales-complete__title {
    font-size: 18px;
  }
  .sales-complete__body {
    font-size: 15px;
  }

  .sales-main {
    margin-top: 48px;
  }
  .sales-flow {
    padding: 30px 24px 24px;
  }
  .sales-flow__title {
    font-size: 20px;
  }
  .sales-flow__title::after {
    width: 32px;
    height: 3px;
    margin-top: 14px;
  }
  .sales-flow__list {
    margin-top: 25px;
  }
  .sales-step__title {
    font-size: 16px;
  }
  .sales-step__desc {
    line-height: 1.7;
  }

  .sales-route {
    margin-top: 43px;
  }
  .sales-route__title {
    font-size: 15px;
    line-height: 1.7;
  }
  .sales-route__link {
    min-height: 89px;
    line-height: 1.5;
  }
}
