h1, h2, h3 {
    margin: 0;
}

.section-title, .progress-bar, .table-wrapper, .form-item, .complete-message h2 {
    margin-bottom: 48px;
}

.table-container h2 {
    margin-bottom: 16px;
}

h2, h3 {
    font-size: 20px;
    font-weight: 600;
}

.puchase-form-section {
    max-width: 1280px;
    margin: 0 auto;
}

.container {
    padding: 80px 40px;
}

.wrapper {
    max-width: 1200px;
    padding: 48px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0px 4px rgba(0, 0, 0, 0.1);
}

.wrapper-width {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
}

/* ステップバー */
.progress-bar {
    display: flex;
    width: 100%;
    position: relative;
    height: 44px;
}

.progress-bar .step {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-size: 16px;
    position: relative;
    z-index: 1;
    font-weight: bold;
}

.progress-bar .step-1 {
    background-color: #EEEEEE;
}

.progress-bar .step-2 {
    background-color: #DDDDDD;
}

.progress-bar .step-3 {
    background-color: #CCCCCC;
}

.progress-bar .step.active {
    background-color: #0064B4;
    color: #fff;
}

.progress-bar .step-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-bottom: 45px solid transparent;
    border-left: 25px solid #0064B4;
    z-index: 2;
}

.progress-bar .step-2.active::before {
    border-left-color: #EEEEEE;
}

.progress-bar .step-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-bottom: 45px solid transparent;
    border-left: 25px solid #DDDDDD;
    z-index: 2;
}

.progress-bar .step-3.active::before {
    border-left-color: #DDDDDD;
}


.form-item__group {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.form-item__group input, .form-item__group select, .form-item__group textarea {
    display: block;
    /* margin-bottom: 16px; */
    width: -webkit-fill-available;
    height: 40px;
    border: none;
    background-color: #F6F6F6;
    border-radius: 4px;
    padding: 0 12px;
    color: #999999;
    width: 306px;
}

.include-unit {
    display: flex;
    width: 330px;
    gap: 8px;
    align-items: center;
}

.form-item__group.select::after {
    position: relative;
    right: 3%;
    width: 10px;
    height: 7px;
    background-color: #535353;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    content: '';
    pointer-events: none;
}

.purchase-form textarea {
    height: 80px;
    padding-top: 10px;
    flex-grow: 1;
}

.mb-16 {
    margin-bottom: 16px;
}

.form-item__title {
    margin-bottom: 16px;
}

.customer-info .form-item__group:last-of-type,
.delivery-info .form-item__group:last-of-type {
     border-bottom: 1px solid #eee;
}

.form-item__group label {
    width: 150px;
    font-size: 16px;
}

.form-item__group .form-value {
    flex-grow: 1;
}

label.required::after {
    content: '*';
    color: #d9534f;
    font-weight: bold;
    margin-left: 5px;
}

.terms a {
    color: #0064B4;
    text-decoration: underline;
}

.btn-with-icon {
    width: 200px;
    margin: 0 auto;
}

.btn {
    width: 200px;
    height: 40px;
}

.submission-area__terms {
    text-align: center;
    margin-bottom: 16px;
}

/* tb Size */
@media screen and (max-width: 834px) {
    .wrapper {
        padding: 48px 24px;
    }

    .progress-bar {
        height: 42px;
    }
    .progress-bar .step {
        padding: 10px 0;
        font-size: 14px;
    }

    .progress-bar .step-2::before {
        border-bottom: 42px solid transparent;
    }

    .form-item__group label {
        font-size: 14px !important;
    }
}

/* sp Size */
@media screen and (max-width: 640px) {
    .container {
        padding: 40px 20px;
    }

    .section-title, .progress-bar, .table-wrapper, .form-item,  .complete-message h2 {
        margin-bottom: 32px;
    }

    .progress-bar {
        flex-direction: column;
        height: auto;
    }

    .step {
        font-size: 12px !important;
    }

    .step.active {
        font-size: 16px !important;
    }

    .step.active{
        font-size: 16px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .activation {
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 7px solid #fff;
    }

    .progress-bar .step-2::before {
        display: none;
    }

    .progress-bar .step-3::before {
        display: none;
    }

    .form-item__group input, .form-item__group select,  .form-item__group textarea {
        width: 100%;
    }

    .form-item__group select {
        margin-right: -7px;
        font-size: 12px;
    }

    .form-item__group.select::after {
        right: 5%;
        width: 12px;
    }

    .include-unit {
        flex-grow: 1;
        width: 100%;
        margin-left: -8px;
    }

    .submission-area__terms {
        font-size: 12px;
    }
}
