/* CSS Document */
* {
  box-sizing: border-box;
}
.tilebox {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  height: 500px;
  //height: 50vw;
  /*height: 110vw;*/ /*トップページ画像フィールドの高さ。画像数が多ければこの値を多くして収まるように調整すること*/
}

.item {
	//padding: 2px;
	margin: 1px;
	background: #000;
}
.item img {
	opacity: 0.3;
	background: #000;
}
.tilebox .item {
  position: relative;
  width: 50%;
  /*width: 25%;*/
}

.tilebox .item img {
  width: 100%;
  display: block;
  transition: all .8s;
}
.tilebox .item .boxtitle {
	text-align: center;
	width: 100%;
	font-family: 'Shippori Mincho B1', serif;
	font-weight: 400;
	font-size: 24px;/*画像内部の文字の大きさ*/
	text-shadow: 0 0 8px rgba(0, 0, 0, 0);
	color: rgba(255, 255, 255, 1);
	position: absolute;
	top: 50%;
	left: 0%;
	padding: 0;
	/*padding: 0 3%;*/

	transform: translateY(-100%);


  -webkit- transform: translateY(-100%);
	-ms-transform: translate(0%,-100%);
	line-height: 24px;
	letter-spacing: 2px;

}
.item span {
	font-size: 13px;
}
.tilebox .item:hover img {
	opacity: 0.7;
}
.item:hover img {
	background: #000;
}
.tilebox .item:hover p {
	opacity: 1;
	color: rgba(255, 255, 255, 1);
	text-shadow: 0 0 8px rgba(0, 0, 0, 0.62);
	transition: all .8s;
}


@media (max-width: 667px) {
  .tilebox {
    height: auto; /*画像を単一の縦隊で並ばせるときにはauto*/
  }
  .tilebox .item {
    width: 100%;
  }
}
