@charset "utf-8";

/* =====================================================================
	index.css
===================================================================== */

/* ----------------------------------------------------------------------
 * 全デバイス共通
 * ---------------------------------------------------------------------- */

h1 img {
	width: 100%;
}
#contentBody {
	margin: 0 auto;
}
p.intro {
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.375;
	margin: 20px 0 0 0;
}
/* #policyList */
#policyList {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 40px 0 0 0;
}
#policyList li img {
	width: 100%;
}
/* hgroup */
hgroup h2 {
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
	text-align: center;
}
hgroup p {
	text-align: center;
	margin: 10px 0 0 0;
}
hgroup p img {
	height: 100%;
}
/* #outline */
#outline table {
	width: 100%;
	border-collapse: collapse;
}
#outline table th,
#outline table td {
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.375;
	border: 1px solid #231815;
	padding: 20px;
}
#outline table th {
	text-align: center;
	background-color: #eaddca;
}
/* #groupCompany */
#groupCompany ul {
	display: flex;
	flex-wrap: wrap;
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.375;
}
/* #history */
#history table {
	width: 100%;
	border-collapse: collapse;
}
#history table th,
#history table td {
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.375;
}
#history table th {
	text-align: right;
	background-color: #eaddca;
	white-space: nowrap;
	box-sizing: border-box;
}
#history p.histryParagraph {
	font-size: 1.6rem;
	font-weight: 500;
	text-align: center;
	line-height: 1.3;
	color: #e95513;
	display: flex;
	justify-content: center;
	align-items: center;
	background-size: cover;
}

#futureBody p {
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.375;
	margin: 1em 0 0 0;
}
#futureImg img {
	width: 100%;
}

.baseSet h4 {
	font-size: 2rem;
	font-weight: 900;
	line-height: 1;
	position: relative;
	display: inline-block;
	padding: 0 1.125em;
}
.baseSet h4::before,
.baseSet h4::after {
	content: '';
	position: absolute;
	width: 1em;
	height: 1em;
	background-color: #eaddca;
	top: 0;
}
.baseSet h4::before {
	left: 0;
}
.baseSet h4::after {
	right: 0;
}
.baseSet p {
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.375;
}
.baseSet li {
	margin: 40px 0 0 0;
}
.baseInfo {
	display: flex;
	flex-wrap: wrap;
	margin: 20px 0 0 0;
}
.baseInfoTxt p:not(:first-of-type) {
	margin: 20px 0 0 0;
}
.baseInfoImg img {
	width: 100%;
}

#links {
	font-size: 1.6rem;
	font-weight: 900;
	display: flex;
	justify-content: center;
}
#links li {
	padding: 0 0 0 calc(20px + 25px);
	position: relative;
}
#links li::before {
	content: '';
	position: absolute;
	display: block;
	background: #000;
	height: 25px;
	width: 25px;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	top: -4.5px;
	left: 0;
}
#links li:not(:first-of-type) {
	margin: 40px 0 0 0;
}


/* --------------------------------------------------
 * 画面の横幅が960px以上（PC）
 * -------------------------------------------------- */
@media screen and (min-width: 960px){
	#contentBody {
		width: 920px;
	}
	/* #policyList */
	#policyList {
		gap: 0 20px;
	}
	#policyList li {
		width: calc((100% - 40px)/3);
	}
	/* hgroup */
	hgroup h2 {
		margin: 70px 0 0 0;
	}
	hgroup p {
		height: 50px;
	}
	/* #outline */
	#outline table {
		margin: 40px 0 0 0;
	}
	#outline table th {
		width: 140px;
	}
	/* #groupCompany */
	#groupCompany ul {
		justify-content: flex-start;
		gap: 20px 40px;
		margin: 40px 0 0 0;
	}
	/* #history */
	#history table {
		margin: 40px 0 0 0;
	}
	#history table th,
	#history table td {
		padding: 25px 30px;
	}
	#history table th {
		width: 292px;
	}
	#history table tr:first-of-type th,
	#history table tr:first-of-type td {
		padding: 30px 30px 25px 30px;
	}
	#history table tr:last-of-type th,
	#history table tr:last-of-type td {
		padding: 25px 30px 30px 30px;
	}
	#history p.histryParagraph {
		height: 87px;
		background-image: url(../img/historyBG.png);
		margin: 70px 0 0 0;
	}

	#futureBody {
		margin: 40px 0 0 0;
	}
	#futureImg img {
		margin: 40px 0 0 0;
	}

	#branch {
		margin: 0 0 70px 0;
	}
	.baseInfoTxt {
		order: 2;
		width: calc(100% - 460px - 40px);
		margin: 0 0 0 40px;
	}
	.baseInfoImg {
		order: 1;
		width: 460px;
		height: 270px;
	}

	#links {
		margin: 0 0 70px 0;
	}
}


/* --------------------------------------------------
 * 画面の横幅が959pxまで（タブレット端末横）
 * -------------------------------------------------- */
@media screen and (max-width: 959px){
	#contentBody {
		width: 100%;
		box-sizing: border-box;
		padding: 0 6%;
	}
	/* #policyList */
	#policyList {
		gap: 20px;
	}
	#policyList li {
		width: 280px;
	}
	/* hgroup */
	hgroup h2 {
		margin: 40px 0 0 0;
	}
	hgroup p {
		height: 43px;
	}
	/* #outline */
	#outline table {
		margin: 20px 0 0 0;
		border-bottom: 1px solid #231815;
	}
	#outline table th,
	#outline table td {
		box-sizing: border-box;
		width: 100%;
		display: block;
		border-bottom: none;
	}
	/* #groupCompany */
	#groupCompany ul {
		justify-content: center;
		flex-direction: column;
		gap: 20px;
		margin: 20px 0 0 0;
		text-align: center;
	}
	/* #history */
	#history table {
		margin: 25px 0 0 0;
	}
	#history table th,
	#history table td {
		padding: 15px 20px;
	}
	#history table th {
		width: auto;
	}
	#history table tr:first-of-type th,
	#history table tr:first-of-type td {
		padding: 30px 20px 15px 20px;
	}
	#history table tr:last-of-type th,
	#history table tr:last-of-type td {
		padding: 15px 20px 30px 20px;
	}
	#history p.histryParagraph {
		height: 250px;
		background-image: url(../img/historyBGsp.png);
		margin: 20px 0 0 0;
	}

	#futureBody {
		margin: 20px 0 0 0;
	}
	#futureImg {
		width: 280px;
		margin: 20px auto 0 auto;
	}
	#futureImg img {
		margin: 0;
	}

	#branch {
		margin: 0 0 40px 0;
	}
	#bases {
		margin: -20px 0 0 0;
	}
	.baseSet h4 {
		margin: 0 auto;
		left: 50%;
		transform: translateX(-50%);
	}
	.baseInfo {
		flex-direction: column;
	}
	.baseInfoTxt {
		order: 1;
		width: 100%;
		margin: 0;
	}
	.baseInfoImg {
		order: 2;
		width: 100%;
		height: auto;
		margin: 20px 0 0 0;
	}
	.baseInfoImg.googleMaps {
		height: 495px;
	}

	#links {
		margin: 0 0 40px 0;
	}
}