/* 共通の余白設定 (統一感を持たせる) */
.section-padding {
    padding: 80px 0;
  }

  /* Workページのヘッダー */
  .work-hero {
    width: 100%;
    height: 300px;
    background: #ECF8E5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
    text-align: center;
  }

  /* タイトル中央配置 */
  .work-title {
    font-size: 48px;
    font-weight: bold;
    color: #34736C;
  }

/* ✅ デフォルトスタイル */
.work-intro {
  text-align: center;
}

.work-intro-title {
  font-size: 36px;
  font-weight: bold;
  color: #34736C;
  margin-bottom: 20px;
}

.work-intro-text {
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}


/* ✅ 992px以下（タブレット） */
@media (max-width: 992px) {
  .work-intro-title {
    font-size: 32px;
  }

  .work-intro-text {
    font-size: 18px;
  }
}

/* ✅ 768px以下（小型タブレット・大画面スマホ） */
@media (max-width: 768px) {
  .work-intro-title {
    font-size: 28px;
  }

  .work-intro-text {
    font-size: 17px;
    padding: 0 20px; /* スマホで左右余白確保 */
  }
}

/* ✅ 576px以下（スマホ） */
@media (max-width: 576px) {
  .work-intro-title {
    font-size: 24px;
  }

  .work-intro-text {
    font-size: 16px;
    padding: 0 15px;
  }
}


  /* 事業内容セクション */
.work-section {
  padding: 100px 0;
  text-align: center;
}

.work-section .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
  /* h2 タイトルの中央配置 & 余白統一 */
.work-section h2 {
  font-size: 48px;
  font-weight: bold;
  color: #34736C;
  margin-bottom: 60px; /* ✅ 統一されたマージン */
  text-align: center;
}

.work-content {
  display: flex;
  flex-wrap: wrap;           /* ✅ 折り返しを有効に */
  justify-content: center;   /* ✅ 中央に配置 */
  gap: 40px;
  margin-bottom: 70px;
}

.work-content {
  display: flex;
  flex-wrap: wrap;                /* 折り返しを有効に */
  justify-content: center;        /* 中央に揃える */
  gap: 40px;
  margin-bottom: 70px;
}

.work-item {
  width: calc(50% - 20px);        /* ✅ gapと合わせて2列にする */
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
}


.work-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.work-item h3 {
  font-size: 24px;
  font-weight: bold;
  color: #34736C;
  margin-bottom: 10px;
}

.work-item p {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  line-height: 1.6;
}

/* 事業内容ページへのボタン */
.business-section__button {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 12px 0;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  background: #34736C;
  color: white;
  border-radius: 30px;
  transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.business-section__button:hover {
  background: #285d57;
  transform: translateY(-2px);
}
@media (max-width: 992px) {
  .work-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .work-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%; /* ✅ 横幅いっぱい */
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
  }

  .work-item img {
    max-width: 45%; /* ✅ 親に応じてサイズ調整 */
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .work-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .work-text h3 {
    margin-bottom: 8px;
    color: #34736C;
    font-size: 20px;
  }

  .work-text p {
    line-height: 1.5;
    color: #333;
    font-weight: bold;
    font-size: 16px;
  }
}

@media (max-width: 768px) {

  .work-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }
  .work-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px 10px;
  }

  .work-item img {
    width: 100%;
    max-width: 500px; /* ✅ 縮小しすぎないように制限 */
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .work-text {
    align-items: center;
  }

  .work-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .work-text p {
    font-size: 16px;
    line-height: 1.6;
  }
}



/* スマホ（狭い幅）は縦並びに戻す */
@media (max-width: 576px) {
  .work-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .work-item img {
    width: 100%;
    height: auto;
  }

  .work-item > div {
    align-items: center;
  }
}
