/* === ベース設定 === */
main {
  background-color: #f9f9f9;
  color: #333;
  padding-bottom: 21.4px;
}

main h1 {
  text-align: center;
  color: rgb(0, 136, 34);
}

main h2 {
  margin-top: 40px;
  color: rgb(0,136,34);
  border-left: 5px solid rgb(0,136,34);
  padding-left: 10px;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  max-width: 85%;
}

/* === 採用テーブル === */
main table {
  width: 100%;
  max-width: 85%;
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recruit-message {
  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;
  max-width: 85%;
  margin: 0 auto;
  margin-top: 28px;
}

.recruit-text {
  flex: 1 1 400px; /* 最小幅を確保しつつ伸縮可能に */
  padding: 30px;
  min-width: 0; /* テキストのはみ出し防止 */
  word-break: break-word; /* 単語で折り返す */
}

.recruit-text h2 {
    margin-top: 40px;
  color: rgb(0,136,34);
  border-left: 5px solid rgb(0,136,34);
  padding-left: 10px;
  max-width: 85%;
  margin-left: 0;
  margin-right: auto;
}

.recruit-text p{
  line-height: 200%;
}

.recruit-img {
  flex: 1 1 300px; /* 最小幅を確保しつつ伸縮可能に */
  min-width: 0;
  object-fit: cover;
  display: block;
}

.recruit-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

th, td {
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  vertical-align: top;
}

th {
  width: 20%;
  background-color: rgb(87,228,94);
  font-weight: bold;
  text-align: left;
}

td ul {
  margin: 0;
  padding-left: 20px;
}

ul li {
  margin-bottom: 5px;
}

.notes {
  text-align: center;
  max-width: 85%;
  margin: 0 auto;
}

.notes p{
  line-height: 200%;
}
/* 左上 */
table tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

/* 右上 */
table tr:first-child td:last-child {
  border-top-right-radius: 10px;
}

/* 左下 */
table tr:last-child th:first-child {
  border-bottom-left-radius: 10px;
}

/* 右下 */
table tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

/* === エントリーボタン === */
.apply-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center; /* 縦中央にしたい場合のみ必要 */
  margin-top: 30px; /* 必要に応じて調整 */
}

.apply-button {
  display: inline-block;
  margin-top: 15px;
  padding: 1.25rem 6.25rem;
  background-color: rgb(0,136,34);
  box-shadow: 0 7px 0 rgb(1, 77, 20);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.apply-button:hover {
  background-color: rgb(0,110,28);
}

.apply-button:active {
  box-shadow: none;
  transform: translateY(7px);
}

/* === フロー全体のレイアウト === */
.flow_design03 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px auto 30px;
  max-width: 85%;
}

.flow_design03 ul {
  padding: 0;
}

.flow_design03 li {
  list-style-type: none;
}

/* === フローパーツ === */
.recruit-flow h1 {
  text-align: center;
  color: rgb(0,136,34);
  border: none;
}

.flow03 {
  position: relative;
}

.flow03::before {
  content: "";
  width: 15px;
  height: 100%;
  background: #eee;
  margin-left: -129px;
  display: block;
  position: absolute;
  top: 0;
  left: 120px;
  border-radius: 20px;
}

/* === 各ステップ項目 === */
.flow03 > li {
  position: relative;
}

.flow03 > li:not(:last-child) {
  margin-bottom: 60px;
}

.flow03 > li .icon03 {
  font-size: 0.8em;
  width: 2em;
  height: 2em;
  line-height: 2;
  text-align: center;
  font-weight: bold;
  border-radius: 100vh;
  color: #fff;
  background: #8EB83C;
  display: inline-block;
  margin-right: 0.3em;
}

.flow03 > .icon04 .icon03 {
  background: #F0F;
}

.flow03 > li dl {
  padding-left: 70px;
  position: relative;
}

.flow03 > li dl::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #8EB83C;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  left: -4px;
}

.flow03 > li dl::after {
  content: "";
  width: 50px;
  border-bottom: 1px dashed #999;
  position: absolute;
  top: 15px;
  left: 5px;
}

.flow03 > li dl dt {
  font-size: 1.3em;
  font-weight: 600;
  color: #8EB83C;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .recruit-message {
    flex-direction: column; /* 画像を下に配置 */
  }

  .recruit-img {
    height: auto; /* 高さ自動調整 */
    max-height: 300px; /* 長くなりすぎないよう制限 */
  }

  .apply-button {
    padding: 1rem 3rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .apply-button {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }
}