.case-archive-page{
  background:#fff;
}

.mn-case-container{
  width:min(1180px, calc(100% - 40px));
  margin:0 auto;
}

/* =========================================================
   テーマ側のデフォルトアーカイブヘッダーは非表示
========================================================= */
body.post-type-archive-case > .l-outer > header.c-archive-header:not(.mn-case-archive-header){
  display:none !important;
}

/* =========================================================
   施工事例ヘッダー（お客様の声寄せ）
========================================================= */
.mn-case-archive-header{
  position:relative;
  margin:0;
}

.mn-case-archive-header .c-archive-header__content{
  position:relative;
  overflow:hidden;
}

.mn-case-archive-header .c-archive-header__image{
  display:block;
  width:100%;
  height:420px;
  object-fit:cover;
  object-position:center center;
}

.mn-case-archive-header .c-archive-header__overlay{
  position:absolute;
  inset:0;
  background:color-mix(in srgb, #000000 30%, transparent);
}

.mn-case-archive-header .c-archive-header__title_use_img{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  justify-content:center;
  align-items:flex-end;
}

.mn-case-archive-header .c-archive-header__title_use_img h1{
  width:100%;
  height:64px;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 20px;
  line-height:1;
  text-align:center;
  color:#fff;
  background:rgba(255,255,255,.35);
  text-shadow:0 2px 10px rgba(0,0,0,.18);
  opacity:0;
  transition:opacity 1.2s ease-in-out;
  transition-delay:.6s;
}

body.is-ready .mn-case-archive-header .c-archive-header__title_use_img h1{
  opacity:1;
}

.mn-case-archive-header .c-archive-header__desc{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(760px, calc(100% - 40px));
  color:#fff;
  text-align:center;
  z-index:2;
  opacity:0;
  transition:opacity 1s ease-in-out, transform 1s ease-in-out;
}

.mn-case-archive-header .c-archive-header__desc p{
  margin:0;
  font-size:18px;
  font-weight:700;
  line-height:1.8;
  text-shadow:0 2px 10px rgba(0,0,0,.18);
}

body.is-ready .mn-case-archive-header .c-archive-header__desc{
  opacity:1;
  transform:translate(-50%, -50%);
  transition-delay:.2s;
}

/* =========================================================
   リード文
========================================================= */
.mn-case-intro{
  padding:52px 0 16px;
}

.mn-case-intro__text{
  max-width:920px;
  margin:0 auto;
  color:#333;
  text-align:center;
  font-size:16px;
  line-height:2;
}

/* =========================================================
   カテゴリナビ
========================================================= */
.mn-case-category-nav{
  padding:8px 0 40px;
}

.mn-case-category-nav .mn-case-container{
  max-width:850px;
}

.mn-case-category-nav__grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  border-top:1px solid #d9d9d9;
  border-left:1px solid #d9d9d9;
  background:#fff;
}

.mn-case-category-nav__item{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:74px;
  padding:14px 18px;
  border-right:1px solid #d9d9d9;
  border-bottom:1px solid #d9d9d9;
  color:#222;
  background:#fff;
  text-decoration:none;
  text-align:center;
  font-size:16px;
  font-weight:500;
  line-height:1.6;
  letter-spacing:0.03em;
  transition:background-color .25s ease, color .25s ease;
}

.mn-case-category-nav__item:hover{
  background:#f7fbf8;
  color:#009834;
}

.mn-case-category-nav__item.is-current{
  background:#f7fbf8;
  color:#009834;
  font-weight:700;
}

/* =========================================================
   記事一覧
========================================================= */
.mn-case-list{
  padding:0 0 72px;
}

.mn-case-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  border-top:1px solid #e4e4e4;
  border-left:1px solid #e4e4e4;
  background:#fff;
}

.mn-case-card{
  border-right:1px solid #e4e4e4;
  border-bottom:1px solid #e4e4e4;
}

.mn-case-card__link{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:30px;
  padding:24px 22px;
  color:inherit;
  text-decoration:none;
  transition:background-color .25s ease;
}

.mn-case-card__link:hover{
  background:#fcfcfc;
}

.mn-case-card__thumb{
  overflow:hidden;
}

.mn-case-card__thumb img{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
}

.mn-case-card__body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.mn-case-card__terms{
  margin-bottom:14px;
}

.mn-case-card__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 16px;
  border:1px solid #76c98e;
  border-radius:999px;
  color:#009834;
  background:#fff;
  font-size:13px;
  font-weight:500;
  line-height:1;
}

.mn-case-card__title{
  margin:0 0 12px;
  color:#111;
  font-size:26px;
  font-weight:700;
  line-height:1.6;
  word-break:break-word;
}

.mn-case-card__date{
  color:#888;
  font-size:14px;
  line-height:1.6;
}

/* =========================================================
   ページネーション
========================================================= */
.mn-case-pagination{
  margin-top:42px;
}

.mn-case-pagination .nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.mn-case-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 12px;
  border:1px solid #d8d8d8;
  color:#333;
  background:#fff;
  text-decoration:none;
  font-size:14px;
  transition:all .25s ease;
}

.mn-case-pagination .page-numbers.current,
.mn-case-pagination .page-numbers:hover{
  border-color:#009834;
  color:#fff;
  background:#009834;
}

/* =========================================================
   記事がない場合
========================================================= */
.mn-case-empty{
  padding:48px 20px;
  border:1px solid #e4e4e4;
  text-align:center;
  background:#fafafa;
}

.mn-case-empty p{
  margin:0;
  color:#555;
  font-size:16px;
  line-height:1.9;
}

/* =========================================================
   フッターバナー
========================================================= */
.mn-case-footer-banner{
  padding:0 0 88px;
}

.mn-case-footer-banner__link{
  display:block;
  text-decoration:none;
}

.mn-case-footer-banner__link img{
  display:block;
  width:100%;
  height:auto;
  border-radius:10px;
}

/* =========================================================
   SP
========================================================= */
@media (max-width: 900px){

  .mn-case-archive-header .c-archive-header__image{
    height:260px;
  }

  .mn-case-archive-header .c-archive-header__title_use_img h1{
    height:44px;
    padding:0 14px;
  }

  .mn-case-archive-header .c-archive-header__desc{
    width:92%;
  }

  .mn-case-archive-header .c-archive-header__desc p{
    font-size:15px;
    line-height:1.75;
  }

  .mn-case-intro{
    padding:34px 0 14px;
  }

  .mn-case-intro__text{
    max-width:none;
    text-align:left;
    font-size:15px;
    line-height:1.9;
  }

  .mn-case-category-nav{
    padding:4px 0 28px;
  }

  .mn-case-category-nav .mn-case-container{
    max-width:none;
  }

  .mn-case-category-nav__grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .mn-case-category-nav__item{
    min-height:58px;
    padding:12px 10px;
    font-size:14px;
    line-height:1.5;
  }

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

  .mn-case-card__link{
    grid-template-columns:120px 1fr;
    gap:16px;
    padding:18px 14px;
  }

  .mn-case-card__terms{
    margin-bottom:10px;
  }

  .mn-case-card__tag{
    min-height:30px;
    padding:0 12px;
    font-size:12px;
  }

  .mn-case-card__title{
    margin:0 0 8px;
    font-size:20px;
    line-height:1.5;
  }

  .mn-case-card__date{
    font-size:13px;
  }

  .mn-case-pagination{
    margin-top:30px;
  }

  .mn-case-pagination .page-numbers{
    min-width:38px;
    height:38px;
    font-size:13px;
  }

  .mn-case-footer-banner{
    padding:0 0 56px;
  }
}

/* ========================================
施工事例一覧｜ヘッダーまわり整理版
・写真を画面いっぱいに戻す
・帯の親側の余計な加工を消す
・帯は h1 のみで見せる
======================================== */

/* 写真を画面いっぱいに戻す */
body.post-type-archive-case .mn-case-archive-header{
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

body.post-type-archive-case .mn-case-archive-header .c-archive-header__content{
  width: 100% !important;
  max-width: none !important;
}

body.post-type-archive-case .mn-case-archive-header .c-archive-header__image{
  display: block !important;
  width: 100% !important;
  height: 420px !important;
  object-fit: cover !important;
}

/* 帯の親側に余計な加工を残さない */
body.post-type-archive-case .mn-case-archive-header .c-archive-header__title_use_img{
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

/* 親要素の疑似要素も消す */
body.post-type-archive-case .mn-case-archive-header .c-archive-header__title_use_img::before,
body.post-type-archive-case .mn-case-archive-header .c-archive-header__title_use_img::after{
  content: none !important;
  display: none !important;
}

/* 帯は h1 のみで見せる */
body.post-type-archive-case .mn-case-archive-header .c-archive-header__title_use_img h1{
  margin: 0 !important;
  background: rgba(255,255,255,.35) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* SP */
@media (max-width: 900px){
  body.post-type-archive-case .mn-case-archive-header{
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  body.post-type-archive-case .mn-case-archive-header .c-archive-header__image{
    height: 260px !important;
  }
}

/* ========================================
施工事例一覧｜白帯固定＋画像拡大 整理版
・半透明の白帯は固定
・白帯は親側に持たせる
・画像を少し大きくして下のグレーを隠しやすくする
======================================== */

/* 白帯そのものを親側に持たせて、最初から固定表示 */
body.post-type-archive-case .mn-case-archive-header .c-archive-header__title_use_img{
  background: rgba(255,255,255,.35) !important;
  box-shadow: none !important;
  bottom: -6px !important;
}

/* タイトル側の背景は消して、文字だけ見せる */
body.post-type-archive-case .mn-case-archive-header .c-archive-header__title_use_img h1{
  background: transparent !important;
  box-shadow: none !important;
}

/* 画像を少し大きくして、下のグレーを隠しやすくする */
body.post-type-archive-case .mn-case-archive-header{
  overflow: hidden !important;
}

body.post-type-archive-case .mn-case-archive-header .c-archive-header__image{
  height: 440px !important;
  transform: scale(1.03) !important;
  transform-origin: center center !important;
}

/* SP */
@media (max-width: 900px){
  body.post-type-archive-case .mn-case-archive-header .c-archive-header__image{
    height: 280px !important;
    transform: scale(1.04) !important;
  }
}

/* ========================================
施工事例一覧｜カテゴリ上の説明文を消す
======================================== */

/* カテゴリ上の説明文を消す */
.case-archive-page .mn-case-intro{
  display: none !important;
}

/* カテゴリを少し上に詰める */
.case-archive-page .mn-case-category-nav{
  padding-top: 0 !important;
}

/* ========================================
施工事例一覧｜カテゴリ hover 色変更
======================================== */

.mn-case-category-nav__item:hover{
  background: #009834 !important;
  color: #fff !important;
}

/* ========================================
施工事例アーカイブ｜カード文字サイズ調整
少し小さめ
======================================== */

.mn-case-card__tag{
  font-size: 11px;
}

.mn-case-card__title{
  font-size: 18px;
  line-height: 1.5;
}

.mn-case-card__date{
  font-size: 11px;
}

/* ========================================
施工事例アーカイブ｜カード画像ホバー拡大＋少し浮く
======================================== */

.mn-case-card{
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.mn-case-card__thumb{
  overflow: hidden;
}

.mn-case-card__thumb img{
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
}

.mn-case-card:hover{
  transform: translateY(-4px);
}

.mn-case-card:hover .mn-case-card__thumb img,
.mn-case-card__link:hover .mn-case-card__thumb img{
  transform: scale(1.08);
}