/* ═══ catapultsuplex sections.css(第三弾統合・2026-07-19)═════════
 * 旧: roadmap-animation.css / services-workshop.css / about-animation.css */

/* ═══════════ roadmap-animation ═══════════ */
.rm-wrap { max-width: 960px; margin: 0 auto; }
.rm-svg { width: 100%; height: auto; display: block; overflow: visible; }
.rm-line {
  fill: none;
  stroke: #0A0A0A;
  stroke-width: 1.6;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: rm-draw 1.4s cubic-bezier(.5, 0, .2, 1) forwards;
}
.rm-node {
  fill: #FDF1EA;
  stroke: #0A0A0A;
  stroke-width: 1.6;
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0);
  animation: rm-pop .7s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
.rm-node.n1 { animation-delay: .5s; }
.rm-node.n2 { animation-delay: 1.1s; }
.rm-node.n3 { animation-delay: 1.7s; }
.rm-pulse {
  fill: none;
  stroke: #0F6E56;
  stroke-width: 1.4;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: rm-pulse 4.5s ease-out infinite;
}
.rm-pulse.p1 { animation-delay: 3s; }
.rm-pulse.p2 { animation-delay: 4.5s; }
.rm-pulse.p3 { animation-delay: 6s; }
.rm-dot { fill: #0F6E56; opacity: 0; animation: rm-fade .4s ease 2.6s forwards; }
.rm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.rm-card {
  border: 1px solid #0A0A0A;
  padding: 24px 20px;
  opacity: 0;
  transform: translateY(40px);
  animation: rm-rise .9s cubic-bezier(.2, .8, .2, 1) forwards;
}
.rm-card.c1 { animation-delay: .7s; }
.rm-card.c2 { animation-delay: 1.3s; }
.rm-card.c3 { animation-delay: 1.9s; }
.rm-phase {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  color: #0A0A0A;
  margin: 0 0 4px;
}
.rm-title {
  font-family: var(--wp--preset--font-family--heading-font, serif);
  font-size: 24px;
  font-weight: 900;
  color: #0A0A0A;
  margin: 0 0 16px;
}
.rm-list { list-style: none; margin: 0 0 16px; padding: 0; }
.rm-list li {
  font-size: 14px;
  line-height: 1.8;
  color: #0A0A0A;
  padding-left: 14px;
  position: relative;
}
.rm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 6px;
  height: 1.4px;
  background: #0A0A0A;
}
.rm-ai {
  font-size: 13px;
  font-weight: 400;
  color: #0F6E56;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #0A0A0A;
}
@keyframes rm-draw { to { stroke-dashoffset: 0; } }
@keyframes rm-pop { to { transform: scale(1); } }
@keyframes rm-pulse {
  0% { opacity: .9; transform: scale(1); }
  55% { opacity: 0; transform: scale(3.4); }
  100% { opacity: 0; transform: scale(3.4); }
}
@keyframes rm-fade { to { opacity: 1; } }
@keyframes rm-rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .rm-line, .rm-node, .rm-pulse, .rm-dot, .rm-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
@media (max-width: 680px) {
  .rm-grid { grid-template-columns: 1fr; }
}

/* ═══════════ services-workshop ═══════════ */
/* ═══════════════════════════════════════════════════════════════════
 * Services Workshop スライドショー(2026-07-18改)
 *
 * progressive enhancement:
 *   既定(JSなし/エラー時): 全スライドを縦積みで表示・操作UI非表示
 *   JS成功時: .sw-js が付き、グリッド重ねのフェード切替+操作UIが有効化
 *   部品アニメーション(口・うなずき・付箋・腕・浮遊・報告書)は
 *   「.sw-js かつ .is-active」のスライドでのみ再生
 *   prefers-reduced-motion: 全アニメ停止(自動送りはJS側で抑止。手動操作は可)
 * ═══════════════════════════════════════════════════════════════════ */

.sw-show { max-width: 960px; margin: 0 auto; }

/* ── スライド(既定=縦積み) ───────────────────────────────── */
.sw-slides { position: relative; }
.sw-slide {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
.sw-js .sw-slides { display: grid; }
.sw-js .sw-slide {
  grid-area: 1 / 1;
  margin-bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility 0s linear .55s;
}
.sw-js .sw-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease;
}

/* ── イラスト(浮遊カード) ───────────────────────────────── */
.sw-fig {
  position: relative;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.20);
  overflow: hidden;
  background: #FFFFFF;
}
.sw-fig > img, .sw-fig > svg.sw-anim { width: 100%; height: auto; display: block; }
.sw-ov, .sw-head {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── テキスト ─────────────────────────────────────────────── */
.sw-h {
  font-family: var(--wp--preset--font-family--heading-font, sans-serif);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.6;
  color: #0A0A0A;
  margin: 0 0 16px;
}
.sw-list { list-style: none; margin: 0; padding: 0; }
.sw-list li {
  font-size: 15px;
  line-height: 1.9;
  color: #0A0A0A;
  padding-left: 16px;
  position: relative;
}
.sw-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 8px;
  height: 1.6px;
  background: #0F6E56;
}
.sw-list ul { list-style: none; margin: 0; padding-left: 18px; }

/* ── 操作UI(JS時のみ表示) ─────────────────────────────────── */
.sw-nav { display: none; }
.sw-js .sw-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.sw-btn {
  width: 40px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid #0A0A0A;
  border-radius: 0;
  color: #0A0A0A;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sw-btn svg { width: 16px; height: 16px; }
.sw-btn:hover, .sw-btn:focus-visible { border-color: #0F6E56; color: #0F6E56; }
.sw-dots { display: flex; gap: 12px; }
.sw-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 1.6px solid #0A0A0A;
  background: transparent;
  cursor: pointer;
}
.sw-dot:hover, .sw-dot:focus-visible { border-color: #0F6E56; }
.sw-dot[aria-current="true"] { background: #0F6E56; border-color: #0F6E56; }

/* ── 部品アニメーション(.sw-js かつ is-active のみ) ─────────── */

/* scene-1: 口(話す)…開閉2状態を交互に */
.sw-js .is-active .sw-m-open  { animation: sw-talk-o 1.6s steps(1, end) infinite; }
.sw-js .is-active .sw-m-closed { animation: sw-talk-c 1.6s steps(1, end) infinite; }
@keyframes sw-talk-o { 0%,24% { opacity: 0; } 25%,55% { opacity: 1; } 56%,100% { opacity: 0; } }
@keyframes sw-talk-c { 0%,24% { opacity: 1; } 25%,55% { opacity: 0; } 56%,100% { opacity: 1; } }

/* scene-1: 右人物のうなずき(クリップした頭部コピーの微小回転) */
.sw-head {
  clip-path: polygon(60.3% 4.5%, 75.4% 4.5%, 75.4% 28.4%, 60.3% 28.4%);
  transform-origin: 67.9% 28.2%;
}
.sw-js .is-active .sw-head { animation: sw-nod 3.4s ease-in-out infinite; }
@keyframes sw-nod { 0%, 100% { transform: rotate(0deg); } 42% { transform: rotate(1.7deg); } 58% { transform: rotate(1.4deg); } }

/* scene-2/4: 付箋のポップイン(表示時に時差で立ち上がる) */
.sw-js .is-active .sw-note {
  animation: sw-pop .5s cubic-bezier(.2, 1.5, .4, 1) both;
  animation-delay: calc(var(--n, 0) * 55ms);
}
@keyframes sw-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* scene-2/4: 入れ替わり(一部の付箋がゆっくり消えて現れる) */
.sw-js .is-active .sw2-notes .sw-note:nth-of-type(5n+2),
.sw-js .is-active .sw4-notes .sw-note:nth-of-type(3n+1) {
  animation: sw-pop .5s cubic-bezier(.2, 1.5, .4, 1) both, sw-swap 4s ease-in-out calc(1.4s + var(--n, 0) * .6s) infinite;
}
@keyframes sw-swap { 0%, 62%, 100% { opacity: 1; transform: scale(1); } 74%, 88% { opacity: 0; transform: scale(.6); } }

/* scene-2/4: 指す腕の微動(肩支点±3°) */
.sw-js .is-active .sw-arm { animation: sw-point 2.8s ease-in-out infinite; }
@keyframes sw-point { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg); } }
.sw-fig-4 .sw-arm { animation-name: sw-point-up; }
.sw-js .is-active.sw-slide .sw-fig-4 .sw-arm { animation: sw-point-up 3.1s ease-in-out infinite; }
@keyframes sw-point-up { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }

/* scene-3: 全体のゆっくりした浮遊 */
.sw-js .is-active .sw-fig-3 img { animation: sw-float 5.5s ease-in-out infinite; }
@keyframes sw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* scene-5: 報告書のその場での小さな傾き+上下(移動なし) */
.sw-js .is-active .sw-doc { transform-origin: 890px 400px; animation: sw-hand 3.4s ease-in-out infinite; }
@keyframes sw-hand {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  35% { transform: rotate(-1.6deg) translateY(2px); }
  65% { transform: rotate(0.8deg) translateY(1px); }
}

/* ── モバイル ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .sw-slide { grid-template-columns: 1fr; gap: 20px; }
  .sw-h { font-size: 17px; }
}

/* ── reduced-motion: 全アニメ停止・全表示(自動送りはJS側で抑止) ── */
@media (prefers-reduced-motion: reduce) {
  .sw-m-open, .sw-m-closed, .sw-head, .sw-note, .sw-arm, .sw-doc,
  .sw-fig-3 img, .sw-slide {
    animation: none !important;
    transition: none !important;
  }
  .sw-m-open { opacity: 0 !important; }
  .sw-m-closed { opacity: 1 !important; }
}

/* ═══════════ about-animation ═══════════ */
.ab-hero { position: relative; max-width: 620px; margin: 0 auto; }
.ab-hero img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: ab-reveal 1.3s cubic-bezier(.6, 0, .2, 1) forwards;
}
.ab-hero .ab-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ab-bubble {
  animation: ab-bfloat 3.4s ease-in-out 1.8s infinite alternate;
}
.ab-bubble > g {
  opacity: 0;
  animation: ab-fadein .6s ease 1.3s forwards;
}
.ab-dot { fill: #0A0A0A; opacity: 0; animation: ab-think 2.2s ease-in-out infinite; }
.ab-dot.t1 { animation-delay: 1.9s; }
.ab-dot.t2 { animation-delay: 2.2s; }
.ab-dot.t3 { animation-delay: 2.5s; }
@keyframes ab-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes ab-fadein { to { opacity: 1; } }
@keyframes ab-bfloat { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes ab-think {
  0%, 15% { opacity: 0; }
  30%, 70% { opacity: 1; }
  85%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero img, .ab-bubble, .ab-bubble > g, .ab-dot {
    animation: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
