@media screen and (max-width: 768px) {

    .wrapper{
        font-size:3.125vw;
        margin-bottom: 0;
        height:115lvh;
    }

   header {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 10;
    }

    #main-contents{
        margin-top: 62px;
        position: fixed;
        padding: 1em 0;
        padding-top:0;
    }

    #main-contents.contents-bottom {
        margin-top: auto;
        bottom: 0;
        position: absolute;
        height:auto;
    }


    .canvasarea canvas {
        border: none;
    }

    .back__Btn {
        top:0;
    }

    .ui-wrap div,
    .ui-wrap .order__output-text{
        font-size: calc(3.125vw * 1.1);
    }

    .order__outputs {
        padding-bottom: 3em;
    }

    .ui-2 {
        padding-bottom: 2em;
    }

   

    .size-select *{
        font-size: calc(3.125vw * 1.1);
    }

    .size-select dl:first-child dt{
            margin-right: -4%;
    }

    .size-select dl:first-child dd{
            margin-right: 0;
            gap: 0 0.5em;
    }


    .size-select__circle dt {
            width: 23%;
    }

    .box1__title.text, .box2__title.text{
        width: 8em;
    }

    .box1__title .color-select_btn span,
    .box2__title .color-select_btn span {
        width: 1.1em;
        height: 1.1em;
    }

   

    .title-menu {
        width: 9em;
    }

 

    .block-flex{
        flex-direction:column;
    }

    .ui-wrap {
        width:100%;
        height: auto;
        height: calc(100lvh - 62px - 75vw);
        padding: 0 0em 0 1em;
        margin-right: 0em;
    }

    .view{
        width:100%;
        margin-bottom: 1em;
        margin-bottom: 0;
    }

    .view__wrap{
        /*border-bottom: solid #ccc 1px;*/
        margin-bottom: 0;
    }

    .view__modal-drag {
        width: 75%;
        top: 44%;
    }

    .view__modal-drag-text {
        font-size: 1.25em;
    }

    .ui-1{
         padding-left:0;
         width:100%;
         padding-right: 0.8em;
         margin-right: 0;
    }

    .ui-1__inner{
        padding-top: 1.75em;
        padding-top: 0.75em;
        padding-bottom:0;
    }

    .box2__color-select .color-select_btn,
    .box1__color-select .color-select_btn{
        margin-bottom: 0.6em;
        margin-right: 0.5em;
    }

    .mono,
    .marble,
    .flat,
    .embos{
        margin-right:0.5em;
    }

    .ui-2 {
        position:relative;
        width:100%;
        height:auto;
        top: 1.5em;
        padding-bottom: 1em;
        padding-right:0;
    }

   
    .go-order { 
        font-size: 1.2em;
        left: 39%;
    }


    .header-pc img {
        display: none;
    }

    .header-sp img {
        display: block;
    }

    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
        
    .view__control {
        align-items: center;
        gap: 0 1.6rem;
        margin-bottom: 0;
        font-size: 1.25em;
        padding: 0em 1em 0.25em;
    }

    .bandrotate__btn {
        width: 1.25em;
        height: 1.25em;
        border-radius: 0.625em;
        top: -0.625em;
    }

    .bandrotate__title{
        margin-bottom: 0.5em;
        margin-bottom: 1em;
        margin-top: -2.45em;
        color: #000;
        text-align: left;
    }

    .band-rotate {
        width: 40%;
    }

    .view__control.hide {
        transform: translateY(160%);
    }
        

    .share,
    .download{
        font-size:1em;
        white-space: nowrap;
        padding-top: 0em;
        padding-bottom: 0;
        transform: translateY(12%);
    }


    .band-pictre {
        width: 42%;
        gap: 0 18%;
    }

    .canvasarea {
        margin-bottom: 1em;
        border-bottom:solid #eee 1px;
    }

    .box,
    .add-hand,
    .advice,
    .add-bg {
        font-size: 1em;
    }

    /* タイトルの装飾 */
    .box1__title,
    .box2__title,
    .box3__title,
    .box4__title,
    .body-color-title,
    .print-design-title,
    .add-bg__title,
    .add-hand__title,
    .advice__title,
    .add-order__title,
    .copy__title {
        
        width: 100%;

    }

    .body-select lavel,
    .print-type-list lavel{
        margin-right: 0.25em;
    }

    .advice__title{
        font-size: 1.5em;
    }
    .advice__text{
        font-size: 1.25em;
    }

    /* 本体カラー */

    .box1__title text {
        margin-right: 0.8em;
    }

    /* タイトル横のボタン */
    .box1__title div:nth-of-type(2),
    .box2__title div:nth-of-type(2) {
        margin-left: 0em;
    }

    .box1__title .color-select_btn , 
    .box2__title .color-select_btn {

        margin-right: 0.1em;
       
    }

    .box1__title .color-select_btn:nth-of-type(8),
    .box2__title .color-select_btn:nth-of-type(8){
         margin-right: 1.3em;
    }

    
    .box1__title .color-select_btn:nth-of-type(6),
    .box2__title .color-select_btn:nth-of-type(6),
    .box1__title .color-select_btn:nth-of-type(7),
    .box2__title .color-select_btn:nth-of-type(7) {
        margin-right: 1.5em;
         display: none;
    }

    .title-menu {
        font-size: 1em;
        white-space: nowrap;
        margin-right: 1em;
        margin-left: -1em;
        width: 9em;
    }

    .color-select_btn span {
        width: 2em;
        height: 2em;
        border-radius: 1em;
    }

    .body-color-title__arrow,
    .body-print-title__arrow, 
    .body-design-title__arrow,
    .body-size-title__arrow,
    .body-hand-title__arrow,
    .body-bg-title__arrow {
        width: 4vw;
        max-width: 4vw;
    }


    .fonts__select--area select {
        font-size: 1em;
        color: #000;
        background-color: #fff;
        border: solid 1px #999;
        padding-left: 0.2em;
        line-height: 1.5;
        padding-bottom: 0.2em;
        -webkit-appearance: none; /* Safari, Chrome, Edge用 */
        -moz-appearance: none;    /* Firefox用 */
        appearance: none;
        border-radius:0.25em;
    }

    .fonts__select-list {
        top:0;
    }

    .box3__text2 {
        width: 30%;
    }


    .box3__design-area div,
    .box4__size-area div {
        font-size: 1em;
    }

    .box4{
        margin-bottom: 1em;
    }
    
    .design-menu--inner{
        padding-bottom: 3em;
    }

    #color-menu--inner {
            width: 106%;
    }

    .add-hand__button {
    width: 30.5%;
    }

    .icon-select__pulldown {
        flex-wrap: wrap;
    }

    .icon-none {
        position: absolute;
        right: 11.35em;
        top: 3em;
    }

    .icon-select__left-pulldown,
    .icon-select__right-pulldown {
            margin-right: 1em;
    }


    .box8 {
        padding-top: 2em;
        background-color:#fff;
    }

    .box8__title {
        display: block;
        flex-wrap: wrap;
        gap: 0;
        border-bottom: none;
        margin-bottom: 1.5em;
        padding-bottom: 0;
        font-size: 1.35em;
    }



    .box8__title--area {
        border-bottom: solid 2px #0000ff;
        padding-bottom: 1.5em;
        margin-bottom: 1.5em;
        width: 100%;
        flex-wrap: wrap;
    }

    .box8__amount,
    .box8__date{
        font-size: 1.4em;
        margin-bottom: 0.475em;
    }

    .number-input__area span {
        padding-left: 0.5em;
    }

    .box8__text {
        width: 100%;
        font-size: 1.2em;
        font-size: calc(3.125vw * 1.1);
    }


    .box8__textarea {
        display: block;
        margin-bottom: 3em;

    }

    .box8__text-info {
        font-weight: 700;
        margin-bottom: 1.5em;
    }

    .box8__text-info span {
        font-weight: 700;
        font-size: 1.5em;
    }

    .box8__text-info span.delivaly_text{
        font-size: 1.0em;
    }

    .box8__text-info span.delivaly_price,
    .box8__text-info span.delivaly_day {
        font-size: 1.45em;
    }


    .box8__number-note{
        font-size: 0.7em;
        font-weight: 400;
        margin-left: 0.5em;
    }


    .go-ordersite {
        width: 20em;
        padding: 1em 1.5em;
                margin-bottom: 1em;
    }

    .rw_modal__content {
        width: 90%;
        padding: 2em 1.5em;
        line-height:1.6;
    }

    .rw_modal__title {
        line-height: 1.35;
        margin-bottom: 0.5em;
    }

    .rw_modal__title .pc-only{
        display:none;
    }

    .rw_modal__note{
        font-size: 1.1em;
        width: auto;
    }

    .rw_modal__note dd{
         font-size: 1em;
         margin-bottom: 0.6em;
    }

    .rw_modal__check {
        font-size: 1.1em;
    }

    .rw_modal__information{
        text-align:left;
    }

    .view__modal-text-wrap,
    .rw__modal-copy-wrap{
        font-size: 1.15em;
    }

    .rw__modal-overcolor-text{
        max-width:100%;
    }

    .add-bg__next, .add-bg__prev {
        padding: 1.65em 1.25em;
    }

    .box6 .add-bg__next,
    .box6 .add-bg__prev{
         padding: 1.5em 1.25em;
    }



}
    
