/* css/common/base.css - 共通ベーススタイル */

/* フォント設定 */
body {
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  margin: 0;
  padding: 0;
  color: #2c3e50;
}

/* 見出し */
h1, h2, h3, h4, h5, h6 {
  color: #3498db;
  margin-top: 0;
}

/* リンク */
a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ボタンの共通スタイル */
button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

button:hover {
  opacity: 0.9;
}

button:active {
  opacity: 0.8;
}

/* フォーム要素の共通スタイル */
input, textarea, select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 通知スタイル */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  color: white;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* クリアフィックス */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

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

.text-right {
  text-align: right;
}

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

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ベース色設定 */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --info-color: #1abc9c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333333;
  --border-color: #dddddd;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
