/* ============================================================
   導入事例 CSS (TOPの s07 セクションを流用)
   下層 cases.html (一覧) と cases-{slug}.html (個別) で共用。
============================================================ */

.s07-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(107, 79, 187, 0.10);
  color: var(--brand-purple);
  border-radius: var(--r-pill);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.s07-feature-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-4);
}
.s07-feature-title em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s07-feature-desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--sp-5);
}
.s07-feature-meta {
  display: flex;
  gap: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.s07-feature-meta-item { display: flex; flex-direction: column; }
.s07-feature-meta-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.s07-feature-meta-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
}

/* === Featured Case ショーケース（カラオケ館 銀座総本店）=== */
.s07-case-showcase {
  max-width: 1180px; margin: 0 auto 170px;
  display: grid; grid-template-columns: minmax(360px, 0.4fr) minmax(0, 0.6fr);
  gap: 0 var(--sp-10); align-items: start;
}
.s07-case-intro { text-align: left; }
.s07-case-intro .s07-feature-title { margin-top: var(--sp-3); }
.s07-case-intro .s07-feature-desc { margin: var(--sp-4) 0 0; }
.s07-case-intro .s07-feature-meta { margin-top: var(--sp-6); flex-direction: column; gap: var(--sp-4); }
.s07-case-main { min-width: 0; }

/* 統計カード2枚 */
.s07-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-6); }
.s07-stat-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(8,6,24,.08));
  padding: var(--sp-6); display: flex; flex-direction: column;
}
.s07-stat-brand { font-size: 13px; font-weight: 800; color: var(--brand-purple); }
.s07-stat-title { font-size: 14px; font-weight: 800; color: var(--text-primary); line-height: 1.6; margin-top: 4px; }
.s07-stat-title strong { color: var(--brand-purple); font-size: 1.2em; }
.s07-stat-rating { font-size: 22px; font-weight: 900; color: var(--text-primary); margin-top: 8px; display: flex; align-items: center; }
.s07-stat-rating .star { color: #F5A623; margin-right: 3px; }
.s07-stat-rating .to { color: var(--text-muted); margin: 0 8px; }
/* 折れ線チャート */
.s07-stat-chart { margin: var(--sp-5) 0 var(--sp-4); }
.s07-stat-chart svg { width: 100%; height: auto; display: block; }
/* 3アイコン（白） */
.s07-stat-icons { display: flex; justify-content: space-around; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-4); }
.s07-stat-icon { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.s07-stat-icon-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-gradient); display: flex; align-items: center; justify-content: center; }
.s07-stat-icon-circle svg { width: 19px; height: 19px; stroke: #fff; fill: none; }
.s07-stat-icon-circle svg.fill { fill: #fff; stroke: none; }
.s07-stat-icon span { font-size: 10.5px; font-weight: 700; color: var(--text-secondary); }
/* 棒グラフ（拡大＋上部半透明グラデ＋上昇矢印） */
.s07-stat-bars { position: relative; display: grid; grid-template-columns: 84px 84px; justify-content: center; column-gap: 50px; align-items: end; height: 230px; margin: var(--sp-4) 0 0; padding-top: 18px; }
.s07-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; z-index: 1; }
.s07-bar-stars { font-size: 12px; letter-spacing: 1px; margin-bottom: 6px; white-space: nowrap; }
.s07-bar-stars .on { color: #F5A623; }
.s07-bar-stars .off { color: #d8d5e0; }
.s07-bar-val { font-size: 14px; font-weight: 900; margin-bottom: 6px; }
.s07-bar-col--before .s07-bar-val { color: #94a0b4; }
.s07-bar-col--after .s07-bar-val { color: #1FA34A; }
.s07-bar { width: 80px; border-radius: 12px 12px 0 0; position: relative; overflow: hidden; }
.s07-bar::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); }
.s07-bar--before { background: #b9c2d2; }
.s07-bar--after { background: linear-gradient(180deg, #34C759 0%, #1FA34A 100%); }
.s07-bar-label { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 10px; }
.s07-bars-arrow { position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%); width: 96px; height: auto; color: #1FA34A; z-index: 2; pointer-events: none; }
.s07-stat-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: var(--sp-4); font-weight: 600; }

/* === スマホ5枚（CSS UIモック・横一列／260624 FB: 重ね&段違い解除）。
   260626 FB: 右カラム幅(案A)→2カラム下に全幅配置(案B)に戻す === */
.s07-phone-stack-wrap { grid-column: 1 / -1; }
.s07-phone-stack { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); padding-top: 0; margin-top: var(--sp-8); }
.s07-phone {
  position: relative; flex: 0 0 auto;
  width: 176px; aspect-ratio: .5 / 1;
  background: #0d0d12; border-radius: 20px; padding: 5px;
  box-shadow: 0 16px 40px rgba(8,6,24,.34); margin: 0;
}
/* 段違い・重なりは廃止。中央のみ少し大きく、端2枚をわずかに沈ませてカタログ感を回避 */
.s07-phone--l2 { transform: none; opacity: .82; }
.s07-phone--l1 { transform: none; }
.s07-phone--c  { width: 192px; transform: none; }
.s07-phone--r1 { transform: none; }
.s07-phone--r2 { transform: none; opacity: .82; }
.s07-ph-screen { width: 100%; height: 100%; border-radius: 15px; overflow: hidden; background: #fff; display: flex; flex-direction: column; font-size: 6.5px; line-height: 1.4; color: #1b1b1f; }
.s07-ph-screen.dark { background: #1c1c20; color: #ececf0; }
.s07-ph-status { display: flex; justify-content: space-between; align-items: center; padding: 5px 9px 3px; font-size: 6.5px; font-weight: 800; flex-shrink: 0; }
.s07-ph-status .dot { letter-spacing: 1px; opacity: .7; }
.s07-ph-head { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-bottom: 1px solid rgba(0,0,0,.07); flex-shrink: 0; }
.s07-ph-screen.dark .s07-ph-head { border-color: rgba(255,255,255,.1); }
.s07-ph-head img { width: 11px; height: 11px; object-fit: contain; }
.s07-ph-head .name { font-weight: 800; font-size: 7px; }
.s07-ph-bar { margin: 6px 8px; padding: 4px 7px; border-radius: 999px; background: #f0f1f5; color: #5b5b66; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.s07-ph-screen.dark .s07-ph-bar { background: #2c2c33; color: #b9b9c2; }
.s07-ph-body { padding: 2px 9px 8px; overflow: hidden; flex: 1; }
.s07-ph-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px; background: rgba(107,79,187,.1); color: var(--brand-purple); font-weight: 800; font-size: 6px; margin-bottom: 5px; }
.s07-ph-line { height: 4px; border-radius: 2px; background: #e7e7ee; margin: 4px 0; }
.s07-ph-screen.dark .s07-ph-line { background: #34343c; }
.s07-ph-line.w90 { width: 90%; } .s07-ph-line.w75 { width: 75%; } .s07-ph-line.w60 { width: 60%; } .s07-ph-line.w45 { width: 45%; }
.s07-ph-item { display: flex; gap: 4px; align-items: flex-start; margin: 5px 0; font-weight: 700; }
.s07-ph-item .num { color: var(--brand-purple); font-weight: 900; }
.s07-ph-screen.dark .s07-ph-item .num { color: #c4b3ff; }
.s07-ph-hl { color: #16121f; font-weight: 900; }
.s07-ph-screen.dark .s07-ph-hl { color: #fff; }
.s07-ph-store { display: flex; gap: 5px; align-items: center; padding: 5px; border: 1px solid rgba(0,0,0,.08); border-radius: 7px; margin-top: 5px; background: #fff; }
.s07-ph-store .thumb { width: 22px; height: 22px; border-radius: 5px; background: linear-gradient(135deg,#8a5a38,#e4c59b); flex-shrink: 0; }
.s07-ph-store .star { color: #F5A623; font-weight: 900; }
.s07-ph-map { flex: 1; background:
    linear-gradient(115deg, #e8efe6 0%, #dce8f0 100%);
  position: relative; }
.s07-ph-map::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(180,195,180,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(180,195,180,.5) 1px, transparent 1px);
  background-size: 22px 22px; }
.s07-ph-map .pin { position: absolute; left: 52%; top: 40%; width: 9px; height: 9px; border-radius: 50% 50% 50% 0; background: #EA4335; transform: rotate(-45deg); box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.s07-ph-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s07-ph-mapcard { padding: 6px 8px; background: #fff; border-top: 1px solid rgba(0,0,0,.08); }
.s07-ph-btns { display: flex; gap: 4px; margin-top: 5px; }
.s07-ph-btn { flex: 1; text-align: center; padding: 3px 0; border-radius: 999px; background: #1a73e8; color: #fff; font-weight: 800; font-size: 6px; }
.s07-ph-btn.ghost { background: #fff; color: #1a73e8; border: 1px solid #1a73e8; }
.s07-ph-google { font-weight: 900; font-size: 12px; letter-spacing: -.5px; }
.s07-ph-google .b{color:#4285F4}.s07-ph-google .r{color:#EA4335}.s07-ph-google .y{color:#FBBC05}.s07-ph-google .g{color:#34A853}
.s07-ph-input { margin: auto 8px 8px; padding: 4px 7px; border-radius: 999px; background: #f0f1f5; color: #9a9aa3; font-weight: 700; flex-shrink: 0; }
.s07-ph-screen.dark .s07-ph-input { background: #2c2c33; color: #8a8a93; }
.s07-ph-bubble { background: var(--brand-purple); color: #fff; border-radius: 8px 8px 2px 8px; padding: 4px 6px; font-weight: 700; margin: 4px 0 6px auto; max-width: 80%; width: fit-content; }
.s07-ph-screen.dark .s07-ph-bubble { background: #3a3a44; }

@media (max-width: 980px) {
  .s07-feature-inner { grid-template-columns: 1fr; }
  .s07-voices { grid-template-columns: 1fr; }
  .s07-case-showcase { grid-template-columns: 1fr; gap: var(--sp-7); margin: 0 auto 100px; }
  .s07-case-intro { position: static; text-align: center; }
  .s07-case-intro .s07-feature-desc { text-align: left; }
  .s07-case-intro .s07-feature-meta { align-items: center; margin-bottom: var(--sp-6); }
  .s07-phone-stack { grid-column: 1; margin-top: 0; }
  /* タブレット域(〜980px)はPC拡大幅だと横はみ出るため元サイズに戻す */
  .s07-phone { width: 142px; }
  .s07-phone--c { width: 158px; }
}
@media (max-width: 760px) {
  .s07-stat-grid { grid-template-columns: 1fr; }
  /* 横スクロール + snap で中央のスマホを起点に見える */
  .s07-phone-stack-wrap { position: relative; overflow: hidden; max-width: 100%; }
  .s07-phone-stack {
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding: 8px 20% 14px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .s07-phone-stack::-webkit-scrollbar { display: none; }
  .s07-phone { margin: 0 6px; scroll-snap-align: center; flex-shrink: 0; }
  .s07-phone--c { transform: none; }
  .s07-phone--l2, .s07-phone--r2 { transform: none; }
  /* 左右矢印 */
  .s07-phone-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 3;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    line-height: 1;
  }
  .s07-phone-arrow--prev { left: 4px; }
  .s07-phone-arrow--next { right: 4px; }
}
@media (min-width: 761px) {
  .s07-phone-arrow { display: none; }
}


/* ===== 07 v3 — CASESカルーセル（原本ワイヤー準拠・ライト版） ===== */
.s07v3-section { background: var(--bg-base); padding: var(--sp-10) 0; }
.s07v3-section .section-head { margin-bottom: var(--sp-10); }

/* 導入事例: 2×2カードグリッド（静的・カルーセル廃止） */
.cases-grid-head { max-width: 1100px; margin: 0 auto var(--sp-6); }
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); max-width: 1100px; margin: 0 auto; }
.case-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.case-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 20px 48px rgba(8,6,24,.14)); }
.case-item-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.case-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-item-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.case-item-cat { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: .02em; }
.case-item-name { font-size: 22px; font-weight: 800; color: var(--text-primary); margin: 6px 0 8px; letter-spacing: -.01em; line-height: 1.35; }
.case-item-desc { font-size: 14px; line-height: 1.75; color: var(--text-secondary); flex: 1; }
.case-item-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-5); }
.case-item-effect { font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: rgba(107,79,187,.1); color: var(--brand-purple); }
.case-item-effect--green { background: rgba(31,163,74,.12); color: #1B9648; }
.case-item-effect--amber { background: rgba(245,166,35,.18); color: #A9711A; }
.case-item-effect--blue { background: rgba(26,115,232,.12); color: #1a73e8; }
.case-item-arrow { color: var(--text-muted); font-weight: 700; font-size: 18px; flex-shrink: 0; transition: color .2s, transform .2s; }
.case-item:hover .case-item-arrow { color: var(--brand-purple); transform: translateX(3px); }
@media (max-width: 760px) { .cases-grid { grid-template-columns: 1fr; } }

/* Case carousel（原本ワイヤー準拠・ライト基調 + アクティブ紫） */
.case-carousel {
  position: relative;
  width: 100%;
  margin: var(--sp-8) 0 var(--sp-4);
}
.case-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 36px calc(50% - 190px) 44px;
  align-items: center;
}
.case-track::-webkit-scrollbar { display: none; }

.case-card {
  flex: 0 0 380px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.case-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
}
.case-card-active {
  transform: scale(1.12);
  z-index: 2;
  box-shadow: 0 32px 64px rgba(15, 16, 32, 0.25);
}
.case-card-active:hover {
  transform: scale(1.12) translateY(-6px);
}

.case-card .case-img {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1A1B33;
}
.case-card .case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 35%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  border-radius: 16px;
}

.case-stat-num {
  font-family: "Inter", sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.case-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.40);
}

.case-card .case-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 11px;
  color: #fff;
  background: rgba(15, 16, 32, 0.30);
  backdrop-filter: blur(8px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.case-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 28px 24px;
  background: rgba(15, 16, 32, 0.86);
  backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 3;
  border-radius: 0 0 16px 16px;
  max-height: 70%;
  overflow-y: auto;
}
.case-card:hover .case-hover { transform: translateY(0); }
.case-quote {
  font-size: 14px;
  color: #fff;
  line-height: 1.65;
  margin-bottom: 8px;
  font-weight: 700;
}
.case-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 12px;
}
.case-readmore {
  font-size: 12px;
  color: var(--brand-purple-light);
  font-weight: 800;
  display: inline-block;
  letter-spacing: 0.02em;
}

.cases-cta {
  text-align: center;
  margin-top: var(--sp-6);
}
.cases-cta .btn-ghost-lg {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 14px 28px;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-mid);
