/* 3事業（ブランディング・ゴルフ・M&A）の連携図パーツ
   - .hb-synergy の中だけに効くように書いている（他のページに組み込んでもぶつからない）
   - PC は「HERENGA の3事業（左）→ お客様の成果（右）」の横並び、SP は縦に積む
   - 線を流れる光は prefers-reduced-motion で止まる */

.hb-synergy {
  /* 色: サイトのネイビーとロゴの青系 */
  --sy-bg: #0d1122;
  --sy-panel: #131a33;
  --sy-card: #0f1429;
  --sy-edge: rgba(255, 255, 255, 0.10);
  --sy-edge-strong: rgba(150, 215, 255, 0.45);
  --sy-text: #eef1fb;
  --sy-sub: #a3abc9;
  --sy-mute: #6f789c;
  --sy-blue: #6aa8ff;
  --sy-cyan: #96d7ff;
  --sy-violet: #b9a6ff;
  --sy-green: #7bd189;
  --sy-gold: #f2c36b;
  /* 矢印: 線は薄紫→青→水色のグラデーション（サイトのボタンの縁の光と同じ色）、先は水色 */
  --sy-stops: rgba(185, 166, 255, 0.7), rgba(59, 91, 255, 0.9) 45%, #96d7ff;
  --sy-head: #96d7ff;
  /* 文字 */
  --sy-font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --sy-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sy-display: "Montserrat", var(--sy-font);

  color: var(--sy-text);
  font-family: var(--sy-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hb-synergy *,
.hb-synergy *::before,
.hb-synergy *::after { box-sizing: border-box; }

.hb-synergy p,
.hb-synergy h2,
.hb-synergy h3,
.hb-synergy ul { margin: 0; padding: 0; }
.hb-synergy ul { list-style: none; }

/* ---------- 全体の枠と循環の点線 ---------- */

.sy-frame {
  position: relative;
  padding: 26px;
}
.sy-loop {
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(150, 215, 255, 0.28);
  border-radius: 22px;
  pointer-events: none;
}
.sy-loop-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 4px 14px;
  border: 1px solid rgba(150, 215, 255, 0.28);
  border-radius: 999px;
  background: var(--sy-bg);
  font-size: 12.5px;
  color: var(--sy-sub);
}
.sy-loop-label b { color: var(--sy-cyan); font-weight: 500; }
/* 点線が左の枠へ戻ってくる矢印 */
.sy-loop-arrow {
  position: absolute;
  left: -1px;
  top: 92px;
  width: 26px;
  height: 0;
  border-top: 1.5px dashed rgba(150, 215, 255, 0.4);
}
.sy-loop-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5.5px;
  border: 5px solid transparent;
  border-left: 7px solid rgba(150, 215, 255, 0.6);
  border-right: 0;
}

.sy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(240px, 300px);
  align-items: stretch;
}

/* ---------- 左: HERENGA の3事業 ---------- */

.sy-panel {
  min-width: 0;
  border: 1px solid var(--sy-edge);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(106, 168, 255, 0.10), transparent 60%),
    var(--sy-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  grid-template-areas:
    "brand  brand  brand"
    "downL  .      downR"
    "golf   link   ma";
}

.sy-num {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--sy-edge);
  border-radius: 6px;
  font-family: var(--sy-mono);
  font-size: 12px;
  color: var(--sy-sub);
  background: rgba(255, 255, 255, 0.03);
}
.sy-step-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.sy-step-head h3 {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: .02em;
}
.sy-tag {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(242, 195, 107, 0.4);
  color: var(--sy-gold);
  background: rgba(242, 195, 107, 0.08);
}

.sy-card {
  min-width: 0;
  border: 1px solid var(--sy-edge);
  border-radius: 14px;
  background: var(--sy-card);
  padding: 18px;
}
.sy-desc {
  font-size: 13.5px;
  color: var(--sy-sub);
  margin-bottom: 14px;
}

/* 01 ブランディング（全幅・土台） */
.sy-brand { grid-area: brand; }
.sy-brand .sy-num { color: #0d1122; background: var(--sy-cyan); border-color: transparent; }
.sy-brand .sy-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  border-color: rgba(150, 215, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(150, 215, 255, 0.06), 0 0 40px -18px rgba(150, 215, 255, 0.5);
}
.sy-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--sy-mute);
  margin-bottom: 10px;
}
.sy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sy-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--sy-edge);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  white-space: nowrap;
}
.sy-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sy-blue);
}
.sy-chip.is-violet::before { background: var(--sy-violet); }

/* 下へ降りる線（ラベル付き） */
.sy-down {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding-left: 28px;
}
.sy-down-l { grid-area: downL; }
.sy-down-r { grid-area: downR; }
.sy-down::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--sy-stops));
}
.sy-down::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 0;
  border: 6px solid transparent;
  border-top: 8px solid var(--sy-head);
  border-bottom: 0;
}
.sy-pill {
  position: relative;
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  /* ガラスのピル（サイトのボタンと同じ）。下に線が通るところもあるので地は塗る */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)), rgba(13, 17, 34, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px -6px rgba(0, 0, 0, 0.5);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
/* 縁を回る光（css/herenga-ui.css の .hb-beam と同じ。連携図だけのページでも出るようにここにも書く） */
@property --sy-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes sy-spin { to { --sy-angle: 360deg; } }
.sy-pill::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--sy-angle),
    transparent 0%, transparent 58%,
    rgba(59, 91, 255, 0.5) 64%,
    #96d7ff 71%,
    #ffffff 74%,
    #b9a6ff 78%,
    rgba(59, 91, 255, 0.4) 83%,
    transparent 88%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: sy-spin 4.5s linear infinite;
  pointer-events: none;
}

/* 02 ゴルフ / 03 M&A */
.sy-golf { grid-area: golf; min-width: 0; }
.sy-ma { grid-area: ma; min-width: 0; }
.sy-golf .sy-num { border-color: rgba(123, 209, 137, 0.5); color: var(--sy-green); }
.sy-ma .sy-num { border-color: rgba(185, 166, 255, 0.5); color: var(--sy-violet); }
.sy-golf,
.sy-ma { display: flex; flex-direction: column; }
.sy-golf .sy-card,
.sy-ma .sy-card { flex: 1; display: flex; flex-direction: column; }

.sy-items { display: grid; gap: 8px; }
.sy-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--sy-edge);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13.5px;
  line-height: 1.45;
}
.sy-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(106, 168, 255, 0.12);
  color: var(--sy-cyan);
}
.sy-ico svg { width: 15px; height: 15px; }
.sy-golf .sy-ico { background: rgba(123, 209, 137, 0.12); color: var(--sy-green); }
.sy-ma .sy-ico { background: rgba(185, 166, 255, 0.13); color: var(--sy-violet); }
.sy-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
}
.sy-badge.is-green { color: var(--sy-green); background: rgba(123, 209, 137, 0.12); }
.sy-badge.is-blue { color: var(--sy-cyan); background: rgba(106, 168, 255, 0.14); }
.sy-badge.is-violet { color: var(--sy-violet); background: rgba(185, 166, 255, 0.14); }
.sy-badge.is-gold { color: var(--sy-gold); background: rgba(242, 195, 107, 0.12); }

.sy-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--sy-edge);
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  color: var(--sy-sub);
}
.sy-items + .sy-note { margin-top: 14px; }

/* ゴルフ ⇄ M&A のつながり */
.sy-link {
  grid-area: link;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sy-link::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  /* 両向きの矢印なので、両端を水色にそろえる */
  --sy-stops: #96d7ff, rgba(59, 91, 255, 0.9) 30%, rgba(185, 166, 255, 0.75) 50%, rgba(59, 91, 255, 0.9) 70%, #96d7ff;
  background: linear-gradient(90deg, var(--sy-stops));
}
.sy-link .sy-arrow-l,
.sy-link .sy-arrow-r {
  position: absolute;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
}
.sy-link .sy-arrow-l { left: 0; border-right: 8px solid var(--sy-head); border-left: 0; }
.sy-link .sy-arrow-r { right: 0; border-left: 8px solid var(--sy-head); border-right: 0; }
.sy-link .sy-pill {
  position: relative;
  writing-mode: vertical-rl;
  padding: 10px 3px;
  letter-spacing: .08em;
  line-height: 1.2;
}

/* 支える体制 */
.sy-base {
  grid-area: base;
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 14px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-size: 13px;
  color: var(--sy-sub);
}
.sy-base strong { color: var(--sy-text); font-weight: 600; font-size: 14px; }
.sy-base span { display: inline-flex; align-items: center; gap: 6px; }
.sy-base span::before { content: "✓"; color: var(--sy-cyan); }

/* ---------- 中央: 価値を届ける矢印 ---------- */

.sy-bridge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sy-bridge::before {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--sy-stops));
}
.sy-bridge::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left: 8px solid var(--sy-head);
  border-right: 0;
}
.sy-bridge .sy-pill {
  position: relative;
  writing-mode: vertical-rl;
  padding: 10px 3px;
  letter-spacing: .08em;
  line-height: 1.2;
}

/* ---------- 右: お客様の成果 ---------- */

.sy-result {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}
.sy-result-eyebrow { font-size: 12px; color: var(--sy-mute); margin-bottom: 6px; }
.sy-result > .sy-step-head { margin-bottom: 14px; }
.sy-outs { display: flex; flex-direction: column; flex: 1; }
.sy-out {
  border: 1px solid var(--sy-edge);
  border-radius: 14px;
  background: var(--sy-card);
  padding: 14px 16px;
}
.sy-out h4 {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}
.sy-out h4 svg { width: 16px; height: 16px; color: var(--sy-cyan); flex: none; }
.sy-out p { font-size: 12.5px; color: var(--sy-sub); }
.sy-out.is-final { border-color: rgba(150, 215, 255, 0.35); }
.sy-out.is-final h4 svg { color: var(--sy-cyan); }
.sy-vline {
  position: relative;
  flex: 1;
  min-height: 26px;
}
.sy-vline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(0deg, var(--sy-stops));
}
/* 下から上へ積み上がる流れ（ブランド価値 → … → 承継） */
.sy-vline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom: 7px solid var(--sy-head);
  border-top: 0;
}

/* ---------- 線を流れる光 ---------- */

.sy-down::before,
.sy-link::before,
.sy-bridge::before {
  background-image: linear-gradient(var(--sy-dir, 180deg), transparent 0 35%, #fff 50%, transparent 65% 100%), linear-gradient(var(--sy-dir, 180deg), var(--sy-stops));
  background-size: 100% 300%, 100% 100%;
  animation: sy-flow-v 2.8s linear infinite;
}
.sy-link::before,
.sy-bridge::before {
  --sy-dir: 90deg;
  background-size: 300% 100%, 100% 100%;
  animation-name: sy-flow-h;
}
@keyframes sy-flow-v { from { background-position: 0 100%, 0 0; } to { background-position: 0 0%, 0 0; } }
@keyframes sy-flow-h { from { background-position: 100% 0, 0 0; } to { background-position: 0% 0, 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .sy-down::before,
  .sy-link::before,
  .sy-bridge::before { animation: none; }
}

/* ---------- タブレット・SP ---------- */

@media (max-width: 1080px) {
  .sy-layout { grid-template-columns: minmax(0, 1fr); }
  .sy-bridge { min-height: 72px; }
  .sy-bridge::before { left: 50%; right: auto; top: 0; bottom: 8px; width: 2px; height: auto; margin-left: -1px; --sy-dir: 180deg; background-size: 100% 300%, 100% 100%; animation-name: sy-flow-v; }
  .sy-bridge::after { right: auto; left: 50%; top: auto; bottom: 0; margin: 0 0 0 -6px; border: 6px solid transparent; border-top: 8px solid var(--sy-head); border-bottom: 0; }
  .sy-bridge .sy-pill { writing-mode: horizontal-tb; padding: 3px 11px; }
  .sy-outs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sy-vline { display: none; }
  .sy-loop-arrow { display: none; }
}

@media (max-width: 760px) {
  .sy-frame { padding: 14px 12px; }
  .sy-loop-label { font-size: 11px; white-space: normal; width: max-content; max-width: 86%; text-align: center; }
  .sy-panel {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "downL" "golf" "link" "ma";
  }
  .sy-down-r { display: none; }
  .sy-down-l .sy-pill { white-space: normal; }
  .sy-brand .sy-card { grid-template-columns: minmax(0, 1fr); }
    .sy-link { min-height: 64px; }
  .sy-link::before { left: 50%; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; margin-left: -1px; --sy-dir: 180deg; background-size: 100% 300%, 100% 100%; animation-name: sy-flow-v; }
  .sy-link .sy-arrow-l { left: 50%; top: 0; margin: 0 0 0 -6px; border: 6px solid transparent; border-bottom: 8px solid var(--sy-head); border-top: 0; }
  .sy-link .sy-arrow-r { left: 50%; right: auto; top: auto; bottom: 0; margin: 0 0 0 -6px; border: 6px solid transparent; border-top: 8px solid var(--sy-head); border-bottom: 0; }
  .sy-link .sy-pill { writing-mode: horizontal-tb; padding: 3px 11px; }
  .sy-outs { grid-template-columns: minmax(0, 1fr); }
  .sy-item { grid-template-columns: 28px minmax(0, 1fr); }
  .sy-item .sy-badge { grid-column: 2; justify-self: start; }
}

.sy-sp-only { display: none; }
@media (max-width: 760px) {
  .sy-down-l { flex-wrap: wrap; gap: 6px; padding-block: 8px; }
  .sy-sp-only { display: inline-block; }
}

/* アイコンはすべて白で統一（背景のうっすらした色だけで事業を見分ける） */
.hb-synergy .sy-ico,
.hb-synergy .sy-golf .sy-ico,
.hb-synergy .sy-ma .sy-ico,
.hb-synergy .sy-out h4 svg,
.hb-synergy .sy-out.is-final h4 svg,
.hb-synergy .sy-base span::before { color: #fff; }

/* 強み: 2列×2行にそろえる（左の手法と同じ2行の高さ）。文字は折り返さず、列幅は中身に合わせる */
.sy-brand .sy-card { grid-template-columns: minmax(max-content, 1fr) max-content; }
.sy-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
}
@media (max-width: 1339px) {
  .sy-brand .sy-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sy-chips-grid { grid-template-columns: minmax(0, 1fr); }
  .sy-chips-grid .sy-chip { white-space: normal; }
}
@media (min-width: 761px) {
  .sy-brand .sy-chips:not(.sy-chips-grid) { display: grid; grid-template-columns: repeat(4, max-content); }
}
.sy-item .sy-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--sy-sub); }

/* アイコンなし（Yoshi 2026-10-22）: 項目は文字とバッジだけ、体制のチェックも外す */
.sy-item { grid-template-columns: minmax(0, 1fr) auto; }
.hb-synergy .sy-base span::before { content: none; }
@media (max-width: 760px) {
  .sy-item { grid-template-columns: minmax(0, 1fr); }
  .sy-item .sy-badge { grid-column: 1; }
}
.sy-item .sy-org { display: block; margin-bottom: 2px; font-size: 12px; color: var(--sy-sub); }
/* 体制: 見出しを左に、4項目を2列×2行で並べる */
.hb-synergy .sy-base {
  display: grid;
  grid-template-columns: auto repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}
.hb-synergy .sy-base strong { grid-row: span 2; align-self: center; padding-right: 6px; }
@media (max-width: 1080px) {
  .hb-synergy .sy-base { grid-template-columns: minmax(0, 1fr); }
  .hb-synergy .sy-base strong { grid-row: auto; }
}

/* ---------- アニメーション ----------
   - 登場: JS が .sy-anim を付けたときだけ隠しておき、.is-in で現れる（JSなし・reduced-motion は最初から表示）
   - 常時: 外の点線ループが左回りに流れる、成果の矢印を下から上へ光が流れる、軸のブランディングと最終成果がゆっくり光る */

/* 外の点線ループ（SVGの点線を流す） */
.sy-loop { border: 0; }
.sy-loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sy-loop-svg rect {
  fill: none;
  stroke: rgba(150, 215, 255, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  animation: sy-march 1.4s linear infinite;
}
@keyframes sy-march { to { stroke-dashoffset: 11; } }

/* 成果の矢印にも光を流す（下から上へ） */
.sy-vline::before {
  background-image: linear-gradient(180deg, transparent 0 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65% 100%), linear-gradient(0deg, var(--sy-stops));
  background-size: 100% 300%, 100% 100%;
  animation: sy-flow-v 2.8s linear infinite reverse;
}

/* 軸のブランディングと、最終成果（事業の成長と承継）がゆっくり光る（どちらもロゴの水色） */
.sy-brand .sy-card { animation: sy-glow-blue 4.8s ease-in-out infinite; }
.sy-out.is-final { animation: sy-glow-final 4s ease-in-out infinite; }
@keyframes sy-glow-blue {
  50% { box-shadow: 0 0 0 1px rgba(150, 215, 255, 0.14), 0 0 56px -14px rgba(150, 215, 255, 0.75); }
}
@keyframes sy-glow-final {
  0%, 100% { box-shadow: 0 0 0 rgba(150, 215, 255, 0); }
  50% { box-shadow: 0 0 0 1px rgba(150, 215, 255, 0.16), 0 0 36px -10px rgba(150, 215, 255, 0.6); }
}

/* 登場: カード・文字は下からふわっと、チップはぽんと */
.sy-anim .sy-rv:not(.is-in) { opacity: 0; }
.sy-anim .sy-rv.is-in { animation: sy-rise .7s cubic-bezier(.2, .7, .2, 1) var(--sy-d, 0ms) backwards; }
.sy-anim .sy-chip.sy-rv.is-in { animation-name: sy-pop; animation-duration: .5s; }
.sy-anim .sy-brand .sy-card.sy-rv.is-in {
  animation: sy-rise .7s cubic-bezier(.2, .7, .2, 1) var(--sy-d, 0ms) backwards,
             sy-glow-blue 4.8s ease-in-out calc(var(--sy-d, 0ms) + .7s) infinite;
}
.sy-anim .sy-out.is-final.sy-rv.is-in {
  animation: sy-rise .7s cubic-bezier(.2, .7, .2, 1) var(--sy-d, 0ms) backwards,
             sy-glow-final 4s ease-in-out calc(var(--sy-d, 0ms) + .7s) infinite;
}
@keyframes sy-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes sy-pop { from { opacity: 0; transform: scale(.85); } }

/* 登場: 線は伸びて、矢印とラベルはそのあとに出る（transition は .is-in 側だけに書き、隠すときは一瞬で） */
.sy-anim .sy-rl.is-in::before { transition: transform .7s cubic-bezier(.4, 0, .2, 1) var(--sy-d, 0ms); }
.sy-anim .sy-rl.is-in::after,
.sy-anim .sy-rl.is-in > * { transition: opacity .45s ease calc(var(--sy-d, 0ms) + .4s); }
/* 成果の矢印は短いので早めに伸ばし、伸びきる前から上の枠が出始める（js の OUT_STEP = 150ms と合わせて、重ねて流す） */
.sy-anim .sy-vline.sy-rl.is-in::before { transition-duration: .3s; }
.sy-anim .sy-vline.sy-rl.is-in::after { transition-delay: calc(var(--sy-d, 0ms) + .15s); }
/* 3つの矢印（ブランディング → ゴルフ、→ M&A、ゴルフ ↔ M&A）は成果のあとに1本ずつ出る（Yoshi 2026-10-22）。
   控えめに: 線がうっすら光り、ラベルは少しふくらみながら淡い水色の光をまとって現れる */
.sy-anim .sy-down.is-in,
.sy-anim .sy-link.is-in { animation: sy-arrow-glow 1.2s ease-out var(--sy-d, 0ms) backwards; }
.sy-anim .sy-down.is-in > .sy-pill,
.sy-anim .sy-link.is-in > .sy-pill { animation: sy-pill-in .8s ease-out calc(var(--sy-d, 0ms) + .35s) backwards; }
@keyframes sy-arrow-glow {
  0%, 100% { filter: none; }
  45% { filter: drop-shadow(0 0 3px rgba(150, 215, 255, 0.45)); }
}
@keyframes sy-pill-in {
  0% { transform: scale(.92); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 14px rgba(150, 215, 255, 0.32); }
  100% { transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px -6px rgba(0, 0, 0, 0.5); }
}
.sy-anim .sy-rl:not(.is-in)::before { transform: scale(0); }
.sy-anim .sy-rl:not(.is-in)::after,
.sy-anim .sy-rl:not(.is-in) > * { opacity: 0; }
.sy-anim .sy-loop.is-in > * { transition-duration: .9s; transition-delay: var(--sy-d, 0ms); }
.sy-down::before { transform-origin: center top; }
.sy-vline::before { transform-origin: center bottom; }
.sy-bridge::before { transform-origin: left center; }
@media (max-width: 1080px) {
  .sy-bridge::before { transform-origin: center top; }
}

@media (prefers-reduced-motion: reduce) {
  .sy-loop-svg rect,
  .sy-pill::after,
  .sy-vline::before,
  .sy-brand .sy-card,
  .sy-out.is-final { animation: none; }
}

/* 支える体制は右の列、成果の下に置く（Yoshi 2026-10-22）: 見出しの下に4項目を1列で */
.hb-synergy .sy-result .sy-base {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 12.5px;
}
.hb-synergy .sy-result .sy-base strong { grid-row: auto; padding: 0 0 4px; }
@media (min-width: 761px) and (max-width: 1080px) {
  .hb-synergy .sy-result .sy-base { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .hb-synergy .sy-result .sy-base strong { grid-column: 1 / -1; }
}

/* ---------- 事業名: 英語（上）と日本語（下）を併記（Yoshi 2026-10-22、トップの表記に合わせる） ---------- */
.sy-step-head { align-items: flex-start; }
.sy-step-head h3 { display: grid; gap: 1px; }
.sy-step-head .sy-en {
  font-family: var(--sy-display);
  font-variation-settings: normal;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
}
.sy-step-head .sy-ja {
  font-size: 12px;
  font-weight: 500;
  color: var(--sy-sub);
  letter-spacing: .04em;
  line-height: 1.5;
}
.sy-step-head .sy-tag { margin-top: 2px; }

/* ---------- PC（1081px〜）: 横長にまとめ、1画面に収まる高さにする（Yoshi 2026-10-22） ---------- */
@media (min-width: 1081px) {
  .sy-frame { padding: 16px; }
  .sy-loop-arrow { top: 66px; }
  .sy-layout { grid-template-columns: minmax(0, 1fr) 44px minmax(220px, 250px); }

  .sy-panel {
    position: relative;
    padding: 14px 18px 18px;
    grid-template-columns: minmax(0, 1.75fr) 52px minmax(0, 1fr);
  }
  /* ブランディングは左に見出し、右に手法と強みのカード */
  .sy-step-head { margin-bottom: 8px; }
  .sy-brand {
    display: grid;
    grid-template-columns: minmax(168px, max-content) minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
  }
  .sy-brand .sy-step-head {
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding-top: 30px;
  }
  .sy-brand .sy-step-head .sy-tag { margin: 0; }
  /* 手法（4列×2行）と強み（2列×2行）を横に並べる。入らない幅では折り返す */
  .sy-brand .sy-card {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 12px 14px;
  }
  .sy-group-label { margin-bottom: 6px; }
  .sy-brand .sy-chips { gap: 5px; }
  .sy-brand .sy-chip { gap: 6px; padding: 4px 9px; font-size: 12px; }
  .sy-down { min-height: 34px; }

  .sy-card { padding: 12px 14px; }
  .sy-desc { margin-bottom: 8px; font-size: 13px; line-height: 1.55; }
  .sy-items { gap: 6px; }
  .sy-item { padding: 7px 10px; font-size: 13px; line-height: 1.5; }
  .sy-item .sy-org,
  .sy-item .sy-sub { font-size: 11.5px; }
  .sy-item .sy-org { margin-bottom: 1px; }
  .sy-item .sy-sub { margin-top: 0; }

  /* ゴルフの6項目は2列×3行。バッジは右上に置き、1行目だけその分をあける（2行目からは全幅） */
  .sy-golf .sy-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sy-golf .sy-item { position: relative; display: block; }
  .sy-golf .sy-item > span:first-child { display: block; }
  .sy-golf .sy-item > span:first-child::before {
    content: "";
    float: right;
    width: 64px;
    height: 18px;
  }
  .sy-golf .sy-item .sy-badge {
    position: absolute;
    top: 8px;
    right: 9px;
    padding: 0 7px;
    font-size: 10.5px;
    line-height: 18px;
  }
  /* M&A の項目は、ゴルフと揃う高さまで広げる（カードの下に空きを残さない）。
     行の高さは揃えずに余りを等分するので、長い項目があってもカードがゴルフより伸びない */
  .sy-ma .sy-items { flex: 1; align-content: stretch; }

  .sy-note { padding-top: 8px; gap: 2px; font-size: 12px; }
  .sy-items + .sy-note { margin-top: 8px; }

  /* 成果 */
  .sy-result { padding-top: 0; }
  .sy-result-eyebrow { margin-bottom: 2px; }
  .sy-result > .sy-step-head { margin-bottom: 8px; }
  .sy-out { padding: 9px 14px; }
  .sy-out h4 { font-size: 14px; margin-bottom: 1px; }
  .sy-out p { font-size: 12px; line-height: 1.5; }
  .sy-vline { min-height: 14px; }
  .hb-synergy .sy-result .sy-base {
    margin-top: 10px;
    padding: 10px 14px;
    gap: 3px;
    font-size: 12px;
    line-height: 1.5;
  }
  .hb-synergy .sy-result .sy-base strong { font-size: 13px; padding-bottom: 2px; }
}

/* PC でも幅の狭い画面（〜1339px）: 手法と強みが横に並ぶよう、周りの余白と成果の列を少し詰める */
@media (min-width: 1081px) and (max-width: 1339px) {
  .sy-frame { padding: 12px; }
  .sy-layout { grid-template-columns: minmax(0, 1fr) 40px minmax(210px, 220px); }
  .sy-panel { padding: 14px 14px 16px; grid-template-columns: minmax(0, 1.75fr) 48px minmax(0, 1fr); }
  .sy-brand .sy-card { column-gap: 16px; }
}

/* ---------- 「HERENGA の3事業」の見出しは無し（Yoshi 2026-10-24: 削除） ---------- */
.sy-panel { grid-template-areas: "brand  brand  brand" "downL  .      downR" "golf   link   ma"; }
@media (max-width: 760px) {
  .sy-panel { grid-template-areas: "brand" "downL" "golf" "link" "ma"; }
}

/* ---------- 事業名を各事業の濃い枠（カード）の中に入れる（Yoshi 2026-10-22） ---------- */
.sy-card > .sy-step-head { margin-bottom: 10px; }
.sy-brand .sy-card > .sy-step-head { grid-column: 1 / -1; margin-bottom: 0; }
@media (min-width: 1081px) {
  .sy-brand { display: block; }
  .sy-brand .sy-card { align-items: center; }
  /* ブランディングは左に事業名、右に手法と強み */
  .sy-brand .sy-card > .sy-step-head {
    flex-direction: column;
    gap: 6px;
    padding: 0 6px 0 0;
    margin: 0;
  }
  .sy-card > .sy-step-head { margin-bottom: 6px; }
}

/* ---------- 全体にゆとりを持たせる（Yoshi 2026-10-22）: 余白・行間・カード同士の間隔を広げる ---------- */
.sy-card > .sy-step-head { margin-bottom: 14px; }
.sy-desc { margin-bottom: 16px; line-height: 1.75; }
.sy-items { gap: 10px; }
.sy-item { padding: 12px 14px; line-height: 1.6; }
.sy-items + .sy-note { margin-top: 14px; }
.sy-out { padding: 14px 18px; }
@media (min-width: 1081px) {
  .sy-frame { padding: 28px; }
  .sy-loop-arrow { top: 80px; }
  .sy-layout { grid-template-columns: minmax(0, 1fr) 56px minmax(230px, 260px); }
  .sy-panel { padding: 24px; grid-template-columns: minmax(0, 1.75fr) 60px minmax(0, 1fr); }
  .sy-down { min-height: 48px; }
  .sy-brand .sy-card { padding: 20px 22px; gap: 14px 26px; }
  .sy-brand .sy-chips { gap: 7px; }
  .sy-group-label { margin-bottom: 10px; }
  .sy-card { padding: 20px 22px; }
  .sy-card > .sy-step-head { margin-bottom: 12px; }
  .sy-desc { margin-bottom: 14px; font-size: 13.5px; line-height: 1.7; }
  .sy-items { gap: 10px; }
  .sy-item { padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
  .sy-golf .sy-item .sy-badge { top: 12px; right: 12px; }
  .sy-note { padding-top: 12px; gap: 4px; }
  .sy-items + .sy-note { margin-top: 14px; }
  .sy-result-eyebrow { margin-bottom: 4px; }
  .sy-result > .sy-step-head { margin-bottom: 14px; }
  .sy-out { padding: 14px 18px; }
  .sy-out h4 { margin-bottom: 3px; }
  .sy-vline { min-height: 22px; }
  .hb-synergy .sy-result .sy-base { margin-top: 18px; padding: 16px 18px; gap: 6px; }
}
@media (min-width: 1081px) and (max-width: 1339px) {
  .sy-frame { padding: 16px; }
  .sy-layout { grid-template-columns: minmax(0, 1fr) 44px minmax(210px, 230px); }
  .sy-panel { padding: 18px 16px; grid-template-columns: minmax(0, 1.75fr) 50px minmax(0, 1fr); }
  .sy-brand .sy-card { padding: 16px 16px; column-gap: 16px; }
  .sy-brand .sy-chips { gap: 5px; }
}
@media (min-width: 1081px) {
  /* ブランディングも、ゴルフ・M&A と同じく事業名を枠の上に置き、その下に手法と強みを横に並べる */
  .sy-brand .sy-card { align-items: flex-start; }
  .sy-brand .sy-card > .sy-step-head {
    flex-basis: 100%;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0 0 2px;
  }
}

/* ---------- 「価値を届ける」の矢印と文字は外す（Yoshi 2026-10-22）。左右の間はすき間として残す ---------- */
.sy-bridge::before,
.sy-bridge::after { content: none; }
@media (max-width: 1080px) {
  .sy-bridge { min-height: 28px; }
}

/* ---------- 手法・強みのチップの頭の点は外す（Yoshi 2026-10-22） ---------- */
.hb-synergy .sy-chip::before { content: none; }

/* ---------- 支える体制の各項目はバッジにする（Yoshi 2026-10-22）。強みのチップと同じ見た目 ---------- */
.hb-synergy .sy-result .sy-base {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}
.hb-synergy .sy-result .sy-base strong { flex-basis: 100%; padding: 0 0 4px; }
.hb-synergy .sy-result .sy-base span {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--sy-edge);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--sy-text);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- ブランディングの枠の右: 取引先例のロゴが流れる（Yoshi 2026-10-22） ---------- */
/* 2段で逆向きに流す。ロゴは images/logos/ の白い透過版（トップ下のロゴ帯と同じ素材） */
.sy-logos-group { grid-column: 1 / -1; min-width: 0; }
.sy-logos {
  display: grid;
  gap: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.sy-logos-row { overflow: hidden; }
.sy-logos-track {
  display: flex;
  width: max-content;
  animation: sy-logos 70s linear infinite;
}
.sy-logos-row.is-rev .sy-logos-track { animation-direction: reverse; animation-duration: 80s; }
.sy-logos-set { display: flex; flex: none; align-items: center; gap: 6px; padding-right: 6px; }
.sy-logos-set img { display: block; height: 30px; width: auto; opacity: .7; }
@keyframes sy-logos { to { transform: translateX(-50%); } }
@media (min-width: 1081px) {
  /* 手法・強みの右の空きに入る。狭い画面では下の段に回る */
  .sy-logos-group { flex: 1 1 150px; align-self: stretch; display: flex; flex-direction: column; }
  .sy-logos { flex: 1; align-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .sy-logos-track { animation: none; }
}

/* ---------- バッジは色分けせず、白い半透明のグラス調にそろえる（Yoshi 2026-10-22） ---------- */
.hb-synergy .sy-badge,
.hb-synergy .sy-badge.is-green,
.hb-synergy .sy-badge.is-blue,
.hb-synergy .sy-badge.is-violet,
.hb-synergy .sy-badge.is-gold,
.hb-synergy .sy-tag {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px -6px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
}

/* ---------- SP: 「売却前後のリブランディング」は、ブランディングから M&A へ左端を通る別の矢印にする（Yoshi 2026-10-23） ----------
   左に細い列を作って長い矢印を通し、ゴルフ（と、その上下の矢印）はその右へずらす */
@media (max-width: 760px) {
  .sy-panel {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "downR downL"
      "downR golf"
      "downR link"
      "ma    ma";
  }
  .sy-sp-only { display: none; }
  /* ラベルは矢じりの少し上に置く（Yoshi 2026-10-23: 矢じりぎりぎり → 少し上げる） */
  .sy-down-r {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 0 36px;
  }
  .sy-down-r::before { left: 16px; }
  .sy-down-r::after { left: 11px; }
  .sy-down-r .sy-pill {
    writing-mode: vertical-rl;
    padding: 10px 3px;
    letter-spacing: .08em;
    line-height: 1.2;
    white-space: nowrap;
  }
  .sy-down-l { flex-wrap: nowrap; padding-block: 0; }
}

/* SP: 手法のチップは4つずつ、横幅いっぱいに広げる（Yoshi 2026-10-23） */
@media (max-width: 760px) {
  .sy-brand .sy-chips:not(.sy-chips-grid) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 6px;
  }
  .sy-brand .sy-chips:not(.sy-chips-grid) .sy-chip {
    justify-content: center;
    padding-inline: 4px;
  }
}
@media (max-width: 359px) {
  .sy-brand .sy-chips:not(.sy-chips-grid) .sy-chip { font-size: 11.5px; padding-inline: 2px; gap: 4px; }
}

/* 成果の見出し（h4）は Webflow の h4 の字詰め（-1.6px）を受けて詰まりすぎていたので、ほかの文字と同じ字間にそろえる（Yoshi 2026-10-23） */
.hb-synergy .sy-out h4 { letter-spacing: inherit; }
