/* =========================================================
   SKOFFICE — トップページの共通部品（2026-11-29）
   2つのサイトのトップで使う：ファーストビューの打ち込み文字・2段の流れる帯・実績のスライダー・
   背景が遅れて動く帯・スクロールで伸びる流れ線・質問。動きそのものは motion.css。
   ========================================================= */

/* ---------- ファーストビュー ---------- */
.hero__now { top: calc(var(--nav-h) + 12px); }
.hero__para { position: absolute; inset: 0; }
.hero__para .hero__wall { position: absolute; inset: var(--frame) 0 0 0; width: 100%; height: calc(100% - var(--frame)); }
.hero__title .row { display: block; }
.hero__title em { padding: 0 .02em; }
.hero__type { margin: 24px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-weight: 900; font-size: clamp(18px, 2vw, 28px); letter-spacing: .04em; opacity: 0; transform: translateY(12px); transition: opacity 1s .5s, transform 1s .5s var(--ease); }
.is-loaded .hero__type { opacity: 1; transform: none; }
.hero__type-k { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--cobalt); color: #fff; align-self: center; }
.hero__type-w { color: var(--blue); min-width: 1em; }
.hero__type-s { opacity: .9; }
.hero__lead { max-width: 38em; }
.hero__note { display: inline-flex; align-items: flex-end; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; padding: 0 0 4px 4px; color: var(--blue); }
.hero__note svg { width: 56px; height: 28px; flex: none; transform: translateY(-8px); }
@media (max-width: 600px) {
  .hero__note { width: 100%; justify-content: center; padding: 6px 0 0; }
  .hero__note svg { display: none; }
  .hero__type { margin-top: 18px; }
}

/* ---------- 05 マーキー（2段） ---------- */
.mqs { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-inv); }
.mq__set { display: flex; align-items: center; }
.mq__set--words { gap: 28px; padding: 18px 28px 18px 0; font-family: var(--font-en); font-weight: 700; font-size: clamp(18px, 2.2vw, 28px); white-space: nowrap; }
.mq__set--words i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.mq__set--chips { gap: 10px; padding: 0 10px 18px 0; }
.mq__set--chips b { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .06em; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line-inv); color: rgba(247, 245, 241, .78); white-space: nowrap; transition: background .3s, color .3s; }
.mq__set--chips b:nth-child(4n+2) { background: rgba(188, 211, 255, .12); color: var(--blue); }

/* ---------- 言葉が順に濃くなる一文 ---------- */
.intro__statement[data-hilite] { line-height: 1.6; }

/* ---------- 02 サービス：カードを順に ---------- */
.caps .cap.lift:hover { transform: translateY(-8px); }

/* ---------- 03 制作実績のスライダー（14 ＋ 12） ---------- */
.wsl .sl__view { border: 1px solid var(--line); background: var(--paper); }
.wsl__slide { display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
.wsl__img { min-width: 0; position: relative; min-height: 360px; background: var(--ink); }
.wsl__img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.wsl__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,19,0) 70%, rgba(17,17,19,.12)); pointer-events: none; }
.wsl__body { min-width: 0; padding: clamp(24px, 3.2vw, 48px); display: grid; gap: 12px; align-content: center; }
.wsl__body h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 900; line-height: 1.45; word-break: auto-phrase; }
.wsl__body h3 small { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.wsl__body > p:not(.work__tag) { margin: 0; color: #3b3934; font-size: 14.5px; }
.wsl__slide .wsl__body > * { opacity: 0; translate: 24px 0; transition: opacity .6s, translate .8s var(--ease); }
.wsl__slide.is-active .wsl__body > * { opacity: 1; translate: 0 0; }
.wsl__slide.is-active .wsl__body > :nth-child(2) { transition-delay: .08s; }
.wsl__slide.is-active .wsl__body > :nth-child(3) { transition-delay: .16s; }
.wsl__slide.is-active .wsl__body > :nth-child(4) { transition-delay: .24s; }
.wsl__slide.is-active .wsl__body > :nth-child(5) { transition-delay: .32s; }
@media (max-width: 860px) {
  .wsl__slide { grid-template-columns: 1fr; }
  .wsl__img { aspect-ratio: 16 / 10; min-height: 0; }
  .wsl__body { align-content: start; }
  .sl__nav button { width: 42px; height: 42px; }
}

/* ---------- 背景だけ遅れて動く帯（03） ---------- */
.pband { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(120px, 16vw, 220px) 0; isolation: isolate; }
.pband__bg { position: absolute; left: -4%; right: -4%; top: -30%; bottom: -30%; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform-origin: center; rotate: -6deg; }
.pband__bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; opacity: .55; }
.pband__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.78) 45%, rgba(10,10,12,.45) 100%); background-image: radial-gradient(rgba(10,10,12,.5) 1px, transparent 1.4px), linear-gradient(100deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.74) 50%, rgba(10,10,12,.4) 100%); background-size: 4px 4px, auto; }
.pband__en { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.pband__big { margin: 0; font-weight: 900; font-size: clamp(34px, 5.6vw, 80px); line-height: 1.3; letter-spacing: .03em; }
.pband__text { margin: 28px 0 0; max-width: 34em; font-size: clamp(15px, 1.2vw, 17px); color: rgba(247, 245, 241, .84); }

/* ---------- 07 進め方：スクロールで線が伸びる（16） ---------- */
.flowline { position: relative; }
.flowline__svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.flowline__base { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.flowline__svg .draw { stroke: var(--cobalt); stroke-width: 2.5; }
.flowline__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.flowline__steps li { position: relative; padding: 140px 18px 0; text-align: center; }
.fl__dot { position: absolute; left: 50%; top: 60px; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--white); border: 2px solid var(--steel); transition: border-color .3s; }
.fl__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--cobalt); opacity: clamp(0, calc((var(--draw, 0) - var(--k)) * 25), 1); scale: clamp(.3, calc((var(--draw, 0) - var(--k)) * 25 + .3), 1); }
.fl__no { display: block; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; color: var(--cobalt); }
.flowline__steps h3 { margin: 8px 0 6px; font-size: 18px; font-weight: 900; }
.flowline__steps p { margin: 0 0 12px; font-size: 13.5px; color: #3b3934; line-height: 1.75; }
.flowline__steps .step__out { text-align: left; }
.flowline__steps li > :not(.fl__dot) { opacity: clamp(.25, calc((var(--draw, 0) - var(--k)) * 8 + 1), 1); transition: opacity .2s linear; }
.is-shot .flowline__steps li > *, .is-shot .fl__dot::after { opacity: 1 !important; scale: 1 !important; }
@media (prefers-reduced-motion: reduce) { .flowline__steps li > *, .fl__dot::after { opacity: 1 !important; scale: 1 !important; } }
@media (max-width: 860px) {
  .flowline__svg { display: none; }
  .flowline::before, .flowline::after { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
  .flowline::before { background: var(--line); }
  .flowline::after { background: var(--cobalt); transform-origin: top; transform: scaleY(var(--draw, 0)); }
  .is-shot .flowline::after { transform: none; }
  .flowline__steps { grid-template-columns: 1fr; gap: 26px; }
  .flowline__steps li { padding: 0 0 0 48px; text-align: left; }
  .fl__dot { left: 11px; top: 10px; }
}

/* ---------- 08 よくある質問 ---------- */
.faq details.acc summary:hover .q { color: var(--cobalt); }

/* ---------- スマホの流れ線の字下げ ---------- */
@media (max-width: 760px) { .flowline__steps li { padding-left: 44px; } }

/* ---------- スマホ：打ち込み中に後ろの文が揺れないよう、続きの文は次の行に ---------- */
@media (max-width: 600px) { .hero__type-s { flex-basis: 100%; } }
