/* R.Support Portfolio
   デザイン台帳（hicdogg/-Tool- docs/デザイン台帳.md）に合わせる：
   間隔は 4px の倍数／セクションの上下 PC 96・SP 64／横の余白 PC 40・SP 16／中身の最大幅 1160
   見出し h2 PC 48/56・SP 36/44／本文 16/28／補足 12〜13 より小さくしない／書体は2系統（英字 Inter＋日本語 Noto Sans JP、Apple はシステムの書体）
   色は役割の名前で決める／ライトとダークの両方（端末の設定で切り替え＋data-theme で固定） */

:root {
  --bg: #f5f6f8;
  --bg-2: #eceef2;
  --paper: #ffffff;
  --ink: #0b0d12;
  --body: #3a414c;
  --muted: #5f6774;
  --line: rgba(11, 13, 18, 0.08);
  --line-2: rgba(11, 13, 18, 0.14);
  --accent: #0a7286;
  --accent-ink: #ffffff;
  --accent-2: #5b4bd6;
  --lime: #4d7c0f;
  --glass: rgba(255, 255, 255, 0.72);
  --frame: #0b0c0e;
  --glow-1: rgba(34, 211, 238, 0.22);
  --glow-2: rgba(167, 139, 250, 0.20);
  --shadow: 0 1px 2px rgba(11, 13, 18, 0.06), 0 12px 32px rgba(11, 13, 18, 0.08);
  --shadow-lg: 0 2px 4px rgba(11, 13, 18, 0.06), 0 32px 64px rgba(11, 13, 18, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07080b;
    --bg-2: #0c0e12;
    --paper: #111318;
    --ink: #f5f7fa;
    --body: #c3c9d2;
    --muted: #8d96a3;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --accent: #22d3ee;
    --accent-ink: #04161a;
    --accent-2: #a78bfa;
    --lime: #c6f24e;
    --glass: rgba(17, 19, 24, 0.68);
    --glow-1: rgba(34, 211, 238, 0.18);
    --glow-2: rgba(167, 139, 250, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.5), 0 32px 64px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #07080b;
  --bg-2: #0c0e12;
  --paper: #111318;
  --ink: #f5f7fa;
  --body: #c3c9d2;
  --muted: #8d96a3;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #22d3ee;
  --accent-ink: #04161a;
  --accent-2: #a78bfa;
  --lime: #c6f24e;
  --glass: rgba(17, 19, 24, 0.68);
  --glow-1: rgba(34, 211, 238, 0.18);
  --glow-2: rgba(167, 139, 250, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.5), 0 32px 64px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 28px;
  font-feature-settings: "palt";
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* hidden だと body が sticky の基準になり、積み重なるカードと根拠の画面が止まらない */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, blockquote { color: var(--ink); text-wrap: balance; letter-spacing: 0.01em; word-break: auto-phrase; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { position: relative; padding: 96px 0; }
/* 2026-10-24 速さ：最初の画面より下の節は、近づくまで見た目の計算をしない（見た目は変わらない。一度描いた高さは覚える） */
.hero ~ .section { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
.section + .section { border-top: 1px solid var(--line); }

/* 英字の小見出し */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.eyebrow b { color: var(--muted); font-weight: 600; }
.h2 { margin-top: 16px; font-size: 48px; line-height: 56px; font-weight: 800; }
.lead { margin-top: 16px; max-width: 640px; font-size: 17px; line-height: 30px; color: var(--body); }
.head { margin-bottom: 48px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 32px; border-radius: 999px;
  font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: 0.02em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-en); font-weight: 800; font-size: 20px; line-height: 24px; color: var(--ink); letter-spacing: -0.01em; }
.logo i { font-style: normal; color: var(--accent); }
.logo small { margin-left: 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 999px; font-family: var(--font-en); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
.header-cta { height: 44px; padding: 0 20px; font-size: 14px; }

/* ヒーロー */
.hero { position: relative; padding: 160px 0 0; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none;
  animation: drift 18s var(--ease-soft) infinite alternate;
}
.hero::before { width: 640px; height: 640px; top: -200px; right: -120px; background: var(--glow-1); }
.hero::after { width: 560px; height: 560px; top: 160px; left: -240px; background: var(--glow-2); animation-delay: -6s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 48px, 0) scale(1.08); } }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; color: var(--ink);
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow-1); }
.hero h1 { margin-top: 24px; font-size: 72px; line-height: 88px; font-weight: 900; letter-spacing: 0; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--ink) 0%, var(--accent) 52%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 24px; font-size: 18px; line-height: 32px; max-width: 600px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-visual { position: relative; margin-top: 64px; perspective: 1600px; }
.hero-frame {
  position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg); transform-style: preserve-3d; transition: transform 0.6s var(--ease-out);
}
.hero-frame img { width: 100%; aspect-ratio: 1600 / 755; object-fit: cover; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(7, 8, 11, 0.56)); pointer-events: none; }
.hero-caption { position: absolute; left: 32px; bottom: 28px; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; line-height: 20px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.stats { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat {
  padding: 24px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stat small { display: block; font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted); }
.stat b { display: block; margin-top: 8px; font-family: var(--font-en); font-size: 56px; line-height: 64px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.stat span { display: block; margin-top: 4px; font-size: 14px; line-height: 24px; font-weight: 600; color: var(--body); }
.stat:nth-child(1) b { color: var(--lime); }
.stat:nth-child(2) b { color: var(--accent); }
.stat:nth-child(3) b { color: var(--accent-2); }

/* 章の目次 */
.story { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 48px; }
.story a {
  display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s;
}
.story a:hover { border-color: var(--line-2); background: var(--paper); }
.story small { font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; }
.story span { font-family: var(--font-en); font-size: 13px; line-height: 20px; font-weight: 700; color: var(--ink); letter-spacing: 0.08em; }

/* 実績：横にスワイプする5枠（縦に伸ばさない。スマホは次の枠を少し見せて、スワイプできると分かる形に） */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head-row .lead { margin: 0 0 8px; max-width: 360px; }
.carousel-ui { display: flex; align-items: center; gap: 8px; flex: none; }
.carousel-ui .count { margin-right: 8px; font-family: var(--font-en); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.carousel-ui .count b { color: var(--ink); }
.carousel-ui .icon-btn:disabled { opacity: 0.32; cursor: default; }
.carousel-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px max(40px, calc((100vw - 1160px) / 2)) 32px; scroll-padding: 0 max(40px, calc((100vw - 1160px) / 2));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -4px; }
.slide {
  flex: 0 0 min(1160px, calc(100vw - 80px)); scroll-snap-align: start;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  padding: 40px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.work-media { position: relative; padding: 0 24px 40px 0; }
.device-d {
  position: relative; padding: 8px; border-radius: 16px; background: var(--frame);
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: var(--shadow-lg);
}
.device-d img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; }
.device-m {
  position: absolute; right: 0; bottom: 0; width: 28%; padding: 4px; border-radius: 28px; background: var(--frame);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: var(--shadow-lg);
}
.device-m img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 24px; }
.work-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13px; line-height: 20px; font-weight: 700;
}
.work-badge svg { width: 16px; height: 16px; }
.slide h3 { margin-top: 16px; font-size: 32px; line-height: 44px; font-weight: 800; }
.slide .client { margin-top: 12px; font-size: 14px; line-height: 24px; font-weight: 600; color: var(--muted); }
.slide .desc { margin-top: 16px; color: var(--body); }
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); }
.more { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; height: 44px; font-size: 15px; line-height: 24px; font-weight: 700; color: var(--accent); }
.more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.more:hover svg { transform: translateX(4px); }
.progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress i { display: block; width: 20%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.4s var(--ease-out); }

.work-media.is-photo { padding: 0; }
.work-media.is-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }

/* 実際の画面（縦横はそのまま）を入れるスマホの枠 */
.phone { padding: 8px; border-radius: 32px; background: var(--frame); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: var(--shadow-lg); }
.phone img { width: 100%; border-radius: 24px; }
.work-media.duo { display: grid; grid-template-columns: repeat(2, 216px); justify-content: center; gap: 24px; padding: 0 0 40px; align-items: start; }
.work-media.duo .phone:nth-child(2) { margin-top: 48px; }

/* CREATIVE：ポスターと広告の棚 */
.shelf {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 8px max(40px, calc((100vw - 1160px) / 2)) 24px; scroll-padding: 0 max(40px, calc((100vw - 1160px) / 2));
}
.shelf::-webkit-scrollbar { display: none; }
.shelf-item { flex: none; scroll-snap-align: start; }
.shelf-item img { height: 440px; width: auto; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); transition: transform 0.6s var(--ease-out); }
.shelf-item:hover img { transform: translateY(-4px); }
.shelf-item figcaption { margin-top: 12px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--muted); }

/* BUILD LOG */
.buildlog { margin-top: 96px; display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; max-width: 960px; margin-left: auto; margin-right: auto; }
.buildlog h3 { margin-top: 16px; font-size: 36px; line-height: 48px; font-weight: 800; }
.buildlog p { margin-top: 16px; color: var(--body); }
.bl-nums { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bl-nums li { padding: 16px 20px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.bl-nums b { display: block; font-family: var(--font-en); font-size: 32px; line-height: 40px; font-weight: 800; color: var(--ink); }
.bl-nums span { display: block; margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--muted); }
.buildlog .bl-note { margin-top: 12px; font-size: 12px; line-height: 20px; color: var(--muted); }

/* これから：公開中の実物と並べる */
.next-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.next-grid .roadmap { max-width: none; }
/* お客様の声 */
.voice { margin-top: 64px; display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: center; }
.voice-post { padding: 24px; border-radius: 24px; background: #0b0d10; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-lg); }
.voice-post img { width: 100%; border-radius: 8px; }
.voice-mark { display: block; margin-top: 24px; width: 40px; height: 40px; color: var(--accent); }
.voice blockquote { margin: 16px 0 0; font-size: 36px; line-height: 52px; font-weight: 800; color: var(--ink); text-wrap: balance; }
.voice-by { margin-top: 24px; font-size: 14px; line-height: 24px; font-weight: 600; color: var(--muted); }

/* 公開後の仕組み */
.after { margin-top: 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.after-card { display: grid; gap: 8px; padding: 32px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.after-card small { font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent); }
.after-card b { margin-top: 4px; font-size: 24px; line-height: 36px; font-weight: 800; color: var(--ink); }
.after-card span { font-size: 15px; line-height: 24px; color: var(--muted); }
.after-card.wide { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.after-card.wide > div:first-child { display: grid; gap: 8px; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 120px; }
.bars i { display: block; width: 32px; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); transform-origin: bottom; }
.after-card.wide.is-in .bars i { animation: grow 1s var(--ease-out) both; }
.after-card.wide.is-in .bars i:nth-child(2) { animation-delay: 0.08s; }
.after-card.wide.is-in .bars i:nth-child(3) { animation-delay: 0.16s; }
.after-card.wide.is-in .bars i:nth-child(4) { animation-delay: 0.24s; }
.after-card.wide.is-in .bars i:nth-child(5) { animation-delay: 0.32s; }
.after-card.wide.is-in .bars i:nth-child(6) { animation-delay: 0.4s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* 対応業種 */
.industries { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.industries .chips { margin-top: 16px; }
/* 根拠：画面を止めたまま、数字と説明を1つずつ重ねる */
.scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.scrolly-stage { position: relative; }
.scrolly-frame { position: sticky; top: 96px; height: calc(100vh - 144px); max-height: 720px; }
.scrolly-frame img {
  position: absolute; inset: 0; margin: auto; max-height: 100%; width: auto; max-width: 100%;
  border-radius: 24px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: #fff;
  opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.scrolly-frame img.is-on { opacity: 1; transform: none; }
.scrolly-steps { display: grid; }
.step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.4s var(--ease-out); }
.step.is-on { opacity: 1; }
.step-img { display: none; }
.step small { font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; }
.step b { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; font-family: var(--font-en); font-size: 120px; line-height: 120px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.step b em { font-style: normal; font-family: var(--font); font-size: 24px; line-height: 32px; font-weight: 800; letter-spacing: 0; color: var(--body); }
.step p { margin-top: 16px; max-width: 440px; font-size: 17px; line-height: 30px; color: var(--body); }

/* デザインの引き出し：流れる2段 */
.marquee { display: grid; gap: 24px; overflow: hidden; -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: 24px; width: max-content; animation: flow 72s linear infinite; }
.marquee-row.is-rev .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes flow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - 12px), 0, 0); } }
.mq-item { flex: none; width: 400px; }
.mq-item .thumb { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--frame); }
.mq-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.8s var(--ease-out); }
.mq-item:hover img { transform: scale(1.04); }
.mq-item figcaption { margin-top: 12px; display: flex; align-items: baseline; gap: 12px; }
.mq-item figcaption b { font-size: 15px; line-height: 24px; font-weight: 700; color: var(--ink); }
.mq-item figcaption span { font-size: 13px; line-height: 20px; color: var(--muted); }
/* 対応できる範囲 */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  padding: 24px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--bg-2); color: var(--accent); }
.service .ic svg { width: 24px; height: 24px; }
.service h3 { margin-top: 24px; font-size: 18px; line-height: 28px; font-weight: 700; }
.service p { margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--muted); }

/* 自社サービス */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
  display: grid; grid-template-columns: 1fr 160px; gap: 24px; align-items: center;
  padding: 24px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.product.wide { grid-column: 1 / -1; grid-template-columns: 1fr; }
.product .status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.product .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.product h3 { margin-top: 12px; font-size: 20px; line-height: 32px; font-weight: 800; }
.product p { margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--muted); }
.product .mini { padding: 4px; border-radius: 24px; background: var(--frame); border: 1px solid rgba(255, 255, 255, 0.14); }
.product .mini img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 20px; }
.app-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.app-list li { padding: 16px; border-radius: 12px; border: 1px solid var(--line); }
.app-list b { display: block; font-size: 15px; line-height: 24px; font-weight: 700; color: var(--ink); }
.app-list span { display: block; margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--muted); }

/* 料金 */
.price-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
.price-main {
  position: relative; padding: 32px; border-radius: 24px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.price-main::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: var(--glow-1); filter: blur(48px); }
.price-main > * { position: relative; }
.price-main .label { font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent); }
.price-main h3 { margin-top: 12px; font-size: 24px; line-height: 32px; font-weight: 800; }
.price-main .yen { margin-top: 24px; font-family: var(--font-en); font-size: 64px; line-height: 72px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.price-main .yen small { font-family: var(--font); font-size: 20px; line-height: 28px; font-weight: 700; margin-left: 4px; }
.price-main ul { margin-top: 24px; display: grid; gap: 12px; }
.price-main li { display: flex; gap: 12px; font-size: 15px; line-height: 24px; color: var(--body); }
.price-main li svg { flex: none; width: 20px; height: 24px; color: var(--accent); }
.price-list { border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.price-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 24px; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row b { display: block; font-size: 16px; line-height: 24px; font-weight: 700; color: var(--ink); }
.price-row span { display: block; margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--muted); }
.price-row em { flex: none; font-style: normal; font-family: var(--font-en); font-size: 18px; line-height: 24px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.price-row em.free { color: var(--accent); font-family: var(--font); font-size: 16px; }
.price-note { margin-top: 24px; font-size: 13px; line-height: 20px; color: var(--muted); }

/* 仕事への姿勢：カードが1枚ずつ積み重なる（約束が重なり、信頼が積み上がる） */
.stance-stack { display: grid; gap: 24px; max-width: 880px; margin: 0 auto; }
.stance-stack li {
  position: sticky; top: 96px; min-height: 224px; padding: 40px; border-radius: 24px;
  display: grid; align-content: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.stance-stack li:nth-child(2) { top: 112px; }
.stance-stack li:nth-child(3) { top: 128px; }
.stance-stack li:nth-child(4) { top: 144px; }
.stance-stack small { font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.2em; color: var(--accent); }
.stance-stack b { font-size: 44px; line-height: 56px; font-weight: 900; color: var(--ink); }
.stance-stack span { font-size: 16px; line-height: 28px; color: var(--muted); }.quote { margin-top: 48px; padding: 40px; border-radius: 24px; text-align: center; background: var(--ink); color: var(--bg); }
.quote p { font-size: 28px; line-height: 40px; font-weight: 800; color: var(--bg); text-wrap: balance; }
.quote small { display: block; margin-top: 16px; font-family: var(--font-en); font-size: 12px; line-height: 16px; letter-spacing: 0.2em; opacity: 0.72; }

/* これから */
.roadmap { position: relative; display: grid; gap: 16px; max-width: 880px; }
.roadmap li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.roadmap .st { align-self: start; display: inline-flex; justify-content: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; line-height: 28px; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); }
.roadmap .st.live { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.roadmap b { display: block; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink); }
.roadmap span { display: block; margin-top: 4px; font-size: 14px; line-height: 24px; color: var(--muted); }

/* お問い合わせ */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact-points { margin-top: 32px; display: grid; gap: 16px; }
.contact-points li { display: flex; gap: 16px; align-items: flex-start; }
.contact-points .n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font-en); font-size: 13px; line-height: 20px; font-weight: 700; color: var(--accent); }
.contact-points b { display: block; font-size: 16px; line-height: 24px; color: var(--ink); }
.contact-points span { display: block; font-size: 14px; line-height: 24px; color: var(--muted); }
.form { padding: 32px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field .lab { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.field label em { font-style: normal; margin-left: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--accent); }
.input {
  width: 100%; height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; line-height: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.input { height: 160px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow-1); }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 24px) 50%, calc(100% - 16px) 50%; background-size: 8px 8px; background-repeat: no-repeat; padding-right: 44px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; line-height: 24px; color: var(--body); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.form .btn { width: 100%; }
.form-note { font-size: 12px; line-height: 20px; color: var(--muted); text-align: center; }
.hp { display: none; }

/* フッター */
.site-footer { padding: 64px 0 48px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-links { display: flex; gap: 8px; }
.footer-links a { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; font-size: 13px; line-height: 20px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.copy { font-family: var(--font-en); font-size: 12px; line-height: 16px; color: var(--muted); letter-spacing: 0.08em; }

/* 開いた時のロゴの画面 */
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity 0.6s var(--ease-out), visibility 0.6s; cursor: pointer; }
.no-splash .splash { display: none; }
.is-splash { overflow: hidden; }
.splash.is-out { opacity: 0; visibility: hidden; }
.splash-inner { display: grid; justify-items: center; gap: 16px; }
.splash-mark { position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 28px; background: var(--ink); box-shadow: var(--shadow-lg); animation: mark-in 0.9s var(--ease-out) both; }
.splash-r { font-family: var(--font-en); font-size: 56px; line-height: 64px; font-weight: 800; color: var(--bg); letter-spacing: -0.04em; margin-right: 8px; }
.splash-dot { position: absolute; right: 16px; bottom: 28px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); animation: dot-in 0.6s 0.5s var(--ease-out) both; }
.splash-word { margin-top: 8px; font-family: var(--font-en); font-size: 24px; line-height: 32px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; animation: fade-up 0.8s 0.3s var(--ease-out) both; }
.splash-sub { font-family: var(--font-en); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.24em; color: var(--muted); animation: fade-up 0.8s 0.45s var(--ease-out) both; }
.splash-bar { margin-top: 16px; width: 160px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; animation: bar 2s 0.2s var(--ease-soft) both; }
@keyframes mark-in { from { opacity: 0; transform: scale(0.8) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes dot-in { from { transform: scale(0); } 70% { transform: scale(1.4); } to { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* スマホの下の固定バー */
.dock { display: none; }

/* 動き（スクロールでふわっと出す） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* 下層ページ（プライバシーポリシー・送信完了） */
.doc { padding: 144px 0 96px; }
.doc .wrap { max-width: 840px; }
.doc h1 { margin-top: 16px; font-size: 40px; line-height: 52px; font-weight: 800; }
.doc .updated { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.doc h2 { margin-top: 48px; font-size: 22px; line-height: 32px; font-weight: 800; }
.doc p, .doc li { margin-top: 12px; font-size: 16px; line-height: 30px; color: var(--body); }
.doc ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.doc li { margin-top: 4px; }
.doc .back { margin-top: 48px; }

/* タブレット */
@media (max-width: 1080px) {
  .nav { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: repeat(4, 1fr); }
  .slide { gap: 32px; padding: 32px; }
  .work-media.duo { grid-template-columns: repeat(2, 184px); }
  .voice { grid-template-columns: 320px 1fr; gap: 40px; }
  .voice blockquote { font-size: 28px; line-height: 40px; }
  .step b { font-size: 96px; line-height: 96px; }
}

/* スマホ（列は1つ・横の余白 16・セクションの上下 64） */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .h2 { font-size: 36px; line-height: 44px; }
  .head { margin-bottom: 32px; }
  .header-cta { display: none; }
  .hero { padding: 112px 0 0; }
  .hero h1 { font-size: 40px; line-height: 52px; }
  .hero .lead { font-size: 16px; line-height: 28px; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { margin-top: 40px; }
  .hero-frame { border-radius: 16px; }
  .hero-frame img { aspect-ratio: 4 / 3; object-position: 64% 50%; }
  .hero-caption { left: 16px; bottom: 16px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 16px 20px; }
  .stat b { grid-row: 1 / 3; margin: 0; font-size: 48px; line-height: 56px; }
  .stat small { align-self: end; }
  .stat span { margin: 0; }
  .story { display: none; }
  .head-row { display: block; }
  .carousel-ui { margin-top: 24px; }
  .carousel-track { gap: 12px; padding: 8px 16px 24px; scroll-padding: 0 16px; }
  .slide { flex-basis: calc(100vw - 48px); grid-template-columns: 1fr; gap: 24px; padding: 16px 16px 24px; border-radius: 20px; }
  .work-media { padding: 0 12px 24px 0; }
  .device-m { width: 30%; border-radius: 20px; }
  .device-m img { border-radius: 16px; }
  .slide h3 { font-size: 24px; line-height: 36px; }
  .slide-text { padding: 0 8px; }
  .work-media.duo { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 0 24px; }
  .work-media.duo .phone:nth-child(2) { margin-top: 32px; }
  .phone { padding: 4px; border-radius: 24px; }
  .phone img { border-radius: 20px; }
  .shelf { gap: 12px; padding: 8px 16px 16px; scroll-padding: 0 16px; }
  .shelf-item img { height: 320px; border-radius: 12px; }
  .buildlog { margin-top: 64px; grid-template-columns: 1fr; gap: 32px; }
  .buildlog .phone { max-width: 280px; }
  .buildlog h3 { font-size: 28px; line-height: 40px; }
  .bl-nums b { font-size: 24px; line-height: 32px; }
  .next-grid { grid-template-columns: 1fr; gap: 32px; }
  .next-phone { max-width: 240px; }
  .voice { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .voice-post { padding: 16px; max-width: 360px; }
  .voice blockquote { font-size: 26px; line-height: 40px; }
  .after { margin-top: 64px; grid-template-columns: 1fr; gap: 16px; }
  .after-card { padding: 24px; }
  .after-card b { font-size: 20px; line-height: 32px; }
  .after-card.wide { grid-template-columns: 1fr; }
  .bars { height: 88px; gap: 8px; }
  .bars i { width: 24px; }
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly-stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 32px 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; padding-top: 0; }
  .step-img { display: block; width: 72%; margin-bottom: 24px; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #fff; }
  .step b { font-size: 72px; line-height: 72px; }
  .step b em { font-size: 18px; line-height: 28px; }
  .marquee { gap: 16px; }
  .marquee-track { gap: 16px; }
  @keyframes flow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-50% - 8px), 0, 0); } }
  .mq-item { width: 240px; }
  .mq-item figcaption span { display: none; }
  .stance-stack li { min-height: 176px; padding: 24px; top: 80px; }
  .stance-stack li:nth-child(2) { top: 92px; }
  .stance-stack li:nth-child(3) { top: 104px; }
  .stance-stack li:nth-child(4) { top: 116px; }
  .stance-stack b { font-size: 32px; line-height: 44px; }
  .services { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr 112px; gap: 16px; }
  .app-list { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-main { padding: 24px; }
  .price-main .yen { font-size: 52px; line-height: 64px; }
  .price-row { padding: 16px; }
  .quote { padding: 32px 24px; }
  .quote p { font-size: 22px; line-height: 32px; }
  .roadmap li { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .roadmap .st { justify-self: start; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .form { padding: 24px; }
  .site-footer { padding-bottom: 112px; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; padding: 8px; border-radius: 20px;
    background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  }
  .dock a { display: inline-flex; align-items: center; justify-content: center; height: 48px; border-radius: 12px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
  .dock a.go { background: var(--ink); color: var(--bg); }
  .doc { padding: 112px 0 64px; }
  .doc h1 { font-size: 32px; line-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee-track { width: auto; }
  .mq-item[aria-hidden="true"] { display: none; }
  .scrolly-frame img { transition: none; }
}
