/*========= 上部固定させるためのCSS ===============*/

#p-category-product{
	position: fixed;/*fixedを設定して固定*/
	height: 70px;/*高さ指定*/
	width:100%;/*横幅指定*/
    z-index: 999;/*最前面へ*/
	/*以下はレイアウトのためのCSS*/
	display: flex;
	justify-content: space-between;
	align-items: center;
    background: #f3f3f3;
	color:#fff;
	text-align: center;
	padding: 20px;
}

/*==ふわっと出現させるためのCSS*/

/*　上に上がる動き　*/

#p-category-product.UpMove{
	position: fixed;
	width:100%;
	animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
	transform: translateY(0);
  }
  to {
    opacity: 0;
	transform: translateY(-100px);
  }
}

/*　下に下がる動き　*/

/*#p-category-product.DownMove{
	position: fixed;
	width:100%;
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 0;
	transform: translateY(-100px);
  }
  to {
  	opacity: 1;
	transform: translateY(0);
  }
}*/





/*以下はレイアウトのためのCSS*/
.alink_nav {
    padding: 20px 0;
    /*top: -100%;*/
}
.alink_nav .alink_nav__box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
	width: 1150px;
}
.alink_nav__ttl {
    color: #002d82;
    font-size: 2rem;
    line-height: 1.3em;
    font-weight: 700;
    padding-right: 20px;
}
.alink_nav__ttl a{
    color: #002d82;
}
.p-category-product__anchor {
    position: relative;
}
.p-category-product__anchor ul {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
@media screen and (min-width: 768px) {
	#p-category-product .p-category-product__anchor::after {
		border-bottom: 6px solid #ccc;
	}
	.p-category-product__anchor ul li {
    margin: 30px 8px;
	}
	.p-category-product__anchor ul li:first-child {
		margin-left: 0;
	}
	.p-category-product__anchor ul li:last-child {
		margin-right: 0;
	}
	.p-category-product__anchor ul li a {
		display: block;
		background: #f3f3f3;
		border: 1px solid #002d82;
		padding: 10px 15px;
		color: #000;
		-webkit-transition: all .3s ease;
		transition: all .3s ease;
		text-decoration: none;
		font-size: 16px;
	}
	.alink_nav .p-category-product__anchor ul li a {
		font-size: 1rem;
		background: #fff;
		padding: 10px;
		white-space: nowrap;
	}
	.p-category-product__anchor ul li a:hover{
		color:#fff;
		background-color:#002d82;
	}
	.p-category-product__anchor::after {
		border-bottom: 6px solid #f3f3f3;
		left: 0;
		width: 100%;
	}
	.p-category-product__anchor::after {
		content: "";
		display: block;
		position: absolute;
		top: 50%;
		-webkit-transform: translate(0,-50%);
		transform: translate(0,-50%);
	}
}

.alink_nav .p-category-product__anchor ul .current{
	display: block;
    text-decoration: none;
    background: #002d82;
    color: #fff;
}

.alink_nav .p-category-product__anchor ul li.link_btn {
    width: 120px;
    text-align: center;
}
.alink_nav .p-category-product__anchor ul li.estimate_btn a {
    background: #e55239;
    border: 1px solid #e55239;
}
.alink_nav .p-category-product__anchor ul li.link_btn a {
    color: #fff;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}




@media screen and (max-width: 767px) {
	/* 767px以下に適用されるCSS（スマホ用） */
	.alink_nav__ttl{
		width: 70%;
	}
	.alink_nav__ttl {
    color: #002d82;
    font-size: 1rem;
    line-height: 1.3em;
    font-weight: 700;
    padding-left: 50px;
	}
	.p-category-product__anchor{
		width: 30%;
	}
	#p-category-product{
		height: 50px;/*高さ指定*/
		padding: 0px;
	}
	.alink_nav .alink_nav__box {
		width: 100%;
	}
	.alink_nav {
		padding: 20px 0;
    /*top: -100%;*/
	}
	.alink_nav .alink_nav__box {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		justify-content: space-between;
	}
	.p-category-product__anchor ul {
		display: none;
	}
	.alink_nav .link_btn {
		text-align: center;
	}
	.alink_nav .estimate_btn a {
		background: #e55239;
		border: 1px solid #e55239;
	}
	.alink_nav .link_btn a {
		color: #fff;
		-webkit-transition: all .3s ease;
		transition: all .3s ease;
		font-size: 0.8rem;
    	padding: 8px 10px;
	}
}






