/**
 * File Name: service-cta-boxes.css
 * 2026-07-03 | Final checked
 */

/* ==============================================================================
 * CTALINK BOX SECTION (CTAリンクボックス)
 * ============================================================================== */
.p-service-cta {
  width: 100%;
  padding: 40px 20px 60px 20px;
  background-color: #cccccc;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, "BIZ UDPGothic", "Meiryo", sans-serif;
}

.p-service-cta *,
.p-service-cta *::before,
.p-service-cta *::after {
  box-sizing: border-box;
}

.p-service-cta__container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-service-cta-card {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #b5b5b5;
  border-radius: 4px;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.p-service-cta-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333333;
  margin: 0 0 20px 0;
  letter-spacing: 0.03em;
}

.p-service-cta-card__action {
  width: 100%;
  max-width: 290px;
}

.p-service-cta-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.p-service-cta-card__btn:hover {
  opacity: 0.9;
}

.p-service-cta-card__btn--recruit {
  background-color: #e67e33;
}

.p-service-cta-card__btn--contact {
  background-color: #00b386;
}

.p-service-cta-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.p-service-cta-card__icon--recruit {
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  border-left: none;
  position: relative;
}

.p-service-cta-card__icon--recruit::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -4px;
  width: 10px;
  height: 2px;
  background-color: #ffffff;
}

.p-service-cta-card__icon--recruit::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 6px;
  height: 6px;
  border: solid #ffffff;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.p-service-cta-card__icon--contact {
  width: 16px;
  height: 16px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-family: "Georgia", serif;
  font-style: italic;
  font-weight: bold;
  line-height: 1;
  padding-bottom: 1px;
}

/* ==============================================================================
 * MEDIA QUERIES
 * ============================================================================== */

/* スマホ横向き（低画面高） */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .p-service-cta {
    padding: 30px 20px;
  }
  .p-service-cta__container {
    flex-direction: row;
    gap: 20px;
  }
  .p-service-cta-card {
    padding: 20px;
  }
  .p-service-cta-card__title {
    font-size: 1.05rem;
    margin-bottom: 15px;
  }
  .p-service-cta-card__btn {
    height: 40px;
    font-size: 0.9rem;
  }
}

/* タブレット・標準PCサイズ */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .p-service-cta {
    padding: 50px 40px 80px 40px;
  }
  .p-service-cta__container {
    flex-direction: row;
    gap: 30px;
  }
  .p-service-cta-card {
    padding: 40px 30px;
  }
}

/* 大型デスクトップサイズ */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  .p-service-cta {
    padding: 60px 40px 90px 40px;
  }
}
