/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #eeeeef;
    text-shadow: none;
}

::selection {
    background: #eeeeef;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #eeeeef;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body, td, th {
    font-family: bauhaus_stdmedium, Microsoft JhengHei, 微軟正黑體, 蘋果儷中黑, Apple LiGothic Medium , Arial, Helvetica, sans-serif;
    background-color: #eeeeef;
    height: 100%;
}

#wrap{
    width: 100%;
    height: auto;
    background-repeat: repeat-x; 
    background-color: #cb0111;
}
ul.nav{
	width: 80px;
	height: 66px;
	position: fixed;
	top:50%;
    margin-top: -40px;
	right: 10px;
	z-index: 2;
}
ul.nav li{position: relative; display: inline-block;}
ul.nav li a{
    display: block;
    -moz-transition: all, 0.6s;
    -o-transition: all, 0.6s;
    -webkit-transition: all, 0.6s;
    transition: all, 0.6s;
    }

.nav1{width: 80px; height: 22px; position: relative; background-image: url(../img/nav1a.png);}
.nav1:hover{background-image: url(../img/nav1a.png);}

.nav2{width: 80px; height: 22px; position: relative; background-image: url(../img/nav1.png);}
.nav2:hover{background-image: url(../img/nav2a.png);}

.nav3{width: 80px; height: 22px; position: relative; background-image: url(../img/nav1.png);}
.nav3:hover{background-image: url(../img/nav3a.png);}

header{width: 100%; height: 6px; background: #000000;}
#content{
    width: 1200px; height: 585px;
    position: relative;
    margin: 0 auto;
    background: url(../img/content.jpg);
}

.gocart{
	width:400px;
	height: 85px;
	position: absolute;
	left: 185px;top:465px;
}
.gomap{
	width: 400px;
	height: 85px;
	position: absolute;
	left: 602px;top:465px;
}

#section2{
    width: 1200px; height: 720px;
    position: relative;
    margin: 0 auto;
}


#section3{
    width: 1200px; height: 713px;
    position: relative; 
    margin: 0 auto;
}


a:link {
    text-decoration: underline;
    color: #900;
}
a:visited {
    color: #900;
    text-decoration: none;
}
a:hover {
    color: #900;
    text-decoration: blink;
}
a:active {
    color: #333;
    text-decoration: blink;
}


#footer{width: 100%; height: 30px; color: #ffffff; text-align: center; font-size:11px; line-height: 26px; position:relative; bottom: 0px; background: #000000;}
#footer a{color: #ffffff; text-decoration: none;}

.content_kv_m, .content_kv_pad,.gocart_m,.gomap_m{display: none;}


@media (min-width: 768px) and (max-width: 1200px){
    #wrap{width: 100%;}
    #content{background: none; width: 100%; height: auto; }
    .content_kv_pad{display: block;}
    img.content_kv_pad, .gomap img, .gocart img, #section2 img, #section3 img, img.discount{width: 100%;}
    .gocart{width:33.8%; position: absolute; left: 15.4%; top:79%;}
    .gomap{width: 33.8%; position: absolute; left: 50%; top:79%;}
    #section2, #section3{width: 100%; height: auto; position: relative;  margin: 0 auto; max-width: 1200px;}
    .gocart_m{display: none;}
}

@media screen  and (max-width: 768px) {
    #wrap{width: 100%;}
	#content{background: none; width: 100%; height: auto; max-width: 767px;}
    .content_kv_m{display: block;}
    img.content_kv_m, .gomap img, .gocart img, #section2 img, #section3 img{width: 100%;}
    .cta{ width: 100%; height: auto; position: relative; top: 0;}
    .gocart{width:100%; position:relative; left:0; display: block; height: auto; top: 0;}
    .gomap{width: 100%; position: relative; left:0; display: block;height: auto; top: 0;}
    #section2, #section3{width: 100%; height: auto; position: relative;  margin: 0 auto; max-width: 767px;}
    .content_kv_pad,.nav{ display: none;}

}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}
