/*! Remodal - v0.1.7 - 2014-07-14
 * https://github.com/VodkaBears/remodal
 * Copyright (c) 2014 VodkaBears; */

/* updated by ADVANCED INFORMATION DESIGN Co.,Ltd.
 * updated on 2014/07/01
 */

/* ==========================================================================
   Remodal necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal_lock, body.remodal_lock {
    overflow: hidden;
}

/* Anti FOUC */

.remodal, [data-remodal-id] {
    visibility: hidden;
}

/* Overlay necessary styles */

.remodal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;

    display: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    text-align: center;
}

.remodal-overlay:after {
    display: inline-block;
    height: 100%;
    margin-left: -0.05em;

    content: '';
}

/* Fix iPad, iPhone glitches */

.remodal-overlay > * {
    -webkit-transform: translateZ(0px);
}

/* Modal dialog necessary styles */

.remodal {
    position: relative;

    display: inline-block;
}

/* ==========================================================================
   Remodal default theme
   ========================================================================== */

/* Overlay default theme styles */

.remodal-overlay {
    opacity: 0;
    background: url('images/bg_remodal.png');

    -webkit-transition: opacity 0.2s linear;
    -moz-transition: opacity 0.2s linear;
    -o-transition: opacity 0.2s linear;
    transition: opacity 0.2s linear;
}

body.remodal_active .remodal-overlay {
    opacity: 1;
}

/* Modal dialog default theme styles */

.remodal {
    width: 100%;
    min-height: 100%;
    padding: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    font-size: 14px;
    line-height: 1.4em;
    background: #fff;
    background-clip: padding-box;
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
    transform: scale(0.95);
    -webkit-transition: -webkit-transform 0.2s linear;
    -moz-transition: -moz-transform 0.2s linear;
    -o-transition: -o-transform 0.2s linear;
    transition: transform 0.2s linear;
    
    border: solid 5px #4d4d4d;
}

body.remodal_active .remodal {
    font-size: 14px;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.remodal h3 { margin-bottom: 1em; font-weight: bold; }

.remodal p.aside { clear: both; color: #999; font-size: 12px; }
.remodal p.aside:before { margin-right: 0.5em; content: '※'; }
.remodal div#sbj { clear: both; margin-top: 1em; }
.remodal div#sbj p { float: left; width: 13em; margin: 0 0.5em 0.8em 0; }
.remodal div#sbj p input[type="checkbox"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0 5px 5px 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-radius: 8px;
    border: 2px solid #4c4c4c;
    background: -moz-gradient(linear, left top, left bottom, from(#fdfdfd), to(#d1d1d1));
    background: -webkit-gradient(linear, left top, left bottom, from(#fdfdfd), to(#d1d1d1));
    line-height: 24px;
    vertical-align: middle;
}
.remodal div#sbj p input[type="checkbox"]:checked {
    background: -moz-gradient(linear, left top, left bottom, from(#353535), to(#8f8f8f));
    background: -webkit-gradient(linear, left top, left bottom, from(#353535), to(#8f8f8f));
}
.remodal div#sbj p input[type="checkbox"]:checked:before {
    position: absolute;
    left: 0px;
    top: 15px;
    display: block;
    width: 10px;
    height: 4px;
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 1);
    background: #fff;
    content: '';
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform-origin: right center;
    -webkit-transform-origin: right center;
}
.remodal div#sbj p input[type="checkbox"]:checked:after {
    display: block;
    position: absolute;
    left: 8px;
    top: 15px;
    width: 17px;
    height: 4px;
    -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 1);
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 1);
    background: #fff;
    content: '';
    -moz-transform: rotate(-53deg);
    -webkit-transform: rotate(-53deg);
    -moz-transform-origin: left center;
    -webkit-transform-origin: left center;
}
.remodal div#sbj p label {
	height: 24px;
	line-height: 24px;
}

.remodal div#btnarea { clear: both; margin-top: 20px; text-align: center; }

.remodal div#sbj p input[type="chexkbox"] {
    margin-right: 5em;
}

/* Modal dialog vertical align  */

.remodal, .remodal-overlay:after {
    text-align: left;
    vertical-align: middle;
}

/* Close button */

.remodal-close {
    position: absolute;
    top: 5px;
    right: 5px;

    width: 20px;
    height: 20px;

    text-align: center;
    text-decoration: none;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: 2px solid #333;
    -webkit-transition: background 0.2s linear;
    -moz-transition: background 0.2s linear;
    -o-transition: background 0.2s linear;
    transition: background 0.2s linear;
}

.remodal-close:after {
    display: block;

    font-size: 20px;
    font-family: Arial, 'Helvetica CY', 'Nimbus Sans L', sans-serif !important;
    content: "×";
    line-height: 20px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.remodal-close:hover, .remodal-close:active { background: #333; }
.remodal-close:hover.remodal-close:after, .remodal-close:active.remodal-close:after { color: #fff; }

/* Dialog buttons */

.remodal-confirm, .remodal-cancel {
    display: inline-block;
    width: 130px;
    padding: 6px 0;
    margin: 0 0 5px 0;

    cursor: pointer;
    text-decoration: none;
    text-align: center;
    background-clip: padding-box;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

.remodal-confirm { background: #009150; color: #eee; }
.remodal-confirm:hover, .remodal-confirm:active { background: #333; }
.remodal-cancel { background: #ddd; color: #333; }
.remodal-cancel:hover, .remodal-cancel:active { background: #333; color: #eee; }

/* Media queries
   ========================================================================== */

@media only screen and (min-width: 40.063em) /* min-width 641px */ {
    .remodal { max-width: 780px; margin: 20px auto; min-height: 0; -webkit-border-radius: 5px; border-radius: 5px; }
    .remodal div#sbj p { margin: 0 0 0.2em 0; }
    .remodal div#sbj p input[type="checkbox"] { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #4c4c4c;  line-height: 14px; }
    .remodal div#sbj p input[type="checkbox"]:checked:before { top: 10px; left: 0px; width: 6px; height: 2.5px; }
    .remodal div#sbj p input[type="checkbox"]:checked:after { top: 10px; left: 5px; width: 10px; height: 2px; }
    .remodal div#sbj p label { height: 14px; line-height: 14px; }
    
    @media screen and (max-device-width: 1136px) /* for iphone */ {
        .remodal div#sbj p input[type="checkbox"] { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #4c4c4c; line-height: 24px; }
        .remodal div#sbj p input[type="checkbox"]:checked:before { top: 15px; left: 0px; width: 10px; height: 4px; }
        .remodal div#sbj p input[type="checkbox"]:checked:after { top: 15px; left: 8px; width: 17px; height: 4px; }
        .remodal div#sbj p label { height: 24px; line-height: 24px; }
    }
}