/* ================================================================
   事例一覧ページ — header | footer
================================================================ */
.PageHeader {
  background: transparent !important;
  box-shadow: none !important;
}
.PageHeader.-bgEnabled{
  background: #fff !important;
  transition: background 0.3s ease-in-out;
}
.PageHeader__DrawerOpenButton {
  display: none !important;
}

.PageFooter {
  max-width: 100% !important;
}
@media screen and (max-width: 680px) {
  .PageHeader__BgSp {
    user-select: none;
    pointer-events: none;
  }
}
/* ================================================================
   事例一覧ページ — EP LP テイスト統一版（黄×緑×黒）
   prefix: cp-
   ================================================================ */

.cp-wrap *, .cp-wrap *::before, .cp-wrap *::after { box-sizing: border-box; }
.cp-wrap {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic Medium', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- LP カラー変数 --- */
:root {
  --cp-yellow:  #FFF7AE;
  --cp-green:   #49A81C;
  --cp-green-d: #3A8A14;
  --cp-black:   #1A1A1A;
  --cp-body:    #444444;
  --cp-muted:   #777777;
  --cp-orange:  #E05520;
  --cp-white:   #FFFFFF;
  --cp-border:  #E8E8E8;
  --cp-max:     1120px;
}

.cp-container {
  max-width: var(--cp-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ================================================================
   ヒーロー — 黄色ベース
   ================================================================ */
.cp-hero {
  background: var(--cp-yellow);
  padding: 72px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cp-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(73,168,28,.07) 0%, transparent 70%);
  pointer-events: none;
}
.cp-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cp-green);
  margin-bottom: 20px;
}
.cp-hero__label::before,
.cp-hero__label::after {
  content: '';
  width: 24px; height: 2px;
  background: var(--cp-green);
  flex-shrink: 0;
}
.cp-hero__title {
  font-size: clamp(35px, 5vw, 55px);
  font-weight: 900;
  color: var(--cp-black);
  margin: 0 0 18px;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.cp-hero__title em {
  color: var(--cp-green);
  font-style: normal;
}
.cp-hero__sub {
  font-size: 19px;
  color: var(--cp-body);
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.85;
}
/* ヒーロー → 白セクションへの波 */

/* ================================================================
   カテゴリフィルター
   ================================================================ */
.cp-filter-section {
  background: var(--cp-white);
  padding: 24px 0;
  border-bottom: 1px solid var(--cp-border);
  box-shadow: 0 16px 16px rgba(0,0,0,.05);
  border-top: 1px solid #fff;
  transition: all 0.3s ease-in-out;
  position: sticky;
  top: 80px;
  z-index: 2;
}
.cp-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}
.cp-filter__btn {
  padding: 9px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--cp-border);
  background: var(--cp-white);
  color: var(--cp-body);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s, box-shadow .18s;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
}
.cp-filter__btn:hover {
  border-color: var(--cp-green);
  color: var(--cp-green);
}
.cp-filter__btn.is-active {
  background: var(--cp-green);
  border-color: var(--cp-green);
  color: var(--cp-white);
  box-shadow: 0 4px 14px rgba(73,168,28,.28);
}

body:has(.-bgEnabled) .cp-filter-section {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--cp-border);
}

body:has(.-bgEnabled) .cp-filter-section .cp-container {
  max-width: 100%;
}

body:has(.-bgEnabled) .cp-filter-section .cp-container .cp-filter__btn {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 14px;
}

@media screen and (max-width: 680px) {
  .cp-filter-section .cp-container {
    padding: 0;
  }
  .cp-filter-section .cp-container .cp-filter {
    width: auto;
    padding: 0 8px;
  }
  body:has(.-bgEnabled) .cp-filter-section {
    padding-top: 32px;
    border-top-color: #fff;
    top: 60px;
    z-index: 1;
  }
  .cp-filter-section {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .cp-filter-section .cp-container .cp-filter__btn {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 15px;
  }
  body:has(.-bgEnabled) .cp-filter-section .cp-container .cp-filter__btn {
    font-size: 12px;
  }
}

/* ================================================================
   グリッドセクション — 白背景
   ================================================================ */
.cp-grid-section {
  background: var(--cp-white);
  padding: 56px 0 80px;
}
.cp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ================================================================
   事例カード — タグ / 画像 / タイトル / 企業名 / CTA
   ================================================================ */
.cp-card {
  background: var(--cp-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--cp-border);
  display: flex;
  flex-direction: column;
  transition: transform .22s cubic-bezier(.23,1,.32,1),
              box-shadow .22s cubic-bezier(.23,1,.32,1);
}
.cp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(0,0,0,.1);
  border-color: rgba(73,168,28,.3);
}

/* タグ */
.cp-card__tag {
  padding: 12px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 4px;
}
.cp-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(73,168,28,.1);
  border: 1px solid rgba(73,168,28,.28);
  color: var(--cp-green);
  white-space: nowrap;
}
.cp-card__company-type {
  font-size: 14px;
  color: var(--cp-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* 画像 */
.cp-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--cp-yellow);
}

/* タイトル・企業名 */
.cp-card__body {
  padding: 18px 20px 12px;
  flex: 1;
}
.cp-card__title {
  font-size: 20px;
  font-weight: 900;
  color: var(--cp-black);
  line-height: 1.45;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.cp-card__title em ,
.cp-card__title strong {
  font-style: normal;
  color: var(--cp-green);
}
.cp-card__title a ,
.cp-card__title a:link ,
.cp-card__title a:visited {
  color: var(--cp-black);
  text-decoration: none;
}
.cp-card__company {
  font-size: 16px;
  font-weight: 600;
  color: var(--cp-muted);
  margin: 0;
}

/* CTA */
.cp-card__footer {
  padding: 12px 20px 18px;
  border-top: 1px solid var(--cp-border);
  margin-top: 4px;
}
.cp-card__link {
  display: block;
  padding: 4px 0 8px;
  border-radius: 4px;
  background: var(--cp-green);
  border: 2px solid var(--cp-green);
  color: #FFF;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .18s;
  line-height: normal;
}
.cp-card__link:hover { opacity: .87; }

/* ================================================================
   CTA セクション — 黄色ベース（LP のフッター CTA 統一）
   ================================================================ */
/* ================================================================
   CTA — 個別ページ ep-footer-cta と完全統一
   ================================================================ */
.cp-cta {
  background: var(--cp-yellow);
  background-image: linear-gradient(180deg, var(--cp-yellow) 0%, #FFF7AE 100%);
  padding: 72px 0 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cp-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(73,168,28,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cp-cta__inner {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto; padding: 0 28px;
}
.cp-cta__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cp-green);
  margin-bottom: 16px;
}
.cp-cta__title {
  font-size: clamp(29px, 3.8vw, 41px);
  font-weight: 900;
  color: var(--cp-black);
  margin: 0 0 12px;
  letter-spacing: -.025em;
  line-height: 1.35;
}
.cp-cta__title em { color: var(--cp-green); font-style: normal; }
.cp-cta__sub {
  font-size: 19px;
  color: var(--cp-body);
  margin: 0 0 40px;
  line-height: 1.8;
}
.cp-cta__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   ボタン — 個別ページ .ep-btn 完全統一
   ================================================================ */
.cp-btn {
  display: block;
  padding: 4px 10px 10px;
  border-radius: 4px;
  background: #49A81C;
  box-sizing: border-box;
  border: 2px solid #49A81C;
  color: #FFF;
  text-align: center;
  font-size: 23px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .18s;
  position: relative;
  min-width: 240px;
}
.cp-btn:hover { opacity: .87; }
.cp-btn__sub {
  font-size: 14px;
  font-weight: 700;
  display: block;
  color: #FFF;
  opacity: .82;
  margin-bottom: 2px;
}
.cp-btn__badge {
  position: absolute;
  top: -10px; right: -6px;
  background: var(--cp-orange);
  color: #FFF;
  font-size: 13px; font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1;
}
/* セカンダリ */
.cp-btn--secondary {
  background: var(--cp-white);
  color: #49A81C;
  border-color: #49A81C;
}
.cp-btn--secondary .cp-btn__sub { color: #49A81C; }

/* ================================================================
   レスポンシブ
   ================================================================ */
@media (max-width: 860px) {
  .cp-grid { grid-template-columns: repeat(2, 1fr); }
  .cp-hero { padding: 100px 0 44px; }
}
@media (max-width: 580px) {
  .cp-grid { grid-template-columns: 1fr; gap: 16px; }
  .cp-filter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .cp-filter__btn { flex-shrink: 0; font-size: 16px; }
  .cp-cta__btns { flex-direction: column; align-items: center; }
  .cp-btn { width: 100%; max-width: 320px; }
}