/* recruit-style.css */

/* 基本スタイル */
.recruit-main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  color: #333;
}

/* ヒーローセクション */
.recruit-hero {
  position: relative;
  height: 400px;
  background-image: url('/Users/ogawarikutou/Desktop/ほか弁HP/image/23422305_m.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  border-radius: 10px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgb(0, 0, 0);
  padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 水平方向 2px, 垂直方向 2px, ぼかし 4px, 色は半透明の黒 */
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* セクション共通 */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #ff6b6b;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #ff6b6b;
}

/* 採用メッセージ */
.recruit-message {
  margin: 60px 0;
}

.message-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.message-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 100%; /* 追加: 画像がコンテナを超えないように */
  height: auto; /* 追加: アスペクト比を維持 */
}

.message-text {
  flex: 1;
  min-width: 300px;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* 募集要項 */
.job-opening {
  margin: 60px 0;
}

.job-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.job-card {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.job-card:hover {
  transform: translateY(-10px);
}

.job-card h3 {
  color: #ff6b6b;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.job-details {
  display: grid;
  gap: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-item i {
  color: #ff6b6b;
  width: 20px;
  text-align: center;
}

/* 福利厚生 */
.benefits {
  margin: 60px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  background: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-item i {
  font-size: 2.5rem;
  color: #ff6b6b;
  margin-bottom: 15px;
}

.benefit-item h3 {
  margin-bottom: 10px;
}

/* 応募フォーム */
.application-form {
  margin: 60px 0;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #ff5252;
}

/* FAQ */
.faq {
  margin: 60px 0;
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 15px 20px;
  text-align: left;
  background: white;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #ff6b6b;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f9f9f9;
}

.faq-answer p {
  padding: 15px 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .recruit-hero {
      height: 300px;
  }
  
  .hero-content h2 {
      font-size: 2rem;
  }
  
  .message-content {
      flex-direction: column;
  }
  
  .job-cards {
      flex-direction: column;
      align-items: center;
  }
  
  .job-card {
      width: 100%;
  }

  .message-image {
    min-width: 100%; /* スマホでは画面幅いっぱいに */
    max-width: 100%;
    margin-bottom: 20px; /* 画像とテキストの間に余白を追加 */
  }

  
}

@media (max-width: 480px) {
  .recruit-hero {
      height: 250px;
  }
  
  .hero-content h2 {
      font-size: 1.8rem;
  }
  
  .application-form {
      padding: 20px;
  }
}