@charset "UTF-8";

html {
  font-size: 100%;
}
body {
  background-color: #E6E2D7;
  color: #000;
  font-family: 'noto serif JP', serif;
}
a {
  color: #fff;
  text-decoration: none;
}
img {
  max-width: 100%;
  vertical-align: bottom;
}
li {
  list-style: none;
}

.site-title {
  line-height: 1;
  margin-left: 60px;
}
.site-title a{
  display: block;
}
.site-title img{
  width: 40px;
}
.wrapper{
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

/*header*/
#header{
  width: 100%;
  /* 背景を画面下まで設定 */
  height: 100vh;
  background-image: url(../img/mainvisual-pc.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 60px 80px;
  margin-bottom: 180px;
  /* 「オンラインストアを見る」ボタンを配置するためのposition */
  position: relative;
  writing-mode: vertical-rl;
}

/*「オンラインストアを見る」ボタンpositionで左下に配置backgroundのrgbaで透過設定*/
#header .olinestore{
  background: rgba(255,255,255,0.2);
  padding: 8px;
  position: absolute;
  left: 40px;
  bottom: 30px;
}
#header .olinestore a{
  display: block;
  border: solid 1px #CCCCCC;
  padding: 30px 18px;
}
#header .olinestore a:hover{
  opacity: 0.7;
}
#nav li{
  margin-left: 25px;
}

/*News*/
/*「display: flex」で横並びに配置そのままではタイトルが左にくるため、「row-reverse」で順序を入れ替える。*/
#news{
  margin-bottom: 180px;
  display: flex;
  flex-direction: row-reverse;
}
#news .section-title{
  font-weight: normal;
  line-height: 1;
  writing-mode: vertical-rl;
}
#news .section-title .en{
  display: block;
  font-size: 0.875rem;
  margin-left: 15px;
}
#news .section-title .ja{
  display: block;
  font-size: 2.25rem;
  letter-spacing: 0.1em;
}
#news .list{
  padding: 80px 100px 0 0;
  writing-mode: vertical-rl;
}
#news .list dt{
  border-right: solid 1px #000;
  font-size: 0.75rem;
  padding: 15px 0 15px 30px;
}
/*最後だけ左側に罫線を引く*/
#news .list dd:last-child{
  border-left: solid 1px #000;
}

/*Products（共通）*/
.products{
  display: flex;
  margin-bottom: 180px;
}
.products .section-title{
  font-weight: normal;
  line-height: 1;
}
.products .section-title .ja{
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.products .section-title .en{
  font-size: 0.875rem;
}

/*画像の上にテキストを重ねるためのpositionを設定*/
.products .img{
  width: 65%;
  margin-top: 100px;
  position: relative;
}
/*「position: absolute;」でテキストを画像の上に配置左右の配置位置は「#products1」と「#products2」で個別に指定*/
.products .text{
  width: 56%;
  color: #fff;
  padding: 50px 0;
  text-align: center;
  position: absolute;
  bottom: -20px;
}

/*productsの共通定義以外は、idを指定（#products1、#products2）して個別に設定*/
/*Products1*/
/*そのままではタイトルが左にくるため、「row-reverse」で順序を入れ替える。*/
#products1{
  flex-direction: row-reverse;
}
#products1 .section-title{
  margin-left: 20px;
  writing-mode: vertical-lr;
}
#products1 .text{
  background: rgba(249, 233, 6, 0.6);
  left: -20px;
}

/*Products2*/
#products2 .section-title{
  margin-right: 20px;
  writing-mode: vertical-rl;
}
#products2 .text{
  background: rgba(149, 42, 38, 0.6);
  right: -20px;
}

/*Shop*/
/*iframeのwidthに100%を指定して全幅で表示する「vertical-align: bottom;」を指定することで、Google Mapの下にできる隙間を消す*/
#shop iframe{
  width: 100%;
  vertical-align: bottom;
}

/*footer*/
#footer{
  background-color: #000;
  color: #fff;
  padding: 80px 80px 30px 30px;
}
#footer .inner{
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 10px;
}
#footer .inner .left,
#footer .inner .right{
  writing-mode: vertical-rl;
}
#footer .inner .logo{
  width: 40px;
  margin-left: 60px;
}
#footer .inner .info{
  line-height: 2;
}
#footer .menu{
  font-size: 1rem;
  margin-right: 60px;
}
#footer .menu li{
  margin-left: 25px;
}
#footer .copyright{
  font-size: 0.625rem;
  text-align: center;
}

/*SP*/
@media screen and (max-width:768px){
  .wrapper{
    max-width: 100%;
  }

  /*header*/
  #header{
  /* スマホの場合は背景画像を切り替える */
    background-image: url(../img/mainvisual-sp.jpg);
    margin-bottom: 80px
  }
  #header .onlinestore{
    left: 20px;
    bottom: 20px;
  }

  /*news*/
  #news{
    margin-bottom: 80px;
  }
  #news .section-title .ja{
    font-size: 1.75rem;
  }
  #news .list{
    padding: 20px 30px 0 0;
  }
  #news .list dt{
    padding: 15px 12px 15px 5px;
  }

  /*スマホの場合は4つ目以降を非表示にする*/
  #news .list dt:nth-last-of-type(n + 4){
    display: none;
  }
  #news .list dd{
    padding: 15px 0 15px 12px;
  }

  /*3つ目の左側に罫線を引く*/
  #news .list dd:nth-last-of-type(3){
    border-left: solid 1px #000;
  }

  /*スマホの場合は4つ目以降を非表示にする*/
  #news .list dd:nth-last-of-type(n + 4){
    display: none;
  }

  /*Products*/
  .products{
    margin-bottom: 100px;
  }
  .products .section-title .ja{
    font-size: 1.5rem;
  }

  /*スマホの場合は英語タイトルを非表示*/
  .products .section-title .en{
    display: none;
  }
  .products .img{
    width: 90%;
    margin-top: 70px;
  }
  .products .text{
    width: 64%;
    font-size: 0.875rem;
    padding: 30px 0;
  }

  /*Products1*/
  #products1 .section-title{
    margin-left: 10px;
  }
  /*Products2*/
  #products2 .section-title{
    margin-right: 10px;
  }

  /*footer*/
  #footer{
    padding: 40px 20px 30px 20px;
  }
  #footer .inner .logo{
    margin-left: 25px;
  }
  #footer .menu li{
    margin-left: 10px;
  }
  #footer .menu{
    font-size: 0.875rem;
    margin-right: 25px;
  }
}








