/* ======================================================================
 p_case
====================================================================== */

/* 絞り込み機能 */
.case_filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 16px;
}

.case_filter:not(:has(.filter_text)) {
  justify-content: flex-end;
}

.filter_text {
  font-size: 16px;
}

.filter_dropdown {
  position: relative;
}

.filter_select {
  padding: 8px 48px 8px 24px;
  border: 3px solid #CACACA;
  border-radius: 60px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
  min-width: 200px;
  appearance: none;
  background-image: url("../common_img/case_arrow.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right 12px center;
  background-size: 14px;
}

/* ケース一覧グリッド */
.case_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

/* c_card_case */
.c_card_case {
  position: relative;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}


.c_card_case_pic {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.c_card_case_pic .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.c_card_case_cont {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.c_card_case_cont .btn {
  font-size: 14px;
}



.c_card_case_tags {
  display: inline-flex;
  gap: 8px;
  padding: 2px 8px;
  margin-bottom: 16px;
  background: var(--color-red);
  border-radius: 4px;
  align-self: flex-start;
}
.c_card_case .c_label_3{
  /* margin-bottom:24px; */
}
.tag {
  font-size: 12px;
  color: #fff;
}
.tag_area {
  position: relative;
  color: #fff;
  padding-left: 8px;
}
.tag_area::before{
  content: "";
  display: block;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0 , -50%);
  width: 1px;
  height: 50%;
}
.c_card_case_ttl {
  font-size: 16px;
  line-height: 1.8125;
  margin-bottom: 20px;
}



.c_card_case .c_btn_wrap{
  margin-top: auto;
}

@media screen and (min-width: 768px) {
  .c_card_case_cont .btn .btn_txt{
    height: 28px;
  }
  
  .hover .c_card_case_cont .btn:hover .btn_txt .min_txt {
    transform: translate(0px, -28px);
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .case_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  .case_filter{
    margin-bottom: 8px;
  }
.filter_text{
  font-size: 13px;
}

  .filter_select {
    width: 100%;
    min-width: auto;
    padding: 4px 24px 4px 10px;
    font-size: 12px;
    background-position: right 4px center;
    background-size: 8px;

  }

  .case_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .c_card_case_cont {
    padding: 20px;
  }

  

}

/* ======================================================================
|| Case Detail Page
====================================================================== */

/* ヒーローセクション */
.case_detail_hero {
  position: relative;
  margin-bottom: 48px;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
}

.case_detail_hero a {
  display: block;
  height: 400px;
}

.hero_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero_content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero_title {
  font-size: 38px;
  font-weight: var(--font-bold);
  line-height: 1.4;
  margin: 0;
  margin-bottom: 16px;
}

/* お客様情報 */
.customer_info {
  margin-bottom: 48px;
}

.info_title {
  padding: 4px 16px;
  border-radius: 16px 16px 0 0;
  background: #333;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.info_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  background: #fff;
  border-radius: 0 0 16px 16px;
  padding: 24px;
}

.info_item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info_item.full_width {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.info_label {
  background: #6C9FBA;
  color: #fff;
  padding: 2px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
}

.info_value {
  font-size: 14px;
  color: #000;
}

.service_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.service_tag {
  background: #666;
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
}

.service_tags .c_label_5 {
  margin: 0;
}

.result_title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.result_highlight p {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .hero_title {
    font-size: 24px;
  }
  .case_detail_hero{
    height: 200px;
  }
  .case_detail_hero a {
    height: 200px;
  }

  .customer_info {
    padding: 0;
  }

  .info_grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .info_label{
    font-size: 11px;
    padding: 0 16px;
    margin-top: 3px;
  }
  .info_item {
    align-items: flex-start;
    gap: 16px;
  }
  .info_item.full_width{
    align-items: flex-start;
    flex-direction : column;
  }

  .result_highlight {
    padding: 24px;
  }

  .result_title {
    font-size: 20px;
  }
}