/*
 * パンハウス 見積もりシステム - 共通スタイル
 * 全ページで使用される共通CSS
 */

/* ===========================================
   CSS変数（デザイントークン）
   =========================================== */
:root {
  /* Slate（グレー系） */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  /* Indigo（メインカラー） */
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --indigo-400: #818cf8;
  --indigo-300: #a5b4fc;
  --indigo-100: #e0e7ff;
  --indigo-50: #eef2ff;

  /* Emerald（アクセントカラー） */
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-100: #d1fae5;
}

/* ===========================================
   リセット & ベース
   =========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  background: linear-gradient(135deg, var(--slate-50) 0%, #eef2ff 50%, var(--slate-100) 100%);
  color: var(--slate-800);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===========================================
   ヘッダー
   =========================================== */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--slate-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 0.5rem;
}

nav a:hover {
  color: var(--indigo-600);
}

nav a.active {
  color: var(--indigo-600);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-500), var(--emerald-400));
  border-radius: 1px;
}

/* ===========================================
   メインコンテンツ
   =========================================== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===========================================
   フッター
   =========================================== */
footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 3rem 2rem 2rem;
}

footer .footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--slate-700);
}

footer .footer-section {
  text-align: left;
}

footer .footer-section h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

footer .footer-section ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

footer .footer-section li {
  margin-bottom: 0.6rem;
  list-style-type: none !important;
}

footer .footer-section a {
  color: var(--slate-300) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  transition: color 0.2s;
}

footer .footer-section a:hover {
  color: #ffffff !important;
}

footer .footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
}

footer .footer-bottom p {
  font-size: 0.85rem;
  color: var(--slate-400);
}

footer .footer-bottom .address {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: var(--slate-500);
}

@media (max-width: 768px) {
  footer .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  footer .footer-section {
    text-align: center;
  }
}

/* ===========================================
   カード（共通）
   =========================================== */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.15);
}

/* ===========================================
   ボタン（共通）
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500));
  color: white;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--slate-600);
}

.btn-secondary:hover {
  background: white;
  border-color: var(--indigo-500);
  color: var(--indigo-600);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* ===========================================
   セクションヘッダー
   =========================================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-800);
  letter-spacing: -0.02em;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--slate-200), transparent);
}

/* ===========================================
   パンくずリスト
   =========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--indigo-600);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--slate-400);
}

/* ===========================================
   統計カード
   =========================================== */
.stat-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--indigo-600), var(--emerald-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================================
   チェックアイコン
   =========================================== */
.check-icon {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 10px;
  height: 10px;
  color: white;
}

/* ===========================================
   フォーム要素
   =========================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--slate-800);
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ===========================================
   グリッドレイアウト
   =========================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

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

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

/* ===========================================
   スクロールバー
   =========================================== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 3px;
}

/* ===========================================
   ユーティリティ
   =========================================== */
.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--indigo-600), var(--emerald-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
