/* Ramat - カスタムスタイル */

/* フォント設定 */
.font-zen {
  font-family: 'Zen Maru Gothic', sans-serif;
}

.font-quicksand {
  font-family: 'Quicksand', sans-serif;
}

body {
  font-family: 'Zen Maru Gothic', sans-serif;
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(251, 113, 133, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 113, 133, 0.5);
}

/* グラスモーフィズム効果 */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* タイピングアニメーション */
@keyframes fadeInChar {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.char {
  animation: fadeInChar 0.1s ease-out forwards;
}

/* 思考中アニメーション（3つの点） */
@keyframes thinkingDot {
  0%, 20% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

.thinking-dot {
  animation: thinkingDot 1.4s infinite;
}

.thinking-dot:nth-child(1) {
  animation-delay: 0s;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* パルスアニメーション（ハート） */
@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.heart-pulse {
  animation: heartPulse 1.5s ease-in-out infinite;
}

/* スライドインアニメーション（下から） */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-up {
  animation: slideInUp 0.3s ease-out forwards;
}

/* フェードインアニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* グラデーションマスク（上部が透明に） */
.gradient-mask-t {
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
}

/* ボタンのアクティブエフェクト */
.btn-active {
  transition: all 0.15s ease;
}

.btn-active:active {
  transform: scale(0.95);
}

/* チャット吹き出しのテール */
.bubble-tail-left::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 8px 0;
  border-color: transparent rgba(255, 255, 255, 0.9) transparent transparent;
}

.bubble-tail-right::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 8px;
  border-color: transparent transparent transparent #FB7185;
}

/* PWA対応 - セーフエリア */
body {
  padding-bottom: env(safe-area-inset-bottom);
}

/* 入力フィールドのフォーカスリング */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}

/* ローディングスピナー */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* タブバーのアクティブインジケーター */
.tab-indicator {
  width: 4px;
  height: 4px;
  background: #FB7185;
  border-radius: 50%;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* 召喚画面の背景グラデーション */
.summon-bg {
  background: linear-gradient(to bottom, #312e81, #1e293b);
}

/* 光るエフェクト */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(251, 113, 133, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 113, 133, 0.6);
  }
}

.glow {
  animation: glow 2s ease-in-out infinite;
}