/* ===== ロゴ帯：CSSのみ／1枚画像／repeat-x／右→左／高さ140px ===== */
.p__top-introduction_company{
  /* 画像URLを差し替え */
  --img: url('https://beans-net.com/wp-content/uploads/2025/10/makerlogo-scaled.jpg');

  /* 調整用 */
  --row-h: 140px;
  --speed: 30s;   /* 小さいほど速い。例: 20s, 40s */
  --fadeW: 8%;    /* フェード幅（% または px） */

  position: relative;
  height: var(--row-h);
  overflow: hidden;

  /* 背景として横にリピートさせてスクロール */
  background-image: var(--img);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 50%;
  will-change: background-position;

  /* ← ここが“動く”指定（ロングハンドで明示） */
  animation-name: marquee-x;
  animation-duration: var(--speed);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: normal; /* 右→左に流す。左→右にしたい時は normal */

  /* フェード（左右とも確実に） */
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,1) var(--fadeW),
    rgba(0,0,0,1) calc(100% - var(--fadeW)),
    rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(90deg,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,1) var(--fadeW),
    rgba(0,0,0,1) calc(100% - var(--fadeW)),
    rgba(0,0,0,0) 100%);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

/* 背景を等速で流す（基準は左→右）。右→左は animation-direction: reverse で反転 */
@keyframes marquee-x{
  from{ background-position:   0% 50%; }
  to  { background-position: 100% 50%; }
}

/* 低モーション環境は停止＋横スクロールに */
@media (prefers-reduced-motion: reduce){
  .p__top-introduction_company{
    animation: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none; mask-image: none;
  }
}

/* マスク非対応ブラウザのフォールバック（任意／背景が白のとき） */
@supports not (-webkit-mask-image: linear-gradient(#000,#000)) {
  .p__top-introduction_company::before{
    content:""; position:absolute; inset:0; pointer-events:none;
    --bg: #fff; /* 背景色に合わせて変更 */
    background:
      linear-gradient(to right, var(--bg) 0, rgba(255,255,255,0) var(--fadeW)),
      linear-gradient(to left,  var(--bg) 0, rgba(255,255,255,0) var(--fadeW));
  }
}
