/* ============================================
   Promot Works - 事例一覧ページ固有スタイル
   cases/cases.css
   ============================================ */

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, #0F1E38 0%, #1B2A4A 100%);
  padding: 56px var(--gutter) 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/oyakuni_top.jpg') center / cover no-repeat;
  opacity: 0.07;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.page-hero-left { flex: 1; }

/* ヒーロー内パンくず（白色） */
.page-hero .breadcrumb {
  padding: 0;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.38);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.38); }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,0.7); }

.page-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #60A5FA;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.page-hero h1 {
  font-size: clamp(21px, 3vw, 36px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  max-width: 480px;
  line-height: 1.85;
}
.page-hero-right { display: flex; gap: 20px; flex-shrink: 0; }
.hero-stat {
  text-align: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  padding: 18px 24px;
}
.hero-stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-num span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5); }
.hero-stat-label { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 5px; }

/* FILTER TAB BAR */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
}
.filter-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  overflow-x: auto;
}
.filter-tab {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
  font-family: 'Noto Sans JP', sans-serif;
  border-bottom: 3px solid transparent;
  flex-shrink: 0;
}
.filter-tab:hover { color: var(--blue); }
.filter-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* SEARCH ROW */
.search-row {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px var(--gutter);
}
.search-row-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-input {
  flex: 0 0 420px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--navy);
  outline: none;
  background: var(--white);
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--blue); }
.search-count { font-size: 12px; color: var(--gray-400); margin-left: auto; }

/* CASES MAIN */
.cases-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--gutter) 80px;
}

/* 2カラム カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  text-decoration: none;
  color: var(--navy);
  transition: box-shadow .2s, border-color .2s, transform .18s;
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,111,232,0.22);
  transform: translateY(-1px);
}
.case-card.hidden { display: none; }
.case-card.coming { opacity: 0.42; pointer-events: none; }

/* カード左：カラー帯 */
.card-left {
  width: 92px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 6px;
}
.card-icon { font-size: 26px; line-height: 1; }
.card-cat {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--white);
  padding: 3px 7px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

/* カテゴリ色 */
.c-exhibition .card-left { background: linear-gradient(160deg, #EAF2FF, #DBEAFE); }
.c-exhibition .card-cat  { background: #1A6FE8; }
.c-ma .card-left         { background: linear-gradient(160deg, #E0F7FA, #CCFBF1); }
.c-ma .card-cat          { background: #0891B2; }
.c-web .card-left        { background: linear-gradient(160deg, #F0FDF4, #DCFCE7); }
.c-web .card-cat         { background: #16A34A; }
.c-content .card-left    { background: linear-gradient(160deg, #FFF7ED, #FED7AA); }
.c-content .card-cat     { background: #EA580C; }
.c-ads .card-left        { background: linear-gradient(160deg, #FDF4FF, #E9D5FF); }
.c-ads .card-cat         { background: #7C3AED; }
.c-pr .card-left         { background: linear-gradient(160deg, #FFF1F2, #FECDD3); }
.c-pr .card-cat          { background: #E11D48; }
.c-digital .card-left    { background: linear-gradient(160deg, #F5F3FF, #EDE9FE); }
.c-digital .card-cat     { background: #7C3AED; }

/* カード右：テキスト */
.card-right {
  flex: 1;
  padding: 14px 16px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  border-left: 1px solid var(--gray-100);
}
.card-q-label { font-size: 10px; font-weight: 700; color: var(--gray-400); letter-spacing: 0.07em; }
.card-q { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.6; flex: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}
.card-who { font-size: 10.5px; color: var(--gray-400); }
.card-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--blue);
  transition: background .2s, border-color .2s;
}
.case-card:hover .card-arrow {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  font-size: 14px;
  color: var(--gray-400);
  display: none;
}

/* MORE セクション */
.more-section {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 60px var(--gutter);
}
.more-inner { max-width: var(--max-width); margin: 0 auto; }
.more-label {
  display: inline-block;
  background: var(--blue-lt);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.more-title {
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.more-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow .2s, transform .2s;
  border-top: 3px solid var(--blue);
}
.more-card:nth-child(2) { border-top-color: var(--teal); }
.more-card:nth-child(3) { border-top-color: #7C3AED; }
.more-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.more-card-icon  { font-size: 26px; margin-bottom: 10px; }
.more-card-title { font-size: 13px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.more-card-q     { font-size: 12.5px; font-weight: 700; color: var(--blue); margin-bottom: 8px; line-height: 1.55; }
.more-card-txt   { font-size: 12px; color: var(--gray-600); line-height: 1.75; margin-bottom: 16px; }
.more-card-link  {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.more-card-link:hover { gap: 8px; }

/* CTA セクション */
.cta-section {
  background: linear-gradient(135deg, #0F1E38 0%, #1B2A4A 100%);
  padding: 64px var(--gutter);
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(19px, 2.8vw, 30px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.cta-section p {
  font-size: 14px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 32px;
  line-height: 1.85;
}

/* アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp .4s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.case-card:nth-child(1) { animation-delay: .04s; }
.case-card:nth-child(2) { animation-delay: .08s; }
.case-card:nth-child(3) { animation-delay: .12s; }
.case-card:nth-child(4) { animation-delay: .16s; }
.case-card:nth-child(5) { animation-delay: .20s; }
.case-card:nth-child(6) { animation-delay: .24s; }

/* レスポンシブ */
@media (max-width: 860px) {
  .page-hero-inner { flex-direction: column; align-items: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .search-input { flex: 1; }
}
