/****** タブの切り替え *******/
.c-button__tab {
    border: 1px solid #FFA200;
    color: #333;
}
 
.c-button__tab.c-button__tab--left {
    border-radius: 8px 0 0  8px;
}
.c-button__tab.c-button__tab--left.is-active {
    background-color: #FFA200;
    color: #FFF;
    padding: .5rem 0;
}

.c-button__tab.c-button__tab--right {
    border-radius: 0 8px 8px 0;
}
.c-button__tab.c-button__tab--right.is-active {
    background-color: #FFA200;
    color: #FFF;
    padding: .5rem 0;
}

/************************
背景色をオレンジに変更
テキストをホワイトに変更
************************/
.c-button__switch__color {

}
.c-button__switch__color.active {
    color: #FFF;
    background-color: #FFA200;
    border: 1px solid #FFA200;
}

.c-button__switch__border {
    outline: 1px solid rgb(204 204 204);
}

.c-button__switch__border.active {
    color: #FFF;
    outline: 3px solid #FFA200;
}

/*********************************
編集画面 / スタイルを選択した時のタブ
**********************************/
.c-button__list__change {
    display: none;
}

.c-button__list__change.is-active {
    display: block;
}

/***************************
個人 / 法人の切り替えに使用
***************************/
.c-button__changeColor {
    font-weight: bold;
    background-color: #CCC;
}

.c-button__changeColor.is-active {
    color: #FFF;
    background-color: #FFA200;
}

/*** 宛名、差出人のスライド ***/
.c-button__open__slide {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.c-button__border {
    border: 1px solid;
}

.c-button__separate {
    position: relative;
}

.c-button__separate::after {
    content: "";
    width: 2px;
    height: 20px;
    background-color: #CCC;
    position: absolute;
    top: calc(50% - 8px);
}



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

    .c-button__list__change.is-active {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
    }
}

/* デザイン画面=> 文字スタイル=> 文字揃え、文字の種類 */
/*** 文字スタイル / 文字揃え***/
.c-button__textStyle {
    padding: 1rem;
    background-color: #FFF;
    border: 1px solid #CCC;
    vertical-align: middle;
}

.c-button__textStyle.is-active {
    border: 1px solid #FFA200;
}

.c-button__textStyle.c-button__textStyle__align--horizontal-left {
    background: url(/images/icon/edit/ic_text-left.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle__align--horizontal-left.is-active {
    background: url(/images/icon/edit/ic_text-left-active.svg) center no-repeat #FFA200;
}

.c-button__textStyle.c-button__textStyle__align--horizontal-center {
    background: url(/images/icon/edit/ic_text-center.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle__align--horizontal-center.is-active {
    background: url(/images/icon/edit/ic_text-center-active.svg) center no-repeat #FFA200;
}

.c-button__textStyle.c-button__textStyle__align--horizontal-right {
    background: url(/images/icon/edit/ic_text-right.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle__align--horizontal-right.is-active {
    background: url(/images/icon/edit/ic_text-right-active.svg) center no-repeat #FFA200;
}

.c-button__textStyle.c-button__textStyle__align--vertical-top {
    background: url(/images/icon/edit/ic_text-top.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle__align--vertical-top.is-active {
    background: url(/images/icon/edit/ic_text-top-active.svg) center no-repeat #FFA200;
}

.c-button__textStyle.c-button__textStyle__align--vertical-center {
    background: url(/images/icon/edit/ic_text-cen.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle__align--vertical-center.is-active {
    background: url(/images/icon/edit/ic_text-cen-active.svg) center no-repeat #FFA200;
}

.c-button__textStyle.c-button__textStyle__align--vertical-bottom {
    background: url(/images/icon/edit/ic_text-bottom.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle__align--vertical-bottom.is-active {
    background: url(/images/icon/edit/ic_text-bottom-active.svg) center no-repeat #FFA200;
}

/* 文字の種類 */
.c-button__textStyle.c-button__textStyle--gothic {
    background: url(/images/icon/edit/ic_text-gothic.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle--gothic.is-active {
    background: url(/images/icon/edit/ic_text-gothic-active.svg) center no-repeat #FFA200;
}

.c-button__textStyle.c-button__textStyle--mincho {
    background: url(/images/icon/edit/ic_text-mincho.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle--mincho.is-active {
    background: url(/images/icon/edit/ic_text-mincho-active.svg) center no-repeat #FFA200;
}

.c-button__textStyle.c-button__textStyle--gyosho {
    background: url(/images/icon/edit/ic_text-gyosho.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle--gyosho.is-active {
    background: url(/images/icon/edit/ic_text-gyosho-active.svg) center no-repeat #FFA200;
}
.c-button__textStyle.c-button__textStyle--pop {
    background: url(/images/icon/edit/ic_text-pop.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle--pop.is-active {
    background: url(/images/icon/edit/ic_text-pop-active.svg) center no-repeat #FFA200;
}

.c-button__textStyle.c-button__textStyle--handwrite {
    background: url(/images/icon/edit/ic_text-handwrite.svg) center no-repeat;
}

.c-button__textStyle.c-button__textStyle--handwrite.is-active {
    background: url(/images/icon/edit/ic_text-handwrite-active.svg) center no-repeat #FFA200;
}

.c-button__stamp__category {
    color: #333;
    border: 1px solid #CCC;
    border-radius: 20px;
    line-height: 2.5rem;
    font-size: calc(14px + 4 * ((100vw - 370px) / 640));
    font-weight: bold;
}

.c-button__stamp__category.is-active {
    color: #FFF;
    background-color: #FFA200;
    border: 1px solid #FFA200;
}

@media screen and (min-width: 640px) {
    .c-button__stamp__category {
        font-size: .8rem;
    }
}