.ba p {
  color: 000;
}

.case-heading-wrap {
  position: relative;
  display: inline-block; /* 見出しの幅に合わせたい場合 */
}

.case-heading {
  position: relative;
  padding-left: 5em; /* ラベル分のスペースを確保 */
}

.case-heading::before {
  content: attr(data-basshi);
  position: absolute;
  top: -8px;
  left: 10px;
  background: #e7b500;
  color: white;
  font-size: 0.75em;
  font-weight: normal;
  padding: 5px 16px;
  white-space: nowrap;
  letter-spacing: 2px;
  font-weight: bold;
  transform: translateY(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.case-card-pickup .case-heading::before {
  background: #e7b500;
}

/*
.case-heading-ribbon {
  position: absolute;
  top: -8px;
  right: -40px;
  background: #ffa000;
  color: #fff;
  padding: 4px 28px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.case-heading-ribbon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-top: 6px solid #cc7f00;
  transform: skewX(-20deg);
}*/

.case-em-heading {
  margin: 50px auto 20px !important;
  padding: 20px !important;
  background: #f7940e;
  border-radius: 40px;
  position: relative;
  color: #fff !important;
  border: none !important;
  text-align: center;
  font-size: 1.5em !important;
  letter-spacing: 2px;
}

.case-em-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-top: 20px solid #f7940e;
}

.ba-flex {
    display: flex;
    gap: 25px; /* 必要に応じて間隔を調整 */
    margin: 0 auto;
    /*-webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;*/
}

.ba-item {
    flex: 1; /* 各アイテムが均等な幅になる */
    display: flex; /* p要素に高さを引き継ぐため */
    flex-direction: column;
    text-align: center;
    width: 44%;
    position: relative;
}

.ba-item+.ba-item::before {
    content: "";
    border-style: solid;
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent #96bac3;
    position: absolute;
    left: -5%;
    top: calc(50% - 15px);
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}

.ba-item figure {
    margin: 2rem 0 0.4rem;
    position: relative;
    /*background: #F5F5F5;
    border: 1px solid #eee;
    width: 320px;
    height: 240px;*/
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ba-item figure img {
    /*max-height: 300px;
    -o-object-fit: contain;
    object-fit: contain;*/
    /*max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;*/
}

.ba-item figcaption {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    position: absolute;
    left: 20px;
    bottom: 20px;
    letter-spacing: 2px;
}

.ba-item p {
    flex: 1;
    font-size: 0.75em;
    text-align: left;
    border-radius: 8px;
    color: #3f4a4c;
}

.ba-btn {
    text-align: center;
    margin-top: 45px;
}

.ba-btn:before {
    content: "";
    display: block;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    width: 8px;
    height: 8px;
    position: absolute;
    left: 15px;
    top: 50%;
    -webkit-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
    -webkit-transition: 0.2s;
    transition: 0.2s;
    z-index: 2;
}

.ba-btn:after {
    content: "";
    position: absolute;
    width: 100%;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    height: 100%;
    bottom: 0;
    left: 0;
    background-color: #313131;
    -webkit-transform-origin: bottom right;
    transform-origin: bottom right;
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    transition: -webkit-transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1), -webkit-transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: -1;
}

/* 主訴 */
.ba dl {
  font-size: 0.9rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0px 0px;
}

.ba dt {
  font-size: 0.9rem;
  color: #2f899c;
  grid-column: 1;
  display: flex;
  align-items: center;
}

.ba dd {
  margin: 4px 0 4px;
  padding: 10px 16px;
  background: #f7fafb;
  border-radius: 6px;
  font-size: 1.05em;
  grid-column: 2;
}
.ba dt.two-col,
.ba dd.two-col {
  grid-column: span 2;
}

/* フィルター */
.filter-section {
  text-align: center;
  padding: 20px 0;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-btn {
  padding: 1px 18px 3px;
  margin: 0 0 6px 0;
  min-height: 25px;
  border: 1px solid #ccc;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9em;
  color: inherit !important;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.filter-btn:hover {
  background: #f0f0f0;
  text-decoration: none !important;
}

.filter-btn.active {
  background: #083f4a;
  color: #fff !important;
  border-color: #083f4a !important;
}

.filter-btn-pickup {
  
}