@media screen  and (min-width: 768px){
  
html,body{
  max-width: 100%;
  height: 100%;/*高さを100%にして描画エリアをとる*/
  font-family: 'EB Garamond', serif;
}

#header{
  position: fixed;
  width: 100vw;
  height: 7vh;
  display: flex;
  background-color: #e9dacb;
  align-items: center;
  z-index: 10;
top:0;
}
#header-logo{
  margin-left: 3%;
  font-size: 1.5vw;
}
#header-nav{
  width: 40%;
}
#subscription-btn{
  display: flex;
  margin-left: 5%;
  padding: 0 1%;
  height: 7vh;
  background-color: #ffdbed;
  align-items: center;
  box-shadow: #666 1px 1px  1px;
}
#subscription-btn>a{

}
#insta-btn{
  width: 3%;
  margin-left: 1%;
}
.instaimg{
  width: 100%;
}

.header-content{
  position: relative;
  top: 0;
  height: 100vh;
  background-image: url(/img/top-wagashi.jpg);
  background-repeat:no-repeat;
  background-size: cover;
}
.header-content>img{
  width: 50vw;
}

/*=============== スクロール誘導 ===================*/
/*スクロールダウン全体の場所*/
.scrolldown4{
  /*描画位置※位置は適宜調整してください*/
position:absolute;
bottom:0;
left:7%;
  /*矢印の動き1秒かけて永遠にループ*/
animation: arrowmove 1s ease-in-out infinite;
}

/*下からの距離が変化して全体が下→上→下に動く*/
@keyframes arrowmove{
    0%{bottom:0%;}
    50%{bottom:2%;}
   100%{bottom:0%;}
}

/*Scrollテキストの描写*/
.scrolldown4 span{
  display: block;
  /*描画位置*/
position: absolute;
left:-40px;
bottom:10px;
  /*テキストの形状*/
color: #eee;
font-size: 1.5rem;
letter-spacing: 0.1em;
/*縦書き設定*/
-ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

/* 矢印の描写 */
.scrolldown4:after{
content:"";
  /*描画位置*/
position: absolute;
bottom:0;
right:0;
  /*矢印の形状*/
width:5px;
height: 150px;
background:#eee;
}


/*========= ナビゲーションのためのCSS ===============*/

/*アクティブになったエリア*/
#g-nav.panelactive{
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position:fixed;
  z-index: 999;
top: 0;
width:100%;
  height: 100vh;
}

/*丸の拡大*/
.circle-bg{
  position: fixed;
z-index:3;
  /*丸の形*/
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e9dacb;
  /*丸のスタート位置と形状*/
transform: scale(0);/*scaleをはじめは0に*/
right:-50px;
  top:-50px;
  transition: all .6s;/*0.6秒かけてアニメーション*/
}

.circle-bg.circleactive{
transform: scale(50);/*クラスが付与されたらscaleを拡大*/
}

/*ナビゲーションの縦スクロール*/
#g-nav-list{
  display: none;/*はじめは表示なし*/
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999; 
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#g-nav.panelactive #g-nav-list{
   display: block; /*クラスが付与されたら出現*/
}

/*ナビゲーション*/
#g-nav ul {
opacity: 0;/*はじめは透過0*/
  /*ナビゲーション天地中央揃えレイアウトによって調整してください。不必要なら削除*/
  position: absolute;
  z-index: 999;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
}

/*背景が出現後にナビゲーションを表示*/
#g-nav.panelactive ul {
  opacity:1;
}

/* 背景が出現後にナビゲーション li を表示レイアウトによって調整してください。不必要なら削除*/
#g-nav.panelactive ul li{
animation-name:gnaviAnime;
animation-duration:1s;
animation-delay:.2s;/*0.2 秒遅らせて出現*/
animation-fill-mode:forwards;
opacity:0;
}
@keyframes gnaviAnime{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}


/*リストのレイアウト設定*/
#g-nav li{
text-align: center; 
list-style: none;
}

#g-nav li a{
color: #333;
text-decoration: none;
padding:10px;
display: block;
text-transform: uppercase;
letter-spacing: 0.1em;
font-weight: bold;
}


/*========= ボタンのためのCSS ===============*/
.openbtn1{
position:fixed;
top:10px;
right: 10px;
z-index: 9999;/*ボタンを最前面に*/
cursor: pointer;
  width: 50px;
  height:50px;
}

/*×に変化*/  
.openbtn1 span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
background-color: #666;
  width: 45%;
}

.openbtn1 span:nth-of-type(1) {
top:15px; 
}

.openbtn1 span:nth-of-type(2) {
top:23px;
}

.openbtn1 span:nth-of-type(3) {
top:31px;
}

.openbtn1.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn1.active span:nth-of-type(2) {
opacity: 0;
}

.openbtn1.active span:nth-of-type(3){
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}


/*==================背景========================*/
.top-caption{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.top-caption>div{
  font-size: 78px;
  color: #ffbfdf;
  text-shadow: #000 5px 2px 3px;
}
.top-caption>p{
  margin-top: 5%;
  font-size: 24px;
  color: #eee;
  text-shadow: #000 5px 2px 3px;
}

#particles-js{ 
  position:fixed;/*描画固定*/
  z-index:-1;/*描画を一番下に*/
  width: 100vw;
  height: 100vh;
  background: url(/img/AdobeStock_474197589.jpeg) repeat  top/60%;
  top: 0;
}
#wrapper{
  position: relative;/*描画を#particles-jsよりも上にするためposition:relative;を指定*/
  z-index: 1;/*z-indexの数字を大きくすることで描画を#particles-jsよりも上に*/
  width:100vw;
  margin: 5%  0;
}

#main-content{
  max-width: 80%;
 margin: 0 auto;

}


#second-content{
  width: 100%;
  display: flex;
  position:static;
  justify-content: space-between;
  margin-bottom: 10%;
}
.content-img{
  width: 40%;
}
.content-box{
  width: 50%;
}

.second-text{
  text-align: start;
}
.second-text>h1{
  font-size: 48px;
  margin-bottom: 5%;
}
.second-text>h2{
  font-size: 18px;
  color: rgb(216, 152, 68);
  margin-bottom: 5%;
}
.second-text>p{
  font-size: 20px;
  margin-bottom: 2%;
}

#third-content{
  width: 100%;
  display: flex;
  position:static;
  justify-content: space-between;
  margin-bottom: 15%;
}
.contentimg{
  width: 100%;
  height: auto;
  margin-top:15%
}
.third-text{
  text-align: start;
}
.third-text>h1{
  font-size: 48px;
  margin-bottom: 5%;
}
.third-text>h2{
  font-size: 18px;
  color: rgb(216, 152, 68);
  margin-bottom: 3%;
}
.third-text>p{
  font-size: 20px;
  margin-bottom: 2%;
}
.caption-box{
  display: flex;
  justify-content: space-around;
}
.caption-box>div{
  width: 45%;
}
.caption-card{
  margin-top: 5%;
}
.caption-card>h3{
  font-size: 24px;
  margin-bottom: 5%;
}

#subscription-cta{
  width: 100%;
  display: flex;
 margin: 0 auto;

  position:static;
  justify-content: space-between;
}

.imgbox{
  width: 40%;
  height: 100%;
}

.productimg{
  width: 100%;
  margin-bottom: 5%;
}

.positionfixed{
  position: fixed!important;
}
.Price-box{
  width: 50%;
}
.Price-box>p{
  text-align: start;
  color: rgb(216, 152, 68);
  font-size: 24px;
}
.Price-box>h2{
  text-align: start;
  font-size: 48px;
}

.price-card{
  background-color: #ddd;
  border-radius: 10px;
  display: flex;
  color: #333;
  height: 10vh;
  margin: 5% 0;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.price-card>h3{
  margin: 3%;
  font-size: 36px;
  width: 30%;
}
.price-card>p{
  width: 30%;
  font-size: 42px;
}

.activePrice{
  background-color: #333!important;
  color: #ddd;
}
.price-hover{
  background-color: #aaa;
}

.total-price-box{
  display: flex;
  margin-top: 5%;
  justify-content: space-between;
}


.total-price{
  margin-left: 10%;
  font-size: 32px;
  color:burlywood;
  width: 40%;
  text-align: start;
}
.total-price p{
  font-size: 24px;
  color: #333;
}
.total-price span{
  font-size: 16px;
  color: #333;
}

.checkout-btn{
  display: flex;
  width: 50%;
  height: 10vh;
  border-radius: 20px;
  background: #ffdbed;
  align-items: center;
  justify-content: center;
  box-shadow: #666 1px 3px 5px;
}
.checkout-btn:hover{
  background: #ffbfdf;
  box-shadow: #666 1px 1px 3px;
}


.price-hide{
  display: none;
}


#footer{
  width: 100%;
  height: 20vh;
  background-color: #ccc;
}

#cptable{
  margin: 0 auto;
  margin-top: 5%;
  text-align: start;
  width: 80%;
}

#cptable td,#cptable th{
  padding-top: 3%;
}

#cptable td{
  padding-left: 10%;
}

.cptop{
  font-size: 3vw;
  margin: 5% 0;
text-align:center;
}
.cpsub{
  font-size: 2vw;
text-align:center;
}
}




@media screen  and (max-width: 768px){
  
  html,body{
    max-width: 100%;
    height: 100%;/*高さを100%にして描画エリアをとる*/
    font-family: 'EB Garamond', serif;
  }
  
  #header{
    position: fixed;
    width: 100vw;
    height: 7vh;
    display: flex;
    background-color: #e9dacb;
    align-items: center;
    z-index: 10;
top:0;
  }
  #header-logo{
    margin-left: 3%;
    font-size: 4vw;
  }
  #header-nav{
    width: 40%;
  }
  #subscription-btn{
    display: flex;
    margin-left: 5%;
    padding: 0 1%;
    height: 7vh;
    background-color: #ffdbed;
    align-items: center;
    font-size: 3vw;
    box-shadow: #666 1px 1px  1px;
  }
  #subscription-btn>a{
  
  }
  #insta-btn{
    width: 5%;
    margin-left: 3%;
  }
  .instaimg{
    width: 100%;
  }
  
  .header-content{
    position: relative;
    top: 0;
    height: 100vh;
    background-image: url(/img/top-wagashi.jpg);
    background-repeat:no-repeat;
    background-size: cover;
  }
  .header-content>img{
    width: 50vw;
  }
  
  /*=============== スクロール誘導 ===================*/
  /*スクロールダウン全体の場所*/
  .scrolldown4{
    /*描画位置※位置は適宜調整してください*/
  position:absolute;
  bottom:0;
  left:12%;
    /*矢印の動き1秒かけて永遠にループ*/
  animation: arrowmove 1s ease-in-out infinite;
  }
  
  /*下からの距離が変化して全体が下→上→下に動く*/
  @keyframes arrowmove{
      0%{bottom:0%;}
      50%{bottom:2%;}
     100%{bottom:0%;}
  }
  
  /*Scrollテキストの描写*/
  .scrolldown4 span{
    display: block;
    /*描画位置*/
  position: absolute;
  left:-30px;
  bottom:10px;
    /*テキストの形状*/
  color: #eee;
  font-size: 3vh;
  letter-spacing: 0.1em;
  /*縦書き設定*/
  -ms-writing-mode: tb-rl;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
  }
  
  /* 矢印の描写 */
  .scrolldown4:after{
  content:"";
    /*描画位置*/
  position: absolute;
  bottom:0;
  right:0;
    /*矢印の形状*/
  width:3px;
  height: 100px;
  background:#eee;
  }
  
  
  /*========= ナビゲーションのためのCSS ===============*/
  
  /*アクティブになったエリア*/
  #g-nav.panelactive{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
  top: 0;
  width:100%;
    height: 100vh;
  }
  
  /*丸の拡大*/
  .circle-bg{
    position: fixed;
  z-index:3;
    /*丸の形*/
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e9dacb;
    /*丸のスタート位置と形状*/
  transform: scale(0);/*scaleをはじめは0に*/
  right:-50px;
    top:-50px;
    transition: all .6s;/*0.6秒かけてアニメーション*/
  }
  
  .circle-bg.circleactive{
  transform: scale(50);/*クラスが付与されたらscaleを拡大*/
  }
  
  /*ナビゲーションの縦スクロール*/
  #g-nav-list{
    display: none;/*はじめは表示なし*/
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  #g-nav.panelactive #g-nav-list{
     display: block; /*クラスが付与されたら出現*/
  }
  
  /*ナビゲーション*/
  #g-nav ul {
  opacity: 0;/*はじめは透過0*/
    /*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
  }
  
  /*背景が出現後にナビゲーションを表示*/
  #g-nav.panelactive ul {
    opacity:1;
  }
  
  /* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
  #g-nav.panelactive ul li{
  animation-name:gnaviAnime;
  animation-duration:1s;
  animation-delay:.2s;/*0.2 秒遅らせて出現*/
  animation-fill-mode:forwards;
  opacity:0;
  }
  @keyframes gnaviAnime{
  0% {
  opacity: 0;
  }
  100% {
  opacity: 1;
  }
  }
  
  
  /*リストのレイアウト設定*/
  #g-nav li{
  text-align: center; 
  list-style: none;
  }
  
  #g-nav li a{
  color: #333;
  text-decoration: none;
  padding:10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
  }
  
  
  /*========= ボタンのためのCSS ===============*/
  .openbtn1{
  position:fixed;
  top:0px;
  right: 25px;
  z-index: 9999;/*ボタンを最前面に*/
  cursor: pointer;
    width: 50px;
    height:50px;
  }
  
  /*×に変化*/  
  .openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
  background-color: #666;
    width: 45%;
  }
  
  .openbtn1 span:nth-of-type(1) {
  top:15px; 
  }
  
  .openbtn1 span:nth-of-type(2) {
  top:23px;
  }
  
  .openbtn1 span:nth-of-type(3) {
  top:31px;
  }
  
  .openbtn1.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }
  
  .openbtn1.active span:nth-of-type(2) {
  opacity: 0;
  }
  
  .openbtn1.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
  
  
  /*==================背景========================*/
  .top-caption{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    width: 95vw;
  }
  
  .top-caption>div{
    font-size: 14vw;
    color: #ffbfdf;
    text-shadow: #000 5px 2px 3px;
  }
  .top-caption>p{
    margin-top: 5%;
    font-size: 4vw;
    color: #eee;
    text-shadow: #000 5px 2px 3px;
  }
  
  #particles-js{ 
    position:fixed;/*描画固定*/
    z-index:-1;/*描画を一番下に*/
    width: 100vw;
    height: 100vh;
    background: url(/img/AdobeStock_474197589.jpeg) repeat  top/60%;
    top: 0;
  }
  #wrapper{
    position: relative;/*描画を#particles-jsよりも上にするためposition:relative;を指定*/
    z-index: 1;/*z-indexの数字を大きくすることで描画を#particles-jsよりも上に*/
    width:100vw;
    margin: 5% 0;
  }
  
  #main-content{
    max-width: 80%;
 margin: 0 auto;

  }
  
  
  #second-content{
    width: 100%;
    position:static;
    margin-bottom: 10%;
  }
  .content-img{
    width: 100%;
    margin-top: 5%;
  }
  .content-box{
    width: 100%;
  }
  
  .second-text{
    text-align: start;
  }
  .second-text>h1{
    font-size: 8vw;
    margin-bottom: 5%;
  }
  .second-text>h2{
    font-size: 4vw;
    color: rgb(216, 152, 68);
    margin-bottom: 2%;
  }
  .second-text>p{
    font-size: 5vw;
    margin-bottom: 2%;
  }
  
  #third-content{
    width: 100%;
    position:static;
    margin-bottom: 15%;
  }
  .contentimg{
    width: 100%;
    height: 100%;
  }
  .third-text{
    text-align: start;
  }
  .third-text>h1{
    font-size: 8vw;
    margin-bottom: 5%;
  }
  .third-text>h2{
    font-size: 4vw;
    color: rgb(216, 152, 68);
    margin-bottom: 3%;
  }
  .third-text>p{
    font-size: 3vw;
    margin-bottom: 5%;
  }
  .caption-box{
    margin: 0 auto;
  }
  .caption-box>div{
    width: 100%;
    
  }
  .caption-card{
    margin-top: 5%;
  }
  .caption-card>h3{
    font-size: 6vw;
    margin-bottom: 5%;
  }
  
  #subscription-cta{
    width: 100%;
    position:static;
  }
  
  .imgbox{
    width: 100%;
    height: 100%;
  }
  
  .productimg{
    width: 100%;
    margin-bottom: 5%;
  }
  
  .positionfixed{
    position: fixed!important;
  }
  .Price-box{
    width: 100%;
  }
  .Price-box>p{
    text-align: start;
    color: rgb(216, 152, 68);
    font-size: 4vw;
  }
  .Price-box>h2{
    text-align: start;
    font-size: 8vw;
  }
  
  .price-card{
    background-color: #ddd;
    border-radius: 10px;
    display: flex;
    color: #333;
    height: 10vh;
    margin: 5% 0;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
  }
  .price-card>h3{
    margin: 3%;
    font-size: 6vw;
    width: 30%;
  }
  .price-card>p{
    width: 30%;
    font-size: 7vw;
  }
  
  .activePrice{
    background-color: #333!important;
    color: #ddd;
  }
  .price-hover{
    background-color: #aaa;
  }
  
  .total-price-box{
    display: flex;
    margin-top: 5%;
    justify-content: space-between;
  }
  
  
  .total-price{
    font-size: 7vw;
    color:burlywood;
    width: 100%;
    text-align: start;
  }
  .total-price p{
    font-size: 24px;
    color: #333;
  }
  .total-price span{
    font-size: 4vw;
    color: #333;
  }
  
  .checkout-btn{
    display: flex;
    font-size: 4vw;
    width: 50%;
    height: 10vh;
    border-radius: 20px;
    background: #ffdbed;
    align-items: center;
    justify-content: center;
    box-shadow: #666 1px 3px 5px;
  }
  .checkout-btn:hover{
    background: #ffbfdf;
    box-shadow: #666 1px 1px 3px;
  }
  
  
  .price-hide{
    display: none;
  }
  
  
  #footer{
    width: 100%;
    height: 20vh;
    background-color: #ccc;
  }

  #cptable{
    margin: 0 auto;
    margin-top: 5%;
    text-align: start;
    width: 100%;
  }
  
  #cptable td,#cptable th{
    padding-top: 3%;
  }
  
  #cptable td{
    width: 70%;
    padding-left: 5%;
  }
  
  .cptop{
    font-size: 6vw;
    margin: 15% 0 5% 0;
    text-align:center;
  }
  .cpsub{
    font-size: 4vw;
    text-align:center;
  }
  }