/*--------------------------------------------------------------
# Page Title Section
--------------------------------------------------------------*/
#page-title {
  width: 100%;
  height: 40vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../images/banner-image.png") center center;
  background-size: cover;
  position: relative;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  margin-top: 80px;
}

#page-title h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  color: var(--white-color);
  text-align: center;
}

#page-title p {
  color: var(--white-color);
  margin: 15px 0 0 0;
  font-size: 20px;
  text-align: center;
}

/*--------------------------------------------------------------
# Case Studies Section
--------------------------------------------------------------*/
.case-filter {
  margin-bottom: 30px;
}

.case-filter .nav-link {
  border-radius: 50px;
  padding: 8px 20px;
  color: var(--dark-color);
  margin: 0 5px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.case-filter .nav-link.active,
.case-filter .nav-link:hover {
  background-color: #FF6F00;
  color: var(--white-color);
}

.case-box {
  background: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 29px 0 rgba(68, 88, 144, 0.12);
  margin-bottom: 30px;
  transition: all 0.3s ease;
  height: 80%;
  display: flex;
  flex-direction: column;
}

.case-box:hover {
  transform: translateY(-10px);
}

.case-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  transition: all 0.3s ease;
  position: relative;
}

.case-icon i {
  font-size: 80px;
  color: #FF6F00;
  transition: all 0.3s ease;
}

.case-box:hover .case-icon {
  background: #FF6F00;
}

.case-box:hover .case-icon i {
  color: var(--white-color);
}

.case-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark-color);
  min-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-content p {
  color: var(--gray-color);
  margin-bottom: 15px;
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.tech-tags {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-tags span {
  background: #f1f1f1;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--dark-color);
}

.btn-details {
  display: inline-block;
  background: #FF6F00;
  color: var(--white-color);
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-align: center;
  align-self: flex-start;
}

.btn-details:hover {
  background: var(--secondary-color);
  color: var(--white-color);
}

.case-details {
  margin-top: 20px;
}

.case-detail-item {
  margin-bottom: 10px;
}

/* カテゴリラベルのスタイル */
.case-category {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF6F00;
  color: var(--white-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 1;
}

.modal-category {
  background: #FF6F00;
  color: var(--white-color);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 10px;
  vertical-align: middle;
}

/* モーダル内のアイコンスタイル */
.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-icon i {
  font-size: 100px;
  color: #FF6F00;
}

/*--------------------------------------------------------------
# Contact CTA Section
--------------------------------------------------------------*/
#contact-cta {
  padding: 60px 0;
  text-align: center;
}

#contact-cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark-color);
}

#contact-cta p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--gray-color);
}

#contact-cta .btn-primary {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  transition: 0.5s;
  color: var(--white-color);
  background: #FF6F00;
}

#contact-cta .btn-primary:hover {
  background: var(--secondary-color);
}

/*--------------------------------------------------------------
# Mobile Nav
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .main-nav.mobile-active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white-color);
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
  }

  .main-nav.mobile-active ul {
    display: block;
  }

  .main-nav.mobile-active ul li {
    float: none;
    text-align: center;
  }

  .main-nav.mobile-active ul li a {
    padding: 10px 0;
    display: block;
  }

  .main-nav.mobile-active .active > a::after {
    bottom: 5px;
  }
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
  #page-title {
    height: 30vh;
    margin-top: 60px;
  }

  #page-title h1 {
    font-size: 32px;
  }

  #page-title p {
    font-size: 18px;
  }

  .case-filter .nav-link {
    padding: 6px 15px;
    margin: 0 3px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  #page-title {
    height: 25vh;
  }

  #page-title h1 {
    font-size: 28px;
  }

  #page-title p {
    font-size: 16px;
  }

  .case-content h3 {
    min-height: auto;
  }
  
  .case-content p {
    min-height: auto;
  }

  #contact-cta h2 {
    font-size: 28px;
  }

  #contact-cta p {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  #page-title {
    height: 20vh;
  }

  #page-title h1 {
    font-size: 24px;
  }

  #page-title p {
    font-size: 14px;
  }

  .case-filter {
    flex-wrap: wrap;
    justify-content: center;
  }

  .case-filter .nav-item {
    margin-bottom: 5px;
  }

  #contact-cta .btn-primary {
    font-size: 14px;
    padding: 10px 20px;
  }
}
