/* =====================================
   症例写真一覧 カスタムスタイル
   ===================================== */

.cases-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-family: "Noto Sans JP", sans-serif;
}

.cases-wrap a {
  text-decoration: none;
}

/* H2デザイン（左揃え強調） */
.cases-wrap h2 {
  color: #f29c8f !important;
  font-size: 20px !important;
  letter-spacing: 0.05em !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 8px 5px !important;
  margin: 0 0 30px !important;
  font-weight: bold !important;
  border-bottom: 2px solid #f29c8f !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  line-height: 1.35em !important;
  border-radius: 0 !important;
  text-align: left !important;
}

/* カテゴリータブ */
.cases-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.cases-tab {
  display: inline-block;
  padding: 8px 24px;
  background: #fff;
  color: #3fbdd7 !important;
  border: 1px solid #3fbdd7;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s;
}

.cases-tab.is-active,
.cases-tab:hover {
  background: #3fbdd7;
  color: #fff !important;
}

/* カードグリッド */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.cases-card {
  display: flex;
  flex-direction: column;
}

.cases-card__thumb-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 20px;
}

.cases-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #d9d9d9;
}

.cases-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cases-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cases-card__name {
  display: flex;
  align-items: center;
}

.cases-card__name-badge {
  font-size: 14px;
  background: #a3a3a3;
  color: #fff;
  padding: 6px 12px;
  margin-right: 10px;
  font-weight: bold;
  white-space: nowrap;
  width: 56px;
}

.cases-card__name-text {
  font-size: 16px;
  font-weight: bold;
  color: #000;
}

.cases-card__cost {
  display: flex;
  align-items: center;
}

.cases-card__cost-badge {
  font-size: 14px;
  background: #a3a3a3;
  width: 56px;
  color: #fff;
  padding: 6px 12px;
  margin-right: 10px;
  font-weight: bold;
}

.cases-card__cost-price {
  font-size: 21px;
  font-weight: bold;
  color: #000;
}

.cases-card__cost-tax {
  font-size: 13px;
  color: #333;
  font-weight: bold;
}

.cases-card__content-box {
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.cases-card__meta-label {
  font-size: 14px;
  font-weight: bold;
  color: #3fbdd7;
  margin-bottom: 6px;
  text-align: left;
  /* 2行で省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cases-card__meta-text {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  text-align: left;
  /* 2行で省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ボタンエリア（丸みのあるデザイン） */
.cases-card__btns {
  display: flex;
  gap: 16px;
}

.cases-card__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 30px;
  transition: all 0.2s;
}

.cases-card__btn--fill {
  background: #4cc2d7;
  color: #fff !important;
}

.cases-card__btn--outline {
  border: 2px solid #4cc2d7;
  color: #4cc2d7 !important;
  background: #fff;
}

.cases-card__btn:hover {
  opacity: 0.8;
}

/* ページネーション */
.cases-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.cases-pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  color: #3fbdd7 !important;
  border: 1px solid #3fbdd7;
  border-radius: 50%;
  font-weight: bold;
}

.cases-pagination__item.is-current {
  background: #3fbdd7;
  color: #fff !important;
}

/* パンくず */
.cases-breadcrumb {
  margin-bottom: 24px;
  font-size: 13px;
  color: #888;
}

.cases-breadcrumb a {
  color: #3fbdd7;
  transition: opacity 0.2s;
}

.cases-breadcrumb a:hover {
  opacity: 0.7;
}

.cases-breadcrumb {
  display: none !important;
}

/* テーマ標準パンくずのカテゴリー（3番目のli）を非表示 */
#panListInner ul li:nth-child(3) {
  display: none !important;
}

/* レイアウト */
.cases-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.cases-main {
  min-width: 0;
}

/* 症例詳細メインエリア */
.cases-single {
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  padding: 40px;
  margin-bottom: 60px;
}

.cases-single__image {
  margin-bottom: 40px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.cases-single__thumb {
  width: 100%;
  height: auto;
  display: block;
}

.cases-single__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.cases-single__cat-tag {
  font-size: 14px;
  background: #eef9fb;
  color: #3fbdd7;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: bold;
}

.cases-single__title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  text-align: left;
  margin: 0 0 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.cases-single__meta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  padding: 24px;
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.cases-single__cost {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

p.cases-single__section-label {
  text-align: left;
}

.cases-single__content-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.cases-single__section {
  margin-bottom: 16px;
}

p.cases-single__section-text {
  text-align: left;
}

.cases-single__section-label {
  font-size: 16px;
  font-weight: bold;
  color: #3fbdd7;
  margin: 0 0 8px;
}

.cases-single__section-text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

.cases-single__editor-content {
  margin-bottom: 40px;
  text-align: left;
}

.cases-single__editor-content p {
  text-align: left;
}


/* 関連症例 */
.cases-related h2 {
  font-size: 22px;
  margin-bottom: 30px;
}

/* サイドバー */
#sideTower {
  min-width: 0;
}

/* テーマ標準のウィジェット見出し補正 */
#sideTower h3 {
    color: #444 !important;
    line-height: 1.35em !important;
    font-weight: normal !important;
    text-shadow: none !important;
    background: url(/imagesWP/bgH3.png) left center no-repeat #FFF !important;
    background-size: 11px 60px !important;
    padding: 8px 10px 5px 18px !important;
    border-left: 0px solid #0098D8 !important;
    border-bottom: 0px solid #004766 !important;
    box-shadow: inset 0px 0px 2px rgba(0, 0, 0, 0.3) !important;
    border-radius: 3px !important;
    margin-bottom: 20px !important;
}

.sideTower h3.localHead {
    background: rgba(63, 189, 215, 1.00) !important;
    color: #fff !important;
}

#sideTower #nav_menu-2 h3 {
    padding: 15px 10px 15px 18px !important;
    background: rgba(63, 189, 215, 1.00) !important;
    color: #fff !important;
    text-align: left !important;
}

.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-list li {
  border-bottom: 1px solid #f5f5f5;
}

.sidebar-cat-list li:last-child {
  border-bottom: none;
}

.sidebar-cat-list a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: #555;
  transition: color 0.2s, transform 0.2s;
}

.sidebar-cat-list li a::before {
  content: "›";
  margin-right: 8px;
  color: #3fbdd7;
  font-weight: bold;
}

.sidebar-cat-list a:hover {
  color: #3fbdd7;
  transform: translateX(5px);
}

.sidebar-recent-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-recent-item {
  display: flex;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.sidebar-recent-item:hover {
  opacity: 0.7;
}

.sidebar-recent-item__thumb {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
}

.sidebar-recent-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent-item__title {
  font-size: 13px;
  line-height: 1.5;
  font-weight: bold;
  color: #333;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-widget--cta {
  background: linear-gradient(135deg, #3fbdd7 0%, #4cc2d7 100%);
  color: #fff;
  text-align: center;
}

.sidebar-widget--cta .sidebar-widget__title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.sidebar-widget--cta p {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.sidebar-cta-btn {
  display: block;
  background: #fff;
  color: #3fbdd7;
  padding: 12px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ */
@media (max-width: 1023px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-layout {
    grid-template-columns: 1fr;
  }

  #sideTower {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 599px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .cases-single {
    padding: 24px;
  }

  .cases-single__title {
    font-size: 22px;
  }

  #sideTower {
    grid-template-columns: 1fr;
  }
}

/* カードグリッド */