h1 {
    margin-bottom: 40px;
}

table {
    margin-bottom: 20px;
}

table caption {
    background: #CCC;
    width: 160px;
    padding: 7px 0;
    border-radius: 7px 7px 0 0;
}

#order_table th,
#order_table td,
#order_table th *,
#order_table td *,
#option_table th,
#option_table td,
#option_table th *,
#option_table td * {
    font-size: 12px;
}

table th .helpbutton {
    float: right;
}


table#order_table th,
table#option_table th {
    width: 160px;
}

table#order_table td,
table#option_table td {
    width: calc(100% - 160px);
}


table td input {
    margin-right: .5em;
}

.helpbutton {
    cursor: pointer;
}

.delivery-select {
    margin-bottom: 20px;
}


td ul.estim-prodcut {
    list-style: none;
    padding: 0;
    margin: 0;
}

td .estim-prodcut li {
    display: inline-block;
    padding: 0;
    margin: 0;
}

td .estim-prodcut li label {
    display: block;
    cursor: pointer;
    padding: 0 10px 0 0;
    margin: 0;
}


td .estim-prodcut li.chekced label {
    color: #333;
    font-weight: bold;
}

td#hagaki div.order-line {
    padding: 5px 0 10px;
    /*display: none;*/
    width: 100%;
}

td#hagaki div.order-line label {
    padding-right: 10px;
}

td#hagaki div.order-line span.period {
    color: #32599B;
}

td#hagaki div.order-line span.period:before {
    content: "※";
}

td#hagaki .hagaki:checked + div.order-line {
    display: block;
}

input.hagaki {
    display: none;
}

input:checked + span {
    font-weight: bold;
}

.w50 {
    width: 50px;
}

.w80 {
    width: 80px;
}

input[type="number"] {
    text-align: right;
    padding-right: 0;
}

.desc,
.memo {
    /*display: none;*/
}

input:checked + span + .memo {
    display: block;
}

/* Second page */
#new-order {
    padding: 10px;
}

#new-order p {
    padding: 0;
    margin: 0;
    font-weight: bold;
    /*    font-size:25px;*/
}

#new-order .add-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#new-order .add-order .new-order {
    border-radius: 5px;
}

#new-order table.estimates {
    margin-top: 20px;
}

#new-order table.estimates th {
    text-align: center;
}

#new-order table.estimates td {
    text-align: right;
    background: #FFF;
}

#new-order table.estimates td:first-child {
    text-align: left;
}

#new-order table.estimates .total-list {
    background: #FFF;
    border-top: 3px solid #9b9b9b;
}

/*#new-order table.estimates .total-list td p:last-child,*/
/*#new-order table.estimates .total-list td p:last-child span {*/
    /*font-size: 25px;*/
/*    font-weight: bold;*/
/*}*/

#new-order table.estimates p {
    padding-right: 30%;
    text-align: right;
    position: relative;
}

/*#new-order table.estimates p span {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*}*/

#new-order table.estimates td[td-element="useseparator"] {
    max-width: 140px;
}

.order-button {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
}

.order-button .order-bottom {
    margin: 10px 0;
    text-align: center;
    color: #666666;
    font-weight: bold;
}

.order-center, .order-center a {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
}


/* Adding for third page */
.delivery {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.delivery > div {
    width: calc((100% / 2) - 20px);
    padding: 10px 20px;
    border: 1px solid #373737;
    border-radius: 5px;
    position: relative;
    margin-bottom: 20px;
}

.delivery > div .change {
    position: absolute;
    top: 10px;
    right: 10px;
}

.delivery > div p {
    padding: 0;
    margin: 0.5em 0;
    color: #000;
    line-height: 1.0;
}

table.order-request textarea {
    width: 100%;
    height: 100px;
}

#thanks {
    z-index: 5000;
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    text-align: center;
    padding-top: 50px;
    font-size: 1.2em;
    background-color: white;
}

/*####################################### 640以下 #########################################*/
@media (max-width: 640px) {
    table#order_table th,
    table#order_table td,
    table#option_table th,
    table#option_table td {
        width: 100%;
        display: block;
    }

    .delivery > div {
        width: 100%;
    }
}

#jthumb, #thumb {
    width: 250px;
    height: 250px;
    display: inline-block;
    background: #F0F0F0;
    transition-duration: .5s;
    margin: 0;
}

#jthumb img, #thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: inline-block;
    margin-right: 20px;
    transition-duration: .5s;
}

/* ########## 680pxä»¥ä¸Š ############## */
@media (min-width: 640px) {
    #jthumb img:hover, #thumb img:hover {
        transform: scale(2.0);
    }
}

/* ########## 680pxæœªæº€ ############## */
@media (max-width: 639px) {
    #jthumb, #thumb {
        width: 100%;
        height: auto;
        display: block;
    }
}