/* =================================================
  症例写真 archive 共通
================================================= */
.case .pege-heade-inner {
    background: url('../img/case/case-header.png') center right no-repeat;
    background-size: contain;
}
.case .fade-section.is-visible {
	transform: none;
}
/* =================================================
  症例写真：カテゴリ検索
================================================= */
.case-search-box {
  max-width:calc(1100px - 32px);
  margin: 40px auto 80px;
  padding: 30px 170px 50px;
  background: #f6fbf2;
  border: 1px solid #a8c48f;
  border-radius: 20px;
}
.case-search-box__label {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #131313;
}
.case-search-box__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* =================================================
  カスタムセレクト
================================================= */
.case-custom-select {
  position: relative;
  flex: 1;
}
.case-custom-select__trigger {
  position: relative;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #9db08f;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}
.case-custom-select__trigger:hover{
	background-color: #fafafa;
}
/* 表示テキスト */
.case-custom-select__text {
  line-height: 1;
}
/* ▼矢印 */
.case-custom-select__trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}
.case-custom-select.is-open
.case-custom-select__trigger::after {
  transform: translateY(-50%) rotate(-135deg);
}
/* リスト */
.case-custom-select__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  max-height: 0;
  padding-left: 0.5em;
  overflow: hidden;
  z-index: 20;
  transition: max-height 0.35s ease;
  margin: 0;
  
}
.case-custom-select.is-open
.case-custom-select__list {
  max-height: 240px;
}
.case-custom-select__list li {
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  margin-right: 2em;
  margin-left: 2em;
  border-bottom: solid 1px #a8c48f;
  transition: 0.2s;
}
.case-custom-select__list li:last-child {
	border-bottom:none;
}
.case-custom-select__list li:hover {
  color: #6f8f3f;
}
/* =================================================
  検索ボタン
================================================= */
.case-search-box__button {
  position: relative;
}
.case-search-box__button button {
  height: 46px;
  padding: 0 60px 0 50px;
  font-size: 16px;
  border: none;
  background: #6f8f3f;
  color: #fff;
  cursor: pointer;
  border: 1px solid #6f8f3f;
  transition: 0.2s;
}
.case-search-box__button button:hover {
	background: #fff;
	color: #6f8f3f;
	border: 1px solid #6f8f3f;
}
/* ▶矢印 */
.case-search-box__button::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}
/* =================================================
  一覧レイアウト
================================================= */
.case-archive {
  max-width: 1100px;
  margin: 0 auto;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
/* =================================================
  カード
================================================= */
.case-card {
  border: 1px solid #9db08f;
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.case-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
/* 担当医師 */
.case-card__doctor {
  background: #6f8f3f;
  color: #fff;
  font-size: 16px;
  padding: 6px 20px;
  display: inline-block;
  position: absolute;
}
/* 画像 */
.case-card__image img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.case-card:hover
.case-card__image img {
 transform: scale(1.05);
}
/* 本文 */
.case-card__body {
  padding: 16px 18px 20px;
  transform:none;
}
.case-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.case-card__title a {
  color: #222;
  text-decoration: none;
}
.case-card__title a:hover {
  text-decoration: underline;
}
.case-card__price,
.case-card__risk {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.case-card__price span.label , .case-card__risk span.label{
	color: #6f8f3f;
}
.case-card__risk {
  font-size: 16px;
  color: #444;
}
/* =================================================
  ページネーション
================================================= */
.case-pagination {
  margin-top: 56px;
  text-align: center;
}
.case-pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border: 1px solid #9db08f;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}
.case-pagination .current {
  background: #6f8f3f;
  color: #fff;
}
.case-pagination .nav-links{
	padding-bottom: 60px;
}
/* =================================================
  レスポンシブ
================================================= */
@media (max-width: 1110px) {
  	.case-search-box{
		margin: 40px 16px 50px;
	}
}
@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}
@media (max-width: 768px) {
	.case-search-box{
		padding: 10px 30px 30px;
	}
  .case-search-box__inner {
    flex-direction: column;
  }
  .case-custom-select {
    width: 100%;
}
  .case-search-box__button button {
    width: 100%;

  }
  .case-grid {
    grid-template-columns: 1fr;
  }
}
