/* 割り勘のイデア - カスタムスタイル */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* ボタンのホバーエフェクト */
button {
  transition: all 0.2s ease-in-out;
}

button:active {
  transform: scale(0.98);
}

/* 入力フィールドのフォーカス */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.2);
}

/* ローディングアニメーション */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* フェードイン */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* スライドイン */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

/* カスタムスクロールバー（Webkit系ブラウザ） */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #20B2AA;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1A8A84;
}

/* カード影 */
.card-shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-shadow:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* トースト通知 */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

/* モバイル最適化 */
@media (max-width: 640px) {
  .toast {
    left: 20px;
    right: 20px;
    max-width: none;
  }
}

/* 重みボタンのスタイル */
.weight-button {
  min-width: 48px;
  min-height: 48px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.2s;
}

.weight-button.active {
  background-color: #20B2AA;
  color: white;
  border-color: #20B2AA;
  box-shadow: 0 2px 4px rgba(32, 178, 170, 0.3);
}

.weight-button:not(.active) {
  background-color: white;
  color: #666;
  border-color: #ddd;
}

.weight-button:not(.active):hover {
  border-color: #20B2AA;
  color: #20B2AA;
}

/* ステッパーのスタイル */
.stepper-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.stepper-button:hover {
  background: #f5f5f5;
  border-color: #20B2AA;
  color: #20B2AA;
}

.stepper-button:active {
  background: #e5e5e5;
}

/* タブのスタイル */
.tab {
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
}

.tab:hover {
  color: #20B2AA;
}

.tab.active {
  color: #20B2AA;
  border-bottom-color: #20B2AA;
}

/* バッジ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary {
  background: #20B2AA;
  color: white;
}

.badge-gray {
  background: #e5e7eb;
  color: #6b7280;
}

/* 送金リストのスタイル */
.transfer-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.transfer-arrow {
  flex-shrink: 0;
  margin: 0 16px;
  color: #20B2AA;
  font-size: 20px;
}
