/* フローティングアクションボタンナビゲーション */
.fab-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.fab-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.fab-container.fab-open .fab-backdrop {
  opacity: 1;
  visibility: visible;
}

.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50, #45a049);
  border: none;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1001;
}

.fab-main:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

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

.fab-main i {
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: absolute;
}

.fab-main .fa-bars {
  opacity: 1;
  transform: rotate(0deg);
}

.fab-main .fa-times {
  opacity: 0;
  transform: rotate(180deg);
}

.fab-container.fab-open .fab-main .fa-bars {
  opacity: 0;
  transform: rotate(-180deg);
}

.fab-container.fab-open .fab-main .fa-times {
  opacity: 1;
  transform: rotate(0deg);
}

.fab-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.fab-container.fab-open .fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px 16px;
  border-radius: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  transform: translateX(100px);
  opacity: 0;
  min-width: 200px;
}

.fab-container.fab-open .fab-item {
  transform: translateX(0);
  opacity: 1;
}

.fab-container.fab-open .fab-item:nth-child(1) {
  transition-delay: 0.1s;
}
.fab-container.fab-open .fab-item:nth-child(2) {
  transition-delay: 0.15s;
}
.fab-container.fab-open .fab-item:nth-child(3) {
  transition-delay: 0.2s;
}
.fab-container.fab-open .fab-item:nth-child(4) {
  transition-delay: 0.25s;
}
.fab-container.fab-open .fab-item:nth-child(5) {
  transition-delay: 0.3s;
}
.fab-container.fab-open .fab-item:nth-child(6) {
  transition-delay: 0.35s;
}

.fab-item:hover {
  background: #f8f9fa;
  transform: translateX(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fab-item.active {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.fab-item.active .fab-icon {
  color: white;
}

.fab-item.active .fab-label {
  color: white;
}

.fab-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4caf50;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fab-label {
  color: #2c3e50;
  font-weight: 500;
  font-size: 0.9rem;
}

/* 開発中通知 */
.development-notice {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  max-width: 350px;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.development-notice.show {
  transform: translateX(0);
}

.notice-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

.notice-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notice-text {
  flex: 1;
}

.notice-text h3 {
  margin: 0 0 4px 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
}

.notice-text p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.notice-close {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notice-close:hover {
  background: #f8f9fa;
  color: #2c3e50;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .fab-container {
    bottom: 15px;
    right: 15px;
  }

  .fab-main {
    width: 50px;
    height: 50px;
  }

  .fab-main i {
    font-size: 1.1rem;
  }

  .fab-item {
    min-width: 180px;
    padding: 10px 14px;
  }

  .fab-label {
    font-size: 0.85rem;
  }

  .development-notice {
    top: 15px;
    right: 15px;
    left: 15px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .fab-container {
    bottom: 15px;
    right: 15px;
  }

  .fab-main {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .fab-item {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-width: 120px;
  }

  .fab-label {
    font-size: 0.8rem;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  .fab-main,
  .fab-item,
  .fab-backdrop,
  .development-notice {
    transition: none;
  }
}

.fab-item:focus {
  outline: 2px solid #4caf50;
  outline-offset: 2px;
}

.fab-main:focus {
  outline: 2px solid #4caf50;
  outline-offset: 2px;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .fab-item {
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
  }

  .fab-item:hover {
    background: rgba(40, 40, 40, 1);
  }
}

/* 開発中通知のスタイル */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dev-notice {
  animation: fadeIn 0.3s ease;
}

.dev-notice-content h3 {
  margin: 1rem 0 0.5rem 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.dev-notice-content p {
  margin: 0.5rem 0 1rem 0;
  color: var(--text-color);
  line-height: 1.5;
}

.dev-notice-content i.fa-tools {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.dev-notice-close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}
