/* ==========================================================
   サービスページ：工業製品の数値流体解析・燃焼解析（/ja/cfd/）
   RISCOPEページの部品（riscope.css）を、aerota の青で使う
   ========================================================== */
.page-cfd {
  --rs-ink: #04101b;
  --rs-deep: #04101b;
  --rs-purple: #1f5fd1;
  --rs-purple-soft: #8fbaff;
  --rs-lilac: #e8f0ff;
}
.page-cfd .btn--primary { background: var(--accent); border-color: var(--accent); }
.page-cfd .btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.page-cfd .contact { background: radial-gradient(ellipse 50% 80% at 90% 10%, rgba(61,139,255,.22), transparent 60%), var(--navy-900); }

.cfd-hero { position: relative; overflow: hidden; min-height: min(760px, 92vh); display: flex; align-items: center; padding: calc(var(--header-h) + 80px) 0 104px; background: var(--navy-900); color: var(--white); }
.cfd-hero .tech-bg { height: 100%; }
.cfd-hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,16,27,.95) 0%, rgba(4,16,27,.78) 38%, rgba(4,16,27,.15) 70%, rgba(4,16,27,0) 85%); }
.cfd-hero__inner { position: relative; z-index: 1; width: 100%; }
.cfd-hero__title { margin-top: 24px; font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; line-height: 1.35; letter-spacing: .01em; }
.cfd-hero__lead { margin-top: 28px; max-width: 600px; font-size: 17px; line-height: 2; color: var(--text-on-dark); }
.cfd-hero__lead strong { color: #fff; }

.cfd-scope { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cfd-card { padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.cfd-card__en { margin-top: 20px; font-family: var(--font-label); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.cfd-card h3 { margin-top: 6px; font-size: 19px; font-weight: 700; }
.cfd-card > p:last-child { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--text-muted); }

.cfd-strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line-dark); border: 1px solid var(--line-dark); }
.cfd-strengths li { padding: 40px 32px; background: var(--navy-900); }
.cfd-strengths__num { font-family: var(--font-label); font-size: 14px; font-weight: 700; color: var(--accent-soft); }
.cfd-strengths h3 { margin-top: 16px; font-size: 19px; font-weight: 700; line-height: 1.6; }
.cfd-strengths p { margin-top: 12px; font-size: 15px; line-height: 1.9; color: var(--text-on-dark-muted); }

.cfd-flow { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .cfd-scope { grid-template-columns: 1fr 1fr; }
  .cfd-strengths { grid-template-columns: 1fr; }
  .cfd-flow { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cfd-hero { min-height: 0; padding: calc(var(--header-h) + 56px) 0 80px; }
  .cfd-hero__lead { font-size: 15px; }
  .cfd-hero__shade { background: rgba(4,16,27,.7); }
  .cfd-scope { grid-template-columns: 1fr; }
}

/* ---------- 解析事例 ---------- */
.cfd-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cfd-case {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; padding: 28px 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.cfd-case::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.cfd-case--det { --c: #e0752d; }
.cfd-case--turb { --c: #2bb3a3; }
.cfd-case--flame { --c: #d94a4a; }
.cfd-case--shock { --c: #3d8bff; }
.cfd-case--scale { --c: #7a5cd6; }
.cfd-case__cat { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.cfd-case h3 { margin-top: 14px; font-size: 18px; font-weight: 700; line-height: 1.55; }
.cfd-case__sum { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--text-muted); }
.cfd-case__stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.cfd-case__sum { margin-bottom: 18px; }
.cfd-case__stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cfd-case__stat b { font-family: var(--font-label); font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--text); }
.cfd-case__stat b small { margin-left: 3px; font-size: 14px; font-weight: 700; color: var(--c); }
.cfd-case__stat span { font-size: 12px; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 860px) { .cfd-cases { grid-template-columns: 1fr; } }
.cfd-case__media { margin: -28px -28px 22px; background: #15171c; aspect-ratio: 16 / 7; overflow: hidden; }
.cfd-case__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cfd-case__media img { cursor: zoom-in; transition: opacity .2s; }
.cfd-case__media img:hover { opacity: .9; }
.cfd-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: rgba(8, 10, 14, .88); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; cursor: zoom-out; }
.cfd-lightbox.is-open { opacity: 1; visibility: visible; }
.cfd-lightbox figure { margin: 0; width: min(1100px, 100%, (100vh - 140px) * 2.3); }
.cfd-lightbox img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; background: #15171c; cursor: default; }
.cfd-lightbox figcaption { margin-top: 12px; color: #e6e8ee; font-size: 14px; text-align: center; }
.cfd-lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.cfd-phenomena { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.cfd-phenomena li { padding: 7px 16px; border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--accent); }
