/* 採用情報ページの募集要項と質問セクションのスタイル */

/* 共通スタイル - リクルートセクション */
.recruit-info,
.recruit-faq {
  margin-bottom: 80px;
  padding: 40px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  transition: transform 0.3s ease;
  width: calc(100% - 80px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.recruit-info:hover,
.recruit-faq:hover {
  transform: translateY(-5px);
}

.content-title {
  font-size: 28px;
  font-weight: normal;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

.content-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.content-title span:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #ffe100;
}

/* 募集要項テーブルのスタイル */
.recruit-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.recruit-table th,
.recruit-table td {
  padding: 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.recruit-table th {
  width: 25%;
  font-weight: bold;
  color: #333;
  background-color: #f9f9f9;
}

.recruit-table td ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recruit-table td ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.recruit-table td ul li:last-child {
  margin-bottom: 0;
}

.recruit-table td ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
}

/* よくある質問セクションのスタイル */
.faq-items {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 20px;
  background-color: #f9f9f9;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

.faq-question:hover {
  background-color: #f5f5f5;
}

.faq-question:after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #fff;
}

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

.faq-answer p {
  margin: 0;
  line-height: 1.8;
}

/* セクションコンテナ中央配置 */
.recruitment-section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
  .recruit-info, 
  .recruit-faq {
    padding: 30px 20px;
    margin-bottom: 40px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
  
  .content-title {
    font-size: 22px;
  }
  
  .recruit-table th,
  .recruit-table td {
    padding: 15px;
  }
  
  .recruit-table th {
    width: 100%;
    display: block;
    border-bottom: none;
    padding-bottom: 5px;
  }
  
  .recruit-table td {
    width: 100%;
    display: block;
    padding-top: 5px;
  }
  
  .faq-question,
  .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .recruit-info, 
  .recruit-faq {
    padding: 20px 15px;
    width: calc(100% - 30px);
  }
  
  .content-title {
    font-size: 20px;
  }
  
  .recruitment-section-container {
    padding: 20px 10px;
  }
}

/* セクション共通のレスポンシブスタイル - message1-sectionに合わせる */
@media (max-width: 768px) {
  .recruit-info, 
  .recruit-faq,
  .contact-section,
  .phone-number-container {
    /* message1-sectionに合わせたスタイル */
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
  
  .content-title,
  .contact-title {
    /* message1-sectionのテキストサイズに合わせる */
    font-size: 22px;
    text-align: center;
  }
  
  .contact-text,
  .recruit-table td,
  .faq-answer p,
  .phone-label {
    /* 本文テキストサイズを統一 */
    font-size: 14px;
    line-height: 1.8;
  }
  
  .contact-image {
    /* 画像幅をセクションに合わせる */
    width: 100%;
    max-width: 100%;
  }
  
  /* 共通のコンテナスタイル */
  .recruitment-section-container,
  .contact-container {
    padding: 40px 20px;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .recruit-info, 
  .recruit-faq,
  .contact-section,
  .phone-number-container {
    /* より小さい画面サイズの調整 */
    width: calc(100% - 30px);
    padding: 20px 15px;
  }
  
  .content-title,
  .contact-title {
    font-size: 20px;
  }
  
  .number {
    /* 電話番号のサイズ調整 */
    font-size: 24px;
  }
  
  .recruitment-section-container,
  .contact-container {
    padding: 20px 10px;
  }
}

/* 全セクションの共通スタイル - #welcomeセクションと合わせる */
.recruit-info,
.recruit-faq,
.contact-section {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* 画像の最大幅を統一 */
.contact-image img {
  max-width: 100%;
  height: auto;
}

/* Contact Section Styles */
.contact-section {
  min-height: 80vh;
  position: relative;
  background-color: #f9f9f9;
  overflow: hidden;
  margin-top: 100px;
  margin-bottom: 100px;
  animation: fadeIn 0.6s ease-in-out;
  display: flex;
  justify-content: center;
}

.contact-container {
  display: flex;
  height: 100%;
  max-width: 1200px;
  width: 100%;
}

.contact-content {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.contact-title {
  font-size: 36px;
  font-weight: normal;
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.contact-title span:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #ffe100;
}

.contact-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 40px;
}

.contact-text {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 60px;
  max-width: 80%;
  text-align: justify;
}

/* --- 修正: phone-number-container の横幅を広げる --- */
.phone-number-container {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  max-width: 80%; /* 親要素の幅いっぱいに */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-number-container:hover {
  transform: translateY(-5px);
}

.phone-label {
  font-size: 20px;
  margin-bottom: 10px;
  color: #666;
}

.phone-number {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 10px;
}

.phone-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.number {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.business-hours {
  font-size: 12px;
  color: #666;
}

/* --- 修正: 下のボタンを広げる --- */
.contact-button-container {
  margin-top: 20px;
  width: 100%; /* ボタンを親要素の幅いっぱいに */
  display: flex;
  justify-content: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  background-color: #333;
  color: #fff;
  padding: 16px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  width: 80%; /* ボタンの幅を大きく */
  max-width: 400px;
}

.contact-button:hover {
  background-color: #555;
}

.button-arrow {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.contact-button:hover .button-arrow {
  transform: translateX(5px);
}

.contact-image {
  flex: 1;
  overflow: hidden;
  background-color: #e6f2ff;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 1s ease;
}

.contact-image:hover img {
  transform: scale(1.03);
}

/* --- 修正: モバイル用調整 --- */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }
  
  .contact-image, .contact-content {
    width: 100%;
  }
  
  .contact-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .contact-section {
    min-height: auto;
    padding: 60px 20px;
    margin-top: 60px;
  }

  .contact-content {
    padding: 40px 20px;
  }

  .contact-title {
    font-size: 28px;
    text-align: center;
  }

  .contact-subtitle {
    text-align: center;
  }

  .contact-text {
    font-size: 14px;
    text-align: justify;
    margin-bottom: 40px;
    max-width: 100%;
  }

  /* --- 修正: phone-number-container を横幅100%に --- */
  .phone-number-container {
      width: 100%;
      max-width: 90%; /* 画像の幅に収める */
      margin: 0 auto;
    }

  .phone-number,
  .phone-label {
    font-size: 14px;
  }

  .phone-icon {
    width: 25px;
    height: 25px;
    margin-right: 8px;
  }

  .contact-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .contact-button {
    width: 90%;
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 40px 20px;
    margin-top: 40px;
  }

  .contact-title {
    font-size: 24px;
  }

  .phone-number-container {
    max-width: 100%;
    padding: 15px;
  }

  .phone-number,
  .phone-label {
    font-size: 12px;
  }

  .phone-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }

  .number {
    font-size: 16px;
  }

  .contact-button {
    width: 100%;
    max-width: none;
  }
}
