/* Pastay 公式サイト。ビルド不要の静的ページ。
   明るい水色の地に、アプリのアイコンの青と黄を差し色にする。角は大きく丸め、やわらかい印象にする */

:root {
  --blue: #2554e8;
  --blue-deep: #1a2fa0;
  --blue-soft: #dfe9ff;
  --yellow: #ffc23d;
  --yellow-soft: #fff1c9;
  --orange: #ff8a1f;
  --red: #e5484d;

  --bg: #eef4ff;
  --bg-tint: #e3ecff;
  --surface: #ffffff;
  --text: #141a33;
  --text-sub: #5a6385;
  --line: #d9e2f6;
  --shadow: 0 18px 40px -22px rgba(37, 84, 232, 0.45);

  --radius-l: 28px;
  --radius: 20px;
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.4em;
}
.container { width: min(1040px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(720px, 100% - 32px); }
.sp { display: none; }

/* ボタン */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(37, 84, 232, 0.9);
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { transform: translateY(-2px); background: #1d47d6; }
.button-small { padding: 8px 18px; font-size: 14px; box-shadow: none; }
.button-light { background: #fff; color: var(--blue); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.5); }
.button-light:hover { background: #fff; }

/* ヘッダー：浮かんだ丸いバー */
.site-header { position: sticky; top: 12px; z-index: 10; padding: 0 16px; }
.header-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(760px, 100%);
  margin: 12px auto 0;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 10px 30px -18px rgba(20, 26, 51, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: 0.01em; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--text-sub); }
.nav a:hover { color: var(--text); }
.lang-switch { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-sub); text-decoration: none; white-space: nowrap; }
.lang-switch:hover { color: var(--text); border-color: var(--text-sub); }
.nav + .lang-switch { margin-left: -6px; }

/* ヒーロー：太い見出しを主役に、すぐ下にダウンロードと安心の一言を並べる */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 72px; text-align: center; }
/* 近未来の感じ：奥へ流れていく方眼の床と、見出しの後ろの光 */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -50%;
  right: -50%;
  bottom: -8%;
  height: 72%;
  background-image:
    linear-gradient(rgba(37, 84, 232, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 84, 232, 0.2) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  animation: grid-move 5s linear infinite;
  pointer-events: none;
}
@keyframes grid-move { to { background-position: 0 56px, 0 56px; } }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 40px;
  left: 50%;
  width: min(900px, 120%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(138, 77, 255, 0.22), rgba(37, 84, 232, 0.1) 55%, transparent);
  filter: blur(10px);
  pointer-events: none;
}
.hero-head { display: grid; justify-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px -14px rgba(37, 84, 232, 0.6);
  font-size: 13px;
  font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.eyebrow img { border-radius: 7px; }
/* 最初の画面のロゴ：ダウンロードの欄と同じく目で追いかけるアイコンを大きく置き、ゆっくり浮かせる */
.peek-hero { margin: 0 0 20px; filter: drop-shadow(0 18px 26px rgba(37, 84, 232, 0.45)); }
.peek-hero:not(.happy):not(.angry):not(.wink) { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.eyebrow span { padding: 1px 10px; border-radius: 999px; background: var(--yellow); color: var(--blue-deep); font-size: 12px; }
.headline {
  margin: 22px 0 0;
  font-size: clamp(36px, 7.4vw, 76px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
}
:lang(ja) .headline { line-height: 1.28; letter-spacing: -0.01em; font-size: clamp(32px, 6.4vw, 66px); }
.accent {
  display: inline-block;
  padding: 0 0.04em;
  background: linear-gradient(100deg, var(--blue), #8a4dff, #ff8a1f, #8a4dff, var(--blue)) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(138, 77, 255, 0.4));
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 150% 0; } }
.subhead { max-width: 38em; margin: 22px auto 0; font-size: clamp(16px, 2vw, 19px); line-height: 1.7; color: var(--text-sub); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 32px; }
.button-big { padding: 18px 38px; font-size: 18px; }
.button-big::before { content: ""; width: 18px; height: 18px; margin-right: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13M6 11l6 6 6-6M4 21h16'/%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' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13M6 11l6 6 6-6M4 21h16'/%3E%3C/svg%3E") center / contain no-repeat; }
.button-ghost { font-weight: 800; color: var(--blue); text-decoration: none; }
.button-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; margin: 24px 0 0; padding: 0; list-style: none; font-family: ui-monospace, "SF Mono", Menlo, "Hiragino Sans", monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-sub); }
.badges { gap: 6px 22px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--blue); opacity: 0.7; }
:lang(ja) .badges { font-family: var(--font); letter-spacing: 0.02em; }

/* Product Hunt から来た人への帯 */
.ph-banner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 48px; position: relative; background: #ff6154; color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.ph-banner[hidden] { display: none; }
.ph-banner p { margin: 0; }
.ph-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

.try-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 64px 0 18px;
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -14px rgba(37, 84, 232, 0.6);
  color: var(--blue);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.try-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}
.try-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { transform: scale(2.6); opacity: 0; } }

/* お試しチェック */
.demo {
  display: grid;
  gap: 4px;
  max-width: 780px;
  margin: 0 auto;
  padding: 8px;
  border-radius: var(--radius-l);
  background: var(--bg-tint);
  text-align: left;
  box-shadow: var(--shadow);
}
.demo-input, .demo-result { padding: 16px 18px; border-radius: 22px; background: var(--surface); }
.demo-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; }
.demo textarea {
  width: 100%;
  min-height: 92px;
  border: none;
  outline: none;
  resize: vertical;
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
}
.demo-result { background: #fbfcff; border: 1px dashed var(--line); }
.demo-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.demo-status { font-weight: 800; color: var(--red); font-size: 14px; }
.demo-status::before { content: "⚠︎ "; }
.demo-status.ok { color: #1f9d55; }
.demo-status.ok::before { content: "✓ "; }
.switch { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--text-sub); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch-track { position: relative; width: 36px; height: 22px; border-radius: 999px; background: #cdd5ea; transition: background 0.2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.demo-tags:empty { display: none; }
.demo-tags li { padding: 2px 10px; border-radius: 999px; background: #ffe7d1; color: #b65400; font-size: 12px; font-weight: 700; }
.demo-preview { white-space: pre-wrap; word-break: break-all; font-size: 14px; line-height: 1.8; color: var(--text); }
.demo-preview mark { background: rgba(255, 138, 31, 0.28); color: inherit; border-radius: 4px; padding: 0 2px; text-decoration: underline 2px rgba(255, 138, 31, 0.8); text-underline-offset: 3px; }
.demo-preview mark.masked { background: var(--blue-soft); color: var(--blue-deep); text-decoration: none; font-weight: 700; }
.demo-preview .placeholder { color: var(--text-sub); }
.demo-note { margin: 6px 12px 4px; font-size: 12px; color: var(--text-sub); }

.demo { position: relative; }
/* デモの縁を光が一周する */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.demo::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--angle), transparent 0 55%, #5b8cff 70%, #a875ff 80%, #ffb054 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: orbit 5s linear infinite;
  pointer-events: none;
}
@keyframes orbit { to { --angle: 360deg; } }
/* チェック中：結果の欄を光の帯が上から下へなぞる */
.demo-result { position: relative; overflow: hidden; }
.demo-result::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(91, 140, 255, 0.28) 70%, rgba(168, 117, 255, 0.7) 98%, transparent);
  opacity: 0;
  pointer-events: none;
}
.demo-result.scanning::after { opacity: 1; animation: scan 0.9s ease-in-out infinite; }
@keyframes scan { to { top: 110%; } }
.demo-status.scan { color: var(--blue); font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; }
.demo-status.scan::before { content: "◌ "; }
.demo-island {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 12px;
  border-radius: 0 0 24px 24px;
  background: #000;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 28px rgba(255, 138, 31, 0.55), 0 16px 30px -10px rgba(255, 138, 31, 0.65);
  white-space: nowrap;
  transform: translateX(-50%);
  clip-path: inset(0 40% 100% 40% round 0 0 12px 12px);
  transition: clip-path 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
  pointer-events: none;
}
.demo-island > * { opacity: 0; transition: opacity 0.2s ease; }
.demo-island.show { clip-path: inset(0 0 0 0 round 0 0 24px 24px); }
.demo-island.show > * { opacity: 1; transition-delay: 0.15s; }
.demo-key {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 22px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  font: 800 15px/1 var(--font);
  color: var(--text);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.demo-key.show { opacity: 1; transform: scale(1); }
.demo-key.press { transform: scale(0.9) translateY(2px); border-bottom-width: 1px; background: var(--blue-soft); }
.demo-status.idle { color: var(--text-sub); }
.demo-status.idle::before { content: ""; }
.demo-preview.animate mark { animation: mark-in 0.5s ease both; }
.demo-preview.animate mark.masked { animation: masked-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@keyframes mark-in { from { background-color: transparent; text-decoration-color: transparent; } }
@keyframes masked-in { from { transform: scale(0.6); opacity: 0; } }
.demo-preview mark.masked { display: inline-block; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--text-sub); }

/* セクション共通 */
.section { padding: 88px 0; }
.section-title { margin: 0 0 16px; text-align: center; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.45; font-weight: 900; }
.section-lead { max-width: 36em; margin: 0 auto 44px; text-align: center; color: var(--text-sub); }

/* できること：絵と文を左右交互に並べる */
#features .section-title { margin-bottom: 56px; }
.feature-list { display: grid; gap: 72px; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.feature:nth-child(even) .feature-art { order: 2; }
.feature-no { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 40px; font-weight: 900; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.feature-no em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--text-sub); letter-spacing: 0.06em; }
.feature h3 { margin: 0 0 12px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.45; font-weight: 900; }
.feature p { margin: 0; color: var(--text-sub); font-size: 16px; }
.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 280px;
  border-radius: 18px;
  /* 方眼の地。画面の見本を置く台のように見せる */
  background-color: #d9e6ff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}
.art-island { position: relative; grid-template-rows: auto 1fr; place-items: start center; }
.chat-window {
  align-self: end;
  width: min(340px, 86%);
  margin-bottom: 22px;
  padding: 10px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 30px -18px rgba(20, 26, 51, 0.5);
  text-align: left;
}
.chat-title { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; color: var(--text-sub); }
.chat-input { padding: 8px 10px; border-radius: 10px; background: var(--bg); font-size: 12px; }
.chat-input i { display: inline-block; width: 2px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.art-confirm { background-color: #ffe4c6; }
.art-modes { background-color: #e0d7ff; }
.art-history { background-color: #cdeee6; }

.island {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 18px 14px;
  border-radius: 0 0 24px 24px;
  background: #000;
  color: #fff;
  align-self: start;
  box-shadow: 0 14px 30px -10px rgba(255, 138, 31, 0.6);
  animation: island 4.5s ease-in-out infinite;
}
.island > * { animation: island-content 4.5s ease-in-out infinite; }
@keyframes island-content {
  0%, 16% { opacity: 0; }
  24%, 78% { opacity: 1; }
  86%, 100% { opacity: 0; }
}
.island-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--orange); font-weight: 900; }
.island-text { display: grid; text-align: left; line-height: 1.35; }
.island-text strong { font-size: 13px; }
.island-text small { font-size: 11px; opacity: 0.65; }
@keyframes island {
  0%, 10% { clip-path: inset(0 32% 72% 32% round 0 0 12px 12px); }
  22%, 80% { clip-path: inset(0 0 0 0 round 0 0 24px 24px); }
  92%, 100% { clip-path: inset(0 32% 72% 32% round 0 0 12px 12px); }
}

.confirm { width: min(320px, 86%); padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.4); font-size: 12px; text-align: left; }
.confirm-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.stop { width: 22px; height: 22px; background: var(--red); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.confirm-text { margin: 10px 0; padding: 8px 10px; border-radius: 8px; background: var(--bg); font-family: ui-monospace, Menlo, monospace; }
.confirm-text .hit { background: rgba(255, 138, 31, 0.3); text-decoration: underline; }
.confirm-buttons { display: flex; gap: 6px; justify-content: flex-end; }
.confirm-buttons span { padding: 4px 9px; border-radius: 7px; background: var(--bg); white-space: nowrap; }
.confirm-buttons span:first-child { margin-right: auto; }
.confirm-buttons .primary { background: var(--blue); color: #fff; }

.modes { display: grid; gap: 10px; width: min(260px, 80%); }
.mode { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.75); font-weight: 700; font-size: 14px; }
.mode::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b9addf; flex: none; }
.mode.on::before { border: 4px solid #7650e6; }
.mode.on { background: #fff; outline: 2px solid #7650e6; box-shadow: 0 10px 20px -12px rgba(118, 80, 230, 0.8); }

.history { width: min(300px, 86%); padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.35); font-size: 12px; }
.history-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.history-row + .history-row { border-top: 1px solid var(--line); }
.history-row small { color: var(--text-sub); white-space: nowrap; }
.history-row.warn small { color: var(--orange); font-weight: 700; }
.history-lock { margin-top: 8px; padding: 6px; border-radius: 8px; background: #e8f7f3; color: #12795f; text-align: center; font-weight: 700; }
.history-lock::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%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' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ⌘V の瞬間に */
.moment { background: var(--surface); }
.marker { background: linear-gradient(transparent 58%, var(--yellow-soft) 58%); padding: 0 4px; }
.kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.kinds li { padding: 8px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }

/* 安心の理由 */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.trust-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--bg); color: var(--blue); }
.trust h3 { margin: 0 0 6px; font-size: 18px; }
.trust p { margin: 0; color: var(--text-sub); font-size: 14px; }
.trust-note { margin: 24px 0 0; text-align: center; font-size: 13px; color: var(--text-sub); }

/* ダウンロード */
.download { padding-top: 32px; }
.download-card {
  display: grid;
  justify-items: center;
  padding: 48px 24px;
  border-radius: 36px;
  background: radial-gradient(80% 80% at 50% 0%, #ffffff, #f4f8ff);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.download-card img { border-radius: 22px; margin-bottom: 14px; }
/* 目で追いかけるアイコン：一時停止の 2 本が目になって、カーソルを見る。ときどき瞬きする */
.peek { display: block; margin-bottom: 14px; overflow: visible; cursor: pointer; filter: drop-shadow(0 10px 14px rgba(37, 84, 232, 0.35)); transition: transform 0.2s ease; -webkit-tap-highlight-color: transparent; }
.peek:hover { transform: translateY(-2px) rotate(-3deg); }
.peek-eye { transform-box: fill-box; transform-origin: center; transition: transform 0.09s ease-in; }
.peek.blink .peek-eye { transform: scaleY(0.12); }
.peek.wink .peek-eye:last-child { transform: scaleY(0.12); }
.peek.wink { animation: peek-hop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes peek-hop { 40% { transform: translateY(-10px) rotate(4deg); } }
/* ダウンロードを押したら喜ぶ：目が「^ ^」になって弾む */
.peek-happy { display: none; }
.peek.happy .peek-eyes { display: none; }
.peek.happy .peek-happy { display: inline; }
.peek.happy { animation: peek-joy 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 3; }
@keyframes peek-joy { 45% { transform: translateY(-14px) rotate(-6deg) scale(1.06); } }
/* 押したボタンから、喜んだ小さなアイコンと光の粒が飛び出す */
.joy { position: fixed; z-index: 50; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; animation: joy-up 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; filter: drop-shadow(0 6px 10px rgba(37, 84, 232, 0.4)); }
@keyframes joy-up {
  0% { transform: translateY(10px) scale(0.3); opacity: 0; }
  25% { transform: translateY(-34px) scale(1.1) rotate(-8deg); opacity: 1; }
  45% { transform: translateY(-46px) scale(1) rotate(6deg); }
  80% { opacity: 1; }
  100% { transform: translateY(-80px) scale(0.9) rotate(0); opacity: 0; }
}
.spark { position: fixed; z-index: 49; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 2px; pointer-events: none; animation: spark 0.9s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(180deg) scale(0.4); opacity: 0; } }
.download-card h2 { margin: 0 0 22px; font-size: clamp(22px, 3vw, 28px); font-weight: 900; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; color: var(--text-sub); }
.steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--yellow); color: var(--blue-deep); font-size: 12px; }

/* よくある質問 */
.faq .section-title { margin-bottom: 36px; }
details { border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
summary { position: relative; padding: 18px 52px 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); transition: transform 0.2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--text-sub); font-size: 15px; }

/* 最後の呼びかけ */
.closing { padding: 72px 0; background: linear-gradient(160deg, var(--blue), var(--blue-deep)); color: #fff; text-align: center; }
.closing-title { margin: 0 0 24px; font-size: clamp(24px, 3.6vw, 32px); font-weight: 900; letter-spacing: 0.02em; }

/* フッター */
.site-footer { padding: 40px 0; background: var(--surface); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: start; }
.footer-brand { display: grid; gap: 6px; }
.footer-brand small { color: var(--text-sub); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: var(--text-sub); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.copyright { grid-column: 1 / -1; color: var(--text-sub); }

/* ガラス：後ろの色のにじみが透けて見える、半透明の板 */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(38% 32% at 12% 18%, rgba(110, 150, 255, 0.55), transparent 70%),
    radial-gradient(34% 30% at 88% 12%, rgba(185, 140, 255, 0.45), transparent 70%),
    radial-gradient(40% 34% at 82% 78%, rgba(255, 196, 92, 0.42), transparent 70%),
    radial-gradient(36% 30% at 18% 86%, rgba(110, 220, 210, 0.38), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.demo, .trust, details, .download-card, .feature-art, .kinds li, .try-tag, .site-footer {
  background-color: rgba(255, 255, 255, 0.46);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 22px 44px -26px rgba(30, 50, 140, 0.4);
}
.demo-input { background: rgba(255, 255, 255, 0.78); }
.demo-result { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.9); }
.feature-art { background-image: none; }
.art-island { background-color: rgba(120, 160, 255, 0.28); }
.art-confirm { background-color: rgba(255, 170, 90, 0.26); }
.art-modes { background-color: rgba(160, 130, 255, 0.26); }
.art-history { background-color: rgba(90, 200, 175, 0.26); }
.moment { background: transparent; }
.site-footer { border-width: 1px 0 0; }
.download-card { background-image: none; border-width: 1px; }

/* 狭い画面 */
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature-art { order: 0; }
  .feature-list { gap: 56px; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav + .lang-switch { margin-left: auto; }
  .hero { padding-top: 40px; }
  .sp { display: inline; }
  .feature-art { height: 220px; }
  .demo textarea { min-height: 150px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .peek, .peek-eye, .peek-z text, .page-island, .r, .hero::before, .accent, .demo::after, .demo-result::after, .demo-island, .demo-key, .island, .island > *, .chat-input i, .try-dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* 英語版：単語の途中で折り返さない */
:lang(en) .demo-preview { word-break: normal; overflow-wrap: anywhere; }
:lang(en) .subhead, :lang(en) .section-title, :lang(en) .feature h3 { text-wrap: balance; }

/* ===== 隠し要素 ===== */

/* アイコンの機嫌：眠る（目を閉じて z）・目を回す・怒る（「!」の顔で震える） */
.peek-bang, .peek-z { display: none; }
.peek.sleep .peek-eye { transform: scaleY(0.12); }
.peek.sleep .peek-z { display: inline; }
.peek-z text { animation: snooze 2.4s ease-in-out infinite; }
.peek-z text + text { animation-delay: 0.6s; }
@keyframes snooze { 0%, 100% { opacity: 0.2; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-3px); } }
.peek.dizzy .peek-eye { animation: dizzy 0.5s linear infinite; }
.peek.dizzy .peek-eye:last-child { animation-direction: reverse; }
@keyframes dizzy { to { transform: rotate(360deg); } }
.peek.angry .peek-eyes, .peek.angry .peek-happy { display: none; }
.peek.angry .peek-bang { display: inline; }
.peek.angry { animation: shake 0.08s linear 8; }
@keyframes shake { 25% { transform: translateX(-4px) rotate(-3deg); } 75% { transform: translateX(4px) rotate(3deg); } }

/* ページの上に出るお知らせ（Mac のカメラの所から出るもの）。⌘V や隠しコマンドに反応して出る */
.page-island {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 14px 22px 14px 16px;
  border-radius: 0 0 26px 26px;
  background: #000;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 30px rgba(91, 140, 255, 0.45), 0 18px 34px -12px rgba(0, 0, 0, 0.5);
  text-align: left;
  line-height: 1.4;
  transform: translateX(-50%);
  clip-path: inset(0 42% 100% 42% round 0 0 14px 14px);
  transition: clip-path 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
  cursor: default;
}
.page-island.show { clip-path: inset(0 0 0 0 round 0 0 26px 26px); }
.page-island.link { cursor: pointer; }
.page-island > * { opacity: 0; transition: opacity 0.2s ease; }
.page-island.show > * { opacity: 1; transition-delay: 0.15s; }
.page-island .island-icon { flex: none; }
.page-island.ok .island-icon { background: #22c55e; }
.page-island.info .island-icon { background: var(--blue); }
.page-island strong { display: block; font-size: 14px; }
.page-island small { display: block; font-size: 12px; opacity: 0.7; }

/* 「secret」と打つと、ページの文章を全部伏せる */
.r { transition: background-color 0.18s ease, color 0.18s ease; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.redacted .r { background-color: #141a33; color: transparent !important; -webkit-text-fill-color: transparent; }
.redacted .button .r { background-color: rgba(255, 255, 255, 0.9); }
