﻿@charset "UTF-8";

/* ▼▼▼ トップ
======================================================*/
h1.main_title {
	text-align: center;
	margin: 0 auto 150px;
}

h1.main_title img {
	max-width: 496px;
	width: 100%;
}

h2.title02 {
	margin: 0 auto 30px;
	font-size: 14px;
	text-align: center;
	font-weight: normal;
}

h2.title02 img {
	display: block;
	margin: 0 auto;
}

section {
	padding: 100px 0;
	color: #45403f;
}

/* ▼ ごあいさつ　#message 
----------------------------------------*/
#message {
	background: url(../img/top/main_pc.jpg) no-repeat top center/100%;
	padding: 150px 0;
}

.box_bg {
	background: url(../img/top/box_bg_pc.png) no-repeat center/cover;
	padding: 50px 150px;
	font-size: 14px;
}

.box_bg .read {
	margin: 0 auto 20px;
	color: #000;
	font-size: 30px;
	text-align: center;
	letter-spacing: 3px;
}

.box_bg .txt {
	line-height: 2;
	margin: 0 auto 20px;
}

/* ▼ 専門家紹介　#member 
----------------------------------------*/
#member {
	background: url(../img/top/member_bg.png) no-repeat center/cover;
}

#member ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	text-align: justify;
	text-justify: distribute-all-lines;
	display: flex;
	justify-content: center;
}

/* #member ul:after {
	content: "";
	display: inline-block;
	width: 100%;
	height: 0;
} */
#member ul li {
	display: inline-block;
	width: 24%;
	overflow: hidden;
	position: relative;
}

#member ul li:not(:last-child) {
	margin-right: 50px;
}

#member ul li .mask {
	background: rgba(100, 94, 87, 0.6);
	width: 100%;
	height: 94%;
	padding-top: 100px;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	/* マスクを表示しない */
	-webkit-transition: all 0.3s ease;
	transition: all 0.3s ease;
	transform: rotateX(50deg);
}

#member ul li a {
	color: #fff;
	font-size: 23px;
	text-decoration: none;
}

#member ul li:hover .mask {
	opacity: 1;
	/* マスクを表示する */
	transform: rotateX(0deg);
}

#member ul li p {
	text-align: center;
}

#member ul li p:first-child {
	font-weight: bold;
}

#member ul li p:last-child {
	font-size: 13px;
	margin-top: 15px;
}

/* ▼ 事務所概要・アクセス　#office 
----------------------------------------*/
#office .photo img {
	max-width: 620px;
	width: 100%;
}

.address {
	padding-top: 120px;
	position: relative;
	overflow: hidden;
}

.address div.photo {
	position: absolute;
	top: 20px;
	left: 0;
}

.address div:nth-of-type(2) {
	float: right;
	background: #e5e5e5;
	max-width: 620px;
	width: 100%;
	padding: 75px 50px;
	color: #45403f;
	overflow: hidden;
}

.address div:nth-of-type(2) div {
	float: right;
	width: 50%;
	font-size: 15px;
}

.address div:nth-of-type(2) div p:first-child span {
	display: block;
	font-weight: bold;
}

.address div:nth-of-type(2) div p:first-child {
	margin: 0 auto 40px;
	line-height: 2;
}

/* ▼▼▼ 480px〜768px
======================================================*/
@media screen and (max-width: 768px) {
	h1.main_title {
		max-width: 222px;
		width: 100%;
		margin: 0 auto 30px;
	}

	h2.title02 {
		margin: 0 auto 30px;
	}

	section {
		padding: 30px 0;
	}

	.container {
		padding: 0;
	}

	/* ▼ ごあいさつ　#message 
----------------------------------------*/
	#message {
		background: none;
		padding: 0;
	}

	#message h1 {
		background: url(../img/top/main_sp.jpg) no-repeat top center/cover;
	}

	h1.main_title {
		max-width: 100%;
		padding: 40vw 0;
		margin: 0;
	}

	h1.main_title img {
		width: 222px;
	}

	.box_bg {
		background: url(../img/top/box_bg_sp.png) no-repeat top center/100%;
		padding: 30px 10px 50px;
		font-size: 14px;
	}

	.box_bg .read {
		margin: 0 auto 10px;
		font-size: 19px;
	}

	.box_bg .txt {
		margin: 0 auto 20px;
		text-align: center;
	}

	/* ▼ 専門家紹介　#member 
----------------------------------------*/
	#member {
		background: url(../img/top/member_bg.png) no-repeat center/cover;
	}

	#member ul {
		flex-direction: column;
	}

	#member ul li {
		display: block;
		width: 80%;
		margin: 0 auto;
		overflow: hidden;
		position: relative;
		flex-direction: column;
	}

	#member ul li .mask {
		background: none;
		padding-top: 0;
		position: inherit;
		opacity: 1;
		/* マスクを表示しない */
		-webkit-transition: inherit;
		transition: inherit;
		transform: inherit;
	}

	#member ul li:not(:last-child) {
		margin-bottom: 40px;
		margin-right: auto;
	}

	#member ul li a {
		display: block;
		color: #000;
	}

	#member ul li:hover .mask {
		opacity: 1;
		/* マスクを表示する */
		transform: inherit;
	}

	#member ul li p:last-child {
		margin-top: 10px;
	}

	/* ▼ 事務所概要・アクセス　#office 
----------------------------------------*/
	.address {
		padding-top: 0px;
		position: relative;
	}

	.address div.photo {
		position: static;
	}

	.address div:nth-of-type(2) {
		float: none;
		background: #e5e5e5;
		max-width: 620px;
		width: 100%;
		padding: 30px 15px;
		color: #45403f;
		overflow: hidden;
	}

	.address div:nth-of-type(2) div {
		float: none;
		width: 100%;
		font-size: 15px;
	}

	.address div:nth-of-type(2) div p:first-child {
		margin: 0 auto 20px;
		line-height: 1.6;
		font-size: 22px;
	}

	.address div:nth-of-type(2) div p:first-child span {
		margin-bottom: 15px;
		font-size: 23px;
	}
}