/* Roa のサイト（紹介ページ・規約）。見た目は拡張機能のはじめの案内（welcome）とメンバーカードに揃える：
   アイコンの色のメッシュグラデーションの中をラバランプのように色が上下し、文字は白、面はすりガラス、文書はカードと同じ紙。
   外のフォントや部品は読み込まず、この CSS・card.css・site.js だけで描く */

/* グラデーションの色を、ふつうの色と同じようになめらかに移せるようにする（窓の色をスペースごとに変えるとき） */
@property --w1 { syntax: '<color>'; inherits: true; initial-value: #6d5df5; }
@property --w2 { syntax: '<color>'; inherits: true; initial-value: #c44fd8; }
@property --w3 { syntax: '<color>'; inherits: true; initial-value: #f08bb0; }

:root {
  color-scheme: dark;
  /* はじめの案内と同じ色（ROA_MIX） */
  --c1: #5aa0f7; --c2: #a970f0; --c3: #f1709a; --c4: #f6ad6f; --bg: #8f88e8;
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, 0.86);
  --fg-3: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.26);
  --shade: rgba(30, 10, 70, 0.25);
  --paper: #fdfbee; --ink: #1f3a52; --ink-2: rgba(31, 58, 82, 0.74); --ink-accent: #4152d8;
  --brand: linear-gradient(110deg, #4cb1fa, #8358fa 36%, #f94df7 68%, #fbb95e);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 22px;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); transition: background-color 1.6s var(--ease); overflow-x: clip; }
body {
  /* 背景の色は html に塗る（body に塗ると、後ろに置いたラバランプが隠れる） */
  margin: 0; color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Segoe UI", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p { word-break: auto-phrase; }
a { color: inherit; }
img { display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { text-shadow: 0 2px 24px var(--shade); }
p { text-shadow: 0 1px 14px var(--shade); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- 背景（はじめの案内と同じ） ---------- */
/* 周りにふわふわ漂う、大きくぼかした色 */
.mesh { position: fixed; inset: -25%; z-index: -3; filter: blur(90px); pointer-events: none; translate: calc(var(--px, 0) * -40px) calc(var(--py, 0) * -30px); transition: translate 1.2s var(--ease), opacity 2.2s var(--ease); }
.mesh i { position: absolute; width: 60%; height: 60%; border-radius: 50%; opacity: 0.75; transition: background-color 1.6s var(--ease); }
.mesh i:nth-child(1) { background-color: var(--c1); left: 0; top: 0; animation: float1 26s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { background-color: var(--c2); right: 0; top: 10%; animation: float2 31s ease-in-out infinite alternate; }
.mesh i:nth-child(3) { background-color: var(--c3); left: 20%; bottom: 0; animation: float1 35s ease-in-out infinite alternate-reverse; }
.mesh i:nth-child(4) { background-color: var(--c4); right: 5%; bottom: 5%; width: 45%; height: 45%; animation: float2 29s ease-in-out infinite alternate-reverse; }
@keyframes float1 { to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes float2 { to { transform: translate(-16%, 18%) scale(0.9); } }
/* ラバランプ：かたまりが下から浮かんで上へ、また沈む。近づくと溶け合う（goo のフィルター） */
.goo-defs { position: absolute; width: 0; height: 0; }
.lava { position: fixed; inset: -4%; z-index: -2; filter: blur(22px) saturate(1.15); opacity: 0.85; pointer-events: none; translate: calc(var(--px, 0) * 24px) calc(var(--py, 0) * 18px); transition: translate 1.4s var(--ease), opacity 2.2s var(--ease); }
.blobs { position: absolute; inset: 0; filter: url(#goo); }
.blobs i { position: absolute; bottom: -18vh; border-radius: 50%; animation: lava ease-in-out infinite alternate; transition: background-color 1.6s var(--ease); }
.blobs i:nth-child(1) { left: 6%; width: 22vh; height: 22vh; background-color: var(--c1); animation-duration: 17s; }
.blobs i:nth-child(2) { left: 24%; width: 30vh; height: 30vh; background-color: var(--c2); animation-duration: 23s; animation-delay: -6s; }
.blobs i:nth-child(3) { left: 46%; width: 18vh; height: 18vh; background-color: var(--c3); animation-duration: 19s; animation-delay: -12s; }
.blobs i:nth-child(4) { left: 62%; width: 26vh; height: 26vh; background-color: var(--c1); animation-duration: 25s; animation-delay: -3s; }
.blobs i:nth-child(5) { left: 80%; width: 20vh; height: 20vh; background-color: var(--c2); animation-duration: 21s; animation-delay: -15s; }
.blobs i:nth-child(6) { left: 36%; width: 14vh; height: 14vh; background-color: var(--c4); animation-duration: 15s; animation-delay: -9s; }
.blobs i:nth-child(7) { left: 70%; width: 12vh; height: 12vh; background-color: var(--c4); animation-duration: 13s; animation-delay: -4s; }
.blobs::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -14vh; height: 22vh; border-radius: 50%; background: linear-gradient(90deg, var(--c4), var(--c3) 40%, var(--c2) 70%, var(--c1)); }
@keyframes lava {
  0% { transform: translate(0, 0) scale(1, 1); }
  45% { transform: translate(3vw, -62vh) scale(0.92, 1.08); }
  100% { transform: translate(-2vw, -108vh) scale(1.05, 0.95); }
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.12; mix-blend-mode: overlay; background: var(--noise); background-size: 180px; }
/* 文字が読めるよう、真ん中を少しだけ暗くする */
.vignette { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(20, 10, 50, 0.18), transparent 75%); }
/* 幕開け：背景がにじみ出てから、言葉が現れる */
.mesh, .lava { opacity: 0; }
body.opened .mesh { opacity: 1; }
body.opened .lava { opacity: 0.85; }

/* ---------- すりガラス（はじめの案内と同じ） ---------- */
.glass {
  position: relative; isolation: isolate; color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 16px rgba(20, 10, 50, 0.08);
}
/* 曇りガラスの粒子 */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background: var(--noise);
}

/* ---------- 上のバー ---------- */
.nav { position: sticky; top: 12px; z-index: 50; margin-top: 12px; }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 54px; padding: 0 10px 0 16px; border-radius: 27px; transition: background-color 0.3s; }
.nav.scrolled .wrap {
  /* 下に白いものが来ても白い文字が読めるよう、少しだけ紫がかった暗さを足したガラス */
  background: rgba(52, 38, 110, 0.34);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 8px 24px rgba(20, 10, 50, 0.1);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; text-shadow: 0 1px 10px var(--shade); }
.brand img { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px rgba(30, 10, 70, 0.25)); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--fg-2); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
/* 上のバーの右端が白いボタンでなく文字のとき（文書のページ）は、バーの縁から少し離す */
.nav-links > a:last-child:not(.go) { margin-right: 10px; }
.nav-links .go { color: #17131f; }
.nav-links .go:hover { color: #17131f; }
.nav .go { height: 36px; padding: 0 16px; font-size: 13.5px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14); }

/* ---------- ボタン（はじめの案内の「はじめる」「次へ」と同じ） ---------- */
.go, .ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 28px; border: 0; border-radius: 24px;
  font: 600 15px/1 inherit; text-decoration: none; cursor: pointer; transition: transform 0.25s var(--spring), box-shadow 0.25s, background-color 0.25s;
}
.go { background: #fff; color: #17131f; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); text-shadow: none; }
.go:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24); }
.go:active { transform: scale(0.97); }
.go svg { width: 19px; height: 19px; }
.ghost { color: #fff; font-weight: 500; }
.ghost:hover { background: rgba(255, 255, 255, 0.2); }
.ghost:active { transform: scale(0.97); }
.go[aria-disabled="true"] { cursor: default; }

/* ---------- 冒頭 ---------- */
.hero { position: relative; padding: clamp(80px, 13vh, 140px) 0 40px; text-align: center; }
.hero h1 { font-size: clamp(48px, 8.4vw, 112px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 auto; font-weight: 600; text-wrap: balance; }
:lang(ja) .hero h1 { font-size: clamp(40px, 6.8vw, 92px); letter-spacing: -0.02em; line-height: 1.15; }
.hero .lead { font-size: clamp(16px, 1.7vw, 20px); color: rgba(255, 255, 255, 0.74); max-width: 31em; margin: 24px auto 0; text-wrap: balance; }
:lang(ja) .hero .lead { max-width: 30em; }
/* 強調したまとまり（「あなたの暮らしと仕事に合わせた場所」など）は途中で折り返さない */
:lang(ja) .hero .lead b { white-space: nowrap; }
.lead b, .sub b { color: #fff; font-weight: 500; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
/* 背景がにじみ出てから、言葉が順に現れる（はじめの案内の幕開けと同じ） */
.appear { opacity: 0; }
body.opened .appear { animation: appear 1.1s var(--ease) forwards; }
body.opened .appear.d1 { animation-delay: 0.35s; } body.opened .appear.d2 { animation-delay: 0.7s; }
body.opened .appear.d3 { animation-delay: 1s; } body.opened .appear.d4 { animation-delay: 1.2s; } body.opened .appear.d5 { animation-delay: 1.35s; }
@keyframes appear { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Roa の窓の再現 ---------- */
.stage { position: relative; margin: 60px auto 0; width: min(1080px, 100%); perspective: 2000px; }
.mock {
  /* 色はプロファイルの絵と同じ：スペースの色を半分ほど透かして、後ろの色になじませる */
  --w1: #8a5cf6; --w2: #c44fd8; --w3: #f08bb0;
  position: relative; display: grid; grid-template-columns: 232px 1fr; gap: 8px; padding: 8px; height: 560px;
  border-radius: 20px; text-align: left; font-size: 13px; color: #fff;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--w1) 55%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--w3) 50%, transparent), transparent 60%),
    color-mix(in srgb, var(--w2) 42%, rgba(255, 255, 255, 0.18));
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 50px 120px -30px rgba(30, 10, 70, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: --w1 0.9s var(--ease), --w2 0.9s var(--ease), --w3 0.9s var(--ease);
  /* 傾きはスクロールに合わせて site.js が決める（画面の下では奥へ傾き、上へ来るほど起き上がって正面を向く） */
  transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); transform-origin: 50% 0; overflow: hidden; opacity: 0; will-change: transform;
}
/* 奥へ倒れた状態から起き上がって現れ、サイドバーが左から滑り込む（その後の傾きはスクロールで決める） */
body.opened .mock { animation: mock-open 1.8s 0.75s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes mock-open { from { opacity: 0; translate: 0 120px; rotate: x 38deg; } 40% { opacity: 1; } to { opacity: 1; translate: 0 0; rotate: x 0deg; } }
body.opened .mock .side { animation: side-in 1s 1.9s var(--ease) both; }
@keyframes side-in { from { opacity: 0; translate: -36px 0; } }
/* 窓の下に、スペースの色の光を落とす */
.stage::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -40px; height: 70%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow, #c44fd8) 55%, transparent), transparent);
  filter: blur(40px); opacity: 0.75;
}
/* 粒子（Arc の Grain） */
.mock::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay; background: var(--noise); }
.mock[data-space="1"] { --w1: #2f7bff; --w2: #3aa0ff; --w3: #5ee0d0; }
.mock[data-space="2"] { --w1: #ff7a3d; --w2: #ff5c8a; --w3: #ffc35a; }

/* サイドバー：上に開閉とメニュー、お気に入り、スペースの名前、ピン留め、区切り、新しいタブ、今日のタブ。下にライブラリ・スペース・追加 */
.side { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0 2px; }
.side * { text-shadow: none; }
.side svg { display: block; }
.sb-tools { display: flex; align-items: center; height: 32px; padding: 0 4px; color: rgba(255, 255, 255, 0.72); }
.sb-tools span { flex: 1; }
.sb-tools i { width: 28px; height: 28px; display: grid; place-items: center; }
/* お気に入りはスペースごと（パネルの一番上。スペースを切り替えると一緒に横へすべる） */
.favs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.favs i { position: relative; height: 46px; border-radius: 10px; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; transition: background 0.3s; }
.favs i:hover { background: rgba(255, 255, 255, 0.3); }
/* サイトのアイコン（favicon）は、サイトごとの形と色で描く */
.favs svg, .row b svg { filter: drop-shadow(0 0.5px 0.5px rgba(20, 10, 50, 0.12)); }
.track-view { position: relative; overflow: hidden; flex: 1; margin: 0 -2px; }
.track { display: flex; height: 100%; transition: transform 0.75s var(--ease); }
.panel { flex: 0 0 100%; padding: 0 2px; display: flex; flex-direction: column; gap: 2px; }
.space-name { display: flex; align-items: center; gap: 9px; height: 32px; margin: 12px 0 6px; padding: 0 10px; font-weight: 600; font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
.row { flex: none; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 9px; border-radius: 9px; font-weight: 600; color: rgba(255, 255, 255, 0.94); white-space: nowrap; overflow: hidden; transition: background 0.3s; }
.row b { flex: none; width: 16px; height: 16px; display: grid; place-items: center; }
.row[data-screen] { cursor: pointer; }
.row[data-screen]:hover { background: rgba(255, 255, 255, 0.14); }
.row.on { background: rgba(255, 255, 255, 0.9); color: #1c1b1a; box-shadow: 0 1px 3px rgba(20, 10, 50, 0.1); }
.row.on:hover { background: rgba(255, 255, 255, 0.9); }
.sep { flex: none; height: 1px; margin: 6px 6px 8px 10px; background: rgba(255, 255, 255, 0.24); }
.newtab { font-weight: 500; color: rgba(255, 255, 255, 0.62); }
.newtab b svg { filter: none; }
.sb-bottom { display: flex; align-items: center; height: 46px; padding: 0 2px 4px; }
.sb-bottom > i { width: 32px; height: 32px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.62); }
.spaces { flex: 1; display: flex; justify-content: center; gap: 4px; }
.spaces button { all: unset; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: #fff; opacity: 0.32; transition: opacity 0.3s, background 0.3s; }
.spaces button:hover { opacity: 0.6; }
.spaces button.on { opacity: 0.95; }

/* ページ：文字は出さず、線と面で「それらしい」サイトを描く。タブごとに別のサイト */
.page { --t: rgba(32, 30, 44, 0.09); --t2: rgba(32, 30, 44, 0.17); --line: rgba(32, 30, 44, 0.07); position: relative; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px rgba(20, 10, 50, 0.04), 0 1px 3px rgba(20, 10, 50, 0.1), 0 10px 30px -10px rgba(20, 10, 50, 0.2); }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: scale(0.985); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); overflow: hidden; }
.screen.on { opacity: 1; transform: none; }
.screen i, .screen b, .screen em { display: block; font-style: normal; flex: none; }
.screen svg { display: block; }
.screen .sp { flex: 1; }
.rd > *, .dc-body > *, .fd-body > *, .ph-main > * { flex: none; }
.screen .ln { height: 7px; border-radius: 4px; background: var(--t); }
.screen .ln.d { background: var(--t2); }
.screen .ln.h { height: 14px; border-radius: 5px; background: rgba(32, 30, 44, 0.2); }
.screen .ln.wm { height: 9px; }
.screen .ln.lt { background: rgba(255, 255, 255, 0.28); }
.screen .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(140deg, var(--a), var(--b)); }
.screen .av.sm { width: 26px; height: 26px; }
.screen .av.xs { width: 20px; height: 20px; }
.screen .stack { display: flex; }
.screen .stack .av { box-shadow: 0 0 0 2px #fff; }
.screen .stack .av + .av { margin-left: -6px; }
.screen .search { width: 240px; height: 30px; border-radius: 15px; background: #f2f2f6; position: relative; }
.screen .search.sm { width: 150px; }
.screen .search::before { content: ""; position: absolute; left: 12px; top: 9px; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px #a9a6b5; }
.screen .pbtn { width: 76px; height: 28px; border-radius: 14px; background: var(--c); }
.screen .pbtn.line { background: none; box-shadow: inset 0 0 0 1.5px var(--c); }
.screen .ic-c { width: 28px; height: 28px; border-radius: 50%; background: #f2f2f6; }
.pn { flex: none; display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.pn .fv { margin-right: -4px; }
/* 入力欄と送るボタン（チャットの下） */
.screen .comp { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; }
.screen .comp i { flex: 1; height: 36px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(32, 30, 44, 0.12); background: #fff; }
.screen .comp b { width: 32px; height: 32px; border-radius: 50%; background: var(--send, #4a8cf0); }
.screen .comp.box i { height: 54px; border-radius: 10px; }

/* 読みもの：雑誌の記事 */
.rd { width: min(560px, 84%); margin: 0 auto; padding-top: 30px; display: flex; flex-direction: column; }
.rd .kick { width: 58px; height: 18px; border-radius: 9px; background: #fde2da; margin-bottom: 14px; }
.rd .ln.h { height: 17px; margin-bottom: 9px; }
.rd .by { display: flex; align-items: center; gap: 10px; margin: 10px 0 20px; }
.rd .by > div { display: grid; gap: 6px; }
.rd .rd-img { height: 176px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.rd .rd-img svg { width: 100%; height: 100%; }
.rd > .ln:not(.h) { margin-bottom: 10px; }

/* 写真 */
.ph-body { flex: 1; display: flex; min-height: 0; }
.s-photo .rail { width: 168px; padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.s-photo .ri { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 16px; }
.s-photo .ri.on { background: #eef3fd; }
.s-photo .ri .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); opacity: 0.85; }
.ph-main { flex: 1; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ph-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ph-grid i { aspect-ratio: 1.15; border-radius: 6px; }

/* メッセージ：左に会話の一覧、右に会話 */
.ch-wrap { flex: 1; display: flex; min-height: 0; }
.ch-list { width: 250px; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: #fbfbfc; }
.ch-top { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 6px; margin-bottom: 6px; }
.ch-list .search { width: auto; margin-bottom: 8px; }
.cr { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; }
.cr.on { background: #e9f7ee; }
.cr > div { flex: 1; display: grid; gap: 7px; }
.cr .ln.t { align-self: flex-start; margin-top: 4px; width: 16px; height: 5px; }
.ch-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ch-head { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.ch-head > div { display: grid; gap: 6px; }
.ch-head .online { background: #9fdcb4; }
.screen .msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px 20px 4px; }
.screen .b { display: flex; }
.screen .b > div { display: grid; gap: 6px; padding: 12px 15px; border-radius: 18px; background: #f1f1f5; }
.screen .b.out { justify-content: flex-end; }
.screen .b.out > div { background: #38c172; }
.screen .b.out .ln { background: rgba(255, 255, 255, 0.55); }
.s-chat { --send: #38c172; }

/* コードの変更の確認 */
.gh-top { flex: none; display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px; background: #2b3138; }
.gh-top .slash { width: 1.5px; height: 12px; background: rgba(255, 255, 255, 0.3); transform: rotate(18deg); }
.gh-top .fv svg circle:first-child { fill: #fff; }
.gh-top .fv svg g { stroke: #2b3138; }
.gh-search { width: 180px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.gh-tabs, .gh-sub { flex: none; display: flex; gap: 22px; height: 40px; align-items: stretch; padding: 0 22px; border-bottom: 1px solid var(--line); }
.gh-tabs i, .gh-sub i { width: 56px; position: relative; }
.gh-tabs i::before, .gh-sub i::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 7px; margin-top: -3.5px; border-radius: 4px; background: var(--t); }
.gh-tabs i.on::after, .gh-sub i.on::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -1px; height: 2px; border-radius: 1px; background: #f08a5d; }
.gh-tabs i.on::before, .gh-sub i.on::before { background: var(--t2); }
.gh-body { flex: 1; padding: 18px 22px 0; display: flex; flex-direction: column; min-height: 0; }
.gh-title { display: flex; align-items: center; gap: 10px; }
.gh-title .ln.h { height: 18px; }
.gh-meta { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; }
.gh-meta .state { width: 70px; height: 26px; border-radius: 13px; background: #3fae6a; }
.gh-sub { padding: 0; margin-bottom: 14px; }
.gh-cols { flex: 1; display: flex; gap: 20px; min-height: 0; }
.diff { flex: 1; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(32, 30, 44, 0.1); overflow: hidden; min-width: 0; align-self: flex-start; }
.diff .dh { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; background: #f7f7f9; border-bottom: 1px solid var(--line); }
.diff .dcaret { width: 0; height: 0; border: 4px solid transparent; border-top: 5px solid #a9a6b5; margin-top: 5px; }
.diff .cnt { width: 18px; height: 7px; border-radius: 2px; }
.diff .cnt.add { background: #7ccf98; }
.diff .cnt.del { background: #ef9a9a; }
.dl { display: flex; align-items: center; height: 21px; }
.dl .n { width: 34px; height: 21px; position: relative; background: #fafafb; }
.dl .n::before { content: ""; position: absolute; right: 8px; top: 7px; width: 12px; height: 6px; border-radius: 3px; background: rgba(32, 30, 44, 0.08); }
.dl .mk { width: 18px; }
.dl .code { display: flex; gap: 6px; }
.dl .code i { height: 6px; border-radius: 3px; background: var(--c); opacity: 0.55; }
.dl.add { background: #edf9f0; }
.dl.add .n { background: #dcf3e3; }
.dl.del { background: #fdf0f0; }
.dl.del .n { background: #f9dede; }
.dl.hunk { background: #f2f4fd; }
.dl.hunk .n { background: #e7ebfb; }
.gh-side { width: 150px; display: flex; flex-direction: column; gap: 10px; }
.gh-side .ln.d { margin-top: 6px; }
.gh-side .avs, .gh-side .tags { display: flex; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.gh-side .tags em { width: 50px; height: 20px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d) 25%, transparent); }

/* 計画の文書：表紙・アイコン・項目・日程の線・やること */
.dc-cover { flex: none; height: 92px; background: radial-gradient(60% 120% at 20% 0%, #c9d9fb, transparent 70%), radial-gradient(60% 120% at 90% 100%, #f7cfe0, transparent 70%), linear-gradient(120deg, #d9e4fb, #e8dcf8); }
.dc-body { width: min(600px, 86%); margin: 0 auto; display: flex; flex-direction: column; }
.dc-icon { width: 60px; height: 60px; margin-top: -30px; border-radius: 16px; background: #fff; display: grid !important; place-items: center; box-shadow: 0 4px 14px rgba(20, 10, 50, 0.12); }
.dc-body .ln.big { height: 20px; margin: 18px 0 14px; }
.dc-body .props { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dc-body .pr { display: flex; align-items: center; gap: 10px; height: 22px; }
.dc-body .pi { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9b5c6; }
.dc-body .pr > .ln:first-of-type { width: 56px; margin-right: 20px; }
.dc-body .tag { width: 64px; height: 20px; border-radius: 10px; background: var(--c); }
.gantt { margin: 16px 0 14px; display: grid; gap: 7px; }
.gt-h { display: grid; grid-template-columns: 90px repeat(6, 1fr); height: 10px; }
.gt-h::before { content: ""; }
.gt-h i { border-left: 1px solid var(--line); }
.gt-r { display: grid; grid-template-columns: 90px 1fr; align-items: center; height: 20px; }
.gt-r .gbar { position: relative; height: 100%; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16.66%); }
.gt-r .gbar i { position: absolute; top: 3px; bottom: 3px; border-radius: 7px; background: var(--c); }
.dc-body .ln.lsub { margin: 4px 0 10px; height: 10px; }
.ck { display: flex; align-items: center; gap: 10px; height: 24px; }
.ck .box { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #c3bfd0; }
.ck.done .box { position: relative; background: #4a8cf0; box-shadow: none; }
.ck.done .box::after { content: ""; position: absolute; inset: 2px; background: #fff; -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.ck.done .ln { background: rgba(32, 30, 44, 0.06); }

/* チームの会話：左にチャンネル、右に会話 */
.s-team { flex-direction: row; }
.tm-side { width: 200px; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(180deg, #4a3866, #3c2e55); }
.tm-ws { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; margin-bottom: 8px; }
.tm-ws .fv svg circle { fill: #fff; }
.tm-ws .fv svg path { stroke: #4a3866; }
.tm-side .ln.sec { margin: 12px 8px 6px; height: 6px; background: rgba(255, 255, 255, 0.18); }
.tc { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 10px; border-radius: 7px; }
.tc .ln { background: rgba(255, 255, 255, 0.24); }
.tc.on { background: rgba(255, 255, 255, 0.16); }
.tc.on .ln { background: rgba(255, 255, 255, 0.6); }
.screen .hash { width: 10px; height: 10px; background: linear-gradient(90deg, transparent 2.5px, currentColor 2.5px 4px, transparent 4px 6px, currentColor 6px 7.5px, transparent 7.5px), linear-gradient(transparent 2.5px, currentColor 2.5px 4px, transparent 4px 6px, currentColor 6px 7.5px, transparent 7.5px); }
.tc .hash { color: rgba(255, 255, 255, 0.4); }
.tc .av.dm { width: 12px; height: 12px; }
.tm-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tm-head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.tm-head .hash { color: #8b86a0; width: 12px; height: 12px; }
.tm-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 18px 20px 0; min-height: 0; }
.msg { display: flex; gap: 12px; }
.msg .av { border-radius: 9px; }
.msg .mb { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.msg .mh { display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.msg .mh .ln:last-child { height: 5px; }
.att { width: 300px; height: 120px; margin-top: 4px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(32, 30, 44, 0.1); display: flex !important; gap: 8px; padding: 10px; background: #faf9fd; }
.att .a1 { width: 60px; border-radius: 6px; background: linear-gradient(180deg, #c9b8f0, #f2c4d4); }
.att > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.att .a2 { height: 14px; width: 60%; border-radius: 4px; background: rgba(32, 30, 44, 0.12); }
.att .a3 { flex: 1; border-radius: 6px; background: #ece7fb; }
.att .a4 { height: 20px; width: 40%; border-radius: 10px; background: #8b74e0; }
.rx { display: flex; gap: 6px; margin-top: 2px; }
.rx em { width: 40px; height: 22px; border-radius: 11px; background: #f0eefa; box-shadow: inset 0 0 0 1px #ddd7f5; display: flex !important; align-items: center; padding-left: 6px; }
.rx em i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }

/* 旅行の予約：大きな写真に検索、下にカード */
.tr-hero { flex: none; position: relative; height: 200px; margin: 14px 20px 0; border-radius: 14px; overflow: hidden; }
.tr-hero svg { width: 100%; height: 100%; }
.tr-search { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex !important; align-items: center; gap: 0; width: 64%; height: 46px; padding: 0 6px 0 18px; border-radius: 23px; background: #fff; box-shadow: 0 6px 20px rgba(40, 20, 60, 0.18); }
.tr-search i { flex: 1; height: 7px; margin-right: 18px; border-radius: 4px; background: var(--t); }
.tr-search i + i { box-shadow: -10px 0 0 -9px rgba(32, 30, 44, 0.12); }
.tr-search b { width: 34px; height: 34px; border-radius: 50%; background: #22a99a; }
.tr-sec { padding: 18px 22px 10px; }
.tr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 20px; }
.tcard { display: flex; flex-direction: column; gap: 8px; }
.tcard .img { height: 96px; border-radius: 10px; }
.tcard .tf { display: flex; align-items: center; justify-content: space-between; }
.tcard .stars { width: 56px; height: 8px; background: radial-gradient(circle, #f5b72f 3.5px, transparent 4px) 0 0 / 11.2px 8px; }
.tcard em { width: 44px; height: 18px; border-radius: 9px; background: #dff4f1; }

/* レシピ */
.fd-body { padding: 22px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.fd-body .ln.h { height: 18px; }
.s-food .fchips { display: flex; gap: 8px; margin: 10px 0 8px; }
.s-food .fchips em { width: 66px; height: 28px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(32, 30, 44, 0.12); }
.s-food .fchips em.on { background: #f59a3a; box-shadow: none; }
.fd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fc { display: flex; flex-direction: column; gap: 9px; }
.fc .dish { position: relative; height: 210px; border-radius: 12px; overflow: hidden; }
.fc .dish svg { width: 100%; height: 100%; }
.fc .heart { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); }
.fc .heart::before { content: ""; position: absolute; inset: 8px; background: #f06d8c; clip-path: path("M6 11S0 7.4 0 3.4A3.3 3.3 0 0 1 6 1.7a3.3 3.3 0 0 1 6 1.7C12 7.4 6 11 6 11z"); }
.fc .meta { display: flex; align-items: center; gap: 6px; }
.fc .clock { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9b5c6; }
.fc .dt { width: 4px; height: 4px; border-radius: 50%; background: #c9c5d4; margin: 0 4px; }

/* 家族のグループ */
.s-fam { background: #edf2f7; --send: #4fbf6a; }
.fm-head { flex: none; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.fm-head > div:not(.stack) { display: grid; gap: 6px; }
.fm-head .stack .av { width: 26px; height: 26px; }
.fm-msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 20px 4px; }
.fm-msgs .date { align-self: center; width: 70px; height: 18px; border-radius: 9px; background: rgba(32, 30, 44, 0.08); }
.fm-msgs .m { display: flex; gap: 8px; align-items: flex-start; }
.fm-msgs .m > div { display: flex; flex-direction: column; gap: 5px; }
.fm-msgs .ln.nm { height: 5px; margin-left: 4px; }
.fm-msgs .bub { display: grid; gap: 6px; padding: 11px 14px; border-radius: 16px; background: #fff; }
.fm-msgs .m.out { justify-content: flex-end; }
.fm-msgs .m.out .bub { background: #c8efc5; }
.fm-msgs .m.out .ln { background: rgba(32, 60, 30, 0.14); }
.fm-msgs .photo { width: 200px; height: 120px; border-radius: 14px; overflow: hidden; border: 3px solid #fff; }
.fm-msgs .photo i { width: 100%; height: 100%; }
.fm-msgs .sticker { padding: 2px 4px; }

/* 押していく指（カーソル） */
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none; transition: transform 0.9s var(--ease), opacity 0.5s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.cursor svg { width: 100%; height: 100%; transition: transform 0.15s; }
.cursor.press svg { transform: scale(0.82); }
.ripple { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid #fff; pointer-events: none; animation: ripple 0.6s var(--ease) forwards; z-index: 4; }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- 見出し ---------- */
section { padding: 150px 0 0; }
.kicker { display: inline-flex; height: 28px; align-items: center; padding: 0 13px; border-radius: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
:lang(ja) .kicker { letter-spacing: 0.02em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.035em; margin: 16px 0 16px; font-weight: 600; text-wrap: balance; }
:lang(ja) h2 { line-height: 1.3; letter-spacing: -0.01em; }
.sub { color: rgba(255, 255, 255, 0.74); font-size: 18px; max-width: 32em; margin: 0; text-wrap: balance; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* 画面に入ったら出す（site.js） */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- 機能のタイル ---------- */
.card {
  --mx: 50%; --my: 50%;
  padding: 26px; border-radius: var(--radius); overflow: hidden;
  transition: transform 0.45s var(--ease), background-color 0.3s, opacity 1s var(--ease), filter 1s var(--ease);
}
.card:hover { transform: translateY(-4px); background-color: rgba(255, 255, 255, 0.18); }
/* マウスの位置にやわらかい光 */
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.2), transparent 60%); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 19px; margin: 18px 0 6px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--fg-2); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #17131f; background: #fff; box-shadow: 0 8px 20px rgba(20, 10, 50, 0.16); }
.ico svg { width: 22px; height: 22px; }
.demo { margin-top: 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.demo * { text-shadow: none; }

/* コマンドバー：入力欄は白い板（はじめの案内のキーと同じ） */
.cmd { padding: 12px; }
.cmd-input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 14px; background: #fff; color: #17131f; box-shadow: 0 10px 30px rgba(20, 10, 50, 0.16); font-size: 15px; }
.cmd-input svg { width: 17px; height: 17px; color: rgba(23, 19, 31, 0.45); flex: none; }
.caret { width: 1.5px; height: 18px; background: #8358fa; animation: blink 1s steps(1) infinite; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }
.cmd-results { margin-top: 8px; display: grid; gap: 2px; }
.cmd-results div { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--fg-2); opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.2s; }
.cmd-results div.show { opacity: 1; transform: none; }
.cmd-results div.sel { background: rgba(255, 255, 255, 0.22); color: #fff; }
.cmd-results i { width: 18px; height: 18px; border-radius: 5px; flex: none; }
.cmd-results small { margin-left: auto; color: var(--fg-3); font-size: 12px; }

/* Peek */
.peek { position: relative; height: 150px; overflow: hidden; }
.peek .bgpage { position: absolute; inset: 14px; display: grid; gap: 8px; align-content: start; }
.peek .bgpage i { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.24); }
.peek .bgpage .link { height: auto; background: none; font: 600 12px/1.4 inherit; font-style: normal; color: #fff; }
.peek .pcard { position: absolute; inset: 22px 34px; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(20, 10, 50, 0.3); transform: scale(0.6) translateY(30px); opacity: 0; transition: transform 0.6s var(--spring), opacity 0.35s; padding: 12px; display: grid; gap: 7px; align-content: start; }
.peek .pcard i { height: 8px; border-radius: 4px; background: rgba(23, 19, 31, 0.08); }
.peek .pcard i:first-child { height: 46px; border-radius: 8px; background: linear-gradient(120deg, var(--c1), var(--c3)); opacity: 0.6; }
.play .peek .pcard { transform: none; opacity: 1; transition-delay: 0.3s; }
/* 分割 */
.split { display: flex; gap: 8px; height: 150px; padding: 10px; }
.split i { flex: 1; border-radius: 10px; background: #fff; transition: flex 0.9s var(--ease); position: relative; overflow: hidden; box-shadow: 0 6px 16px rgba(20, 10, 50, 0.14); }
.split i::after { content: ""; position: absolute; inset: 14px; background: repeating-linear-gradient(rgba(23, 19, 31, 0.08) 0 9px, transparent 9px 20px); border-radius: 4px; }
.split i:last-child { flex: 0.0001; }
.play .split i:last-child { flex: 1; transition-delay: 0.3s; }
/* ログインを分ける */
.vault { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; }
.vault .chips { display: flex; gap: 10px; }
.vault .chip { padding: 8px 13px; border-radius: 999px; background: #fff; color: #17131f; font-size: 13px; font-weight: 600; display: flex; gap: 7px; align-items: center; box-shadow: 0 6px 16px rgba(20, 10, 50, 0.14); }
.vault .chip b { width: 10px; height: 10px; border-radius: 50%; }
.vault .chip:nth-child(2) { opacity: 0.5; transform: scale(0.94); }
.play .vault .chip:nth-child(1) { animation: swapA 4s var(--ease) infinite; }
.play .vault .chip:nth-child(2) { animation: swapB 4s var(--ease) infinite; }
@keyframes swapA { 0%, 40% { opacity: 1; transform: none; } 50%, 90% { opacity: 0.5; transform: scale(0.94); } 100% { opacity: 1; transform: none; } }
@keyframes swapB { 0%, 40% { opacity: 0.5; transform: scale(0.94); } 50%, 90% { opacity: 1; transform: none; } 100% { opacity: 0.5; transform: scale(0.94); } }
.vault .lock { position: absolute; bottom: 14px; font-size: 12px; color: var(--fg-2); display: flex; gap: 6px; align-items: center; }
.vault .lock svg { width: 14px; height: 14px; }

/* ---------- 安心 ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.trust div { padding-top: 18px; border-top: 1px solid var(--line); }
.trust h3 { margin: 0 0 6px; font-size: 17px; }
.trust p { margin: 0; color: var(--fg-2); font-size: 15px; }

/* ---------- 料金：メンバーカードと 2 つの板 ---------- */
/* 左にカード、右に 2 枚の板。カードは板の上下の真ん中に、説明はカードの真下に */
.pricing { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 52px; }
.card-stage { perspective: 1100px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.card-stage .hint { width: 240px; margin: 0; font-size: 12.5px; color: var(--fg-3); text-align: center; text-wrap: balance; }
.plans { display: grid; gap: 16px; }
.plan { padding: 28px 30px; border-radius: 26px; text-align: left; transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.plan.pro { background: rgba(255, 255, 255, 0.22); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; line-height: 40px; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; text-shadow: 0 2px 24px var(--shade); }
.price small { font-size: 15px; font-weight: 500; color: var(--fg-2); letter-spacing: 0; }
.plan .note { color: var(--fg-2); font-size: 14px; margin: 6px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 15px; }
.plan li { display: flex; gap: 9px; align-items: baseline; text-shadow: 0 1px 10px var(--shade); }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; transform: translateY(3px); background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.badge { display: inline-flex; height: 24px; align-items: center; padding: 0 11px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #17131f; background: #fff; text-shadow: none; }

/* ---------- よくある質問 ---------- */
.faq { max-width: 800px; margin: 40px auto 0; display: grid; gap: 10px; }
.faq details { border-radius: 18px; padding: 0 22px; interpolate-size: allow-keywords; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 20px; text-shadow: 0 1px 10px var(--shade); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--fg-2); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq p { margin: 0 0 18px; color: var(--fg-2); }

/* ---------- 下のバー ---------- */
footer { margin-top: 90px; padding: 32px 0 44px; font-size: 13.5px; color: var(--fg-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { text-decoration: none; text-shadow: 0 1px 10px var(--shade); }
footer a:hover { color: #fff; }
footer .legal { flex-basis: 100%; color: var(--fg-3); font-size: 12.5px; margin: 0; }

/* ---------- 規約などの文書：メンバーカードと同じ紙に、同じインクで ---------- */
.doc { max-width: 820px; margin: 40px auto 0; padding: clamp(28px, 6vw, 64px); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 10, 50, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12); animation: appear 1s 0.2s var(--ease) both; }
.doc * { text-shadow: none; }
.doc .doc-kind { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; margin-bottom: 30px; border-bottom: 0.75px solid color-mix(in srgb, var(--ink) 28%, transparent); }
.doc .doc-kind b { font: 700 15px/1 "Didot", "Times New Roman", serif; letter-spacing: 0.22em; }
.doc .doc-kind span { font: 600 9px/1 "SF Mono", Menlo, monospace; letter-spacing: 0.22em; color: var(--ink-accent); }
.doc h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.25; }
.doc .updated { font: 500 12px/1.4 "SF Mono", Menlo, monospace; letter-spacing: 0.04em; color: var(--ink-2); margin: 0 0 30px; }
.doc h2 { font-size: 19px; letter-spacing: -0.005em; margin: 36px 0 8px; line-height: 1.45; }
.doc p, .doc li { color: var(--ink-2); }
/* 文書の長い文は文節で折り返すと行末が大きく空くので、ふつうに詰めて折り返す */
:lang(ja) .doc p, :lang(ja) .doc li, :lang(ja) .doc td { word-break: normal; line-break: strict; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ink); }
.doc a { color: var(--ink-accent); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 0.75px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.doc th { width: 30%; color: var(--ink); font-weight: 650; }
.doc td { color: var(--ink-2); }
.doc .scroll { overflow-x: auto; }
.doc .scroll th { width: auto; }

/* ---------- お問い合わせ：大きなボタンでメールの下書きを開く。下に、内容ごとの下書きを開くカード ---------- */
.contact { max-width: 760px; padding-top: 72px; }
.contact-head { text-align: center; }
.contact-head h1 { font-size: clamp(42px, 6.4vw, 68px); line-height: 1.08; letter-spacing: -0.035em; margin: 18px 0 14px; font-weight: 600; }
:lang(ja) .contact-head h1 { letter-spacing: -0.01em; }
.contact-head .sub { margin-inline: auto; }
.contact-panel { margin-top: 44px; padding: 48px clamp(20px, 5vw, 52px) 44px; border-radius: 30px; }
.contact-main { text-align: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.contact-main .go { height: 54px; padding: 0 32px; font-size: 16px; }
.contact-main .note { margin: 24px auto 0; max-width: 27em; color: var(--fg-2); font-size: 15px; text-wrap: balance; }
.contact-main .addr { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 14.5px; }
.contact-main .addr a { color: #fff; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, 0.5); }
.copy { all: unset; cursor: pointer; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 12px; color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); transition: background 0.2s; }
.copy:hover { background: rgba(255, 255, 255, 0.24); }
.copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.contact-before { padding-top: 34px; }
.contact-before .eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.contact-before h2 { font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; margin: 6px 0 18px; }
.topics { display: grid; gap: 12px; }
.topic { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: background-color 0.25s, transform 0.35s var(--ease); }
.topic:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.topic:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.topic .ico { flex: none; width: 38px; height: 38px; border-radius: 11px; }
.topic .ico svg { width: 19px; height: 19px; }
.topic b { display: block; font-size: 16px; margin: 1px 0 4px; }
.topic .p { display: block; color: var(--fg-2); font-size: 14.5px; line-height: 1.65; }
.topic .more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
@media (max-width: 640px) {
  .contact { padding-top: 40px; }
  .contact-panel { padding: 34px 18px 22px; border-radius: 24px; }
  .topic { padding: 16px; gap: 12px; }
}

/* ---------- 狭い画面 ---------- */
@media (max-width: 960px) {
  .trust { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; gap: 40px; }
  .mock { grid-template-columns: 190px 1fr; height: 480px; }
}
@media (max-width: 640px) {
  .nav-links a:not(.lang) { display: none; }
  .hero { padding-top: 56px; }
  :lang(ja) .hero h1 { font-size: 40px; max-width: none; }
  .mock { grid-template-columns: 1fr; height: 476px; }
  .mock .page { display: none; }
  section { padding-top: 90px; }
  .card { padding: 22px; }
  .plan ul { grid-template-columns: 1fr; }
  .doc th, .doc td { display: block; width: auto; padding: 4px 0; border: 0; }
  .doc tr { display: block; padding: 12px 0; border-bottom: 0.75px solid color-mix(in srgb, var(--ink) 18%, transparent); }
}

/* 動きを減らす設定のときは止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .appear, .mock, .mesh, .lava, .split-text .ch, .mock .side { opacity: 1 !important; transform: none !important; filter: none; }
  .mesh, .lava { translate: none !important; }
  .lava { opacity: 0.85 !important; }
  .mesh, .lava { filter: blur(90px); }
  .lava { filter: blur(22px) saturate(1.15); }
  html { scroll-behavior: auto; }
}

/* ---------- 冒頭のすぐ下：価値を 3 つ ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 110px; }
.values > div { padding-top: 22px; border-top: 1px solid var(--line); }
.values h3 { margin: 16px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.values p { margin: 0; color: var(--fg-2); font-size: 15px; }
.values .ico { width: 38px; height: 38px; border-radius: 11px; }
.values .ico svg { width: 19px; height: 19px; }

/* ---------- プロファイルの絵：小さな Roa の窓。スペースを押すと、同じサイトが別のアカウントで表示される ---------- */
.acct { height: 320px; padding: 10px; }
.acct-win {
  --w1: #8a5cf6; --w2: #c44fd8; --w3: #f08bb0;
  position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 6px; height: 100%; padding: 6px; border-radius: 14px; overflow: hidden;
  /* ほかの絵と同じく、後ろのすりガラスになじむ淡い色（スペースの色を半分ほど透かす） */
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--w1) 55%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--w3) 50%, transparent), transparent 60%),
    color-mix(in srgb, var(--w2) 42%, rgba(255, 255, 255, 0.18));
  transition: --w1 0.8s var(--ease), --w2 0.8s var(--ease), --w3 0.8s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 24px rgba(20, 10, 50, 0.1);
}
.acct-win[data-space="1"] { --w1: #2f7bff; --w2: #3aa0ff; --w3: #5ee0d0; }
.acct-side { position: relative; display: flex; flex-direction: column; padding: 6px 0; min-width: 0; overflow: hidden; font-size: 11.5px; color: #fff; }
.acct-track { display: flex; flex: 1; transition: transform 0.6s var(--ease); }
.acct-win[data-space="1"] .acct-track { transform: translateX(-100%); }
.acct-panel { flex: 0 0 100%; display: flex; flex-direction: column; gap: 4px; padding: 0 4px; transition: opacity 0.4s var(--ease); }
/* 隠れている側のスペースは見せない（端がわずかにのぞかないように） */
.acct-win[data-space="0"] .acct-panel:last-child, .acct-win[data-space="1"] .acct-panel:first-child { opacity: 0; }
.acct-panel b { font-weight: 700; padding: 2px 6px 6px; }
.acct-panel span { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 7px; border-radius: 7px; white-space: nowrap; overflow: hidden; color: rgba(255, 255, 255, 0.92); }
.acct-panel span::before { content: ""; flex: none; width: 11px; height: 11px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }
.acct-panel span.on { background: rgba(255, 255, 255, 0.9); color: #1c1b1a; box-shadow: 0 2px 6px rgba(20, 10, 50, 0.08); }
.acct-panel span.on::before { background: var(--w2); }
.acct-spaces { display: flex; justify-content: center; gap: 6px; padding-top: 6px; }
.acct-spaces i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; transition: background 0.3s; }
.acct-spaces i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); transition: transform 0.4s var(--spring), background 0.3s; }
.acct-win[data-space="0"] .acct-spaces i:nth-child(1), .acct-win[data-space="1"] .acct-spaces i:nth-child(2) { background: rgba(255, 255, 255, 0.24); }
.acct-win[data-space="0"] .acct-spaces i:nth-child(1)::before, .acct-win[data-space="1"] .acct-spaces i:nth-child(2)::before { background: #fff; transform: scale(1.35); }
.acct-page { position: relative; border-radius: 9px; background: #fff; color: #1c1b1a; overflow: hidden; font-size: 12px; box-shadow: 0 6px 16px rgba(20, 10, 50, 0.1); }
.acct-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 12px; border-bottom: 1px solid rgba(28, 27, 26, 0.07); }
.acct-bar .site { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.acct-bar .site::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #ff9f7a, #ffcf7a); }
.acct-bar .site i { height: 9px; width: 42%; border-radius: 5px; background: rgba(28, 27, 26, 0.09); }
/* アカウントは丸いアイコンだけ。色で、どちらのアカウントかが分かる */
.acct-who { position: relative; flex: none; width: 22px; height: 22px; }
.acct-who em { position: absolute; inset: 0; border-radius: 50%; transition: opacity 0.4s var(--ease), transform 0.5s var(--spring); }
.acct-who em:nth-child(1) { background: linear-gradient(135deg, #b48cff, #8a5cf6); }
.acct-who em:nth-child(2) { background: linear-gradient(135deg, #7fb2ff, #2f7bff); }
.acct-list { position: absolute; left: 0; right: 0; top: 40px; padding: 10px 12px; display: grid; gap: 4px; transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); }
.acct-list span { display: grid; grid-template-columns: 8px 1fr 26px; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 7px; }
.acct-list span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #8a5cf6); }
.acct-list span i { height: 8px; border-radius: 4px; background: rgba(28, 27, 26, 0.08); }
.acct-list span i:last-child { width: 100%; background: rgba(28, 27, 26, 0.05); }
.acct-list span:first-child { background: rgba(28, 27, 26, 0.04); }
.acct-list.l1 { --dot: #2f7bff; }
/* どちらのアカウントで表示しているか */
.acct-win[data-space="0"] .acct-who em:nth-child(2), .acct-win[data-space="1"] .acct-who em:nth-child(1) { opacity: 0; transform: scale(0.6); }
.acct-win[data-space="0"] .acct-list.l1, .acct-win[data-space="1"] .acct-list.l0 { opacity: 0; transform: translateY(6px); }
.acct-cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; z-index: 3; pointer-events: none; transition: transform 0.8s var(--ease); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.acct-cursor svg { width: 100%; height: 100%; transition: transform 0.15s; }
.acct-cursor.press svg { transform: scale(0.8); }
@media (max-width: 640px) {
  .acct { height: 240px; padding: 6px; }
  .acct-win { grid-template-columns: 112px 1fr; }
}

/* キーの形（はじめの案内と同じ白いキー） */
.keys { display: flex; gap: 6px; margin-top: 22px; align-items: center; color: var(--fg-2); font-size: 14px; }
kbd { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; font: 600 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: #17131f; background: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); text-shadow: none; }

/* ---------- 細かい機能：短いタイル ---------- */
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.mini .card { grid-column: auto; padding: 24px; }
.mini .card h3 { font-size: 17px; margin: 16px 0 4px; }
.mini .card p { font-size: 14.5px; }
.mini .ico { width: 38px; height: 38px; border-radius: 11px; }
.mini .ico svg { width: 19px; height: 19px; }

@media (max-width: 960px) {
  .values { grid-template-columns: 1fr; gap: 26px; padding-top: 80px; }
  .mini { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav .go { display: none; }
  .mini { grid-template-columns: 1fr; }
}

/* ---------- 主な機能の展示：左に機能を縦に並べ、選んだものだけ説明を開く。右に動く絵 ---------- */
.tour { margin-top: 56px; }
.tour-stage { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 56px; align-items: center; padding: 44px; border-radius: 28px; }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tour-list li { position: relative; padding: 14px 0 14px 24px; }
/* 左の細い線：選んだ項目だけ、次へ進むまでの時間に合わせて上から白く伸びる */
.tour-list li::before, .tour-list li::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; }
.tour-list li::before { background: rgba(255, 255, 255, 0.2); }
.tour-list li::after { background: #fff; transform-origin: top; transform: scaleY(0); transition: transform 0.4s var(--ease); }
.tour-list li.on::after { transform: scaleY(1); }
.tour.running .tour-list li.on::after { transition: none; animation: tour-fill var(--tour-ms, 6500ms) linear forwards; }
@keyframes tour-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tour-list button {
  all: unset; display: block; cursor: pointer; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.55); text-shadow: 0 1px 10px var(--shade); transition: color 0.3s;
}
.tour-list button:hover, .tour-list li.on button { color: #fff; }
.tour-list button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.tour-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.tour-list li.on .tour-detail { grid-template-rows: 1fr; }
.tour-detail > div { overflow: hidden; }
.tour-detail p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.8); font-size: 15.5px; }
.tour-detail .keys { margin-top: 14px; }
.tour-demos { display: grid; }
.tour-demo { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.99); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s 0.5s; }
.tour-demo.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.tour-demo .demo { margin-top: 0; background: rgba(255, 255, 255, 0.1); }
.tour-demo .peek, .tour-demo .vault, .tour-demo .split { height: 320px; }
.tour-demo .cmd { padding: 16px; min-height: 320px; }
.tour-demo .cmd-input { height: 54px; font-size: 16px; }
.tour-demo .peek .pcard { inset: 38px 60px; padding: 16px; gap: 9px; }
.tour-demo .peek .pcard i:first-child { height: 100px; }
.tour-demo .vault .chip { padding: 11px 16px; font-size: 14px; }
@media (max-width: 960px) {
  .tour-stage { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
}
@media (max-width: 640px) {
  .tour-demo .peek, .tour-demo .vault, .tour-demo .split { height: 220px; }
  .tour-demo .cmd { min-height: 0; }
  .tour-list button { font-size: 17px; }
}

/* ---------- 最後：特大の一言 ---------- */
.finale { padding: 170px 0 0; text-align: center; }
.finale h2 { font-size: clamp(44px, 8vw, 104px); line-height: 1; letter-spacing: -0.045em; margin: 0 auto 22px; max-width: 11em; }
:lang(ja) .finale h2 { font-size: clamp(38px, 6.4vw, 80px); line-height: 1.15; letter-spacing: -0.02em; }
.finale p { margin: 0 auto 30px; color: rgba(255, 255, 255, 0.78); font-size: 18px; }


/* ---------- 冒頭の見出し：一文字ずつ、ぼかしから浮かび上がる。出そろったら光がひと筋なでる ---------- */
.split-text { opacity: 1 !important; animation: none !important; }
.split-text .ph { display: inline-block; white-space: nowrap; }
.split-text .ch { display: inline-block; opacity: 0; transform: translateY(0.35em) scale(0.96); filter: blur(12px); }
body.opened .split-text .ch { animation: ch-in 1.1s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.045s); }
@keyframes ch-in { to { opacity: 1; transform: none; filter: blur(0); } }
.split-text.sheen .ch {
  opacity: 1; transform: none; filter: none;
  background: linear-gradient(100deg, #fff 0%, #fff 42%, rgba(255, 255, 255, 0.4) 50%, #fff 58%, #fff 100%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  animation: sheen 1.6s var(--ease) forwards; animation-delay: calc(var(--i) * 0.03s);
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (max-width: 640px) {
  :lang(ja) .finale h2 { font-size: 32px; }
}
