.p-edit__tab {
  display: none;
}
 
.p-edit__tab.is-active {
  display: block;
}

/******* 編集画面 / 画像配置 / 画像を選択した時にモーダルオープン ********/
.p-edit__material__items--modal.is-image-modal::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    border: 3px solid #FFA200;
    z-index: 2;
}

.p-edit__material__items--shadow {
    transition: all .25s ease-in-out;
}

.p-edit__material__items--shadow:hover {
    box-shadow: 0 0 4px 1px rgb(0 0 0 / 30%);
}

/****************************************************
カラー変更 / デザインを選択時にチェックアイコン切り替え
****************************************************/
.p-edit__color__check {
    position: relative;
    border: 1px solid #CCC;
}

.p-edit__color__check.active {
    border: none;
}

.p-edit__color__check.active::before {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    background-position: center;
    background-image: url(/images/icon/edit/color-design-check-icon.svg);
    background-repeat: no-repeat;
    border: 6px solid #FFA200;
    z-index: 2;
}

.p-edit__color__check.is-paper-select.active::before {
    top: 0;
    left: 13%;
    width: 75%;
}

@media screen and (min-width: 640px) {
    .p-edit__color__check.is-paper-select.active::before {
        top: 0;
        left: 30%;
        width: 40%;
    }
}
/************************
SP_フッターからのスライド
*************************/
.p-edit__slide--half {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.2s ease-in;
    background-color: #FFF;
    z-index: 2;
}

.p-edit__slide--half.is-active {
    top: 40%;
}

.p-edit__slide--full {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.2s ease-in;
    background-color: #FFF;
    z-index: 4;
}

.p-edit__slide--full.is-active {
    top: 0;
}

.p-edit__slide--quarter {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 0.2s ease-in;
    background-color: #FFF;
    z-index: 2;
}

.p-edit__slide--quarter.is-active {
    top: 70%;
}

.p-edit__stamp__check {
    position: relative;
}

.p-edit__stamp__check.active::before {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-size: 20% 30%;
    background-image: url(/images/icon/edit/color-design-check-icon.svg);
    background-repeat: no-repeat;
    background-position: 5px 5px;
}

/* 登録した写真 / 素材集 */
/* .p-edit__material {
    padding: .2rem;
} */

.p-edit__material__items {
    width: 100%;
    display: inline-block;
    position: relative;
    margin: 0 1%;
}

.p-edit__material__items.is-material {
    width: 100%;
}
.p-edit__material__items.is-stamp {
    width: 100%;
}

@media screen and (min-width: 640px) {
    .p-edit__material__items {
        width: 100%;
        margin: 0;
    }
    .p-edit__material__items.is-material {
        width: 100%;
    }
}
 
.p-edit__material__items::before {
    content: "";
    display: block;
    padding-top: 100%;
}
 
.p-edit__material img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    object-fit: cover;
}

/* 差出人追加_文字の配置を変更ボタン */
.p-edit__placement--button {
    font-weight: bold;
    font-size: 0.875rem;
    padding: .5rem .75rem;
    border: 1px solid rgb(204 204 204);
    border-radius: .5rem;
}

.p-edit__placement--button.is-active {
    background-color: #FFA200;
    color: #FFF;
    border: 1px solid #FFA200;
}

/* 文字スタイル /　文字サイズ */
.p-edit__text__size__math {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 2rem;
    padding: .5rem 1.5rem;
    border-top: 1px solid #CCC;
    border-bottom: 1px solid #CCC;
}

.p-edit__textAlign__wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    column-gap: 1.5rem;
}

.p-edit__textKind__wrap {
    white-space: nowrap;
    overflow-x: auto;
    padding: 0 1rem;
}

@media screen and (min-width: 640px) {
    .p-edit__textAlign__wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 1rem;
        column-gap: 0;
    }
    

    .p-edit__textKind__wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 1rem;
        white-space: normal;
        padding: 0;
    }
}

.p-edit__rightArrow {
    position: relative;
}

.p-edit__rightArrow::after {
    content: '';
    position: absolute;
    top: 11px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #111;
    right: 10px;
}


/* 画面を拡大・縮小を制御するスライドバー */
.p-edit__scalebar {
    position: relative;
    /* z-index: 2; */
}

.p-edit__scalebar__slider {
    width: 3.3rem;
    padding: 1rem 0;
}

.p-edit__scalebar__sliderValue {
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    color: #00C2FF;
    text-align: center;
}

.p-edit__scalebar__hitArea {
    height: 8rem;
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-edit__scalebar__container {
    width: 0;
    height: 100%;
    position: relative;
}

.p-edit__scalebar__container::before {
    content: '';
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 130px solid #ccc;
    position: absolute;
    left: -9px;
}

.p-edit__scalebar__filled {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.p-edit__scalebar__handle {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 100%;
    background-color: #00C2FF;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 50%);
}

/* 一時保存ボタンを押した時に使用 */
.p-edit__temporarySaveComplete {
    display: none;
}
.p-edit__temporarySaveComplete.is-active {
    display: block;
}

.p-edit__svgDesign__item {
    box-shadow: 0 0 4px 0 rgb(0 0 0 / 30%);
}

/* スタンプ */
.p-edit__stamp__repeatGridImage {
    background-image: url(/images/stamp/stamp_repeat-grid.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.p-edit__sideMenu {
    height: calc(100% - 150px);
}

.p-edit__sideMenu--textArea {
    height: calc(100% - 435px);
}

/**
* レスポンシブ
* フッターのアイコンを押した時に発火
* 画面半分、画面前面と2パターン
*/
@media screen and (min-width: 640px) {
    .p-edit__slide--half {
        display: none;
        position: relative;
        top: 0;
        z-index: 0;
    }
    
    .p-edit__slide--half.is-active {
        display: block;
        top: 0;
    }

    .p-edit__slide--full {
        display: none;
        position: relative;
        top: 0;
        z-index: 0;
    }

    .p-edit__slide--full.is-active {
        display: block;
        top: 0;
    }

    /* .p-edit__slide--full.is-purchase {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100%;
        transition: 0.2s ease-in;
        background-color: #FFF;
        z-index: 2;
    } */

    
    .p-edit__slide--full.is-purchase.is-active {
        position: fixed;
        display: block;
        top: 50%;
        left: 50%;
        width: 100%;
        max-width: 42rem;
        height: 88%;
        transform: translate(-50%, -50%);
        background-color: #FFF;
        z-index: 4;
    }

    .p-edit__slide--quarter {
        display: none;
        position: relative;
        top: 0;
        z-index: 0;
    }

    .p-edit__slide--quarter.is-active {
        display: block;
        top: 0;
    }
    
    .p-edit__style--border {
        border-bottom: 1px solid #dee2e6;
    }

    .p-edit__sideMenu {
        height: calc(100% - 112px);
    }

    .p-edit__sideMenu--textArea {
        height: calc(100% - 418px);
    }
}
