/* CVボタンセクション */

/* ヘッダーの「お問い合わせ」と「EN」を非表示（recruit-contactページ） */
body.page-recruit-contact .header_info .web_info,
body.recruit-contact .header_info .web_info,
body:has(main.recruit-contact) .header_info .web_info {
  display: none !important;
}

body.page-recruit-contact #global_nav ul li:has(a[href*="/contact"]),
body.recruit-contact #global_nav ul li:has(a[href*="/contact"]),
body:has(main.recruit-contact) #global_nav ul li:has(a[href*="/contact"]) {
  display: none !important;
}

body.page-recruit-contact #global_nav ul li:has(a[href*="/en"]):not(:has(ul)),
body.recruit-contact #global_nav ul li:has(a[href*="/en"]):not(:has(ul)),
body:has(main.recruit-contact) #global_nav ul li:has(a[href*="/en"]):not(:has(ul)) {
  display: none !important;
}

.cv-buttons-section {
  text-align: center;
  padding: 20px 40px !important;
}

.cv-buttons-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  text-align: center;
}

.cv-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cv-button:hover::before {
  left: 100%;
}

.cv-button:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cv-button:active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 会社見学ボタン（緑系グラデーション） */
.cv-button-visit {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #388E3C 100%);
}

.cv-button-visit:hover {
  background: linear-gradient(135deg, #45a049 0%, #4CAF50 50%, #45a049 100%);
}

/* 職種紹介ボタン（暖色系グラデーション） */
.cv-button-job {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FF6B35 100%);
}

.cv-button-job:hover {
  background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 50%, #FF8E53 100%);
}

.cv-button-text {
  position: relative;
  z-index: 1;
}

.cv-button-text::after {
  content: '→';
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.cv-button:hover .cv-button-text::after {
  transform: translateX(4px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .cv-buttons-wrapper {
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
  }

  .cv-button {
    width: 100%;
    max-width: 100%;
    padding: 16px 32px;
    font-size: 18px;
    min-width: auto;
  }
}

@media screen and (max-width: 480px) {
  .cv-button {
    padding: 14px 28px;
    font-size: 17px;
  }
}

/* ヘッダー用CVボタン */
.header_cv_buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cv-button-header {
  padding: 10px 20px;
  font-size: 18px;
  min-width: auto;
  border-radius: 25px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cv-button-header .cv-button-text::after {
  margin-left: 4px;
  font-size: 16px;
}

.cv-button-header:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

/* ヘッダー用CVボタンのレスポンシブ */
@media screen and (max-width: 1000px) {
  .header_cv_buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .cv-button-header {
    padding: 8px 16px;
    font-size: 16px;
    width: 100%;
  }
}

/* jobページ用CVボタン */
.job-cv-button-wrapper {
  margin: 0 0 48px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cv-button-job-page {
  display: inline-flex;
}

/* flowページ用CVボタン */
.flow-cv-button-wrapper {
  margin-top: 48px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cv-button-flow-page {
  display: inline-flex;
}

/* faqページ用CVボタン */
.faq-cv-button-wrapper {
  margin-top: 48px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cv-button-faq-page {
  display: inline-flex;
}

/* スマホ版メニュー用CVボタン（採用関連ページ） */
.mobile-cv-buttons-wrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
}

/* PC版では非表示 */
@media screen and (min-width: 1001px) {
  .mobile-cv-buttons-wrapper {
    display: none !important;
  }
}

.cv-button-mobile {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  min-width: auto;
}
