/* ===================================
   お問い合わせフォーム
   =================================== */

/* ステップインジケーター */
.contact-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 60px;
    gap: 0;
}

.contact-steps__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-steps__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e5e5e5;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
}

.contact-steps__item.is-active .contact-steps__number {
    background-color: #4a7c59;
    color: #fff;
}

.contact-steps__item.is-completed .contact-steps__number {
    background-color: #4a7c59;
    color: #fff;
}

.contact-steps__label {
    font-size: 14px;
    color: #666;
}

.contact-steps__item.is-active .contact-steps__label {
    color: #333;
    font-weight: bold;
}

.contact-steps__line {
    width: 80px;
    height: 2px;
    background-color: #e5e5e5;
    margin: 0 20px;
    margin-bottom: 36px;
    transition: all 0.3s;
}

.contact-steps__line.is-completed {
    background-color: #4a7c59;
}

/* エラーメッセージ */
.contact-errors {
    background-color: #fff0f0;
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.contact-errors ul {
    margin: 0;
    padding-left: 20px;
}

.contact-errors li {
    color: #d32f2f;
    margin-bottom: 8px;
}

.contact-errors li:last-child {
    margin-bottom: 0;
}

/* ===================================
   ステップ1: 入力フォーム
   =================================== */

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-bottom: 32px;
    align-items: start;
}

.contact-form__label {
    padding-top: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

.contact-form__required {
    display: inline-block;
    background-color: #dcf0e2;
    color: #4a7c59;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
}

.contact-form__input {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form__input--name {
    flex-direction: row;
    gap: 16px;
}
/* 最終的には消す */
.contact-form__radio {
    display: flex;
    align-items: center;
    cursor: pointer;
}
/* 最終的には消す */

.contact-form__radio--column {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    text-align: left;
    gap: var(--space-16);
}
.contact-form__radio input[type="radio"],
.contact-form__radio--column input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
}

.contact-form__radio span,
.contact-form__radio--column span {
    font-size: 16px;
}
.contact-form__radio--column label {
    display: flex;
    align-items: center;
}

.contact-form__select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form__select:focus {
    outline: none;
    border-color: #4a7c59;
}

.contact-form__text {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.contact-form__text--full {
    width: 100%;
}

.contact-form__text:focus {
    outline: none;
    border-color: #4a7c59;
}

.contact-form__text::placeholder {
    color: #aaa;
}

.contact-form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
}

.contact-form__textarea:focus {
    outline: none;
    border-color: #4a7c59;
}

.contact-form__textarea::placeholder {
    color: #aaa;
}

.contact-form__submit {
    text-align: center;
    margin-top: 48px;
}

.contact-form__button {
    display: inline-block;
    padding: 16px 60px;
    background-color: #4a7c59;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form__button:hover {
    background-color: #3d6649;
    transform: translateY(-2px);
}

/* ===================================
   ステップ2: 確認画面
   =================================== */

.contact-confirm {
    max-width: 800px;
    margin: 0 auto;
}

.contact-confirm__text {
    text-align: center;
    font-size: 16px;
    margin-bottom: 40px;
    color: #666;
}

.contact-confirm__row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.contact-confirm__row:first-of-type {
    border-top: 1px solid #eee;
}

.contact-confirm__label {
    font-weight: 500;
    color: #666;
}

.contact-confirm__value {
    color: #333;
    line-height: 1.8;
}

.contact-confirm__buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.contact-confirm__button {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-confirm__button--back {
    background-color: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.contact-confirm__button--back:hover {
    background-color: #f5f5f5;
}

.contact-confirm__button--submit {
    background-color: #4a7c59;
    color: #fff;
}

.contact-confirm__button--submit:hover {
    background-color: #3d6649;
    transform: translateY(-2px);
}

/* ===================================
   ステップ3: 完了画面
   =================================== */

.contact-complete {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.contact-complete__message {
    font-size: 16px;
    line-height: 2;
    color: #333;
    margin-bottom: 48px;
}

.contact-complete__link {
    margin-top: 40px;
}

.contact-complete__button {
    display: inline-block;
    padding: 16px 60px;
    background-color: #4a7c59;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-complete__button:hover {
    background-color: #3d6649;
    transform: translateY(-2px);
}

/* ===================================
   レスポンシブ対応
   =================================== */

@media (max-width: 768px) {
    .contact-steps {
        margin: 30px 0 40px;
    }

    .contact-steps__number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .contact-steps__label {
        font-size: 12px;
    }

    .contact-steps__line {
        width: 40px;
        margin: 0 10px;
        margin-bottom: 30px;
    }

    .contact-form__row,
    .contact-confirm__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-form__label {
        padding-top: 0;
    }

    .contact-form__input--name {
        flex-direction: column;
    }

    .contact-confirm__buttons {
        flex-direction: column-reverse;
    }

    .contact-confirm__button {
        width: 100%;
    }
}
/* エントリーフォーム */
button#zip-search-btn {
    padding: var(--space-16);
    background-color: var(--color-primary-light);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-sm);
    margin-left: var(--space-8);
    transition: ease-in-out .5s;
}
button#zip-search-btn:hover{
    opacity: .8;
}

/*  Contact Form 7　上書き用*/
.wpcf7-form-control-wrap {
  position: static !important;
}
.wpcf7-spinner{
    display: none!important;
}
.contact-form-wrap{
    width: 100%;
    margin: 240px auto 100px;
}
@media (max-width: 768px) {
    .contact-form-wrap{
    width: 96%;
    margin: 100px auto 80px;
}
}