/* ジビエ取引管理システム - 共通スタイル */

:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --secondary-color: #558B2F;
  --accent-color: #8D6E63;
  --text-color: #212121;
  --text-light: #757575;
  --background: #F5F5F5;
  --card-background: #FFFFFF;
  --border-color: #E0E0E0;
  --success-color: #4CAF50;
  --warning-color: #FF9800;
  --error-color: #F44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Yu Gothic', 'YuGothic', 'メイリオ', Meiryo, sans-serif;
  color: var(--text-color);
  background-color: var(--background);
  line-height: 1.7;
}

/* ヘッダー */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

/* メインコンテンツ */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.hero {
  background: white;
  border-radius: 12px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* カード */
.card {
  background: var(--card-background);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.card h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.card h3 {
  color: var(--primary-dark);
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* 料金プラン */
.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--primary-color);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(46,125,50,0.2);
}

.pricing-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-dark);
  margin: 1rem 0;
}

.price .currency {
  font-size: 1.2rem;
}

.price .period {
  font-size: 1rem;
  color: var(--text-light);
}

.features {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
}

.features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.features li:before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46,125,50,0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* アラート */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border-left: 4px solid var(--success-color);
}

.alert-warning {
  background: #FFF3E0;
  color: #E65100;
  border-left: 4px solid var(--warning-color);
}

.alert-error {
  background: #FFEBEE;
  color: #C62828;
  border-left: 4px solid var(--error-color);
}

.alert-info {
  background: #E3F2FD;
  color: #1565C0;
  border-left: 4px solid #2196F3;
}

/* テーブル */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--background);
  font-weight: 600;
  color: var(--primary-dark);
}

tr:hover {
  background: #F9F9F9;
}

/* フッター */
footer {
  background: #263238;
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

/* ローディング */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* レスポンシブ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
