/* 全体基本設定 */
main {
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

/* layout部分：sceneryとoverview-boxを横並びで中央配置 */
.layout {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 85%;
  box-sizing: border-box;
  margin-top: 20px;
}

.overview-box {
  width: 50%; /* 明確に半分指定 */
  box-sizing: border-box;
  display: flex;
  align-items: center; /* 垂直中央寄せ（任意） */
}

.overview-section {
  padding-left: 30px;
  padding-right: 30px;
}

/* 左側の画像 */
.scenery {
  flex: 1 1 300px; /* 最小幅を確保しつつ伸縮可能に */
  min-width: 0;
}

.scenery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右側のテキストボックス */
.overview-text {
  flex: 1 1 400px; /* 最小幅を確保しつつ伸縮可能に */
  padding: 30px;
  min-width: 0; /* テキストのはみ出し防止 */
  word-break: break-word; /* 単語で折り返す */
}

.overview-text p{
  line-height: 200%;
}

/* タイトルと全体見出し */
.title {
  text-align: center;
  margin-bottom: 0;
  max-width: 85%;
  width: 100%;
}

.title hr {
    border: none;
  border-top: 1px solid #ccc;
  width: 100%;
  max-width: 100%;
}

main h1 {
  color: rgb(0, 136, 34);
  font-size: 2em;
  text-align: center;
}

main h2 {
  margin-top: 40px;
  color: rgb(0, 136, 34);
  border-left: 5px solid rgb(0, 136, 34);
  padding-left: 10px;
  font-size: 1.4em;
  text-align: left;
}

.explanation {
  margin-top: 20px;
  text-align: left;
  line-height: 200%;
}

.business-box .explanation {
  margin-top: 0%;
}


.explanation h2 {
  margin-top: 0%;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  width: 100%;
  max-width: 85%;
}


/* mainエリア */
.introduction-wraper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
}

/* business-box横幅を拡大し中央寄せ */
.business-box {
  background-color: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 85%;
  margin: 0 auto;
  margin-bottom: 21.4px;
  box-sizing: border-box;
}

/* 各業務の項目 */
.business-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
}

/* 画像設定 */
.business-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1100px) {
  .business-item {
    flex-direction: column-reverse;
    align-items: flex-start;
    text-align: left;
  }

  .business-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .subtitle {
    width: 100%;
    margin-top: 10px;
    text-align: left;
  }
  .explanation {
    width: 100%;
    margin-top: 10px;
    text-align: left;
  }

  .layout {
    flex-direction: column;
    align-items: center;
  }

  .overview-box {
    width: 100%;
  }

  .scenery {
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  .overview-section {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .overview-text {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    text-align: left;
  }

  .scenery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .overview-text {
    padding: 20px;
    text-align: left;
  }

  .overview-text p {
    max-width: 85%;
  }
}

@media screen and (max-width: 600px) {
  .business-item {
    flex-direction: column-reverse;
    align-items: flex-start;
    text-align: left;
  }

  .business-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .explanation {
    margin-top: 10px;
    text-align: left;
  }
}
