/* 全体の設定 */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

/* メインのカード枠 */
.card {
  background-color: #ffffff;
  max-width: 400px;
  width: 100%;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* アバター画像（丸く切り抜く設定） */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

/* 見出しとテキスト */
h1 {
  margin: 10px 0 5px;
  font-size: 24px;
}

.subtitle {
  color: #666;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 20px;
}

.about {
  border-top: 1px solid #eee;
  padding-top: 20px;
  text-align: left;
}

.about h2 {
  font-size: 16px;
  color: #444;
}

/* ギャラリー全体の枠組み */
.gallery {
  border-top: 1px solid #eee;
  margin-top: 20px;
  padding-top: 20px;
  text-align: left;
}

.gallery h2 {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
}

/* 画像を並べるエリア（Flexbox） */
.gallery-grid {
  display: flex;
  flex-wrap: wrap; /* 端まで行ったら折り返す */
  gap: 10px;       /* 画像同士の間隔 */
}

/* 各画像枠（半分の幅にして2列にする設定） */
.gallery-item {
  width: calc(50% - 5px); /* 隙間(gap)を考慮して半分にする */
  aspect-ratio: 1 / 1;    /* 正方形を維持する */
  overflow: hidden;
  border-radius: 8px;
}

/* 画像自体のトリミング設定 */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 縦横比を崩さずに枠いっぱいに収める */
  transition: transform 0.3s ease; /* ホバー時のアニメーション準備 */
}

/* マウスを乗せたときに少し拡大する演出（お好みで） */
.gallery-item img:hover {
  transform: scale(1.05);
}

/* SNSエリアのデザイン */
.sns-links {
  margin-top: 20px;
}

.sns-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.sns-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}

.sns-btn:hover {
  opacity: 0.8;
}

/* X (旧Twitter) ボタンの色 */
.x-btn {
  background-color: #000000;
}

/* Instagram ボタンの色 */
.insta-btn {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* セクションごとの余白と区切り */
.gallery, .blog {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee; /* 薄い区切り線を入れる */
}

/* ブログ項目の見た目をカード風に整える */
.blog-item {
  background: #f9f9f9;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
}