/* 基本構成 */

html {
  height: 100%;
  width: 100%;
}

body {
  font-family: "Sawarabi Mincho";
  color: #231815;
  height: 100%;
}

header, section, footer {
  width: 100%;
}

.news_container {
  width: 600px;
  margin: 0 auto;
  text-align: center;
}

@media screen and (max-width: 600px) {
  body#second_page section:nth-of-type(1) {
    margin-top: 80px;
  }

  .news_container {
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }

}

/* レイアウト用 */
.flex { display: flex; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* 埋め込みPHP */

#newsList a{color:#C1272D;text-decoration:underline;}
#newsList a:hover{color:#C1272D;text-decoration:none;}

ul#newsList{
	margin:0 0 15px;
	padding:0;
}

ul#newsList li{
	color:#535350;
	margin:0;
	padding:.4rem;
	margin-bottom:3px;
	border-bottom:1px dotted #ccc;
	line-height:120%;
	list-style-type:none;
  font-size: .8rem;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

ul#newsList li div:first-child {
  margin-bottom: 6px;
}

ul#newsList li > div {
  text-align: left;
}

ul#newsList li > div span {
  margin-bottom: .2rem;
}

ul#newsList span.up_ymd {
	padding-top: 2px;
  }

ul#newsList span.catName {
  margin-right: auto;
  line-height: 1.2;
}

ul#newsList span.title {
  width: 100%;
  padding-top: 4px;
  padding-bottom: 6px;
}

.catName{
	display:inline-block;
	padding:2px 8px 1px;
	border:1px solid #ccc;
	border-radius:6px;
	line-height:100%;
  font-size: .7rem;
}
.newMark{
	display:inline-block;
	border:1px solid #F00;
	padding:1px 4px;
	font-size:11px;
	line-height:100%;
	background:#F00;
	color:#fff;
	box-shadow:1px 1px 1px #999;
	border-radius:8px;
	font-style:italic;
}
.comment{
	display:block;
	padding:3px 0;
	float:left;
	overflow:hidden;
}
.thumbNailWrap {
	display:block;
	width:220px;
	float:left;
	height:90px;
	overflow:hidden;
}

.thumbNailWrap img {
  object-fit: cover;
  width: 220px;
  height: 90px;
}

.title {
	line-height: 1.6;
}

/* Pager style（外部化可） */
.pager{
	text-align:right;
	padding:10px;
	clear:both;
}

/*ページャーボタン*/
.pager a{
    border: 1px solid #999;
    border-radius: 5px 5px 5px 5px;
    color: #333;
    font-size: 1.6rem;
    padding: 3px 7px 2px;
    text-decoration: none;
	margin:0 1px;
}

/*現在のページのボタン*/
.pager a.current{
    background: #999;
    border: 1px solid #999;
    border-radius: 5px 5px 5px 5px;
    color: #fff;
    font-size: 12px;
    padding: 3px 7px 2px;
	margin:0 1px;
    text-decoration: none;
}

.pager a:hover{
    background:#999;
    color: #fff;
}

.overPagerPattern{
	padding:0 2px ;
}

/* ページ詳細 */

h2{
	font-size:1.6rem;
  background: #fff;
	margin:2rem 0 1rem;
	font-weight:normal;
	border:1px solid #c8af81;
	padding:5px 10px;
  line-height: 1.5;
  text-align: left;
}

#up_ymd{
	text-align:right;
	margin:20px 10px;
}

.detailText{
  text-align: left;
  font-size: 1.2rem;
  line-height: 1.6;
}

.detailUpfile{
	margin:20px 0 35px;
	text-align:center;
}

.backORcloseBtn{
  width: 100%;
  margin: 0 auto;
	text-align:right;
	line-height:100%;
  padding-top: 20px;
}

.backORcloseBtn a{
  text-align: right;
	display:inline-block;
	padding:4px 15px;
	border:1px solid #aaa;
	color:#999;
  background: #fff;
	border-radius:6px;
	text-decoration:none;
	font-size:1.6rem;
  padding: .6rem;
}

.detailUpfile img{
	max-width:100%;
	height:auto;
}

.pNav{
	font-size:11px;
}

#detail a{color:#C1272D;text-decoration:underline;}
#detail a:hover{color:#C1272D;text-decoration:none;}
