/* フォーム部分 */
.procedure__form {
    border-radius: 8px;
    /* margin-bottom: 20px; */
}

.procedure__section {
    margin-bottom: 40px;
    /* display: none; */ /* デフォルトで非表示 */
}

/* 最初のセクション（ご希望のお手続き）は表示 */
#section-procedure {
    display: block !important;
}

/* 表示制御用のクラス */
.hidden {
    display: none;
}

.is-visible {
    display: block;
}

/* セクション特有のスタイル */
.procedure__section.is-visible {
    margin-bottom: 40px !important;
}

.procedure__title {
    color: #fff;
    position: relative;
    border-radius: 5px;
    background: #f75e28;
    color: #fff;
    font-family: "Zen Kaku Gothic New";
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 170%;
    padding: 24px 22px;
    margin-bottom: 25px;
    /* height: 76px; */
    flex-shrink: 0;
    line-height: 1.3;
}

.procedure__title-henkou {
    font-size: 18px;
}

.procedure__title:after {
    content: "";
    display: block;
    width: 18px;
    height: 11px;
    flex-shrink: 0;
    background-image: url(../images/ttl_sankaku.png);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 99%);
    background-size: 100% 100%;
}

.procedure__content {
}

.procedure__content:not(:last-child) {
    margin-bottom: 30px;
}

.procedure__subtitle {
    color: #373737;
    font-family: "Zen Kaku Gothic New";
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: 170%;
    /* 28.9px */
    margin-bottom: 8px;
}

/* 選択リスト */
.procedure__select-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.procedure__select-item {
    margin-bottom: 10px;
}

.procedure__select-item label {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    height: 72px;
    width: 100%;
    box-sizing: border-box;
    padding-left: 53px;
    position: relative;
    border-radius: 10px;
    border: 2px solid #E1D6D2;
    background: #FFF;
}
.procedure__select-item label.is-active {
    border: 3px solid #F75E28;
    background-color: #f0f8ff;
}

.procedure__select-item input[type="radio"], .procedure__select-item input[type="checkbox"] {
    display: none;
}

.procedure__select-text {
    font-size: 14px;
    line-height: 1.4;
    /* position: relative; */
}

.procedure__select-text::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: url(../images/check_off.png) no-repeat center center;
    background-size: contain;
}

.procedure__select-item input[type="radio"]:checked + .procedure__select-text::before, .procedure__select-item input[type="checkbox"]:checked + .procedure__select-text::before {
    background-image: url(../images/check_on.png);
}

.procedure__select-item input[type="radio"]:checked + .procedure__select-text::after,
.procedure__select-item input[type="checkbox"]:checked + .procedure__select-text::after {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: -2px;
    left: -2px;
    /* top: 0; */
    /* left: 0; */
    border-radius: 12px;
    border: 3px solid #F75E28;
    /* box-sizing: border-box; */
    /* border-radius: 8px; */
}

/* エラーメッセージ */
/* エラーメッセージのベーススタイル */
.procedure__error-message {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
    padding-left: 24px;
    display: block;
    position: relative;
    line-height: 1.4;
}

/* エラーアイコン */
.procedure__error-message::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    /* box-shadow: 0 1px 3px rgba(255, 0, 0, 0.3); */
}

/* 入力フィールド内のエラーメッセージ */
.procedure__input-field .procedure__error-message {
    /* position: absolute; */
    /* bottom: 0; */
    /* left: 0; */
    /* width: 100%; */
}

/* セレクトリスト内のエラーメッセージ */
.procedure__select-list + .procedure__error-message {
    margin-top: 4px;
}

/* 日付フィールド内のエラーメッセージ */
.procedure__date-field + .procedure__error-message {
    margin-top: 4px;
}

.procedure__error-message.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* エラー状態の入力フィールド */
.procedure__input-field.error input,
.procedure__input-field.error select,
.procedure__date-field.error select,
.procedure__content.error input {
    border-color: #ff0000;
    background-color: #fff0f0;
    /* box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1); */
    transition: all 0.2s ease;
}

.procedure__input-field.error input:focus,
.procedure__input-field.error select:focus,
.procedure__date-field.error select:focus,
.procedure__content.error input:focus {
    border-color: #ff0000;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

/* エラー状態のセレクトリスト */
.procedure__select-list.error {
    border: 2px solid #ff0000;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff0f0;
}

/* エラー状態のスタイル */
input.error,
select.error {
    border-color: #ff0000 !important;
    background-color: #fff0f0;
}

/* 入力フィールド */
.procedure__input-field {
    position: relative;
    /* margin-bottom: 15px; */
    /* padding-bottom: 24px; */ /* エラーメッセージ用のスペース */
}

/* エラー状態の入力フィールド */
.procedure__input-field.error {
    margin-bottom: 15px;
}

.procedure__input-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E1D6D2;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.procedure__input-field input:focus {
    border-color: #F75E28;
    outline: none;
    box-shadow: 0 0 0 2px rgba(247, 94, 40, 0.1);
}

.procedure__input-field input.error {
    border-color: #ff0000;
    background-color: #fff0f0;
}


.procedure__content {
    position: relative;
    margin-bottom: 20px;
}

/* 選択項目のインタラクション */
.procedure__select-item label {
    cursor: pointer;
    transition: all 0.3s ease;
}

.procedure__select-item input[type="radio"],
.procedure__select-item input[type="checkbox"] {
    cursor: pointer;
}

.hidden {
    display: none;
}

.procedure__sections-wrap {
    background: #FBFBF9;
    /* width: 93%; */
    margin: auto;
    padding: 20px 0;
    padding-top: 50px;
    padding-inline: calc((100% - min(92% , 680px))/2);
    }
@media screen and (max-width: 767.98px) {
.procedure__sections-wrap {
    padding-top: 30px;
    }
}