/* 笠井システムのサイトの CSS（2026-11-02 に作り直し。決め方は docs/redesign-brief.md と web-design スキル）
   色は 6 つ、文字の段差は 5 段、節の型は 非対称・全幅・固定表示・重ね・帯 を節ごとに替える。
   動きは 最初の画面の演出 1 か所・スクロール 2 か所・ページ遷移・ホバー だけ。 */

/* ---------- 1. 変数 ---------- */
:root {
  --c-bg: #FFFFFF;
  --c-band: #F3F6F9;
  --c-line: #E1E7ED;
  --c-ink: #13202B;
  --c-muted: #586572;
  --c-accent: #1E6393;
  --c-accent-deep: #174D73;
  --c-dark: #0C2232;
  --c-dark-line: #2A4256;
  --c-on-dark-link: #9CCBF0;
  --c-on-dark-muted: #B9C6D1;
  --c-err: #B3261E;
  --c-ok: #1E6E3A;

  --fs-display: clamp(2.5rem, 1.1rem + 3.6vw, 4.125rem); /* 40px → 66px（11 字の見出しが 8 列（733px）に 2 行で入る大きさ） */
  --fs-h2: clamp(1.75rem, 1.15rem + 2.4vw, 3.25rem);     /* 28px → 52px */
  --fs-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);      /* 18px → 22px */
  --fs-body: 1.0625rem;                                   /* 17px */
  --fs-small: 0.875rem;                                   /* 14px */

  --space-section: clamp(4.5rem, 2.5rem + 7vw, 10rem);   /* 72px → 160px */
  --space-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);      /* 32px → 56px */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);          /* 16px → 40px */
  --measure: 75rem;
  --header-h: 4rem;

  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-en: "Manrope", var(--font);
  --radius: 12px;
  --tap: 2.75rem;
}

/* ---------- 2. 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.85;
  letter-spacing: 0.02em;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--c-accent-deep); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, li, dd, dt { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-weight: 900; }
h1, h2, .display {
  font-feature-settings: "palt";
  letter-spacing: -0.01em;
  line-height: 1.15;
  word-break: auto-phrase;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.4; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.en { font-family: var(--font-en); font-weight: 600; letter-spacing: 0.02em; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: var(--c-ink); color: #fff; padding: 0.5rem 1rem; }
.skip:focus { left: 0.5rem; }

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 36em; }
.lead { font-size: 1.125rem; }
.hint, .small { font-size: var(--fs-small); color: var(--c-muted); line-height: 1.7; }
.dark .hint, .dark .small { color: var(--c-on-dark-muted); }

/* ---------- 3. 節の型 ---------- */
.sec { padding-block: var(--space-section); }
.sec.band { background: var(--c-band); }
.sec.dark { background: var(--c-dark); color: #fff; }
.dark a { color: var(--c-on-dark-link); }
.dark a:hover { color: #fff; }
.sec-head { margin-bottom: var(--space-block); }
.sec-head p { margin-top: 1rem; max-width: 36em; }

/* 左右非対称（7:5）。.reverse で左右を入れ替える */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.split > .text { grid-column: 1 / span 7; }
.split > .media { grid-column: 8 / -1; }
.split.reverse > .text { grid-column: 7 / -1; grid-row: 1; }
.split.reverse > .media { grid-column: 1 / span 6; grid-row: 1; }
.split.even > .text { grid-column: 1 / span 6; }
.split.even > .media { grid-column: 7 / -1; }

/* 固定表示。左に見出しを止め、右に流す */
.pin { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; }
.pin > .head { position: sticky; top: calc(var(--header-h) + 25vh); }
.pin > .head p { margin-top: 1rem; max-width: 24em; }

@media (max-width: 52.49rem) {
  .split > *, .split.reverse > *, .split.even > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .pin { grid-template-columns: 1fr; }
  .pin > .head { position: static; margin-bottom: var(--space-block); }
}

/* ---------- 4. ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.75rem; border-radius: 999px;
  background: var(--c-accent); color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: 0.04em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--c-accent-deep); color: #fff; }
.btn.small { min-height: 2.5rem; padding: 0 1.25rem; font-size: 0.9375rem; }
.btn.outlined { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn.outlined:hover { background: var(--c-band); color: var(--c-accent-deep); }
.btn.inverse { background: #fff; color: var(--c-dark); }
.btn.inverse:hover { background: var(--c-on-dark-link); color: var(--c-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.link-more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: left bottom; transition: background-size 0.3s ease; padding-bottom: 2px; }
.link-more:hover { background-size: 100% 1.5px; }
.link-more::after { content: "→"; font-family: var(--font-en); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; }

/* ---------- 5. 上のバー ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, #fff 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  view-transition-name: site-header;
}
.top.is-scrolled { border-bottom-color: var(--c-line); }
.top { transition: border-color 0.2s ease, translate 0.35s ease; }
.top.is-hidden { translate: 0 -100%; }
@supports not (backdrop-filter: blur(1px)) { .top { background: #fff; } }
@media (prefers-reduced-transparency: reduce) { .top { background: #fff; backdrop-filter: none; } }
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); position: relative; }
.mark { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--c-ink); margin-right: auto; }
.mark-en { font-family: var(--font-en); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.12em; }
.mark-ja { font-size: 0.75rem; font-weight: 500; color: var(--c-muted); letter-spacing: 0.1em; }
.nav { display: flex; gap: 1.75rem; }
.nav a { color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 0.25rem 0; background-image: linear-gradient(var(--c-accent), var(--c-accent)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: left bottom; transition: background-size 0.3s ease; }
.nav a:hover, .nav a[aria-current] { background-size: 100% 1.5px; }
.menu-btn { display: none; width: var(--tap); height: var(--tap); border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { position: absolute; left: 50%; width: 22px; height: 2px; background: var(--c-ink); translate: -50% 0; transition: translate 0.2s ease, rotate 0.2s ease, opacity 0.2s ease, background-color 0.2s ease; }
.menu-btn .bars { top: 50%; }
.menu-btn .bars::before { content: ""; top: -7px; }
.menu-btn .bars::after { content: ""; top: 7px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { top: 0; rotate: 45deg; }
.menu-btn[aria-expanded="true"] .bars::after { top: 0; rotate: -45deg; }
@media (max-width: 52.49rem) {
  .menu-btn { display: block; order: 3; }
  .top-cta { order: 2; }
  .nav { display: none; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--c-line); padding: 0.5rem var(--gutter) 1rem; }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.0625rem; padding: 0.75rem 0; border-bottom: 1px solid var(--c-line); background: none; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current] { color: var(--c-accent); }
}
@media (max-width: 23.99rem) { .top-cta { display: none; } }

/* スマホの下の固定バー */
.bottom-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, #fff 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--c-line);
  gap: 0.75rem;
  translate: 0 110%; transition: translate 0.3s ease;
}
.bottom-bar.is-shown { translate: 0 0; }
.bottom-bar .btn { flex: 1; }
@supports not (backdrop-filter: blur(1px)) { .bottom-bar { background: #fff; } }
@media (max-width: 52.49rem) { .bottom-bar { display: flex; } body.has-bar footer.site { padding-bottom: 6rem; } }

/* ---------- 6. 最初の画面 ---------- */
.hero { padding-top: clamp(2rem, 1rem + 4vw, 5rem); padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); overflow: clip; }
.hero h1 { font-size: var(--fs-display); line-height: 1.1; max-width: 12em; }
.hero.split > .text, .hero .split > .text { grid-column: 1 / span 8; }
.hero.split > .media, .hero .split > .media { grid-column: 9 / -1; }
.hero .sub { margin-top: 1.5rem; font-size: 1.125rem; max-width: 30em; }
.hero .actions { margin-top: 2.25rem; }
.hero .text { position: relative; z-index: 1; }
.hero .media { position: relative; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 52.49rem) {
  .hero .media { margin-top: var(--space-block); }
  .hero .sub { margin-top: 1rem; font-size: 1.0625rem; }
  .hero .actions { margin-top: 1.5rem; }
}

/* 読み込み時の演出: 見出しが行ごとに下から現れる */
.hero .line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero .line { opacity: 0; translate: 0 0.35em; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .hero .line:nth-child(2) { animation-delay: 0.08s; }
  .hero .sub, .hero .actions { opacity: 0; translate: 0 0.5rem; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards; }
  .hero .actions { animation-delay: 0.3s; }
  .hero .media { opacity: 0; animation: fade 0.6s ease 0.25s forwards; }
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- 7. 動く小さな画面（お店の画面を元に HTML で組んだもの） ---------- */
.demo { width: min(100%, 17.5rem); height: 34rem; border: 6px solid #1B1F23; border-radius: 28px; background: #F7F8F9; overflow: clip; position: relative; box-shadow: 0 0 0 1px #000; }
.demo-top { background: #1B1F23; color: #fff; padding: 0.9rem 1rem 0.7rem; display: flex; justify-content: space-between; align-items: baseline; font-size: 0.75rem; gap: 0.5rem; }
.demo-top b { font-size: 0.9375rem; }
.demo-rows { padding: 0.5rem 0.65rem 0; display: grid; gap: 0.5rem; }
.demo-row { background: #fff; border-radius: 10px; padding: 0.6rem 0.7rem; font-size: 0.75rem; line-height: 1.55; border: 1px solid #E6E9ED; }
.demo-row .n { font-weight: 700; font-size: 0.875rem; }
.demo-row .n small { font-weight: 500; color: var(--c-muted); font-family: var(--font-en); margin-left: 0.4em; letter-spacing: 0.04em; font-size: 0.6875rem; }
.demo-row .b { font-weight: 500; }
.demo-row .b b { font-weight: 700; }
.demo-ops { margin-top: 0.4rem; display: grid; min-height: 1.9rem; }
.demo-ops > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 0.6rem; }
.demo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 1.9rem; padding: 0 0.7rem; border-radius: 6px; background: #1B1F23; color: #fff; font-weight: 700; font-size: 0.75rem; }
.demo-link { text-decoration: underline; font-size: 0.75rem; color: var(--c-ink); }
.demo-chip { display: inline-flex; align-items: center; min-height: 1.5rem; padding: 0 0.5rem; border-radius: 4px; font-size: 0.6875rem; font-weight: 700; border: 1px solid; }
.demo-chip.ok { color: var(--c-ok); border-color: var(--c-ok); background: #EEF7F0; }
.demo-chip.is-done { color: #fff; background: #4C5A66; border-color: #4C5A66; }
.demo-toast { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 1rem; background: #1B1F23; color: #fff; font-size: 0.75rem; padding: 0.6rem 0.8rem; border-radius: 8px; opacity: 0; }
.demo-sk { position: absolute; left: 0.65rem; right: 0.65rem; top: 3.1rem; display: grid; gap: 0.5rem; pointer-events: none; }
.demo-sk span { display: block; height: 4.6rem; border-radius: 10px; background: linear-gradient(90deg, #E9ECEF 25%, #F3F5F7 50%, #E9ECEF 75%); background-size: 200% 100%; }
.demo-cap { margin-top: 1rem; text-align: center; }
.demo-cap a { color: var(--c-muted); font-size: var(--fs-small); }

/* 止まった状態（動きを減らす設定・古いブラウザ）: 一覧が出ていて、1 行目は受け渡した、知らせは無し */
.demo-sk { opacity: 0; }
.demo-row:first-child .before { opacity: 0; }
.demo-row:first-child .after { opacity: 1; }
.demo-row .after { opacity: 0; }
.demo-row:first-child .after { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .demo-sk { opacity: 1; animation: skfade 0.3s ease 0.9s forwards; }
  .demo-sk span { animation: shimmer 1.2s linear infinite; }
  .demo-row { opacity: 0; translate: 0 6px; animation: rise 0.45s ease forwards; }
  .demo-row:nth-child(1) { animation-delay: 0.9s; }
  .demo-row:nth-child(2) { animation-delay: 0.98s; }
  .demo-row:nth-child(3) { animation-delay: 1.06s; }
  .demo-row:nth-child(4) { animation-delay: 1.14s; }
  .demo-row:first-child .before { opacity: 1; animation: swipeout 0.5s ease 2.4s forwards; }
  .demo-row:first-child .after { opacity: 0; animation: fade 0.4s ease 2.75s forwards; }
  .demo-toast { animation: toast 2.2s ease 3s forwards; }
}
@keyframes skfade { to { opacity: 0; visibility: hidden; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes swipeout { to { opacity: 0; translate: 40px 0; } }
@keyframes toast { 0% { opacity: 0; translate: 0 12px; } 15% { opacity: 1; translate: 0 0; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- 8. 作業の流れの図（SVG） ---------- */
.flow-fig { width: 100%; max-width: 40rem; margin-inline: auto; }
.flow-fig svg { width: 100%; height: auto; overflow: visible; }
.flow-fig .box { fill: transparent; stroke: currentColor; stroke-width: 1.5; }
.flow-fig .box.main { stroke: var(--c-on-dark-link); stroke-width: 2; }
.flow-fig text { fill: currentColor; font-family: var(--font); font-size: 15px; font-weight: 500; }
.flow-fig .main-label { font-weight: 700; font-size: 16px; }
.flow-fig .wire { fill: none; stroke: var(--c-on-dark-link); stroke-width: 1.5; stroke-linecap: round; }
.flow-fig .screen-line { stroke: var(--c-on-dark-link); stroke-width: 1.5; opacity: 0.7; }
.light .flow-fig .box.main, .light .flow-fig .wire, .light .flow-fig .screen-line { stroke: var(--c-accent); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .flow-fig .wire { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
    .flow-fig .wire:nth-of-type(2) { animation-range: entry 30% cover 60%; }
    .flow-fig .wire:nth-of-type(3) { animation-range: entry 40% cover 65%; }
    .flow-fig .wire:nth-of-type(4) { animation-range: entry 50% cover 70%; }
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 9. できること（線の行） ---------- */
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem var(--gutter); padding-block: 1.75rem; border-top: 1px solid var(--c-line); }
.rows li:last-child { border-bottom: 1px solid var(--c-line); }
.rows h3 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); line-height: 1.3; }
.rows p { max-width: 36em; }
@media (max-width: 52.49rem) { .rows li { grid-template-columns: 1fr; gap: 0.5rem; padding-block: 1.5rem; } }

/* ---------- 10. 端末の枠と事例 ---------- */
.devices { position: relative; width: 100%; }
.device-pc { aspect-ratio: 16 / 10; border: 10px solid #1B1F23; border-radius: 12px; overflow: clip; background: #fff; }
.device-sp { position: absolute; right: -4%; bottom: -8%; width: 26%; aspect-ratio: 9 / 19.5; border: 6px solid #1B1F23; border-radius: 22px; overflow: clip; background: #fff; }
.device-pc img, .device-sp img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.devices.in-grid { margin-bottom: 8%; }
.work-shot { view-transition-name: work-hero; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .grow { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes grow { from { scale: 0.94; opacity: 0.6; } to { scale: 1; opacity: 1; } }
.work-meta { margin-top: 1.25rem; }
.work-name { font-family: var(--font-en); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); letter-spacing: 0.04em; line-height: 1.1; }
.work-kind { margin-top: 0.5rem; color: var(--c-muted); }
.dark .work-kind { color: var(--c-on-dark-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tags span { font-size: var(--fs-small); padding: 0.2rem 0.7rem; border: 1px solid currentColor; border-radius: 999px; opacity: 0.85; }

/* 事例ページ: 左に文を止め、右のスマホの枠の中を送る */
.scroller .device-sp-l { position: relative; width: min(100%, 18rem); height: 39rem; margin-inline: auto; border: 6px solid #1B1F23; border-radius: 26px; overflow: clip; background: #fff; }
.scroller .device-sp-l img { width: 100%; height: auto; object-fit: contain; object-position: top; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .scroller .device-sp-l img { animation: scrollshot linear both; animation-timeline: view(); animation-range: cover 10% cover 90%; }
  }
}
@keyframes scrollshot { from { translate: 0 0; } to { translate: 0 calc(-100% + 36rem); } }
.steps-text { display: grid; gap: var(--space-block); }
.steps-text h3 { margin-bottom: 0.5rem; }

/* ---------- 11. 進め方（番号の段。見ている段だけ濃く） ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.75rem; border-top: 1px solid var(--c-line); }
.steps li:last-child { border-bottom: 1px solid var(--c-line); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-en); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--c-accent); }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { max-width: 36em; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps li { animation: focus linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes focus { 0% { opacity: 0.4; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0.4; } }

/* ---------- 12. つくる人（重ね） ---------- */
.person { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: center; }
.person-photo { position: relative; max-width: 26rem; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--c-band); }
.badge { position: absolute; right: -1rem; bottom: 1.5rem; background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 0.75rem 1.25rem; display: grid; line-height: 1.3; box-shadow: 0 8px 24px rgba(19, 32, 43, 0.08); }
.badge .role { font-size: var(--fs-small); color: var(--c-muted); }
.badge b { font-size: 1.25rem; }
.person-text p { max-width: 32em; }
.person-text .place { margin-top: 1rem; color: var(--c-muted); font-size: var(--fs-small); }
@media (max-width: 52.49rem) {
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 18rem; }
  .badge { right: -0.5rem; }
}

/* 顔写真が無い間の詰めた形 */
.person.compact { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1.5rem var(--space-block); }
.person.compact img { width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover; background: var(--c-band); }
.person.compact .who { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem; }
.person.compact .who .role { font-size: var(--fs-small); color: var(--c-muted); }
.person.compact .who b { font-size: 1.5rem; }
@media (max-width: 35.99rem) { .person.compact { grid-template-columns: 1fr; } }

/* ---------- 13. 相談の帯 ---------- */
.cta { background: var(--c-dark); color: #fff; padding-block: var(--space-section); }
.cta .inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem var(--space-block); align-items: center; }
.cta h2 { font-size: clamp(1.625rem, 1.1rem + 2vw, 2.75rem); }
.cta p { margin-top: 0.75rem; color: var(--c-on-dark-muted); max-width: 32em; }
.cta .actions { margin-top: 0; }
.face-mini { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; background: var(--c-band); }
@media (max-width: 52.49rem) { .cta .inner { grid-template-columns: 1fr; } }

/* ---------- 14. お知らせ・情報の表・地図・よくある質問 ---------- */
.news li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem 1rem; padding-block: 1rem; border-top: 1px solid var(--c-line); }
.news li:last-child { border-bottom: 1px solid var(--c-line); }
.news time { font-family: var(--font-en); font-weight: 600; color: var(--c-muted); letter-spacing: 0.04em; }
.news .none { grid-template-columns: 1fr; color: var(--c-muted); }
.news-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem 2rem; align-items: baseline; padding-block: 1.5rem; border-top: 1px solid var(--c-line); }
.news-strip h2 { font-size: var(--fs-h3); }
.news-strip .news li, .news-strip .news li:last-child { border: 0; padding: 0; }
@media (max-width: 52.49rem) { .news li { grid-template-columns: 1fr; gap: 0.1rem; } .news-strip { grid-template-columns: 1fr; } }

dl.info { margin: 0; }
dl.info > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.5rem 1rem; padding-block: 1rem; border-top: 1px solid var(--c-line); }
dl.info > div:last-child { border-bottom: 1px solid var(--c-line); }
dl.info dt { color: var(--c-muted); font-size: var(--fs-small); padding-top: 0.2rem; }
dl.info dd { margin: 0; }
dl.info dd small { display: block; color: var(--c-muted); font-size: var(--fs-small); }
dl.info + .hint { margin-top: 1rem; }
@media (max-width: 35.99rem) { dl.info > div { grid-template-columns: 1fr; gap: 0.1rem; } }

.map { margin: 0; }
.map iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.map figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--c-muted); }

.faq details { border-top: 1px solid var(--c-line); }
.faq details:last-child { border-bottom: 1px solid var(--c-line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 700; font-size: var(--fs-h3); line-height: 1.4; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; translate: 0 -50%; font-family: var(--font-en); font-size: 1.5rem; color: var(--c-accent); transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 1.5rem; max-width: 36em; }

.page-head { padding-top: clamp(2rem, 1rem + 4vw, 5rem); padding-bottom: var(--space-block); }
.page-head h1 { font-size: var(--fs-h2); }
.page-head p { margin-top: 1rem; max-width: 36em; }
.sub-sec { margin-top: var(--space-block); }
.sub-sec h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-block) var(--gutter); }
.two h3 { margin-bottom: 0.5rem; }
@media (max-width: 52.49rem) { .two { grid-template-columns: 1fr; } }
.made li { padding: 0.75rem 0 0.75rem 1.5rem; position: relative; border-top: 1px solid var(--c-line); }
.made li:last-child { border-bottom: 1px solid var(--c-line); }
.made li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c-accent); }
.dark .made li { border-color: var(--c-dark-line); }
.dark .made li::before { background: var(--c-on-dark-link); }
.photo-line { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--gutter); align-items: center; }
.photo-line img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
@media (max-width: 35.99rem) { .photo-line { grid-template-columns: 1fr; } .photo-line img { max-width: 14rem; } }
.not-found { padding-block: var(--space-section); }
.not-found .code { font-family: var(--font-en); font-weight: 600; font-size: clamp(4rem, 2rem + 10vw, 9rem); line-height: 1; color: var(--c-line); }
.not-found h1 { margin-top: 1rem; font-size: var(--fs-h2); }

/* ---------- 15. 相談フォーム ---------- */
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-block) var(--space-block); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: var(--space-block); }
.contact-aside h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.flow-mini { counter-reset: s; display: grid; gap: 0.75rem; }
.flow-mini li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; }
.flow-mini li::before { counter-increment: s; content: counter(s); font-family: var(--font-en); font-weight: 600; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--c-accent); color: var(--c-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; }
.flow-mini b { display: block; }
.flow-mini span { font-size: var(--fs-small); color: var(--c-muted); }
.who-replies { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: center; }
.who-replies img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; background: var(--c-band); }
.who-replies b { display: block; }
.who-replies span { font-size: var(--fs-small); color: var(--c-muted); }
.aside-work { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.aside-work img { border-radius: 8px; border: 3px solid #1B1F23; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.aside-work b { display: block; }
.aside-work span { font-size: var(--fs-small); color: var(--c-accent); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 52.49rem) {
  .contact { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

.form { display: grid; gap: 1.75rem; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.75rem; }
.field .req, .field .opt { font-size: 0.75rem; font-weight: 500; margin-left: 0.6rem; padding: 0.1rem 0.5rem; border-radius: 4px; vertical-align: middle; }
.field .req { background: var(--c-accent); color: #fff; }
.field .opt { background: var(--c-band); color: var(--c-muted); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 3.5rem; padding: 0.9rem 1rem; font: inherit; color: inherit;
  border: 1px solid #9AA6B1; border-radius: 10px; background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.field [aria-invalid="true"] { border-color: var(--c-err); box-shadow: 0 0 0 1px var(--c-err); }
.field .hint { margin-top: 0.5rem; }
.field .err { margin-top: 0.5rem; color: var(--c-err); font-size: var(--fs-small); font-weight: 700; }
.field .err:empty { display: none; }
.count { margin-top: 0.4rem; font-size: var(--fs-small); color: var(--c-muted); text-align: right; font-family: var(--font-en); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.choices label { position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 3.5rem; padding: 0.75rem 1rem; border: 1px solid #9AA6B1; border-radius: 10px; cursor: pointer; font-weight: 500; background: #fff; transition: border-color 0.15s ease, background-color 0.15s ease; margin: 0; }
.choices label:has(:checked) { border-color: var(--c-accent); background: #EEF4F9; box-shadow: 0 0 0 1px var(--c-accent); }
.choices input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--c-accent); flex: none; }
.choices label:has(:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 35.99rem) { .choices { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--c-err); font-weight: 700; padding: 1rem 1.25rem; border: 1px solid var(--c-err); border-radius: 10px; background: #FBEFEE; }
.form-error:empty { display: none; }
[hidden] { display: none !important; }
.done { padding: 2rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-band); display: grid; gap: 1.25rem; }
.done h2 { font-size: var(--fs-h3); }
.done dl { margin: 0; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.4rem 1rem; }
.done dt { color: var(--c-muted); font-size: var(--fs-small); }
.done dd { margin: 0; }
.swap { view-transition-name: form-swap; }

/* ---------- 16. 下の帯 ---------- */
footer.site { border-top: 1px solid var(--c-line); padding-block: 3rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2rem; align-items: start; }
.foot-mark { display: grid; line-height: 1.2; }
.foot-mark .mark-en { font-size: 1.125rem; }
.foot-sub { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--c-muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot nav a { color: var(--c-ink); text-decoration: none; font-size: 0.9375rem; }
.foot nav a:hover { text-decoration: underline; }
.foot .copy { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--c-muted); font-family: var(--font-en); }
@media (max-width: 35.99rem) { .foot { grid-template-columns: 1fr; } }

/* ---------- 16b. 細かい補助 ---------- */
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 1.5rem; }
.mt-l { margin-top: var(--space-block); }
.h3-size { font-size: var(--fs-h3); }
.split.media-first > .media { grid-column: 1 / span 7; grid-row: 1; }
.split.media-first > .text { grid-column: 8 / -1; grid-row: 1; }
.demo.static, .demo.static * { animation: none !important; }
.demo.static .demo-sk, .demo.static .demo-toast { display: none; }
.demo.static .demo-row { opacity: 1; translate: none; }
.work-hero .devices { max-width: 60rem; margin-inline: auto; }
.work-hero .work-name { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem); }
.work-hero .lead { color: var(--c-on-dark-muted); }
.light h2 + .mt-m { margin-top: 1.5rem; }


/* ---------- 18. 写真の最初の画面・流れる画面・写真の帯・現れる動き（2026-11-02 夕方） ---------- */
.hero-photo { position: relative; min-height: min(100svh, 56rem); display: grid; align-items: end; color: #fff; overflow: clip; isolation: isolate; margin-top: calc(-1 * var(--header-h)); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,34,50,0.55) 0%, rgba(12,34,50,0.25) 35%, rgba(12,34,50,0.78) 100%); }
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(4rem, 3rem + 5vw, 7rem); max-width: var(--measure); width: 100%; }
.hero-photo .eyebrow { font-size: var(--fs-small); letter-spacing: 0.08em; color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.hero-photo .eyebrow .en { font-size: 0.9375rem; letter-spacing: 0.18em; }
.hero-photo h1 { font-size: clamp(2.5rem, 1rem + 5vw, 5.25rem); line-height: 1.1; max-width: 13em; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero-photo h1 .line { display: block; }
.hero-photo .sub { margin-top: 1.5rem; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); max-width: 32em; color: rgba(255,255,255,0.92); }
.hero-photo .actions { margin-top: 2.25rem; }
.btn.lg { min-height: 3.75rem; padding: 0 2.25rem; font-size: 1.0625rem; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn.ghost:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: #fff; }
.btn::after { content: "\2192"; font-family: var(--font-en); display: inline-block; translate: -6px 0; opacity: 0; width: 0; overflow: hidden; transition: translate 0.25s ease, opacity 0.25s ease, width 0.25s ease, margin 0.25s ease; }
.btn:hover::after { translate: 0 0; opacity: 1; width: 1em; margin-left: 0.1em; }
.btn.small::after { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; width: 1.5rem; height: 2.5rem; border: 1.5px solid rgba(255,255,255,0.7); border-radius: 999px; display: grid; justify-content: center; padding-top: 0.4rem; }
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { translate: 0 0; opacity: 1; } 70% { translate: 0 10px; opacity: 0; } 100% { translate: 0 0; opacity: 0; } }
@media (max-width: 52.49rem) {
  .hero-photo { min-height: min(100svh, 46rem); }
  .hero-inner { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 5rem; }
  .hero-photo .actions .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .hero-photo .eyebrow .en { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { scale: 1.08; animation: kenburns 9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards; }
  @keyframes kenburns { to { scale: 1; } }
  .hero-photo .line, .hero-photo .rise-1, .hero-photo .rise-3, .hero-photo .rise-4 { opacity: 0; translate: 0 0.5em; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .hero-photo .rise-1 { animation-delay: 0.1s; }
  .hero-photo .line:nth-child(1) { animation-delay: 0.25s; }
  .hero-photo .line:nth-child(2) { animation-delay: 0.38s; }
  .hero-photo .rise-3 { animation-delay: 0.55s; }
  .hero-photo .rise-4 { animation-delay: 0.7s; }
}

/* トップでは、写真の上にいる間は上のバーを透かして白い字にする */
body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .mark, body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .nav a { color: #fff; }
body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .mark-ja { color: rgba(255,255,255,0.75); }
body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .nav a { background-image: linear-gradient(#fff, #fff); }
body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .menu-btn .bars, body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .menu-btn .bars::before, body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .menu-btn .bars::after { background: #fff; }
body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .menu-btn[aria-expanded="true"] .bars { background: transparent; }
body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .top-cta { background: #fff; color: var(--c-dark); }
@media (max-width: 52.49rem) { body:has(.hero-photo, .page-hero, .work-hero) .top:not(.is-scrolled) .nav.is-open a { color: var(--c-ink); } }

/* 流れる画面 */
.screens { padding-bottom: 0; overflow: clip; }
.screens .split { margin-bottom: var(--space-block); }
.link-more.light { color: var(--c-on-dark-link); }
.marquee { position: relative; width: 100%; overflow: clip; padding-bottom: var(--space-section); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: clamp(1rem, 2vw, 2rem); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { translate: calc(-50% - clamp(0.5rem, 1vw, 1rem)) 0; } }
.phone { margin: 0; width: clamp(11rem, 16vw, 14rem); flex: none; }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border: 5px solid #1B1F23; border-radius: 22px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.35); transition: translate 0.4s ease; }
.phone:hover img { translate: 0 -8px; }
.phone figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--c-on-dark-muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .marquee-track { animation: none; } }

/* 写真のカード・追従・丸い写真 */
.photo-card { margin: 0; border-radius: 16px; overflow: clip; max-width: 30rem; }
.photo-card img { width: 100%; height: auto; display: block; }
.ticks li { position: relative; padding: 0.6rem 0 0.6rem 2rem; border-top: 1px solid var(--c-line); }
.ticks li:last-child { border-bottom: 1px solid var(--c-line); }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--c-accent); border-bottom: 2px solid var(--c-accent); rotate: -45deg; }
.photo-round { width: min(100%, 22rem); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-inline: auto; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.cta-photo .split { align-items: center; }
.cta-photo .media { display: flex; justify-content: center; }
.cta-photo .actions { margin-top: 2rem; }
.hover-zoom img { transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hover-zoom:hover img { scale: 1.03; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .parallax img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .parallax-bg { animation: drift-bg linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes drift { from { translate: 0 28px; } to { translate: 0 -28px; } }
@keyframes drift-bg { from { translate: 0 -6%; } to { translate: 0 6%; } }

/* 写真の帯（進め方） */
.photo-band { position: relative; color: #fff; overflow: clip; isolation: isolate; }
.band-bg { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,34,50,0.82), rgba(12,34,50,0.7)); }
.photo-band .sec-head p { color: var(--c-on-dark-muted); }
.flow4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.flow4 li { padding: 1.75rem 1.5rem; border: 1px solid rgba(255,255,255,0.22); border-radius: 14px; background: rgba(12,34,50,0.45); transition: background-color 0.3s ease, translate 0.3s ease; }
.flow4 li:hover { background: rgba(12,34,50,0.7); translate: 0 -4px; }
.flow4 .num { display: block; font-size: 2rem; font-weight: 800; color: var(--c-on-dark-link); line-height: 1; margin-bottom: 1rem; }
.flow4 h3 { margin-bottom: 0.5rem; }
.flow4 p { color: var(--c-on-dark-muted); font-size: 0.9375rem; }
@media (max-width: 52.49rem) { .flow4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 35.99rem) { .flow4 { grid-template-columns: 1fr; } }

/* 下層ページの写真の帯（見出し） */
.page-hero { position: relative; color: #fff; overflow: clip; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(4rem, 3rem + 4vw, 7rem)); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,34,50,0.7), rgba(12,34,50,0.82)); }
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.page-hero p { margin-top: 1rem; max-width: 36em; color: rgba(255,255,255,0.9); }
.page-hero + .wrap { padding-top: var(--space-block); }
@media (prefers-reduced-motion: no-preference) {
  .page-hero h1, .page-hero p { opacity: 0; translate: 0 0.5em; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards; }
  .page-hero p { animation-delay: 0.3s; }
}

/* 現れる動き（JS が .in を付ける。JS が無いときは最初から見える） */
.js-rv .rv, .js-rv .rv-group > * { opacity: 0; translate: 0 24px; transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js-rv .rv.in, .js-rv .rv-group.in > * { opacity: 1; translate: 0 0; }

/* ---------- 17. ページ遷移・動きを減らす ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
