﻿/*
Theme Name:heiwacon
Description:平和建設ＨＰ用テーマ
Template:twentyseventeen
*/

/*--------------------------------------------------------------
5.0 Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
textarea {
	color: #000;
	}

h1 {
	font-size: 24px;
	font-size: 1.5rem;
	font-weight: 300;
}

h2 {
	color: #666;
	font-size: 24px;
	font-size: 1.5rem;
	font-weight: 300;
	border-bottom: 1px solid #163172;
}

.home h2{
	color: #163172;
	font-size: 16px;
	font-size: 1rem;
	font-weight: 300;
    border-bottom: 1px solid #163172;
}


.home .entry-header > h2.entry-title{
	font-family: serif;
	border: none;
}

.home .entry-header > h2.entry-title:first-letter {
    color: #fff!important;
    font-weight: 300;
    padding: 0.1em;
    margin-right: 0.5rem;
    background: rgba(22,49,114,1);
    box-shadow: -0.3em 0.2em 0px 0 rgba(30,86,160, 0.3);
}
.textL{
   font-size: 2rem;
}


/*--------------------------------------------------------------
>>> index
----------------------------------------------------------------*/
.panel-image{
    background-size: contain;
}


#post-28 .panel-content{
    position: static;
    top: auto;
    background-color: rgb(240, 255, 255);
}
#post-28 .panel-image:before{
background: linear-gradient(to bottom, rgba(153,204,255, 0) 0%, rgba(153,204,255, 0.6) 100%);
background: -webkit-gradient(0);
background: linear-gradient(0);
}
#panel1 .panel-content{
width: 1000px;
    position: absolute;
    top: 30px;
    right: 0;
    background: rgba(255,255,255,0.6);
}
#panel2 .panel-content{
width: 900px;
    position: absolute;
    top: 30px;
    left: 0;
    background: rgba(255,255,255,0.6);
}

/*--------------------------------------------------------------
10.0 Links
--------------------------------------------------------------*/

/* Hover effects */

.entry-content a,
.entry-summary a,
.comment-content a,
.widget a,
.site-footer .widget-area a,
.posts-navigation a,
.widget_authors a strong {
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-transition: none;
	transition: none;
	transition: none;
	transition: none;
}
.entry-title a,
.entry-meta a,
.page-links a,
.page-links a .page-number,
.entry-footer a,
.entry-footer .cat-links a,
.entry-footer .tags-links a,
.edit-link a,
.post-navigation a,
.logged-in-as a,
.comment-navigation a,
.comment-metadata a,
.comment-metadata a.comment-edit-link,
.comment-reply-link,
a .nav-title,
.pagination a,
.comments-pagination a,
.site-info a,
.widget .widget-title a,
.widget ul li a,
.site-footer .widget-area ul li a,
.site-footer .widget-area ul li a {
	-webkit-box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 1);
	text-decoration: none;
	-webkit-transition: color 80ms ease-in, -webkit-box-shadow 130ms ease-in-out;
	transition: color 80ms ease-in, -webkit-box-shadow 130ms ease-in-out;
	transition: color 80ms ease-in, box-shadow 130ms ease-in-out;
	transition: color 80ms ease-in, box-shadow 130ms ease-in-out, -webkit-box-shadow 130ms ease-in-out;
}

.entry-content a:focus,
.entry-content a:hover,
.entry-summary a:focus,
.entry-summary a:hover,
.comment-content a:focus,
.comment-content a:hover,
.widget a:focus,
.widget a:hover,
.site-footer .widget-area a:focus,
.site-footer .widget-area a:hover,
.posts-navigation a:focus,
.posts-navigation a:hover,
.comment-metadata a:focus,
.comment-metadata a:hover,
.comment-metadata a.comment-edit-link:focus,
.comment-metadata a.comment-edit-link:hover,
.comment-reply-link:focus,
.comment-reply-link:hover,
.widget_authors a:focus strong,
.widget_authors a:hover strong,
.entry-title a:focus,
.entry-title a:hover,
.entry-meta a:focus,
.entry-meta a:hover,
.page-links a:focus .page-number,
.page-links a:hover .page-number,
.entry-footer a:focus,
.entry-footer a:hover,
.entry-footer .cat-links a:focus,
.entry-footer .cat-links a:hover,
.entry-footer .tags-links a:focus,
.entry-footer .tags-links a:hover,
.post-navigation a:focus,
.post-navigation a:hover,
.pagination a:not(.prev):not(.next):focus,
.pagination a:not(.prev):not(.next):hover,
.comments-pagination a:not(.prev):not(.next):focus,
.comments-pagination a:not(.prev):not(.next):hover,
.logged-in-as a:focus,
.logged-in-as a:hover,
a:focus .nav-title,
a:hover .nav-title,
.edit-link a:focus,
.edit-link a:hover,
.site-info a:focus,
.site-info a:hover,
.widget .widget-title a:focus,
.widget .widget-title a:hover,
.widget ul li a:focus,
.widget ul li a:hover {
	color: #000;
	-webkit-box-shadow: none;
	box-shadow: none;
}
/*--------------------------------------------------------------
12.0 Navigation
--------------------------------------------------------------*/
.navigation-top{
background: rgba(30,86,160,0.8 );
    border-bottom: none;
    border-top: none;
    }
.navigation-top .wrap{
padding: 0;
}
.navigation-top .current-menu-item > a,
.navigation-top .current_page_item > a {
color: rgba(255,255,255,1);
}
.navigation-top a {
color: rgba(255,255,255,1);
  position: relative;
	}
.main-navigation a:hover {
	color: #fff;
}
.navigation-top .menu-mainmenu-container ul li > a::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  content: '';
  background: rgba(30,86,160,0.5 );
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform .4s;
}
.navigation-top .menu-mainmenu-container ul li > a:hover::before {
 transform-origin: left top;
  transform: scale(1, 1);
}
.navigation-top .menu-mainmenu-container ul li li a::before {
background: none;
}
/* ↓ここから追記（フロントページのナビゲーション初期非表示＆スクロール表示） */
/* フロントページ：初期非表示＆スクロールで出現 */
.home .navigation-top {
    position: fixed;
    top: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s ease;
}
.home .navigation-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/*--------------------------------------------------------------
13.1 Header
--------------------------------------------------------------*/
#masthead .wrap {
    margin-left: 10%;
}
/* Site branding */
body.has-header-image .site-description,
body.has-header-video .site-description {
	color: #fff;
	opacity: 1;
	text-shadow: 4px 4px 4px #666;

}
body.has-header-image .site-title,
body.has-header-video .site-title,
body.has-header-image .site-title a,
body.has-header-video .site-title a {
	color: #fff;
text-shadow: 4px 4px 4px #666;
}



/*--------------------------------------------------------------
13.2 Front Page
--------------------------------------------------------------*/
.panel-image:before {
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.3+100 */ /* FF3.6-15 */
	background: -webkit-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(229,245,213, 0.3) 100%); /* Chrome10-25,Safari5.1-6 */
	background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(229,245,213, 1)));
	background: -webkit-linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(229,245,213, 0.3) 100%);
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(229,245,213, 0.3) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#00000000", endColorstr="#4d000000", GradientType=0); /* IE6-9 */
	bottom: 0;
	content: "";
	left: 0;
	right: 0;
	position: absolute;
	top: 100px;
}
.home .entry-title span:not(.small){
display: none;
}
.home .entry-content{
font-size: 1.2rem;
}
.home .entry-content section{
margin: 3rem 0;
}

/*--------------------------------------------------------------
13.4 Posts
--------------------------------------------------------------*/
/* Post Landing Page */
body.page:not(.twentyseventeen-front-page) .panel-content .entry-title,
body.page:not(.twentyseventeen-front-page) .page-title,
body.page:not(.twentyseventeen-front-page) .entry-title {
	color: #222;
	}


/*** More tag ***/
.entry-content .more-link{
  position: relative;
  display: inline-block;
  color: #3366ff;
  text-decoration: none;
  clear: both;
  background: rgba(206,227,246,0.6);
  padding: 0.5rem 1rem;
      margin-left: auto;
    display: block;
    width: 8em;
}
.entry-content .more-link:hover{
  text-decoration: none;
  color: #3366ff;
}
.entry-content .more-link::before {
	content: "";
	display: block;
	margin-top: 0;
}
.entry-content .more-link::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #3366ff;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform .3s;
}
.entry-content .more-link:hover::after {
  transform-origin: left top;
  transform: scale(1, 1);
}

/* Single Post */

.single-post:not(.has-sidebar) #primary,
.archive.page-one-column:not(.has-sidebar) .page-header,
.archive.page-one-column:not(.has-sidebar) #primary {
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
}



/*--------------------------------------------------------------
13.6 Footer
--------------------------------------------------------------*/

.site-footer {
	border-top: 1px solid #eee;
	background: rgba(22,49,114,1 );
	background-image: url(images/logomarkL.png);
	background-position: right;
    background-repeat: no-repeat;
}
.site-footer h2.widget-title{
color: #fff;
padding: 0;
    font-size: 2rem;
    font-weight: bold!important;
    margin-bottom: 0.2rem;
}
footer,.site-info a,.site-info a:hover{
color: #f6f6f6;
box-shadow: none;
}
.social-navigation a{
background-color: #289104;
color: #fff;
}
.social-navigation a:hover, .social-navigation a:focus{
background-color: #2da503;
}



/*--------------------------------------------------------------
　レイアウト
--------------------------------------------------------------*/

.vh100{
width: 100vw;
}


/*--------------------------------------------------------------
　固定ページ
--------------------------------------------------------------*/

.page.page-one-column:not(.twentyseventeen-front-page) #primary{
	max-width: 100%;
}

body.page:not(.twentyseventeen-front-page) .panel-content .entry-title, .page-title, body.page:not(.twentyseventeen-front-page) .entry-title{
width: 1200px;
height:330px;
margin: auto;
    padding: 70px 5%;
    color: #fff!important;
text-align: right;
text-shadow: 2px 2px 3px #000;
}

body.page:not(.twentyseventeen-front-page) .panel-content .entry-title span ,
.page-title span, body.page:not(.twentyseventeen-front-page) .entry-title span,
.blog .entry-title span,.archive .entry-title span,.single .entry-title span{
display: block;
text-align: left;
padding-top: 3rem;
    font-size: 2rem;
    letter-spacing: 0.5rem!important;
    border-bottom: 2px solid #fff;
}

section{
margin: 8rem 0;
}

/* 会社案内パララックス */
.page-id-29 #content{
    min-height: 900px;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(images/pageBakCompany.jpg);
}
.page-id-29 #content .wrap{
    background-color: rgba(255,255,255,0.7);
}

/* 会社案内 */
.page-id-29 .panel-content header.entry-header, .page-id-29 header.entry-header{
background: url("images/h1bakcompany2.jpg") no-repeat center;

}
.page .panel-content .entry-title span.small ,.page-title span.small, body.page:not(.twentyseventeen-front-page) .entry-title span.small{
display: inline;
    text-align: left;
    padding-top: inherit;
    font-size: 1.5rem;
    letter-spacing: 0!important;
    border-bottom: none;
}

/* 会社案内:　平和 */
.wrap100{
background-attachment: fixed!important;
width:100%;
}
body:not(.home) .wrap100 section{
margin: 0 auto;
padding-top: 15vh;
}

.wrap_rinen{
background: url(images/heiwaBac.png) no-repeat;
background-size: contain;
    }

.home .wrap_rinen{
background:none
}


/* 会社案内:　代表挨拶 */
.wrap_greeting2{
background: url(images/pageBak1.jpg) no-repeat;
background-size: contain;
    }

/* 会社案内:　過去の事業 */
.wrap_history{
background-color:#e2f0f7;

}

/* 会社案内:　過去の事業 */
.wrap_works2{
background: url(images/pageBak2.jpg) no-repeat;
background-size: contain;

}


table.ta1{
width: 70%;
    margin: auto;
      border-collapse: separate;
  border-spacing: 0px 5px;
}

table.ta1 th,table.ta1 td{
padding: 1rem;
}
table.ta1 th{
vertical-align: top;
background:rgba(92,126,230,1 );
color: rgba(255,255,255,1);
border-radius: 0.2rem;
    width: 20%;
}

table.ta1 td{
    border-bottom:1px solid rgba(184,195,230,1);
    background: rgba(255,255,255,0.9);
}

ul.li1{
width: 85%;
    list-style-type: none;
    margin: auto;
}
ul.li1 li{
padding: 0.5rem;
}




/* 業務案内パララックス */
.page-id-182 #content{
    min-height: 900px;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(images/pageBakCompany.jpg);
}

/* 業務案内 */

.page-id-182 .panel-content header.entry-header, body.page-id-182 header.entry-header {
background: url("images/h1bak_gyoumu.jpg") no-repeat center;
color: #fff!important;
text-align: right;
}


.gyoumB{
clear: both;
font-size: 1.2rem;
max-width: 1200px;
width:90%;
    margin: auto;
}

.leftT{
float: left;
padding: 3rem;

}
.rightImg{
float:right;
}
.leftImg{
float: left;
}
.rightT{
float:right;
padding: 3rem;
}

/* 施工事例 */
.blog .panel-content .page-header,.blog .page-header,
.category .panel-content .page-header,.category .page-header{
background: url("images/h1bakworks.jpg") no-repeat center top;
background-size: contain;
    color: #fff!important;
        width: 100%;
}
.blog .panel-content .entry-title,.blog .page-title,
.category .panel-content .entry-title,.category .page-title{
    color: #fff!important;
    text-align: right;
    text-shadow: 2px 2px 3px #000;
        letter-spacing: 0.5rem!important;
}

/*--------------------------------------------------------------
　ブログ
--------------------------------------------------------------*/


.blog .post-thumbnail span,
.category .post-thumbnail span,
.archive .post-thumbnail span{
float: none!important;
    margin-right: 0!important;
}

.blog .post-thumbnail img,
.category .post-thumbnail img,
.archive .post-thumbnail img{
    max-height: 180px;
    width: auto;
    display: block;
    margin: auto;
}
.blog .post-thumbnail span,
.category .post-thumbnail span,
.archive .post-thumbnail span{
float: none!important;
    margin-right: 0!important;
}


#secondary{
background: rgba(206,227,246,0.9);
}

#secondary h2.widget-title{
    position: relative;
    border-bottom: solid 3px #6baae4;
}
#secondary h2.widget-title:before{
content: " ";
    position: absolute;
    top: 100%;
    left: 24px;
    width: 0;
    height: 0;
    border-width: 12px;
    border-style: solid;
    border-color: transparent;
    border-top-color: #6baae4;
}
#secondary h2.widget-title:after{
content: " ";
    position: absolute;
    top: 100%;
    left: 28px;
    width: 0;
    height: 0;
    border-width: 8px;
    border-style: solid;
    border-color: transparent;
    border-top-color: rgba(206,227,246,0.9);
    z-index: 1;
}

.widget ul li a{
box-shadow: none;
}
.widget ul li, .widget ol li{
border: 0;
}

.widget ul li{
    overflow: hidden;
}
.widget ul li a{
    padding: 0.5em 1em;
       font-size: 1.2rem;
    background-color: #fff;
           transition: .5s;
    width: 100%;
    display: inline-block;
    border-left: 0.5rem solid #6baae4;
    border-right: 0.5rem solid #6baae4;
}
.widget ul li a:hover{
    color: #666;
    background: rgba(255,255,255,0.6);
}
/* 何もみつかりませんでした・・ */

.category .no-results .page-header,.search .no-results .page-header,
.archive .no-results .page-header{
background: none;
}
.category .no-results .page-header h1, .search .no-results .page-header h1,
 .archive .no-results .page-header h1{
color: #000!important;
text-shadow:none;
width: 100%;
}


/*--------------------------------------------------------------
 list
--------------------------------------------------------------*/

ul{
margin-left: 2em;
}



/*--------------------------------------------------------------
 Flex
--------------------------------------------------------------*/


.flexwrap{
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
      }
.justify-center{
  -webkit-box-pack: center;
     -ms-flex-pack: center;
   justify-content: center;
   }
.space-around {
  -ms-flex-pack: distribute;
justify-content: space-around;
}
.space-between{
  -webkit-box-pack: justify;
     -ms-flex-pack: justify;
   justify-content: space-between;
}
.img3>a,.img3 figure {
width: 30%!important;
margin-bottom:20px;
display: block;
}
.img32 figure{
width: 30%!important;
margin-bottom:20px;
display: block;
margin-right:30px;
margin-left:30px;
}

/* 縦並び */
.direction-column{
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
     -ms-flex-direction: column;
         flex-direction: column;
}

/*-------------------------------------------------------------- 
slick-slide
--------------------------------------------------------------*/

.wppsac-slick-carousel-wrp{
padding-top: 2em;

}
.slick-initialized .slick-slide{
max-height:45vh;
}

.slick-slide img {
    display: block;
    max-height: 250px;
    }

/*--------------------------------------------------------------
 汎用
--------------------------------------------------------------*/

.clear{clear:both;}

.textR{
text-align:right;
}

.margint2{
margin-top:2rem;
}

/*--------------------------------------------------------------
19.0 Media Queries
--------------------------------------------------------------*/

/****** Navigation タブレットまでスマホメニュー表示 ******/
@media only screen and (max-width: 1072px){
.wprmenu_icon span, #wprmenu_menu.wprmenu_levels ul li,
 html body div.wprm-wrapper, #wprmenu_bar, .wpr_search .wpr-search-field{
    width: 60px!important;
}
html body div#wprmenu_bar{
    width: 60px!important;
}
html body div.wprm-overlay{
background: rgba(0,0,0,0.1)!important;
}
#wprmenu_bar{
background: #4C656C!important;
}
#wprmenu_bar, html body .wprm-overlay.active,
 .cbp-spmenu-push, .wprmenu_icon span{
 right:0!important;
 }
.admin-bar #mg-wprm-wrap.cbp-spmenu.custom, body.admin-bar #wprmenu_bar{
right: 0!important;
}
#mg-wprm-wrap{
background-color: rgba(0,0,0,0.8)!important;
}
#mg-wprm-wrap li.current-menu-item > a,
#mg-wprm-wrap ul#wprmenu_menu_ul li.menu-item a:hover{
background:rgba(65,105,225,1 )!important;
}
#mg-wprm-wrap.cbp-spmenu-right, #mg-wprm-wrap.cbp-spmenu-left,
 #mg-wprm-wrap.cbp-spmenu-right.custom, #mg-wprm-wrap.cbp-spmenu-left.custom,
  .cbp-spmenu-vertical{
      width: 60%!important;
      height:80%!important;
  }
  #mg-wprm-wrap li.menu-item a {
    padding: 13px 70px; 
}
  }
/*-------320px以上（スマホ縦）-----------------------------------------------*/
@media screen and (min-width: 20em ) {

/* flex */

.flex{
  display: block;
}

/* アンカーポイント位置調整 */
span.anchor {
position: relative;
top: -70px;
display: block;
}


#masthead .wrap{
margin-left: 1%;
}
.custom-logo-link img{
max-height: 40px;
}
.navigation-top {
display:none;	
	}

.page-one-column #post-28 .panel-content .wrap {
    max-width: 85%;
    background: rgba(255,255,255,0.6);
}
.page-one-column .panel-content .wrap {
    max-width: 90%;
}
.home .entry-header > h2.entry-title:first-letter {
    color: #000;
    font-size: 1.5em;
    }

.page .panel-content .entry-title,
 .page-title, body.page:not(.twentyseventeen-front-page) .entry-title{
 font-size: 1.2rem;
 font-size:19px;
 }


.wrap{
padding-left: 1rem;
padding-right: 1rem;
}
.home .entry-content{
font-size: 1rem;
}

.panel-image {
    height: 120vh!important;
    max-height: 800px;
}

#panel1 .panel-content{
width: 90%;
    position: absolute;
    top: 30px;
    right: 0;
}
#panel2 .panel-content{
width: 90%;
    position: absolute;
    top: 30px;
    left: 0;
}
.panel-image {
    background-position: center bottom;
    }
#panel3 .panel-image {
    height: 50vh!important;
    max-height: 200px;
}

section {
    margin: 2rem 0 0 0;
}

/*  フロント　施工事例スライダー  */
.wppsac-post-carousel h2.wppsac-post-title{
padding: 0;
}

/*****  固定ページ  *****/
.site-content{
padding:0;
}

/* 会社案内:　代表挨拶 */
.wrap_greeting2{
    max-height: 600px;
    height: 600px;
} 

.wrap_rinen{
height: inherit;
    }
    
/*****  業務案内  *****/
section#civil-engineering, section#construction, section#business {
    margin: 3rem 0 0 0;
}
.wrapM0 h2 {
    color: #666;
    font-size:19px;
    font-size: 1.2rem;
    font-weight: 300;
    padding: 2rem 1rem!important;
    border: 1px solid #000;
    display: table-cell;
}
.gyoumB .leftT{
background: rgba(65,105,225,1);
    color: rgba(255,255,255,1);
    padding: 2rem;
    z-index: 5;
    width: 100%;
    font-size: 1rem;
}
#civil-engineering .flex,#construction .flex,
#business .flex{
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
#civil-engineering .flex a, #construction .flex a,
#business .flex a{
    width: 50%;
}
ul.shikaku {
    background: rgba(102,102,102,0.3);
    padding: 8%;
    font-size: 1rem;
    margin: auto;
    }
    
/* ヘッダー  */
.page-id-29 .panel-content header.entry-header,
 .page-id-29 header.entry-header{
     background-size: cover;
 }
 body.page:not(.twentyseventeen-front-page) .page .panel-content .entry-title,
  body.page:not(.twentyseventeen-front-page) .page-title,
 body.page:not(.twentyseventeen-front-page) .entry-title{
 height: 150px;
    padding: 20px 3%;
    width: 100%;
    text-align: left;
 
 }
.page .panel-content .entry-title span.small, .page-title span.small,
 body.page:not(.twentyseventeen-front-page) .entry-title span.small{
     font-size: 1rem;
 
}
body.page:not(.twentyseventeen-front-page) .panel-content .entry-title span,
 .page-title span, body.page:not(.twentyseventeen-front-page) .entry-title span,
  .blog .entry-title span, .archive .entry-title span, .single .entry-title span{
  padding-top: 1rem;
} 
.wrap_rinen{
background-position: center;
}
body:not(.home) .wrap100 section{
padding-top: 2rem;
}

/***  テーブル　********************************/
table.ta1{
width: 90%;
}
table.ta1 th,table.ta1 td{
    width: 100%;
    display: block;
}
table.ta1 th, table.ta1 td{
    padding: 0.5rem 1rem;
}

/***** 施工事例 *****/

body.page:not(.twentyseventeen-front-page) .panel-content .entry-title, .page-title, body.page:not(.twentyseventeen-front-page) .entry-title{
width: 90%;
    height: auto;
}
.blog .entry-title a,
.archive .entry-title a,
.category .entry-title a{
border-bottom: solid 3px #6baae4;
display: block;
font-size: 1rem;
}
.blog .site-main > article, .archive .site-main > article, .search .site-main > article{
width: 80%;
    padding: 1%;
    margin: 1rem auto;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 3px solid #ccc;
    border-bottom: 3px solid #ccc;
    overflow: hidden;
}

}
/*--------480px以上（スマホ横）----------------------------------------------*/
@media screen and (min-width: 30em) {

/* flex */

.flex{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* Main Navigation */
	.main-navigation a {
		padding: 0.8em 1.5em;
	}
.main-navigation li li > a, .main-navigation li li > a, .main-navigation li li > a, .main-navigation li li a, .main-navigation li li a, .main-navigation li li.current_page_item a, .main-navigation li li.current-menu-item a, .main-navigation li li.current_page_item a, .main-navigation li li.current-menu-item a{
color: rgba(0,0,0,1);
font-size: 0.9em;
}

/* 下層ページヘッダー */
.site-branding:not(.home) {
    padding: 1em;
    width: 450px;
    background: rgba(255,255,255,1);
}
.site-branding .wrap{
padding-left: 1em;
    padding-right: 1em;
}

/*/// ブログ ////*/
.blog .site-content > .wrap,
.archive .site-content > .wrap,
.category .site-content > .wrap{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  -webkit-box-pack: center;
     -ms-flex-pack: center;
   justify-content: center;
}

.blog #main, .category #main, .archive #main{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.blog .site-main > article, .archive .site-main > article,
.category.site-main > article, .search .site-main > article{
width: 31%;
    padding: 1%;
    margin: 0 0.5% 10px;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    border-right: 3px solid #ccc;
    border-bottom: 3px solid #ccc;
}

.post-thumbnail a img{
max-height: 160px;
    width: auto;
}

.blog #secondary section,.archive #secondary section, .search #secondary section{
margin: 0 1em 0;
padding: 2em 0;
}

}
	
/*--------768px以上（タブレット縦・ipad1024pxまで）---------------------------*/
@media screen and (min-width: 48em) {
  

	/* Typography */

	body,
	button,
	input,
	select,
	textarea {
    font-size: 18px;
    font-size: 1.125rem;
		line-height: 1.5;
	}
	h2{
font-size: 1.2rem;
	}
	/* Layout */
	.site-content:not(.home) {
    padding: 0 0 5.5rem 0;
}
	.wrap {
		max-width: 1200px;
		padding-left: 3em;
		padding-right: 3em;
	}
	.wrapM0 {
		width: 1200px;
		margin:auto;
	}
	.wrapM0 h2 {
    color: #666;
    font-size: 24px;
    font-size: 1.5rem;
    font-weight: 300;
    padding: 5rem!important;
    border: 1px solid #000;
    display: table-cell;
}

section {
    margin: 8rem 0;
}
	
	/* Layout　固定ページ・ブログ */
.box1{
width: 90vw;
margin: auto;
}
	
.page.page-one-column:not(.twentyseventeen-front-page) .wrap,
.blog .wrap, .archive .wrap, .search .wrap, .category .wrap{
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
	
.blog .panel-content .entry-title,.blog .page-title,
.category .panel-content .entry-title,.category .page-title{
    margin: auto;
    padding: 10px 1%;
    font-size: 2rem;
    text-align: left;
	}
	.has-sidebar:not(.error404) #primary {
		float: left;
	    width: 65%;
	}

	.has-sidebar #secondary {
		float: right;
		padding-top: 0;
		width: 23%;
	}
	
/* アンカーポイント位置調整 */
span.anchor {
position: relative;
top: -80px;
display: block;
}
	
	/* Site Branding */
.has-header-image.twentyseventeen-front-page .site-branding,
 .has-header-video.twentyseventeen-front-page .site-branding,
 .has-header-image.home.blog .site-branding, .has-header-video,
 .home.blog .site-branding{
top: 30px;
}
.site-title{
font-size: 2rem;
}
.site-description{
    font-size: 1.1rem;
}
.custom-header {
	position: absolute;
	width: 100%;
}
.custom-logo-link{
padding-right: 0.5em;
}
	

	/* 下層ページヘッダー位置合わせ */


.page:not(.home) .custom-header, .single .custom-header, .category .custom-header, .blog .custom-header {
    position: relative;
    margin-bottom: 0!important;
}
.home .entry-content{
font-size: 1.2rem;
}

	/* ブログ　Widgets */
	h2.widget-title {
		font-size: 19px;
		font-size: 1.2rem;
		margin-bottom: 1em;
		font-weight: normal!important;
		padding: 0 0 0.5em 0.5em;
	}
	
	.site-footer .widget-column.footer-widget-1{
	width: 45%;
	}
	.site-footer .widget-column.footer-widget-2{
	width: 50%;
	}
.widget ul li a{
    padding: 0.5em;
       font-size: 1rem;
       }
.blog .page-title, .archive .page-title, .category .page-title{
    height: 200px!important;
}
.blog .site-main > article, .archive .site-main > article,
 .search .site-main > article{
margin: 0 0.5% 2rem;
 }
 

	/* Footer */
	.site-footer {
		font-size: 16px;
		font-size: 1rem;
		line-height: 1.6;
		margin-top: 1px;
	}
	.site-footer section{
	margin: 0;
	}
.site-footer .widget-area {
    padding-bottom: 2em;
    padding-top: 2em;
    padding-left: 1rem;
    padding-right: 1rem;
}
	
	/* Front Page */

#panel3 .panel-image {
    height: 100vh!important;
    max-height: 600px;
}
/* 業務案内欄 */
#panel2 .panel-image {
    height: 120vh!important;
    max-height: 800px;
}

.page .panel-content .entry-title,
 .page-title, body.page:not(.twentyseventeen-front-page) .entry-title{
 font-size: 1.6rem;
 font-size:26px;
 }
 
#post-28 .panel-image{
background-size: auto;
background-position: right;
opacity: 0.7;
}
	
	.panel-content .wrap {
	padding-bottom: 3em;
    padding-top: 3em;
	}
	
.panel-image {
    background-position: center center;
    }
    
ul.shikaku {
    margin: inherit;
    }
/*  フロント　施工事例スライダー  */
.wppsac-post-carousel h2.wppsac-post-title{
padding: 0.5em 0 0;
}
	/* Pages */

	.page.page-one-column .entry-header,
	.twentyseventeen-front-page.page-one-column .entry-header,
	.archive.page-one-column:not(.has-sidebar) .page-header {
		margin: 0;
	}
	/* 個別 index*/
#primary #post-28 p{
line-height: 1.8;
    font-size: 1.2rem;
}

/*/// 会社案内:　代表挨拶 ///*/
.wrap_greeting2{
    max-height: 700px;
    height: 700px;
}

/*/// 業務案内 ////*/	
section#civil-engineering, section#construction, section#business {
    margin: 8rem 0;
}
.gyoumB .leftT{
background: rgba(65,105,225,1);
    color: rgba(255,255,255,1);
    padding: 2rem;
    z-index: 5;
    width: 45%;
    position: absolute;
    font-size: 1.2rem;
}

#civil-engineering .flex a,#civil-engineering ul,
#construction .flex a,#construction ul,
#business .flex a,#business ul.shikaku{
width:31%;
}

#business .gyoumB .leftT{
width: 45%;
}
#business .gyoumB ul{
margin: 0 0 0 1rem;
}
ul.shikaku {
    background: rgba(102,102,102,0.3);
    margin-left: 0;
    padding: 0.5em 1% 1% 5%;
    font-size: 1rem;
    width:60%;
    }
    
#construction-wrap{
background: url(images/constructionBac.jpg) no-repeat;
background-size: contain;
background-attachment:fixed;
padding: 4rem 0;
}


/*** 固定ページヘッダー  ***/
.page-id-29 .panel-content header.entry-header,
 .page-id-29 header.entry-header{
     background-size: cover;
 }
.home .panel-content .entry-title{
 height: auto!important;
        padding: 30px 0 30px 5%!important;
    width: 100%;
    text-align: center!important;
 }
.page .panel-content .entry-title, .page-title,
 body.page:not(.twentyseventeen-front-page) .entry-title,
 .blog .page-title{
 height: 330px;
        padding: 70px 5%;
    width: 100%;
    text-align: right;
 }
.page .panel-content .entry-title span.small, .page-title span.small,
 body.page:not(.twentyseventeen-front-page) .entry-title span.small{
     font-size: 1rem;
 
}
body.page:not(.twentyseventeen-front-page) .panel-content .entry-title span,
 .page-title span, body.page:not(.twentyseventeen-front-page) .entry-title span,
  .blog .entry-title span, .archive .entry-title span, .single .entry-title span{
  padding-top: 3rem;
}  

/** テーブル　**/
table.ta1{
width: 90%;
}
table.ta1 th,table.ta1 td{
    display: table-cell;
       padding: 1rem;
}
table.ta1 th{
    width: 30%;
}

/***** フロート　*****/

img.alignright{
float: none;
margin: auto;
display: block;
}


}

/*--------1072px以上（タブレット横以上）--------------------------------------*/
@media screen and ( min-width: 67em ) {

/* ヘッダー */
.site-branding:not(.home) {
    padding: 1em;
    width: 500px;
}
.custom-logo-link{
padding-right: 2em;
}
#masthead .wrap{
margin-left: 10%;
}
.custom-logo-link img{
max-height: 80px;
}


	/* Navigation */
.navigation-top {
font-size: 1.2rem;
display:block;
position: relative;
	}
.navigation-top .wrap{
max-width: 98%;
}	
.main-navigation ul ul{
background: rgba(255,255,255,0.8);
}
.main-navigation li li:hover, .main-navigation li li.focus {
    background: rgba(30,86,160,0.8);
}


.page-one-column #post-28 .panel-content .wrap {
    max-width: 73%;
    background: rgba(255,255,255,0.6);
}


/* アンカーポイント位置調整 */
span.anchor {
position: relative;
top: -100px;
display: block;
}


/* 下層ページヘッダー */
.site-branding:not(.home) {
    padding: 1em 0 2rem;
    width: 700px;
    background: rgba(255,255,255,1);
}
.site-branding .wrap{
padding-left: 3em;
    padding-right: 3em;
}



/** テーブル　**/
table.ta1{
width: 70%;
}
table.ta1 th,table.ta1 td{
    display: table-cell;
       padding: 1rem;
}
table.ta1 th{
    width: 20%;
}

/***** フロート　*****/

img.alignright{
float: right;
margin: 0 0 0 1rem;
display: inline;
}


}

/*--------1264px以上----------------------------------------------------------*/

@media screen and ( min-width: 79em ) {

	h2{
font-size: 1.5rem;
	}
	
/***** Layout *****/

.box1{
max-width: 1200px;
margin: 2rem auto 8rem;
}

.navigation-top .wrap{
max-width: 1000px;
}

/***** フロントＰ *****/
.home .entry-header > h2.entry-title:first-letter {
    font-size: 2.5em;
    }
#panel1 .panel-content{
width: 1000px;
    position: absolute;
    top: 30px;
    right: 0;
    background: rgba(255,255,255,0.6);
}
#panel2 .panel-content{
width: 900px;
    position: absolute;
    top: 30px;
    left: 0;
    background: rgba(255,255,255,0.6);
}
#panel2 .panel-image {
    height: 150vh!important;
    max-height: 1500px;
}
#panel3 .panel-image {
    height: 100vh!important;
    max-height: 800px;
}
.page .panel-content .entry-title,
 .page-title, body.page:not(.twentyseventeen-front-page) .entry-title{
 font-size: 2.2rem;
 font-size:35px;
 }

.wrap_rinen {
    height: 60vh;
}
    
/***** 業務案内 *****/
.gyoumB{
clear: both;
font-size: 1.2rem;
width: 1200px;
    margin: auto;
}

.gyoumB .leftT{
background: rgba(65,105,225,1);
    color: rgba(255,255,255,1);
    padding: 4rem;
    z-index: 5;
    width: 600px;
}
.gyoumB .rightImg{
    z-index: 4;
    margin-top:-70px;
}
ul.shikaku{
background: #999;
width: 600px;
padding: 5% 2% 5% 3% ;
    font-size: 1.2rem;
}


#civil-engineering .leftT,#construction .leftT,
#business .leftT{
position: absolute;
padding: 4rem;
    z-index: 5;
    width: 30%;
}
#construction .leftT {
    position: absolute;
    right: 5%;
}
#business .gyoumB .leftT {
    width: 30%;
}


.blog .panel-content .entry-title, .blog .page-title,
 .category .panel-content .entry-title, .category .page-title {
     max-width: 1200px; 
     max-height: 330px;
         padding: 70px 5%;
    }
 
/***** 施工事例 *****/

body.page:not(.twentyseventeen-front-page) .panel-content .entry-title, .page-title, body.page:not(.twentyseventeen-front-page) .entry-title{
width: 1200px;
    height: 330px;
} 
.widget ul li a{
    padding: 0.5em 1em;
       font-size: 1.2rem;
       }
.has-sidebar:not(.error404) #primary,
.has-sidebar #secondary{
padding-top: 3rem;
}
       
/***** footer *****/
.site-footer .wrap{
width:1200px;
margin: auto;
}

}
/*--------------------------------------------------------------
スマホ・タブレット時の固定ヘッダー重なり防止
--------------------------------------------------------------*/
@media screen and (max-width: 1072px) {
    .site-content-contain {
        padding-top: 60px; /* ヘッダーの高さに合わせて調整 */
    }
    .mob-menu-header-holder {
        background-color: rgba(255, 255, 255, 0.95) !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}
/* フロントページの見出し（entry-title）をすべて左寄せにする */
.home .panel-content .entry-title,
.home .entry-header > h2.entry-title {
    text-align: left !important;
    padding-left: 0 !important;
}


/*--------------------------------------------------------------
フロントページ：代表挨拶（.front-greeting）だけの背景固定とフル幅表示
--------------------------------------------------------------*/
.front-greeting {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;

    /* 1層目（上）：上から下へ透明→水色のグラデーション / 2層目（下）：背景画像 */
    background-image: 
        linear-gradient(to bottom, rgba(153, 204, 255, 0) 0%, rgba(153, 204, 255, 0.65) 100%),
        url("http://tr021653.try-csh.ne.jp/heiwac/wp-content/uploads/2020/06/indexImg2.png");
    
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 4rem 1rem;
}


/* 背景の上に乗る文章エリアの横幅と半透明の白背景 */
.front-greeting .greeting-inner {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    padding: 2.5rem;
    border-radius: 4px;
}

/* スマホ表示での微調整（iOSでの背景拡大防止と余白調整） */
@media screen and (max-width: 768px) {
    .front-greeting {
        background-attachment: scroll;
        padding: 2rem 1rem;
    }
    .front-greeting .greeting-inner {
        padding: 1.5rem;
    }
}
/*--------------------------------------------------------------
フロントページ：施工事例カルーセル（完全自前版）
--------------------------------------------------------------*/
.my-carousel-wrap {
    position: relative;
    padding: 0 36px;
    margin: 1.5rem 0;
}
.my-carousel-viewport {
    overflow: hidden;
    width: 100%;
}
.my-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}
/* スマホ（デフォルト）：1枚表示 */
.my-carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}
/* タブレット（600px以上）：3枚表示 */
@media screen and (min-width: 600px) {
    .my-carousel-item {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
/* PC（1024px以上）：5枚表示 */
@media screen and (min-width: 1024px) {
    .my-carousel-item {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.my-carousel-item a {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: opacity 0.3s;
}
.my-carousel-item a:hover {
    opacity: 0.8;
}
.works-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f4f4f4;
}
.works-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.works-thumb .no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 0.9rem;
}
.works-title {
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.8rem;
    margin: 0;
    line-height: 1.4;
    color: #163172;
}

/* 左右の矢印ボタン */
.my-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(22, 49, 114, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}
.my-carousel-btn:hover {
    background: rgba(22, 49, 114, 1);
}
.my-prev { left: 0; }
.my-next { right: 0; }
