@charset "utf-8";

*{
    margin:0px;
    padding:0px;
    font-size: 14px;
}
body{
    font-family: "メイリオ", "Mairyo", "ヒラギノ角ゴPro", "Verdana", "Arial", "Helvetica", sans-serif;
    /* opacity:0; */
}
input[type=tel]{
    width:40px;
    font-size:16px;
}
ul{
    list-style: none;
}
li {
    margin-left: 1rem;
    text-indent: -1rem;
    margin: 1rem 1rem;
}

/** クロムだけ画像を縮小するとぼやけるので、イメージレンダリングを指定する。しかしこれをやるとチリチリになるのでクロムだけ。 */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

.contents{
    width:100vw;
    margin:auto;
    position: relative;
    overflow: hidden;
    min-height: 95vh;
}

.contents>header{
    justify-content: space-between;;
    /* text-align: center; */
    padding:10px 10px 0 10px;
}
header .product-logo-box{
    text-align: center;
    margin-top: -2.1rem;
}

header .save-img-box img,
header .download-img-box img,
header .help-box img{
    height: 2.8rem;
}
header .shop-logo-box{
    padding-top: 15px;
}
header .shop-logo-box img{
    height: 1rem;
}

header .product-logo-box img{
    height: 1.6rem;
}

.header-controls>div{
    margin: 0 2px;
}

.contents>.content{
    padding:4px;
}
.content.wall{
    height: auto;
    /* background: #ffe; */
    position: relative;
}


/* .wall-size-box .wall-size-input-box{
    display:none;
} */
.content.wall .wall-img-box{
    width: 100%;
    height:45vh;
    /* text-align:center; */
}

.wall-img-box #wall{
    /* background: pink; */
    /* margin: auto;
    overflow: visible;
    box-sizing: content-box; */
    position: absolute;

}
.wall-img-box .walled-poster{
    z-index:100;
    cursor: move;

}
.wall-img-box .wall-background{
    /* width: -webkit-fill-available; */
    position: absolute;
    pointer-events: none;
    z-index: 150;
    /* left:0;
    top:0; */
    /* object-fit: contain; */
    max-width:100%;
    max-height:100%;
}
.wall-img-box .wall-foreground{
    z-index: 9999;
    /* width: -webkit-fill-available; */
    position: absolute;
    pointer-events: none;
    mix-blend-mode: multiply;
    /* object-fit: contain; */
    /* left:0;
    top:0; */
    max-width:100%;
    max-height:100%;
}

/* -webkit-fill-availableはfirefoxにはきかないので別で指定する **/
/* @-moz-document url-prefix() {
    .wall-img-box .wall-background,
    .wall-img-box .wall-foreground
    {
        width: -moz-available;
    }
} */

.content.pallet {
    min-height:170px;
}
/* .content.pallet .switch-box{
    float: right;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:8px;
} */
/* .content.pallet .switch-box img{
    width:30px;
    height:30px;
} */
.content.pallet .item-box{
    /* background:blue; */
    display: flex;
    /* flex-wrap: wrap; */
    /* justify-content: space-around; */
    overflow-x: auto;
    padding-bottom:20px;
}
.pallet-icon-box{
    text-align: center;
    width: 80px;
    font-size:14px;
    margin: 0 6px;
}
.pallet-icon-box .thumbs{
    margin-top: -30px;
    height: 50%;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background:#eee; */
}
.pallet-icon-box .thumbs>img.wider{
    width: 80px;
}
.pallet-icon-box .thumbs>img.higher{
    height: 110px;
}
.pallet-icon-box .label{
    margin-top: 10px;
    font-size: 0.8rem;
    width: 80px;
}
.pallet-icon-box .size{
    font-size: 0.8rem;
}
.pallet-icon-box .size img{
    width: 20px;
    vertical-align: bottom;
}
.pallet-icon-box .ctl-button,
.saved-image-box .ctl-button {
    border-radius: 15px;
    border: 1px solid black;
}
.pallet-icon-box .ctl-button.resize,
.pallet-icon-box .ctl-button.to-product-page {
    margin-top:4px;
}

.pallet-icon-box .delete,
.saved-image-box .delete{
    background-color: #000;

    display: inline-block;
    position: relative;
    width: 30px;
    height: 30px;
    z-index:1000;
}

.pallet-icon-box .delete span img,
.saved-image-box .delete span img{
    width:100%;
}

button,
.button,
.ctl-button,
.item-box img,
.saved-image-box img
{
    cursor: pointer;
}


.pallet-icon-box .to-product-page a{
    font-size: 0.8rem;
    color: #000;
}
.pallet-icon-box .resize{
    background:#000;
    padding: 0 4px;
}
.pallet-icon-box .resize-button{
    font-size: 0.8rem;
    color: #fff;
    background:#000;
    border:none;
    border-radius: 5px;
    margin-bottom:5px;
    cursor: pointer;
}
.pallet-icon-box .to-product-page a{
    text-decoration: none;
}

.content.saved,
.content.list,
.content.help,
.content.room
{
    background:#e0e0e0;
    /* border:2px solid #ccc; */
    border-radius: 15px;
    position:absolute;
    z-index: 10000;
    top:20px;
    height: 80vh;
    width:80vw;
    overflow: auto;
    right: -100vw;
    padding-top:0;
    filter: drop-shadow(0px 0px 10px rgba(0,0,0,.8));
    transform: translateZ(0); /* サファリがgpuレイヤ作ってくれないので強制的に作らせる */
}
.content.room{
    height:auto;
    min-height: 240px;
    max-height: 80vh;
}
.content.help{
    width:92vw;
    top:20px;
}
.content.help .help-body{
    padding-left:10px;
}
.content.help .campaign-bunner-box{
	margin: 20px 0 0 0;
	text-align:center;
}
.content.help .campaign-bunner-box img{
	width: 90%;
}

/* .content.saved{
    top:200px; topはこれ動的に変わると思うのでjsでやらねば
} */
.content.saved .saved-image-box{
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    text-align: center;

}
.content.saved .saved-image-box .row{
    width: 45%;
    margin: 5px;
}
/* .content.saved .saved-image-box .thumb{
    width:82px;
    margin:4px;
} */
.content.saved .saved-image-box img{
    width:100%;
}
.modal-header
{
    margin: 0px;
    padding: 10px;
    /* text-align: right; */
    position: sticky;
    left: 0;
    top: 0;
    background: #e0e0e0;;
    z-index: 2000;

}
.modal-header .title{
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: 6px;
}
.modal-header .modal-closer-button{
    margin-top: -2.15rem;
    cursor: pointer;
}
.modal-header .modal-closer-button span{
    font-weight: bold;
    font-size: 1.1rem;
}
.content.list .category-select-box{
    margin-top: 12px;
}

.content.list .categories-item-box,
.content.room .room-item-box
{
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
}
.content.list .item-box,
.content.room .item-box{
    width: 45%;
    margin: 5px;
    position: relative;
}
.content.list .item-box .loupe{
    position:absolute;
    width: 30%;
    top:0;
    right:0;
}

.content.room .item-box p{
    text-align: center;
    font-size: 0.8rem;
}
.content.list div img.img-adder,
.content.room div img{
    width:98%;
    border: 2px solid #ccc;
}

.content.price{
    background: #ddd;
    text-align: right;
    padding:10px;
    font-weight: bold;
}

.content.buttons{
    text-align: center;
    margin-top: 6px;
}

.content.buttons button{
    background: #000;
    color: #fff;
    font-weight:bold;
    border: none;
    border-radius: 15px;
    padding: 5px 10px;
}

.gray-down-layer{
    background: rgba(0,0,0,0.7);
    position: relative;
    z-index:500;
}

.selected{
    border: 2px solid red !important;
}
.flex{
    display: flex;
}
.flex.space-between{
    justify-content: space-between;
}
.flex.space-start{
    justify-content: start;
}

.louped-image-box{
    z-index: 30000;
}

.louped-image-box .img-controller{
    text-align: center;
}

.louped-image-box .img-controller button{
    border-radius: 15px;
    padding: 4px 40px;
    margin: 6px;
    border-style: none;
	background: #fff;
}

.louped-image-box img{
    object-fit: contain;
    background: #fff;
}
.modal-background,
.loader-background {
    background: rgba(0,0,0,0.7);
    position: fixed;
    z-index: 20000;
    display: none;
    top:0;
    left:0;
}
.loader-background {
    z-index: 9999998;
}

.loader {
    display: none;
    z-index: 9999999;
    color: #ddd;
    font-size: 20px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    animation: load4 1.3s infinite linear;
    transform: translateZ(0);
}
@keyframes load4 {
    0%,
    100%  { box-shadow: 0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0; }
    12.5% { box-shadow: 0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em; }
    25%   { box-shadow: 0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em; }
    37.5% { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em; }
    50%   { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em; }
    62.5% { box-shadow: 0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em; }
    75%   { box-shadow: 0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0;}
    87.5% { box-shadow: 0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em; }
}

.disabled-size-change {
    opacity:0;
    cursor: default;
}
.disabled-size-change button{
    pointer-events: none;
}