@charset "UTF-8";
@import url("grid.css");
@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

img {
	max-width:100%;
}
a {
    
    color: #666;
    text-decoration-line: none;
}
a:hover { 
    color: #999;
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 6px solid #0078c3;
	padding-bottom: 0.7rem;
margin-bottom: 7rem;
margin-top: 7rem;
}
.center {
	text-align: center;
}


/*ヘッダー
-------------------------------------*/
.site-header{
    background: #fff;
    position: fixed;
    width: 100%;
z-index:50;
}
.head {
	display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
}

.head h1 { 
    padding: 1rem 0;
	font-weight: bold;
	letter-spacing: 5px;
}
.snsbox {
	margin-left: auto;
	font-size: 3.0rem;
	padding: 1rem 0 0 0;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
	margin-bottom: 0.5rem;
font-weight: 500;
font-size: 16px;
}

nav li {
padding: 0 50px;
}

nav li a {
position: relative;
  display: inline-block;
  text-decoration: none;
    text-align: center;
}
nav li a::after {
  position: absolute;
  bottom: 4px;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #333;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform .3s;
}
nav li a:hover::after {
  transform-origin: left top;
  transform: scale(1, 1);
}
nav a {
    padding: 1rem;
}

/* 幅900px以下の表示
-------------------------------------*/
@media screen and (max-width: 855px){
nav li {
    padding: 0 20px;
}
nav li a {
  display: inline;
}
footer a {
    padding: 0 20px;
}
}

@media screen and (min-width: 768px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}

}

@media screen and (max-width: 599px){
.head {
	flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}
.telbox {
	margin-left: 0;
	text-align: center;
}
.head #open,#close  {
    position: absolute;
    top: 28px;
    right: 12px;
    }

nav ul {
	flex-direction: column;
}

nav li {
	padding-top: 10px;
	border-bottom: 1px solid #ccc;
	margin-bottom: 10px;
}

.underline {
    margin-bottom: 2rem;
}

/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}

footer a {
    padding: 0 20px;
}

}

/*メイン画像
-------------------------------------*/
.mainimg {
position: relative;
}

h1.mainimg {
position: absolute;
  color: white;/*文字は白に*/
  font-weight: bold; /*太字に*/
  font-size: 2em;/*サイズ2倍*/
  top: 250px;
  left: 100px;
}
.fade-in01{ 
  opacity:0;
  animation-name: sample01; 
  animation-duration: 4s; 
  animation-iteration-count:1;
  animation-fill-mode: forwards; 
}
@keyframes sample01 {
0% {
  opacity: 0;
  color:#fff;
}
90% {
 opacity: 1;
 color:#fff;
}
 100% {
  opacity: 1;
  color:#fff;
} 
}

.mainimg img {
padding-top: 139px;
	width: 100vw;
}

@media screen and (max-width: 599px){
h1.mainimg {
    top: 120px;
    left: 20px;
font-size: 1.3em;/*サイズ1.3倍*/
}
.mainimg img { 
    max-width: 100%; 
    height:auto;
padding-top: 100px;
}
}


/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
}

/*キャッチタイトル
-------------------------------------*/
h2.catch {
	text-align: center;
	color: #666;
	font-size: 3rem;
letter-spacing: 15px;
}

.text {
padding: 0 85px;
line-height: 40px;
font-size:17px;
text-align:center;
}

@media screen and (max-width: 599px){
h2.catch {
	font-size: 2rem;
}
.text {
padding: 0 20px;
}
}

/*施工事例
-------------------------------------*/
.line {border:1px solid #ccc;
padding: 5px;
margin-top: 20px;
}

.moji {font-size: 13px;
padding:5px 0 5px 5px;
margin-bottom:0; }

/*挨拶
-------------------------------------*/
.aisatsu {
  padding: 10px 95px 0;
font-size:16px;

line-height: 3;
}
.name {
text-align:right;
font-size:16px;
font-weight:bold;
}

@media screen and (max-width: 520px){
.aisatsu {
  padding: 0 20px;
font-size:16px;
}
}


/*フッター
-------------------------------------*/
footer {
    background-color: #0078c3;
    padding: 3rem 0;
background: url(../img/footer.png) no-repeat bottom #378edb;
color:#fff;
}
footer h5 {
    border-bottom: 1px solid #ccc;
font-size:13.5px;
}
footer img{
padding: 0 10px;
}
footer a{
color:#fff;
}

.button09 a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 0 auto;
  padding: 1em 3em;
  width: 300px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  background-color: #dcdcdc;
  transition: 0.3s;
}

.button09 a::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% - 0px);
  height: calc(100% - 0px);
  border: 2px solid #0078c3;
  transition: 0.2s;
}

.button09 a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 3px solid #333333;
  border-right: 3px solid #333333;
  transform: rotate(45deg);
}

.button09 a:hover::before {
  top: 0;
  left: 0;
}

.button09 a:hover {
  text-decoration: none;
  background-color: #a0c4d3;
}
/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #fff;
font-size:13px;
}
.copyright a {
    color: #000;
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 30px;
}
#pagetop a {
    display: block;
    width: 50px;
}
#pagetop a:hover {
    opacity: 0.5 ;
}

/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;
font-size: 15px;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: #959fa5;
}