@charset "UTF-8";

/* 基本設定： ページ全体 */
body {
	margin: 0;
	font-family: 'メイリオ',
		'Hiragino Kaku Gothic Pro', 
		sans-serif;
}

a:link {
    text-decoration: none;
}

/* ヘッダー */
header {
	top: 0;
	left: 0;
	z-index: 100;
	width: 100%;
	background-color: rgba(255,255,255,0.9);
}


/* ヘッダーA: サイト名 */
.headA {
	display: inline-block;
	line-height: 70px;
	padding-left: 20px;
	padding-right: 20px;
	background-color: #ffffff;
}


/* ヘッダーB： ナビゲーションメニュー */
.headB ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.headB a {
	display: block;
	padding: 15px;
	color: inherit;
	font-size: 12px;
	text-decoration: none;
}

.headB a:hover {
	background-color: rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
	header .container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		max-width: 1000px;
		margin-left: auto;
		margin-right: auto;
	}

	.headB ul {
		display: flex;
	}
}


/* ヘッダーC： トグルボタン */

@media (max-width: 767px) {
	/* 小さい画面用の設定 */
	header .container-small {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.headC {
		margin-right: 10px;
		padding: 0;
		border: none;
		outline: none;
		background: none;
		font-size: 28px;
		opacity: 0.5;
		cursor: pointer;
	}

	.headC:hover {
		opacity: 0.3;
	}

	.headB {
		display: none;
	}
}

@media (min-width: 768px) {
	/* 大きい画面用の設定 */
	.headC {
		display: none;
	}

	.headB {
		display: block !important;
	}
}


/* トップ画像 */
.con1 {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	min-height: 450px;
	background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url(imgi/i-0.jpg);
	background-position: center;
	background-size: cover;
	color: #fff;
	text-align: center;
}

.con1 h1 {
	margin-top: 0;
	margin-bottom: 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 7vw;
	letter-spacing: 0.2em;
	margin-left: 0.2em;
}

.con1 p {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 14px;
}

.con1 img {
	width: 20%;
}

@media (min-width: 768px) {
.con1 h1 {
	font-size: 70px;
	}

.con1 p {
	font-size: 24px;
	}
}


/* リフォーム画像 */
.con2 {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	min-height: 450px;
	background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url(imgi/i-2.jpg);
	background-position: center;
	background-size: cover;
	color: #fff;
	text-align: center;
}

.con2.compact {
	height: 450px;
	min-height: 0;
	background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url(imgi/i-2.jpg);
}

.con2 h1 {
	margin-top: 0;
	margin-bottom: 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 7vw;
	letter-spacing: 0.2em;
	margin-left: 0.2em;
}

.con2 p {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 14px;
}

.con2 img {
	width: 20%;
}

.con2 a {
	display: inline-block;
	margin-top: 20px;
	padding: 10px 30px;
	border: solid 3px currentColor;
	border-radius: 6px;
	background-color: #2B5566;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}

.con2 a:hover	{
	background-image: linear-gradient(
		rgba(255,255,255,0.2),
		rgba(255,255,255,0.2)
	);
}


@media (min-width: 768px) {
.con2 h1 {
	font-size: 70px;
	}

.con2 p {
	font-size: 24px;
	}
}


/* 新築・建替工事画像 */
.con3 {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	min-height: 450px;
	background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url(imgi/i-2.jpg);
	background-position: center;
	background-size: cover;
	color: #fff;
	text-align: center;
}

.con3.compact {
	height: 450px;
	min-height: 0;
	background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url(imgi/i-2.jpg);
}

.con3 h1 {
	margin-top: 0;
	margin-bottom: 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 7vw;
	letter-spacing: 0.2em;
	margin-left: 0.2em;
}

.con3 p {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 14px;
}

.con3 img {
	width: 20%;
}

.con3 a {
	display: inline-block;
	margin-top: 20px;
	padding: 10px 30px;
	border: solid 3px currentColor;
	border-radius: 6px;
	background-color: #2B5566;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}

.con3 a:hover	{
	background-image: linear-gradient(
		rgba(255,255,255,0.2),
		rgba(255,255,255,0.2)
	);
}


@media (min-width: 768px) {
.con3 h1 {
	font-size: 70px;
	}

.con3 p {
	font-size: 24px;
	}
}


/* 屋根工事画像 */
.con4 {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	min-height: 450px;
	background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url(imgi/i-5.jpg);
	background-position: center;
	background-size: cover;
	color: #fff;
	text-align: center;
}

.con4.compact {
	height: 450px;
	min-height: 0;
	background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url(imgi/i-5.jpg);
}

.con4 h1 {
	margin-top: 0;
	margin-bottom: 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 7vw;
	letter-spacing: 0.2em;
	margin-left: 0.2em;
}

.con4 p {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 14px;
}

.con4 img {
	width: 20%;
}

.con4 a {
	display: inline-block;
	margin-top: 20px;
	padding: 10px 30px;
	border: solid 3px currentColor;
	border-radius: 6px;
	background-color: #2B5566;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}

.con4 a:hover	{
	background-image: linear-gradient(
		rgba(255,255,255,0.2),
		rgba(255,255,255,0.2)
	);
}

@media (min-width: 768px) {
.con4 h1 {
	font-size: 70px;
	}

.con4 p {
	font-size: 24px;
	}
}


/* 地図 */
.location iframe {
	width:100%;
	height: 400px;
	vertical-align: bottom;
  margin-bottom: 20px;
}

.location h2 {
	margin: 0;
	padding-top: 20px;
	padding-bottom: 20px;
	background-color: #f5fffa;
	color: #000000;
	font-size: 1.5rem;
	text-align: center;
}


/* 記事一覧C */
.list1 h1 {
	text-align: center;
}

.list1 .container {
	display: flex;
	flex-wrap: wrap;
	max-width: none;
	margin: 2px auto;
}

.list1 article {
	flex: 1 1 250px;
	display: flex;
}

.list1 a {
	position: relative;
	flex: 1;
	margin: 2px;
	display: block;
	border: solid 1px #ddd;
	background-color: currentColor;
	color: inherit;
	text-decoration: none;
}

.list1 a:hover {
	opacity: 0.8;
}

.list1 .photo {
	min-height: 250px;
	background-position: center;
	background-size: cover;
	opacity: 0.6;
}

.list1 .text {
	position: absolute;
	bottom: 0;
	left: 0;
	margin: 10px;
	color: #fff;
}

.list1 h2 {
	margin: 0;
	font-size: 18px;
}

.list1 p {
	margin: 0;
	font-size: 14px;
	opacity: 0.8;
}

@media (min-width: 1000px) {
	.list1 article {
		flex: 1 1 25%;
	}
}


.post .container {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	padding: 30px 10px;
}

.post h1 {
	padding-left: 0.5rem;
	border-left: solid 0.75rem #e0ffff;
	font-size: 1.5rem;
}

.post h2 {
	font-size: 1.5rem;
}

.post p {
	font-size: 1rem;
	line-height: 2;
}

.post img {
	max-width: 100%;
}


/* お知らせ */

div#contents-maker-news * {
	margin: 0;
	padding: 0;
	box-sizing: content-box;
}


div#contents-maker-news div.cm-box {
	padding: 25px 0;
	border-bottom: 1px dotted #333333;
}

div#contents-maker-news dl dt {
	font-weight: bold;
	margin: 0 0 3px;
}


.fb-page-wrapper {
  width: 100%;
  max-width: 500px;  /* PC用最大幅 */
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .fb-page-wrapper {
    max-width: 100%;
  }
  .fb-page {
    width: 100% !important;
    min-height: 400px; /* スマホで最低高さを確保 */
    height: auto !important;
  }
}


small{
	background:#2B5566;
	color:#fff;
	display: block;
	text-align: center;
	padding:20px;
}

#footer{
	position: relative;
	z-index: 2;
}

/*========= ページトップのためのCSS ===============*/

/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background: #ffff00;;
	border-radius: 5px;
	width: 60px;
	height: 60px;
	color: #000000;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.6rem;
	transition:all 0.3s;
}

#page-top a:hover{
	background: #777;
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom:10px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}

/*　上に上がる動き　*/

#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*　下に下がる動き　*/

#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}
