﻿[v-cloak] {
    display: none;
}

body {
    min-width: 0px !important;
    overflow-x: hidden;
    user-select: none;
}

.main-container {
    padding-right: 15px;
    padding-left: 15px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

@media screen and (min-width: 768px) { /* 768pxから適用されるという意味 */
    .main-container {
        width: 768px;
    }
}

@media screen and (min-width: 1000px) { /* 1020pxから適用されるという意味 */
    .main-container {
        width: 1000px;
    }
}

.panel-body {
    padding: 5px;
}

.step {
    color: #00abe3;
    font-weight: bold;
}

.step-number {
    font-size: 30px;
    margin-right: 30px;
}

.step-border {
    border-bottom: dashed 3px #00abe3;
    margin-bottom: 1.5em;
    line-height: 2em;
}

.photobook-cover {
    display: flex;
    flex-direction: column;
}

@@media screen and (min-width: 768px) {
    .photobook-cover {
        flex-direction: row;
    }
}

.photobook-cover > div {
    /*padding: 10px;*/
    padding-right: 10px;
}

.photobook-cover-img {
    border: 5px solid transparent;
    min-width: 100px;
}

    .photobook-cover-img:hover {
        border: 5px solid #00abe3;
        opacity: 0.5;
    }

.photobook-size {
    width: 150px;
    margin-bottom: 2em;
}

    .photobook-size > div {
        position: relative;
    }

.photobook-size-control {
    display: flex;
    justify-content: space-between;
    padding-top: 5px;
    padding-bottom: 5px;
}

    .photobook-size-control > button {
        height: 30px;
    }

.photobook-size-border {
    border-bottom: 1px solid #00abe3;
    margin-bottom: 10px;
}

.photobook-size label {
    border: 5px solid transparent;
    margin-bottom: 0px;
}

.photobook-size-name {
    margin-top: 0px;
    background-color: #999999;
    font-size: 13px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    color: white;
}

.photobook-size-img {
    width: 150px;
    height: 150px;
}

@media screen and (min-width: 1000px) { /* 1000pxから適用されるという意味 */
    .photobook-size {
        width: 210px;
    }

    .photobook-size-img {
        width: 210px;
        height: 210px;
    }
}

.photobook-size-img-enable:hover {
    opacity: 0.5;
    border: 5px solid #00abe3;
}

.photobook-selected {
    border: 5px solid #00abe3 !important;
}

.osusume01 {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
}

.photobook-detail-item {
    border-top: solid 1px black;
    padding-top: 5px;
    padding-bottom: 5px;
}

.photobook-detail-item-header {
    text-align: left;
    width: 150px;
}

.img-select-thumb {
    min-height: 100px;
    cursor: grab;
    margin-bottom: 10px;
}

.photobook {
    display: flex;
    justify-content: left;
    align-items: center;
}

.pbcontent-wrapper {
    /* scaleの基点を上部中央に */
    /*
        transform-origin: top left;
        */
    /*position: relative;
        overflow: hidden;*/
}

#pbcontent {
    transform-origin: top;
}

.photobookPage {
    box-shadow: 2px 2px 3px 0px grey;
}

.control {
    margin-top: 1em;
}

ul.control {
    list-style: none;
}

@media screen and (max-width:767px) {
    ul.control {
        display: flex;
    }
}

.control-btn {
    min-width: 60px;
}

.scroll-list {
    overflow-x: scroll;
    white-space: nowrap;
    width: 100%;
}

.select-page-list {
    background: lightgrey;
}

.select-page-wrapper {
    display: inline-block;
    font-size: small;
}

.select-page {
    cursor: pointer;
    height: 40px;
}

.select-page-left {
    margin-left: 1em;
}

.select-page-current {
    opacity: 0.6;
}

.layout-list {
    max-width: 800px;
    margin-top: 1em;
}

.layout {
    background-color: black;
    height: 60px;
    cursor: pointer;
    margin-left: 3px;
    margin-right: 3px;
    border: black 1px solid;
}

/*
.layout-select {
    border: red 2px solid;
}
*/

.group-item {
    display: inline-block;
}

.resource-img {
    width: 60px;
    height: 60px;
    cursor: pointer;
    margin-left: 3px;
    margin-right: 3px;
    border: black 1px solid;
}

header {
    display: none;
}


.preview-active {
    opacity: 1;
}

.preview-unactive {
    opacity: 0.5;
}

#preview {
    overflow-x: hidden;
    text-align: center;
    width: 100%;
    height: 100%;
    position: relative;
    margin-top: 20px;
    /*transform: scale(0.9);*/
}

.preview-wrap {
    margin: 1em 0;
    padding: 0;
    width: 100%;
    position: relative;
}

.preview-loading {
    position: absolute;
    /*width: 100%;*/
    top: 50%;
}

#previewimage {
    -ms-transition: margin-left .25s linear;
    -moz-transition: margin-left .25s linear;
    -webkit-transition: margin-left .25s linear;
    -o-transition: margin-left .25s linear;
    transition: margin-left .25s linear;
    min-height: 100px;
}

.preview-wrap-center {
    padding: 0;
    width: 86%;
    text-align: center !important;
    margin: 0;
    position: relative;
    left: 7%;
    white-space: nowrap;
}

    .preview-wrap-center img {
        text-align: center;
        vertical-align: top;
        /*padding-right: 4.65%;*/
        width: 100%;
    }

.preview-img-wrap {
    padding-right: 4.65%;
}

.preview-img-border {
    border: solid 1px gray;
}

#previewnext, #previewprev {
    width: 50%;
    height: 100%;
    margin: 0;
    padding: 0;
}

    #previewnext > div, #previewprev > div {
        top: 50%;
        margin-top: -10%;
        margin-left: 1%;
        position: relative;
    }

        #previewnext > div a {
            right: 1%;
        }

        #previewnext > div a, #previewprev > div a {
            width: 12%;
            padding-top: 6%;
            padding-bottom: 6%;
            position: absolute;
        }

.preview-wrap-left {
    margin: 26.5% 1% 0.1%;
    padding: 0;
    width: 5%;
    position: absolute;
    top: 0px;
}

.preview-wrap-left {
    width: 40%;
}

    .preview-wrap-left img {
        width: 40%;
    }

    .preview-wrap-left a {
        margin: 0;
        padding: 50% 0;
        display: block;
        background-color: rgba(255,255,255,0.5);
        width: 100%;
        /* Firefox v1.0+ */
        -moz-border-radius: 10px;
        /* Safari v3.0+ and by Chrome v0.2+ */
        -webkit-border-radius: 10px;
        /* Firefox v4.0+ , Safari v5.0+ , Chrome v4.0+ , Opera v10.5+  and by IE v9.0+ */
        border-radius: 10px;
        /* Firefox v3.5+ */
        -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
        /* Safari v3.0+ and by Chrome v0.2+ */
        -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
        /* Firefox v4.0+ , Safari v5.1+ , Chrome v10.0+, IE v10+ and by Opera v10.5+ */
        box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
        -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true)";
        filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true);
    }

        .preview-wrap-left a:hover {
            margin: 0;
            padding: 50% 0;
            display: block;
            opacity: 0.6;
            filter: alpha(opacity=60);
            width: 100%;
            /* Firefox v1.0+ */
            -moz-border-radius: 10px;
            /* Safari v3.0+ and by Chrome v0.2+ */
            -webkit-border-radius: 10px;
            /* Firefox v4.0+ , Safari v5.0+ , Chrome v4.0+ , Opera v10.5+  and by IE v9.0+ */
            border-radius: 10px;
            /* Firefox v3.5+ */
            -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
            /* Safari v3.0+ and by Chrome v0.2+ */
            -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
            /* Firefox v4.0+ , Safari v5.1+ , Chrome v10.0+, IE v10+ and by Opera v10.5+ */
            box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
            -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true)";
            filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true);
        }

        .preview-wrap-left a img, edit-wrap-left a img {
            background-image: url("../../Content/images/arrow_pre_l.png");
            background-repeat: no-repeat;
            -moz-background-size: contain;
            -webkig-background-size: contain;
            -o-background-size: contain;
            background-size: contain;
            background-position: center center;
        }

.preview-wrap-right {
    margin: 26.5% 1% 0.1%;
    padding: 0;
    width: 5%;
    position: absolute;
    right: 0px;
    top: 0px;
}

    .preview-wrap-right img {
        width: 40%;
    }

    .preview-wrap-right a {
        margin: 0;
        padding: 50% 0;
        display: block;
        background-color: rgba(255,255,255,0.5);
        width: 100%;
        /* Firefox v1.0+ */
        -moz-border-radius: 10px;
        /* Safari v3.0+ and by Chrome v0.2+ */
        -webkit-border-radius: 10px;
        /* Firefox v4.0+ , Safari v5.0+ , Chrome v4.0+ , Opera v10.5+  and by IE v9.0+ */
        border-radius: 10px;
        /* Firefox v3.5+ */
        -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
        /* Safari v3.0+ and by Chrome v0.2+ */
        -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
        /* Firefox v4.0+ , Safari v5.1+ , Chrome v10.0+, IE v10+ and by Opera v10.5+ */
        box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
        -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true)";
        filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true);
    }

        .preview-wrap-right a:hover {
            margin: 0;
            padding: 50% 0;
            display: block;
            opacity: 0.6;
            filter: alpha(opacity=60);
            width: 100%;
            /* Firefox v1.0+ */
            -moz-border-radius: 10px;
            /* Safari v3.0+ and by Chrome v0.2+ */
            -webkit-border-radius: 10px;
            /* Firefox v4.0+ , Safari v5.0+ , Chrome v4.0+ , Opera v10.5+  and by IE v9.0+ */
            border-radius: 10px;
            /* Firefox v3.5+ */
            -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
            /* Safari v3.0+ and by Chrome v0.2+ */
            -webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
            /* Firefox v4.0+ , Safari v5.1+ , Chrome v10.0+, IE v10+ and by Opera v10.5+ */
            box-shadow: 0px 0px 5px rgba(0,0,0,0.65);
            -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true)";
            filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=0,Color=#a6000000,Positive=true);
        }

        .preview-wrap-right a img, edit-wrap-right a img {
            background-image: url("../../Content/images/arrow_pre_r.png");
            background-repeat: no-repeat;
            -moz-background-size: contain;
            -webkig-background-size: contain;
            -o-background-size: contain;
            background-size: contain;
            background-position: center center;
        }

.bunko-box-center {
    margin: 0;
    padding: 1em 0px;
    width: 100%;
    text-align: center;
    overflow: hidden;
}

#bookwrap {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* bootstrapのCSSを打ち消すため（boostrapが border-box にしているが、それだとプレビューの移動量がずれてうまくいかない） */
* {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}
/* グリッドを使いたい部分は border-box */
#select * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#background-img {
    background-image: url("../../Content/images/photobook/background.jpg");
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    opacity: 0.6;
    position: fixed;
    background-repeat: repeat-y;
    background-size: 100% auto;
    padding: 0px;
    magin: 0px;
    z-index: 0;
}

.outside {
    position: absolute;
    left: -2000px;
}

.footer {
    margin-top: 2em;
    margin-bottom: 2em;
}

.photobook-thumb {
    width: 250px;
    margin: 3px;
    cursor: pointer;
}

.color-range {
    max-width: 400px;
    margin-top: 1em;
    margin-bottom: 1em;
}

.drop-upload-box {
    border: dashed 2px rgba(0,0,0,0.65);
    width: 100%;
    min-height: 150px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    background-color: #cccccc;
    z-index: 999;
}

.img-list {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    /*justify-content: center;*/
    /*width: 500px;*/
    margin-top: 1.5em;
    margin-left: auto;
    margin-right: auto;
    padding-inline-start: 0px !important;
    list-style-type: none;
}
/* 1000pxから適用されるという意味 */
/*@@media screen and (min-width: 1000px) {
        .img-list {
            width: 1000px;
        }
    }*/

.img-item {
    position: relative;
    width: 324px;
    height: 462px;
    box-shadow: 2px 2px 3px 2px grey;
    margin-left: 8px;
    margin-top: 40px;
    cursor: grab;
    background-color: white;
    padding: 15px;
    box-sizing: border-box;
}

.img-item-inner {
    height: 340px;
    margin-top: 10px;
}

.img-unuse {
    opacity: 0.3;
}

.item-title {
    position: absolute;
    width: 200px;
    height: 45px;
    top: -2em;
    left: 18%;
    /*background-color: black;*/
    background-image: url('../../Content/images/photobook/maskingtape03.png');
    padding-top: 1em;
    color: black;
}

.page-title {
    font-size: 20px;
}

.resolution-info {
    width: 100%;
    height: 80px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    color: white;
    background-color: #808080;
}

.resolution-warning {
    background-color: red !important;
}

.disable-box {
    opacity: 0.4;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/*.size-spec > div {
        padding-right: 1em;
    }*/

.modal-open {
    padding-right: 0px !important;
}

#size-spec-modal {
    padding-right: 0px !important;
}

.size-spec-column {
    margin-left: auto;
    margin-right: auto;
}

    .size-spec-column > div {
        cursor: pointer;
        padding-bottom: 0.5em;
    }

.size-spec-main {
    max-width: 450px;
}

.size-spec-thumb {
    cursor: pointer;
    width: 85px;
    border: 5px solid transparent;
}


.thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
}

.select-page-current {
    background: white;
}

.layout-list {
    color: white;
}

.modal-open {
    overflow: scroll;
}

#bookwrap {
    max-width: 1232px;
}

.photobook-list {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    justify-content: center;
    padding: 1em;
}

.photobook-thumb img {
    object-fit: contain;
    width: 168px;
    height: 168px;
    background-image: url("../images/photobook/item-loading2.gif");
    background-repeat: no-repeat;
    background-position: center center;
}

.item-loading {
    min-width: 60px;
    min-height: 60px;
    background-image: url("../images/photobook/item-loading.gif");
    background-repeat: no-repeat;
    background-position: center center;
}

image {
    image-orientation: none;
}

.save-message {
    color: white;
}

#oshirase-bootstrap .code {
    width: 95%;
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

    #oshirase-bootstrap .code .progress {
        display: none;
    }

#oshirase-bootstrap.js-progress1 .code .progress:nth-of-type(1), #oshirase-bootstrap.js-progress2 .code .progress:nth-of-type(-n+2) {
    display: block;
}

#oshirase-bootstrap.js-progress1 .code .progress:nth-of-type(1), #oshirase-bootstrap.js-progress2 .code .progress:nth-of-type(1) {
    /*    margin-top: 0.5em;*/
}

#oshirase-bootstrap.js-progress1 .code .progress:nth-of-type(1), #oshirase-bootstrap.js-progress2 .code .progress:nth-of-type(-n+2) {
    height: 1em;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.page-alert {
    position: absolute;
    left: 8px;
    top: 8px;
    animation: blink 0.5s ease-in-out infinite alternate;
    pointer-events: none;
    display: inline-block;
    background: red;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: #fff;
    font-size: 8px;
    text-align: center;
    line-height: 30px;
    transform: rotate(10deg);
}

.group-select-background {
    background-color: gray;
}

.flip-horizontal {
    transform-origin: center;
    transform: scale(-1, 1);
}

dialog {
    max-width: 600px; /* モーダル幅相当 */
    width: 90vw;
    border: 0; /* デフォルト枠線を消す */
    border-radius: .5rem; /* 角丸 */
}

    dialog::backdrop {
        background: rgba(0,0,0,.5); /* 黒半透明のオーバーレイ */
    }

@media (min-width: 992px) { /* lg 相当で中央寄せ */
    dialog {
        margin: auto;
    }
}

.wrapper {
    display: none;
}
