@charset "utf-8";
/* ================================================================
 ワコーハウジング
 admin  : Saori Otsuaka
 Author: Graphics Drive Inc.
 Author URI: http://www.graphics-drive.com/
 update : 2025/05/227
 
 新着情報　php工房　css
================================================================  */

/* clearfix */
.clearfix:after { content:"."; display:block; clear:both; height:0; visibility:hidden; }
.clearfix { display:inline-block; }

/* for macIE \*/
* html .clearfix { height:1%; }
.clearfix { display:block; }

/* ------------------------------------------------------------
	ニュース詳細ページ　news-detail.php
	
	詳細ページの文字サイズは入力で設定
	font size="3"くらい
------------------------------------------------------------ */

.detailText{ width: 100%; max-width: 1024px; margin: 0 auto 0; color: #000; }
.detailText p{ margin-bottom: 1rem;color: #000; }
.detailText span.comment{width:90%; margin: 10px auto; color: #F000; }/* 詳細ページの文字の幅 */


/* タイトル  */
.detailTitle{ 
	width: 100%;
	margin:0 auto 0 2rem;
	display: block;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	font-size: 25px;/* IE8以下とAndroid4.3以下用フォールバック */
    font-size: calc(2.5rem + ((1vw - 0.48rem) * -0.9722));/* 18px~25pxで可変*/
	line-height: 1.2;
	font-weight: 600;
	color: #000;
	text-align: left;
}


/* IEだけスキマが空くのでIE10以降に適用のhack */
@media all and (-ms-high-contrast: none) {
	.detailTitle{ margin-top: -50px;}
}

@media (min-width: 1200px) {/* 1200px以上*/
    .detailTitle {font-size: 2.5rem;/* 25px*/ }
}

@media screen and (max-width: 480px) {/* 480px以下*/
    .detailTitle { font-size: 1.8rem;/* 18px*/}
}


/* カテゴリー・日付*/
.tag{
	display: block;
	margin: 1rem auto;
	width: 100%;
	border-top: solid 1px #CCC;
	border-bottom: 2px solid #D2CBB5;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;flex-wrap: nowrap; /* 折り返しあり */
	-webkit-box-pack: justify;
	   -ms-flex-pack: justify;
	justify-content: flex-start;
	align-items:center;
}

/* カテゴリー  */

#cat{ 
	display:block;
	height:60px;
	width: 65px;
	text-align: center;
	background: #91A5B5; color: #FFFFFF; 
	font-size: 1.8rem;
	line-height: 1.8;
	letter-spacing: -0.05rem;
	padding:14px 1rem 0 1rem;
	margin:1rem;
	box-sizing: border-box;
	border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%;
	-webkit-transform: rotate(-25deg);
	    -ms-transform: rotate(-25deg);
	        transform: rotate(-25deg);
}

.tag .cat-0{background: #91A5B5; }
.tag .cat-1{background: #C6959C; }

/* 詳細ページの日付  */
#up_ymd{ 
	background: #FFF; color:#395246; 
	font-size: 1.5rem;
	line-height: 1.2;
	letter-spacing: 0.1rem;
	padding: 0.3rem 1rem;
	margin: 1rem 1rem 2rem 0rem;
	border-radius: 5px; -webkit-border-radius: 5px; -moz-border-radius: 5px;
	text-align: right;
}


/* 記事  */
#detail { 
	display: block;
	line-height: 1.4;
}

.detailUpfile{
	width: 40%;
	float: left;
	min-height: 200px;
	padding-bottom: 2rem;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
		overflow:hidden;
	margin: 4px 8px 4px 0px;
	padding:0px 0px;
	background: url("../images/news/news_bg.jpg") center center #FFF;
	background-size: cover;
	
}


.detailText{
	width: 58%;
	float: right;
	background:none;
	padding: 2rem;
	font-size:1.8rem;
	line-height: 1.8;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

.detailText b{font-weight: bold;}

/* ロールオーバー色 */
.detailText a{ color: #53382D; text-decoration: underline;}
.detailText a:hover{ color: #DDDDDD;  }


@media screen and (max-width: 480px){
	.detailTitle{ width: 100%; float: none;}
	#up_ymd{ width: 100%; float: none; text-align: left;}
	.detailUpfile { width: 100%; float: none; margin: 1rem auto;}
	.detailText {  width: 100%; float: none; margin: 1rem auto;}
}



/* ボタン */
.backORcloseBtn{
	width: auto; 
	max-width:300px;
	height: auto; 
	margin: 20px  auto 30px auto; 
	text-align:center;
	font-size: 1.5rem; 
	line-height: 1.5; 
	clear: both;
}

.backORcloseBtn a{
	display:block;
	width: 100%;
	height: 100%;
	padding:1rem 0rem 1rem  0px; 
    background-color: #37302D;
	color: #FFFFFF;
	text-decoration:none;
}

.backORcloseBtn a:hover{
	background: rgba(55,48,45,0.70);
	color: #FFFFFF;
}

/* パンくずリスト  */
.pNav{ font-size: 1.2rem; margin:2rem 0px; }
.pNav a:link, .pNav a:visited{ color: #C5BFBA; text-decoration: underline;}
.pNav a:hover{ color: #37302D;  }

/* ------------------------------------------------------------
	ニュース一覧　news.php	/ トップ　top-umekomi.php
------------------------------------------------------------ */
#newsWrap{
	width: 100%;
	margin:0;
	padding:0;
}

ul#newsList{
	width: 100%;
	margin:1rem 0;
	padding:0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap; /* 折り返しあり */
	-webkit-box-pack: justify;
	   -ms-flex-pack: justify;
	justify-content: flex-start;
}

ul#newsList li{
	-ms-flex-item-align:stretch;
	    -ms-grid-row-align:stretch;
	    align-self:stretch;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient:vertical;
	-webkit-box-direction:normal;
	    -ms-flex-direction:column;
	        flex-direction:column;
	-webkit-box-pack:center;
	    -ms-flex-pack:center;
	        justify-content:center;
	-ms-flex-line-pack:justify;
	    align-content:space-between;
	margin: 2rem 1.1% ;
	padding:0;
	position: relative;
	width: 31%; /* 3col */
	height: auto;
	list-style-type:none;
	border: solid 2px #AAAAAA;
	background: #FFFFFF;
}

/* お知らせマーク */
.catName{ 
	position: absolute;
	top:-1rem;
	left:-1rem;
	height: 60px;
	width: 60px;
	text-align: center;
	display:block;
	background: #91A5B5; color: #FFFFFF; 
	font-size: 1.8rem;
	letter-spacing: -0.05rem;
	padding:14px 0 0 0;
	margin:0;
	border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%;
	-webkit-transform: rotate(-25deg);
	    -ms-transform: rotate(-25deg);
	        transform: rotate(-25deg);
	z-index: 4;
}
/* カテゴリ別色分けマーク　News Event */
.cat-0 .catName{background: #91A5B5; }
.cat-1 .catName{background: #C6959C; }

/* newマークを付ける場合 */
.newMark{
	position: absolute;
	top:2.5rem;
	left:2rem;
	height: 50px;
	width: 50px;
	text-align:center;
	display:block;
	background:#FFFFFF; color:#DAA63A;
	font-size: 1.6rem;
	letter-spacing: -0.05rem;
	padding: 1.6rem 0 0 0;
	margin:0;
	border-radius: 50%; -webkit-border-radius: 50%; -moz-border-radius: 50%;
	-webkit-transform: rotate(-25deg);
	    -ms-transform: rotate(-25deg);
	        transform: rotate(-25deg);
	z-index: 5;
}

/* サムネイル画像 */
.thumbNailWrap{
	-ms-flex-item-align:start;
	    align-self:flex-start;
	display:block;
	width: 90%;
	height:220px;
	overflow:hidden;
	margin: 1rem 5%;
	padding:0px;
	background: url("../images/news/news_bg.jpg") center center #FFF;
	background-size: cover;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

.thumbNailWrap img, .thumbNailWrap a{
	display: block;
	height: 100%;
	width: 100%;
	-o-object-fit: cover;
	   object-fit: cover; /* 画像を中央の位置でトリミングする */
	-o-object-position: center top;
	   object-position: center top;
	-webkit-transition: -webkit-transform .6s ease;
	transition: -webkit-transform .6s ease;
	-o-transition: transform .6s ease;
	transition: transform .6s ease;
	transition: transform .6s ease, -webkit-transform .6s ease; /* ゆっくり変化させる */
}

.thumbNailWrap:hover img{ 
	-webkit-transform: scale(1.1); 
	    -ms-transform: scale(1.1); 
	        transform: scale(1.1); /* 拡大 */
	filter: alpha(opacity=100);
	-moz-opacity:100;
	opacity:100;
}


ul#newsList li .text_box{
	-ms-flex-item-align:end;
	    align-self:flex-end;
	display:block;
	margin: 0;
	padding: 0.5rem 1rem;
	width: 100%;
	height: 130px;
	background: #AAAAAA;
	color: #FFFFFF;
}

span.title{font-size:1.6rem; line-height:1.6;display: block; margin: 1rem 0 0 0; font-weight: bold;}

/* ロールオーバー色 */
span.title a, .pNav a{ color: #FFFFFF; text-decoration: underline; }
span.title a:hover, .pNav a:hover{ color: #666666; text-decoration:none; }

/* トップ・ニュース一覧の本文の文字 */
.comment{
	display: block;
	font-size:1.4rem;
	line-height:1.4;
	letter-spacing: 0.1em; 
}

/* 一覧ページの日付  */
span.up_ymd{
	display: block;
	font-size:1.3rem;
	margin:0  1rem 1.5rem 0;
}

@media(max-width: 900px){
	.thumbNailWrap{height: 180px;}
}

@media(max-width: 768px){
	ul#newsList li{width: 46%; margin: 2rem 2%;}
	.thumbNailWrap{height: 180px;}
}
	
@media screen and (max-width: 480px){
	ul#newsList{-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column; }
	ul#newsList li{width: 90%; margin: 2rem auto;}
}

/* ----Pager style ページャー ----------------------- */


.pager{
	text-align:left;
	padding:1rem 0;
	clear:both;
}
/*ページャーボタン*/
.pager a{
	display: inline-block;
    border:none;
    border-radius: 5px;
    color: #FFFFFF;
	background: #C5C0BB;
    font-size: 12px;
    padding:0.3rem 1rem;
    text-decoration: none;
	margin:0.2rem ;
}

/*現在のページのボタン*/
.pager a.current{
    background: #37302D;
	border:none;
    border-radius: 5px;
    color: #FFFFFF;
    font-size: 12px;
     padding:0.3rem 1rem;
    text-decoration: none;
	margin:0.2rem ;
}

.pager a:hover{
    background:#A88476;
    color: #FFFFFF;
}

.overPagerPattern{
	padding:1rem ;	
}
