p.mag_text{
	text-align: center;
	font-size: 13px;
    line-height: 1.6em;
    font-family: arial, sans-serif;
    font-weight: bold;
	background-image: url("../images/book.png");
	background-size: contain;
    background-position: center;
}
.mag_container {
  display: flex;
  flex-direction: row;
	align-content: space-around;
	margin-top:10px;
	height: 400px;
}

.mag_container .item{
	padding: 5px;
    color: #5d627b;
    background: white;
    border-top: solid 1px #f6f6f6;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
	margin: 10px;
	width: 33%;
	position: relative;
}

.item a img{
	width:100%;
}
.mag_container ul{
	margin: 7px;
}
.mag_container li{
	font-size: 12px;
	margin-bottom: 1em;
}
.mag_container .exlink{
    position: absolute;
    text-align: center;
    margin-top: 20px;
    border: 1px solid #dcdcdc;
    padding: 5px;
    width: 90%;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}

.mag_container a{
  text-decoration: none;
}

.mag_container a:link {color:#5f5f5f;} /*未訪問のリンクの色*/
.mag_container a:visited {color:#5d627b;} /*訪問済みのリンクの色*/
.mag_container a:hover {color:#0083d5;} /*カーソルが乗っているリンクの色*/
.mag_container a:active {color:#0083d5;} /*クリック中のリンクの色*/
.exlink:hover {color:#0083d5; background-color: #dcdcdc;} /*カーソルが乗っているリンクの色*/

.css-br:before {
  content: "\A";
  white-space: pre;
}

@media screen and (max-width:640px) {
.mag_container {
  display: flex;
  flex-direction: row;
	flex-wrap: wrap;
	margin-top:10px;
	height: auto;
}
.mag_container .item{
	width: 100%;
	height: 320px;
}
.css-br{
 	display: none;
}
.mag_container .exlink{
	text-align: center;
    margin-top: 20px;
    border: 1px solid #dcdcdc;
    padding: 5px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}
}

/*.mag_container ul li:before{
	content: '';
width: 0;
height: 0;
border-style: solid;
border-width: 5px 0 5px 8.7px;
border-color: transparent transparent transparent #8c8c8c;
}*/