@charset "utf-8";

/* ========================================================================================================================/
	
	style.css

/======================================================================================================================== */

.inner {
	margin-bottom: 140px;
}

h2 {
	position:relative;
	display:block;
	text-align: center;
	width: 100%;
	font-size:175%;
	font-family:"Noto Serif JP","メイリオ","Meiryo","ＭＳ Ｐゴシック","Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3",sans-serif;
	letter-spacing:0.2em;
	border-bottom: 4px double #007dca;
	padding-bottom: 0.5em;
	margin:0 auto 50px;
}
@media screen and (max-width:640px) {
	h2 {
		font-size:150%;
	}	
}

article {
	padding-top: 140px;
}
article:first-of-type {
	padding-top: 0;
}

.intro {
	width: 100%;
	box-sizing: border-box;
	padding: 20px;
	margin-bottom: 40px;
	background-color: #E8F4FC;
}

.photo {
	width: 340px;
	height: 255px;
	background-color: #f0f0f0;
}

/* pagelink */
.pagelink {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-bottom: 60px;
}
.pagelink li {
	display: block;
	width: calc(25% - 15px);
	margin-bottom: 20px;
	box-sizing: border-box;
	text-align: center;
}
.pagelink li a {
	display: block;
	width: 100%;
	padding: 0.25em 0.5em;
	border: 1px solid #007dca;
	border-radius: 6px;
	color: #007dca;
	text-decoration: none;
	box-sizing: border-box;
	transition: 0.2s;
}
.pagelink li a:hover {
	background-color: #007dca;
	color: #fff;
}
@media screen and (max-width:1180px) {
	.pagelink {
		justify-content: space-around;
	}
	.pagelink li {
		width: calc(33.33% - 20px);
	}	
}
@media screen and (max-width:900px) {
	.pagelink {
		justify-content: space-between;
		align-items: stretch;
	}
	.pagelink li {
		width: calc(50% - 15px);
	}	
}


/* hakaishi */
#hakaishi .box {
	width: 100%;
	max-width: 900px;
	box-sizing: border-box;
	padding-bottom: 60px;
	margin:0 auto 80px;
	border-bottom: 1px solid #8FC1DF;
	position: relative;
}
#hakaishi .box:last-of-type {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}
#hakaishi .box::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -30px;
	border: 30px solid transparent;
	border-top: 30px solid #007dca;
}
#hakaishi .box:last-of-type:before {
	border-top:none;
}

#hakaishi .photo {
	float: right;
	margin-left: 40px;
}

#hakaishi .desc {
	width: calc(100% - 380px);
}
#hakaishi .desc h3 {
	width: 100%;
	font-size: 150%;
}
#hakaishi .desc h3 .no {
	display: inline-block;
	font-weight: 700;
	width: 1em;
	padding: 0.2em 0.25em;
	background-color: #007dca;
	color: #fff;
	text-align: center;
	margin-right: 0.5em;
}
#hakaishi .desc p {
	margin-top: 1em;
}
@media screen and (max-width:800px) {
	#hakaishi .photo {
		float: none;
		margin:0 auto 40px;
	}
	#hakaishi .desc {
		width: 100%;
	}	
}
@media screen and (max-width:640px) {
	#hakaishi .desc h3 {
		font-size: 125%;
	}
}


/* kouhou */
#kouhou .box {
	max-width: 900px;
	box-sizing: border-box;
	padding-bottom: 100px;
	margin:0 auto;
}
#kouhou .box:last-of-type {
	padding-bottom: 0;
}

#kouhou .photo,
#kouhou .photobox {
	float: right;
	margin-left: 40px;
  text-align: center;
}
#kouhou .photobox .photo {
  float: left;
  width: 210px;
  height: 158px;
  margin-left: 20px;
}
#kouhou .photobox p {
  margin-top: 0.5em;
}

#kouhou .desc h3 {
	width: 100%;
	font-size: 150%;
}
#kouhou .desc h3 .no {
	display: inline-block;
	font-weight: 700;
	width: 1em;
	padding: 0.2em 0.25em;
	background-color: #007dca;
	color: #fff;
	text-align: center;
	margin-right: 0.5em;
}
#kouhou .desc p {
	margin-top: 1em;
}
@media screen and (max-width:920px) {
	#kouhou .box {
		border-bottom: 1px solid #8FC1DF;
		padding-bottom: 60px;
		margin-bottom: 80px;
	}
	#kouhou .box:last-of-type {
		border-bottom: none;
		padding-bottom: 0;
		margin-bottom: 0;
	}
	#kouhou .photo,
  #kouhou .photobox {
		float: none;
		margin:0 auto 40px;
	}
  #kouhou .photobox {
    display: flex;
    justify-content: space-between;
	}
  #kouhou .photobox .photo {
    width: 264px;
    height: 198px;
    margin-left: inherit;
	}
	#kouhou .desc {
		width: 100%;
	}	
}
@media screen and (max-width:640px) {
	#kouhou .desc h3 {
		font-size: 125%;
	}
}


/* hakajimai */
#hakajimai .nagare {
	margin-bottom:40px; 
}
#hakajimai .box {
	width: 100%;
	max-width: 900px;
	box-sizing: border-box;
	padding-bottom: 60px;
	margin: 0 auto 80px;
	border-bottom: 1px solid #8FC1DF;
	position: relative;
}
#hakajimai .box:last-of-type {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}
#hakajimai .box::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -30px;
	border: 30px solid transparent;
	border-top: 30px solid #007dca;
}
#hakajimai .box:last-of-type:before {
	border-top:none;
}

#hakajimai .desc h3 {
	width: 100%;
	font-size: 150%;
}
#hakajimai .desc h3 .no {
	display: inline-block;
	font-weight: 700;
	width: 1em;
	padding: 0.2em 0.25em;
	background-color: #007dca;
	color: #fff;
	text-align: center;
	margin-right: 0.5em;
}
#hakajimai .desc p {
	margin-top: 1em;
}
@media screen and (max-width:640px) {
	#hakajimai .desc h3 {
		font-size: 125%;
	}
}
#hakajimai .before_after {
	width: 100%;
	max-width: 800px;
	margin: 0 auto 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#hakajimai .before_after:first-of-type {
	margin-top:40px; 
}
#hakajimai .before_after:last-of-type {
  margin-bottom: 0;
}
#hakajimai .before,
#hakajimai .after {
	width: 340px;
	text-align: center;
}
#hakajimai .before p,
#hakajimai .after p {
	margin-top: 0.5em;
}
#hakajimai .arrow {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 30px 0 30px 30px;
	border-color: transparent transparent transparent #007dca;	
}
@media screen and (max-width:860px) {
	#hakajimai .before_after {
		max-width: 600px;
	}
	#hakajimai .before,
	#hakajimai .after {
		width: 250px;
	}
	#hakajimai .before .photo,
	#hakajimai .after .photo {
		width: 100%;
		height: auto;
		background: none;
	}	
}


/* reform */
#reform .before_after {
	width: 100%;
	max-width: 800px;
	margin: 0 auto 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#reform .before_after:last-of-type {
  margin-bottom: 0;
}
#reform .before,
#reform .after {
	width: 340px;
	text-align: center;
}
#reform .before p,
#reform .after p {
	margin-top: 0.5em;
}
#reform .arrow {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 30px 0 30px 30px;
	border-color: transparent transparent transparent #007dca;	
}
@media screen and (max-width:860px) {
	#reform .before_after {
		max-width: 600px;
	}
	#reform .before,
	#reform .after {
		width: 250px;
	}
	#reform .before .photo,
	#reform .after .photo {
		width: 100%;
		height: auto;
		background: none;
	}	
}



/* syukatsu */
#syukatsu .intro {
	background-color: inherit;
	padding: 0;
}
#syukatsu .photo_box {
	width: 100%;
	margin: 0 auto 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#syukatsu .photo {
	width: calc(33.33333% - 20px);
	height:100%; 
}
@media screen and (max-width:860px) {
	#syukatsu .photo_box {
		max-width: 570px;
	}
}


/* kaimyo */
#kaimyo .intro {
	background-color: inherit;
	padding: 0;
}
#kaimyo .photo_box {
	width: 100%;
	max-width: 800px;
	margin: 0 auto 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#kaimyo .photo {
	width: 340px;
	height:100%; 
}

@media screen and (max-width:800px) {
	#kaimyo .photo {
		width:265px; 
		float: none;
	}
}

/* daikou */
#daikou .intro {
	background-color: inherit;
	padding: 0;
}

/* mitori */
#mitori {
	margin-bottom: 140px;
}

#mitori .intro {
	background-color: inherit;
	padding: 0;
}

#mitori p.button {
	width:600px;
	margin:50px auto 0 auto;
	}
	#mitori p.button a {
		display:block;
		color:#ffffff;
		text-align:center;
		text-decoration:none;
		line-height:80px;
		box-sizing:border-box;
		background:#007dca url("../image/layout/ic_arrow03_off.png") right 20px center no-repeat;
		padding:0 0 0 20px;
		}
	#mitori p.button a:hover {
		background:#3687f2 url("../image/layout/ic_arrow03_on.png") right 20px center no-repeat;
		}
@media screen and (max-width:700px) {
	#mitori p.button {
		width:500px;
	}
}
@media screen and (max-width:640px) {
	#mitori p.button a {
		text-align: left;
		font-size: 92.5%;
	}
}


