/* フォトフレーム管理用CSS */
/* カメラボタン、写真、シェアボタンなど全フォトフレーム共通で使うものを記載 */

html {
    touch-action: manipulation;
    touch-action: pan-y;
    font-family: 'M PLUS Rounded 1c', "Hannari", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    touch-action: manipulation;
    touch-action: pan-y;
    font-family: 'M PLUS Rounded 1c', "Hannari", sans-serif;
}

/* 親要素CSS */
.photoframe {
    display: none;
}

.no-tap {
    pointer-events: none !important;
}

.no-longtap {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-touch-callout: none;
    -moz-user-select: none;
    user-select: none;
}

.photoframeVisible {
    visibility: visible !important;
}

.photoframe_collapse {
    visibility: collapse !important;
}

.recordDisplaynone {
    display: none !important;
}

/* オーバーレイ 2000～3000 */
.overlay_preview {
    visibility: collapse;
    display: block;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    background-color: #CFF998;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1499;
}

.overlay_flash {
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffffe1;
    z-index: 2000;
}

.overlay_videocreate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff88;
    z-index: 2100;
    display: none;
}

.overlay_videocreate img {
    position: absolute;
    width: 30%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2101;
}

.overlay_landscape {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    background-color: #FFFFFF;
    z-index: 2200;
    display: none;
}

.overlay_landscape_wrap {
    position: absolute;
    display: flex;
    flex-flow: column;
    width: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.overlay_landscape_wrap img {
    position: relative;
    width: 50%;
    left: 25%;
}

.overlay_landscape_wrap p {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #2D2C5C;
    font-style: normal;
    margin-bottom: 0;
}

.toge_top {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: auto;
}

.toge_bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 100vw;
    height: auto;
}

.overlay_cameranone {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 2199;
    display: none;
}

.overlay_cameranone_wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
}

.error_camera {
    width: 10.769vw;
}

.error_text {
    font-size: 4.615vw;
    white-space: nowrap;
    color: #2D2C5C;
    margin-top: 4.102vw;
    line-height: 8.5vw;
    font-weight: 800;
}

.error_button {
    position: relative;
    width: 70vw;
    left: 50%;
    transform: translateX(-50%);
    height: 10.256vw;
    margin-top: 7.692vw;
    margin-bottom: 2.564vw;
}

.error_text_s {
    font-size: 3.333vw;
    white-space: nowrap;
    color: #2D2C5C;
    line-height: 5vw;
    font-weight: 700;
}

.toge_top2 {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 245vw;
    height: auto;
}

.toge_bottom2 {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 245vw;
    height: auto;
}

.reload_button{
    position: fixed;
    bottom: 15vw;
    width: 60vw;
    left: 20vw;
}

/* 画像移動機能用CSS */

.drag-and-drop {
    cursor: move;
    z-index: 1;
}

.drag {
    z-index: 2;
}

.pinch {
    z-index: 2;
}

/* 撮影ボタン */
.cameraIcon {
    z-index: 3;
    position: absolute;
    width: 100%;
    height: 100%;
}

.switchCameraIcon {
    z-index: 3;
    position: absolute;
    width: 100%;
    height: 100%;
}

.outerCircle {
    z-index: 2;
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: conic-gradient(#ff6600 0% 0%, #d9d9d900 0% 100%);
}

.innerCircle {
    z-index: 1;
    position: absolute;
    text-align: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ffffff;
}

.outerCircle,
.inner {
    transition: transform 1s ease;
    transform: scale(0.5);
}

.outerCircle.expand,
.inner.expand {
    transform: scale(1.2);
}

/* プレビュー画像 */
.downloadPrompt {
    width: 100%;
    position: absolute;
    visibility: collapse;
    left: 0;
    background-color: #FFF;
    font-weight: bolder;
    pointer-events: none;
    top: -14%;
}

/* シェア、削除ボタン */
.deletePhotoBtn {
    z-index: 100;
    height: 100%;
    width: auto;
    position: relative;
}

#sharePhotoBtn {
    z-index: 100;
    height: 100%;
    width: auto;
    position: relative;
}

/* UI 1500～1999 */
@media (orientation: portrait) {

    /* 縦向き */
    .cameraContainer {
        justify-content: center;
        align-items: center;
        width: 100vw;
        height: auto;
    }

    .cameraVideo {
        width: 100%;
        height: auto;
        overflow: hidden;
        z-index: 45;
    }

    .takePhotoBtn {
        z-index: 1500;
        position: fixed;
        width: 30vw;
        height: 30vw;
        bottom: 5vw;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .switchCameraBtn {
        z-index: 1600;
        position: fixed;
        width: 15vw;
        height: 15vw;
        top: 4vw;
        right: 4vw;
    }

    .previewContainer {
        z-index: 1900;
        position: fixed;
        width: 70vw;
        height: auto;
        bottom: 30vw;
        margin: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .preview {
        width: 100%;
        height: auto;
        visibility: collapse;
        /* ボーダーが必要な場合 */
        border: 3px solid #ffffff;
        margin: -3px;
    }

    .actionContainer {
        z-index: 1901;
        position: fixed;
        display: flex;
        justify-content: space-evenly;
        visibility: collapse;
        width: 60vw;
        height: 20vw;
        bottom: 5vw;
        left: 20vw;
    }
}