#add_sel_list,#v_area_ctrl,#main_sel_ctrl,.prev_btn
,.v_area_btn .abtn.btn_g,.v_area_btn .abtn.strage_busy,#sub_sel_tab div
,.entdel span,.entadd span,.del_btn_holder span
,#add_sell_title,#add_sel_btn > div
,#add_sel_list,.repeat_add,.repeat_del,
.open_svg2,.open_svg1,
.repeat_copy{
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
#main{
    width:100%;
    border: 2px solid #666;
    margin-bottom: 30px;
    box-shadow: 3px 3px 10px #333;
}
#contents{width:100%;padding:0 !important;}
#contents div{box-sizing: border-box;}
#menu {
    border-top: 3px double #333;
    padding:1em;
    background: #f1f1f1;
}
#menu img {
    max-height: 153px;
}
#sel_area{
    position: fixed;
    top: 10px;
    bottom: 10px;
    right: 10px;
    left: 10px;
    background: #f7f7f7;
    border: 1px solid #333;
    border-radius: 0;
    box-shadow: 3px 3px 10px #333;
    z-index: 200;
    overflow: hidden;
    display:none;
}
#sel_area_title{
    width:100%;
    padding: 10px;
    height:80px;
    position:relative;
}
#sel_area_title img{
    position: absolute;
    top:2px;
    left:2px;
    max-width: 30%;
}
#sel_area_title p{
    text-align: center;
}
#sel_area_title p:nth-child(2){
font-size: 1.3em;
color: brown;
font-weight: bold;
text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}
#sel_area_wrap{
    display: flex;
    height: 100%;
    z-index:100;
}
#main_sel{
    width:300px;
    max-width: 30%;
    border-left:1px solid #555;
    box-shadow: 2px 0 10px #666;
    padding:0 0 10px 0;
    height:100%;
    flex-shrink: 0;
}
#main_sel input{display: none;}
#main_sel label > div{padding: 40px;
position: relative;}
#main_sel label > div::after {
    content: '';
    height: 3px;
    border: 1px solid #777;
    width: calc(100% - 20px);
    position: absolute;
    left: 10px;
    bottom: -3px;
    background: #fff;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
#main_sel input:checked ~ div.o{
    background: rgba(204,204,255,0.5);;
}
#main_sel_in_wrap{overflow-y: auto;
height:100%;}
#main_sel_in{
    padding: 5px 5px 20em 5px;
}
#main_sel_in > div{
    position: relative;
}
#main_sel_in .v_num{
    position: absolute;
    bottom: 0;
    right: 1em;
    color: #400000;
    text-shadow: 1px 1px 1px #fff;
}

#sub_sel {
    flex-grow: 8;
    border-top: 5px inset rgba(240, 240, 240, 0.5);
    border-left: 5px inset rgba(240, 240, 240, 0.5);
    display: flex;
    flex-direction:column;
    height: calc(100% - 80px);
}
#sub_sel_in_wrap{
    overflow-y:auto;
}
#sub_sel_in {
    padding: 1em 1em 20em 1em;
    position: relative;
}

.select_box{
    display: flex;
    flex-wrap: wrap;
}
.sub_sel_box_wrap {
    display: flex;
    flex-wrap: wrap;
    border: 1px inset #666;
    padding: 1em 2px;
    background-color: #f3f3f3;
}
.select_box_item_wrap,.select_box_ctrl{
    flex-grow: 0;
    margin: 10px 5px;

    border: 1px solid #eee;
    box-shadow: 7px 7px 10px 1px rgba(0,0,0,.6);
    background-color: #fff;
}
.select_box_item_wrap{
    width: 300px;
    flex-basis: 300px;
    padding: 1px;
}
.select_box_item_wrap svg{
    width:15px;
    height:15px;
    color:gray;
    border-right: solid 1px #e2e2e2;
    border-bottom: solid 1px #e2e2e2;
    cursor: pointer;
}
.select_box_item_wrap svg:hover{
    color:black;
}
.select_box_ctrl{
    padding: 20px 15px;
    display: flex;
    flex-wrap: wrap;
}
.select_box_item{
    padding: 20px;
    background: #fff;
    z-index: 0;
    position: relative;
}
.sub_title{
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
    margin: 1em 0 0 0;
    padding: 2px 1em;
    text-align: center;
    background: -moz-linear-gradient(left, #FFC778, #FFF 40%,#fff 60%, #FFC778);
    background: -webkit-linear-gradient(left, #FFC778, #FFF 40%,#fff 60%, #FFC778);
    background: linear-gradient(to right, #FFC778, #FFF 40%,#fff 60%, #FFC778);
}
#main_sel_type,.title1 {
    text-align: center;
    border-bottom: 1px solid #666;
    background: #fff;
    padding: 10px;

}
#main_sel_type select{
    margin: 0 10px;
    padding:2px 1em;
}

.abtn{
    margin: 0 1em;
    padding: 2px 20px 2px 10px;
    cursor: pointer;
}

#main_view{
    display:flex;
    justify-content:space-between;

}
#v_area_wrap{
    width: 300px;
    border: 1px solid #666;
    background: #fff;
    position: -webkit-sticky;
    position: sticky;
    top:10px;
    flex-shrink:0;
    box-shadow: 3px 3px 3px rgba(0,0,0,.5);
}
#v_area_wrap.clip{
    position: fixed;
    top: 0;
    left: 0;
}
#v_area_w{
    background: #ccc;
    border-left: 5px ridge #000;
    border-right: 5px ridge #000;
    padding: 10px 2px 0 1px;
}
#v_area_ctrl,#main_sel_ctrl,.prev_btn{
    height:50px;
    width:100%;
    border: 1px solid #fff;
    box-shadow: 0 -5px 10px #666;
    background: aliceblue;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}
#main_sel_ctrl{
    display:none;
}
#main_sel_ctrl.prev_on{
    display:flex;
}
#v_area{
    padding: 1em;
    border-top: 5px solid #333;
    border-bottom: 5px solid #444;
    border-left: 5px solid #555;
    border-right: 5px solid #666;
    min-height: 150px;
    display: flex;
    align-items: center;
    background:#fff;
}
svg{
    width: 20px;
    height: 20px;
    vertical-align: middle;
    fill: currentColor
}
#v_area_title {
    text-align: center;
    padding: 5px;
}
#v_area_in{
    width: 100%;
    background:#fff;
    z-index: 0;
    position: relative;
}
.v_area_btn{
    padding: 10px 0;
}
.v_area_btn > div{
    margin: 5px 0;
}
#ctrl_area{
    width: calc(100% - 310px);
    min-height: 200px;
    flex-grow:10;
    padding:0 10px;
}
#css_html_pnel{
    display:none;
    position: fixed;
    border: 1px solid #666;
    width:400px;
    max-width:90%;
    left:20px;
    background:#fff;
    z-index:2500;
    height: calc(100vh - 40px);
}
.css_html_pnel_div{
    margin: 2em 0 1em 0;
    padding: 1em;
}
.css_html_pnel_div div:nth-child(1){
    position: relative;
    text-align: center;
}
.css_html_pnel_div .abtn{
    position: absolute;
    right: 10px;
    top: -5px;
}
.abtn {
    border: 1px solid #aaa;
    color: #fff;
    background: #22f;
    text-shadow: 1px 1px 1px #f00;
}
.v_area_btn .abtn{
    text-align: center;
    width:90%;
}
.v_area_btn svg{margin-left:5px; }
.abtnoff .abtn{
    background: #ccc;
}
.v_area_btn .abtn.btn_g,.v_area_btn .abtn.strage_busy{
    border: 1px solid #aaa;
    color: #fff;
    background: #ccc;
    text-shadow: 1px 1px 1px #f00;
    text-align: center;
    cursor:pointer;
}

.abtn:hover{
    background: #ccc;
}
#css_html_pnel_html {
    height:100px;
}
#css_html_pnel_css{
    height: 300px;
}
#css_html_pnel_html,#css_html_pnel_css{
width: 100%;
    resize: none;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    margin: 10px 0;
}
input[type="tel"]{
    ime-mode:disabled;
}
.select_box_ctrl div{
    text-align: center;
}
.select_box_ctrl input,.select_box_ctrl select{
    padding:1px 5px;
}
.select_box_ctrl label{
    margin: 0 10px 10px 10px;
    text-align: center
}
.select_box_ctrl input[type="number"]{
    text-align: right;
    ime-mode:disabled;
    width: 5em;
}
.aff_conmenu_del svg{
    color:red;
}
#sub_sel_tab{
    width: 100%;
    display: flex;
    padding:2px 5px 0 5px;
    position:relative;
}
#sub_sel_tab::before {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    height: 1px;
    border-bottom: 1px solid #666;
    box-shadow: 1px 1px 3px rgba(0,0,0,.3) inset;
}
#sub_sel_tab div{
    text-align: center;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-right: 1px solid #666;
    margin: 0 2px 0 2px;
    z-index: 500;
    background: #f7f7f7;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
}
#sub_sel_tab_1,#sub_sel_tab_2{
    width:calc(49% - 20px);
}
#sub_sel_tab_3{
    width:40px;
    display:flex;
    justify-content: center;
    align-items: center;
}
#sub_sel_tab_3 svg{
    width:15px;
    height: 15px;
    align-self:center;
}
#sub_sel.sel1 #sub_sel_tab_1
,#sub_sel.sel2 #sub_sel_tab_2
,#sub_sel.sel3 #sub_sel_tab_3{
    border-bottom:none;
    background: #f7f7f7;
    color: #833;
    text-shadow: 1px 1px 1px #777;
}
#sub_sel:not(.sel1) #sub_sel_tab_1
,#sub_sel:not(.sel2) #sub_sel_tab_2
,#sub_sel:not(.sel3) #sub_sel_tab_3
{
    border-bottom:1px solid #666;;
    background: #ccc;
    color: #fff;
    text-shadow: 1px 1px 1px #666;
}
#sub_sel.sel1 #sub_sel_cnt_2
,#sub_sel.sel2 #sub_sel_cnt_1
,#sub_sel.sel3 #sub_sel_cnt_3
{
 display:block;
}
#sub_sel:not(.sel1) #sub_sel_cnt_2
,#sub_sel:not(.sel2) #sub_sel_cnt_1
,#sub_sel:not(.sel3) #sub_sel_cnt_3
{
    display:none;
}
#sub_sel_cnt_3 div{
    margin-bottom: 2em;
}
#sub_sel_tab_2count{
    margin-left:1em;
    color:red;
}
#sub_sel_tab_2count:before{
    content:'(';
}
#sub_sel_tab_2count:after{
    content:')';
}
#sub_sel_tab_2svg{
    position: relative;
    top:-10px;
    left:-10px;
    color:red;
}
.abtn svg {
    margin: 0 5px;
}


.tab_item span{margin: 0 10px 0 10px;}
.flex{display:flex;align-items: center;margin: 10px 0;border-bottom: 1px dotted #e1e1e1;}


.flex div{margin: 0 15px 0 3px;}
.flex  .ncolor div{display: flex}
.flex  .ncolor div{margin: 2px}
.flex2{align-items: flex-start;text-align:center;}
.flex2 div{text-align:center;}

.affi_tab .affi_tab_item{padding:0 !important;}
.affi_tab .affi_tab_item > div{padding: 10px 0 10px 10px;}
.affi_tab .affi_tab_item > div.content_tab{padding: 0;border-left:3px solid #666 }
.affi_tab .affi_tab_item > div.content_tab > div{padding: 10px;}
.affi_tab input[type="number"]{
    width:80px;
    padding-left:5px;
}
.css_print_box{display: flex;}
.css_print_box div:nth-last-child(1){
    border: 1px solid #ccc;
    margin: 0 10px;
    padding: 0 1em;
    background: #f1f1f1;
    text-shadow: 1px 1px 1px #111;
    flex-grow: 3;
}
.strage_busy .affi_conmenu_l{color:red;}
.strage_busy .affi_conmenu_r{color: #eee;
    text-shadow: 1px 1px 1px #f00;}
#v_area_info {
    padding: 5px 10px;
    border-bottom: 1px dotted #666;
    background: #ddd;
    text-shadow: 1px 1px 1px #fff;
}
#v_area_info .kihondata{
background: aliceblue;
padding: 0 5px;
}
#v_area_info .tourokudata{
    background: orange;
    padding: 0 5px;
}
.entdel,.entadd,.del_btn_holder{text-align: right;}
div.del_btn_holder{
    margin-bottom: 0.5em;
}
div.repeat_main{
    justify-content: flex-end;
    align-items: center;
}
div.repeat_main div.del_btn_holder{
    margin-bottom: 0;
}
.entdel span,.entadd span,.del_btn_holder span,.repeat_copy span{
    border: 1px solid #666;
    padding: 1px 5px;
    font-size: 0.8em;
    border-radius: 5px;
    cursor: pointer;
}
.entdel svg,.entadd svg,.del_btn_holder svg,.repeat_copy svg{
    width: 10px;
    height: 15px;
}
.entdel span:hover,.entadd span:hover,
.del_btn_holder span:hover,
.repeat_copy span:hover{
    color:#fff;
    background-color: #666;
    text-shadow:1px 1px 1px #000;
}
#lock{
    position: fixed;
   left: 0;
    top : 0;
   width : 100%;
    height : 100%;
    z-index : 1500;
    background-color : black;
    opacity : 0.8;
    display:none;
}
#add_sell{
    display:none;
    left:40%;
    position: fixed;
    border: 1px solid #666;
    width:300px;
    max-width:90%;
    background:#fff;
    z-index:2500;
    max-height: calc(100vh - 40px);
}
#add_sell_title{
    height: 50px;
    width: 100%;
    border: 1px solid #fff;
    box-shadow: 0 -5px 10px #666;
    background: aliceblue;
    display: flex;
    align-items: center;
    justify-content: center;
}
#add_sel_warp{
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    margin: 10px;
    height: 300px;
    overflow-y: auto;
    border: 1px solid #666;

}
#add_sel_warp > div{
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
#add_sel_btn{
    display: flex;
}
#add_sel_btn > div{
    width: 50%;
    text-align: center;
    height: 30px;
    border-top: 1px dotted #666;
    margin-bottom:1px;
    cursor: pointer;
    letter-spacing: 2px;
    border-right: 1px solid #fff;
}
#add_sel_btn_ok{
    background-color: #5af;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
}
#add_sell.selok #add_sel_btn_ok{
    opacity: 1;
}
#add_sell:not(.selok) #add_sel_btn_ok{
    opacity: 0.2;
}
#add_sel_btn_ng{
    background-color: orange;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    font-weight: bold;
}
#add_sell.selok #add_sel_btn_ok:hover,#add_sel_btn_ng:hover{
    opacity: 0.5;
}
#add_sel_list{
letter-spacing: 2px;
cursor: pointer;
    white-space: nowrap;
}
#add_sel_list input{
    display:none;
}
#add_sel_list input:checked ~ div {
    background: rgba(204,204,255,0.5);
}
#add_sel_msg{
    padding: 0 10px;
}
.tab1{margin-left:2em;}
.tab2{margin-left:4em;}
.repeat_items > div{
    border-left: 1px solid #666;
    margin: 10px 2em 10px 1em;
    padding: 10px;
    border-top: 2px dotted #666;
    border-bottom: 2px dotted #666;
    border-right: 1px solid #666;
}
.repeat_add{
    cursor: pointer;
    margin: 10px 2em 10px 1em;
}
.repeat_add:hover{
    border-bottom: 1px solid #666;
    padding-right: 1em;
}
.repeat_add:hover svg{
    transform: rotate(360deg);
}
.repeat_add svg{
    transition-duration:1s;
}
.open_close{
    border-top:1px dotted #888;
    border-bottom:1px dotted #888;
    border-left:1px dotted #888;
    margin: 2em;
    padding:1em;
    height:auto;
}
.open_close.pnl_close{
    height:50px;
}
.pnl_close > div,.pnl_close > br{
    display:none;
}
span.open_svg{
    position: absolute;
    top:-10px;
    left:-10px;
    display: block;
    width: 15px;
    height: 15px;
    padding:0 5px 0 0;
    background-color:#fff;
    background-repeat:no-repeat ;
    cursor: pointer;
}
.open_close:not(.pnl_close) span.open_svg,
.open_close.pnl_close span.open_svg:hover{
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20576%20512%22%3E%3Cpath%20d%3D%22M572.694%20292.093L500.27%20416.248A63.997%2063.997%200%200%201%20444.989%20448H45.025c-18.523%200-30.064-20.093-20.731-36.093l72.424-124.155A64%2064%200%200%201%20152%20256h399.964c18.523%200%2030.064%2020.093%2020.73%2036.093zM152%20224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49%2064%200%2085.49%200%20112v278.046l69.077-118.418C86.214%20242.25%20117.989%20224%20152%20224z%22%2F%3E%3C%2Fsvg%3E');
}
.open_close:not(.pnl_close) span.open_svg:hover
,.open_close.pnl_close span.open_svg
{

    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20d%3D%22M464%20128H272l-64-64H48C21.49%2064%200%2085.49%200%20112v288c0%2026.51%2021.49%2048%2048%2048h416c26.51%200%2048-21.49%2048-48V176c0-26.51-21.49-48-48-48z%22%2F%3E%3C%2Fsvg%3E');
}
.open_close  span.open_svg2{
    position: absolute;
    bottom:-10px;
    right:0;
    display: block;
    width: 15px;
    height: 15px;
    padding:0 5px 0 5px;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%20512%22%3E%3Cpath%20d%3D%22M288.662%20352H31.338c-17.818%200-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81%2020.474-7.81%2028.284%200l128.662%20128.662c12.6%2012.599%203.676%2034.142-14.142%2034.142z%22%2F%3E%3C%2Fsvg%3E');
    background-color:#fff;
    background-repeat:no-repeat ;
    cursor: pointer;
    background-position: 15px;
}
.open_close:not(.pnl_close) span.open_svg2,
.open_close.pnl_close span.open_svg2:hover{
background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%20512%22%3E%3Cpath%20d%3D%22M288.662%20352H31.338c-17.818%200-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81%2020.474-7.81%2028.284%200l128.662%20128.662c12.6%2012.599%203.676%2034.142-14.142%2034.142z%22%2F%3E%3C%2Fsvg%3E');
}
.open_close:not(.pnl_close) span.open_svg2:hover
,.open_close.pnl_close span.open_svg2
{
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%20512%22%3E%3Cpath%20d%3D%22M31.3%20192h257.3c17.8%200%2026.7%2021.5%2014.1%2034.1L174.1%20354.8c-7.8%207.8-20.5%207.8-28.3%200L17.2%20226.1C4.6%20213.5%2013.5%20192%2031.3%20192z%22%2F%3E%3C%2Fsvg%3E');
}
.red{color:red}
.inp_work a{
    text-decoration: underline;
    cursor: pointer;
}
.inp_work a:hover{
    opacity: 0.5;
}
.repeat_items > div.gradation_item_sub
{
    padding-left:1.5em;
}
.gradation_item_sub .repeat_up{
    position: absolute;
    top: 0;
    left: -10px;
    cursor: pointer;
}
.gradation_item_sub .repeat_down{
    position: absolute;
    bottom: 0;
    left: -10px;
    cursor: pointer;
}
.gradation_item_sub .repeat_up:hover,
.gradation_item_sub .repeat_down:hover{
    background: #666;
    color:#fff;
}
.repeat_items > div:nth-last-child(1) .repeat_down{
    display: none;
}
.repeat_items > div:nth-child(1) .repeat_up{
    display: none;
}
.repeat_items > div{
    transition: opacity 0.2s;
}
.custom_struct{
    border: 3px double #666;
    padding: 3em 2em;
    min-height: 150px;
    margin: 10px 0 1em 0;
}
.strct,.strct div{
    position: relative;
    padding: 5em 1em 1em 3em;
    margin-bottom: 1em;
}
.strct{
    max-width:500px;
    border: 3px solid #00f;
    min-height: 250px;
}
.strct > div{
    width: 100%;
    border: 3px solid #F0f;
}
.strct > div > div{
    width: 100%;
    border: 3px solid #3F3;
}
.strct p{
    position: absolute;
    top: -1.5em;
    right: 5px;
    padding: 2px 1em;
    letter-spacing: 2px;
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
}
.strct span{
    font-size: 1.5em;
    margin: 1em;
    display: block;
    letter-spacing: 5px;
}
.strct > p{
    border: 3px solid #00f;
    background: #00f;
}
.strct > div > p{
    border: 3px solid #F0f;
    background: #F0f;
}
.strct > div > div > p{
    border: 3px solid #3F3;
    background: #3F3;
}
.color1{
    color:#00f;
}
.color2{
    color:#F0f;
}
.color3{
    color:#3F3;
}
.repeat_del svg,.entdel svg{color:#e78383;}
.ver_info{
    border: 1px dotted #666;
    margin: 3em 0;
    padding: 1em;
}