@charset "utf-8";
/* CSS Document */

/*　社長あいさつ*/

#greeting {
	padding: 4rem 0;
	background-color: #FFF;
}

.greeting-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 2rem;
}

.ceo-photo {
	flex: 1 1 360px;
	text-align: center;
}

.ceo-photo img {
	width: 100%;
	height: auto;
}

.ceo-message {
	flex: 2 1 400px;
	align-items: flex-start;
}

.ceo-message h2 {
	font-size: 1.3em;
	margin-bottom: 1rem;
	padding: 0;
	width: 100%;
	color: #333;
	border-top: none;
	border-bottom: solid 1px #333;
}

.ceo-message p {
	line-height: 1.6;
	color: #555;
	margin-bottom: 1em;
	text-align: justify;
}

.ceo-message .sign {
  text-align: right;
  font-weight: bold;
  font-size: 1em;
  color: #333;
}

/*　企業理念　*/

#philosophy {
  padding: 4rem 0;
  background-color: #fff;
}

.philosophy-title {
	color: #00a73b;
	text-align: center;
	font-weight: bold;
	font-size: 50px;
	margin-bottom: 2rem;
}

.philosophy-block {
	display: flex;
	margin-bottom: 1.5rem;
}

.philosophy-block.left {
	flex-direction: row;
}

.philosophy-block.right {
	flex-direction: row-reverse;
}

.philosophy-item {
	display: flex;
	padding: 1rem;
	background-color: #FFF;
	border: solid 2px #9fc51c;
	max-width: 800px;
	align-items: stretch;
}

.philosophy-number {
  font-size: 72px;
  font-weight: bold;
  color: #00a73b;
  min-width: 2.5rem;
  text-align: center;
	border-right: solid 2px #9fc51c;
	padding-right: 1rem;
}

.philosophy-text {
	padding-left: 1rem;
}

.philosophy-text h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: #009640;
}

.philosophy-text p {
  font-size: 0.9rem;
  color: #00a73b;
  line-height: 1.6;
}

/*　企業概要　*/

#overview {
  padding: 4rem 0;
  background-color: #FFF;
}

.overview_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2rem;
}

.overview_image {
  flex: 1 1 400px;
}

.overview_image img {
  width: 100%;
  height: auto;
}

.overview_info {
  flex: 2 1 400px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #333;
}

.company-table th,
.company-table td {
  padding: 0.5rem 1rem;
  border-bottom: 2px solid #ccc;
  vertical-align: top;
}

.company-table th {
  font-weight: bold;
  text-align: left;
}

.company-table td {
  background-color: #fff;
}

/*　営業所紹介　*/

#offices {
  padding: 4rem 0;
  background-color: #fff;
}

.office-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.office-item {
  display: flex;
	gap: 1rem;
  flex-direction: row-reverse;
  background-color: #FFF;
  overflow: hidden;
	max-width: 650px;
	margin-bottom: 2rem;
}

.office_image {
	flex: 1 1 45%;
}

.office_image img {
  width: 100%;
  height: auto;
  display: block;
}

.office_item_header {
  background-color: #9fc51c;
  color: #fff;
  padding: 0 1rem;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.office_info {
	flex: 1 1 55%;
	min-width: 250px;
}

.office_info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 0.5rem;
}

.office_map_link {
  display: inline-block;
  background-color: #009bd0;
  color: #fff;
  padding: 0.2rem 1rem;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  width: fit-content;
  cursor: pointer;
  transition: background-color 0.3s;
}

.office_map_link:hover {
  background-color: #007ac3;
}

@media screen and (max-width: 768px) {
	
	.philosophy-title {
		font-size: 40px;
	}
	
	.philosophy-item {
		flex-direction: column;
	}
	
	.philosophy-number {
		text-align: left;
		border-right: none;
		border-bottom: solid 2px #9fc51c;
		font-size: 50px;
		margin-bottom: 1rem;
		padding-top: 0;
	}
	
	.office-list {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

	}
	.office-item {
		flex-direction: column;
	}
}