
    #zet {
        margin: 0 auto;
        padding: 20px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    #zet.appear {
        animation: fadeIn 0.5s ease-in-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    #embedded-form {
        width: 100%;
    }

    #embedded-form .field-label {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        align-content: flex-start !important;
        justify-content: flex-start !important;
        margin-bottom: 1rem;
        width: 100%;
        position: relative;
        z-index: 1;
    }

    #embedded-form .field-label.has-error {
        border-left: 3px solid #dc3545;
        padding-left: 0.5rem;
    }

    #embedded-form .field-content {
        flex: 1 1 auto !important;
        min-width: 0;
        width: auto;
        position: relative;
        z-index: 2;
        border-radius: 0 0.25rem 0.25rem 0;  /* 左上、右上、右下、左下の順で指定 */
    }

    #embedded-form .user-input {
        width: 100%;
        position: relative;
    }

    #embedded-form .invalid-feedback {
        display: none;
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.25rem;
        width: 100%;
    }

    #embedded-form .field-description {
        margin-top: 0.5rem;
        width: 100%;
    }

    #embedded-form .field-description small {
        color: #6c757d;
        font-size: 0.875rem;
        line-height: 1.4;
        display: block;
    }

    #embedded-form .head-item-number {
        flex: 0 0 auto !important;
        width: 2.5rem;
        height: calc(1.5rem + 1.5rem + 2px);  /* line-height + padding + border */
        background-color: #4d4d4d;
        color: #ffffff;
        border-radius: 0.25rem 0 0 0.25rem;  /* 左上、右上、右下、左下の順で指定 */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.875rem;
        font-weight: 600;
        margin-top: 0;
        position: relative;
        z-index: 2;
        padding: 0;
    }

    #embedded-form .head-item-number p {
        color: #ffffff;
        margin: 0;
        line-height: 1.5rem;
    }

    #embedded-form .user-input .form-control {
        width: 100%;
    }

    #embedded-form .user-input select {
        padding-right: 2.5rem;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 100%;
    }

    #embedded-form .user-input .material-icons {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #495057;
        font-size: 1.25rem;
    }

    #embedded-form .user-input select:focus + .material-icons {
        color: #80bdff;
    }

    #embedded-form .form-control,
    #embedded-form .form-select {
        width: 100%;
        border: 1px solid #ced4da;
        border-radius: 0 0.25rem 0.25rem 0;  /* 左上、右上、右下、左下の順で指定 */
        padding: 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        height: calc(1.5rem + 1.5rem + 2px);  /* 左側の黒い四角と同じ高さに設定 */
        box-sizing: border-box;  /* パディングとボーダーを高さに含める */
    }

    #embedded-form .form-control:focus,
    #embedded-form .form-select:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    #embedded-form .was-validated .form-control:invalid,
    #embedded-form .was-validated .form-select:invalid,
    #embedded-form .form-control.is-invalid,
    #embedded-form .form-select.is-invalid {
        border-color: #dc3545 !important;
        background-color: #fff !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right calc(0.375em + 0.1875rem) center !important;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
        padding-right: calc(1.5em + 0.75rem) !important;
    }

    #embedded-form .was-validated .form-control:invalid ~ .invalid-feedback,
    #embedded-form .was-validated .form-select:invalid ~ .invalid-feedback,
    #embedded-form .form-control.is-invalid ~ .invalid-feedback,
    #embedded-form .form-select.is-invalid ~ .invalid-feedback {
        display: block !important;
    }

    #embedded-form .was-validated .form-check-input:invalid,
    #embedded-form .form-check-input.is-invalid {
        border-color: #dc3545;
    }

    #embedded-form .was-validated .form-check-input:invalid ~ .form-check-label,
    #embedded-form .form-check-input.is-invalid ~ .form-check-label {
        color: #dc3545;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
        20%, 40%, 60%, 80% { transform: translateX(5px); }
    }

    #embedded-form .was-validated .form-control:invalid,
    #embedded-form .was-validated .form-select:invalid,
    #embedded-form .form-control.is-invalid,
    #embedded-form .form-select.is-invalid {
        animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
    }

    #embedded-form .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        user-select: none;
        border: none;
        padding: 12px;
        line-height: 100%;
        border-radius: 4px;
        transition: all 0.4s cubic-bezier(0.4, 0.4, 0, 1);
        color: #ffffff;
        background-color: #FA7C7F;
        box-shadow: 0px 3px 0px #4d4d4d;
        margin-top: 16px;
        cursor: pointer;
    }

    #embedded-form .btn-primary p {
        color: #ffffff;
        margin: 0;
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 700;
        font-size: 20px;
        line-height: 100%;
        letter-spacing: 0;
        text-align: center;
        vertical-align: middle;
    }

    #embedded-form .btn-primary:hover {
        background-color: #f86a6d;
        box-shadow: 0px 3px 0px #4d4d4d;
    }

    #embedded-form .btn-primary:focus {
        outline: none;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    }

    #zet .mb-3 {
        margin-bottom: 1.5rem;
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }

    #zet .mb-3[style*="display: none"] {
        opacity: 0;
        transform: translateY(-10px);
    }

    #zet .mb-3[style*="display: block"] {
        opacity: 1;
        transform: translateY(0);
    }

    #zet .field-label {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: 1rem;
        opacity: 1;
        transform: translateY(0);
    }

    #zet .field-label.hide-field {
        opacity: 0;
        transform: translateY(-20px);
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    #zet .field-label.show-field {
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 1rem;
    }

    #zet .field-label.sd.appear.hide-field,
    #zet .field-label.sd.hide-field,
    #zet .field-label.appear.hide-field {
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    