/* =========================================
   fuu (by FUNNY) プロトタイプ 共通スタイル
   v1.0 / 2026-05-26
   準拠: docs/04-design-system.md
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  /* 基本 */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --surface-gray: #F1F2F4;
  --border-light: #E4E4E7;

  /* ブランド */
  --brand-blue: #0084FF;
  --brand-blue-dark: #006FDB;
  --brand-blue-subtle: #E3F2FF;

  /* fuu ブランドグラデ (signature: pink → purple → blue) — primary CTA に統一 */
  --brand-gradient: linear-gradient(135deg, #EC4899 0%, #A855F7 50%, #3B82F6 100%);
  --brand-gradient-hover: linear-gradient(135deg, #DB2777 0%, #9333EA 50%, #2563EB 100%);
  --brand-gradient-shadow: 0 8px 20px rgba(168, 85, 247, 0.30);

  /* AI */
  --ai-accent: #8B5CF6;

  /* テキスト */
  --text-primary: #18181B;
  --text-secondary: #71717A;
  --text-tertiary: #A1A1AA;
  --text-on-brand: #FFFFFF;

  /* セマンティック */
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text-primary);
  background: #F4F4F5;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* スクロール可能領域は iOS の慣性スクロールを有効化 */
.scrollable,
.screen-body,
.messages,
.draft-card,
.container {
  -webkit-overflow-scrolling: touch;
}

/* =========================================
   iPhone 15 Pro フレーム
   ========================================= */

.phone-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.phone-frame {
  width: 393px;
  height: 852px;
  background: #000;
  border-radius: 56px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 12px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ステータスバー（9:41） */
.status-bar {
  height: 54px;
  padding: 18px 32px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.status-bar .time {
  letter-spacing: -0.3px;
}

.status-bar .icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ダイナミックアイランド */
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 36px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
}

/* ホームインジケータ */
.home-indicator {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: var(--text-primary);
  border-radius: 3px;
  z-index: 10;
}

/* 画面本体（スクロール可能領域） */
.screen-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.screen-body::-webkit-scrollbar {
  width: 0;
}

/* =========================================
   ヘッダー
   ========================================= */

.app-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.app-header .left,
.app-header .right {
  width: 40px;
  display: flex;
  align-items: center;
}

.app-header .right {
  justify-content: flex-end;
}

.app-header .title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

/* =========================================
   ボトムナビゲーション
   ========================================= */

.bottom-nav {
  height: 76px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: stretch;
  padding: 8px 0 20px;
  flex-shrink: 0;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
}

.bottom-nav-item.active {
  color: var(--brand-blue);
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

/* =========================================
   吹き出し
   ========================================= */

.bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 22px;
  font-size: 15px;
  line-height: 1.45;
  word-wrap: break-word;
}

.bubble-incoming {
  background: var(--surface-gray);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.bubble-outgoing {
  background: var(--brand-blue);
  color: var(--text-on-brand);
  border-bottom-right-radius: 6px;
}

.bubble-timestamp {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* =========================================
   カード
   ========================================= */

.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* =========================================
   ボタン
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  border-radius: 28px;
  height: 52px;
  padding: 0 32px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--brand-gradient-shadow);
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms ease, filter 150ms ease;
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.38);
}

.btn-primary:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

/* =========================================
   セッティング行
   ========================================= */

.settings-section {
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  margin: 0 16px 16px;
  overflow: hidden;
}

.settings-section-label {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0 16px 8px;
  margin: 20px 0 0;
  font-weight: 500;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  background: var(--bg-primary);
  text-decoration: none;
  color: var(--text-primary);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row .label {
  font-size: 15px;
  color: var(--text-primary);
}

.settings-row .value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--brand-blue);
}

.settings-row .chevron {
  color: var(--text-tertiary);
}

/* =========================================
   ユーティリティ
   ========================================= */

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-brand { color: var(--brand-blue); }
.text-ai { color: var(--ai-accent); }

.bg-brand { background: var(--brand-blue); }
.bg-brand-subtle { background: var(--brand-blue-subtle); }
.bg-surface { background: var(--surface-gray); }

.avatar {
  border-radius: 9999px;
  object-fit: cover;
  background: linear-gradient(135deg, #FFB088, #FF6B6B);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

/* スクロール可能なエリア */
.scrollable {
  overflow-y: auto;
  overflow-x: hidden;
}

.scrollable::-webkit-scrollbar {
  width: 0;
}
</content>
</invoke>
/* =========================================
   Accessibility refinements (v2026-06)
   ========================================= */

/* キーボードユーザにだけ focus ring を見せる。
   マウスクリック・タッチでは見せない (Apple HIG 寄り)。 */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}
/* button / a で border-radius が既にある場合は inherit */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline-offset: 2px;
}

/* タップターゲット最小 44x44 (iOS / WCAG 推奨) */
button,
a[role="button"],
[role="button"] {
  min-width: 28px;
  min-height: 28px;
}

/* prefers-reduced-motion: 過剰な animation を抑制 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 高コントラストモード対応 (Windows / 一部 iOS) */
@media (prefers-contrast: more) {
  *:focus-visible {
    outline-width: 3px;
    outline-color: #5b21b6;
  }
}

/* skip-to-content (将来) — 視覚的に隠して focus 時のみ出現 */
.fuu-skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #1A1A1F;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: top 160ms ease;
}
.fuu-skip-link:focus-visible {
  top: 8px;
}
