/* REN App Gallery。色は REN 式の6色だけ（シアン→フューシャのグラデーション／#18181b／#a1a1aa／白／黒） */
:root {
  --cyan: #06b6d4;
  --fuchsia: #d946ef;
  --grad: linear-gradient(90deg, #06b6d4, #d946ef);
  --ink: #18181b;
  --sub: #a1a1aa;
  --white: #ffffff;
  /* 線と面は ink の透明度で作る（新しい色を足さない） */
  --line: rgba(24, 24, 27, .09);
  --line-2: rgba(24, 24, 27, .16);
  --tint: rgba(24, 24, 27, .035);
  --muted: rgba(24, 24, 27, .62);
  --shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 12px 32px rgba(24, 24, 27, .07);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Inter", "Noto Sans JP", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ── 押し戻しメニュー ── */
.page { position: relative; background: var(--white); min-height: 100vh; transform-origin: 0 50%; transition: transform .55s var(--ease), border-radius .55s var(--ease); overflow: hidden; }
body.menu-open .page { transform: translateX(62vw) scale(.86); border-radius: 22px; box-shadow: -20px 0 60px rgba(0,0,0,.4); pointer-events: none; }
.back-menu { position: fixed; inset: 0 auto 0 0; width: 62vw; padding: 96px 28px; display: grid; align-content: start; gap: 6px; }
.back-menu a { color: var(--white); font-size: 22px; font-weight: 700; padding: 8px 0 8px 14px; border-left: 2px solid transparent; opacity: 0; transform: translateX(-16px); transition: opacity .4s, transform .4s var(--ease), border-color .2s; }
body.menu-open .back-menu a { opacity: 1; transform: none; }
body.menu-open .back-menu a:nth-child(2) { transition-delay: .05s; } body.menu-open .back-menu a:nth-child(3) { transition-delay: .1s; } body.menu-open .back-menu a:nth-child(4) { transition-delay: .15s; }
.back-menu a:hover { border-image: var(--grad) 1; }

/* ── 白地に流れる光 ── */
.bg { position: absolute; inset: 0 0 auto 0; height: 900px; pointer-events: none; overflow: hidden; }
.bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(24,24,27,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(80px); opacity: .16; animation: drift 18s ease-in-out infinite alternate; }
.b1 { background: var(--cyan); top: -160px; right: 8%; }
.b2 { background: var(--fuchsia); top: 120px; right: -120px; animation-duration: 22s; animation-delay: -6s; }
.b3 { background: var(--cyan); top: 380px; left: -220px; opacity: .08; animation-duration: 26s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.1); } 100% { transform: translate(40px, -30px) scale(.95); } }

/* ── 上の帯 ── */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: baseline; gap: 8px; }
.logo b { font-weight: 900; letter-spacing: -.04em; font-size: 22px; }
.logo span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.top-links { display: flex; gap: 26px; font-size: 13px; font-weight: 500; }
.top-links a { position: relative; color: var(--muted); transition: color .2s; }
.top-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top-links a:hover { color: var(--ink); }
.top-links a:hover::after { transform: scaleX(1); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--white); padding: 0; place-items: center; align-content: center; gap: 4px; }
.burger i { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; margin: 0 auto; }

/* ── ヒーロー ── */
.hero { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 24px 40px; display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding-top: 80px; } }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 6px 14px 6px 10px; border-radius: 99px; background: var(--white); border: 1px solid transparent; background-image: linear-gradient(#fff, #fff), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; margin: 0 0 22px; }
.pill-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(6,182,212,.5); } 50% { box-shadow: 0 0 0 6px rgba(6,182,212,0); } }
.hero h1 { font-size: clamp(28px, 4.1vw, 52px); line-height: 1.22; letter-spacing: -.03em; font-weight: 900; margin: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 6s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.lead { color: var(--muted); font-size: 15px; max-width: 520px; margin: 22px 0 0; }
.mini-steps { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; font-weight: 600; }
.mini-steps li { display: flex; align-items: center; gap: 8px; }
.mini-steps .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--white); background: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 99px; font-size: 14px; font-weight: 700; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.dark:hover { box-shadow: 0 10px 24px rgba(24,24,27,.25); transform: translateY(-1px); }
.btn.line { background: var(--white); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn .arr { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* ヒーローの画面コラージュ（実物のアプリを縮小して重ねる） */
.hero-visual { position: relative; height: 440px; }
@media (max-width: 979px) { .hero-visual { height: 320px; } }
.hv { position: absolute; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 2px 4px rgba(24,24,27,.05), 0 24px 60px rgba(24,24,27,.14); border: 1px solid var(--line); animation: float 7s ease-in-out infinite; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hv.in { opacity: 1; transform: none; }
.hv-tag { position: absolute; left: 10px; top: 10px; z-index: 3; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; background: rgba(24, 24, 27, .82); padding: 3px 10px; border-radius: 99px; box-shadow: 0 4px 12px rgba(24, 24, 27, .25); pointer-events: none; }
.hv.phone .hv-tag { left: 50%; transform: translateX(-50%); top: 8px; white-space: nowrap; font-size: 10px; }
.hv:nth-child(1) { left: 0; top: 30px; width: 64%; animation-delay: 0s; }
.hv:nth-child(2) { right: 0; top: 0; width: 52%; animation-delay: -2.4s; z-index: 2; }
.hv:nth-child(3) { left: 22%; bottom: 0; width: 56%; animation-delay: -4.8s; z-index: 3; }
.hv.phone { width: 22% !important; border-radius: 22px; border: 5px solid var(--ink); right: 6%; left: auto; bottom: -10px; top: auto; z-index: 4; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ── 本文 ── */
main { max-width: 1200px; margin: 0 auto; padding: 8px 24px 80px; position: relative; }

/* コマンドパレット */
.palette { position: relative; z-index: 20; max-width: 760px; margin: 0 auto; }
.search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px 0 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--sub); position: relative; transition: box-shadow .25s, border-color .25s; }
.search:focus-within { border-color: transparent; background-image: linear-gradient(#fff, #fff), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 0 0 4px rgba(6,182,212,.12), var(--shadow); }
.search input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; color: var(--ink); min-width: 0; position: relative; z-index: 1; }
.search .ghost { position: absolute; left: 48px; color: var(--sub); font-size: 15px; pointer-events: none; white-space: nowrap; }
.search .ghost::after { content: "｜"; margin-left: 1px; animation: blink 1s steps(1) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.search kbd { font-family: var(--font); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.results { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; left: 0; right: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(24,24,27,.14); transform-origin: top; transform: scaleY(.9) translateY(-8px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .2s; }
.results.open { transform: none; opacity: 1; pointer-events: auto; }
.results li { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease); }
.results.open li { opacity: 1; transform: none; }
.results button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; border-radius: 10px; text-align: left; }
.results button:hover, .results button.active { background: var(--tint); }
.results .sq { width: 10px; height: 10px; border-radius: 3px; background: var(--grad); flex: none; }
.results .nm { font-weight: 700; font-size: 14px; }
.results .sub { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.results .none { padding: 14px; color: var(--muted); font-size: 13px; }

.quick { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.quick button { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; }
.quick button:hover { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 折りたたみの絞り込み */
.filters { margin: 28px auto 8px; max-width: 1200px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; }
.fold-toggle { display: none; border: 0; background: none; font-weight: 700; padding: 10px 0; }
.fold-toggle .chev { display: inline-block; transition: transform .3s var(--ease); }
.fold-toggle[aria-expanded="false"] .chev { transform: rotate(180deg); }
.fold { perspective: 800px; }
.frow { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; transform-origin: top; transition: transform .45s var(--ease), opacity .3s, max-height .45s var(--ease); max-height: 240px; }
.frow + .frow { border-top: 1px dashed var(--line); }
.fold.closed .frow { transform: rotateX(-90deg); opacity: 0; max-height: 0; padding: 0; overflow: hidden; }
.fold .frow:nth-child(2) { transition-delay: .08s; }
.flabel { flex: none; width: 44px; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--white); border-radius: 99px; padding: 5px 14px; font-size: 13px; font-weight: 500; transition: background .2s, color .2s, border-color .2s, transform .2s var(--spring); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.94); }
.chip .n { font-size: 11px; color: var(--sub); margin-left: 4px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip[aria-pressed="true"] .n { color: var(--sub); }
.chip.soon { color: var(--sub); border-style: dashed; }

/* セクション */
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .18em; margin: 0 0 4px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.sec-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; letter-spacing: -.02em; margin: 0; line-height: 1.3; }
.sec-lead { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.count b { font-size: 28px; font-weight: 900; color: var(--ink); margin-left: 4px; letter-spacing: -.03em; }

.grid { display: grid; gap: 28px 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* カード */
.card { position: relative; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.card.in { opacity: 1; transform: none; }
.card.flash .thumb { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--cyan); }
.thumb { display: block; position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 100% 0%, rgba(217,70,239,.10), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(6,182,212,.10), transparent 60%), var(--tint); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover .thumb { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(24,24,27,.12); }
.free { white-space: nowrap; position: absolute; left: 12px; top: 12px; z-index: 3; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); }
.free::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); margin-right: 6px; vertical-align: 1px; }

/* 縮小した実物の画面 */
.frame { position: absolute; overflow: hidden; background: var(--white); }
.frame iframe { border: 0; position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.frame.pc { left: 7%; top: 13%; width: 74%; aspect-ratio: 1280 / 820; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(24,24,27,.10); }
.frame.pc .bar { position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--white); border-bottom: 1px solid var(--line); z-index: 1; display: flex; gap: 3px; align-items: center; padding-left: 6px; }
.frame.pc .bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.frame.pc iframe { top: 14px; width: 1280px; height: 1700px; transition: transform 5s var(--ease); }
.card:hover .frame.pc iframe { transform: scale(var(--s)) translateY(-760px) !important; }
.frame.sp { right: 6%; bottom: -6%; width: 25%; aspect-ratio: 390 / 800; border-radius: 16px; border: 4px solid var(--ink); box-shadow: 0 14px 34px rgba(24,24,27,.22); z-index: 2; }
.frame.sp iframe { width: 390px; height: 800px; }
.frame .shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(24,24,27,.05) 50%, transparent 70%) var(--white); background-size: 200% 100%; animation: shim 1.2s linear infinite; z-index: 0; }
.frame.loaded .shimmer { display: none; }
@keyframes shim { to { background-position: -200% 0; } }

.meta { padding: 14px 4px 0; display: grid; gap: 6px; }
.code { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.45; margin: 0; }
.ai-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; color: var(--white); background: var(--grad); width: fit-content; }
.desc { font-size: 13px; color: var(--muted); margin: 0; }
.acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.btn.sm { padding: 9px 16px; font-size: 13px; }
.demo-link { font-size: 13px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.demo-link span { transition: transform .25s var(--ease); }
.demo-link:hover span { transform: translate(2px, -2px); }

/* ⋮ が飛び出してポップオーバーの項目になる */
.kebab { position: relative; }
.kebab-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; gap: 0; padding: 0; }
.kebab-btn:hover { border-color: var(--line-2); }
.kebab-btn i { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--ink); margin: 1px 0; transition: transform .35s var(--spring), opacity .2s; }
.kebab.open .kebab-btn i:nth-child(1) { transform: translate(-14px, 30px); opacity: 0; }
.kebab.open .kebab-btn i:nth-child(2) { transform: translate(-14px, 52px); opacity: 0; }
.kebab.open .kebab-btn i:nth-child(3) { transform: translate(-14px, 74px); opacity: 0; }
.pop { position: absolute; right: 0; top: 34px; z-index: 10; min-width: 190px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(24,24,27,.16); opacity: 0; transform: scale(.9); transform-origin: top right; pointer-events: none; transition: opacity .2s, transform .3s var(--spring); }
.kebab.open .pop { opacity: 1; transform: none; pointer-events: auto; }
.pop button, .pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink); text-align: left; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .3s var(--ease), background .15s; }
.kebab.open .pop > * { opacity: 1; transform: none; }
.kebab.open .pop > *:nth-child(2) { transition-delay: .05s; } .kebab.open .pop > *:nth-child(3) { transition-delay: .1s; }
.pop > *:hover { background: var(--tint); }
.pop .d { width: 7px; height: 7px; border-radius: 50%; }
.pop .d1 { background: var(--cyan); } .pop .d2 { background: var(--ink); } .pop .d3 { background: var(--fuchsia); }

.soon-box { border: 1px dashed var(--line-2); border-radius: 16px; padding: 44px 20px; text-align: center; color: var(--muted); }
.soon-box b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* 説明 */
.explain { margin-top: 88px; }
.explain-grid { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .explain-grid { grid-template-columns: repeat(3, 1fr); } }
.ex-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; position: relative; overflow: hidden; }
.ex-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(.12); transform-origin: left; transition: transform .6s var(--ease); }
.ex-card:hover::before { transform: scaleX(1); }
.ex-card b { font-size: 16px; }
.ex-card p { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.how-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-steps li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--ink); }
.how-steps span { font-size: 30px; font-weight: 900; letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.how-steps b { font-size: 16px; }
.how-steps p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* フッター（黒） */
.foot { background: var(--ink); color: var(--white); padding: 56px 24px 96px; }
.foot-in { max-width: 1200px; margin: 0 auto; }
.foot .logo span { color: var(--sub); }
.tagline { font-size: clamp(24px, 4vw, 36px); font-weight: 900; letter-spacing: -.02em; margin: 18px 0 6px; }
.foot .small { color: var(--sub); font-size: 12px; margin: 0; }

/* ── ボタンがパネルに広がる ── */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; }
.fab-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 14px; box-shadow: 0 14px 34px rgba(24,24,27,.3); transition: opacity .2s, transform .3s var(--spring); }
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn .plus { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-size: 14px; }
.fab-panel { position: absolute; right: 0; bottom: 0; width: min(340px, calc(100vw - 40px)); padding: 16px; border-radius: 26px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(24,24,27,.25); clip-path: inset(calc(100% - 52px) 0 0 calc(100% - 190px) round 26px); opacity: 0; pointer-events: none; transition: clip-path .5s var(--ease), opacity .2s; }
.fab.open .fab-panel { clip-path: inset(0 0 0 0 round 22px); opacity: 1; pointer-events: auto; }
.fab.open .fab-btn { opacity: 0; transform: scale(.8); pointer-events: none; }
.fab-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fab-head .x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); }
.fab-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .35s var(--ease), background .15s; }
.fab.open .fab-item { opacity: 1; transform: none; }
.fab.open .fab-item:nth-of-type(1) { transition-delay: .18s; } .fab.open .fab-item:nth-of-type(2) { transition-delay: .24s; } .fab.open .fab-item:nth-of-type(3) { transition-delay: .3s; }
.fab-item:hover { background: var(--tint); }
.fab-item i { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.fab-item .c1 { background: var(--cyan); } .fab-item .c2 { background: var(--ink); } .fab-item .c3 { background: var(--fuchsia); }
.fab-item span { font-weight: 700; font-size: 14px; display: grid; }
.fab-item small { font-weight: 400; font-size: 12px; color: var(--muted); }

/* 要件定義書のシート */
dialog.sheet { border: 0; padding: 0; border-radius: 20px; width: min(780px, calc(100vw - 24px)); max-height: calc(100vh - 40px); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog.sheet[open] { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }
dialog.sheet::backdrop { background: rgba(24,24,27,.5); backdrop-filter: blur(4px); }
.sheet-body { padding: 28px; max-height: calc(100vh - 130px); overflow-y: auto; }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.spec h1 { font-size: 22px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.4; }
.spec h1::after { content: ""; display: block; width: 48px; height: 3px; background: var(--grad); margin-top: 12px; border-radius: 2px; }
.spec h2 { font-size: 16px; font-weight: 800; margin: 26px 0 8px; }
.spec p, .spec li { font-size: 14px; }
.spec ul, .spec ol { padding-left: 1.3em; }
.spec table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; display: block; overflow-x: auto; }
.spec th, .spec td { border: 1px solid var(--line-2); padding: 7px 9px; text-align: left; vertical-align: top; }
.spec th { background: var(--tint); white-space: nowrap; }
.spec blockquote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid; border-image: var(--grad) 1; background: var(--tint); color: var(--muted); font-size: 13.5px; }
.spec code { background: var(--tint); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 600; transition: opacity .2s, transform .3s var(--ease); pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── スマホ ── */
@media (max-width: 760px) {
  .topbar { padding: 12px 16px; }
  .top-links { display: none; }
  .burger { display: grid; }
  .hero { padding: 36px 16px 24px; gap: 28px; }
  main { padding: 0 16px 64px; }
  .fold-toggle { display: inline-block; }
  .flabel { width: 100%; padding: 0; }
  .frow { flex-wrap: wrap; gap: 6px; }
  .fab-label { display: none; }
  .fab-btn { padding: 0 14px; }
  .sheet-body { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .card, .hv { opacity: 1 !important; transform: none !important; }
}

/* ヒーローの画面（.hv）の中身 */
.hv { aspect-ratio: 1280 / 800; }
.hv.phone { aspect-ratio: 390 / 800; }
.hv iframe { border: 0; position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }

.nw { white-space: nowrap; }
.hv .shimmer, .frame .shimmer { position: absolute; inset: 0; }
.hv.loaded .shimmer { display: none; }
body.menu-open .fab { opacity: 0; pointer-events: none; }
.fab { transition: opacity .3s; }

/* 遊べるアプリは画面いっぱいの絵なので、流さずに1画面ぶんだけ見せる */
.frame.pc.short iframe { height: 806px; }
.card:hover .frame.pc.short iframe { transform: scale(var(--s)) !important; }

/* ── REN：右下に常駐する AI社員 ── */
.fab.ren { right: 20px; bottom: 20px; }
.ren-btn { height: 62px; padding: 0 20px 0 7px; gap: 10px; background: linear-gradient(135deg, #0b1424, #18181b); box-shadow: 0 0 0 1px rgba(6,182,212,.35), 0 0 24px rgba(6,182,212,.35), 0 18px 40px rgba(24,24,27,.35); position: relative; }
.ren-btn::before { content: ""; position: absolute; inset: -3px; border-radius: 99px; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; animation: renGlow 3s ease-in-out infinite; }
@keyframes renGlow { 50% { opacity: .35; } }
.ren-face { width: 48px; height: 48px; border-radius: 50%; display: block; flex: none; filter: drop-shadow(0 0 8px rgba(34,211,238,.45)); }
.ren-face svg { width: 100%; height: 100%; display: block; }
.ren-btn .ren-face { animation: renBob 2.6s ease-in-out infinite; }
@keyframes renBob { 50% { transform: translateY(-2px) rotate(-3deg); } }
.ren-say { display: grid; text-align: left; line-height: 1.25; }
.ren-say b { font-size: 14px; }
.ren-say small { font-size: 10.5px; font-weight: 500; color: #67e8f9; }
.ren-on { position: absolute; left: 44px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2px #0b1424; animation: renPulse 1.8s infinite; }
@keyframes renPulse { 70% { box-shadow: 0 0 0 2px #0b1424, 0 0 0 8px rgba(52,211,153,0); } }
.ren-bubble { position: absolute; right: 8px; bottom: 76px; width: 230px; margin: 0; padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(24,24,27,.18); font-size: 13px; font-weight: 700; animation: renPop .5s var(--spring); }
.ren-bubble[hidden] { display: none; }
@keyframes renPop { from { opacity: 0; transform: translateY(8px) scale(.94); } }

.fab.ren .fab-panel { width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); padding: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; clip-path: inset(calc(100% - 62px) 0 0 calc(100% - 210px) round 30px); }
.fab.ren.open .fab-panel { clip-path: inset(0 0 0 0 round 26px); }
.ren-head { display: flex; gap: 12px; align-items: center; padding: 16px 16px 14px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #12385a 0%, #0b1424 55%, #18181b 100%); position: relative; }
.ren-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); }
.ren-face.lg { width: 64px; height: 64px; filter: drop-shadow(0 0 14px rgba(34,211,238,.6)); }
.ren-id { display: grid; gap: 2px; flex: 1; }
.ren-id > b { font-size: 22px; font-weight: 900; letter-spacing: .06em; line-height: 1; }
.ren-id small { font-size: 11.5px; color: #a5f3fc; }
.ren-stats { display: flex; gap: 6px; margin-top: 4px; }
.ren-stats span { font-size: 11px; padding: 2px 10px; border-radius: 99px; border: 1px solid rgba(103,232,249,.5); color: #e0f7fb; background: rgba(6,182,212,.12); }
.ren-stats b { font-size: 12px; }
.ren-head .x { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.ren-msgs { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; background: linear-gradient(180deg, #f7fbfc, #fff); }
.ren-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 94%; animation: renPop .4s var(--ease); }
.ren-msg .ren-face.sm { width: 30px; height: 30px; filter: none; }
.ren-col { display: grid; gap: 6px; min-width: 0; }
.ren-msg p { margin: 0; padding: 10px 13px; border-radius: 4px 16px 16px 16px; background: var(--white); border: 1px solid var(--line); font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.ren-msg.me { margin-left: auto; }
.ren-msg.me p { background: var(--ink); color: var(--white); border-color: var(--ink); border-radius: 16px 4px 16px 16px; }
.ren-card { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(24,24,27,.35); }
.ren-card b { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.ren-card span { font-size: 13px; font-weight: 700; }
.ren-card div { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; font-weight: 700; }
.ren-card a, .ren-card button { color: var(--cyan); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.ren-card button { color: #a21caf; }
.ren-go { justify-self: start; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--white); }
.ren-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ren-typing b { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: renDot 1s infinite; }
.ren-typing b:nth-child(2) { animation-delay: .15s; background: #7c8cf0; } .ren-typing b:nth-child(3) { animation-delay: .3s; background: var(--fuchsia); }
@keyframes renDot { 50% { transform: translateY(-4px); opacity: .4; } }
.ren-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 4px; scrollbar-width: none; }
.ren-quick .chip { white-space: nowrap; font-size: 12px; }
.ren-ask { display: flex; gap: 8px; padding: 8px 14px 14px; }
.ren-ask input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); font: inherit; font-size: 13.5px; outline: none; }
.ren-ask input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.ren-ask button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 18px; font-weight: 900; cursor: pointer; }
@media (max-width: 760px) {
  .ren-say { display: none; }
  .ren-btn { padding: 0 7px; width: 62px; }
  .fab.ren .fab-panel { clip-path: inset(calc(100% - 62px) 0 0 calc(100% - 62px) round 30px); }
  .ren-bubble { width: 200px; }
}

/* REN の画像（キャラクター画像から切り出し） */
.ren-face { overflow: hidden; background: #0a1220; box-shadow: 0 0 0 2px #22d3ee, 0 0 0 3.5px #0b1424, 0 0 14px rgba(34,211,238,.55); }
.ren-face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ren-face.lg { width: 92px; height: 104px; border-radius: 18px; box-shadow: 0 0 0 2px rgba(103,232,249,.8), 0 0 22px rgba(34,211,238,.6); }
.ren-face.lg img { object-position: 50% 8%; }
.ren-msg .ren-face.sm { box-shadow: 0 0 0 1.5px #22d3ee; }

/* 窓の見出し：絵を背景に溶けこませ、グラデーションがゆっくり動く */
.ren-head { overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #0a1426, #0e3a5c, #1b2a6b, #3a1b5c, #0a1426); background-size: 320% 320%; animation: renSky 14s ease-in-out infinite; }
@keyframes renSky { 0%, 100% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } }
.ren-head::before { content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(30% 35% at 25% 40%, rgba(34,211,238,.45), transparent 70%), radial-gradient(28% 32% at 75% 60%, rgba(217,70,239,.35), transparent 70%), radial-gradient(18% 20% at 55% 20%, rgba(125,211,252,.3), transparent 70%);
  animation: renGlowMove 9s ease-in-out infinite alternate; }
@keyframes renGlowMove { to { transform: translate(8%, -6%) rotate(12deg); } }
.ren-head > * { position: relative; }
.ren-face.lg { width: 108px; height: 122px; margin: -10px -4px -12px -8px; border-radius: 0; background: transparent; box-shadow: none; filter: drop-shadow(0 0 12px rgba(34,211,238,.35));
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 44%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 66% at 50% 44%, #000 52%, transparent 100%); }
.ren-face.lg img { object-position: 50% 12%; mix-blend-mode: lighten; }
@media (prefers-reduced-motion: reduce) { .ren-head, .ren-head::before { animation: none; } }

/* 見出しの REN は背景を抜いた絵（青い背景・盾のマークは消してある）。四角い枠もぼかしも使わない */
.ren-face.lg { width: 104px; height: 118px; margin: -10px -2px -16px -10px; overflow: visible; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 0 10px rgba(34,211,238,.45)) drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.ren-face.lg img { object-fit: contain; object-position: 50% 100%; mix-blend-mode: normal; }

/* 新しい REN（グレーの髪・背景を抜いた絵）。小さい丸は見出しと同じ紺〜紫のグラデーションの上に置く */
.ren-face { background: linear-gradient(135deg, #0e3a5c, #1b2a6b 55%, #3a1b5c); }
.ren-face img { object-position: 50% 30%; }
.ren-face.lg { background: none; width: 104px; height: 124px; margin: -10px -2px -16px -10px; }
.ren-face.lg img { object-fit: contain; object-position: 50% 100%; }
