/* 完了ページ用アニメーション */
@keyframes checkDraw {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
@keyframes circleDraw {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}
.complete-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-md);
}
.complete-icon__circle {
  stroke: var(--color-blue);
  stroke-width: 4;
  fill: var(--color-blue-pale);
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: circleDraw 0.6s ease forwards;
}
.complete-icon__check {
  stroke: var(--color-blue);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkDraw 0.4s ease 0.5s forwards;
}

/* 次のステップカード */
.next-steps {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) auto;
  max-width: 600px;
}
.next-step {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm);
  background: var(--color-gray-light);
  border-radius: var(--radius-md);
  text-align: left;
}
.next-step__num {
  width: 32px;
  height: 32px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.next-step__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}
.next-step__text {
  font-size: 0.8rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* フォームページ固有のユーティリティ */
.page-hero--contact {
  background-image: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&q=80&w=1200');
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.input--short {
  max-width: 220px;
}
.input--medium {
  max-width: 300px;
}
.help-text--small {
  margin-bottom: 0.5rem;
}
.form-group--no-border {
  border-bottom: none;
  padding-bottom: 0;
}
.checkbox-label--strong {
  margin-top: 1rem;
  font-weight: 700;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}
.confirm-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: var(--space-sm);
}
.thanks-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.thanks-text {
  color: #4a5568;
  line-height: 1.8;
}

/* フォームラッパー */
.contact-wrap {
  display: grid;
  gap: var(--space-lg);
}
.contact-info {
  display: grid;
  gap: var(--space-sm);
}
.contact-info__item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm);
  background: var(--color-gray-light);
  border-radius: var(--radius-md);
}
.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--color-blue-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gray);
  margin-bottom: 0.2rem;
}
.contact-info__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}
.contact-info__note {
  font-size: 0.75rem;
  color: var(--color-gray);
}
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-ja);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1.4rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    margin-right: 1rem;
}

.btn-wrapper{
     margin: 2rem auto 0 auto;
    text-align: center;
    }



@media (min-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr 2fr;
  }
  .contact-form {
    padding: var(--space-lg);
  }

}

@media (max-width: 767px) {
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-ja);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1.4rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
    margin-bottom: 1rem;
    width: 100%;
}
}

.stepBar {
  display: flex;
    max-width: 100%;
    position: relative;
    margin: 20px auto;
    text-align: center;
}
.stepBar li {
  font-size: 24px;
    list-style: none;
    position: relative;
    width: 33.333%;
}
.stepBar li:after {
  background: #D0E1F9;
    content: "";
    width: calc(100% - 48px);
    height: 4px;
    position: absolute;
    left: calc(-50% + 24px);
    top: 22px;
}
.stepBar li:first-child:after {
  display: none;
}
.stepBar li span {
  background: #D0E1F9;
  color: #ffffff;
  display: inline-block;
  height: 48px;
  margin-bottom: 5px;
  line-height: 40px;
  width: 48px;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.stepBar .visited:after {
  background: #4D648D;
}
.stepBar .visited span {
  background: #fff;        /* 中を白抜きにする */
  color: #4D648D; 
  border: 2px solid #4D648D; 
}
.stepBar .active span {  
  background: #4D648D;        /* 中を白抜きにする */
  color: #fff;          /* 文字をメインカラーに */
  border: 2px solid #4D648D; /* 枠線をつける */
  box-sizing: border-box;  /* 枠線分を内側に含める */
}
@media (max-width: 400px) {
  .stepBar li {
    font-size: 24px; /* 文字を少し小さく */
  }
  .stepBar li span {
    width: 48px;     /* 丸を少し小さく */
    height: 48px;
    line-height: 40px;
  }
  .stepBar li:after {
    top: 20px;        /* 丸のサイズに合わせて線の位置も調整 */
  }
}