/**
* スクロールバーを非表示
* Chrome => -webkit-scrollbar
* IE/ME => -ms-overflow-style
* Firefox => scrollbar-width
*/

.u-scrollbar__none::-webkit-scrollbar {
    display: none;
}

.u-scrollbar__none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/*********************************/



.u-unpurchased__product__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}
    
.u-unpurchased__product__grid--button01 { 
    grid-area: 1 / 1 / 2 / 2;
    padding: .75rem 0;
}

.u-unpurchased__product__grid--button02 {
    grid-area: 1 / 2 / 2 / 3;
    padding: .75rem 0;
}

.u-unpurchased__product__grid--button03 {
    grid-area: 2 / 1 / 3 / 3;
    padding: .75rem 0;
}

/* 編集画面
*  回転、移動
*/
.u-edit__rotation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.u-edit__rotation03 {
    grid-area: 2 / 1 / 3 / 3;
}

.u-edit__move {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 15px;
    grid-row-gap: 15px;
}

.u-edit__move__text {
    grid-area: 2 / 2 / 2 / 4;
}

.u-preview__icon__shadow  {
    box-shadow: 0px 0px 20px -6px rgba(0,0,0,0.6);
    border-radius: 100%;
}

/**追加された画像をタップした時にopacityをつける**/
.u-added__image__opacity.is-active {
    opacity: 0.8;
}

.u-added__image__border.is-active {
    border: 3px solid #FFA200;
}


.u-triangle__arrow::before {
    content: '';
    width: 20px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: #00C2FF;
}

.u-triangle__arrow::after { /* 三角形の表示設定 */
    content: "";
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 7px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #FFF;
    z-index: 1;
}

/*** 差出人登録・一覧の右からのスライドイン ***/
.u-sender__edit__items {
    position: relative;
    right: 0;
    width: 100%;
    margin-right: -42rem;
    background: #FFF;
    transition: all 0.3s;
}

.u-sender__edit__items.is-active {
    margin-right: 0;
}

/*** 3カラムあり ***/
.u-sender__edit__items--open__col3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
    height: 100%;
}
.u-sender__edit__items--open__col2 {
    display: none;
}

.u-sender__edit__items--open__col2.is-active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: center;
    height: 100%;
}

/*** トップ / 詳細、編集、複製 / 宛名の確認での横スライド ***/
.u-top__addressee__slide__box {
    width: 100%;
    transition: all .3s;
}

.u-top__addressee__slide__box.is-active {
    margin-left: -50px;
}


/*** 編集画面 / プレビュー / 拡大縮小ボタン ***/
.u-scaling__box {
    box-shadow: 0px 0px 20px -6px rgb(0 0 0 / 60%);
}

.u-scaling__button {
    position: relative;
}

.u-scaling__button::before {
    content: '';
    position: absolute;
    width: 34px;
    height: 1px;
    display: inline-block;
    background-color: #AAAAAA;
    bottom: 40px;
    left: calc(50% - 17px);
}

/*** トリミングの四角or円を選択した時の背景色 ***/
.u-triming__select__color.is-active {
    background-color: #FFEDCC;
}



/*** 文字サイズ変更時 ***/
.u-change__font__size {
    position: relative;
}

.u-change__font__size::before {
    content:"";
    position:absolute;
    display:inline-block;
    width: 1px;
    height: 100%;
    background-color: #CCCCCC;
    top: 0;
    left: -10px;
}

.u-change__font__size::after {
    content:"";
    position:absolute;
    display:inline-block;
    width: 1px;
    height: 100%;
    background-color: #CCCCCC;
    top: 0;
    right: -10px;
}

.u-change__font__size--leftIcon {
    position: relative;
}

.u-change__font__size--leftIcon::after {
    content: "";
    position: absolute;
    top: calc(50% - 5px);
    left: 0;
    border-style: solid;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid #555555;
}

.u-font__style__list {
    color: #CCCCCC;
}

.u-font__style__list.is-active {
    color: #333333;
}

/*******top**********/
.u-top__rightArrow {
    position: relative;
}
.u-top__rightArrow::after {
    content: '';
    position: absolute;
    top: calc(50% - 5px);
    width: 0;
    height: 0;
    margin-left: 1rem;
    border-style: solid;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid #FFF;
}

.u-top__edit__items {
    position: absolute;
    right: 0;
    width: 100%;
    background: #FFF;
    transition: all 0.2s;
}

.u-top__edit__items.is-active {
    position: relative;
    width: 100%;
}

.u-top__edit__items--open {
    display: none;
}

.u-top__edit__items--open.is-active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    text-align: center;
    height: 100%;
}

.u-top__list__items {
    width: 100%;
    transition: all .2s;
}

.u-top__list__items.is-active {
    margin-left: -100px;
}

.u-top__addressee__select--fixed {
    position: fixed;
    display: none;
    top: 10%;
    z-index: 10;
}

.u-top__addresseeAddBox__fixed {
    position: fixed;
    /* display: none; */
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

@media screen and (min-width: 640px) {
    .u-top__addresseeAddBox__fixed {
        position: absolute;
        width: 42rem;
        height: 42rem;
        top: 50%;
        left: 50%;
        padding: 0 2rem;
        margin: 2rem 0;
        background-color: #FFF;
        transition: 0s;
        transform: translateX(-50%) translateY(-50%);
    }
}

.u-top__addresseeAdd__preview__overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    background-color: #AAAAAA;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.5;
}

/*** 購入する => デザインを購入ボタンを選択した後に、opacityで隠れている要素を0.5秒表示 ***/
.u-edit__buyDesign__button--opacity {
    z-index: -1;
}

.u-edit__buyDesign__button--opacity.is-active {
    opacity: 1;
    z-index: 1;
    transition: all .5s  ease-out;
}

.u-edit__buyDesign__orderNumber--opacity {
    z-index: -1;
}

.u-edit__buyDesign__orderNumber--opacity.is-active {
    opacity: 1;
    z-index: 1;
    transition: all .5s  ease-out;
}

.u-edit__buyDesign__addProduct--opacity {
    z-index: -1;
}

.u-edit__buyDesign__addProduct--opacity.is-active {
    opacity: 1;
    z-index: 1;
    transition: all .5s  ease-out;
}


/*** 差出人追加、外字のトグル ***/
.u-sender__attention__text {
    /* display: none;*/
}

/*** 編集画面 / スタイルのタブ切り替え ***/


@media screen and (min-width: 640px) {
    .u-edit__move {
        display: block;
    }

    .u-edit__rotation {
        display: block;
    }
}

@media screen and (min-width: 640px) {
    .u-unpurchased__product__grid {
        display: grid;
        grid-template-columns: 1fr 1fr 2fr;
        grid-template-rows: repeat(1, 1fr);
        grid-column-gap: 15px;
        grid-row-gap: 15px;
    }

    .u-unpurchased__product__grid--button01 { 
        grid-area: 1 / 1;
    }

    .u-unpurchased__product__grid--button02 {
        grid-area: 1 / 2;
    }

    .u-unpurchased__product__grid--button03 {
        grid-area: 1 / 3;
    }
}

@media screen and (min-width: 640px) {
    .u-header__shadow {
        box-shadow: 0px 1px 12px -9px rgba(0,0,0,0.6);
    }

    .p-footer__arrow__background::before {
        display: none;
    }
    
    .p-footer__arrow__background::after {
        display: none;
    }
    
    .p-footer__arrow::before {
        display: none;
    }
    
    .p-footer__arrow::after {
        display: none;
    }
}

/**** 住所検索のモーダル *****/
.u-address__search__overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    background-color: #000;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 2;
}

.u-address__search__overlay--box {
    display: none;
    position: fixed;
    width: 100%;
    height: auto;
    overflow-y: scroll;
    top: 50%;
    left: 50%;
    z-index: 15;
    transform: translateX(-50%) translateY(-50%);
}

/** はがき台紙の選択 / 注意書き **/
.u-paperSelect__attention {
    font-size: clamp(11px, 3vw, 16px);
}