/* ==========================================================================
   Reset / Base（共通リセット・基礎スタイル）
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  background: #f8f8f8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  color: #333;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #ccc;
}

.required {
  color: #c1272d;
}

/* ==========================================================================
   Header（ヘッダー）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f8f8f8;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 22px 75px 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo img {
  display: block;
  height: auto;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 999px;
  padding: 22px 40px;
}

.global-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.global-nav a {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.7px;
  white-space: nowrap;
  color: #536980;
}

/* contact.html / thanks.html ではヘッダーCTAボタンを非表示 */
.header-cta {
  display: none;
}

.hamburger-btn {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #0f58a1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: #fff;
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f58a1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 開いたときはハンバーガー(3本線)を×(閉じる)アイコンに変形させる */
.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #f8f8f8;
  padding: 24px 20px 32px;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  padding: 0;
  line-height: 50px;
  font-weight: 700;
  font-size: 16px;
  color: #536980;
  text-align: center;
}

.mobile-nav a.mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  height: 54px;
  margin: 16px auto 0;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8800 0%, #ff6600 100%);
  box-shadow: 0 7.589px 15.178px rgba(56, 91, 125, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  border: none;
}

.mobile-nav__cta .btn-cta__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero（ページタイトル）
   ========================================================================== */
.hero {
  padding-top: 103px;
}

.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.sp-break {
  display: none;
}

.hero-title {
  display: inline-block;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.2;
  letter-spacing: 1.68px;
  background: linear-gradient(90deg, #0f58a1 0%, #2161b3 25%, #336bc5 50%, #577de8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-divider {
  height: 1px;
  margin-top: 64px;
  background: linear-gradient(90deg, #0f58a1 0%, #577de8 100%);
}

/* ==========================================================================
   Form section（お問い合わせフォーム／サンクスページ）
   ========================================================================== */
.form-section {
  background: #f8f8f8;
  padding-bottom: 140px;
}

.form-wrap {
  width: min(700px, 92vw);
  margin: 0 auto;
  padding-top: 80px;
}

/* Step indicator */
.steps {
  position: relative;
  height: 65px;
}

.step {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
  color: #fff;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.step:first-child {
  left: 0;
  width: 50.142857%;
}

.step:last-child {
  left: 48.918571%;
  width: 51.081429%;
  padding-left: 36px;
}

.step:first-child.step--active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 351 65' preserveAspectRatio='none'%3E%3Cpath d='M335.29 0H0V65H335.29L351 32.5L335.29 0Z' fill='%23808080'/%3E%3C/svg%3E");
}

.step:first-child.step--inactive {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 351 65' preserveAspectRatio='none'%3E%3Cpath d='M335.29 0H0V65H335.29L351 32.5L335.29 0Z' fill='%23E6E6E6'/%3E%3C/svg%3E");
}

.step:last-child.step--active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 357.57 65' preserveAspectRatio='none'%3E%3Cpath d='M0 0H357.57V32.5V65H0L15.71 32.5L0 0Z' fill='%23808080'/%3E%3C/svg%3E");
}

.step:last-child.step--inactive {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 357.57 65' preserveAspectRatio='none'%3E%3Cpath d='M0 0H357.57V32.5V65H0L15.71 32.5L0 0Z' fill='%23E6E6E6'/%3E%3C/svg%3E");
}

.step--active {
  color: #fff;
}

.step--inactive {
  color: #333;
}

.step__label {
  display: block;
  font-weight: 700;
  font-size: 13px;
}

.step__text {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-top: 2px;
}

/* 法人・個人 */
.type-select {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 39px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  color: #153d64;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #153d64;
  cursor: pointer;
}

.required-note {
  margin-top: 30px;
  font-weight: 700;
  font-size: 13px;
  color: #c1272d;
}

/* Form card */
.form-card {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row {
  display: flex;
  align-items: center;
  min-height: 50px;
  background: #fff;
}

.form-row[hidden] {
  display: none;
}

.form-row__label {
  position: relative;
  flex: 0 0 190px;
  padding-left: 20px;
  font-weight: 700;
  font-size: 14px;
  color: #153d64;
}

.form-row__label::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: #e6e6e6;
}

.form-row__field {
  flex: 1;
  padding: 12px 24px;
}

.form-row--prefecture {
  min-height: 78px;
}

.form-row--prefecture .form-row__label {
  line-height: 1.5;
}

.form-row__field--select {
  display: flex;
  gap: 16px;
}

.form-row__field--select select {
  flex: 1;
  max-width: 188px;
  height: 32px;
  padding: 0 30px 0 13px;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  background-color: #fff;
  font-weight: 700;
  color: #153d64;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' viewBox='0 0 11 6' fill='none'%3E%3Cpath d='M1 1L5.5 5L10 1' stroke='%23153D64' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.form-row--message {
  min-height: 200px;
  align-items: stretch;
  padding: 20px 0;
}

.form-row--prefecture .form-row__label::after {
  height: 47px;
}

.form-row--message .form-row__label::after {
  height: 175px;
}

.form-row--message .form-row__label {
  padding-top: 4px;
}

.form-row__field--message {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px 0 24px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #153d64;
  cursor: pointer;
  width: fit-content;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #153d64;
  cursor: pointer;
}

.document-request {
  align-self: flex-start;
}

textarea {
  resize: vertical;
  min-height: 134px;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  padding: 12px 16px;
  line-height: 1.6;
}

/* 個人情報保護方針 */
.policy-box {
  margin-top: 0;
  background: #e6e6e6;
  padding: 20px 24px 24px;
  margin-top: 10px;
}

.policy-box__title {
  font-weight: 700;
  font-size: 14px;
  color: #153d64;
  margin-bottom: 8px;
}

.policy-box__text {
  font-weight: 500;
  font-size: 14px;
  color: #153d64;
  line-height: 1.6;
  margin-bottom: 12px;
}

.policy-box__text a {
  text-decoration: underline;
}

.policy-box .checkbox-label {
  font-weight: 500;
  font-size: 16px;
}

/* 注意書き */
.form-notice {
  margin-top: 51px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: #153d64;
  line-height: 1.65;
}

/* 送信ボタン */
.submit-btn {
  display: block;
  position: relative;
  z-index: 0;
  width: 364px;
  max-width: 100%;
  height: 64px;
  margin: 50px auto 0;
  border-radius: 32px;
  background: linear-gradient(90deg, #ff8800 0%, #ff6600 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
  transition: color 0.3s ease-out, box-shadow 0.3s ease-out;
  border: solid 2px #ff6600;
}

/* グラデーション⇄単色は直接transitionできないため、白のオーバーレイをopacityでフェード */
.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:hover {
  color: #ff6600;
  box-shadow: inset 0 0 0 2px #ff6600;
}

/* 同意チェックが入るまでは非活性（グレーアウト） */
.submit-btn:disabled {
  background: #ccc;
  border-color: #ccc;
  color: #fff;
  cursor: not-allowed;
}

.submit-btn:disabled:hover::before {
  opacity: 0;
}

.submit-btn:disabled:hover {
  color: #fff;
  box-shadow: none;
}

.submit-btn:disabled:hover .submit-btn__arrow path {
  stroke: #fff;
}

.submit-btn__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.submit-btn__arrow {
  display: block;
  position: absolute;
  right: 27px;
  top: 50%;
  transform: translateY(-50%);
}

.submit-btn__arrow path {
  transition: stroke 0.3s ease-out;
}

.submit-btn:hover .submit-btn__arrow path {
  stroke: #ff6600;
}

/* 受付完了メッセージ */
.thanks-message {
  margin-top: 60px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  color: #153d64;
  line-height: 1.85;
}

/* TOPへ戻るボタン */
.btn-back-top {
  display: block;
  position: relative;
  z-index: 0;
  width: 364px;
  max-width: 100%;
  height: 64px;
  margin: 60px auto 0;
  border-radius: 32px;
  background: linear-gradient(90deg, #ff8800 0%, #ff6600 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
  transition: color 0.3s ease-out, box-shadow 0.3s ease-out;
  border: solid 2px #ff6600;
}

/* グラデーション⇄単色は直接transitionできないため、白のオーバーレイをopacityでフェード */
.btn-back-top::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.btn-back-top:hover::before {
  opacity: 1;
}

.btn-back-top:hover {
  color: #ff6600;
  box-shadow: inset 0 0 0 2px #ff6600;
}

.btn-back-top__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.btn-back-top__arrow {
  display: block;
  position: absolute;
  left: 27px;
  top: 50%;
  transform: translateY(-50%);
}

.btn-back-top__arrow path {
  transition: stroke 0.3s ease-out;
}

.btn-back-top:hover .btn-back-top__arrow path {
  stroke: #ff6600;
}

/* ==========================================================================
   Footer（フッター）
   ========================================================================== */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 39px 70px 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.global-nav--footer a {
  font-family: 'Noto Sans JP', sans-serif;
  color: #536980;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  transition: opacity 0.3s ease-out;
}

.global-nav--footer a:hover {
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 37px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.48px;
  color: #a3a3a3;
  transition: opacity 0.3s ease-out;
}

.footer-links a:hover {
  opacity: 0.6;
}

.copyright {
  margin-top: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0f58a1;
}

.footer-cta {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 260px;
  height: 45px;
  border-radius: 50px;
  background: linear-gradient(90deg, #ff8800 0%, #ff6600 100%);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.8px;
  transition: color 0.3s ease-out, box-shadow 0.3s ease-out;
  border: solid 2px #ff6600;
}

/* グラデーション⇄単色は直接transitionできないため、白のオーバーレイをopacityでフェード */
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.footer-cta:hover::before {
  opacity: 1;
}

.footer-cta__icon {
  flex-shrink: 0;
}

.footer-cta__icon circle,
.footer-cta__icon path {
  transition: fill 0.3s ease-out, stroke 0.3s ease-out;
}

.footer-cta:hover {
  color: #ff6600;
  box-shadow: inset 0 0 0 2px #ff6600;
}

.footer-cta:hover .footer-cta__icon circle {
  fill: #ff6600;
}

.footer-cta:hover .footer-cta__icon path {
  stroke: #fff;
}

/* ==========================================================================
   Responsive (SP: 900px以下)
   ========================================================================== */
@media (max-width: 900px) {
  /* ---- Header ---- */
  .header-inner {
    padding: 16px 20px;
  }

  .global-nav {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* ---- Hero ---- */
  .hero {
    padding-top: 50px;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: 1.2px;
    line-height: 1.5;
  }

  .sp-break {
    display: inline;
  }

  .hero-divider {
    margin-top: 28px;
  }

  /* ---- Form ---- */
  .form-wrap {
    padding-top: 32px;
    width: min(500px, 92vw);
  }

  .steps {
    display: flex;
    height: auto;
  }

  .step {
    position: static;
    flex: 1;
    width: auto;
    height: auto;
    background-image: none !important;
  }

  .step:first-child,
  .step:last-child {
    left: auto;
    width: auto;
  }

  /* 矢印形状は先頭/末尾の位置で決まる（アクティブ/非アクティブでは色のみ変わる）。
     矢印の深さ(7.29px)とpaddingはFigmaのSP版デザイン(node 241:3/241:4)の実測値。
     PC版のSVG(15.71px)はバー幅が広い前提の値のため、そのまま流用すると
     幅の狭いSPバーでは矢印が急になりすぎてデザインと異なって見えてしまう。 */
  .step:first-child {
    clip-path: polygon(0 0, calc(100% - 7.29px) 0, 100% 50%, calc(100% - 7.29px) 100%, 0 100%);
    margin-right: -7.29px;
    z-index: 2;
    padding: 10px;
  }

  .step:last-child {
    padding-left: 16px;
    z-index: 1;
  }

  .step--active {
    background: #808080;
  }

  .step--inactive {
    background: #e6e6e6;
  }

  .step__label {
    font-size: 11px;
  }

  .step__text {
    font-size: 14px;
  }

  .required-note {
    margin-top: 20px;
  }

  .form-row {
    padding: 14px 0;
    min-height: 0;
    align-items: flex-start;
  }

  .form-row__label {
    flex: 0 0 100px;
    padding-left: 14px;
    font-size: 13px;
    padding-top: 2px;
  }

  .form-row__field {
    padding: 0 14px 0 6px;
  }

  .form-row--prefecture,
  .form-row--message {
    min-height: 0;
  }

  .form-row--prefecture .form-row__label {
    line-height: 1.4;
  }

  .form-row__field--select {
    flex-direction: column;
    gap: 8px;
    padding-top: 0;
  }

  .form-row__field--select select {
    max-width: none;
  }

  .form-row--message {
    padding: 16px 0;
  }

  .form-row--message .form-row__label {
    flex: 0 0 100px;
  }

  .submit-btn,
  .btn-back-top {
    width: 330px;
    max-width: 100%;
    height: 65px;
    font-size: 18px;
  }

  /* ---- Footer ---- */
  .footer-inner {
    padding: 32px 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-top .logo {
    align-self: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta {
    display: none;
  }
}
