/* 全体設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: 'Helvetica Neue', Arial, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  position: relative;
}

/* テーマ切り替えボタン */
.theme-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  border: none;
  border-radius: 20px;
  background-color: #eee;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ヘッダー・プロフィール情報 */
header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  background-color: #ddd;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.subtitle {
  color: #666;
  font-size: 0.95rem;
}

/* めいん */
section {
  margin-top: 30px;
}

h2 {
  font-size: 1.3rem;
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
  margin-bottom: 15px;
  display: inline-block;
}

p {
  margin-bottom: 15px;
}

/* リスト */
ul {
  list-style-type: none;
}

ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

ul li::before {
  content: "•";
  color: #007bff;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* リンク */
.links a {
  display: inline-block;
  margin-right: 15px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

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

/* フッター */
footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #888;
  font-size: 0.85rem;
}

/* JS連動アニメーションクラス */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ダークモード用スタイル */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode .container {
  background-color: #1e1e1e;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body.dark-mode .subtitle {
  color: #aaa;
}

body.dark-mode .theme-btn {
  background-color: #333;
  color: #fff;
}