.section {
  width: min(1180px, 92%);
  margin: 30px auto 70px;
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 500;
  margin: 0;
  position: relative;
  display: inline-block;
    color: #789341;

}

.section-title p {
  color: #8da35a;
  font-size: 13px;
  margin-top: 8px;
}

.greeting__box{
  background: #fff;
  border-radius: 28px;
  padding: 38px;
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 42px;
  box-shadow: 0 10px 30px rgba(80, 70, 45, .08);
}
/* 画像なしの場合 */
.greeting__box:has(.greeting__photo:empty),
.greeting__box:not(:has(.greeting__photo)) {
  grid-template-columns: 1fr;
}

.greeting__box:has(.greeting__photo:empty) .greeting__text,
.greeting__box:not(:has(.greeting__photo)) .greeting__text {
  width: 100%;
}

.access__box {
  background: #fff;
  border-radius: 28px;
  padding: 38px;
  box-shadow: 0 10px 30px rgba(80, 70, 45, .08);
}

.greeting__photo img {
  border-radius: 24px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.greeting__text h3 {
  color: #789341;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.7;
  margin-top: 0;
}

.greeting__text p {
  line-height: 2.1;
}

.director-name {
  text-align: right;
  margin-top: 28px;
  font-weight: 700;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(80, 70, 45, .08);
}

.overview-table th,
.overview-table td {
  border-bottom: 1px solid #e8e1d3;
  padding: 22px 28px;
  line-height: 1.8;
}

.overview-table th {
  width: 28%;
  background: #f4f1e7;
  color: #6f823e;
  font-weight: 700;
  text-align: left;
}

.overview-table tr:last-child th,
.overview-table tr:last-child td {
  border-bottom: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.photo-grid img {
  border-radius: 28px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(80, 70, 45, .1);
}

/* 画像1枚の時 */
.photo-grid:has(img:only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
}

.photo-grid:has(img:only-child) img {
  width: min(700px, 100%);
}

.access__text h3 {
  font-size: 24px;
  color: #789341;
  margin-top: 0;
}

.access__text p {
  line-height: 2;
}

.map iframe {
  width: 100%;
  height: 360px;
  border-radius: 22px;
}

.history-list {
  background: #fff;
  border-radius: 28px;
  padding: 20px 38px;
  box-shadow: 0 10px 30px rgba(80, 70, 45, .08);
}

.history-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid #e8e1d3;
}

.history-item:last-child {
  border-bottom: none;
}

.year {
  color: #789341;
  font-weight: 700;
}

.content {
  line-height: 1.8;
}

@media (max-width: 768px) {

  .greeting__box,
  .access__box {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  .overview-table,
  .overview-table tbody,
  .overview-table tr,
  .overview-table th,
  .overview-table td {
    display: block;
    width: 100%;
  }

  .overview-table th {
    box-sizing: border-box;
    padding: 16px 20px 8px;
  }

  .overview-table td {
    box-sizing: border-box;
    padding: 8px 20px 18px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .history-list {
    padding: 8px 24px;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

	.section-title h2{
		font-size:20px;
	}
}