/* =========================================================
   Renewal v3 — 3 films side by side (first view) +
   diagram-led sections (no stray photos below the fold)
   Loaded after renewal.css
   ========================================================= */

/* ---------- FIRST VIEW ---------- */
.fv3 { background: #12110f; color: #fff; position: relative; overflow: hidden; }
.fv3::before { /* brand line-art, very faint */
  content: ""; position: absolute; inset: -10% -5% auto -5%; height: 80%;
  background: url('hero-abstract.jpg') center/cover no-repeat;
  opacity: .08; mix-blend-mode: screen; filter: invert(1) grayscale(.2); pointer-events: none;
}
.fv3-in { position: relative; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); }
.fv3-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px var(--gut); align-items: end; }
.fv3-eyebrow { margin: 0 0 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; color: var(--gold-500); }
.fv3-h1 { margin: 0; font-family: var(--f-serif); font-weight: 600; font-size: clamp(26px, 4.6vw, 68px); line-height: 1.22; color: #fff; word-break: keep-all; overflow-wrap: break-word; }
.fv3-h1 .b { color: color-mix(in oklch, var(--brand) 80%, white); }
.fv3-side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; padding-bottom: 8px; }
.fv3-sum { margin: 0; font-size: 15px; line-height: 1.95; color: rgba(255,255,255,.8); }
.fv3-sum b { color: #fff; font-weight: 500; }

/* "3 businesses" rule */
.fv3-rule { display: flex; align-items: center; gap: 16px; margin: clamp(40px, 5vw, 64px) 0 22px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; color: rgba(255,255,255,.55); }
.fv3-rule::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.18); }

.fv3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.fv3-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); transition: border-color .35s var(--ease), background .35s var(--ease), transform .5s var(--ease); }
.fv3-card:hover { border-color: color-mix(in oklch, var(--brand) 70%, transparent); background: rgba(255,255,255,.06); transform: translateY(-4px); }
.fv3-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 16px; }
.fv3-no { font-family: var(--f-num); font-size: 34px; line-height: 1; color: #fff; }
.fv3-lab { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--gold-500); }
.fv3-lab .ico { width: 18px; height: 18px; color: #fff; }
.fv3-film { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.fv3-film img, .fv3-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fv3-film img { animation: fv3Ken 14s ease-in-out infinite alternate; }
.fv3-card:nth-child(2) .fv3-film img { animation-delay: -4s; }
.fv3-card:nth-child(3) .fv3-film img { animation-delay: -9s; }
@keyframes fv3Ken { from { transform: scale(1.12) translate3d(-2%, 1%, 0); } to { transform: scale(1.02) translate3d(2%, -1%, 0); } }
.fv3-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,15,.0) 35%, rgba(18,17,15,.82) 100%); }
.fv3-catch { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 0 20px 16px; font-family: var(--f-serif); font-weight: 600; font-size: clamp(15px, 1.45vw, 20px); line-height: 1.55; color: #fff; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.fv3-rec { position: absolute; left: 14px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: rgba(0,0,0,.45); font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.85); }
.fv3-rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: fv3Blink 1.6s ease-in-out infinite; }
@keyframes fv3Blink { 50% { opacity: .25; } }
.fv3-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 22px; }
.fv3-t { margin: 0; font-family: var(--f-serif); font-weight: 600; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.35; color: #fff; word-break: keep-all; overflow-wrap: break-word; }
.fv3-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.45); }
.fv3-body p { margin: 0; font-size: 13.5px; line-height: 1.85; color: rgba(255,255,255,.78); }
.fv3-go { margin-top: auto; padding-top: 6px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: #fff; }
.fv3-go .arrow { color: var(--brand); transition: transform .3s var(--ease); }
.fv3-card:hover .fv3-go .arrow { transform: translateX(5px); }

/* entry motion */
.fv3 .fv3-card { opacity: 0; transform: translateY(28px); }
.fv3.is-ready .fv3-card { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease), border-color .35s, background .35s; }
.fv3.is-ready .fv3-card:nth-child(2) { transition-delay: .12s; }
.fv3.is-ready .fv3-card:nth-child(3) { transition-delay: .24s; }
.fv3.is-ready .fv3-card:hover { transform: translateY(-4px); transition-delay: 0s; }

/* light easy-start after dark FV */
.fv3 + .r-easy { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--rule); }
.fv3 + .r-easy .r-easy-h, .fv3 + .r-easy .r-easy-t { color: var(--ink); }
.fv3 + .r-easy .r-easy-grid { border-top-color: var(--ink); }
.fv3 + .r-easy .r-easy-lab { color: var(--brand); }
.fv3 + .r-easy .r-easy-lab.ind, .fv3 + .r-easy .r-easy-item.ind, .fv3 + .r-easy .r-easy-item + .r-easy-item { border-left-color: var(--rule); }
.fv3 + .r-easy .r-easy-item { border-top-color: var(--rule); }
.fv3 + .r-easy a.r-easy-item:hover .r-easy-t { color: var(--brand); }
.fv3 + .r-easy .r-easy-s { color: var(--ink-muted); }

/* ---------- CASE DIAGRAMS (replace photos) ---------- */
.r-case-fig { position: sticky; top: 100px; margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--rule); }
.r-case-fig .r-fig-cap { margin-top: 22px; }
.dg-title { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; color: var(--ink-muted); margin-bottom: 18px; }

/* split diagram (AI case) */
.dg-split { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.5fr) 36px minmax(0, .9fr); align-items: center; }
.dg-src, .dg-out { padding: 16px 12px; text-align: center; font-family: var(--f-serif); font-weight: 600; font-size: 14px; line-height: 1.5; word-break: keep-all; }
.dg-src { border: 1px solid var(--ink); }
.dg-out { background: var(--ink); color: #fff; }
.dg-lanes { display: grid; gap: 10px; }
.dg-lane { padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); }
.dg-lane .who { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-muted); }
.dg-lane .who i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.dg-lane.is-ai { border-color: var(--brand); background: color-mix(in oklch, var(--brand) 5%, var(--surface)); }
.dg-lane.is-ai .who { color: var(--brand); }
.dg-lane.is-ai .who i { background: var(--brand); }
.dg-chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.dg-chip { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid currentColor; font-size: 12.5px; }
.dg-lane.is-ai .dg-chip { color: var(--brand); }
.dg-conn { width: 100%; height: 120px; overflow: visible; }
.dg-conn path { fill: none; stroke: var(--n-500); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dg-conn path.red { stroke: var(--brand); }

/* timeline (HR case) */
.dg-days { display: grid; gap: 14px; }
.dg-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.dg-day-h { padding-top: 4px; font-family: var(--f-serif); font-weight: 600; font-size: 15px; }
.dg-day-h small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 10px; letter-spacing: .16em; color: var(--brand); }
.dg-mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dg-mod { padding: 10px 12px; background: var(--paper); border-left: 2px solid var(--gold-500); font-size: 12.5px; line-height: 1.5; }
.dg-mod.is-goal { grid-column: 1 / -1; background: var(--ink); color: #fff; border-left-color: var(--brand); font-family: var(--f-serif); font-weight: 600; font-size: 14px; }
.dg-ways { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.dg-ways span { font-size: 12px; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-strong); }

/* loop (DEV case) */
.dg-loop { position: relative; aspect-ratio: 1.25; max-width: 440px; margin: 0 auto; }
.dg-loop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dg-loop .ring { fill: none; stroke: var(--brand); stroke-width: 1.4; }
.dg-loop .tip { fill: var(--brand); }
.dg-step { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--ink); text-align: center; white-space: nowrap; }
.dg-step b { font-family: var(--f-serif); font-size: 14px; }
.dg-step small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--brand); }
.dg-step.s1 { left: 50%; top: 7.4%; }
.dg-step.s2 { left: 79.5%; top: 71.3%; }
.dg-step.s3 { left: 20.5%; top: 71.3%; }
.dg-loop-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-size: 12px; line-height: 1.6; color: var(--ink-muted); }
.dg-loop-core b { display: block; font-family: var(--f-serif); font-size: 15px; color: var(--ink); }
.dg-vs { margin-top: 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--rule); font-size: 12.5px; }
.dg-vs .old { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--brand); text-align: right; }
.dg-vs .arrow { color: var(--brand); }
.dg-vs .new { font-family: var(--f-serif); font-weight: 600; }

/* ---------- STRENGTHS (dark band) ---------- */
#strengths.is-dark { background: var(--n-900); color: var(--n-100); }
#strengths.is-dark .r-h2, #strengths.is-dark h3 { color: #fff; }
#strengths.is-dark .r-chap { border-top-color: rgba(255,255,255,.5); }
#strengths.is-dark .r-chap-no, #strengths.is-dark .r-str-lab, #strengths.is-dark .r-note { color: rgba(255,255,255,.55); }
#strengths.is-dark .eyebrow { color: var(--gold-500); }
#strengths.is-dark .r-lead, #strengths.is-dark .r-str p { color: rgba(255,255,255,.8); }
#strengths.is-dark .r-str { border-top-color: rgba(255,255,255,.22); }
#strengths.is-dark .r-str-no { color: color-mix(in oklch, var(--brand) 82%, white); }
.r-str-meter { margin-top: 18px; display: flex; gap: 4px; }
.r-str-meter i { flex: 1; height: 3px; background: rgba(255,255,255,.14); }
.r-str-meter i.on { background: var(--gold-500); }

/* ---------- VISION (diagram + line art) ---------- */
.r-vision3 { position: relative; overflow: hidden; }
.r-vision3-art { position: absolute; right: -6%; top: -4%; width: 62%; aspect-ratio: 4 / 3; background: url('hero-abstract.jpg') center/cover no-repeat; opacity: .55; mix-blend-mode: multiply; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.r-vision3 .r-head { position: relative; }
.r-vision3 .r-lead { max-width: 40em; }
.r-pair { position: relative; margin-top: 8px; }
.r-pair-hd { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr) minmax(0, 2fr); gap: 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-muted); }
.r-pair-hd .hm { color: var(--brand); }
.r-pair-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr) minmax(0, 2fr); gap: 0 20px; align-items: center; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--rule); }
.r-pair-ai, .r-pair-hu { font-family: var(--f-serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.1; }
.r-pair-ai { color: var(--ink-muted); }
.r-pair-hu { color: var(--brand); }
.r-pair-ai small, .r-pair-hu small { display: block; margin-top: 8px; font-family: var(--f-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .16em; color: var(--ink-muted); }
.r-pair-arrow svg { width: 100%; height: 20px; overflow: visible; }
.r-pair-arrow path { fill: none; stroke: var(--brand); stroke-width: 1.4; }
.r-pair-txt .lab { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--brand); }
.r-pair-txt h3 { margin: 10px 0 0; font-family: var(--f-serif); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.7; word-break: keep-all; }
.r-pair-txt h3 .b { color: var(--brand); }

/* ---------- TEAM: line-art accent ---------- */
.r-team-art { height: clamp(140px, 16vw, 220px); margin-bottom: clamp(40px, 5vw, 64px); background: url('service-hr.jpg') center 42%/cover no-repeat; filter: saturate(.9); position: relative; }
.r-team-art::after { content: "人と、人の経験をつなぐ"; position: absolute; left: 20px; bottom: 14px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--ink-muted); background: var(--surface); padding: 4px 8px; }

/* ---------- CONTACT FLOW (replaces photo) ---------- */
.r-cflow { margin: 40px 0 0; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.r-cflow::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.r-cflow.is-in::before { transform: scaleX(1); }
.r-cflow li { position: relative; padding-right: 16px; }
.r-cflow .n { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--brand); color: var(--brand); font-family: var(--f-num); font-size: 20px; }
.r-cflow li:last-child .n { background: var(--brand); color: #fff; }
.r-cflow .t { margin-top: 14px; font-family: var(--f-serif); font-weight: 600; font-size: 16px; }
.r-cflow .s { margin-top: 4px; font-size: 12.5px; line-height: 1.7; color: var(--ink-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .fv3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fv3-body p { font-size: 12.5px; }
}
@media (max-width: 900px) {
  .fv3-top { grid-template-columns: minmax(0, 1fr); }
  .fv3-side .btn-lg { white-space: normal; padding: 16px 22px; font-size: 14px; max-width: 100%; }
  /* keep 3 visible at a glance: compact stacked list with film thumbnails */
  .fv3-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fv3-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .fv3-head { grid-column: 2; grid-row: 1; padding: 12px 14px 0; }
  .fv3-no { font-size: 24px; }
  .fv3-film { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; min-height: 150px; }
  .fv3-catch, .fv3-rec { display: none; }
  .fv3-body { grid-column: 2; grid-row: 2; padding: 6px 14px 14px; gap: 6px; }
  .fv3-t { font-size: 17px; }
  .fv3-tag { display: none; }
  .fv3-body p { font-size: 12.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  .r-case-fig { position: relative; top: 0; }
  .dg-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dg-conn { height: 28px; width: 28px; margin: 0 auto; transform: rotate(90deg); }
  .r-pair-hd { display: none; }
  .r-pair-row { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 12px; }
  .r-pair-txt { grid-column: 1 / -1; margin-top: 14px; }
  .r-vision3-art { width: 100%; right: -30%; opacity: .35; }
  .r-cflow { grid-template-columns: 1fr; gap: 20px; }
  .r-cflow::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .r-cflow.is-in::before { transform: scaleY(1); }
  .r-cflow li { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
  .r-cflow .t { margin-top: 0; grid-column: 2; }
  .r-cflow .s { grid-column: 2; }
  .r-cflow .n { grid-row: 1 / span 2; }
}
@media (max-width: 560px) {
  .fv3-card { grid-template-columns: 34% minmax(0, 1fr); }
  .fv3-film { min-height: 132px; }
  .dg-mods { grid-template-columns: 1fr; }
  .dg-step { padding: 8px 10px; }
  .dg-step b { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .fv3-film img, .fv3-rec::before { animation: none; }
  .fv3 .fv3-card { opacity: 1; transform: none; }
}
