/* 決定案: 基本は案2(作り直し_2 の redesign.css を、.rd1 の外だけに効くよう自動で書き換えたもの)
   .rd1 = トップの「不自由な常識」の節と「What we do」から下。そこは css/redesign1.css(案1)が受け持つ
   元を直したら scratchpad の build-mix-css.js で作り直す */
/* ==========================================================================
   作り直し 案2「大きな文字と色の面」(参考: LIG の考え方。形・色は借りない)
   FV(トップのヒーロー)と各ページの入口(.page-hero)は変えない。色・星・明朝・斜めの継ぎ目は v10 のまま
   - 節の見出し: 英文を画面いっぱいの大きさに。和文はブランドの緑の丸印を添えた小さなラベル
   - 事業内容(トップ): 1 領域 = 1 画面。右半分を領域の色(青・青緑・緑 = ロゴの面の色)で塗り、
     角の丸い白い板にイラスト。大きな英文が色の境目をまたいで重なる。番号の丸いラベルと大きな丸い矢印
   - リンク: 文字 + 大きな丸の矢印。ボタン: 丸い矢印を抱えたピル。問い合わせは大きな丸いボタン
   - 写真の帯: 半分を色で塗った面に、角の丸い写真を浮かせる
   - 価値観・3 領域: 濃い色の面のカード(白い文字)
   ========================================================================== */
:root:where(:not(.rd1, .rd1 *)) {
  --c-1: #2B6E9C;   /* 青(ロゴの面 #3E86B8 を白い文字が読める濃さに: 白 5.4) */
  --c-2: #2A6676;   /* Tide(白 6.4) */
  --c-3: #2F6E4C;   /* 緑(ロゴの面 #5BA05A を濃く: 白 6.0) */
  --r: 24px;
  --dot: #5BA05A;
}

/* ---- 1. 節の見出し: 巨大な英文 + 丸印のラベル ---- */
.sec-title .display:where(:not(.rd1, .rd1 *)) {
  font-size: clamp(72px, 14vw, 228px);
  line-height: .88; letter-spacing: -.045em;
  margin-left: -.045em;
}
.cols-head .sec-title .display:where(:not(.rd1, .rd1 *)), .svc-domain-head .sec-title .display:where(:not(.rd1, .rd1 *)) { font-size: clamp(64px, 9.6vw, 164px); }
.pin.is-pinned .sec-title .display:where(:not(.rd1, .rd1 *)) { font-size: clamp(64px, 10vw, 160px); }
.sec-title .sec-ja:where(:not(.rd1, .rd1 *)) {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(18px, 2vw, 30px);
  font-size: clamp(14px, 1.05vw, 17px); letter-spacing: .18em;
}
.sec-title .sec-ja:where(:not(.rd1, .rd1 *))::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.tide .sec-title .sec-ja:where(:not(.rd1, .rd1 *))::before, .cta .sec-title .sec-ja:where(:not(.rd1, .rd1 *))::before { background: #9AC463; }

/* ---- 2. 事業内容(トップ): 1 領域 = 1 画面の色の面 ---- */
.svc-list:where(:not(.rd1, .rd1 *)) { border-bottom: 0; counter-reset: svc; display: grid; gap: clamp(16px, 2vw, 28px); }
.svc-list > li:nth-child(1) .svc:where(:not(.rd1, .rd1 *)) { --svc-c: var(--c-1); }
.svc-list > li:nth-child(2) .svc:where(:not(.rd1, .rd1 *)) { --svc-c: var(--c-2); }
.svc-list > li:nth-child(3) .svc:where(:not(.rd1, .rd1 *)) { --svc-c: var(--c-3); }
.svc:where(:not(.rd1, .rd1 *)) { counter-increment: svc; isolation: isolate; overflow: hidden; border-radius: var(--r); background: #FFFFFF; }
.svc > .rule-dot:where(:not(.rd1, .rd1 *)) { display: none; }
.svc:where(:not(.rd1, .rd1 *))::before {               /* 右半分の色の面(元は上の線) */
  top: 0; bottom: 0; left: auto; right: 0; width: 50%; height: auto;
  background: var(--svc-c); transform: none; z-index: -1;
}
.svc:where(:not(.rd1, .rd1 *))::after {                /* 番号の丸いラベル(元はホバーの線) */
  content: "0" counter(svc) " / 03";
  top: clamp(18px, 2vw, 32px); left: auto; right: clamp(18px, 2vw, 32px); height: auto;
  padding: 7px 16px; border-radius: 999px;
  background: #0E2A33; color: #FFFFFF;
  font-family: var(--f-en); font-size: 15px; letter-spacing: .06em; line-height: 1.2;
  transform: none; transition: none;
}
.svc .svc-ill:where(:not(.rd1, .rd1 *)) {
  background: #FFFFFF; border-radius: calc(var(--r) * .8);
  box-shadow: 0 30px 60px -30px rgba(4, 22, 28, .55);
}
.svc-arrow:where(:not(.rd1, .rd1 *)) {
  width: clamp(64px, 7vw, 120px); height: clamp(64px, 7vw, 120px);
  border-color: rgba(255, 255, 255, .85); color: #FFFFFF; background: transparent;
}
.svc-arrow svg:where(:not(.rd1, .rd1 *)) { width: 26%; height: 26%; }
.svc:hover .svc-arrow:where(:not(.rd1, .rd1 *)), .svc:focus-visible .svc-arrow:where(:not(.rd1, .rd1 *)) { transform: none; background: #FFFFFF; color: var(--svc-c); border-color: #FFFFFF; }
@media (min-width: 960px) {
  .svc:where(:not(.rd1, .rd1 *)) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    min-height: clamp(460px, 44vw, 660px);
    padding: clamp(36px, 4vw, 64px) 0 clamp(36px, 4vw, 64px) clamp(28px, 3.4vw, 56px);
    column-gap: 0; row-gap: 24px; align-items: end;
  }
  .svc-en:where(:not(.rd1, .rd1 *)) {
    grid-column: 1 / -1; grid-row: 1; align-self: center; position: relative; z-index: 2;
    font-size: clamp(104px, 13.5vw, 224px); line-height: .9; letter-spacing: -.05em;
  }
  .svc-body:where(:not(.rd1, .rd1 *)) { grid-column: 1; grid-row: 2; padding-right: clamp(24px, 3vw, 48px); }
  .svc .svc-ill:where(:not(.rd1, .rd1 *)) {
    position: absolute; z-index: 1; top: 50%; left: 75%; translate: -50% -50%;
    width: clamp(220px, 22vw, 340px); max-width: none;
  }
  .svc-arrow:where(:not(.rd1, .rd1 *)) { position: absolute; right: clamp(20px, 2.4vw, 40px); bottom: clamp(20px, 2.4vw, 40px); }}
@media (max-width: 959px) {
  .svc:where(:not(.rd1, .rd1 *)) { padding: 28px 20px 100px; }
  /* 色の面はイラストの後ろ(右上)だけ。文字の後ろには敷かない(読みやすさ) */
  .svc:where(:not(.rd1, .rd1 *))::before { width: 50%; height: clamp(190px, 50vw, 230px); top: 0; bottom: auto; border-bottom-left-radius: var(--r); }
  .svc-arrow:where(:not(.rd1, .rd1 *)) { right: 20px; bottom: 20px; border-color: var(--rule-ink); color: var(--fg); }
  .svc:hover .svc-arrow:where(:not(.rd1, .rd1 *)), .svc:focus-visible .svc-arrow:where(:not(.rd1, .rd1 *)) { background: var(--svc-c); color: #FFFFFF; border-color: var(--svc-c); }
  .svc:where(:not(.rd1, .rd1 *))::after { top: 16px; right: 16px; }}

/* ---- 3. 声明(Tide の面): 中央にそろえて大きく ---- */
.statement-sec .wrap:where(:not(.rd1, .rd1 *)) { text-align: center; }
.statement-sec .statement:where(:not(.rd1, .rd1 *)) { margin-inline: auto; max-width: none; font-size: clamp(28px, 4vw, 64px); line-height: 1.6; }
.statement-sec .statement.hang:where(:not(.rd1, .rd1 *)) { text-indent: 0; }
.statement-sec .statement-body:where(:not(.rd1, .rd1 *)) { margin-inline: auto; justify-items: center; text-align: center; }
.statement-sec .lead:where(:not(.rd1, .rd1 *)) { margin-inline: auto; }

/* ---- 4. 数字: 画面いっぱいの大きさ ---- */
.fig-num:where(:not(.rd1, .rd1 *)) { font-size: clamp(120px, 19vw, 320px); line-height: .9; letter-spacing: -.05em; }
.fig-unit:where(:not(.rd1, .rd1 *)) { display: inline-flex; align-items: center; gap: 10px; }
.fig-unit:where(:not(.rd1, .rd1 *))::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.fig:where(:not(.rd1, .rd1 *))::before { display: none; }

/* ---- 5. リンク: 文字 + 大きな丸の矢印 / ボタン: 丸い矢印を抱えたピル ---- */
.link:where(:not(.rd1, .rd1 *)) { background: none; gap: 18px; padding-block: 0; }
.link .arrow:where(:not(.rd1, .rd1 *)) {
  box-sizing: border-box; width: 64px; height: 64px; padding: 21px;
  border: 1px solid currentColor; border-radius: 50%;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .6s var(--ease);
}
.link:hover .arrow:where(:not(.rd1, .rd1 *)), .link:focus-visible .arrow:where(:not(.rd1, .rd1 *)) { transform: none; background: var(--fg); color: var(--surface, #FFFFFF); border-color: var(--fg); }
.link:hover:where(:not(.rd1, .rd1 *)), .link:focus-visible:where(:not(.rd1, .rd1 *)) { background: none; }
.btn:where(:not(.rd1, .rd1 *)) { min-height: 72px; padding: 0 10px 0 34px; gap: 26px; }
.btn .arrow:where(:not(.rd1, .rd1 *)) {
  box-sizing: border-box; width: 52px; height: 52px; padding: 17px; border-radius: 50%;
  background: #FFFFFF; color: var(--tide);
}
.tide .btn .arrow:where(:not(.rd1, .rd1 *)), .site-menu .btn .arrow:where(:not(.rd1, .rd1 *)) { background: var(--tide); color: #FFFFFF; }
.btn--sm:where(:not(.rd1, .rd1 *)) { min-height: 52px; padding-right: 6px; }
.btn--sm .arrow:where(:not(.rd1, .rd1 *)) { width: 40px; height: 40px; padding: 12px; }
.site-header .btn .arrow:where(:not(.rd1, .rd1 *)), .dock .btn .arrow:where(:not(.rd1, .rd1 *)) { width: 16px; height: 16px; padding: 0; background: none; color: inherit; }
.site-header .btn:where(:not(.rd1, .rd1 *)), .dock .btn:where(:not(.rd1, .rd1 *)) { padding: 0 22px; min-height: 48px; }

/* ---- 6. 問い合わせ(各ページの最後): さらに大きな英文と、大きな丸いボタン ---- */
.cta .display:where(:not(.rd1, .rd1 *)) { font-size: clamp(92px, 19vw, 320px); line-height: .86; letter-spacing: -.05em; }
.cta .cta-actions:where(:not(.rd1, .rd1 *)) { align-items: center; }
.cta .btn:where(:not(.rd1, .rd1 *)) {
  width: clamp(168px, 15vw, 220px); height: clamp(168px, 15vw, 220px); min-height: 0;
  padding: 0; border-radius: 50%;
  flex-direction: column; justify-content: center; gap: 14px; text-align: center;
  background: transparent; border-color: rgba(255, 255, 255, .9); color: #FFFFFF;
}
.cta .btn:where(:not(.rd1, .rd1 *))::before { border-radius: 50%; background: #FFFFFF; }
.cta .btn:hover:where(:not(.rd1, .rd1 *)), .cta .btn:focus-visible:where(:not(.rd1, .rd1 *)) { color: var(--tide); }
.cta .btn .arrow:where(:not(.rd1, .rd1 *)) { background: none; color: inherit; width: 28px; height: 28px; padding: 0; }

/* ---- 7. 写真の帯: 半分を色で塗った面に、角の丸い写真を浮かせる ---- */
.band:where(:not(.rd1, .rd1 *)) { height: 76vh; height: 76svh; background: linear-gradient(90deg, transparent 0 38%, var(--c-2) 38% 100%); }
.band--entry:where(:not(.rd1, .rd1 *)) { height: 58vh; height: 58svh; }
.band img:where(:not(.rd1, .rd1 *)) {
  left: var(--gutter); top: 8%; width: calc(100% - var(--gutter) * 2); height: calc(86% - var(--cut));   /* 次の面の斜めの継ぎ目(--cut)に写真がかからない */
  border-radius: var(--r);
}
.band:where(:not(.rd1, .rd1 *))::after { display: none; }
main > figure.band:nth-of-type(even):where(:not(.rd1, .rd1 *)), .promises > .band:where(:not(.rd1, .rd1 *)) { background: linear-gradient(90deg, var(--c-1) 0 62%, transparent 62% 100%); }

/* ---- 8. 価値観(想い・採用): 濃い色の面のカード ---- */
.values:where(:not(.rd1, .rd1 *)) { gap: clamp(16px, 2vw, 28px); }
@media (min-width: 960px) {
  .values:where(:not(.rd1, .rd1 *)) { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .values > li:where(:not(.rd1, .rd1 *)) { display: block; }
  .values-ja:where(:not(.rd1, .rd1 *)) { margin-top: 20px; }}
.values > li:where(:not(.rd1, .rd1 *)) {
  --fg: #F7FBFB; --fg-body: #E6F0F1; --fg-2: #D6E7E9; --accent: #C6EAF6;
  padding: clamp(28px, 3vw, 48px); border-radius: var(--r);
  background: var(--vc, var(--c-1)); color: var(--fg-body);
  min-height: clamp(280px, 26vw, 420px);
}
.values > li:nth-child(2):where(:not(.rd1, .rd1 *)) { --vc: var(--c-2); }
.values > li:nth-child(3):where(:not(.rd1, .rd1 *)) { --vc: var(--c-3); }
.values > li:where(:not(.rd1, .rd1 *))::before, .values > li > .rule-dot:where(:not(.rd1, .rd1 *)) { display: none; }
.values > li .promise-en:where(:not(.rd1, .rd1 *)) { font-size: clamp(30px, 3vw, 48px); line-height: 1.05; color: var(--fg); }
.values-ja:where(:not(.rd1, .rd1 *)) { color: var(--fg); }

/* ---- 9. 3 領域(サービス): 色の面の大きな丸い板 ---- */
.tri-list:where(:not(.rd1, .rd1 *)) { padding-top: 0; gap: clamp(12px, 1.6vw, 24px); }
.tri-list:where(:not(.rd1, .rd1 *))::before, .tri-list:where(:not(.rd1, .rd1 *))::after, .tri-list > li:where(:not(.rd1, .rd1 *))::before { display: none; }
.tri-list > li > a:where(:not(.rd1, .rd1 *)) {
  --fg: #F7FBFB; --fg-body: #E6F0F1; --accent: #C6EAF6;
  min-height: clamp(160px, 17vw, 260px); padding: clamp(22px, 2.4vw, 36px);
  align-content: space-between; border-radius: var(--r);
  background: var(--tc, var(--c-1)); transition: transform .6s var(--ease);
}
.tri-list > li:nth-child(2) > a:where(:not(.rd1, .rd1 *)) { --tc: var(--c-2); }
.tri-list > li:nth-child(3) > a:where(:not(.rd1, .rd1 *)) { --tc: var(--c-3); }
.tri-list > li > a:hover:where(:not(.rd1, .rd1 *)) { transform: translateY(-6px); }
.tri-list > li > a:hover .tri-en:where(:not(.rd1, .rd1 *)) { color: var(--fg); }
.tri-ja:where(:not(.rd1, .rd1 *)) { display: inline-flex; align-items: center; gap: 10px; }
.tri-ja:where(:not(.rd1, .rd1 *))::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9AC463; }
@media (max-width: 767px) { .tri-list:where(:not(.rd1, .rd1 *)) { grid-template-columns: 1fr; }}

/* ---- 10. お悩み一覧(サービス): 番号の丸いラベルを付けた角の丸い行 ---- */
.rows:where(:not(.rd1, .rd1 *)) { border-bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; counter-reset: row; }   /* minmax(0): 幅 360 以下で行が枠からはみ出していた */
.rows > li:where(:not(.rd1, .rd1 *)) { counter-increment: row; padding: 0; }
.rows > li:where(:not(.rd1, .rd1 *))::before, .rows > li > .rule-dot:where(:not(.rd1, .rd1 *)) { display: none; }
.rows a.rows-link:where(:not(.rd1, .rd1 *)) {
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px);
  border-radius: var(--r); background: #FFFFFF;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.rows a.rows-link:where(:not(.rd1, .rd1 *))::before {
  content: "0" counter(row); flex: none; order: -1;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--tide); color: #FFFFFF; font-family: var(--f-en); font-size: 16px;
}
.rows a.rows-link > span:first-of-type:where(:not(.rd1, .rd1 *)) { flex: 1; min-width: 0; }
.rows a.rows-link:hover:where(:not(.rd1, .rd1 *)) { background: var(--tide); }
.rows a.rows-link:hover .rows-title:where(:not(.rd1, .rd1 *)), .rows a.rows-link:hover .rows-meta:where(:not(.rd1, .rd1 *)), .rows a.rows-link:hover .arrow:where(:not(.rd1, .rd1 *)) { color: #FFFFFF; }
.rows a.rows-link:hover:where(:not(.rd1, .rd1 *))::before { background: #FFFFFF; color: var(--tide); }

/* ---- 11. 会社情報・サービスのカード: 角を大きく丸く ---- */
.dl:where(:not(.rd1, .rd1 *)) { border-bottom: 0; background: #FFFFFF; border-radius: var(--r); padding: 4px clamp(22px, 3vw, 48px); }
.dl-row:first-child:where(:not(.rd1, .rd1 *))::before { display: none; }
.svc-cards:where(:not(.rd1, .rd1 *)) { --r-card: 28px; }

/* ---- 12. 代表の言葉(トップ): 中央にそろえる ---- */
.message-sec figure:where(:not(.rd1, .rd1 *)) { text-align: center; }
.message-sec .quote:where(:not(.rd1, .rd1 *)) { margin-inline: auto; }
.message-sec .quote-sign:where(:not(.rd1, .rd1 *)) { justify-content: center; }
.message-sec .message-link:where(:not(.rd1, .rd1 *)) { text-align: center; }

/* スマホ: 長い英文の見出しが画面からはみ出さない大きさに */
@media (max-width: 600px) {
  .sec-title .display:where(:not(.rd1, .rd1 *)), .cols-head .sec-title .display:where(:not(.rd1, .rd1 *)), .svc-domain-head .sec-title .display:where(:not(.rd1, .rd1 *)) { font-size: clamp(48px, 15vw, 72px); }
  .cta .display:where(:not(.rd1, .rd1 *)) { font-size: clamp(64px, 20vw, 92px); }}

/* ==========================================================================
   動き(js/redesign.js が html に .rd-on を付けたときだけ。動きを減らす設定では付かない)
   ========================================================================== */
@supports (animation-timeline: view()) {
  /* 読み進み具合: ページの上端の細い線 */
  html:not(.rm) body:where(:not(.rd1, .rd1 *))::after {
    content: ""; position: fixed; left: 0; top: 0; z-index: 101; width: 100%; height: 4px; pointer-events: none;
    background: linear-gradient(90deg, var(--c-1), var(--c-2) 55%, var(--c-3));
    transform-origin: left center; transform: scaleX(0);
    animation: rd-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes rd-progress { to { transform: scaleX(1); } }
  /* 巨大な英文の見出し: スクロールに合わせて右から左へゆっくり流れる */
  html:not(.rm) .sec-title .display:where(:not(.rd1, .rd1 *)), html:not(.rm) .cta .display:where(:not(.rd1, .rd1 *)) {
    animation: rd-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%;
  }
  @keyframes rd-drift { from { translate: 6vw 0; } to { translate: -4vw 0; } }
  /* 数字: 少し遅れてついてくる */
  html:not(.rm) .fig-num:where(:not(.rd1, .rd1 *)) { animation: rd-lag linear both; animation-timeline: view(); }
  @keyframes rd-lag { from { translate: 0 60px; } to { translate: 0 -40px; } }}

/* 和文のラベル: 丸印が先に出て、文字が続く */
.rd-on .sec-title .sec-ja:where(:not(.rd1, .rd1 *))::before { scale: 0; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1) .3s; }
.rd-on .sec-title.rd-in .sec-ja:where(:not(.rd1, .rd1 *))::before { scale: 1; }

/* 事業内容: 色の面が右から塗られ、イラストの板が浮かび上がり、番号が滑り込む */
.rd-on .svc:where(:not(.rd1, .rd1 *))::before { clip-path: inset(0 0 0 100%); transition: clip-path 1.2s cubic-bezier(.76, 0, .24, 1); }
.rd-on .svc.rd-in:where(:not(.rd1, .rd1 *))::before { clip-path: inset(0 0 0 0); }
.rd-on .svc .svc-ill:where(:not(.rd1, .rd1 *)) { opacity: 0; scale: .82; transition: opacity .8s linear .55s, scale 1.1s cubic-bezier(.34, 1.4, .64, 1) .55s; }
.rd-on .svc.rd-in .svc-ill:where(:not(.rd1, .rd1 *)) { opacity: 1; scale: 1; }
.rd-on .svc:where(:not(.rd1, .rd1 *))::after { opacity: 0; translate: 20px 0; transition: opacity .6s linear .9s, translate .8s var(--ease) .9s; }
.rd-on .svc.rd-in:where(:not(.rd1, .rd1 *))::after { opacity: 1; translate: 0 0; }
.rd-on .svc .svc-arrow:where(:not(.rd1, .rd1 *)) { opacity: 0; scale: .6; transition: opacity .5s linear 1s, scale .8s cubic-bezier(.34, 1.56, .64, 1) 1s, translate .5s var(--ease), background-color .4s, color .4s, border-color .4s; }
.rd-on .svc.rd-in .svc-arrow:where(:not(.rd1, .rd1 *)) { opacity: 1; scale: 1; }
/* 丸い矢印: 斜め上を向いて待ち、触れると前を向く */
.svc-arrow svg:where(:not(.rd1, .rd1 *)) { rotate: -45deg; transition: rotate .6s var(--ease); }
.svc:hover .svc-arrow svg:where(:not(.rd1, .rd1 *)), .svc:focus-visible .svc-arrow svg:where(:not(.rd1, .rd1 *)) { rotate: 0deg; }
.svc-arrow:where(:not(.rd1, .rd1 *)), .cta .btn:where(:not(.rd1, .rd1 *)), .link .arrow:where(:not(.rd1, .rd1 *)) { transition-property: translate, background-color, color, border-color, opacity, scale; transition-duration: .5s; transition-timing-function: var(--ease); }

/* 写真: 窓のように開く(角の丸い小さな窓 → 全体) */
.rd-on .band:where(:not(.rd1, .rd1 *)) { clip-path: inset(10% 8% round 48px); transition: clip-path 1.6s cubic-bezier(.76, 0, .24, 1); }
.rd-on .band.rd-in:where(:not(.rd1, .rd1 *)) { clip-path: inset(0 0 round 0); }

/* 色の面のカード・行: 下から少し回りながら上がる */
.rd-on :is(.values > li, .tri-list > li, .fig, .dl, .message-sec figure):where(:not(.rd1, .rd1 *)) {
  opacity: 0; translate: 0 70px; rotate: 1.5deg;
  transition: opacity .7s linear, translate 1.2s var(--ease), rotate 1.2s var(--ease);
  transition-delay: calc(var(--rd-i, 0) * 130ms);
}
.rd-on :is(.values > li, .tri-list > li, .fig, .dl, .message-sec figure).rd-in:where(:not(.rd1, .rd1 *)) { opacity: 1; translate: 0 0; rotate: 0deg; }
.rd-on .rows > li:where(:not(.rd1, .rd1 *)) { opacity: 0; translate: -40px 0; transition: opacity .6s linear, translate 1s var(--ease); transition-delay: calc(var(--rd-i, 0) * 70ms); }
.rd-on .rows > li.rd-in:where(:not(.rd1, .rd1 *)) { opacity: 1; translate: 0 0; }
.rd-on .rows a.rows-link:where(:not(.rd1, .rd1 *))::before { scale: 0; transition: scale .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--rd-i, 0) * 70ms + 300ms); }
.rd-on .rows > li.rd-in a.rows-link:where(:not(.rd1, .rd1 *))::before { scale: 1; }

/* 声明の本文・問い合わせのボタン */
.rd-on :is(.statement-sec .statement-body, .cta-actions):where(:not(.rd1, .rd1 *)) { opacity: 0; translate: 0 30px; transition: opacity .8s linear .2s, translate 1s var(--ease) .2s; }
.rd-on :is(.statement-sec .statement-body, .cta-actions).rd-in:where(:not(.rd1, .rd1 *)) { opacity: 1; translate: 0 0; }
/* 問い合わせの丸いボタン: ゆっくり呼吸する輪 */
.cta .btn:where(:not(.rd1, .rd1 *))::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
  animation: rd-breathe 2.8s ease-in-out infinite; pointer-events: none;
}
@keyframes rd-breathe { 0%, 100% { scale: .94; opacity: .0; } 50% { scale: 1.06; opacity: 1; } }
.cta .btn:where(:not(.rd1, .rd1 *)) { overflow: visible; }
.cta .btn:where(:not(.rd1, .rd1 *))::before { overflow: hidden; }

/* マウスに付いてくる丸い印(js が作る)。差の合成で明るい面でも濃い面でも見える */
.rd-cursor:where(:not(.rd1, .rd1 *)) {
  position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #FFFFFF; mix-blend-mode: difference;
  opacity: 0; transition: opacity .3s linear, width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease);
}
.rd-cursor.is-on:where(:not(.rd1, .rd1 *)) { opacity: .9; }
.rd-cursor.is-link:where(:not(.rd1, .rd1 *)) { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
@media (prefers-reduced-motion: reduce) { .rd-cursor:where(:not(.rd1, .rd1 *)), .cta .btn:where(:not(.rd1, .rd1 *))::after { display: none; }}

/* ---- 写真(サービスの各カード): カードの上に、角の丸い写真を一枚 ---- */
.svc-card-photo:where(:not(.rd1, .rd1 *)) {
  margin: 0 0 clamp(24px, 3vw, 40px);
  height: clamp(190px, 24vw, 320px);
  border-radius: 20px;
  overflow: hidden;
  clip-path: inset(0 round 20px);
}
.svc-card-photo img:where(:not(.rd1, .rd1 *)) { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
@media (hover: hover) { .svc-card:hover .svc-card-photo img:where(:not(.rd1, .rd1 *)) { scale: 1.05; }}
/* 動き: 小さな丸い窓から全体へ開く(写真の帯と同じ動き) */
.rd-on .svc-card-photo:where(:not(.rd1, .rd1 *)) { clip-path: inset(14% 10% round 48px); transition: clip-path 1.4s cubic-bezier(.76, 0, .24, 1) .1s; }
.rd-on .svc-card-photo.rd-in:where(:not(.rd1, .rd1 *)) { clip-path: inset(0 round 20px); }


/* ---- 写真の出かた: スクロールに合わせて写真の窓が広がり、奥で大きな英語の言葉が流れる ----
   写真の帯: はじめは小さな角丸の窓 → スクロールで帯いっぱいへ。窓のまわりに見えている言葉は、窓が広がると写真の奥に隠れる
   カードの写真: 窓の中で写真がゆっくり動き(奥行き)、マウスで写真の板が少し傾く */
.rd-word:where(:not(.rd1, .rd1 *)) {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  display: flex; align-items: center;
  font-family: var(--f-en, "Newsreader", serif); font-style: italic; font-weight: 400;
  font-size: clamp(110px, 21vw, 360px); line-height: 1; letter-spacing: -.03em; white-space: nowrap;
  color: rgba(255, 255, 255, .22);
}
.rd-word > span:where(:not(.rd1, .rd1 *)) { display: block; padding-left: 4vw; }
@supports (animation-timeline: view()) {
  .rd-on .band:where(:not(.rd1, .rd1 *)), .rd-on .band.rd-in:where(:not(.rd1, .rd1 *)) { clip-path: none; transition: none; }   /* 帯ごとの一度きりの開きは、スクロールに合わせた窓の広がりに置き換える */
  html.rd-on .band > img[data-parallax]:where(:not(.rd1, .rd1 *)), html.rd-on .band > img:where(:not(.rd1, .rd1 *)) {   /* 元の視差の指定より強くする */
    animation: plx linear both, rd-win linear both;
    animation-timeline: view(), view();
    animation-range: normal, entry 0% cover 48%;
  }
  @keyframes rd-win { from { clip-path: inset(16% 24% round 120px); } to { clip-path: inset(0 0 round 0); } }
  .rd-on .rd-word > span:where(:not(.rd1, .rd1 *)) { animation: rd-word-flow linear both; animation-timeline: view(); }
  @keyframes rd-word-flow { from { translate: 6% 0; } to { translate: -38% 0; } }
  .rd-on .svc-card-photo img:where(:not(.rd1, .rd1 *)) { animation: rd-card-depth linear both; animation-timeline: view(); }
  @keyframes rd-card-depth { from { scale: 1.22; translate: 0 -5%; } to { scale: 1.06; translate: 0 5%; } }}
.svc-card-photo:where(:not(.rd1, .rd1 *)) { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .6s var(--ease), clip-path 1.4s cubic-bezier(.76, 0, .24, 1) .1s; }
@media (prefers-reduced-motion: reduce) { .rd-word:where(:not(.rd1, .rd1 *)) { display: none; }}
.rd-on .svc-card-photo:where(:not(.rd1, .rd1 *)) { transition: clip-path 1.4s cubic-bezier(.76, 0, .24, 1) .1s, transform .6s var(--ease); }

/* 写真の枠の切り抜きは overflow: clip で(hidden だとスクロールの基準がこの枠になり、視差やスクロール連動の動きが止まってしまう) */
figure.band:where(:not(.rd1, .rd1 *)), .svc-card-photo:where(:not(.rd1, .rd1 *)) { overflow: clip; }
/* 言葉は色の面の上だけに出す(明るい側では白い文字がにじみに見えるため) */
.rd-word:where(:not(.rd1, .rd1 *)) { clip-path: inset(0 0 0 38%); }
main > figure.band:nth-of-type(even) .rd-word:where(:not(.rd1, .rd1 *)), .promises > .band .rd-word:where(:not(.rd1, .rd1 *)) { clip-path: inset(0 38% 0 0); }
/* 元のブラインド状の出かたは、新しい写真の出かたと重なるので使わない */
.rd-on .band .blind:where(:not(.rd1, .rd1 *)) { display: none; }

/* ---- 写真が流れる帯(スライド): トップの「Four promises」と採用の 2 枚目 ----
   写真の窓と同じ高さに、角の丸い写真が何枚も並んで左へ流れ続ける。両端は色の面へ溶ける */
.rd-has-slides > img:where(:not(.rd1, .rd1 *)) { visibility: hidden; }
html.rd-on .rd-has-slides > img[data-parallax]:where(:not(.rd1, .rd1 *)), html.rd-on .rd-has-slides > img:where(:not(.rd1, .rd1 *)) { animation: none; }
.rd-slides:where(:not(.rd1, .rd1 *)) {
  --gap: clamp(14px, 2vw, 28px);
  position: absolute; left: 0; right: 0; top: 8%; height: calc(86% - var(--cut));
  overflow: clip;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.rd-slides-track:where(:not(.rd1, .rd1 *)) { display: flex; gap: var(--gap); height: 100%; width: max-content; animation: rd-slide 80s linear infinite; }
.rd-slides-track img:where(:not(.rd1, .rd1 *)) {
  flex: none; height: 100%; width: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--r); transition: scale .7s var(--ease), filter .7s var(--ease);
}
@keyframes rd-slide { to { translate: calc(-50% - var(--gap) / 2) 0; } }
@media (hover: hover) {
  .rd-slides:hover .rd-slides-track:where(:not(.rd1, .rd1 *)) { animation-play-state: paused; }
  .rd-slides-track img:hover:where(:not(.rd1, .rd1 *)) { scale: 1.03; }}
/* 出かた: 右から滑り込む */
.rd-on .rd-slides:where(:not(.rd1, .rd1 *)) { opacity: 0; translate: 10% 0; transition: opacity 1s linear, translate 1.8s var(--ease); }
.rd-on .rd-in > .rd-slides:where(:not(.rd1, .rd1 *)) { opacity: 1; translate: 0 0; }
@media (max-width: 767px) {
  .rd-slides:where(:not(.rd1, .rd1 *)) { top: 10%; height: calc(78% - var(--cut)); }
  .rd-slides-track img:where(:not(.rd1, .rd1 *)) { aspect-ratio: 3 / 4; }}
/* 帯の写真用の指定(絶対配置・幅・拡大)が、流れる帯の写真にかからないようにする */
.rd-on .band .rd-slides-track img:where(:not(.rd1, .rd1 *)) { position: static; left: auto; top: auto; width: auto; height: 100%; scale: 1; translate: none; animation: none; filter: none; }
@media (hover: hover) { .rd-on .band .rd-slides-track img:hover:where(:not(.rd1, .rd1 *)) { scale: 1.03; }}