

ul.caution {
    text-align: left;
    font-size: 12px;
    line-height: 1.25;
    padding-left: 1em;
}

ul.caution li {
    margin: 0.5em;
    color: #882e2e;
}

.custom-upload {
    display: inline-block;
    background-color: #3b5b59;
    color: #fff;
    padding: .25em 1em;
    border-radius: 4px;
    cursor: pointer;
    font-size:16px;
}

.custom-upload input[type="file"] {
    display: none;
}

.custom-button {
    background-color: #3b5b59;
    color: #fff;
    padding: .25em 1.3em;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 500;
}

.custom-button-secondary {
    background-color: #fff;
    color: black;
    padding: .25em 1.3em;
    border: 1px solid #3b5b59;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0;
}

#filename {
    margin-left: 10px;
    font-size: 1.4rem;
    color: #4c4c4c;
    font-weight: 500;
}
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    color: #fff;
}
#loading-overlay span.txt{
    margin-left: 200px;
    text-align: center;
    display: block;
}
#croppie-container {
    width: 100%;
    margin: 0 auto;
}

/* スライダーの共通スタイル */
.croppie-container .cr-slider {
    width: 100% !important;
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
}

/* スライダーのつまみ部分（PC・スマホ共通） */
.croppie-container .cr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b5b59;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    margin-top: -9px;  /* 縦位置の調整（バーの中央に配置） */
}

.croppie-container .cr-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b5b59;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    margin-top: -9px;  /* 縦位置の調整（バーの中央に配置） */
}
.croppie-container .cr-resizer,
.croppie-container .cr-viewport {
    border: 1px solid white;

}

.back-case-wrap{
    margin: 0 auto;
    width: 362px;
    position: relative;
}
#preview {
    max-width: 100%;
    background-color: transparent;
}
img.back-case-img{
    z-index: 15;
    position: relative;
}
img.back-case-img-circle-preview{
    border-radius: 50%;
    object-fit: cover;
    width: 200px;  /* VIEWPORT_SIZEと同じ値 */
    height: 200px; /* VIEWPORT_SIZEと同じ値 */
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

img.circle-preview {
    border-radius: 50%;
    object-fit: cover;
    width: 200px;  /* VIEWPORT_SIZEと同じ値 */
    height: 200px; /* VIEWPORT_SIZEと同じ値 */
}

.modal-photo {
    display: none;
    position: fixed;
    top: 0;
    left: 100px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;

}
.modal-content-wrap{
    position: relative;

    min-width: 340px;
    max-width: 600px;
    width: 70%;
}
.modal-content {
    background: #fff;
    box-sizing: border-box;

    text-align: center;
    position: relative;
    /*overflow: visible;*/
    overflow: hidden;
    transition: all 0.3s ease;
}


.heading-modal-content {
    font-size: 2rem;
    font-weight: bold;
    margin:0 auto  0.25em;
    color: #000;
}
.description-modal-content{
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1em;
    color: #000;
}
.description-modal-content .sp{
    display: none;
}

.preview-note .sp{
    display: none;
}

.close-btn {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 2em;
    height: 2em;
    background: rgba(0, 0, 0, 1);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    padding: 0;
    z-index: 999;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background-color: white;
    pointer-events: none;
}

.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.step-content{
    overflow-y: scroll;
}
.step-content-inner{

}
.step {
    position: absolute;
    padding: 20px;
    max-height: 80vh;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    overflow: scroll;
}

.step.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}
.cr-boundary {
    position: relative !important;
}

#trimming-size {
    display: none !important;
    position: absolute !important;
    bottom: 0  !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    margin: 0;
    z-index: 10 !important;
    color:#fff;
    background-color: black;
}
.output-size {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 1em;
}

/* Croppieの画像中央表示補正（表示崩れ防止） */
.cr-boundary {
    position: relative;
    overflow: hidden;
}

.cr-image {
    max-width: none !important;
    max-height: none !important;
}

/* Croppie　ビューポート：PCのみスタイル */
@media screen and (min-width: 751px) {
    .cr-boundary {
        width: 450px !important;    /* cr-viewport の1.5倍*/
        height: 450px !important;    /* cr-viewport の1.5倍*/
    }
    .croppie-container .cr-viewport:before{
        box-sizing: border-box;
        content:"";
        position:absolute;
        margin:0;
        border: 10px solid red;
        width: 100%;
        height: 100%;
        border-radius: 100%;
        opacity:.25;
        top:0;
        left:0;
        z-index: -1;
    }
    .cr-viewport {
        width: 300px !important;
        height: 300px !important;
    }
}

/* Croppie　ビューポート　スマホ（750px以下） */
@media screen and (max-width: 750px) {
    .cr-boundary {
        width: 300px !important;     /* cr-viewport の1.5倍*/
        height: 300px !important;   /* cr-viewport の1.5倍*/
    }
    .cr-viewport {
        width: 200px !important;
        height: 200px !important;
    }
    .croppie-container .cr-viewport:before{
        box-sizing: border-box;
        content:"";
        position:absolute;
        margin:0;
        border: 6.6px solid red;
        width: 100%;
        height: 100%;
        border-radius: 100%;
        opacity:.25;
        top:0;
        left:0;
        z-index: -1;
    }
}


@media (max-width: 750px) {
    #loading-overlay span.txt{
        margin-left: 0;
    }
    .container {
        width: 100%;
    }

    .modal-photo{
        left:0;
    }
    .modal-content-wrap{
        width: 90%;
    }
    .modal-content {

    }
    .step{
        max-height: 80vh;
    }
    .step-content{

    }
    .step-content-inner{

    }
    .description-modal-content .sp{
        display: block;
    }
    .preview-note .sp{
        display: block;
    }
    
    /* スライダーのつまみ部分 */
    .croppie-container .cr-slider::-webkit-slider-thumb {
        width: 30px;
        height: 30px;
        top: -4px;
    }

    .croppie-container .cr-slider::-moz-range-thumb {
        width: 30px;
        height: 30px;
        top: -4px;
    }

    .back-case-wrap{
        max-width: 362px;
        width: 100%;
    }
    img.back-case-img-circle-preview {
        width: calc(200 / 362 * 100%);  /* VIEWPORT_SIZEと同じ値 */
        height:  auto; /* VIEWPORT_SIZEと同じ値 */
    }

}

.preview-note{
    font-size: 11.96px;
    text-align: center;
    margin: 20px 0;
    font-weight: 500;
    color: #000;
}

.preview-btn{
    max-width: 210px;
    margin: 0 auto;
}

.preview-btn button{
    width: 100%;
    margin-bottom: 10px;
}
