body {
    text-align: center;
    display: flex;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: shippori-mincho, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.product-row {
	display: grid !important;
}

.mycontainer {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    background-color: #1b1b1b;
}

.mycontainer img {
    width: 100%;
    height: auto;
    max-width: 1000px;
}

.cta-pc {
    animation: ctaZoom 1s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes ctaZoom {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

.layer1,
.layer2,
.layer3,
.layer4,
.layer5,
.layer6,
.layer7,
.layer8,
.layer10,
.layer11,
.layer12,
.layer13 {
    position: relative;
    max-width: 1000px;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.layer1 .cta-pc {
    position: absolute;
    bottom: 0;
    width: 90%;
    margin: 0 auto;
    transform: translateX(-50%);
}

.layer3 {
    margin-top: -16px;
    z-index: 20;
}

.layer4 {
    margin-top: -3px;
    z-index: 20;
}

.layer5 {
    margin-top: -14px;
}

.layer5 .cta-pc {
    position: absolute;
    bottom: 6%;
    width: 90%;
    transform: translateX(-50%);
}

.layer8 {
    margin-top: -3px;
}

.layer9 {
    position: relative;;
}

.layer9 .cta-pc {
    position: absolute;
    top: 4%;
    width: 93%;
    transform: translateX(-50%);
}

.layer10 {
    margin-top: -3px;
}

.layer11 {
    margin-top: -3px;
}

.layer11 .cta-pc {
    position: absolute;
    top: 4%;
    width: 88%;
    transform: translateX(-50%);
}

.layer12 {
    margin-top: -195px;
}

.layer13 {
    margin-top: -27px;
}

.layer13 .cta-pc {
    position: absolute;
    bottom: 3%;
    width: 88%;
    transform: translateX(-50%);
}

.layer14 {
    margin-top: -3px;
}

.layer15 {
    margin-top: -3px;
}

.sp {
    display: none;
}

.pc {
    display: block;
}


@media (max-width: 768px) {
    .layer3 {
        margin-top: -26px;
    }

    .layer4 {
        margin-top: -7px;
    }

    .layer5 {
        margin-top: -3px;
    }

    .layer8 {
        margin-top: -3px;
    }

    .layer10 {
        margin-top: -3px;
    }

    .layer11 {
        margin-top: -3px;
    }

    .layer12 {
        margin-top: -4px;
    }

    .layer13 {
        margin-top: -27px;
    }

    .layer14 {
        margin-top: -3px;
    }

    .layer15 {
        margin-top: -3px;
    }

    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    .layer1 .cta-pc {
        width: 95%;
    }
    .layer5 .cta-pc {
        position: absolute;
        bottom: 4.5%;
        width: 96%;
        transform: translateX(-50%);
    }
    .layer9 .cta-pc {
        position: absolute;
        top: 3%;
        width: 97%;
        transform: translateX(-50%);
    }
    .layer11 .cta-pc {
        position: absolute;
        top: 2.5%;
        width: 96%;
        transform: translateX(-50%);
    }

    .layer13 .cta-pc {
        position: absolute;
        bottom: 3%;
        width: 96%;
        transform: translateX(-50%);
    }
}

/* from Css */
.layer16 {
    background-image: url('../img_lp/frm_bg.png');
    background-repeat: no-repeat;
    /* height: 600px; */
    font-weight: 500;
    font-size: 17px;
}

.layer16 .title {
    display: flex;
    justify-content: center;
    padding: 80px 10px 10px 10px;
    width: 100%;
}

.layer16 .title img {
    width: 100%;
    max-width: 392px;
    height: auto;
}

.layer16 .banner {
    width: 100%;
    max-width: 1000px;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, #6fa8c4 0%, #6cc06f 100%);
    border-radius: 3px;
    text-align: left;
}

.layer16 .banner img {
    /* width: 100%; */
    max-width: 915px;
    /* height: auto; */
    margin: 20px 20px;
}

.layer16 .agree {
    display: flex;
    justify-content: center;
    padding: 0px 10px;
    width: 100%;
}

.agree .context {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FFF;
    margin-top: 40px;
    height: 61px;
    width: 100%;
    max-width: 530px;
}

.layer16 .description {
    display: flex;
    justify-content: center;
    padding: 30px 10px;
    width: 100%;
}

/* Form styling */
.p-4 {
    background-color: #fff;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
}

.p-4 form {
    color: #000;
}

.p-4 .form-control {
    border: 1px solid #ccc;
}

.p-4 .form-select {
    border: 1px solid #ccc;
}

.p-4 .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

/* Form Container Styling (Image Layout) */
.form-container {
    background-color: #f5f5f5;
    padding: 40px 30px;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
    padding-bottom: 20px;
    /* keep light grey underline across row */
    background: linear-gradient(to right, #7cb342 20%, #ddd 33%) bottom/100% 1px no-repeat;
    /* border-bottom: 1px solid #ddd; */
}

.form-row:last-of-type {
    border-bottom: none;
}

.form-label-col {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: left;
    padding-bottom: 10px;
}

/* underline removed per request; styling will be handled manually */
.form-label-col .label-text {
    display: inline-block;
}

.form-inputs {
    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 10px;
}

.form-inputs div {
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: 10px;
}

/* special underline for product row: first third green */
.product-row {
    border-bottom: none;
}

/* keep product and quantity on one row */
.product-row .form-inputs {
    flex-direction: row;
    align-items: center;
    gap: 0;
    /* no gap so controls touch */
}

.product-row .form-inputs .form-select {
    flex: 1;
    min-width: 0;
    /* allow shrinking to prevent wrapping */
}

/* make the two selects appear as a single control */
.product-row .form-inputs .form-select+.form-select {
    margin-left: -1px;
    /* collapse adjacent borders */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.product-row .form-inputs .form-select:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #7cb342;
    box-shadow: 0 0 5px rgba(124, 179, 66, 0.3);
    outline: none;
}

.input-pair {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-pair .form-control {
    flex: 1;
}

.separator {
    color: #666;
    font-weight: bold;
}

.postal-code-input {
    display: flex;
    gap: 5px;
    align-items: center;
}

.postal-mark {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.postal-code-input .form-control {
    width: 80px;
}

.postal-separator {
    color: #666;
    font-weight: bold;
}

.phone-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.phone-input .form-control {
    width: 100px;
}

.date-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-input .form-select {
    flex: 1;
    min-width: 100px;
}

.quantity-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* use select for quantity instead of number input */
.quantity-input .form-select {
    width: 80px;
    padding-right: 2rem;
    /* keep arrow visible */
}

/* hide unit span if accidentally left in HTML */
.quantity-input .unit {
    display: none;
}

.mb-2 {
    margin-bottom: 10px;
}

.btn-submit {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0) scale(0.98);
}

/* completion button matches image, same animation as submit */
.btn-completion {
    background-color: #8b1a1a;
    color: #fff;
    border: 2px solid #d4af37;
    padding: 15px 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    display: block;
    margin: 40px auto;
    font-family: shippori-mincho, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-completion:hover {
    background-color: #a52a2a;
    transform: translateY(-2px);
}

.btn-completion:active {
    transform: translateY(0) scale(0.98);
}

.mobile-break {
    display: inline;
}

.form-container .submit-btn {
    width: 384px;
    margin-top: 40px;
    margin-bottom: 60px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 20px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .form-label-col {
        border-bottom: 2px solid #7cb342;
        margin-bottom: 10px;
    }

    .input-pair {
        flex-wrap: wrap;
    }

    .postal-code-input,
    .phone-input,
    .date-input {
        flex-wrap: wrap;
    }

    .postal-code-input .form-control,
    .phone-input .form-control {
        min-width: 100px;
    }

    .btn-submit {
        width: 100%;
    }

    .form-row {
        background: linear-gradient(to right, #7cb342 0%, #ddd 33%) bottom/100% 1px no-repeat;
    }

    .layer16 .title {
        padding: 50px 10px 0px 10px;
    }

    .layer16 .title img {
        max-width: 300px;
    }

    .layer16 .banner {
        padding: 10px 20px;
        font-size: 20px;
    }

    .mobile-break {
        display: block;
    }
}