@charset "UTF-8";
/* =============================================================
   トップの刷新 A 第2版（ヘッダー・ヒーロー・REGTECH INFRASTRUCTURE・お知らせ）
   index.html だけが読む。refresh.css（土台）を前提に、担当セクションの id で絞って上書きする。
   style.css / regtech-flow.css / news.css / main.js は他ページと共有なので触らない。

   テーマ「規制を、運用できる仕組みへ」＝ 精密さ × 編集的な大胆さ
   - ヒーロー：明るい地のまま、見出しを 3 行・最大 128px に。背景に格子の線が引かれ、
     下端に「いま何枚目か」が読めるスライドの目次レールを敷く
   - INFRASTRUCTURE：英字を大見出しに、ヒーローと同じ和文は小さな副題に下げて重複感を消す。
     図は方眼の設計図の枠に入れ、工程の進み具合を線で見せる
   - お知らせ：日付の「日」を大きく扱う編集的なリスト。ホバーで行が紺に塗られる
   - 文字は 12px 未満にしない。本文 15px 以上。動きは transform / opacity / clip-path
   - 使わないもの：カード上端の色帯、文章左の縦線、ガラス風の半透明、ぼかした色の玉
   ============================================================= */

:root {
  --ra-line: rgba(16, 42, 67, .10);
  --ra-line-strong: rgba(16, 42, 67, .18);
  --ra-tint: #f3f8f9;
  --ra-ease: cubic-bezier(.19, 1, .22, 1);        /* 減速の強い「置かれる」動き */
  --ra-wipe: cubic-bezier(.77, 0, .18, 1);        /* 面がめくれる動き */
  --ra-left: max(var(--pad), (var(--vw, 100vw) - var(--page)) / 2);   /* ページの左端（格子の基準） */
  --ra-rail: 84px;                                /* ヒーロー下端のレールの高さ */
}

/* =============================================================
   2. ヒーロー
   ============================================================= */

/* --- 2-1. 背景の格子（.ra-grid）。イントロの幕が上がってから引かれる --- */
#hero .ra-grid { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#hero .ra-grid-cols {
  position: absolute; top: 118px; bottom: 0;
  left: var(--ra-left); right: var(--ra-left);
  /* 6 本の柱。左のコピー側でははっきり、写真の上では薄く */
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(16, 42, 67, .08) 0),
    repeating-linear-gradient(90deg, rgba(16, 42, 67, .08) 0 1px, transparent 1px calc(100% / 6));
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, .25) 62%, rgba(0, 0, 0, .25) 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, .25) 62%, rgba(0, 0, 0, .25) 100%);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.9s var(--ra-wipe) .15s;
}
#hero .ra-grid-h {
  position: absolute; left: 0; right: 0; height: 1px;
  background: rgba(16, 42, 67, .12);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ra-wipe) .5s;
}
#hero .ra-grid-h1 { top: 118px; }
#hero .ra-grid-h2 { bottom: var(--ra-rail); background: rgba(16, 42, 67, .16); transition-delay: .7s; z-index: 13; }
/* 基準線の上を、短いティールの線が一定の間隔で走る（仕組みが動いている合図） */
#hero .ra-grid-h1 > i {
  position: absolute; top: -1px; left: 0; width: 160px; height: 3px;
  background: var(--hp-sky);
  transform: translateX(-200px);
  opacity: 0;
}
#hero .ra-cross {
  position: absolute; top: 112px; width: 13px; height: 13px; margin-left: -6px;
  background:
    linear-gradient(var(--ink-900), var(--ink-900)) center / 1px 100% no-repeat,
    linear-gradient(var(--ink-900), var(--ink-900)) center / 100% 1px no-repeat;
  opacity: 0; transform: rotate(-90deg) scale(.4);
  transition: opacity .5s ease 1.4s, transform .9s var(--ra-ease) 1.4s;
}
#hero .ra-cross-1 { left: var(--ra-left); }
#hero .ra-cross-2 { left: calc(var(--ra-left) + (var(--vw, 100vw) - var(--ra-left) * 2) / 3); transition-delay: 1.5s; }
#hero .ra-cross-3 { left: calc(var(--ra-left) + (var(--vw, 100vw) - var(--ra-left) * 2) * 2 / 3); transition-delay: 1.6s; }

body:not(.has-intro) #hero .ra-grid-cols { clip-path: inset(0 0 0 0); }
body:not(.has-intro) #hero .ra-grid-h { transform: none; }
body:not(.has-intro) #hero .ra-cross { opacity: .55; transform: none; }
body:not(.has-intro) #hero .ra-grid-h1 > i { animation: raTrace 7s cubic-bezier(.6, 0, .2, 1) 2.4s infinite; }
@keyframes raTrace {
  0%   { transform: translateX(-200px); opacity: 0; }
  8%   { opacity: 1; }
  45%  { transform: translateX(calc(var(--vw, 100vw) + 40px)); opacity: 1; }
  46%, 100% { transform: translateX(calc(var(--vw, 100vw) + 40px)); opacity: 0; }
}

/* --- 2-2. 背景の写真：マウスに合わせて浮かせる動き（と、そのための 1.04 倍の拡大）は 11/17 にやめた（もりもんさん） --- */

/* --- 2-3. コピー --- */
@media (min-width: 768px) {
  #hero .hero-copy { padding: 118px 0 calc(var(--ra-rail) + 36px); }
}

/* ラベル：細い線＋英字＋和文。線は単色の細線にして、精密な目盛りの印象に */
#hero .s-cat {
  gap: 14px;
  margin-bottom: clamp(20px, 2.6vh, 30px);
  font-size: 13px; letter-spacing: .24em;
}
#hero .s-cat::before { width: 48px; height: 2px; border-radius: 0; background: var(--hp-sky); }
#hero .s-cat-ja {
  font-size: 14px; letter-spacing: .06em;
  color: var(--ink-900);
  padding-left: 14px;
  border-left: 1px solid var(--ra-line-strong);
}

/* 見出し：スローガンは 3 行で最大 128px。高さの足りない画面では縦に合わせて縮む */
#hero .s-title {
  /* 2・3枚目は写真が左寄りまで入るので、8字の行が白い幕（左 54% まで）に収まる大きさにとどめる */
  font-size: clamp(40px, min(5.6vw, 8.8vh), 92px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
#hero .s-title.is-slogan { font-size: clamp(52px, min(8vw, 11.6vh), 128px); line-height: 1.08; }
#hero .s-title .ln { padding-bottom: .06em; }

#hero .s-lead {
  margin-top: clamp(22px, 3vh, 34px);
  max-width: 34em;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 2;
  letter-spacing: .03em;
  color: var(--ink-800);
}
#hero .s-btn { margin-top: clamp(26px, 3.6vh, 42px); }

/* ボタン：丸いピルをやめ、文字の区画と矢印の区画に分かれた板にする。ホバーで紺の面が左から満ちる */
#hero .s-btn .btn,
#news .nw-band-btn {
  min-width: 0;
  gap: 0;
  padding: 0 0 0 28px;
  height: 64px;
  border-radius: 12px;
  isolation: isolate;
  overflow: hidden;
  box-shadow: none;
  font-size: 16px;
  letter-spacing: .06em;
}
#hero .s-btn .btn::before,
#news .nw-band-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink-900);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ra-wipe);
}
#hero .s-btn .btn:hover,
#news .nw-band-btn:hover { box-shadow: none; }
#hero .s-btn .btn:hover::before,
#news .nw-band-btn:hover::before { transform: scaleX(1); transform-origin: left; }
#hero .s-btn .btn .arw,
#news .nw-band-btn .arw {
  display: grid; place-items: center;
  width: 64px; height: 100%;
  margin-left: 44px;
  border-left: 1px solid rgba(255, 255, 255, .28);
  transform: none !important;
}
#hero .s-btn .btn .arw-i,
#news .nw-band-btn .arw-i { transition: transform .45s var(--ra-ease); }
#hero .s-btn .btn:hover .arw-i,
#news .nw-band-btn:hover .arw-i { transform: translateX(5px); }

/* --- 2-4. 下端のレール：スライドの目次＋枚数＋送り。白い板を全幅に敷き、中身はページの格子にそろえる --- */
@media (min-width: 768px) {
  #hero .hero-ui {
    left: 0; right: 0; bottom: 0;
    width: auto; height: var(--ra-rail);
    transform: none;
    gap: 28px;
    padding: 0 var(--ra-left) 0 calc(var(--ra-left) + 190px);
    border-radius: 0;
    background: #fff;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  #hero .hero-dots { order: -1; flex: 1 1 auto; height: 100%; }
  #hero .hero-bar { display: none; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  #hero .hero-ui { padding-left: var(--ra-left); }
  #hero .scroll-cue { display: none; }
  #hero .hero-dots button:first-child { border-left: 0; padding-left: 0; }
}

/* 目次のタブ（main.js が作るボタン。中の番号と名前は refresh-a.js が足す） */
#hero .hero-dots { display: flex; align-items: stretch; }
#hero .hero-dots button {
  position: relative;
  flex: 1 1 0; max-width: 300px;
  width: auto; height: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
  border-radius: 0;
  background: none;
  border-left: 1px solid var(--ra-line);
  color: var(--ink-500);
  text-align: left;
  transition: color .3s ease;
}
#hero .hero-dots button:last-child { border-right: 1px solid var(--ra-line); }
#hero .hero-dots button.is-on { width: auto; background: none; color: var(--ink-900); }
#hero .hero-dots button:hover { color: var(--ink-900); }
#hero .hero-dots button::before,
#hero .hero-dots button::after {
  content: ""; position: absolute; left: -1px; right: 0; top: -1px; height: 3px;
}
#hero .hero-dots button::after {
  background: var(--hp-sky);
  transform: scaleX(0); transform-origin: left;
}
#hero .hero-dots button.is-on::after { animation: raTab var(--dur, 6s) linear forwards; }
@keyframes raTab { to { transform: scaleX(1); } }
#hero .ra-tab-no {
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: .04em;
}
#hero .ra-tab-label {
  font-family: var(--f-en);
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#hero .hero-dots button:focus-visible { outline: 2px solid var(--hp-sky); outline-offset: -2px; }

#hero .hero-count { gap: 12px; }
#hero .hero-count b { font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#hero .hero-count i { width: 22px; background: var(--ink-900); }
#hero .hero-count span { font-size: 14px; color: var(--ink-500); }

#hero .hero-arrows { gap: 8px; }
#hero .hero-arrows button {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ra-line-strong);
  box-shadow: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
#hero .hero-arrows button:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; transform: none; }
#hero .hero-arrows button:focus-visible { outline: 2px solid var(--hp-sky); outline-offset: 3px; }

/* SCROLL：レールの左端に置く */
@media (min-width: 861px) {
  #hero .scroll-cue {
    z-index: 14;
    left: var(--ra-left); bottom: 0;
    height: var(--ra-rail);
    transform: none;
    flex-direction: row; gap: 16px;
    color: var(--ink-900);
    text-shadow: none;
    font-size: 12px;
  }
  #hero .scroll-cue i { width: 72px; height: 1px; background: var(--ra-line-strong); filter: none; }
  #hero .scroll-cue i::after {
    inset: 0 auto 0 0; width: 40%; height: 100%;
    background: var(--hp-sky);
    animation: raCue 2.2s cubic-bezier(.7, 0, .3, 1) infinite;
  }
}
@keyframes raCue { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* --- 2-5. スマホ（写真の正方形の下にコピーが流れる組み） --- */
@media (max-width: 860px) {
  #hero .ra-grid-h1, #hero .ra-cross { display: none; }
  #hero .s-lead { font-size: 15px; }
}
@media (max-width: 767px) {
  #hero .ra-grid-h2 { display: none; }
  /* 格子は写真より下（コピーの地）にだけ引く */
  #hero .ra-grid-cols {
    top: calc(var(--sq, 100vw) - 40px);
    background: repeating-linear-gradient(90deg, rgba(16, 42, 67, .07) 0 1px, transparent 1px calc(100% / 4));
    border-right: 1px solid rgba(16, 42, 67, .07);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 70%, transparent 100%);
  }
  #hero .s-title { font-size: clamp(34px, 10vw, 56px); line-height: 1.14; }
  #hero .s-title.is-slogan { font-size: clamp(40px, 12.6vw, 64px); line-height: 1.1; }
  #hero .s-cat { font-size: 13px; letter-spacing: .18em; gap: 12px; }
  #hero .s-cat::before { width: 32px; }
  #hero .s-cat-ja { font-size: 13px; padding-left: 12px; }
  #hero .s-lead { margin-top: 20px; line-height: 1.95; }
  #hero .s-btn { margin-top: 26px; }
  #hero .s-btn .btn { width: 100%; justify-content: space-between; height: 60px; }
  #hero .s-btn .btn .arw { width: 60px; }

  /* レール：番号だけのタブ 3 つ＋送りボタン。白いピルの板はやめ、上の線で区切る */
  #hero .hero-ui {
    width: auto;
    margin: 28px var(--pad) 0;
    padding: 0;
    gap: 12px;
    height: 60px;
    border-radius: 0;
    background: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: none;
    border-top: 1px solid var(--ra-line-strong);
  }
  #hero .hero-count, #hero .hero-bar { display: none; }
  #hero .hero-dots { flex: 1 1 auto; height: 100%; order: -1; }
  #hero .hero-dots button { padding: 0 12px; max-width: none; }
  #hero .hero-dots button:first-child { border-left: 0; padding-left: 0; }
  #hero .hero-dots button:last-child { border-right: 0; }
  #hero .ra-tab-label { display: none; }
  #hero .ra-tab-no { font-size: 14px; font-weight: 500; }
  #hero .hero-arrows button { width: 46px; height: 46px; }
}

/* =============================================================
   3. REGTECH INFRASTRUCTURE
   ============================================================= */
#infrastructure { position: relative; padding-top: clamp(96px, 9vw, 140px); }

/* --- 3-1. 見出し：英字を大見出しに。ヒーローと同じ和文は副題として小さく置き、重複感を消す --- */
#infrastructure .rgi-head {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
}
#infrastructure .rgi-en {
  display: block;
  font-family: var(--f-en);
  font-size: clamp(33px, 6vw, 96px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.045em;
  color: var(--ink-900);
}
#infrastructure .rgi-en::before { display: none; }
#infrastructure .rgi-en::first-line { color: var(--hp-sky); }
#infrastructure .rgi-ttl {
  display: flex; align-items: center; gap: 16px;
  margin-top: 28px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--ink-900);
}
#infrastructure .rgi-ttl::before { content: ""; width: 40px; height: 2px; background: var(--hp-sky); flex: none; }
#infrastructure .rgi-ttl br { display: none; }
#infrastructure .rgi-lead {
  max-width: none;
  margin: 0;
  font-size: 16px; line-height: 2;
  letter-spacing: .03em;
  color: var(--rf-body);
}
#infrastructure .rgi-lead strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--ink-900);
  word-break: auto-phrase;
}

/* 見出しの出方：英字は面ごとめくり、副題とリードは少し遅れて上がる（.is-in は main.js） */
@media (prefers-reduced-motion: no-preference) {
  #infrastructure .rgi-head.reveal { opacity: 1; transform: none; }
  #infrastructure .rgi-head .rgi-en { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ra-wipe); }
  #infrastructure .rgi-head .rgi-ttl,
  #infrastructure .rgi-head .rgi-lead { opacity: 0; transform: translateY(18px); transition: opacity .8s ease .45s, transform 1s var(--ra-ease) .45s; }
  #infrastructure .rgi-head .rgi-lead { transition-delay: .6s; }
  #infrastructure .rgi-head.is-in .rgi-en { clip-path: inset(0 0 0 0); }
  #infrastructure .rgi-head.is-in .rgi-ttl,
  #infrastructure .rgi-head.is-in .rgi-lead { opacity: 1; transform: none; }
}

/* --- 3-2. 図の枠：方眼の設計図。四隅にトンボ（L 字の目印） --- */
#infrastructure .rgi-system {
  position: relative;
  margin-top: clamp(48px, 5vw, 72px);
  padding: 32px 40px 0;
  border: 1px solid var(--ra-line-strong);
  border-radius: 4px;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(16, 42, 67, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  box-shadow: none;
}
#infrastructure .rgi-system::before {
  content: ""; position: absolute; inset: -7px; pointer-events: none;
  --c: var(--ink-900);
  background:
    linear-gradient(var(--c), var(--c)) left top / 22px 2px,
    linear-gradient(var(--c), var(--c)) left top / 2px 22px,
    linear-gradient(var(--c), var(--c)) right top / 22px 2px,
    linear-gradient(var(--c), var(--c)) right top / 2px 22px,
    linear-gradient(var(--c), var(--c)) left bottom / 22px 2px,
    linear-gradient(var(--c), var(--c)) left bottom / 2px 22px,
    linear-gradient(var(--c), var(--c)) right bottom / 22px 2px,
    linear-gradient(var(--c), var(--c)) right bottom / 2px 22px;
  background-repeat: no-repeat;
}
#infrastructure .rgi-system-top { padding-bottom: 32px; }
#infrastructure .rgi-system-top > p {
  gap: 14px;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--ink-900);
}
#infrastructure .rgi-status-dot {
  width: 10px; height: 10px; border-radius: 0;
  background: var(--hp-sky);
  box-shadow: none;
  outline: 1px solid rgba(8, 127, 140, .35); outline-offset: 4px;
}
#infrastructure .rgi-motion-toggle {
  font-size: 13px; padding: 9px 14px;
  border-radius: 8px;
  border-color: var(--ra-line-strong);
  color: var(--rf-muted);
}

/* 3 列の出方：左の列 → 中央のパネル（下からめくる）→ 右の列（.ra-in は refresh-a.js） */
#infrastructure .rgi-system-grid[data-rf-stagger] > * { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: no-preference) {
  #infrastructure .rgi-system:not(.ra-in) .rgi-source { opacity: 0; transform: translateX(-28px); }
  #infrastructure .rgi-system:not(.ra-in) .rgi-result { opacity: 0; transform: translateX(28px); }
  #infrastructure .rgi-system:not(.ra-in) .rgi-engine { clip-path: inset(100% 0 0 0 round 16px); }
  #infrastructure .rgi-system .rgi-source,
  #infrastructure .rgi-system .rgi-result { transition: opacity .9s ease, transform 1.1s var(--ra-ease); }
  #infrastructure .rgi-system .rgi-engine { transition: clip-path 1.2s var(--ra-wipe) .15s; }
  #infrastructure .rgi-system .rgi-result { transition-delay: .55s; }
}

/* --- 3-3. 左右の列 --- */
#infrastructure .rgi-system-grid { gap: 40px; }
#infrastructure .rgi-lane-label { font-size: 18px; line-height: 1.6; color: var(--ink-900); }
#infrastructure .rgi-lane-label > span {
  font-family: var(--f-jp);
  font-size: 13px; font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
#infrastructure .rgi-source-tags { gap: 12px; font-size: 15px; color: var(--rf-body); }
#infrastructure .rgi-source-tags li { gap: 10px; }
#infrastructure .rgi-source-tags li::before { width: 6px; height: 6px; border-radius: 0; background: var(--hp-sky); }

/* 列をつなぐ矢印：細い線の上をティールの信号が流れる */
#infrastructure .rgi-transfer { width: 40px; right: -40px; height: 24px; }
#infrastructure .rgi-result > .rgi-transfer { left: -40px; }
#infrastructure .rgi-transfer svg { left: 16px; stroke: var(--hp-sky); stroke-width: 1.6; }
#infrastructure .rgi-transfer::before { content: ""; position: absolute; left: 0; right: 6px; top: 11px; height: 2px; background: rgba(8, 127, 140, .22); }
#infrastructure .rgi-transfer > span { width: 14px; height: 2px; top: 11px; background: var(--hp-sky); border-radius: 0; }

#infrastructure .rgi-result-message { font-size: 15px; color: var(--rf-body); }

/* --- 3-4. 中央のパネル --- */
#infrastructure .rgi-engine {
  padding: 36px 32px 26px;
  border-radius: 16px;
  background: linear-gradient(150deg, #0d2238 0%, #102a43 45%, #0f3a4c 100%);
  box-shadow: 0 30px 60px rgba(16, 42, 67, .22);
}
#infrastructure .rgi-engine-grid { opacity: .55; background-size: 32px 32px; }
#infrastructure .rgi-engine::after { display: none; }
#infrastructure .rgi-engine-brand p { font-size: 14px; color: #a9d8dd; text-wrap: balance; }
#infrastructure .rgi-engine-brand h3 { font-size: clamp(22px, 1.9vw, 28px); }
#infrastructure .rgi-engine-intro { color: #cfdee6; }
#infrastructure :is(.rgi-engine-brand p, .rgi-engine-brand h3, .rgi-engine-intro, .rgi-step-detail h4, .rgi-step-detail p, .rgi-lane-label, .rgi-system-top > p, .rgi-system-bottom > p) {
  word-break: auto-phrase;
}

/* 工程：上に進み具合の線。いまの工程は白い板に反転して、どこを説明しているかを強く示す */
#infrastructure .rgi-stages { position: relative; gap: 10px; margin-top: 44px; }
#infrastructure .rgi-stages::before,
#infrastructure .rgi-stages::after {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 2px;
}
#infrastructure .rgi-stages::before { background: rgba(255, 255, 255, .12); }
#infrastructure .rgi-stages::after {
  background: #5fd3da;
  transform: scaleX(var(--ra-p, .25)); transform-origin: left;
  transition: transform .9s var(--ra-ease);
}
#infrastructure .rgi-stage {
  min-height: 0;
  align-items: flex-start;
  padding: 18px 16px 20px;
  gap: 10px;
  border-radius: 12px;
  border-color: rgba(170, 207, 212, .22);
  background: rgba(255, 255, 255, .02);
  color: #d0e0e6;
  text-align: left;
  transition: color .35s ease, background-color .35s ease, border-color .35s ease, transform .5s var(--ra-ease), box-shadow .5s ease;
}
#infrastructure .rgi-stage:hover { background: rgba(255, 255, 255, .07); }
#infrastructure .rgi-stage.is-current {
  background: #fff;
  border-color: #fff;
  color: var(--ink-900);
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
}
#infrastructure .rgi-step-no {
  font-family: var(--f-en);
  font-size: 30px; font-weight: 800; line-height: 1;
  letter-spacing: -.03em;
  color: #8fb6c3;
  font-variant-numeric: tabular-nums;
}
#infrastructure .rgi-stage.is-current .rgi-step-no { color: var(--hp-sky); }
#infrastructure .rgi-stage > svg { width: 30px; height: 30px; margin-top: 4px; }
#infrastructure .rgi-stage.is-current > svg { color: var(--hp-sky); }
#infrastructure .rgi-stage strong { font-size: 18px; line-height: 1.45; }
#infrastructure .rgi-stage-desc {
  font-size: 14px; line-height: 1.6;
  color: #c9dbe2;
  word-break: auto-phrase;
  text-wrap: pretty;
}
#infrastructure .rgi-stage.is-current .rgi-stage-desc { color: var(--rf-body); }
#infrastructure .rgi-stage + .rgi-stage::before { top: 22px; color: #67cbd3; }
#infrastructure .rgi-stage::after { left: 16px; right: 16px; height: 3px; background: var(--hp-sky); border-radius: 0; }

/* 具体例 */
#infrastructure .rgi-step-detail {
  min-height: 136px;
  margin-top: 18px;
  padding: 22px 24px;
  gap: 18px;
  border: 1px solid rgba(170, 207, 212, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}
#infrastructure .rgi-detail-number {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(143, 224, 230, .45);
  background: none;
  font-size: 13px; font-weight: 700; line-height: 1.5;
  color: #8fe0e6;
  letter-spacing: .06em;
  margin-top: 4px;
}
#infrastructure .rgi-step-detail h4 { font-size: 22px; line-height: 1.5; }
#infrastructure .rgi-step-detail p { margin-top: 6px; color: #d0e0e6; }
#infrastructure .rgi-step-detail.ra-swap > div { animation: raSwap .55s var(--ra-ease); }
@keyframes raSwap { from { opacity: 0; transform: translateY(12px); } }


/* 図の下の帯 */
#infrastructure .rgi-system-bottom {
  margin: 36px -40px 0;
  padding: 22px 40px 24px;
  border-top: 1px solid var(--ra-line-strong);
  background: #fff;
}
#infrastructure .rgi-system-bottom > p { font-size: 15px; color: var(--rf-body); }
#infrastructure .rgi-system-bottom > a:not(.btn) { font-size: 15px; }

/* 対応する規制・基準：押せる行として見せる */
#infrastructure .rgi-standards {
  margin-top: 16px;
  border: 1px solid var(--ra-line-strong);
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
  color: var(--rf-body);
  transition: border-color .25s ease;
}
#infrastructure .rgi-standards:hover { border-color: rgba(8, 127, 140, .5); }
#infrastructure .rgi-standards ul { margin: 0 24px; padding: 16px 0 20px; border-top-color: var(--ra-line); gap: 10px 28px; }
#infrastructure .rgi-standards li { display: flex; align-items: center; gap: 10px; }
#infrastructure .rgi-standards li::before { content: ""; width: 6px; height: 6px; background: var(--hp-sky); flex: none; }

@media (min-width: 1300px) {
  #infrastructure .rgi-step-detail { min-height: 112px; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  #infrastructure .rgi-stage strong { font-size: 17px; }
  #infrastructure .rgi-engine { padding-inline: 24px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  #infrastructure .rgi-system { padding-inline: 28px; }
  #infrastructure .rgi-system-bottom { margin-inline: -28px; padding-inline: 28px; }
  #infrastructure .rgi-system-grid { gap: 28px; }
  #infrastructure .rgi-transfer { width: 28px; right: -28px; }
  #infrastructure .rgi-result > .rgi-transfer { left: -28px; }
  #infrastructure .rgi-transfer svg { left: 6px; }
  #infrastructure .rgi-engine { padding: 28px 20px 20px; }
  #infrastructure .rgi-stages::before, #infrastructure .rgi-stages::after { display: none; }
  #infrastructure .rgi-stages { margin-top: 24px; }
}

/* タブレット以下：左右の列を、パネルの上下に置く淡い板に。縦の線でつなぐ */
@media (max-width: 900px) {
  #infrastructure .rgi-head { grid-template-columns: 1fr; gap: 28px; }
  #infrastructure .rgi-system { padding: 24px 24px 0; }
  #infrastructure .rgi-system-bottom { margin-inline: -24px; padding-inline: 24px; }
  #infrastructure .rgi-system-grid { gap: 28px; }
  #infrastructure .rgi-source,
  #infrastructure .rgi-result {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--ra-line);
    border-radius: 8px;
    background: var(--ra-tint);
  }
  #infrastructure .rgi-source > .rgi-transfer { bottom: -28px; height: 28px; width: 24px; right: calc(50% - 12px); top: auto; transform: none; }
  #infrastructure .rgi-result > .rgi-transfer { top: -28px; height: 28px; width: 24px; left: calc(50% - 12px); transform: none; }
  #infrastructure .rgi-transfer svg { display: none; }
  #infrastructure .rgi-transfer::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  #infrastructure .rgi-transfer > span { display: none; }
  #infrastructure .rgi-source-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  #infrastructure .rgi-source-tags li {
    padding: 6px 12px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--ra-line);
    font-size: 14px; line-height: 1.5;
  }
  #infrastructure .rgi-source-tags li::before { display: none; }
  #infrastructure .rgi-result-message { margin-top: 8px; text-align: left; }
  #infrastructure .rgi-engine { padding: 28px 22px 22px; }
  #infrastructure .rgi-stages::before, #infrastructure .rgi-stages::after { display: block; }
  #infrastructure .rgi-stages { margin-top: 40px; }
}

@media (max-width: 600px) {
  #infrastructure { padding-top: 88px; }
  #infrastructure .rgi-ttl { margin-top: 20px; font-size: 17px; gap: 12px; }
  #infrastructure .rgi-ttl::before { width: 28px; }
  #infrastructure .rgi-lead { font-size: 15px; }
  #infrastructure .rgi-lead strong { font-size: 22px; }
  #infrastructure .rgi-system { margin-top: 40px; padding: 20px 16px 0; }
  #infrastructure .rgi-system::before { inset: -5px; }
  #infrastructure .rgi-system-bottom { margin-inline: -16px; padding-inline: 16px; }
  #infrastructure .rgi-system-top { flex-wrap: wrap; align-items: center; gap: 12px; padding-bottom: 20px; }
  #infrastructure .rgi-system-top > p { flex: 1 1 100%; font-size: 18px; line-height: 1.5; }
  #infrastructure .rgi-motion-toggle { flex: none; padding: 7px 12px; font-size: 13px; }
  #infrastructure .rgi-motion-toggle svg { width: 11px; height: 11px; }
  #infrastructure .rgi-source,
  #infrastructure .rgi-result { padding: 16px; }
  #infrastructure .rgi-lane-label { font-size: 16px; }
  #infrastructure .rgi-source-tags { gap: 6px; }

  #infrastructure .rgi-engine { padding: 22px 16px 18px; border-radius: 12px; }
  #infrastructure .rgi-engine-brand { align-items: flex-start; gap: 12px; }
  #infrastructure .rgi-engine-logo { width: 42px; height: 42px; border-radius: 10px; }
  #infrastructure .rgi-engine-brand p { font-size: 13px; }
  #infrastructure .rgi-engine-brand h3 { font-size: 19px; }
  #infrastructure .rgi-engine-intro { font-size: 15px; margin-top: 14px; }

  #infrastructure .rgi-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 36px; }
  #infrastructure .rgi-stage { padding: 14px 12px 16px; gap: 8px; border-radius: 10px; }
  #infrastructure .rgi-stage.is-current { transform: translateY(-3px); }
  #infrastructure .rgi-step-no { font-size: 24px; padding-left: 0; }
  #infrastructure .rgi-stage > svg { width: 26px; height: 26px; }
  #infrastructure .rgi-stage strong { font-size: 16px; }
  #infrastructure .rgi-stage-desc { font-size: 13px; }

  #infrastructure .rgi-step-detail { flex-direction: column; gap: 8px; padding: 16px; min-height: 182px; }
  #infrastructure .rgi-detail-number { margin-top: 0; font-size: 12px; }
  #infrastructure .rgi-step-detail h4 { font-size: 18px; }
  #infrastructure .rgi-step-detail p { font-size: 15px; }


  #infrastructure .rgi-result-message { font-size: 15px; }
  #infrastructure .rgi-system-bottom { margin-top: 20px; padding-block: 18px 20px; }
  #infrastructure .rgi-system-bottom > p { font-size: 15px; line-height: 1.8; align-items: flex-start; }
  #infrastructure .rgi-system-bottom > p svg { margin-top: 4px; }
  #infrastructure .rgi-system-bottom > a:not(.btn) { font-size: 15px; }
  #infrastructure .rgi-standards { font-size: 15px; }
  #infrastructure .rgi-standards ul { margin: 0 18px; flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  #infrastructure .rgi-step-detail { min-height: 210px; }
}
@media (max-width: 359px) {
  #infrastructure .rgi-stages { grid-template-columns: 1fr; }
}

/* =============================================================
   4. お知らせ（帯とモーダル）
   ============================================================= */
#news.nw-band { padding: clamp(88px, 8vw, 128px) 0; border-bottom: 0; }
#news .nw-band-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }

/* 見出し：章の英字と同じ大きさまで張る */
#news .nw-band-en {
  font-size: clamp(64px, 8.6vw, 124px);
  line-height: .86;
  letter-spacing: -.05em;
}
#news .nw-band-ttl { margin-top: 22px; font-size: 17px; letter-spacing: .12em; }
#news .nw-band-ttl::before { width: 40px; height: 2px; border-radius: 0; background: var(--hp-sky); }
#news .nw-band-btn { margin-top: 40px; }
#news .nw-band-btn.btn-line { background: #fff; color: var(--hp-sky); border: 1.5px solid var(--hp-sky); }
#news .nw-band-btn.btn-line .arw { border-left-color: rgba(8, 127, 140, .3); }
#news .nw-band-btn.btn-line:hover { color: #fff; border-color: var(--ink-900); }
#news .nw-band-btn.btn-line:hover .arw { border-left-color: rgba(255, 255, 255, .28); }

@media (prefers-reduced-motion: no-preference) {
  #news .nw-band-head.reveal { opacity: 1; transform: none; }
  #news .nw-band-en { clip-path: inset(0 0 100% 0); transform: translateY(30%); transition: clip-path 1.1s var(--ra-wipe), transform 1.1s var(--ra-wipe); }
  #news .nw-band-en.ra-in { clip-path: inset(0 0 -10% 0); transform: none; }
}

/* リスト：上に濃い線、行は細い線。日付の「日」を大きく置く（refresh-a.js が年月と日に分ける） */
#news .nw-list { border-top: 2px solid var(--ink-900); }
#news .nw-item:first-child { border-top: 0; }
#news .nw-item + .nw-item { border-top: 1px solid var(--ra-line-strong); }
#news .nw-item:last-child { border-bottom: 1px solid var(--ra-line-strong); }

#news .nw-open {
  position: relative;
  isolation: isolate;
  grid-template-columns: 96px 124px minmax(0, 1fr) 52px;
  gap: 28px;
  padding: 30px 20px 30px 4px;
  border-radius: 0;
  transition: padding .5s var(--ra-ease);
}
#news .nw-open::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink-900);
  transform: scaleX(0); transform-origin: right;   /* 11/16 指示：下から上 → 左から右へ満ちる */
  transition: transform .55s var(--ra-wipe);
}
#news .nw-open:hover { background: none; padding-left: 24px; }
#news .nw-open:hover::before { transform: scaleX(1); transform-origin: left; }

#news .nw-date {
  display: grid;
  font-family: var(--f-en);
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}

#news .nw-cat {
  padding: 5px 10px;
  border-radius: 4px;
  background: none;
  border: 1px solid currentColor;
  font-size: 13px; letter-spacing: .06em;
  transition: color .3s ease;
}
#news .nw-ttl {
  font-size: 18px; font-weight: 700;
  line-height: 1.7;
  letter-spacing: .03em;
  color: var(--ink-900);
  word-break: auto-phrase;
  text-wrap: pretty;
  transition: color .3s ease;
}
#news .nw-arw {
  width: 52px; height: 52px;
  border-radius: 12px;
  border: 1px solid var(--ra-line-strong);
  color: var(--ink-900);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, translate .45s var(--ra-ease);
}
#news .nw-open:hover :is(.nw-date, .nw-cat, .nw-ttl) { color: #fff; }
#news .nw-open:hover .nw-arw { background: var(--hp-sky); border-color: var(--hp-sky); color: #fff; translate: 0 0; }
#news .nw-open:focus-visible { outline: 2px solid var(--hp-sky); outline-offset: 2px; }

/* 行を 1 件ずつ出す（.reveal.is-in は main.js） */
@media (prefers-reduced-motion: no-preference) {
  #news .nw-list.reveal { opacity: 1; transform: none; }
  #news .nw-list.reveal .nw-item { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .9s var(--ra-ease); }
  #news .nw-list.reveal.is-in .nw-item { opacity: 1; transform: none; }
  #news .nw-list.reveal.is-in .nw-item:nth-child(2) { transition-delay: .1s; }
  #news .nw-list.reveal.is-in .nw-item:nth-child(3) { transition-delay: .2s; }
  #news .nw-list.reveal.is-in .nw-item:nth-child(n+4) { transition-delay: .3s; }
}

@media (max-width: 1100px) {
  #news .nw-band-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  #news .nw-band-head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; }
  #news .nw-band-en { grid-column: 1; }
  #news .nw-band-ttl { grid-column: 1; }
  #news .nw-band-btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
}
@media (max-width: 767px) {
  #news.nw-band { padding: 80px 0 88px; }
  #news .nw-band-grid { gap: 0; }
  #news .nw-band-head { display: contents; }
  #news .nw-band-en { font-size: clamp(56px, 17vw, 84px); }
  #news .nw-band-ttl { margin-bottom: 28px; }
  #news .nw-band-btn { grid-column: auto; grid-row: auto; justify-self: stretch; margin-top: 32px; height: 60px; justify-content: space-between; }
  #news .nw-band-btn .arw { width: 60px; }
  #news .nw-open {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px 16px;
    padding: 22px 0;
    align-items: start;
  }
  #news .nw-open:hover { padding-left: 12px; }
  #news .nw-date { grid-row: 1 / span 2; }
  #news .nw-cat { grid-column: 2; grid-row: 1; font-size: 12px; padding: 3px 8px; }
  #news .nw-ttl { grid-column: 2; grid-row: 2; font-size: 16px; line-height: 1.7; letter-spacing: .02em; }
  #news .nw-arw { display: none; }
}

/* モーダル：角を控えめにし、日付を大きく */
#newsModal {
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(16, 42, 67, .28);
}
#newsModal::backdrop { background: rgba(16, 42, 67, .6); }
#newsModal .nw-modal-in { position: relative; padding: 44px 48px 36px; }
#newsModal .nw-date {
  font-family: var(--f-en);
  font-size: 22px; font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
#newsModal .nw-cat { padding: 4px 10px; border-radius: 4px; background: none; border: 1px solid currentColor; font-size: 13px; }
#newsModal .nw-modal-ttl {
  margin-top: 20px; padding-top: 20px;
  border-top: 2px solid var(--ink-900);
  font-size: 26px; line-height: 1.55; letter-spacing: .02em;
  word-break: auto-phrase; text-wrap: pretty;
}
#newsModal .nw-modal-body p { color: var(--rf-body); letter-spacing: .03em; font-size: 16px; }
#newsModal .nw-close { border-radius: 10px; background: var(--ra-tint); color: var(--ink-900); }
#newsModal .nw-close:hover { background: var(--ink-900); color: #fff; }
#newsModal .nw-modal-btn { border-radius: 12px; min-width: 0; padding: 20px 36px; }
#newsModal :is(button, a):focus-visible { outline: 2px solid var(--hp-sky); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  #newsModal[open] { animation: raModalIn .5s var(--ra-ease); }
}
@keyframes raModalIn { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 767px) {
  #newsModal { border-radius: 14px; }
  #newsModal .nw-modal-in { padding: 30px 22px 24px; }
  #newsModal .nw-date { font-size: 18px; }
  #newsModal .nw-modal-ttl { font-size: 20px; }
}

/* =============================================================
   5. 動きを減らす設定：線・面・数字はすべて最初から出しておく
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  #hero .ra-grid-cols { clip-path: none !important; }
  #hero .ra-grid-h { transform: none !important; }
  #hero .ra-cross { opacity: .55 !important; transform: none !important; }
  #hero .ra-grid-h1 > i { display: none; }
  #hero .hero-dots button.is-on::after { animation: none; transform: scaleX(1); }
  #hero .scroll-cue i::after { animation: none; }
  #infrastructure .rgi-step-detail.ra-swap > div { animation: none; }
  #newsModal[open] { animation: none; }
}

/* =============================================================
   11/16 もりもんさんの指摘で調整（親が追加）
   - SCROLL は何のスクロールか分からないので出さない
   - スライドの題名を並べたタブは、枚数が増えると破綻するのでやめ、
     「枚数＋進み具合の線＋送り」のページャーだけにする（何枚でも同じ形）
   ============================================================= */
#hero .scroll-cue { display: none !important; }
#hero .hero-dots { display: none !important; }
@media (min-width: 768px) {
  #hero .hero-ui {
    left: auto; right: var(--ra-left); bottom: 28px;
    width: min(460px, 40vw);
    height: 76px;
    padding: 0 14px 0 26px;
    gap: 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 42, 67, .12);
  }
  #hero .hero-bar {
    display: block;
    flex: 1 1 auto;
    width: auto;
    height: 2px;
    background: var(--ra-line-strong);
  }
  #hero .hero-bar span { background: var(--hp-sky); }
}
@media (max-width: 767px) {
  #hero .hero-count, #hero .hero-bar { display: flex; }
  #hero .hero-bar { display: block; flex: 1 1 auto; height: 2px; background: var(--ra-line-strong); }
  #hero .hero-bar span { background: var(--hp-sky); }
  #hero .hero-count b { font-size: 24px; }
}

/* お知らせの日付：「年月」と大きな「日」に分けるのをやめ、「2026.10.01」の1行に戻す */
#news .nw-open { grid-template-columns: 124px 124px minmax(0, 1fr) 52px; }
#news .nw-date { display: block; font-size: 17px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 767px) {
  #news .nw-open { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  #news .nw-date { grid-column: 1; grid-row: 1; font-size: 15px; }
  #news .nw-cat { grid-column: 2; grid-row: 1; justify-self: start; }
  #news .nw-ttl { grid-column: 1 / -1; grid-row: 2; }
}

/* REGTECH INFRASTRUCTURE のアイコン：Google の Material Symbols（Outlined・太さ 200 の細い線）に差し替え（11/16 指示）。
   元の手描きの線のアイコンは stroke で描いていたが、Material Symbols は塗りの形なので fill で色を付ける */
#infrastructure svg.ms-ico { fill: currentColor; stroke: none; }
#infrastructure .rgi-system-bottom > p svg.ms-ico { color: #087f8c; }
#infrastructure .rgi-transfer svg.ms-ico { color: #9cc6cb; }
#infrastructure .rgi-stage > svg.ms-ico { width: 34px; height: 34px; }

/* NEWS のホバー：紺の面が左から満ちるのに合わせて、文字は少し遅れて白に変える（先に白くなると、紺が届く前の右側の文字が地に溶けて消えて見えた）。
   離すときの動きはファイル末尾（11/17：面が引くのを待ってから文字を戻す） */
#news .nw-open:hover :is(.nw-date, .nw-cat, .nw-ttl) { transition: color .25s ease .22s, border-color .25s ease .22s, background-color .25s ease .22s; }

/* アイコン（Material Symbols）は形の内側に余白があるぶん小さく見えるので、一回り大きく */
#infrastructure .rgi-stage > svg.ms-ico { width: 40px; height: 40px; margin-top: 0; }
#infrastructure .rgi-system-bottom > p svg.ms-ico { width: 20px; height: 20px; }

/* =============================================================
   11/16 もりもんさんの指摘（スマホのファーストビュー）
   - 背景の線の主張が強い → 濃さを約半分に
   - PC の濃い十字の目印がスマホでは消えている → ページャーの上の線の両端に、同じ十字を置く
   ============================================================= */
@media (max-width: 767px) {
  #hero .ra-grid-cols {
    background: repeating-linear-gradient(90deg, rgba(16, 42, 67, .035) 0 1px, transparent 1px calc(100% / 4));
    border-right-color: rgba(16, 42, 67, .035);
  }
  #hero .hero-ui { position: relative; overflow: visible; }
  #hero .hero-ui::before,
  #hero .hero-ui::after {
    content: ""; position: absolute; top: -7px; width: 13px; height: 13px;
    background:
      linear-gradient(var(--ink-900), var(--ink-900)) center / 1px 100% no-repeat,
      linear-gradient(var(--ink-900), var(--ink-900)) center / 100% 1px no-repeat;
    opacity: 0; transform: rotate(-90deg) scale(.4);
    transition: opacity .5s ease 1.1s, transform .9s var(--ra-ease) 1.1s;
    pointer-events: none;
  }
  #hero .hero-ui::before { left: -6px; }
  #hero .hero-ui::after  { right: -6px; transition-delay: 1.2s; }
  body:not(.has-intro) #hero .hero-ui::before,
  body:not(.has-intro) #hero .hero-ui::after { opacity: .55; transform: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  #hero .hero-ui::before, #hero .hero-ui::after { opacity: .55; transform: none; transition: none; }
}

/* =============================================================
   11/16 もりもんさんの指摘：REGTECH INFRASTRUCTURE の図をもっと分かりやすく
   - 各工程のタイトルを大きく
   - 具体例は白い枠を濃く。選んでいる工程の枠の下に逆三角を付け、その工程の具体例だと分かるように
   - 下の「Pay Guardian／割賦販売法・加盟店審査・継続調査」は HTML から削除
   ============================================================= */
#infrastructure .rgi-stage strong { font-size: clamp(18px, 1.38vw, 20px); line-height: 1.4; letter-spacing: 0; }   /* カードの幅（中身 約125px）に6文字が収まる上限 */
/* 選んでいる工程の下の逆三角（具体例の枠を指す）。カードの白と同じ色 */
#infrastructure .rgi-stage.is-current .rgi-stage-desc::after {
  content: "";
  position: absolute; left: 50%; bottom: -13px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 13px 13px 0 13px;
  border-color: #fff transparent transparent transparent;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .18));
  pointer-events: none;
}
/* 具体例の枠：白い線をはっきり。逆三角が届くよう、上の余白を少し広げる */
#infrastructure .rgi-step-detail {
  margin-top: 26px;
  border: 1.5px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .07);
}
@media (max-width: 860px) {
  #infrastructure .rgi-stage strong { font-size: 17px; }
}
/* 工程が2列×2段になる幅（901〜1100px・360〜600px）では、上の段の逆三角は下の段のカードを指してしまうので出さない。
   1列になる幅（359px 以下）では、最後の工程の下だけに出す */
@media (min-width: 901px) and (max-width: 1100px), (min-width: 360px) and (max-width: 600px) {
  #infrastructure .rgi-stage:nth-child(-n+2) .rgi-stage-desc::after { display: none; }
}
@media (max-width: 359px) {
  #infrastructure .rgi-stage:nth-child(-n+3) .rgi-stage-desc::after { display: none; }
}
/* 工程のタイトルは、カードの幅から決める（6文字の行が必ず1行に収まる大きさ・最大 20px・最小 13px）。
   画面幅で決めると 1200〜1280px でカードが狭くなり3行に折れていた */
#infrastructure .rgi-stage { container-type: inline-size; }
#infrastructure .rgi-stage strong { font-size: clamp(13px, calc(100cqi / 6.3), 20px); }   /* cqi はカードの内側（余白を除いた）幅 */
/* タイトルをもう一段大きく：カードの左右の余白を 16px → 12px にして、文字を置ける幅を広げる（最大 22px） */
#infrastructure .rgi-stage { padding-inline: 12px; }
#infrastructure .rgi-stage strong { font-size: clamp(13px, calc(100cqi / 6.2), 22px); }

/* =============================================================
   11/16 もりもんさんの指摘：「加盟店調査で、何が変わる？」をもっと分かりやすく
   - 左右の「書類のイラスト」をやめ、アイコン＋テキストのシンプルなカードに（HTML を組み替えた）
   - 左は INPUT（まず確認すること）、右は OUTPUT（残るもの）と明示し、左 → 中央 → 右の流れを読ませる
   - タイトル（加盟店調査で、何が変わる？・左右の見出し）を大きく
   - 「対応する規制・基準について」は開閉をやめ、最初から見せる（HTML を details から div に）
   ============================================================= */
#infrastructure .rgi-system-top > p { font-size: clamp(22px, 2vw, 30px); }

#infrastructure .rgi-io-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 22px 26px;
  background: #fff;
  border: 1px solid var(--ra-line-strong);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16, 42, 67, .07);
  text-align: left;
}
#infrastructure .rgi-io-tag {
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .18em;
  color: var(--hp-sky);
}
#infrastructure .rgi-io-ico {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--ra-tint);
  color: var(--hp-sky);
}
#infrastructure .rgi-io-card.is-output .rgi-io-ico { background: var(--ink-900); color: #fff; }
#infrastructure .rgi-io-ico > svg.ms-ico { width: 34px; height: 34px; }
#infrastructure .rgi-io-card .rgi-lane-label { font-size: clamp(19px, 1.5vw, 22px); font-weight: 900; line-height: 1.45; }
#infrastructure .rgi-io-card .rgi-lane-label > span { display: block; margin-bottom: 4px; font-size: 13px; }
#infrastructure .rgi-io-card .rgi-source-tags { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--ra-line); }
#infrastructure .rgi-result-list {
  display: grid; gap: 10px;
  margin: 4px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--ra-line);
  list-style: none;
}
#infrastructure .rgi-result-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink-900); }
#infrastructure .rgi-result-list svg.ms-ico { width: 20px; height: 20px; flex: none; color: var(--hp-sky); }
#infrastructure .rgi-io-card .rgi-result-message { margin-top: 4px; text-align: left; }
#infrastructure .rgi-source,
#infrastructure .rgi-result { justify-content: center; }

/* 流れの矢印：はっきり（線を太く・色を濃く） */
#infrastructure .rgi-transfer::before { height: 3px; top: 10px; background: rgba(8, 127, 140, .45); }
#infrastructure .rgi-transfer svg.ms-ico { color: var(--hp-sky); width: 26px; height: 26px; top: -1px; }

/* スマホ・タブレット（〜900px）：外側の箱はやめ、カードそのものを箱にする */
@media (max-width: 900px) {
  #infrastructure .rgi-source,
  #infrastructure .rgi-result { padding: 0; border: 0; background: none; }
  #infrastructure .rgi-io-card { padding: 20px 18px 22px; }
  #infrastructure .rgi-io-card .rgi-source-tags { display: flex; flex-wrap: wrap; gap: 8px; }
  #infrastructure .rgi-transfer::before { width: 3px; height: auto; left: 10px; top: 0; bottom: 0; }   /* 縦の線（PC 用の太さの指定が長さまで潰していた） */
}

/* 対応する規制・基準について：開閉なしで最初から見せる */
#infrastructure .rgi-standards.is-static { padding: 20px 24px 22px; }
#infrastructure .rgi-standards.is-static:hover { border-color: var(--ra-line-strong); }
#infrastructure .rgi-standards-ttl { font-weight: 800; font-size: 16px; color: var(--ink-900); }
#infrastructure .rgi-standards.is-static ul {
  display: flex; flex-wrap: wrap;
  margin: 14px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--ra-line);
  list-style: none;
}
#infrastructure .rgi-io-card :is(.rgi-lane-label, .rgi-result-message) { word-break: auto-phrase; text-wrap: pretty; }

/* 11/16 もりもんさんの指摘
   - 左右のカード（INPUT／OUTPUT）は同じ高さ・同じ位置に（高さは refresh-a.js の 6. が揃える。ここでは上下中央に置く）
   - 「金融レグテックを詳しく見る」はボタンに（HTML に .btn を付けた。形は refresh.css の共通のボタン）
   - 「確認や判断は担当者が行い、…」はアイコンごと大きく
   - 「対応する規制・基準について」の枠は薄いグレーの地 */
#infrastructure .rgi-source,
#infrastructure .rgi-result { align-self: center; }
#infrastructure .rgi-io-card { justify-content: center; }
#infrastructure .rgi-system-bottom { align-items: center; }
#infrastructure .rgi-system-bottom > p { font-size: clamp(16px, 1.3vw, 19px); font-weight: 700; color: var(--ink-900); gap: 12px; }
#infrastructure .rgi-system-bottom > p svg.ms-ico { width: 30px; height: 30px; }
#infrastructure .rgi-system-bottom > a.rgi-more-btn { flex: none; font-size: 16px; }   /* 11/17 ボタン共通の 16px に（regtech-flow.css の「> a { 14px }」が勝っていた） */
#infrastructure .rgi-standards.is-static { background: var(--rf-band); border-color: transparent; }
#infrastructure .rgi-standards.is-static:hover { border-color: transparent; }
#infrastructure .rgi-standards.is-static ul { border-top-color: rgba(16, 42, 67, .12); }
@media (max-width: 860px) {
  #infrastructure .rgi-system-bottom > p { font-size: 16px; }
  #infrastructure .rgi-system-bottom > p svg.ms-ico { width: 26px; height: 26px; }
  #infrastructure .rgi-system-bottom > a.rgi-more-btn { margin-top: 14px; }
}
/* ボタンの文字：前からある「下のリンクはティールの文字」の指定が残り、ティールの地に沈んでいたので白に */
#infrastructure .rgi-system-bottom > a.rgi-more-btn,
#infrastructure .rgi-system-bottom > a.rgi-more-btn:hover { color: #fff; text-decoration: none; }
#infrastructure .rgi-system-bottom > a.rgi-more-btn .arw-i { fill: currentColor; stroke: currentColor; }
/* 11/16 訂正：揃えるのはカードの「位置」（上端）。高さはそれぞれのまま。
   枠の高さは refresh-a.js の 6. が揃え、カードは枠の上端に置く */
@media (min-width: 901px) {
  #infrastructure .rgi-source,
  #infrastructure .rgi-result { justify-content: flex-start; }
  #infrastructure .rgi-io-card { justify-content: flex-start; }
}

/* 11/17 もりもんさんの指摘：工程カードの残り時間のゲージが下の逆三角と重なる → カードの上側へ */
#infrastructure .rgi-stage::after { top: 0; bottom: auto; }

/* 11/17 もりもんさんの指摘：NEWS のホバーを外すと急に消える。
   紺の面は約 0.4 秒かけて引くのに、文字は 0.15 秒ほどで紺に戻り、紺の面の上で見えなくなっていた。
   外すときは面が引くのを待ってから文字・矢印の色を戻し、面もゆっくり引かせる */
#news .nw-open:not(:hover)::before { transition: transform .7s var(--ra-wipe); }
#news .nw-open:not(:hover) :is(.nw-date, .nw-cat, .nw-ttl) { transition: color .35s ease .25s, border-color .35s ease .25s, background-color .35s ease .25s; }
#news .nw-open:not(:hover) .nw-arw { transition: color .35s ease .25s, background-color .35s ease .25s, border-color .35s ease .25s, translate .5s var(--ra-ease); }

/* 11/17 もりもんさん：スライドの1枚目を動画に（video/hero-01.mp4）。
   画像のスライドは縦5本の窓で差し込むが、動画は5本に分けると重いので、1枚のまま下からめくれて出す（時間と動きの曲線は窓と同じ） */
#hero .slide-media.is-video { clip-path: inset(100% 0 0 0); }
#hero .slide.is-on .slide-media.is-video { clip-path: inset(0); transition: clip-path 1.05s cubic-bezier(.72,0,.2,1); }
#hero .slide.is-rest .slide-media.is-video,
#hero .slide.is-prev .slide-media.is-video { clip-path: inset(0); }
#hero .slide-media.is-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* スマホは画像のスライドと同じく、右起点で切り取る */
@media (max-width: 767px) { #hero .slide-media.is-video video { object-position: 100% 50%; } }
/* 動画は白く抜けた部分が左端だけなので、PC では見出しの後ろにビル街が透けてごちゃつく → 左側に白のグラデーションを重ねる */
@media (min-width: 768px) {
  #hero .slide-media.is-video::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 28%, rgba(255,255,255,.72) 40%, rgba(255,255,255,0) 58%);
  }
}

/* 11/17 もりもんさん：スライドは 5.5 秒で切り替える（main.js の DUR と同じ）。
   ページャーのバー（.hero-bar・点のバー）は --dur で進むので、ここで 5.5 秒に。画像の寄りの動き（style.css は 5.8 秒）も少し短く */
#hero { --dur: 5.5s; }
#hero .slide.is-on .col img { animation-duration: 5.3s; }
