/**
 * common.css - プロジェクト共通スタイルシート
 * 各ツールで一貫したモダンなデザインを提供し、基本的なレイアウトや共通UIパーツを定義します。
 */

/* デザインシステム・トークン */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-main: #1f2937; /* gray-800 */
  --text-muted: #4b5563; /* gray-600 */
  --text-light: #9ca3af; /* gray-400 */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* グローバルリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: #f3f4f6; /* gray-100 */
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

/* 共通アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

/* --- 共有ナビゲーションフッターのバニラCSS --- */
.shared-footer {
  margin-top: 4rem; /* mt-16 */
  padding-bottom: 3rem; /* pb-12 */
  border-top: 1px solid #f3f4f6; /* border-gray-100 */
  width: 100%;
  max-width: 56rem; /* max-w-4xl */
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation: fadeIn 700ms both;
}

.shared-footer-inner {
  padding-top: 2.5rem; /* pt-10 */
}

.shared-footer-title {
  font-size: 0.625rem; /* text-[10px] */
  font-weight: 700;
  color: #9ca3af; /* text-gray-400 */
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem; /* mb-8 */
}

.shared-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem; /* gap-6 */
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .shared-footer-nav {
    gap: 2.5rem; /* sm:gap-10 */
  }
}

.shared-footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  text-decoration: none;
  transition: all var(--transition-normal);
}

.shared-footer-icon-wrapper {
  width: 3rem; /* w-12 */
  height: 3rem; /* h-12 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem; /* rounded-2xl */
  background-color: #f9fafb; /* bg-gray-50 */
  transition: all var(--transition-normal);
}

.shared-footer-link:hover .shared-footer-icon-wrapper {
  background-color: #eef2ff; /* group-hover:bg-indigo-50 */
  box-shadow: var(--shadow-md); /* group-hover:shadow-md */
}

.shared-footer-icon {
  font-size: 1.5rem; /* text-2xl */
  transition: transform var(--transition-normal);
}

.shared-footer-link:hover .shared-footer-icon {
  transform: scale(1.1); /* group-hover:scale-110 */
}

.shared-footer-link-text {
  font-size: 0.75rem; /* text-xs */
  font-weight: 700;
  color: #6b7280; /* text-gray-500 */
  transition: color var(--transition-fast);
  text-align: center;
  max-width: 90px;
  word-wrap: break-word;
}

.shared-footer-link:hover .shared-footer-link-text {
  color: #4f46e5; /* group-hover:text-indigo-600 */
}

.shared-footer-copyright {
  margin-top: 3rem; /* mt-12 */
  font-size: 0.625rem; /* text-[10px] */
  color: #9ca3af; /* text-gray-400 */
  font-medium: 500;
}

/* 共通ユーティリティ */
.hidden {
  display: none !important;
}
