/* =================================================================
   ふわゆかグループ 配信ステータス — stylesheet
   テーマ：やわらかな空（トワイライト）。配信が始まると画面上部が灯る。
   ================================================================= */

/* ---- デザイントークン（ライト：明け方の空） ---------------------- */
:root {
  --bg-1: #eef1fb;
  --bg-2: #f6eef9;
  --bg-3: #eaf6fb;

  --surface:        rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-solid:  #ffffff;
  --border:         rgba(110, 122, 200, 0.16);
  --border-strong:  rgba(110, 122, 200, 0.28);

  --ink-1: #2a2c4f;
  --ink-2: #5f6390;
  --ink-3: #9296c2;

  --live:      #ff4d6d;
  --live-2:    #ff85a1;
  --live-soft: rgba(255, 77, 109, 0.12);

  --upcoming:      #5b6ee8;
  --upcoming-2:    #8d9bf4;
  --upcoming-soft: rgba(91, 110, 232, 0.12);

  --accent:   #8b7bf0;
  --accent-2: #f48fb6;

  --shadow-sm: 0 2px 10px rgba(60, 70, 140, 0.07);
  --shadow-md: 0 10px 30px rgba(60, 70, 140, 0.10);
  --shadow-lg: 0 24px 60px rgba(60, 70, 140, 0.16);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-num: "Outfit", var(--font-body);

  --maxw: 1180px;
}

/* ---- ダーク（夜空） --------------------------------------------- */
[data-theme="dark"] {
  --bg-1: #0c0f28;
  --bg-2: #141233;
  --bg-3: #0a1430;

  --surface:        rgba(28, 32, 64, 0.62);
  --surface-strong: rgba(32, 37, 74, 0.85);
  --surface-solid:  #1a1e40;
  --border:         rgba(150, 162, 235, 0.16);
  --border-strong:  rgba(150, 162, 235, 0.30);

  --ink-1: #edefff;
  --ink-2: #b7bce6;
  --ink-3: #7d83b4;

  --live-soft:     rgba(255, 77, 109, 0.20);
  --upcoming-soft: rgba(123, 138, 255, 0.20);

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.55);
}

/* ---- ベース ----------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-1);
  background:
    radial-gradient(1100px 700px at 12% -8%, var(--bg-2), transparent 60%),
    radial-gradient(900px 620px at 96% 4%, var(--bg-3), transparent 58%),
    linear-gradient(180deg, var(--bg-1), var(--bg-1));
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- 背景の漂う雲（アンビエント） ------------------------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sky span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.sky span:nth-child(1) { width: 420px; height: 420px; left: -6%;  top: 8%;  background: var(--accent);   opacity: .22; animation: drift 26s ease-in-out infinite; }
.sky span:nth-child(2) { width: 360px; height: 360px; right: -4%; top: 2%;  background: var(--accent-2); opacity: .20; animation: drift 32s ease-in-out infinite reverse; }
.sky span:nth-child(3) { width: 300px; height: 300px; left: 40%;  top: 60%; background: var(--upcoming-2); opacity: .16; animation: drift 38s ease-in-out infinite; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, 30px); }
}

/* ---- レイアウト ------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 34px) 80px;
}

/* PCではチャットを右に固定するため本文に余白 */
@media (min-width: 1080px) {
  .wrap { padding-right: 360px; }
}

/* ---- トップバー ------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-md);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: .02em;
  line-height: 1.15;
}
.brand__sub {
  font-size: .76rem;
  color: var(--ink-3);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-num);
  font-weight: 600;
}

.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  color: var(--ink-1);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .2s, background .2s, border-color .2s;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--border-strong); }

/* ---- 統計ピル（控えめに） --------------------------------------- */
.stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.pill b {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.pill span { font-size: .76rem; color: var(--ink-2); }
.pill.is-live  b { color: var(--live); }
.pill.is-watch b { color: var(--upcoming); }

/* ---- ヒーロー（配信状態でガラッと変わる） ----------------------- */
.hero {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(22px, 4vw, 38px);
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: background .5s ease, box-shadow .5s ease;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.hero__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: .01em;
}
.hero__meta { color: var(--ink-2); font-size: clamp(.92rem, 2vw, 1.05rem); }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--ink-1);
  color: var(--surface-solid);
  box-shadow: var(--shadow-md);
  transition: transform .2s, filter .2s;
}
.hero__cta:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* 配信中：朝焼けが灯る */
.hero.is-live {
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.22), transparent 50%),
    linear-gradient(125deg, #ff4d6d, #ff6f91 45%, #b56cf0);
  border-color: transparent;
  box-shadow: 0 24px 70px rgba(255, 77, 109, 0.40);
}
.hero.is-live .hero__eyebrow,
.hero.is-live .hero__meta { color: rgba(255,255,255,.92); }
.hero.is-live .hero__dot {
  background: #fff;
  animation: pulse 1.6s ease-out infinite;
}
.hero.is-live .hero__cta { background: #fff; color: var(--live); }

/* 予約あり：静かな夕暮れ */
.hero.is-upcoming {
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(125deg, #5b6ee8, #7e7bf0 55%, #b08cf2);
  border-color: transparent;
  box-shadow: 0 22px 60px rgba(91, 110, 232, 0.34);
}
.hero.is-upcoming .hero__eyebrow,
.hero.is-upcoming .hero__meta { color: rgba(255,255,255,.92); }
.hero.is-upcoming .hero__dot { background: #fff; }
.hero.is-upcoming .hero__cta { background: #fff; color: var(--upcoming); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* ---- チャンネルレール ------------------------------------------- */
.rail {
  display: flex;
  gap: clamp(14px, 3.5vw, 30px);
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 30px;
  scrollbar-width: thin;
}
.channel {
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
  cursor: pointer;
}
.channel__ring {
  width: 76px; height: 76px;
  margin: 0 auto 9px;
  border-radius: 50%;
  padding: 3px;
  background: var(--border-strong);
  transition: transform .2s;
}
.channel:hover .channel__ring { transform: translateY(-3px); }
.channel.is-live .channel__ring {
  background: linear-gradient(135deg, var(--live), var(--live-2));
  box-shadow: 0 0 0 2px rgba(255, 77, 109, .22), 0 6px 20px rgba(255, 77, 109, .45);
  animation: liveGlow 2s ease-in-out infinite;
}
.channel.is-upcoming .channel__ring {
  background: conic-gradient(from 0deg, var(--upcoming), var(--upcoming-2), var(--upcoming));
}
.channel__avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface-solid);
  background: var(--accent);
  display: grid; place-items: center;
}
.channel__avatar img { width: 100%; height: 100%; object-fit: cover; }
.channel__avatar span {
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
}
.channel__name {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel__tag {
  margin-top: 3px;
  font-family: var(--font-num);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.channel.is-live .channel__tag     { color: var(--live); }
.channel.is-upcoming .channel__tag { color: var(--upcoming); }

@keyframes liveGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 77, 109, .18), 0 4px 14px rgba(255, 77, 109, .35); }
  50%      { box-shadow: 0 0 0 3px rgba(255, 77, 109, .34), 0 8px 26px rgba(255, 77, 109, .62); }
}

/* ---- セクション見出し ------------------------------------------- */
.section { margin-bottom: 34px; }
.section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section__count {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: .78rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}
.section__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ---- カードグリッド --------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  overflow: hidden;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 11px;
  border-radius: 999px;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .08em;
  color: #fff;
  backdrop-filter: blur(4px);
}
.card__badge.live     { background: var(--live); }
.card__badge.upcoming { background: rgba(20, 22, 46, 0.74); }
.card__badge .bdot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.card__badge.live .bdot { animation: pulse 1.5s ease-out infinite; }

.card__viewers {
  position: absolute;
  bottom: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: .78rem;
  color: #fff;
  background: rgba(20, 22, 46, 0.74);
  backdrop-filter: blur(4px);
  font-variant-numeric: tabular-nums;
}

/* 配信予定：サムネ上にカウントダウン */
.card__countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(20,22,46,.15), rgba(20,22,46,.62));
}
.card__countdown .cd-num {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  font-variant-numeric: tabular-nums;
}
.card__countdown .cd-label {
  font-size: .72rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-num);
  font-weight: 600;
  text-align: center;
}

.card__body { padding: 15px 17px 17px; }
.card__title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card__ch {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.card__ch .ch-ava {
  width: 26px; height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .8rem;
  font-family: var(--font-display);
}
.card__ch .ch-ava img { width: 100%; height: 100%; object-fit: cover; }
.card__ch .ch-name {
  font-size: .85rem;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__when {
  font-family: var(--font-num);
  font-size: .8rem;
  font-weight: 600;
  color: var(--upcoming);
  white-space: nowrap;
}
.btn-watch {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  font-family: var(--font-display);
  color: #fff;
  background: var(--live);
  transition: transform .18s, filter .18s;
}
.btn-watch.alt { background: var(--upcoming); }
.btn-watch:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ---- 空状態 ----------------------------------------------------- */
.empty {
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border-strong);
  background: var(--surface);
  padding: 34px 24px;
  text-align: center;
  color: var(--ink-2);
}
.empty .emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.empty b { color: var(--ink-1); font-family: var(--font-display); }

/* ---- Discord ---------------------------------------------------- */
.discord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.dcard {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.dcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dcard__icon {
  width: 50px; height: 50px;
  border-radius: 15px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: linear-gradient(140deg, #5865f2, #7d8bff);
  color: #fff;
}
.dcard__main { flex: 1; min-width: 0; }
.dcard__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.dcard__desc { font-size: .82rem; color: var(--ink-2); }
.dcard__tag {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 2px 8px;
  border-radius: 6px;
}
.dcard__join {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .84rem;
  font-family: var(--font-display);
  color: #fff;
  background: #5865f2;
  transition: transform .18s, filter .18s;
}
.dcard__join:hover { transform: translateY(-1px); filter: brightness(1.07); }

/* ---- グローバルチャット ----------------------------------------- */
.chat {
  border-radius: var(--r-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.chat__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.chat__live {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}
.msg { display: flex; gap: 9px; }
.msg__ava {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: .82rem;
  font-family: var(--font-display);
}
.msg__main { min-width: 0; }
.msg__name { font-size: .78rem; font-weight: 700; color: var(--ink-1); }
.msg__name span { color: var(--ink-3); font-weight: 500; margin-left: 5px; font-family: var(--font-num); }
.msg__text { font-size: .9rem; color: var(--ink-1); word-break: break-word; }
.chat__empty { color: var(--ink-3); font-size: .88rem; text-align: center; margin: auto; }

.chat__foot { padding: 12px 14px; border-top: 1px solid var(--border); }
.chat__row { display: flex; gap: 8px; }
.chat__input {
  flex: 1;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--ink-1);
  border-radius: 12px;
  padding: 10px 13px;
  font-family: var(--font-body);
  font-size: .9rem;
  resize: none;
}
.chat__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chat__input:disabled { opacity: .6; cursor: not-allowed; }
.chat__send {
  flex: 0 0 auto;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: filter .18s, transform .18s;
}
.chat__send:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.chat__send:disabled { opacity: .5; cursor: not-allowed; }
.chat__login {
  display: block;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-2);
  margin-top: 10px;
}
.chat__login a { color: var(--accent); font-weight: 700; }
.chat__login .login-x,
.chat__login .login-bsky {
  display: inline-block;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--ink-1);
  font: 700 .8rem/1 var(--font-body);
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, border-color .15s, background .15s;
  margin: 3px 2px 0;
}
.chat__login .login-x:hover,
.chat__login .login-bsky:hover { transform: translateY(-1px); border-color: var(--accent); }
.chat__login .login-bsky { color: #0a7aff; }
.chat__note { font-size: .72rem; color: var(--ink-3); text-align: center; margin-top: 6px; }

/* Bluesky ログインフォーム */
.bsky-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--upcoming-soft);
}
.bsky-form__input {
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--ink-1);
  border-radius: 10px;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: .86rem;
}
.bsky-form__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bsky-form__row { display: flex; gap: 7px; }
.bsky-form__go,
.bsky-form__cancel {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 9px 10px;
  font: 700 .85rem/1 var(--font-display);
  cursor: pointer;
  transition: filter .18s, transform .18s;
}
.bsky-form__go { background: var(--accent); color: #fff; }
.bsky-form__go:hover { filter: brightness(1.07); transform: translateY(-1px); }
.bsky-form__cancel {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
}
.bsky-form__cancel:hover { border-color: var(--accent); }
.bsky-form__hint { font-size: .7rem; color: var(--ink-3); line-height: 1.5; }
.bsky-form__hint a { color: var(--accent); font-weight: 700; }

/* PC：チャットを右に固定 */
.chat-dock { margin-top: 8px; }
@media (min-width: 1080px) {
  .chat-dock {
    position: fixed;
    top: 22px;
    right: clamp(16px, 4vw, 34px);
    width: 320px;
    height: calc(100vh - 44px);
    margin: 0;
  }
  .chat-dock .chat { height: 100%; }
}

/* ---- フッター --------------------------------------------------- */
.foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--ink-3);
  line-height: 1.8;
}
.foot code {
  font-family: var(--font-num);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---- アクセシビリティ ------------------------------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- スマホ調整 ------------------------------------------------- */
@media (max-width: 640px) {
  .brand__mark { width: 40px; height: 40px; font-size: 19px; }
  .grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.6rem; }
  .stats { width: 100%; }
}
