.form-page {
    margin-bottom: 170px;
}

.form-container {
    max-width: 980px;
    margin: 0 auto;
}

/* ========================================
テキスト
======================================== */
.form-lead {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.85;
    margin-bottom: 2.5em;
    text-align: center;
}
.form-note {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
    padding: 2em;
    margin-bottom: 6em;
    flex-direction: column;
    gap: 2em;
}
.form-note-title {
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    padding-bottom: .1em;
}
.form-note p {
    padding-top: 1em;
}

/* ========================================
フォーム
======================================== */
.form {
    padding: 48px 56px;
}
.form-group {
    padding-bottom: 2em;
    margin-bottom: 2em;
    border-bottom: 1px solid #fff;
}
.form-group:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.form-group .form-item:last-child {
    margin-bottom: 0;
}
.form-collapsible {
    overflow: hidden;
    max-height: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom-color: transparent;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease, padding-bottom .4s ease, margin-bottom .4s ease, border-bottom-color .4s ease;
}
.form-collapsible.is-open {
    max-height: 1200px;
    padding-bottom: 2em;
    margin-bottom: 2em;
    border-bottom-color: #fff;
    opacity: 1;
}
.form-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2em;
}
.form-item__label-text {
    width: 240px;
    padding-top: .9em;
    font-size: 15px;
    font-weight: 600;
}
.form-item__required-col {
    display: flex;
    flex: 0 0 50px;
    padding-top: .9em;
}
.form-item__body {
    flex: 1;
}
.form-item__badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    padding: .5em .8em;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
}
.form-item__badge--required {
    background: #00909F;
}
.form-item__note {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: .6em;
}
.form-item__control {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: .9em 1em;
    font-size: 15px;
    font-family: inherit;
    color: inherit;
    background: #fff;
}
.form-item__control::placeholder {
    color: #ccc;
}
select.form-item__control {
    cursor: pointer;
}
.form-item__control:focus {
    outline: none;
    border-color: #00909F;
}
textarea.form-item__control {
    resize: vertical;
}
.form-item__input-group {
    display: flex;
    gap: 12px;
}
.form-item__name-group {
    display: flex;
    gap: 12px;
}
.form-item__name-col {
    flex: 1;
}
.form-item__name-col .form-item__control {
    width: 100%;
}
#zip.form-item__control {
    width: 10em;
}
.form-item__zip-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.form-item__zip-input {
    width: 4.5em;
    text-align: center;
}
.form-item__zip-separator {
    font-weight: bold;
}
.form-item__zip-btn {
    width: 7em;
    font-size: 14px;
    color: #fff;
    background-color: #00909F;
    padding: 1em;
    margin-left: 1em;
}
.form-item__zip-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
/* 添付ファイル（選択ボタン ⇔ ファイル名＋削除ボタン） */
.form-file__select {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.form-file__select[hidden],
.form-file__chip[hidden] {
    display: none;
}
.form-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.form-file__button {
    display: inline-block;
    padding: .8em 1.6em;
    font-size: 14px;
    font-weight: 500;
    color: #00909F;
    background: #fff;
    border: 1px solid #00909F;
    border-radius: 4px;
    transition: background-color .2s;
}
.form-file__select:hover .form-file__button {
    background: #e6f4f5;
}
.form-file__select:focus-within .form-file__button {
    outline: 2px solid #00909F;
    outline-offset: 2px;
}
.form-file.is-error .form-file__button {
    color: #c0392b;
    border-color: #c0392b;
}
.form-file.is-error .form-file__chip {
    border-color: #c0392b;
}
.form-file__chip {
    display: flex;
    align-items: center;
    gap: .6em;
    max-width: 100%;
    padding: .6em .7em .6em 1em;
    font-size: 14px;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-file__name {
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.form-file__size {
    flex-shrink: 0;
    font-size: 12px;
    color: #888;
}
.form-file__remove {
    flex-shrink: 0;
    min-height: 36px;
    margin-left: auto;
    padding: .4em .9em;
    font-size: 13px;
    font-family: inherit;
    color: #c0392b;
    background: #fff;
    border: 1px solid #c0392b;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s;
}
.form-file__remove:hover {
    background: #fdecea;
}
.form-file__remove:focus-visible {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}
.form-item__toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #00909F;
    text-decoration: underline;
    cursor: pointer;
}
.form-item__toggle-btn[aria-expanded="true"],
.form-item__toggle-btn[aria-expanded="true"]:hover {
    text-decoration: none;
}
.form-item__toggle-btn::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .3s ease;
}
.form-item__toggle-btn[aria-expanded="true"]::after {
    transform: rotate(225deg);
}
#maintenanceSealHelp img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4em;
    padding-top: .8em;
}
.form-radio {
    display: flex;
    align-items: center;
    gap: .6em;
    font-size: 15px;
    cursor: pointer;
}
.form-radio[hidden] {
    display: none;
}
.form-radio input,
.form-agree input {
    accent-color: #00909F;
    width: 1.2em;
    height: 1.2em;
}
.form-counter {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: .5em;
}
.form-agree {
    text-align: center;
    font-size: 14px;
    padding: 48px 56px;
}
.form-agree label {
    display: inline-flex;
    align-items: center;
    gap: .6em;
}
.form-agree__note {
    text-align: left;
    margin-bottom: 20px;
}
.form-submit {
    display: flex;
    justify-content: center;
}
.form-submit .btn {
    min-width: 280px;
}
.form-item__error {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #c0392b;
    margin-top: .6em;
}
.form-item__error:empty {
    display: none;
}
.form-item__control.is-error {
    border-color: #c0392b;
}
.form-error-summary {
    background: #fdecea;
    border: 1px solid #c0392b;
    color: #c0392b;
    font-size: 14px;
    font-weight: 500;
    padding: 1em 1.4em;
    border-radius: 4px;
    margin-bottom: 2.4em;
}

/* ========================================
ステップバー
======================================== */
.form-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.form-steps__item {
    position: relative;
    flex: 1;
    max-width: 200px;
    text-align: center;
    color: #aaa;
}
.form-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: #ccc;
    z-index: 0;
}
.form-steps__item.is-done:not(:last-child)::after {
    background: #00909F;
}
.form-steps__number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto .8em;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    color: #aaa;
    font-size: 15px;
    font-weight: 600;
}
.form-steps__item.is-active .form-steps__number,
.form-steps__item.is-done .form-steps__number {
    border-color: #00909F;
    background: #00909F;
    color: #fff;
}
.form-steps__label {
    display: block;
    font-size: 13px;
}
.form-steps__item.is-active .form-steps__label,
.form-steps__item.is-done .form-steps__label {
    color: #00909F;
    font-weight: 600;
}

/* ========================================
確認画面
======================================== */
.form-lead {
    font-size: 15px;
    text-align: center;
    margin-bottom: 2em;
}
.form-confirm {
    border-top: 1px solid #e5e5e5;
    margin-bottom: 3em;
}
.form-confirm__row {
    display: flex;
    gap: 40px;
    padding: 1.6em 0;
    border-bottom: 1px solid #e5e5e5;
}
.form-confirm__label {
    width: 220px;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 15px;
}
.form-confirm__value {
    font-size: 15px;
}
.form-confirm__value--pre {
    white-space: pre-wrap;
    word-break: break-word;
}
.form-confirm__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}
.form-confirm__buttons .btn {
    min-width: 220px;
}
.form-confirm__buttons .back-btn {
    background-color: #fff;
    color: #2a2a2a;
    border: 1px solid #2a2a2a;
}

/* ========================================
完了画面
======================================== */
.form-complete {
    text-align: center;
    padding: 3em 0;
}
.form-complete__message {
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 2.8em;
}
.form-complete__receipt {
    font-size: 14px;
    font-weight: 600;
    color: #00909F;
    margin-bottom: 2.8em;
}
.form-complete .btn {
    min-width: 280px;
    margin: 0 auto;
}

/* メディアクエリ */
@media screen and (max-width: 768px) {
    .form-page {
        margin-bottom: 100px;
    }

    .form {
        padding: 32px 20px;
    }

    .form-note {
        padding: 24px 16px;
    }

    .form-item {
        flex-wrap: wrap;
        align-items: center;
        gap: 0 .6em;
    }

    .form-item__label-text {
        padding-top: 0;
        width: auto;
    }

    .form-item__required-col {
        flex: 0 0 auto;
        padding-top: 0;
    }

    .form-item__body {
        flex: 1 0 100%;
        margin-top: .5em;
    }

    .form-radio-group {
        gap: 1.6em;
        flex-direction: column;
    }

    .form-radio {
        font-size: 12px;
    }

    .form-item__name-group {
        flex-direction: column;
        gap: .6em;
    }

    .form-item__control {
        font-size: 12px;
    }

    .form-item__note {
        font-size: 10px;
    }

    .form-item__zip-btn {
        font-size: 11px;
    }

    .form-agree {
        font-size: 10px;
        padding: 30px 0;
    }

    .form-submit .btn {
        width: 100%;
        min-width: 0;
    }

    .form-steps {
        margin-bottom: 2.8em;
    }

    .form-steps__number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .form-steps__item:not(:last-child)::after {
        top: 13px;
    }

    .form-steps__label {
        font-size: 11px;
    }

    .form-confirm__row {
        flex-direction: column;
        gap: .6em;
    }

    .form-confirm__label {
        width: 100%;
    }

    .form-confirm__buttons {
        gap: 12px;
    }

    .form-confirm__buttons .btn {
        width: 100%;
        min-width: 0;
    }
}
