@charset "UTF-8";
* {
  font-family: Didact Gothic, 微軟正黑體;
  box-sizing: border-box;
}

body,html {
	width: 100%;
  	padding: 0 2%;
  	margin: 0px;
	background-color: #fffdf5;
	color: #333;
	font-size: 12px;
}

a {
	text-decoration:none;
	font-weight: bold;
	border: none;
  color:#333;
  cursor: pointer;
}
a:hover, a:visited {
	text-decoration:none;
	font-weight: bold;
	cursor: pointer;
  color:#333;
}
button {
  cursor: pointer;
}
.h1{
  font-size: 5rem;
  font-weight: bold;
  line-height: 4.5rem;
}
.h1:nth-child(1){
  text-align: left;
}
.h1:nth-child(2){
  text-align: right;
}
.h3{
  font-size:3rem;
  margin: 0;
}
.h4{
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}
.webp .jumbotron{
  background-image: url(./assets/banner_desktop.webp);
}
.no-webp .jumbotron{
  background-image: url(./assets/banner_desktop.jpg);
}
.jumbotron {
	position: relative;
	left:50%;
	transform: translateX(-50%);
	width: 100%;
	height: 600px;
	padding: 0 10%;
  /*background-image: url(https://chihchang.com/mattress/assets/banner_desktop.jpg);*/
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 0px 0px, center;
	max-width: 1880px;
}
.navbar {
	position: relative;
	left:50%;
	transform: translateX(-50%);
	width: 80%;
	height: 100px;
	text-align: center;
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	margin-top:10px;
}
.navtxt{
	font-size: 1.2rem;
	font-weight: bold;
	background-color: rgba(252,252,252,0.5);
	margin: 0 5px;
	padding: 10px 10px;
	cursor: pointer;
	box-sizing: border-box;
}
.navtxt:hover {
  	border-bottom: solid 5px #fff;
  	transition: border-bottom 0.5s;
}
.navimg{
	position: relative;
	width:150px;
	height:auto;
	cursor: pointer;
	box-sizing: border-box;
}
.navimg img{
	width:100%;
}
.navbar-rwd,.navlist{
  display:none;
}
.display_text{
  width: 50%;
  position: relative;
  left:50%;
  transform: translateX(-50%);
  margin-top: 80px;
  text-align: center;
}
.nav-button{
  position: relative;
  left:50%;
  transform: translateX(-50%);
  background: none;
  border:none;
  width:40%;
  font-size: 3rem;
  color: #fff;
  font-weight: bold;
  text-align: center;
  background-color: #f0c978;
  border-radius:5px;
  padding:5px 10px;
  margin-top: 10px;
}
.feature{
  position: relative;
  width:100%;
  text-align: center;
  margin-top: 5%;
}
.feature .col-3 img{
  width: 50%;
}
.section{
  width:98%;
  position: relative;
  left:50%;
  transform: translateX(-50%);
  margin-top: 3%;
  background-color: #fcfcfc;
  box-sizing: border-box;
  padding-top: 20px;
}
.title {
  text-align: center;
  margin: 20px 0;
}
.subhead{
	width:100%;
	position: relative;
	left:50%;
	transform: translateX(-50%);
	background-image: url(./assets/bgline01.svg);
	background-repeat: no-repeat;
	background-size: 50%;
	background-position: bottom;
	font-size: 3rem;
	font-weight: bold;
	border: solid 1px #fcfcfc;
}
.subhead .h3{
  font-weight: bold;
  margin-bottom: 15px;
}
.subcontent{
  font-size: 1.5rem;
  line-height: 2.5rem;
}

.pr{
  position: relative;
  left:50%;
  transform: translateX(-50%);
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  background-color: #f0c978;
  padding: 5px 10px;
  border-radius:5px;
}
.pr-text{
  text-align: center;
  font-size: 1.5rem;
  margin-top: 10px;
}
.bed-feature{
	width:100%;
	padding: 20px 0;
 	text-align: center;
}
.bed-feature img{
  width:80%;
}
.bf-text{
	position: relative;
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	background-color: #f0c978;
	border-radius:5px;
	padding: 5px;
	text-align: center;
}

.material .subhead{
  background-image: url(./assets/bgline02.svg);
  background-size: contain;
  text-align: center;
}
.material .row{
  margin-top: 30px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
}
.material .row img{
  width: 80%;
}

.brand .subhead{
  background-image: url(./assets/bgline03.svg);
  background-size: contain;
  text-align: center;
  border: none;
}
.brand{
  background-image: url(./assets/bg1.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
}
.brand-content{
  font-size: 2.5rem;
  line-height: 3.5rem;
  padding: 0 0 50px 0;
  color: #fff;
}
.size{
  position: relative;
  left:50%;
  transform: translateX(-50%);
  text-align: center;
  margin-top: 5%
}
.size .subhead{
  background-image: url(https://chihchang.com/mattress/assets/bgline04.svg);
  background-size: contain;
  text-align: center;
  margin: 20px;
}

.size.row img{
  width: 100%;
}
.size .h4{
  margin: 5px 0;
}
.size .col-6 h4{
  display: inline-block;
  background-color: #97b4f7;
  border-radius: 5px;
  padding: 5px 10px;
}
.size h5{
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}
.size button{
  background-color: #f0c978;
  margin: 5px 0;
  border: none;
  font-size: 1.3rem;
  border-radius: 5px;
}
.pillow{
  text-align: center;
  margin-top: 5%;
}
.pillow .subhead{
  background-image: url(./assets/bgline04.svg);
  background-size: contain;
  text-align: center;
  margin: 20px;
}
.pillow .col-4 img{
  width: 90%;
}
.pillow .h4 span{
  font-size: 1.2rem;
  font-weight: bold;
}
.pillow .sale{
  color: #b2042e;
  font-size: 1.2rem;
}
.pillow .sale span{
  font-size: 2.5rem;
}
.pillow button{
  background-color: #f0c978;
  margin: 5px 0;
  border: none;
  border-radius: 5px;
  padding: 5px 20px;
  font-size: 1.3rem;
}

.pillow img{
  border-radius:5px;
}

.bed{
  width:100%;
  margin-top: 5%;
}
.bed .subhead,.faq .subhead{
  background-image: url(./assets/bgline04.svg);
  background-size: contain;
  text-align: center;
  margin: 20px;
}
.bed img{
	width:100%;
  border: solid 5px #fff;
  border-radius: 5px;
}
.bed .sale{
  color: #b2042e;
  font-size: 1.5rem;
  font-weight: bold;
}
.bed .sale span{
  font-size: 3rem;
  font-weight: bold;
}
.bed button{
  background-color: #f0c978;
  font-size: 2rem;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  padding: 5px 20px;
}
.card{
  width:80%;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 20px 0;
}
.card p{
  width:100%;
  cursor: pointer;
  color:#666;
  padding: 20px 20px;
  line-height: 1rem;
  font-size: 1.5rem;
  margin: 0;
  box-sizing:border-box;
  display: inline-block;
}

.card-header,.card-content{
  margin: 0;
  padding: 0;
  border: solid 1px #e8e9eb;
  box-shadow: 1px 1px #e8e9eb;
  box-sizing:border-box;
}
.card-content{
  margin: 0;
  padding: 0;
  display: none;
}
.content p{
  width:100%;
  line-height: 2rem;
  padding: 40px 20px;
}

.footer{
  text-align: center;
}
/* =========RWD 版面調整========= */
.row{
  position: relative;
  width:100%;
  box-sizing: border-box;
}
.col-3{
	display: inline-block;
	width:24%; 
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}
.col-3 img{
  width:100%;
}
.col-3 p{
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.5rem;
  margin: 0;
  margin-top: 5px;
}
.col-3 span{
  font-size: 1.2rem;
  margin: 0;
}
.col-4 {
  display: inline-block;
	width:32%; 
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}
.col-6{
	display: inline-block;
	width:49%; 
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

.navimg-rwd{
	display: none;
}


@media screen and (min-width: 601px) and (max-width: 1160px) {
*{
  font-size: 12px;
  }
  .h1{
    font-size: 4rem;
    line-height: 3.5rem;
  }
  .h1:nth-child(1),.h1:nth-child(2){
    text-align: center;
  }
  .h2{
  font-size: 2rem;
  font-weight: bold;
  padding: 0;
  margin: 0;
  color: #85b3d5;
  text-shadow:  1px 1px #fff , -1px -1px #fff;
  }
.navbar{
      visibility: hidden; 
      display: none;
    }
  .nav-button{
    width:80%;
    font-size: 2.5rem;
    color: #fff;
    font-weight: bold;
    text-align: center;
    background-color: #f0c978;
    border-radius:5px;
    padding:5px 10px;
    margin-top: 10px;
  }
  .navimg-rwd{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width:100%;
    height: auto;
  }

  .navimg-rwd img{
    width: 10%;
  }
  .webp .jumbotron{
  background-image: url(./assets/banner_mobile.webp);
}
  .no-webp .jumbotron{
    background-image: url(./assets/banner_mobile.jpg);
  }
  .jumbotron {
    position: relative;
    width: 100%;
    height: 500px;
    padding: 0;
    background-size: cover;
    background-position: center;
    margin: 0;
  }
  .display_text{
    width:100%;
    margin: 0;
    padding: 10px;
  }
  .highline{
    width: 80%;
    min-width: 250px;
    height: auto;
    position: relative;
    left: 50%;
    top: 40%;
    transform: translate(-50%,-50%);
    background-color: rgb(255,255,255,0.4);
    padding: 0 0 10px 0;
    border: solid 1px rgb(255,255,255,0);;
  }
  .brand-content{
    font-size: 2rem;
    line-height: 3rem;
    padding: 0 10px 50px 10px;
    color: #fff;
    } 
  .col-3{
    width:49%; 
    margin-top: 10px;
  }
  .col-3 img{
    width:100%;
  }
  .col-3 p{
    font-size: 2em;
    font-weight: bold;
    line-height: 1.2rem;
    margin: 0;
    margin-top: 10px;
  }
  .col-3 span{
    font-size: 1.4rem;
    margin: 0;
  }
  .col-4 {
  	display: inline-block;
  	width:32%; 
  	box-sizing: border-box;
  	padding: 0;
  	margin: 0;
  }

  .card p{
    font-size: 1.3rem;
    line-height: 1.5rem;
  }
  
}

@media screen and (max-width:600px) {
  *{
    font-size: 12px;
  }
  .h1{
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 3rem;
  margin: 0;
  padding: 0;
  }
  .h1:nth-child(1),.h1:nth-child(2){
    text-align: center;
  }
  .h2{
  	font-size: 2rem;
  	font-weight: bold;
  	padding: 0;
  	margin: 0;
  	color: #85b3d5;
  	text-shadow:  1px 1px #fff , -1px -1px #fff;
  }
  .h3{
    font-size:1.8rem;
    margin: 0;
  }
  .h4{
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
  }
  .navbar{
    visibility: hidden; 
    display: none;
  }
  .nav-button{
    width:80%;
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    text-align: center;
    background-color: #f0c978;
    border-radius:5px;
    padding:5px 10px;
    margin-top: 10px;
  }
  .navimg-rwd{
  	position: relative;
  	display: inline-flex;
  	align-items: center;
  	justify-content: center;
  	width:100%;
  	height: auto;
  }

  .navimg-rwd img{
  	width: 20%;
  }

  .webp .jumbotron{
    background-image: url(./mattress/assets/banner_mobile.webp);
  }
  .no-webp .jumbotron{
    background-image: url(./mattress/assets/banner_mobile.jpg);
  }
  .jumbotron {
    position: relative;
    width: 100%;
    height: 400px;
    padding: 0;
    /*background-image: url(https://chihchang.com/mattress/assets/banner_mobile.jpg);*/
    background-size: cover;
    background-position: center;
    margin: 0;
  }
  .display_text{
    width:100%;
    margin: 0;
    padding: 10px;
  }
  .highline{
    width: 80%;
    min-width: 250px;
    height: auto;
    position: relative;
    left: 50%;
    top: 35%;
    transform: translate(-50%,-50%);
    background-color: rgb(255,255,255,0.4);
    padding: 0 0 10px 0;
    border: solid 1px rgb(255,255,255,0);;
  }
	.subhead{
		width:100%;
		background-size: contain;
	}
	.pr{
		font-size: 1.5rem;
	}
	.pr-text{
		font-size: 1.2rem;
	}
.subcontent{
	margin-top: 5%;
  font-size: 1.2rem;
  line-height: 1.5rem;
}
.material .subhead, .brand .subhead, .size .subhead, .pillow .subhead, .bed .subhead, .faq .subhead{
  font-size: 1.8rem;
}
.brand-content{
  font-size: 1.5rem;
  line-height: 2rem;
  padding: 0 10px 50px 10px;
  color: #fff;
}
.bed .sale span{
  font-size: 1.8rem;
  font-weight: bold;
}
.bed button{
  background-color: #f0c978;
  font-size: 1.3rem;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  padding: 5px 20px;
}
.card{
  width:90%;
  }
.card p{
  font-size: 1.5rem;
  line-height: 2rem;
}
.col-sm-6{
	width: 49%;
	margin-top: 5%;
}
.col-sm-6 img{
	width:100%;
}
.col-sm-12{
  width: 100%;
  margin-top: 5%;
}
}
