@charset "utf-8";
/* ReplyFive — 公開サイト。1枚のスタイルシート、ビルド無し、外部アセット無し（追跡もフォント読み込みもしない）。
   白背景・青（アプリアイコンの青→紫に合わせる）・日本語中心。 */

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #f5f8ff;
  --bg-3: #eef2fa;
  --ink: #0f172a;
  --ink-2: #475467;
  --ink-3: #667085;
  --line: #e4e9f2;
  --line-2: #eef2f8;
  --blue: #215cfa;
  --blue-deep: #1a4ad6;
  --blue-ink: #163fb8;
  --blue-soft: #e8efff;
  --violet: #5c29db;
  --ok: #12805c;
  --ok-soft: #e3f5ec;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .18);
  --shadow-lift: 0 2px 6px rgba(15, 23, 42, .06), 0 32px 64px -24px rgba(33, 92, 250, .28);
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);

  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Segoe UI", "Noto Sans JP", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --gut: clamp(20px, 5vw, 48px);
  --r: 14px;
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: "palt";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: .005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* ---------- layout ---------- */
[id] { scroll-margin-top: 84px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
section { position: relative; }
.band { padding: clamp(64px, 8vw, 104px) 0; }
.band-alt { background: var(--bg-2); }
.rule-top { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue-deep); background: var(--blue-soft);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}
.eyebrow::before { content: attr(data-n); font-family: var(--mono); font-size: 11.5px; opacity: .7; }
.sec-head { max-width: 40em; margin-bottom: clamp(30px, 4.5vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }
.h-display { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.25; letter-spacing: -.01em; font-weight: 800; }
.h-sec { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.3; letter-spacing: -.005em; font-weight: 800; }
@media (min-width: 701px) { .nb { white-space: nowrap; } }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-2); max-width: 36em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .15); }
.brand b { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 600; padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--bg-3); }
.head-cta { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.lang { font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(33, 92, 250, .7); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(33, 92, 250, .8); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-link { text-decoration: none; color: var(--ink-2); font-size: 14.5px; font-weight: 600; padding: 7px 10px; border-radius: 8px; }
.btn-link:hover { color: var(--ink); background: var(--bg-3); }
.btn-white { background: #fff; color: var(--blue-ink); box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .5); }
.btn-white:hover { transform: translateY(-1px); background: #f5f8ff; }
.btn-outline-white { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); }

kbd {
  font-family: var(--sans); font-size: .84em; font-weight: 700; line-height: 1;
  padding: 4px 8px; border-radius: 7px;
  border: 1px solid var(--line); border-bottom-width: 2px;
  background: #fff; color: var(--ink);
  white-space: nowrap; box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 44px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(48% 40% at 78% 18%, rgba(33, 92, 250, .12), transparent 70%),
    radial-gradient(40% 36% at 12% 6%, rgba(92, 41, 219, .08), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero-grid > :first-child { padding-top: 6px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--blue-ink);
  border: 1px solid #cfdcff; background: var(--blue-soft);
  border-radius: 999px; padding: 5px 13px 5px 9px; margin-bottom: 20px;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); display: block; box-shadow: 0 0 0 3px rgba(33, 92, 250, .18); }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note span::before { content: "✓"; color: var(--ok); font-weight: 800; }
.cta-note { margin-top: 12px; font-size: 13.8px; color: var(--ink-2); max-width: 34em; }

/* 回転する語（Slack / Teams / Gmail …） */
.rot { display: inline-grid; vertical-align: bottom; text-align: left; transition: width .35s cubic-bezier(.2, .7, .3, 1); }
.rot > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(.45em); transition: opacity .32s ease, transform .32s cubic-bezier(.2, .7, .3,1); color: var(--blue); }
.rot > span.on { opacity: 1; transform: none; }
.rot > span.off { opacity: 0; transform: translateY(-.4em); }

/* ---------- 動作デモ ---------- */
.demo { position: relative; --app: var(--blue); }
.demo-win {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: #fafbfe; font-size: 13px; color: var(--ink-2); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e7ef; display: block; }
.demo-app { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); }
.demo-app i { width: 14px; height: 14px; border-radius: 4px; background: var(--app); display: block; }
.demo-room { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.demo-body { padding: 14px 16px 12px; height: 392px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.msg { max-width: 92%; font-size: 13px; line-height: 1.55; }
.msg .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.msg .who b { color: var(--ink); font-weight: 700; }
.msg .who i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #cbd5e1, #94a3b8); display: block; }
.msg .txt { background: var(--bg-3); border-radius: 4px 14px 14px 14px; padding: 8px 12px; display: inline-block; white-space: pre-line; }
.msg { flex: none; }
.demo-field { flex: none; }
.demo-field {
  margin-top: 0; position: relative;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 48px;
  font-size: 13.5px; line-height: 1.6; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.demo-field.focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33, 92, 250, .12); }
.demo-field .ph { color: #a0a8b6; }
.demo-field .caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); vertical-align: -.2em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.demo-field.done { border-color: var(--ok); box-shadow: 0 0 0 4px rgba(18, 128, 92, .12); }
.demo-send { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-3); display: grid; place-items: center; color: var(--ink-3); }
.demo-send svg { width: 15px; height: 15px; }
.demo-field.done .demo-send { background: var(--blue); color: #fff; }

/* ReplyFive のパネル：実アプリと同じ、Dock から立ち上がる暗いガラスのカード（青い光） */
.demo-panel {
  position: absolute; left: 50%; bottom: 70px; width: min(88%, 430px); transform: translate(-50%, 10px) scale(.97);
  background: linear-gradient(180deg, rgba(38, 40, 52, .92), rgba(24, 26, 36, .94)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #f2f3f7; border-radius: 16px; padding: 11px 12px 12px; opacity: 0; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 0 0 1px rgba(92, 140, 255, .45), 0 0 22px rgba(92, 140, 255, .55), 0 0 60px rgba(92, 140, 255, .35), 0 16px 40px rgba(0, 0, 0, .45);
  transition: opacity .22s ease, transform .26s cubic-bezier(.2, .7, .3, 1); z-index: 5;
}
.demo-panel.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.demo-panel .notch { position: absolute; left: 50%; bottom: -7px; width: 14px; height: 7px; transform: translateX(-50%); background: rgba(255, 255, 255, .85); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 0 4px rgba(92, 140, 255, .9)); }
.demo-panel-head { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(242, 243, 247, .7); margin-bottom: 9px; min-height: 22px; }
.demo-panel-head .ico { width: 19px; height: 19px; padding: 2px; border: 0; }
.demo-panel-head b { color: #fff; font-size: 13.5px; }
.demo-panel-head .sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .2); }
.demo-panel-head .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: 12.5px; max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-panel-head .pill svg { width: 13px; height: 13px; flex: none; }
.demo-panel-head .hint { margin-left: auto; font-size: 10.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.demo-panel-head .hint.drafting { display: none; }
.demo-panel.busy .demo-panel-head .hint.drafting { display: inline-flex; }
.demo-panel.busy .demo-panel-head .hint.idle { display: none; }
.demo-panel-head .gear { width: 15px; height: 15px; color: rgba(255, 255, 255, .85); flex: none; }
.demo-intent { position: relative; min-height: 46px; padding: 9px 12px; border-radius: 11px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; font-weight: 500; line-height: 1.55; color: #fff; }
.demo-intent .ph { color: rgba(255, 255, 255, .45); }
.demo-intent .caret { display: inline-block; width: 1.5px; height: 1.1em; background: #fff; vertical-align: -.2em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.spin { width: 11px; height: 11px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #8fb0ff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }

/* キー表示（右下にポップ） */
.demo-key {
  position: absolute; right: -6px; bottom: 58px; z-index: 3;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
  padding: 8px 12px; border-radius: 10px; box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .6);
  opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .18s ease, transform .22s cubic-bezier(.2, .7, .3, 1);
}
.demo-key.on { opacity: 1; transform: none; }
.demo-key small { font-weight: 600; opacity: .7; margin-left: 6px; font-size: 11.5px; }

/* 経過時間 */
.demo-top { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 10px; min-height: 32px; }
.demo-timer {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 8px;
  font-size: 13px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
}
.demo-timer i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: block; }
.demo-timer.done { color: var(--ok); border-color: #bfe6d3; background: var(--ok-soft); }
.demo-timer.done i { background: var(--ok); }
.demo-timer .num { color: var(--ink); min-width: 3.4em; }
.demo-timer.done .num { color: var(--ok); }
.demo-timer .lbl { color: var(--ink-3); font-weight: 600; }
.demo-timer.done .lbl { color: var(--ok); }

/* アプリ切替の進捗ドット */
.demo-apps { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.demo-apps button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.demo-apps button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue)); display: block; opacity: .55; }
.demo-apps button.on { color: var(--ink); border-color: var(--ink); }
.demo-apps button.on i { opacity: 1; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: fade .7s cubic-bezier(.2, .7, .3, 1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .13s; } .d3 { animation-delay: .21s; } .d4 { animation-delay: .29s; } .d5 { animation-delay: .37s; }

/* スクロールで現れる */
.io { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .3, 1); }
.io.in { opacity: 1; transform: none; }
.io.s2 { transition-delay: .06s; } .io.s3 { transition-delay: .12s; } .io.s4 { transition-delay: .18s; } .io.s5 { transition-delay: .24s; }

/* ---------- 対応アプリ ---------- */
.apps-band { padding: 26px 0 28px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--bg-2); }
.apps-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.apps-lead { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-right: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #fff;
}
.chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--blue)); display: block; }
.chip-more { border-style: dashed; color: var(--ink-3); }

/* ---------- 使い方（3ステップ） ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 26px; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 16px; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step p { color: var(--ink-2); font-size: 15px; }
.step-visual { margin-top: 18px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.step-visual b { color: var(--ink); }
.step-visual .in { color: var(--blue-ink); font-weight: 700; }
.step-visual .out { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink); }

/* ---------- 実例（入力 → 返信） ---------- */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.ex { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ex-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 700; background: #fafbfe; }
.ex-head i { width: 12px; height: 12px; border-radius: 3px; background: var(--c, var(--blue)); display: block; }
.ex-head span { color: var(--ink-3); font-weight: 600; margin-left: auto; }
.ex-body { padding: 16px; display: grid; gap: 12px; font-size: 14.2px; }
.ex-row { display: grid; gap: 4px; }
.ex-row small { font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.ex-row .them { background: var(--bg-3); border-radius: 4px 12px 12px 12px; padding: 9px 12px; color: var(--ink-2); }
.ex-row .me { color: var(--blue-ink); font-weight: 700; padding: 9px 12px; border: 1.5px dashed #bcd0ff; border-radius: 12px; background: var(--blue-soft); }
.ex-row .out { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; line-height: 1.7; white-space: pre-line; }
.ex-arrow { text-align: center; color: var(--blue); font-weight: 800; font-size: 13px; }

/* ---------- 導入手順 ---------- */
.setup { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 24px); }
.setup li { counter-increment: st; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; }
.setup li::before {
  content: counter(st); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue-ink); font-weight: 800; font-size: 13.5px; margin-bottom: 12px;
}
.setup b { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.setup p { color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere; }
.setup a { color: var(--blue-ink); }

/* ---------- 特長カード ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card svg { width: 22px; height: 22px; color: var(--blue); margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- 安心（プライバシー） ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); margin-bottom: 26px; }
.trust li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; }
.trust svg { width: 26px; height: 26px; color: var(--ok); margin-bottom: 12px; }
.trust b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.trust p { color: var(--ink-2); font-size: 14.5px; }
.where { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.where h3 { grid-column: 1 / -1; font-size: 1rem; }
.where p { color: var(--ink-2); font-size: 14.5px; }
.where strong { color: var(--ink); }

/* ---------- 料金 ---------- */
.price-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.price-head p { color: var(--ink-2); font-size: 14.5px; max-width: 40em; }
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.toggle button { border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: color .15s ease, background .15s ease; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.toggle .save { font-size: 11px; opacity: .8; margin-left: 6px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px 24px; box-shadow: var(--shadow); }
.plan-pick { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 92, 250, .12), var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 20px; font-size: 11.5px; font-weight: 800; background: var(--blue); color: #fff; padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 15px; font-weight: 800; color: var(--ink-2); margin-bottom: 12px; }
.amt { font-size: 2.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.amt small { font-size: 1rem; font-weight: 700; color: var(--ink-2); margin-left: 2px; }
.per { font-size: 13.4px; color: var(--ink-3); margin-top: 8px; min-height: 2.6em; }
.plan-desc { font-size: 14.2px; color: var(--ink-2); margin: 14px 0 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.plan ul { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.plan li { position: relative; padding-left: 22px; font-size: 14.2px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }
.plan .btn { margin-top: auto; }
.plan-note { margin-top: auto; text-align: center; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: 13.6px; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.plan-note a { text-decoration: none; color: var(--blue-ink); }
.price-foot { margin-top: 22px; font-size: 13.6px; color: var(--ink-3); display: grid; gap: 6px; overflow-wrap: anywhere; }
.price-foot a { color: var(--ink-2); }
[data-cycle="year"] .m-only, [data-cycle="month"] .y-only { display: none; }
.tiers { list-style: none; display: grid; gap: 5px; font-size: 12.5px; color: var(--ink-2); margin: 14px 0 14px; padding-top: 14px; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.plan .tiers li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding: 0 0 4px; white-space: nowrap; }
.plan .tiers li::before { content: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-size: 1.02rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--blue-ink); }
.faq-a { padding: 0 48px 22px 0; color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.faq-a p + p { margin-top: 10px; }
.faq-a a { color: var(--blue-ink); }

/* ---------- 最後の CTA ---------- */
.final { padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 96px); }
.final-box { position: relative; overflow: hidden; border-radius: 24px; background: var(--grad); color: #fff; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; }
.final-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255, 255, 255, .22), transparent 60%); pointer-events: none; }
.final-box > * { position: relative; }
.final-box h2 { color: #fff; margin-inline: auto; }
.final-box .lede { color: rgba(255, 255, 255, .86); margin: 16px auto 28px; }
.final-box .hero-actions { justify-content: center; }
.final-box .hero-note { justify-content: center; color: rgba(255, 255, 255, .8); }
.final-box .hero-note span::before { color: #fff; }
.final-box .cta-note { color: rgba(255, 255, 255, .8); margin-inline: auto; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 36px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.foot-grid h4 { font-size: 13px; font-weight: 800; color: var(--ink-3); margin-bottom: 12px; }
.foot-grid ul { list-style: none; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); font-size: 14.3px; }
.foot-grid a:hover { color: var(--blue-ink); }
.foot-about p { color: var(--ink-2); font-size: 14.3px; max-width: 30em; margin-top: 12px; }
.foot-bar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.foot-bar a { text-decoration: none; color: var(--ink-2); }
.foot-bar a:hover { color: var(--blue-ink); }
.foot-bar .sp { margin-left: auto; }

/* ---------- 規約などの文書 ---------- */
.doc { padding: clamp(44px, 6vw, 72px) 0 clamp(60px, 8vw, 96px); }
.doc-wrap { max-width: 780px; margin-inline: auto; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.25; font-weight: 800; }
.doc .meta { display: inline-flex; font-size: 12.5px; font-weight: 700; color: var(--blue-ink); background: var(--blue-soft); border-radius: 999px; padding: 3px 11px; margin-bottom: 14px; }
.doc .updated { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.doc-nav { display: flex; gap: 8px; margin: 22px 0 0; flex-wrap: wrap; }
.doc-nav a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #fff; }
.doc-nav a:hover { border-color: var(--ink-3); color: var(--ink); }
.prose { margin-top: 40px; }
.prose h2 { font-size: 1.35rem; font-weight: 800; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.02rem; font-weight: 700; margin: 24px 0 8px; }
.prose p { color: var(--ink-2); margin: 10px 0; font-size: 15.5px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; color: var(--ink-2); }
.prose li { margin: 6px 0; font-size: 15.3px; }
.prose a { color: var(--blue-ink); overflow-wrap: anywhere; }
.prose strong { color: var(--ink); }
.lang-split { border-top: 3px double var(--line); margin-top: 56px; padding-top: 32px; }
.dl { border-top: 1px solid var(--line); margin-top: 20px; }
.dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 14px 2px; border-bottom: 1px solid var(--line-2); }
.dl dt { font-weight: 700; font-size: 15px; }
.dl dd { margin: 0; color: var(--ink-2); font-size: 15.2px; overflow-wrap: anywhere; }
.dl dd a { color: var(--blue-ink); }
.dl dd p { margin: 0; }
.dl dd p + p { margin-top: 8px; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.nf .code { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--blue); margin-bottom: 18px; }
.nf .hero-actions { justify-content: center; margin-top: 28px; }
.nf .alt { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; max-width: 40em; margin-inline: auto; }
.nf .alt p + p { margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  /* 見出しの行が足りないときはナビを2段目へ */
  .site-head .wrap { flex-wrap: wrap; height: auto; padding-block: 10px 8px; gap: 8px 16px; }
  .head-cta { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 2px 6px; flex-wrap: wrap; }
  .nav a { font-size: 13.8px; padding: 4px 8px; }
  [id] { scroll-margin-top: 116px; }
}
@media (max-width: 1040px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .demo { max-width: 640px; margin-inline: auto; width: 100%; }
  .setup { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .steps, .examples, .cards, .trust { grid-template-columns: 1fr; }
  .where { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .dl > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  /* 小さな画面：見出しは1行に収め、セクションのリンクは出さない（スクロールで届く） */
  .nav, .head-cta .btn-link { display: none; }
  .site-head .wrap { flex-wrap: nowrap; height: 60px; padding-block: 0; gap: 8px 12px; }
  [id] { scroll-margin-top: 72px; }
  .brand b { font-size: 1.02rem; }
  .head-cta { gap: 6px; }
  .head-cta .btn-link { font-size: 13.5px; padding: 6px 8px; }
  .head-cta .btn-sm { padding: 8px 12px; font-size: 13px; }
  .plans, .setup { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .demo-body { min-height: 210px; padding: 14px; }
  .demo-key { right: 6px; bottom: 54px; }
  .price-head { align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bar .sp { margin-left: 0; }
  .final-box { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .io { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .doc-nav { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- アプリのマーク（各社の公式ロゴ。白いタイルに収める） ---------- */
.ico { width: 22px; height: 22px; flex: none; border-radius: 6px; background: #fff; border: 1px solid var(--line); padding: 3px; object-fit: contain; box-sizing: border-box; }
.ico.wide { width: auto; padding: 4px 6px; }
.rot > span { display: inline-flex; align-items: center; gap: .22em; white-space: nowrap; }
.rot.block { display: grid; width: auto; }
.rot.block > span { display: block; white-space: normal; }
.rot.block > span .ico { display: inline-block; vertical-align: -.08em; margin-right: .18em; }
.rot > span .ico { width: .9em; height: .9em; border-radius: .2em; padding: .1em; box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.chip .ico { width: 22px; height: 22px; margin-left: -5px; }
.chip .ico.wide { width: auto; height: 22px; }
.apps-band .chip { padding: 5px 13px 5px 8px; }
.demo-app .ico { width: 20px; height: 20px; }
.demo-apps button .ico { width: 18px; height: 18px; margin-left: -4px; padding: 2px; }
.demo-apps button { padding: 5px 11px 5px 7px; }
.demo-apps button.on { color: var(--ink); border-color: var(--ink); }
.var .to .ico { width: 20px; height: 20px; }
#d-out { white-space: pre-wrap; }


/* ---------- デモの見た目：アプリごと ---------- */
.demo-win { --win: #fff; --bar: #fafbfe; --barfg: var(--ink); --body: #fff; --them: var(--bg-3); --themfg: var(--ink); --fieldbg: #fff; --fieldfg: var(--ink); --ring: var(--blue); --name: var(--ink); background: var(--win); }
.demo-bar { background: var(--bar); color: var(--barfg); }
.demo-app { color: var(--barfg); }
.demo-body { background: var(--body); }
.msg .who b { color: var(--name); }
.msg .txt { background: var(--them); color: var(--themfg); }
.demo-field { background: var(--fieldbg); color: var(--fieldfg); }
.demo-field.focus { border-color: var(--ring); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring) 14%, transparent); }
.demo-win[data-skin="slack"] { --bar: #fff; --them: transparent; }
.demo-win[data-skin="slack"] .msg .txt { padding: 0 0 0 30px; border-radius: 0; display: block; }
.demo-win[data-skin="slack"] .demo-field { border-color: #8d8d8d; border-radius: 8px; }
.demo-win[data-skin="teams"] { --bar: #f5f5f5; --them: #e8ebfa; --ring: #5b5fc7; }
.demo-win[data-skin="chatwork"] { --bar: #fff; --them: #f3f3f3; --ring: #e5423c; }
.demo-win[data-skin="line"] { --body: #8cabd8; --them: #fff; --bar: #fff; --name: #fff; --ring: #06c755; }
.demo-win[data-skin="line"] .msg .who span { color: #eef3ff; }
.demo-win[data-skin="line"] .demo-field { border-color: transparent; border-radius: 14px; }
.demo-win[data-skin="whatsapp"] { --body: #efeae2; --bar: #f0f2f5; --them: #fff; --ring: #25d366; }
.demo-win[data-skin="whatsapp"] .demo-field { border-radius: 14px; }
.demo-win[data-skin="messenger"] { --them: #f0f0f0; --ring: #0084ff; }
.demo-win[data-skin="messenger"] .demo-field { border-radius: 18px; }
.demo-win[data-skin="discord"] { --win: #313338; --bar: #2b2d31; --barfg: #f2f3f5; --body: #313338; --them: transparent; --themfg: #dbdee1; --name: #f2f3f5; --fieldbg: #383a40; --fieldfg: #f2f3f5; --ring: #5865f2; }
.demo-win[data-skin="discord"] .msg .txt { padding: 0 0 0 30px; border-radius: 0; display: block; }
.demo-win[data-skin="discord"] .demo-field { border-color: transparent; }
.demo-win[data-skin="discord"] .demo-field .ph { color: #87898c; }
.demo-win[data-skin="discord"] .demo-send { background: #404249; color: #b5bac1; }
.demo-win[data-skin="gmail"] { --bar: #fff; --ring: #1a73e8; }
.demo-win[data-skin="outlook"] { --bar: #fff; --ring: #0f6cbd; }
.demo-win[data-skin="mail"] { --bar: #fff; --ring: #1b6ff2; }
/* メール：件名・宛先付きの返信欄、本文は吹き出しにしない */
.demo-win[data-kind="mail"] .msg .txt { background: transparent; padding: 0; border-radius: 0; display: block; color: var(--ink-2); }
.demo-win[data-kind="mail"] .demo-room { font-weight: 700; color: var(--ink); }
.demo-win[data-kind="mail"] .demo-field { min-height: 96px; border-radius: 10px; }
.demo-win[data-kind="mail"] .demo-body { height: 392px; }
.demo-win[data-kind="mail"] .demo-body.sent .demo-field { display: none; }
.demo-win[data-kind="mail"] .msg.me { margin-bottom: auto; }
.demo-to { display: none; font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--line-2); margin: -4px 0 8px; padding-bottom: 6px; }
.demo-win[data-kind="mail"] .demo-to { display: block; }
.demo-to b { color: var(--ink); font-weight: 600; }

/* 貼り付けたように一括で現れる */
@keyframes paste { from { opacity: 0; transform: translateY(4px) scale(.995); } to { opacity: 1; transform: none; } }
#d-out.pasted { display: inline; animation: paste .18s ease-out both; }
.var.paste-wait .out { opacity: 0; }
.var.pasted .out { animation: paste .22s ease-out both; }
/* 相手によって変わる（同じひとこと → 4通り） */
.same { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 26px; font-size: 14px; color: var(--ink-3); }
.same .me { color: var(--blue-ink); font-weight: 700; padding: 10px 16px; border: 1.5px dashed #bcd0ff; border-radius: 12px; background: var(--blue-soft); font-size: 15.5px; }
.vars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 20px); }
.var { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.var .out { padding: 16px; font-size: 14.2px; line-height: 1.75; white-space: pre-line; color: var(--ink); flex: 1; }
.var .to { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: #fafbfe; font-size: 13.5px; font-weight: 700; }
.var .to span { margin-left: auto; color: var(--ink-3); font-weight: 600; font-size: 12.5px; }

/* アプリでできること */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.feat li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; }
.feat svg { width: 22px; height: 22px; color: var(--blue); margin-bottom: 12px; }
.feat b { display: block; font-size: 1rem; margin-bottom: 5px; }
.feat p { color: var(--ink-2); font-size: 13.8px; }
.tm { margin-top: 10px; font-size: 12px; color: var(--ink-3); }

@media (max-width: 1040px) { .vars, .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .vars, .feat { grid-template-columns: 1fr; } }

.plans-3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
@media (max-width: 1040px) { .plans-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans-3 { grid-template-columns: 1fr; } }
/* 付録BZ：Lite / Pro / Team / 企業 の 4 枚 */
.plans-4 { grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.2vw, 18px); }
.plans-4 .plan { padding-inline: clamp(16px, 1.6vw, 24px); }
@media (max-width: 1100px) { .plans-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans-4 { grid-template-columns: 1fr; } }

/* 5プラン：広い画面は5列、タブレットは3列→2列、スマートフォンは1列 */
.plans-5 { grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1vw, 16px); }
.plans-5 .plan { padding: 22px clamp(13px, 1.1vw, 18px); }
.plans-5 .amt { font-size: clamp(1.5rem, 1.55vw, 1.8rem); }
.plans-5 .per { font-size: 12.6px; }
.plans-5 .plan-desc, .plans-5 .plan li { font-size: 13.4px; }
.plans-5 .plan-tag { left: 14px; }
@media (max-width: 1199px) { .plans-5 { grid-template-columns: repeat(3, 1fr); } .plans-5 .amt { font-size: 1.9rem; } .plans-5 .per { font-size: 13.4px; } .plans-5 .plan-desc, .plans-5 .plan li { font-size: 14.2px; } }
@media (max-width: 860px) { .plans-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans-5 { grid-template-columns: 1fr; } }

/* ---------- Mac の画面としてのデモ ---------- */
.demo { --deskA: #dfe7f7; --deskB: #eef2fb; }
.mac { border-radius: 16px; overflow: hidden; border: 1px solid #cfd6e4; box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .45), 0 0 0 1px rgba(255, 255, 255, .6) inset; background: #fff; }
.mac-bar { display: flex; align-items: center; gap: 14px; height: 28px; padding: 0 12px; font-size: 12px; color: #1d1d1f; background: rgba(255, 255, 255, .78); border-bottom: 1px solid rgba(15, 23, 42, .08); backdrop-filter: blur(10px); }
.mac-bar b { font-weight: 700; }
.mac-bar > span { color: #3a3a3c; }
.mac-logo { width: 12px; height: 14px; display: inline-block; background: #1d1d1f; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.4 2-3.6 2.1-3.7-1.1-1.7-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8-1.6 0-3.1.9-4 2.4-1.7 3-.4 7.3 1.2 9.7.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.2-.8s1.9.8 3.2.8c1.3 0 2.2-1.2 3-2.4.9-1.4 1.3-2.7 1.3-2.8 0 0-2.6-1-2.6-3.8zM14 5.6c.7-.8 1.1-2 1-3.1-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.6 2.9-1.4z'/%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 24 24'%3E%3Cpath d='M16.4 12.7c0-2.4 2-3.6 2.1-3.7-1.1-1.7-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8-1.6 0-3.1.9-4 2.4-1.7 3-.4 7.3 1.2 9.7.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.2-.8s1.9.8 3.2.8c1.3 0 2.2-1.2 3-2.4.9-1.4 1.3-2.7 1.3-2.8 0 0-2.6-1-2.6-3.8zM14 5.6c.7-.8 1.1-2 1-3.1-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.6 2.9-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mac-right { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.mac-tray { width: 15px; height: 15px; border-radius: 4px; }
.mac-desk { position: relative; padding: 12px 14px 8px; background: radial-gradient(90% 70% at 20% 0%, #e4ebfb, transparent 70%), radial-gradient(80% 60% at 100% 100%, #e7e2fb, transparent 70%), linear-gradient(160deg, var(--deskA), var(--deskB)); }
.mac-desk .demo-top { position: absolute; right: 16px; top: 10px; z-index: 4; margin: 0; }
.mac-desk .demo-win { margin-top: 24px; border-radius: 11px; border-color: rgba(15, 23, 42, .12); box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .45), 0 1px 0 rgba(255, 255, 255, .8) inset; }
.mac-desk .demo-bar { padding: 8px 12px; }
.demo-dots i { width: 11px; height: 11px; }
.demo-dots i:nth-child(1) { background: #ff5f57; } .demo-dots i:nth-child(2) { background: #febc2e; } .demo-dots i:nth-child(3) { background: #28c840; }
.mac-desk .demo-key { right: 8px; bottom: 74px; }
/* Dock：アプリの切替 */
.mac-dock { margin: 8px auto 0; width: max-content; max-width: 100%; gap: 4px; padding: 4px 6px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 8px 24px -12px rgba(15, 23, 42, .35); backdrop-filter: blur(10px); }
.mac-dock button { position: relative; padding: 4px; border: 0; background: transparent; border-radius: 10px; }
.mac-dock button .ico { width: 30px; height: 30px; margin: 0; padding: 4px; border-radius: 9px; border-color: rgba(15, 23, 42, .08); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); transition: transform .18s ease; }
.mac-dock button:hover .ico { transform: translateY(-3px) scale(1.06); }
.mac-dock button .lbl { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); background: rgba(15, 23, 42, .85); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.mac-dock button:hover .lbl { opacity: 1; }
.mac-dock button::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 4px; height: 4px; border-radius: 50%; background: transparent; transform: translateX(-50%); }
.mac-dock button.on { border-color: transparent; }
.mac-dock button.on::after { background: #3a3a3c; }
.mac-dock button.on .ico { transform: scale(1.08); }
@media (max-width: 620px) {
  .mac-bar > span { display: none; }
  .mac-desk { padding: 12px 10px 10px; }
  .mac-dock button .ico { width: 28px; height: 28px; }
}

/* 送信：ボタンが押され、送った文が会話に並ぶ／メールは送信済みの帯 */
.demo-send { transition: transform .12s ease, background .12s ease; }
.demo-send.pressed { transform: scale(.86); background: var(--blue-deep); color: #fff; }
.demo-field.done .demo-send { background: var(--blue); color: #fff; }
.msg.me { align-self: flex-end; max-width: 92%; text-align: left; animation: paste .25s ease-out both; }
.msg.me .who { justify-content: flex-end; }
.msg.me .who i { display: none; }
.msg.me .txt { background: var(--blue); color: #fff; border-radius: 14px 4px 14px 14px; white-space: pre-line; }
.demo-win[data-skin="slack"] .msg.me .txt, .demo-win[data-skin="discord"] .msg.me .txt { background: var(--blue-soft); color: var(--ink); border-radius: 10px; padding: 10px 14px; display: inline-block; }
.demo-win[data-skin="line"] .msg.me .txt { background: #8de38a; color: #111; }
.demo-win[data-skin="whatsapp"] .msg.me .txt { background: #d9fdd3; color: #111; }
/* メール：送った本文はスレッドに「あなた」として並ぶ */
.demo-win[data-kind="mail"] .msg.me { align-self: stretch; max-width: 100%; border-top: 1px solid var(--line-2); padding-top: 10px; }
.demo-win[data-kind="mail"] .msg.me .who { justify-content: flex-start; }
.demo-win[data-kind="mail"] .msg.me .txt { background: transparent; color: var(--ink); border-radius: 0; padding: 0; display: block; }
.demo-win[data-kind="mail"] .msg.me + .demo-field { min-height: 56px; }
.demo-win[data-skin="instagram"] { --ring: #e1306c; }
.demo-win[data-skin="instagram"] .demo-field { border-radius: 22px; }
.demo-win[data-skin="instagram"] .msg.me .txt { background: #3797f0; }

/* ---------- チーム：6 人が同時に返信する ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 18px); }
.tmini { background: #fff; border: 1px solid #cfd6e4; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .45); display: flex; flex-direction: column; }
.tm-bar { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 10px; font-size: 11px; color: #1d1d1f; background: rgba(255, 255, 255, .85); border-bottom: 1px solid rgba(15, 23, 42, .08); }
.tm-bar .mac-logo { width: 10px; height: 12px; }
.tm-bar b { font-weight: 700; }
.tm-bar .av { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #3a3a3c; font-weight: 600; }
.tm-bar .av i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; color: #fff; background: var(--c, var(--blue)); font-style: normal; }
.tm-desk { flex: 1; padding: 10px 10px 8px; background: radial-gradient(90% 70% at 20% 0%, #e4ebfb, transparent 70%), radial-gradient(80% 60% at 100% 100%, #e7e2fb, transparent 70%), linear-gradient(160deg, #dfe7f7, #eef2fb); display: flex; }
.tm-win { flex: 1; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(15, 23, 42, .12); border-radius: 9px; overflow: hidden; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .4); min-height: 236px; }
.tm-title { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-bottom: 1px solid var(--line-2); background: #fafbfe; font-size: 11.5px; font-weight: 700; }
.tm-title .demo-dots i { width: 8px; height: 8px; }
.tm-title .ico { width: 16px; height: 16px; padding: 2px; }
.tmini-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tmini .in { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.tmini .in .who { font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.tmini .in .who b { color: var(--ink); }
.tmini .in .txt { background: var(--bg-3); border-radius: 4px 12px 12px 12px; padding: 7px 10px; display: inline-block; }
.tmini .rf { display: none; align-items: center; gap: 8px; font-size: 12px; color: #fff; background: linear-gradient(180deg, rgba(38, 40, 52, .95), rgba(24, 26, 36, .95)); border-radius: 10px; padding: 7px 10px; box-shadow: 0 0 0 1px rgba(92, 140, 255, .45), 0 0 16px rgba(92, 140, 255, .45); }
.tmini .rf img { width: 14px; height: 14px; border-radius: 4px; }
.tmini .rf .t { font-weight: 600; }
.tmini .rf .caret { display: inline-block; width: 1.5px; height: 1em; background: #fff; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
.tmini.typing .rf, .tmini.waiting .rf { display: inline-flex; }
.tmini.waiting .rf .caret { display: none; }
.tmini .out { display: none; align-self: flex-end; max-width: 94%; font-size: 12.5px; line-height: 1.5; background: var(--blue-soft); color: var(--ink); border-radius: 12px 4px 12px 12px; padding: 7px 10px; white-space: pre-line; }
.tmini.pasted .out, .tmini.sent .out { display: block; animation: paste .2s ease-out both; }
.tmini.sent .out { background: var(--blue); color: #fff; }
.tmini-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 8px 12px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); }
.tmini-foot .st { font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.tmini-foot .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.tmini.sent .tmini-foot .st { color: var(--ok); }
.tmini.sent .tmini-foot .st::before { background: var(--ok); }
.tmini-foot .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.tmini.sent .tmini-foot .num { color: var(--ok); }
.team-cards .card h3 { font-size: 1.05rem; }
@media (max-width: 1040px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .team { grid-template-columns: 1fr; } }
/* メール：送信後は Gmail のように前のメッセージを 1 行に畳む */
.demo-win[data-kind="mail"] .demo-body.sent .msg:not(.me) .txt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; background: transparent; padding: 0; color: var(--ink-3); }
.demo-win[data-kind="mail"] .demo-body.sent .msg:not(.me) { border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }

/* Unpublished builds remain readable, but never appear as active downloads. */
[data-download][aria-disabled="true"] { color: var(--ink-3); cursor: default; text-decoration: none; }
.btn[data-download][aria-disabled="true"] { background: var(--bg-3); border-color: var(--line); transform: none; box-shadow: none; }
