/* /business/ec/ ページ固有スタイル */

/* ============================================================
   「EC・小売・卸事業の強み」: オフセット・ツインカラム
   （.ec-strength / .ec-scard）。右カラム全体を下にオフセットした
   互い違い2カラムでスクロールリズムを作る。各カードはヘッダー
   ビジュアル（既存マイクロモーション装飾を拡大転用）+タイトル+本文。
   旧: 均等12カラムベントー+巨大アウトライン数字（.ec-bento、廃止）。
   ============================================================ */
.ec-strength {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 28px);
  align-items: start;
}

.ec-strength-col {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.ec-strength-col--offset {
  margin-top: clamp(32px, 6vw, 64px);
}

@media (max-width: 880px) {
  .ec-strength {
    grid-template-columns: 1fr;
  }
  .ec-strength-col--offset {
    margin-top: 0;
  }
}

.ec-scard {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.ec-scard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.ec-scard-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(120px, 15vw, 172px);
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
}

.ec-scard-body {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2.6vw, 28px) clamp(22px, 2.8vw, 28px) clamp(24px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}

.ec-scard-num {
  font-family: "Inter", var(--font-sans);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--c-ec-text);
  margin-bottom: 10px;
}

.ec-scard-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.ec-scard-text {
  font-size: 0.92rem;
  color: var(--c-text-sub);
  line-height: 1.8;
}

/* 01: データドリブン運営 — グラフ風の折れ線が繰り返し描画されるループ
   （ヘッダービジュアルとして拡大） */
.ec-deco-chart {
  width: 100%;
  max-width: 260px;
  height: 72px;
}

.ec-deco-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ec-chart-line {
  fill: none;
  stroke: var(--c-ec-text);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300 300;
  stroke-dashoffset: 300;
  animation: ecChartDraw 3.6s ease-in-out infinite;
}

@keyframes ecChartDraw {
  0% { stroke-dashoffset: 300; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

/* 02: ギフト対応力 — オリジナルギフト箱+のし紙のイラスト（揺れは
   控えめなフロートのみ。リボン蝶結びは事実修正のため廃止） */
.ec-deco-giftbox {
  width: 96px;
  height: 72px;
  animation: ecGiftFloat 3.4s ease-in-out infinite alternate;
}

.ec-deco-giftbox svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gb-box { fill: #0369a1; }
.gb-lid { fill: var(--c-ec); }
.gb-noshi { fill: #fff; stroke: rgba(3, 105, 161, 0.4); stroke-width: 1; }
.gb-noshi-rule { stroke: rgba(3, 105, 161, 0.5); stroke-width: 1; }

@keyframes ecGiftFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

/* 03: 幅広いメーカー商品の取り扱い — 接続線が2点間を繋ぐループ
   （ヘッダービジュアルとして拡大） */
.ec-deco-link {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 220px;
  height: 20px;
}

.ec-link-node {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-ec-text);
}

.ec-link-line {
  flex: 1;
  height: 3px;
  min-width: 60px;
  margin: 0 10px;
  background: rgba(14, 165, 233, 0.16);
  position: relative;
  overflow: hidden;
}

.ec-link-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--c-ec);
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.15);
  animation: ecLinkTravel 2.6s ease-in-out infinite;
}

@keyframes ecLinkTravel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 14px); opacity: 0; }
}

/* 04: CS・物流品質 — 配送経路のドットが移動するループ
   （ヘッダービジュアルとして拡大） */
.ec-deco-route {
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 20px;
  overflow: hidden;
}

.ec-route-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  margin-top: -1.5px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(14, 165, 233, 0.25) 0 8px,
    transparent 8px 16px
  );
}

.ec-route-dot {
  position: absolute;
  top: 50%;
  left: -10px;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--c-ec);
  opacity: 0;
  animation: ecRouteMove 3.2s linear infinite;
}

.ec-route-dot:nth-child(2) { animation-delay: -1.07s; }
.ec-route-dot:nth-child(3) { animation-delay: -2.14s; }

@keyframes ecRouteMove {
  0% { left: -10px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-chart-line {
    animation: none;
    stroke-dashoffset: 0;
  }
  .ec-deco-giftbox {
    animation: none;
    transform: none;
  }
  .ec-link-pulse {
    animation: none;
    left: calc(50% - 7px);
    opacity: 1;
  }
  .ec-route-dot {
    animation: none;
    opacity: 0;
  }
  .ec-route-dot:nth-child(2) {
    left: 50%;
    opacity: 1;
  }
}

/* ============================================================
   実績: 成長の軌跡（.ec-growth-panel）
   business/ai/ の .stats--xl（グラデーションテキスト+アンダーラインの
   決算ボード）とは異なる視覚語彙にするため、ここでは
   「上昇する軌跡の線」+「左アクセントバーの数値カード」で構成する。
   軌跡線はグラフではなく、2019年開始と6年目の2点だけを結ぶ
   軌跡モチーフ（架空の中間データを示唆しない）。
   ============================================================ */
.ec-growth-panel {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  margin-top: 40px;
  padding: clamp(28px, 3.4vw, 40px);
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
}

@media (max-width: 880px) {
  .ec-growth-panel {
    grid-template-columns: 1fr;
  }
}

.ec-growth-arc-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ec-growth-arc-line {
  fill: none;
  stroke: var(--c-ec);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}

.ec-growth-arc.is-visible .ec-growth-arc-line {
  stroke-dashoffset: 0;
}

.ec-growth-arc-dot {
  fill: var(--c-ec-text);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.ec-growth-arc-dot--start {
  transition-delay: 0.05s;
}

.ec-growth-arc-dot--end {
  transition-delay: 1.2s;
}

.ec-growth-arc.is-visible .ec-growth-arc-dot {
  opacity: 1;
}

.ec-growth-arc-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.ec-growth-arc-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.ec-growth-arc-label--end {
  text-align: right;
}

.ec-growth-arc-year {
  font-family: "Inter", var(--font-sans);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-ink);
}

.ec-growth-arc-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-sub);
}

.ec-growth-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

@media (max-width: 480px) {
  .ec-growth-metrics {
    grid-template-columns: 1fr;
  }
}

.ec-growth-metric {
  position: relative;
  padding-left: 18px;
}

.ec-growth-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 8px;
  width: 3px;
  border-radius: var(--r-full);
  background: var(--c-ec);
}

.ec-growth-metric .stat-number {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.8rem);
}

/* ============================================================
   取り扱いカテゴリ（.ec-catband）
   サイト初のダーク全幅バンド。5カラムをヘアラインで区切り、
   EN/カテゴリ名/説明を積む。旧: 什器の棚2段（.ec-shelf、廃止）。
   about のシアターバンド（ダーク+オーロラ）やhomeのworlds-x
   （写真アコーディオン）とは異なり、フラットなダーク+ヘアライン
   のみで抑制的に構成する。
   ============================================================ */
.ec-catband {
  width: 100%;
  margin-top: clamp(40px, 6vw, 64px);
  background: var(--c-dark-bg);
}

.ec-catband-cols {
  max-width: var(--w-container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  padding: 0;
  margin-block: 0;
}

.ec-catband-col {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(48px, 6vw, 76px) clamp(16px, 1.8vw, 24px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ec-catband-col:last-child {
  border-right: none;
}

.ec-catband-col::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0%;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0) 0%, rgba(14, 165, 233, 0.16) 100%);
  transition: height 0.45s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.ec-catband-col:hover::before,
.ec-catband-col:focus-within::before {
  height: 100%;
}

.ec-catband-top {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ec-catband-en {
  font-family: "Inter", var(--font-sans);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--c-ec);
}

.ec-catband-name {
  margin-top: auto;
  margin-bottom: auto;
  padding-block: 18px;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  transition: transform 0.3s var(--ease-out);
}

.ec-catband-col:hover .ec-catband-name,
.ec-catband-col:focus-within .ec-catband-name {
  transform: translateY(-4px);
}

.ec-catband-text {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--c-dark-sub);
}

@media (max-width: 880px) {
  .ec-catband-cols {
    grid-template-columns: repeat(3, 1fr);
  }
  .ec-catband-col:nth-child(3) {
    border-right: none;
  }
  .ec-catband-col:nth-child(n+4) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 640px) {
  .ec-catband-cols {
    grid-template-columns: 1fr;
  }
  .ec-catband-col {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 24px clamp(16px, 5vw, 24px);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ec-catband-col:nth-child(3) {
    border-right: none;
  }
  .ec-catband-col:nth-child(n+4) {
    border-top: none;
  }
  .ec-catband-col:last-child {
    border-bottom: none;
  }
  .ec-catband-top {
    flex: 0 0 auto;
    width: 40%;
    display: block;
  }
  .ec-catband-name {
    margin: 4px 0 0;
    padding-block: 0;
    font-size: clamp(1.05rem, 1rem + 0.6vw, 1.3rem);
  }
  .ec-catband-text {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-catband-col::before {
    transition: none;
  }
  .ec-catband-name {
    transition: none;
  }
}

/* ============================================================
   展開モール（.ec-transit）
   横流れマーキー（他ページ・本ページ下部の主要取扱メーカーと
   重複するため廃止）に替えて、7つの出店モールを「7つの駅」に
   見立てた路線図（トランジットマップ）で表現する。iHoldingsを
   起点に1本の路線が伸び、駅ノードは.ec-flow（工程円）や
   数字インデックスと混同されないよう小さめ・路線は太めにして
   差別化する。
   ============================================================ */
.ec-transit {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 0 clamp(4px, 2vw, 24px);
  overflow: visible;
}

.ec-transit-stations {
  display: grid;
  grid-template-columns: auto repeat(7, 1fr);
  grid-template-rows: minmax(26px, auto) 20px minmax(26px, auto);
  align-items: center;
  column-gap: clamp(4px, 1.6vw, 18px);
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-transit-line-item {
  grid-column: 2 / -1;
  grid-row: 2;
  z-index: 0;
}

.ec-transit-line-track {
  display: block;
  position: relative;
  width: 100%;
}

.ec-transit-line-track[data-reveal] {
  opacity: 1;
  transform: none;
}

.ec-transit-line-svg {
  display: block;
  width: 100%;
  height: 4px;
  overflow: visible;
}

.ec-transit-line-vbar {
  display: none;
}

.ec-transit-line-path {
  stroke: var(--c-ec);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}

.ec-transit-line-track.is-visible .ec-transit-line-path {
  stroke-dashoffset: 0;
}

.ec-transit-origin {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: clamp(8px, 2vw, 18px);
  z-index: 2;
}

.ec-transit-origin[data-reveal] {
  transform: scale(0.6);
}

.ec-transit-origin.is-visible {
  transform: scale(1);
}

.ec-transit-origin-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--g-brand);
  box-shadow: 0 0 0 4px rgba(43, 92, 255, 0.14);
}

.ec-transit-origin-label {
  font-family: "Inter", var(--font-sans);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--c-ink);
  white-space: nowrap;
}

.ec-transit-station {
  display: contents;
}

.ec-transit-node {
  grid-row: 2;
  grid-column: var(--si);
  justify-self: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-ec);
  box-shadow: 0 2px 6px rgba(11, 16, 32, 0.16);
  z-index: 2;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.ec-transit-node[data-reveal] {
  opacity: 0;
  transform: scale(0.3);
}

.ec-transit-node.is-visible {
  opacity: 1;
  transform: scale(1);
}

.ec-transit-node:hover,
.ec-transit-node:focus-visible {
  transform: scale(1.28);
  border-color: var(--c-ec-text);
  box-shadow: 0 3px 10px rgba(11, 16, 32, 0.22);
}

.ec-transit-label {
  grid-column: var(--si);
  justify-self: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-text-sub);
  text-align: center;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease-out) 0.12s, transform 0.45s var(--ease-out) 0.12s, color 0.25s var(--ease-out);
}

.ec-transit-node.is-visible + .ec-transit-label {
  opacity: 1;
  transform: none;
}

.ec-transit-label:hover {
  color: var(--c-ec-text);
}

.ec-transit-station--up .ec-transit-label {
  grid-row: 1;
  align-self: end;
  margin-bottom: 8px;
}

.ec-transit-station--down .ec-transit-label {
  grid-row: 3;
  align-self: start;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .ec-transit-stations {
    grid-template-columns: 22px 1fr;
    grid-template-rows: auto repeat(7, auto);
    row-gap: 22px;
    column-gap: 16px;
  }

  .ec-transit-line-item {
    grid-column: 1;
    grid-row: 2 / -1;
    justify-self: center;
    height: 100%;
  }

  .ec-transit-line-track {
    height: 100%;
  }

  .ec-transit-line-svg {
    display: none;
  }

  .ec-transit-line-vbar {
    display: block;
    width: 4px;
    height: 100%;
    margin-inline: auto;
    background: var(--c-ec);
    border-radius: var(--r-full);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 1.1s var(--ease-out);
  }

  .ec-transit-line-track.is-visible .ec-transit-line-vbar {
    transform: scaleY(1);
  }

  .ec-transit-origin {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-right: 0;
  }

  .ec-transit-station--up .ec-transit-label,
  .ec-transit-station--down .ec-transit-label {
    grid-column: 2;
    grid-row: var(--si);
    justify-self: start;
    align-self: center;
    text-align: left;
    margin: 0;
  }

  .ec-transit-node {
    grid-column: 1;
    grid-row: var(--si);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-transit-line-path {
    stroke-dashoffset: 0;
    transition: none;
  }
  .ec-transit-origin {
    transform: scale(1);
    transition: none;
  }
  .ec-transit-node {
    opacity: 1;
    transform: scale(1);
    transition: none;
  }
  .ec-transit-label {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   主要取扱メーカー（.ec-kinetic）
   「スクロール連動キネティック・タイポグラフィ」。20社を3本の
   横帯に分け、大きな太字の社名を「・」で連結した1行(nowrap)を
   中央寄せで配置し、コンテナ幅を超えた分は左右に意図的にはみ出させ
   セクション側でクリップする（雑誌の見開き/ギャラリーサイトの
   タイポグラフィ表現）。1・3本目は左→右、2本目は右→左に、
   motion-v3.js の data-scroll-progress→--progress エンジンで
   スクロール量に応じて緩やかに平行移動する（時間ベースの自動
   マーキーとは別物）。旧: 六角形ハニカム→流し込みクレジットリスト
   （いずれも静止的で既視感が出たため廃止）。
   ============================================================ */
.ec-kinetic {
  overflow: hidden;
  min-width: 0;
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vw, 20px);
}

.ec-kinetic-strip {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.ec-kinetic-text {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1.5rem, 1rem + 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 1.3;
  color: var(--c-ink);
  will-change: transform;
}

/* 1・3本目は左→右、2本目は右→左（符号を反転）。--progressは
   要素がビューポートを通過する間に0→1へ推移する値（motion-v3.js）。
   reduced-motionではJSがそもそも--progressを供給しないため、
   var()の既定値0.5により自動的に静止（変位ゼロ）になる。 */
.ec-kinetic-strip--1 .ec-kinetic-text,
.ec-kinetic-strip--3 .ec-kinetic-text {
  transform: translateX(calc((var(--progress, 0.5) - 0.5) * 170px));
}

.ec-kinetic-strip--2 .ec-kinetic-text {
  color: var(--c-text-sub);
  transform: translateX(calc((var(--progress, 0.5) - 0.5) * -220px));
}

.ec-kinetic-name {
  transition: color 0.25s var(--ease-out);
}

.ec-kinetic-strip--1 .ec-kinetic-name:nth-child(4n+3),
.ec-kinetic-strip--3 .ec-kinetic-name:nth-child(4n+3) {
  color: var(--c-text-sub);
}

.ec-kinetic-strip--2 .ec-kinetic-name:nth-child(4n+3) {
  color: var(--c-ink);
}

.ec-kinetic-sep {
  display: inline-block;
  margin-inline: 0.3em;
  color: var(--c-line);
  font-weight: 700;
}

.ec-kinetic-name:hover {
  color: var(--c-ec-text);
}

@media (max-width: 640px) {
  .ec-kinetic-text {
    font-size: clamp(1.15rem, 0.9rem + 4vw, 1.6rem);
  }
  .ec-kinetic-strip--1 .ec-kinetic-text,
  .ec-kinetic-strip--3 .ec-kinetic-text {
    transform: translateX(calc((var(--progress, 0.5) - 0.5) * 90px));
  }
  .ec-kinetic-strip--2 .ec-kinetic-text {
    transform: translateX(calc((var(--progress, 0.5) - 0.5) * -120px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-kinetic-strip--1 .ec-kinetic-text,
  .ec-kinetic-strip--2 .ec-kinetic-text,
  .ec-kinetic-strip--3 .ec-kinetic-text {
    transform: none;
  }
}

/* ============================================================
   拠点網・物流体制（.ec-flow / .ec-locations）
   about/ の Googleマップ埋め込みや点線罫ファクトリストとは別の
   見せ方として、「仕入→保管→出荷」を自社で一気通貫する工程バー＋
   拠点網を都県ごとにグルーピングしたチップ一覧で構成する。
   ============================================================ */
.ec-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  padding: 28px clamp(16px, 3vw, 32px) 20px;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  position: relative;
}

.ec-flow-node {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-ec);
  flex: none;
}

.ec-flow-node-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--c-ec-text);
}

.ec-flow-line {
  flex: 1 1 40px;
  min-width: 28px;
  max-width: 64px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--c-ec) 0 8px,
    transparent 8px 14px
  );
  margin: 0 6px;
}

.ec-flow-tag {
  flex-basis: 100%;
  text-align: center;
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-ec-text);
}

.ec-flow-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--c-ec);
  vertical-align: middle;
}

@media (max-width: 560px) {
  .ec-flow-node {
    width: 76px;
    height: 76px;
  }
  .ec-flow-node-label {
    font-size: 0.82rem;
  }
}

.ec-locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

@media (max-width: 620px) {
  .ec-locations {
    grid-template-columns: 1fr;
  }
}

.ec-location-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-text-sub);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}

.ec-location-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ec-location-chip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--c-text-sub);
}

.ec-location-tag {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--c-ec-text);
  background: rgba(14, 165, 233, 0.1);
  padding: 3px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

/* ============================================================
   自社ブランド・卸展開（.ec-converge）
   「合流（コンバージェンス）」の見立て。3つの土台からの線が1点に
   合流し、その先に成果パネルを置く。ベン図（重なり）や路線図
   （直列駅）とは異なる構造。旧: 均等3カード+下矢印+左ボーダー
   バナー（.ec-capacity-grid、廃止）。
   ============================================================ */
.ec-converge {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(80px, 130px) minmax(200px, 300px);
  align-items: stretch;
  margin-top: 8px;
}

.ec-converge-sources {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.ec-converge-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.ec-converge-row:last-child {
  border-bottom: none;
}

.ec-converge-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.ec-converge-text {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--c-text-sub);
}

.ec-converge-lines {
  position: relative;
}

.ec-converge-lines svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ec-converge-path[data-reveal],
.ec-converge-dot[data-reveal] {
  opacity: 1;
  transform: none;
}

.ec-converge-path {
  fill: none;
  stroke: var(--c-ec);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.ec-converge-path.is-visible {
  stroke-dashoffset: 0;
}

.ec-converge-dot {
  fill: var(--c-ec);
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.ec-converge-dot.is-visible {
  opacity: 1;
  transform: scale(1);
}

.ec-converge-result {
  align-self: center;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-ec);
  border-radius: 4px;
}

.ec-converge-result-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-ec-text);
  margin-bottom: 10px;
}

.ec-converge-result-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ec-converge-result-list li {
  position: relative;
  padding-left: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
}

.ec-converge-result-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-ec);
}

@media (max-width: 880px) {
  .ec-converge {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ec-converge-lines {
    display: none;
  }
  .ec-converge-sources {
    position: relative;
    padding-bottom: 34px;
    gap: 0;
  }
  .ec-converge-sources::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 2px;
    height: 26px;
    background: var(--c-ec);
    transform: translateX(-50%);
  }
  .ec-converge-sources::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-ec);
    transform: translateX(-50%);
    z-index: 1;
  }
  .ec-converge-result {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-growth-arc-line {
    transition: none;
    stroke-dashoffset: 0;
  }
  .ec-growth-arc-dot {
    transition: none;
    opacity: 1;
  }
  .ec-converge-path {
    transition: none;
    stroke-dashoffset: 0;
  }
  .ec-converge-dot {
    transition: none;
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   拠点網テーブル: 行の軽いフェードインstagger（既存 data-reveal-group
   の自動stagger機構に乗せるだけ。新規CSSは不要のためここには追加なし）
   ============================================================ */

/* ============================================================
   想いと日々の約束（.ec-headline / .ec-creed-text+.ec-mark / .ec-tags）
   代表インタビューに基づく理念表明と、日々守っていることの提示。
   理念文は編集見出し+マーカーハイライトのスイープ演出、4項目は
   「荷札（配送タグ）」モチーフのカードで構成する。ベントー／曲線
   グラフ／アイコングリッド／工程図／ストーリー3本柱／.panel-framed
   の片側コーナーカットとは異なる語彙（穴+斜め落としの荷札シルエット）
   として設計。
   ============================================================ */
.ec-headline {
  margin-top: 18px;
  max-width: 16ch;
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.2rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--c-ink);
}

.ec-creed-text {
  margin-top: clamp(28px, 3.4vw, 40px);
  max-width: 34em;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.28rem);
  font-weight: 500;
  line-height: 2.1;
  color: var(--c-text);
  letter-spacing: 0.01em;
}

/* マーカーペンで下線を引くようなハイライト。.is-visible起点で
   左から右へ background-size をスイープさせる。box-decoration-break
   で改行をまたいでも行ごとに独立して描画されるようにする。 */
.ec-mark {
  background-image: linear-gradient(rgba(14, 165, 233, 0.38), rgba(14, 165, 233, 0.38));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 44%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s var(--ease-out);
  transition-delay: 0.55s;
}

.ec-creed-text.is-visible .ec-mark {
  background-size: 100% 44%;
}

.ec-creed-text.is-visible .ec-mark--2 {
  transition-delay: 0.95s;
}

.ec-tags-head {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--c-line);
}

.ec-tags {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 28px;
}

@media (max-width: 640px) {
  .ec-tags {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* 荷札カード本体。左上の角を斜めに落とし(clip-path)、
   落とした角の内側に紐通し穴(.ec-tag-hole)を置く。 */
.ec-tag {
  --tag-tilt: -1.5deg;
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 6px 18px 18px 18px;
  clip-path: polygon(36px 0, 100% 0, 100% 100%, 0 100%, 0 36px);
  padding: 46px 26px 30px;
  box-shadow: var(--shadow-sm);
  transform: rotate(var(--tag-tilt));
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.ec-tag:nth-child(2) { --tag-tilt: 1deg; }
.ec-tag:nth-child(3) { --tag-tilt: -1deg; }
.ec-tag:nth-child(4) { --tag-tilt: 1.5deg; }

/* [data-reveal].is-visible { transform: none } (style.css) と特異度が
   同点になるため、出現後も傾きが保たれるよう明示的に指定し直す。 */
.ec-tag.is-visible {
  transform: rotate(var(--tag-tilt));
}

.ec-tag.is-visible:hover {
  transform: rotate(calc(var(--tag-tilt) + 1.2deg)) translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* 斜めに落とした角に沿わせる縁取りライン。clip-pathはボーダー自体を
   合成しないため、切り欠きの輪郭を明示するアクセント線を別途重ねる。 */
.ec-tag-corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  overflow: visible;
  pointer-events: none;
}

.ec-tag-corner path {
  fill: none;
  stroke: rgba(14, 165, 233, 0.45);
  stroke-width: 1.4;
}

.ec-tag-hole {
  position: absolute;
  top: 20px;
  left: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-bg);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4), inset 0 1px 3px rgba(11, 16, 32, 0.16);
}

.ec-tag-string {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 26px;
  height: 30px;
  overflow: visible;
}

.ec-tag-string path {
  fill: none;
  stroke: rgba(14, 165, 233, 0.4);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.ec-tag-no {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: "Inter", var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--c-ec-text);
  opacity: 0.65;
}

.ec-tag-label {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 10px;
}

.ec-tag-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--c-text-sub);
}

@media (prefers-reduced-motion: reduce) {
  .ec-mark {
    transition: none;
    background-size: 100% 44%;
  }
  .ec-tag {
    transition: none;
  }
  .ec-tag.is-visible:hover {
    transform: rotate(var(--tag-tilt));
    box-shadow: var(--shadow-sm);
  }
}

/* ============================================================
   法人のお客様へ（.ec-offer-grid / .ec-offer-card）
   「提案書」の見立て。右上が折れた紙（ドッグイヤー）カードが3部
   並ぶ構図。荷札カード（穴+斜め落とし）ともbusiness/のコーナー
   切り欠きフレームとも異なる「折り返し」表現。
   ============================================================ */
.ec-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 26px);
  margin: clamp(28px, 3.6vw, 40px) 0 clamp(36px, 4.4vw, 48px);
}

@media (max-width: 880px) {
  .ec-offer-grid {
    grid-template-columns: 1fr;
  }
}

.ec-offer-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: clamp(28px, 3.4vw, 34px) clamp(24px, 3vw, 30px) clamp(24px, 2.8vw, 28px);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.ec-offer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* 右上の折り返し(ドッグイヤー)。三角の内側半分を紙の裏地色にして
   折れて見せ、drop-shadowで浮かせる。clip-pathの角を使うため
   box-shadowではなくfilterで影を落とす。 */
.ec-offer-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #fff 0%, #fff 48%, var(--c-bg-soft) 52%, var(--c-bg-soft) 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  filter: drop-shadow(-2px 2px 3px rgba(11, 16, 32, 0.16));
  transition: filter 0.3s var(--ease-out);
  pointer-events: none;
}

.ec-offer-card:hover::after {
  filter: drop-shadow(-3px 4px 7px rgba(11, 16, 32, 0.26));
}

.ec-offer-title {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 10px;
  max-width: calc(100% - 28px);
}

.ec-offer-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--c-text-sub);
}

.ec-offer-chip-label {
  margin-top: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--c-text-sub);
  opacity: 0.85;
}

.ec-offer-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 7px 14px;
  background: rgba(14, 165, 233, 0.08);
  color: var(--c-ec-text);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--r-full);
}

@media (prefers-reduced-motion: reduce) {
  .ec-offer-card {
    transition: none;
  }
  .ec-offer-card::after {
    transition: none;
  }
}

/* ============================================================
   ギフト箱 実物写真ギャラリー（.ec-giftphotos / .ec-giftphoto-card）
   「マスキングテープで貼った写真プリント」の見立て。白縁+影の
   プリント写真カードの上辺にマスキングテープの帯を重ね、机に
   並べた実物写真のような空気を作る。荷札（穴+斜め落とし）・
   ドッグイヤー（右上折り返し）・切符・ベントー・メニュー行・
   マーキー・キネティック帯・什器の棚・路線図・合流図・ハニカムの
   いずれとも異なる、本ページ内で唯一の「テープ留め写真」モチーフ。
   回転(--tilt)はカード側にのみ持たせ、data-reveal本体（<li>）は
   既定のフェード+わずかな上昇移動のみを担う。二つの要素が独立して
   遷移するため、「フェードしながら回転が定位置に収まる」効果を
   transition-delayの競合なく作れる。
   ============================================================ */
.ec-giftphotos {
  list-style: none;
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.6vw, 44px);
  align-items: start;
}

.ec-giftphoto--mid {
  margin-top: clamp(30px, 4.2vw, 52px);
}

.ec-giftphoto:first-child {
  margin-top: clamp(6px, 1vw, 12px);
}

.ec-giftphoto-card {
  position: relative;
  background: #fff;
  padding: 10px 10px 16px;
  border-radius: 3px;
  box-shadow: var(--shadow-md);
  transform: rotate(var(--tilt-start, 0deg));
  transition: transform 0.55s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

/* data-reveal（<li>）に is-visible が付いた瞬間、子のカードは
   スタート角度(--tilt-start)から定位置角度(--tilt)へ回転しながら
   落ち着く。遅延は付けずli側のフェードと同時に走らせる。 */
.ec-giftphoto.is-visible .ec-giftphoto-card {
  transform: rotate(var(--tilt, 0deg));
}

.ec-giftphoto.is-visible .ec-giftphoto-card:hover,
.ec-giftphoto.is-visible .ec-giftphoto-card:focus-within {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 4px 10px rgba(11, 16, 32, 0.08), 0 20px 40px rgba(11, 16, 32, 0.16);
}

.ec-giftphoto-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1px;
  background: var(--c-bg-soft);
}

/* マスキングテープ。半透明・淡いブランドブルーの帯を上辺に斜めに
   重ね、一部を写真の外側にはみ出させて「貼った」質感を出す。
   fiber風の縞は極薄い斜めストライプで表現し、上品さを崩さない。 */
.ec-giftphoto-tape {
  position: absolute;
  top: -14px;
  width: 78px;
  height: 30px;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.55) 0 3px,
      rgba(43, 92, 255, 0.14) 3px 7px
    );
  border: 1px solid rgba(43, 92, 255, 0.16);
  box-shadow: 0 2px 5px rgba(11, 16, 32, 0.1);
  opacity: 0.92;
}

.ec-giftphoto-tape--left {
  left: 10px;
  transform: rotate(-8deg);
}

.ec-giftphoto-tape--right {
  right: 10px;
  transform: rotate(7deg);
}

.ec-giftphoto-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-text-sub);
}

@media (max-width: 760px) {
  .ec-giftphotos {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
    gap: 40px;
  }
  .ec-giftphoto--mid,
  .ec-giftphoto:first-child {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-giftphoto-card {
    transition: none;
  }
  .ec-giftphoto.is-visible .ec-giftphoto-card:hover,
  .ec-giftphoto.is-visible .ec-giftphoto-card:focus-within {
    transform: rotate(var(--tilt, 0deg));
    box-shadow: var(--shadow-md);
  }
}

/* ---------- ギフト箱ギャラリー: まとめ写真1枚構成（--single） ----------
   3枚個別のプリント写真から、3種の箱をまとめた大判1枚に変更（代表指示）。
   テープ留めプリントのモチーフはそのまま、左右2箇所のテープで大きな1枚を留める。 */
.ec-giftphotos--single {
  display: block;
  max-width: 880px;
  margin-inline: auto;
}

.ec-giftphotos--single .ec-giftphoto {
  width: auto;
  margin: 0;
}

.ec-giftphotos--single .ec-giftphoto-caption {
  text-align: center;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .ec-giftphotos--single {
    max-width: none;
  }
}
