/* =========================================================
   セツナコ 公式サイト
   キュビズムの切り絵（人物・街並み）が背景で動くデザイン。
   ・色は切り絵から：藍・コーラルレッド・ティール・イエロー・ラベンダー
   ・文字はシャープな角ゴシック（Zen Kaku Gothic New）＋英字は Syne
   ・角は丸めすぎず、三角形のアクセントで切り絵らしさを出す
   色を変えたいときは :root の値だけ変えれば全体が変わります。
   ========================================================= */
:root {
  --bg: #faf6ee;
  --surface: #fffdf8;
  --fg: #1f2a4d;
  --muted: #5f6782;
  --ink: #1f2a4d;
  --blue: #2f5fae;
  --coral: #ee5d6c;
  --yellow: #f5cd55;
  --teal: #2fa596;
  --lilac: #8f85d6;
  --orange: #f2994a;
  --tint-blue: #dfe8f7;
  --tint-coral: #fbe1e3;
  --tint-yellow: #fcf0c8;
  --tint-teal: #d6efe9;
  --tint-lilac: #e7e3f8;
  --r: 8px;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Syne", "Zen Kaku Gothic New", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- 背景の切り絵 ---------- */
.bg-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-actor { position: absolute; max-width: none; user-select: none; will-change: transform; }
/* 隠れるとき（ゆっくり引っこむ） */
.bg-face { bottom: 4vh; height: min(74vh, 720px); width: auto; transition: transform .6s cubic-bezier(.5, 0, .75, 0); }
.bg-face-left { left: 0; transform: translateX(-104%) rotate(-6deg); transform-origin: bottom left; }
.bg-face-right { right: 0; transform: translateX(104%) rotate(6deg); transform-origin: bottom right; }
.bg-town { left: 50%; bottom: 0; width: min(1320px, 130vw); height: auto; transform: translate(-50%, 104%); transition: transform .6s cubic-bezier(.5, 0, .75, 0); }
/* 顔を出すとき（ヒュッと勢いよく） */
.bg-face.is-peek, .bg-town.is-peek { transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.bg-face-left.is-peek { transform: translateX(-36%) rotate(2deg); }
.bg-face-right.is-peek { transform: translateX(36%) rotate(-2deg); }
.bg-town.is-peek { transform: translate(-50%, 46%); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.logo { flex-shrink: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 900; font-size: 1.15rem; text-decoration: none; letter-spacing: .16em; }
.logo-dot { width: 18px; height: 18px; background: linear-gradient(135deg, var(--coral) 50%, var(--blue) 50%); border: 2px solid var(--ink); border-radius: 3px; transform: rotate(45deg) scale(.85); }
.site-header nav { display: flex; gap: 4px; min-width: 0; font-size: .84rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a { text-decoration: none; padding: 4px 12px; border-radius: 4px; font-weight: 700; transition: background .2s, color .2s; }
.site-header nav a:hover { background: var(--ink); color: var(--surface); }

main { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* ---------- 一番上 ---------- */
.hero { position: relative; text-align: center; padding: 80px 0 72px; }
.avatar { margin: 0 auto 20px; width: 128px; height: 128px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--surface); box-shadow: 5px 5px 0 var(--ink); }
.eyebrow { margin: 0; font-family: var(--latin); font-weight: 700; font-size: .8rem; letter-spacing: .34em; text-transform: uppercase; color: var(--blue); }
h1 {
  font-weight: 900; font-size: clamp(2.8rem, 9vw, 4.4rem);
  display: inline-block; letter-spacing: .22em; padding-left: .22em; margin: 2px 0 14px; line-height: 1.25;
  filter: drop-shadow(4px 4px 0 var(--yellow));
}
.tagline { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; font-weight: 700; font-size: 1.12rem; }
.tagline span { background: var(--surface); border: 2px solid var(--ink); border-radius: 4px; padding: 2px 16px; }
.tagline span:last-child { background: var(--ink); color: var(--surface); }
.lead { color: var(--muted); max-width: 33em; margin: 0 auto 30px; padding: 4px 8px; background: color-mix(in srgb, var(--bg) 82%, transparent); border-radius: 6px; }
.hero-cta {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--coral); color: #fff; border: 2px solid var(--ink); border-radius: 6px;
  padding: 11px 28px; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.hero-cta:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

/* ---------- キラッと光る、切り絵の文字 ----------
   文字の中を斜めの面（藍・ティール・コーラル）で切り分け、白い光が横切る */
.kira, h1, h2 span, .logo-text {
  background-image:
    linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, .95) 49%, transparent 56%),
    linear-gradient(118deg, var(--ink) 0 33%, var(--blue) 33% 46%, var(--ink) 46% 62%, var(--teal) 62% 70%, var(--ink) 70% 86%, var(--coral) 86%);
  background-size: 300% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ink);
}
h1 { animation: kira 5.5s ease-in-out infinite; position: relative; }
h2.is-shine span { animation: kira 1.4s ease-out 1; }
.logo:hover .logo-text { animation: kira 1.2s ease-out 1; }
@keyframes kira { 0%, 60% { background-position: 160% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
.sparkle { position: absolute; -webkit-text-fill-color: var(--yellow); color: var(--yellow); font-size: .32em; letter-spacing: 0; animation: twinkle 2.6s ease-in-out infinite; pointer-events: none; }
.sparkle.sp1 { top: -.05em; right: -.35em; }
.sparkle.sp2 { bottom: .05em; left: -.15em; font-size: .22em; -webkit-text-fill-color: var(--teal); animation-delay: 1.3s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(90deg); } }

/* ---------- セクション共通 ---------- */
.section { padding: 56px 0; }
h2 { display: flex; align-items: center; gap: 14px; font-weight: 900; font-size: 1.6rem; letter-spacing: .1em; margin: 0 0 12px; }
h2::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; border: 2px solid var(--ink);
  background: conic-gradient(from 45deg, var(--coral) 0 25%, var(--yellow) 0 50%, var(--blue) 0 75%, var(--teal) 0);
  transform: rotate(45deg) scale(.8);
}
h2 span { padding: 0 2px; }
.note { color: var(--muted); font-size: .9rem; margin: 0 0 24px; display: inline-block; background: color-mix(in srgb, var(--bg) 82%, transparent); border-radius: 4px; padding: 0 4px; }
.about { padding: 24px 26px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); }
.about p { margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.tags li { font-size: .82rem; font-weight: 700; padding: 2px 12px; border-radius: 4px; border: 1.5px solid var(--ink); background: var(--tint-yellow); }
.tags li:nth-child(5n+2) { background: var(--tint-teal); } .tags li:nth-child(5n+3) { background: var(--tint-coral); }
.tags li:nth-child(5n+4) { background: var(--tint-blue); } .tags li:nth-child(5n) { background: var(--tint-lilac); }

/* ---------- 最近の更新 ---------- */
.updates { list-style: none; margin: 0; padding: 4px 20px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); }
.updates li + li { border-top: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.updates a { display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 16px; padding: 14px 2px; text-decoration: none; }
.updates a:hover .u-title { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.u-date { grid-column: 1; grid-row: 1; font-weight: 900; font-size: .86rem; }
.u-source { grid-column: 1; grid-row: 2; justify-self: start; font-size: .7rem; font-weight: 700; line-height: 1.7; padding: 0 8px; border-radius: 3px; background: var(--tint-teal); }
.u-source[data-src="vane"] { background: var(--tint-coral); }
.u-source[data-src="ameblo"] { background: var(--tint-yellow); }
.u-source[data-src="philo"] { background: var(--tint-lilac); }
.u-title { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 500; }
.u-paid { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 3px; background: var(--ink); color: var(--surface); font-size: .68rem; line-height: 1.7; vertical-align: 2px; }
.updates-empty { padding: 14px 4px; color: var(--muted); }

/* ---------- 活動 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  --tri: var(--blue);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.card::before { content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 46px; background: var(--tri); clip-path: polygon(0 0, 100% 0, 100% 100%); transition: width .2s, height .2s; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.card:hover::before { width: 60px; height: 60px; }
.c-coral { background: var(--tint-coral); --tri: var(--blue); }
.c-mustard { background: var(--tint-yellow); --tri: var(--coral); }
.c-teal { background: var(--tint-teal); --tri: var(--yellow); }
.c-lilac { background: var(--tint-lilac); --tri: var(--teal); }
.c-pink { background: var(--tint-blue); --tri: var(--lilac); }
.card-label { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .14em; padding: 0 10px; border-radius: 3px; background: var(--ink); color: var(--surface); }
.card-title { font-size: 1.3rem; font-weight: 900; letter-spacing: .04em; }
.card-text { font-size: .9rem; line-height: 1.75; flex: 1; }
.card-url { font-family: var(--latin); font-size: .8rem; font-weight: 700; color: var(--muted); }
.card-x { padding-right: 96px; }
.card-kanchan { position: absolute; right: 14px; bottom: 14px; width: 72px; height: 72px; border-radius: 6px; border: 2px solid var(--ink); transform: rotate(6deg); }

/* ---------- つくったもの ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.work {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.work:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.work img { aspect-ratio: 1200 / 630; width: 100%; object-fit: cover; border-bottom: 2px solid var(--ink); background: var(--tint-yellow); }
.work-title { padding: 12px 16px 0; font-weight: 700; }
.work-text { padding: 2px 16px 16px; color: var(--muted); font-size: .85rem; line-height: 1.7; }

.paid { position: relative; overflow: hidden; margin-top: 36px; padding: 24px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--ink); color: var(--surface); box-shadow: 5px 5px 0 var(--coral); }
.paid::after { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; background: conic-gradient(from 45deg, var(--yellow) 0 25%, var(--coral) 0 50%, var(--teal) 0 75%, var(--blue) 0); transform: rotate(45deg); opacity: .9; }
.paid-title { position: relative; margin: 0; font-weight: 900; font-size: 1.15rem; padding-right: 90px; }
.paid-text { position: relative; margin: 4px 0 16px; font-size: .86rem; color: #c9cee0; padding-right: 90px; }
.paid-list { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.paid-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); color: var(--fg); border-radius: 6px; text-decoration: none; transition: transform .15s; }
.paid-item:hover { transform: translateY(-2px); }
.paid-price { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 0 10px; border-radius: 3px; background: var(--yellow); color: var(--ink); }
.paid-name { font-weight: 900; font-size: 1.02rem; }
.paid-desc { font-size: .84rem; color: var(--muted); line-height: 1.7; }

.soon { padding: 28px; border: 2px dashed var(--ink); border-radius: var(--r); text-align: center; background: var(--surface); }
.soon p { margin: 0; }

/* ---------- セツナコAIのおへや ---------- */
.room {
  --shell: #fffaf3; --screen: #1f2a4d; --glow: #9ff2df;
  position: relative; overflow: hidden; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  aspect-ratio: 1600 / 977; border: 2.5px solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink);
  background: #dfe3ea url("room.webp") center / cover no-repeat;
}
.room:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.room > div, .room > p { position: absolute; }
/* 窓から差しこむ光がゆっくり流れる */
.room-window-light {
  left: 37.6%; top: 9.5%; width: 24.4%; height: 43.5%; overflow: hidden; pointer-events: none;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
}
.room-window-light::before {
  content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: rotate(18deg); animation: glint 9s ease-in-out infinite;
}
@keyframes glint { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.room-hint {
  left: 50%; top: 4%; transform: translateX(-50%); margin: 0; z-index: 3;
  padding: 2px 14px; border-radius: 4px; background: var(--ink); color: var(--surface);
  font-size: .78rem; font-weight: 700; white-space: nowrap; animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint { 50% { transform: translateX(-50%) translateY(-3px); } }
.room.is-engaged .room-hint { display: none; }

/* ロボット（キュビズムのロボット。胸にセツナコのロゴ） */
.robot {
  --x: 50;
  position: absolute; z-index: 2; bottom: 5%; left: calc(var(--x) * 1%);
  width: clamp(120px, 25%, 228px); transform: translateX(-50%);
  transition-property: left; transition-timing-function: linear;
}
.robot-body { position: relative; transform-origin: 50% 100%; filter: drop-shadow(0 6px 4px rgba(31, 42, 77, .22)); }
/* ポーズ画像（Codexで作成）。表示中の1枚だけ is-on になる */
.robot-body .pose { display: none; width: 100%; height: auto; }
.robot-body .pose.is-on { display: block; }
/* 歩き：2枚の絵を交互に切り替えて足を動かす */
.robot-body .pose.frame1.is-on { animation: frameA .56s steps(1) infinite; }
.robot-body .pose.frame2.is-on { position: absolute; left: 0; top: 0; animation: frameB .56s steps(1) infinite; }
@keyframes frameA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes frameB { 0% { opacity: 0; } 50% { opacity: 1; } }

.robot-bubble {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px;
  padding: 2px 12px; border-radius: 6px; background: var(--surface); border: 2px solid var(--ink);
  font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--fg); z-index: 3;
}
.robot-bubble:empty { display: none; }
.robot-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; background: var(--surface); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translate(-50%, -4px) rotate(45deg); }
.robot-zzz { display: none; position: absolute; right: 8%; top: 30%; font-family: var(--latin); font-weight: 800; color: var(--fg); }
.robot-zzz span { display: inline-block; animation: zzz 2.4s ease-in-out infinite; opacity: 0; }
.robot-zzz span:nth-child(2) { animation-delay: .5s; font-size: 1.1em; } .robot-zzz span:nth-child(3) { animation-delay: 1s; font-size: 1.3em; }
@keyframes zzz { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
.robot-waves { display: none; position: absolute; left: 34%; top: 20%; width: 0; height: 0; }
.robot-waves span { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border: 2.5px solid var(--coral); border-radius: 50%; animation: wave 1.4s ease-out infinite; }
.robot-waves span:nth-child(2) { animation-delay: .7s; }
@keyframes wave { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

/* 状態ごとの動き（絵1枚を、揺らす・傾ける・弾ませるで表現） */
.robot[data-state="idle"] .robot-body { animation: idle 3.2s ease-in-out infinite; }
@keyframes idle { 50% { transform: translateY(-3px) rotate(-1deg); } }
.robot[data-state="walking"] .robot-body { animation: walk .28s ease-in-out infinite; }
@keyframes walk { 50% { transform: translateY(-3px); } }
.robot[data-state="reading"] .robot-body { animation: read 4s ease-in-out infinite; }
@keyframes read { 50% { transform: rotate(-2deg); } }
.robot[data-state="sleeping"] .robot-body { filter: drop-shadow(0 6px 4px rgba(31, 42, 77, .22)) brightness(.92) saturate(.85); animation: breathe 3.6s ease-in-out infinite; }
.robot[data-state="sleeping"] .robot-zzz { display: block; }
@keyframes breathe { 50% { transform: scaleY(.975); } }
.robot[data-state="looking"] .robot-body { transform: rotate(2deg); transition: transform .4s; }
.robot[data-state="listening"] .robot-waves { display: block; }
.robot[data-state="listening"] .robot-body { transform: scale(1.04); transition: transform .25s; }
.robot[data-state="thinking"] .robot-body { animation: think 1.4s ease-in-out infinite; }
@keyframes think { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.robot[data-state="talking"] .robot-body { animation: talk .4s ease-in-out infinite alternate; }
@keyframes talk { from { transform: translateY(0) scale(1); } to { transform: translateY(-4px) scale(1.02, .99); } }

/* 会話の表示 */
.talk { margin-top: 18px; padding: 16px 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--ink); }
.talk-status { margin: 0; font-size: .88rem; color: var(--muted); font-weight: 500; }
.talk-lines:empty { display: none; }
.talk-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.line { max-width: 88%; padding: 8px 14px; border-radius: 8px; border: 2px solid var(--ink); font-size: .95rem; line-height: 1.8; overflow-wrap: anywhere; }
.line p { margin: 0; white-space: pre-wrap; }
.line-who { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); }
.line.you { align-self: flex-end; background: var(--tint-blue); border-bottom-right-radius: 2px; }
.line.ai { align-self: flex-start; background: var(--tint-yellow); border-bottom-left-radius: 2px; }
.line.interim { opacity: .65; border-style: dashed; }
.line a { color: inherit; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
.talk-form { display: flex; gap: 8px; margin-top: 12px; }
.talk-form[hidden] { display: none; }
.talk-form input { flex: 1; min-width: 0; font: inherit; color: var(--fg); background: var(--bg); border: 2px solid var(--ink); border-radius: 6px; padding: 8px 14px; }
.talk-form button { font: inherit; font-weight: 700; cursor: pointer; color: #fff; background: var(--coral); border: 2px solid var(--ink); border-radius: 6px; padding: 8px 18px; }

.room-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.voice-toggle { font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--surface); background: var(--blue); border: 2px solid var(--ink); border-radius: 6px; padding: 4px 14px; }
.voice-toggle[aria-pressed="false"] { background: var(--surface); color: var(--muted); }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topics-label { font-size: .78rem; color: var(--muted); font-weight: 700; }
.topics button { font: inherit; font-size: .8rem; cursor: pointer; color: var(--fg); background: var(--surface); border: 1.5px solid var(--ink); border-radius: 4px; padding: 3px 12px; }
.topics button:hover { background: var(--tint-yellow); }
.room-notes { margin: 18px 4px 0; padding: 12px 14px 12px 2em; color: var(--muted); font-size: .76rem; line-height: 1.8; background: color-mix(in srgb, var(--bg) 88%, transparent); border-radius: 6px; }

/* ---------- フッター ---------- */
.site-footer { text-align: center; padding: 40px 16px 56px; font-size: .85rem; border-top: 2px solid var(--ink); margin-top: 32px; background: var(--ink); color: var(--surface); }
.site-footer p { margin: 4px 0; }
.footer-logo { font-weight: 900; font-size: 1.3rem; letter-spacing: .2em; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a:hover { color: var(--yellow); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
  .site-header { padding: 8px 12px; }
  .site-header nav { font-size: .76rem; gap: 2px; }
  .site-header nav a { padding: 4px 8px; }
  .hero { padding: 56px 0 52px; }
  .updates { padding: 2px 12px; }
  .updates a { grid-template-columns: 5.6em 1fr; gap: 2px 10px; }
  .bg-face { height: 52vh; bottom: 6vh; }
  .bg-face-left.is-peek { transform: translateX(-46%) rotate(2deg); }
  .bg-face-right.is-peek { transform: translateX(46%) rotate(-2deg); }
  .bg-town { width: 170vw; }
  .bg-town.is-peek { transform: translate(-50%, 52%); }
  .room { aspect-ratio: 4 / 3; }
  .room-window-light { left: 34.8%; width: 30%; }
  .robot { width: clamp(93px, 29%, 147px); bottom: 3%; }
  .line { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .robot { transition-duration: 0s !important; }
  .bg-stage { display: none; }
}

/* のんびり行動（小物のポーズ） */
.robot:is([data-state="phone"], [data-state="plush"], [data-state="coffee"]) .robot-body { animation: idle 3.2s ease-in-out infinite; }
.robot:is([data-state="reading-sit"], [data-state="laptop"]) .robot-body { animation: read 5s ease-in-out infinite; }
.robot[data-state="music"] .robot-body { animation: groove 1s ease-in-out infinite; }
@keyframes groove { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-2px); } }
