/* IMPORT CSS */
@import url("grid.css");

img {
	max-width:100%;
	height: auto;/*高さ自動*/
	margin: 0 auto;
	vertical-align: bottom;
}
a {
    display:block;
    color: #666;
    text-decoration-line: none;
}
a:hover {
    color: #999;
}
#wrapper{
	background-color: #edf1e9;
	padding: 0 0;
	margin: 0 auto;
}

 a img:hover{
	 opacity:0.7
 }

 .clearfix:after {
    display: block;
    clear: both;
    content: "";
}
.flex{
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
}

/*ヘッダーリンクエリア
-------------------------------------*/
.headerlink{
    max-width:900px;
    margin:0 auto;
    background-color: #FFF;
    display: flex;
}

.con1{
    width: 47%;
    margin: 1% auto;
}


/*メインコンテンツ
-------------------------------------*/
.logoArea{
	max-width:900px;
	margin:0 auto;
    padding: 1.5em 0 1em;
}

.logoArea img{
	width:30%;
	margin:0 auto;
}

main {
    width:900px;
    margin:0 auto;
    background-color: #fff;
}

main img{
    display: block;
}

.intro{
    width: 100%;
    margin: 0;
    background-color: #516E51;
}

.intro p{
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5em;
    padding: 0.5em 2em;
}

.listArea {
    width: 80%;
    margin: 1em auto 3em;
    display: flex;
    flex-wrap: wrap;
}

.listArea .thumb {
    width: 25%;
    margin: 0;
    overflow:hidden;
}

.listArea .thumb img{
    transition:1s all;
}


@media (hover: hover) {
.listArea .thumb img:hover{
    transform:scale(1.2,1.2);
    transition:1s all;
}

  .listArea .thumb .arrow{
  display: none;
    }
}


.productArea {
    margin:0 auto 4em;
    padding: 0;
    background-color: #fff;
}

.productArea .photoArea {
    margin: 2em auto 0;
}

.productArea .txtArea p{
    text-align: center;
    margin: 0 auto 0.5em;
    font: 18pt "游ゴシック Medium", 游ゴシック体, "Yu Gothic Medium", YuGothic;
    font-weight: bold;
    line-height: 1em;
    }

.productArea .txtArea .tuujou{
    color: #FFF;
    font-size: 12pt;
    background-color: #000;
    vertical-align: middle;
    font-weight: normal;
    padding: 0.1em 0.5em;
}

.productArea .txtArea .price{
    margin: 0.5em;
    color: #BB0000;
    line-height: 1em;
}

.productArea .photoArea img{
    margin: 0 auto;
}

.productArea .catch{
    width: 90%;
    margin: 0 auto;
    background-color: #edf1e9;
    border-radius: 21px;
}

.productArea .catch p{
    text-align: center;
    color: #2e7539;
    font-size: 14px;
    font-weight: bolder;
    line-height: 1.5em;
    padding: 0.5em 2em;
}

.productArea .btnArea{
    width: 100%;
    display: flex;
}

.productArea .btn{
    padding: 0.5%;
}


/*=========ページトップへ戻るボタン（旧）

#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
    text-align: center;
    background-color: #E2F3D3;
    border-radius: 10px;
}
#pagetop a {
    display: block;
}

#pagetop a:hover {
	 opacity:0.7
}

#pagetop img {
    display: block;
    width: 60%;
    padding: 5% 1%;
}

#pagetop p {
    color:  #299344;
    font-size: 12px;
    font-weight: bold;
    line-height: 1em;
    margin: 0 0 4px 0;
}
=========*/

/*========= ここからページトップへ戻るボタン（新） =========*/
/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom:30px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(150px);
}

/*page-topの文字*/
#page-top .txt{
    color:  #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    background-color: #299344;
    margin: 5% 0 0 0;
    padding: 0% 5%;
    border-radius: 5px;
}

/*　上に上がる動き　*/
#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(150px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*　下に下がる動き　*/
#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(150px);
  }
}

/*画像の切り替えと動き*/
#page-top a {
    /*aタグの形状*/
	display: block;
	width: 100px;
	height: 100px;
	color: #333;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.6rem;
    /*背景画像の指定*/
	background: url("../img/b-chan1.png") no-repeat center;
	background-size: contain;
}

#page-top.floatAnime a{
	width: 100px;
	height: 130px;
    /*背景画像の指定*/
	background: url("../img/b-chan2.png") no-repeat center;
	background-size: contain;
    /*アニメーションの指定*/
	animation: floatAnime 2s linear infinite;
	opacity: 0;
}

@keyframes floatAnime {
  0% { transform: translateX(0); opacity: 0; }
  25% { transform: translateX(-6px);opacity: 1; }
  50% { transform: translateX(0) }
  100% { transform: translateX(6px);opacity: 1; }
}

/*Page Topと書かれたテキストの位置*/
#page-top span{
    position: absolute;
    bottom: -20px;
    right: 20px;
	color: #666;
}
/*検証のためのCSS*/
section{
padding: 500px 0;
}

/*========= ここまでページトップへ戻るボタン =========*/



/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){

	#wrapper{
		width:100%;
        height: auto;/*高さ自動*/
        padding: 0 0;
	    margin: 0 auto;
	}

	main{
		width:100%;
	}

	.mainimg{
		width:100%;
	}

	img{
		width:100vw;
	}
    
    .logoArea img{
	width:50%;
    }

    .listArea {
    width: 90%;
    }

    .listArea .thumb {
    width: 32.5%;
    border: #299433 solid 0.5px;
    position: relative;
    }

   .listArea .thumb .arrow{
   display: inherit;
   position: absolute;
   bottom: 4%;
   right:  -20%;
   z-index:10000;
    }

  .listArea .thumb .arrow img{
   width: 15%;
    }
    
    .productArea {
    width:98%;
    }

    .productArea .photoArea{
    display: block;
    margin: 2em auto;
    }

    .productArea .btnArea{
    flex-wrap: wrap;

    }

    .productArea .btn{
    width: 49%;
    }

 
}
