/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   JOWA — subpage.css
   サブページ共通スタイル（事例・プログラム詳細・施設等）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── PAGE HEADER ── */
.page-header {
  background: var(--green);
  padding: calc(60px + 56px) 48px 56px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='36' fill='none' stroke='%23fff' stroke-width='.5'/%3E%3Ccircle cx='40' cy='40' r='26' fill='none' stroke='%23fff' stroke-width='.5'/%3E%3C/svg%3E");
  background-size: 80px 80px; opacity: 0.06;
}
.page-header-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a, .breadcrumb span {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.55);
}
.breadcrumb a:hover { color: rgba(255,255,255,.9); }
.breadcrumb .sep { color: rgba(255,255,255,.3); font-size: 10px; }
.breadcrumb .current { color: rgba(255,255,255,.85); }

/* ── PAGE TITLE ── */
.page-title {
  font-family: var(--font-disp);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800; color: var(--white);
  line-height: 1.15; letter-spacing: -.025em;
  margin-bottom: 12px;
}
.page-subtitle { font-size: 16px; color: rgba(255,255,255,.65); line-height: 1.7; }

/* ── CONTENT WRAPPER ── */
.content-wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.content-body { max-width: 760px; }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 12px; border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.tag-industry { background: rgba(30,107,69,.1); color: var(--green); }
.tag-program  { background: rgba(232,108,44,.1); color: var(--orange); }
.tag-size     { background: rgba(90,90,90,.08); color: var(--sub); }

/* ── CASE CARDS (一覧) ── */
.case-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 48px;
}
.case-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .18s;
  display: flex; flex-direction: column;
}
.case-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(30,107,69,.1);
  transform: translateY(-3px);
}
.case-card-img {
  height: 200px; overflow: hidden; background: var(--cream-d);
  position: relative;
}
.case-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-card-img img { transform: scale(1.04); }
.case-card-body { padding: 28px 24px; flex: 1; display: flex; flex-direction: column; }
.case-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.case-card-title {
  font-family: var(--font-disp); font-size: 17px; font-weight: 800;
  color: var(--ink); line-height: 1.35; margin-bottom: 8px; letter-spacing: -.01em;
}
.case-card-company { font-size: 13px; color: var(--sub); margin-bottom: 12px; }
.case-card-metric {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 13px; font-weight: 600; color: var(--green);
  display: flex; align-items: center; gap: 6px;
}
.case-card-metric::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}

/* ── FILTER ── */
.filter-section { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sub); flex-shrink: 0; width: 32px;
}
.filter-bar {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--rule); background: var(--white);
  color: var(--sub); transition: all .15s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--green); background: var(--green); color: var(--white);
}

/* ── CASES CTA SECTION ── */
.cases-cta-section {
  background: var(--green); padding: 72px 48px; text-align: center;
}
.cases-cta-inner { max-width: 640px; margin: 0 auto; }
.cases-cta-title {
  font-family: var(--font-disp); font-size: clamp(22px,2.5vw,32px);
  font-weight: 800; color: var(--white); line-height: 1.3; margin-bottom: 16px;
}
.cases-cta-sub {
  font-size: 15px; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 32px;
}
.cases-cta-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.cases-cta-btn-primary {
  display: inline-block; background: var(--orange); color: var(--white);
  padding: 16px 40px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; transition: all .15s;
}
.cases-cta-btn-primary:hover { background: #c95e22; }
.cases-cta-btn-secondary {
  display: inline-block; background: transparent; color: var(--white);
  padding: 15px 32px; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,.5);
  font-size: 14px; font-weight: 600; transition: all .15s;
}
.cases-cta-btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ── CASE DETAIL ── */
.case-kv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  min-height: 400px; margin-bottom: 0;
}
.case-kv-img {
  overflow: hidden; background: var(--cream-d);
}
.case-kv-img img { width: 100%; height: 100%; object-fit: cover; }
.case-kv-info {
  background: var(--ink); padding: 56px 52px;
  display: flex; flex-direction: column; justify-content: center;
}
.case-kv-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.case-kv-company {
  font-family: var(--font-disp); font-size: clamp(22px,2.5vw,34px); font-weight: 800;
  color: var(--white); line-height: 1.2; margin-bottom: 8px; letter-spacing: -.02em;
}
.case-kv-title { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; }
.case-kv-stats {
  display: flex; gap: 32px; margin-top: 32px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.case-kv-stat-num {
  font-family: var(--font-disp); font-size: 28px; font-weight: 800;
  color: var(--orange); line-height: 1; margin-bottom: 4px;
}
.case-kv-stat-label { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .06em; }

/* ── CASE CONTENT LAYOUT ── */
.case-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 56px;
  padding: 72px 48px; max-width: 1120px; margin: 0 auto; align-items: start;
}
.case-main {}
.case-sidebar { position: sticky; top: 84px; }

/* ── CASE SECTIONS ── */
.case-section { margin-bottom: 56px; }
.case-section-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-disp); font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
.case-section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}
.case-section h2 {
  font-family: var(--font-disp); font-size: clamp(22px,2.5vw,30px); font-weight: 800;
  color: var(--ink); line-height: 1.25; letter-spacing: -.02em; margin-bottom: 20px;
}
.case-section p { font-size: 16px; color: var(--sub); line-height: 2; margin-bottom: 16px; }
.case-section p:last-child { margin-bottom: 0; }

/* ── QUOTE BOX ── */
.quote-box {
  background: var(--green); border-radius: var(--radius-lg);
  padding: 40px 44px; margin: 40px 0; position: relative; overflow: hidden;
}
.quote-box::before {
  content: '"'; font-family: Georgia, serif; font-size: 120px;
  color: rgba(255,255,255,.1); line-height: .8;
  position: absolute; top: 12px; left: 24px; pointer-events: none;
}
.quote-box p {
  font-family: var(--font-disp); font-size: 18px; font-weight: 700;
  color: var(--white); line-height: 1.7; position: relative; z-index: 1;
  margin-bottom: 0 !important;
}
.quote-box cite {
  display: block; margin-top: 18px; font-size: 13px;
  color: rgba(255,255,255,.55); font-style: normal; position: relative; z-index: 1;
}

/* ── RESULT LIST ── */
.result-list { list-style: none; margin: 20px 0; }
.result-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-size: 16px; color: var(--ink); line-height: 1.65;
}
.result-list li:last-child { border-bottom: none; }
.result-list li::before {
  content: '✓'; color: var(--green); font-weight: 800;
  font-size: 14px; flex-shrink: 0; margin-top: 2px;
}

/* ── SIDEBAR COMPONENTS ── */
.sidebar-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-md); padding: 28px 24px; margin-bottom: 20px;
}
.sidebar-card-title {
  font-family: var(--font-disp); font-size: 13px; font-weight: 700;
  color: var(--sub); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.sidebar-info { display: flex; flex-direction: column; gap: 10px; }
.sidebar-info-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.sidebar-info-label { color: var(--sub); flex-shrink: 0; width: 72px; }
.sidebar-info-value { color: var(--ink); font-weight: 600; line-height: 1.5; }
.sidebar-cta {
  background: var(--orange); border-radius: var(--radius-md);
  padding: 28px 24px; text-align: center;
}
.sidebar-cta p {
  font-family: var(--font-disp); font-size: 15px; font-weight: 700;
  color: var(--white); line-height: 1.5; margin-bottom: 16px;
}
.sidebar-cta a {
  display: block; background: var(--white); color: var(--orange);
  padding: 13px 20px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; transition: all .15s;
}
.sidebar-cta a:hover { background: var(--cream); }

/* ── SIDEBAR PERSON PHOTO ── */
.sidebar-person-img {
  width: 100%; border-radius: var(--radius-sm);
  margin-bottom: 14px; object-fit: cover; max-height: 220px;
}
.sidebar-person-name {
  font-family: var(--font-disp); font-size: 15px; font-weight: 700;
  color: var(--ink); margin-bottom: 2px;
}
.sidebar-person-title { font-size: 12px; color: var(--sub); line-height: 1.5; }

/* ── RELATED CASES ── */
.related-section { background: var(--cream); padding: 72px 48px; border-top: 1px solid var(--rule); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }

/* ── LIST PAGE STATS BAR ── */
.cases-stats {
  background: var(--white); border-bottom: 1px solid var(--rule);
  padding: 24px 48px;
}
.cases-stats-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.cases-stat { text-align: center; }
.cases-stat-num {
  font-family: var(--font-disp); font-size: 28px; font-weight: 800;
  color: var(--green); line-height: 1; letter-spacing: -.03em;
}
.cases-stat-label { font-size: 11px; color: var(--sub); margin-top: 2px; letter-spacing: .04em; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .page-header { padding: calc(60px + 40px) 24px 40px; }
  .case-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .case-kv { grid-template-columns: 1fr; height: auto; }
  .case-kv-img { height: 260px; }
  .case-kv-info { padding: 36px 28px; }
  .case-layout { grid-template-columns: 1fr; padding: 48px 24px; }
  .case-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .cases-stats { padding: 20px 24px; }
  .content-wrap { padding: 0 24px; }
}
@media (max-width: 600px) {
  .case-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .case-kv-stats { flex-wrap: wrap; gap: 20px; }
}
