/* ===============================
   ページ全体の基本設定
================================ */
body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Sans", "Meiryo", sans-serif;
  text-align: center;
  background-color: #fff;
  padding-bottom: 70px; /* 下の固定メニュー分の余白 */
}

/* ===============================
   カバー画像エリア
================================ */
.header {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   戻るボタンと編集ボタン
================================ */
.back-btn,
.edit-btn {
  position: absolute;
  top: 16px;
  background: rgba(255, 255, 255, 0.8); /* ← "raba" → "rgba" に修正 */
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.back-btn {
  left: 12px;
}

.edit-btn {
  right: 12px;
}

/* ===============================
   プロフィールアイコン
================================ */
.profile-icon {
  width: 180px;
  height: 180px;
  display: block;
  margin: -60px auto 10px auto; /* カバー画像にかぶせる */
  object-fit: cover;

  /* もこもこ型マスク */
  -webkit-mask-image: url("mokomoko-mask.png");
  mask-image: url("mokomoko-mask.png");
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  background-color: #ddd; /* 画像がない時 */
  border: 4px solid #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* ===============================
   プロフィール全体
================================ */
.profile {
  margin-top: -130px; /* アイコンの下の空きを減らして全体を上に */
  padding: 0 20px;
}

/* 名前とユーザー名を少し詰める */
.profile h1 {
  margin: 8px 0 0 0; /* 上下の余白をコンパクトに */
  font-size: 20px;
  font-weight: bold;
}

.username {
  color: #666;
  margin: 2px 0 6px; /* ここも少し詰める */
}

.bio {
  font-size: 14px;
  color: #333;
  margin: 4px 0 12px; /* 上下を短めに */
  line-height: 1.4;
}

/* フォロー欄 */
.follows {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #333;
  margin-top: 8px;
  margin-bottom: 10px;
}

/* ===============================
   ぬいぐるみアイコンエリア
================================ */
.characters {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0 20px;
}

/* 小さいぬいぐるみ画像（もこもこ型） */
.characters img {
  width: 100px;
  height: 100px;
  object-fit: cover;

  /* 同じマスクを再利用 */
  -webkit-mask-image: url("mokomoko-mask.png");
  mask-image: url("mokomoko-mask.png");
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  border: 3px solid #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  margin: 5px;
}

/* 名前テキスト */
.char p {
  margin: -20px 0 0 0; /* 上を詰めて近づける */
  font-size: 13px;
  color: #333;
}

/* ===============================
   写真ギャラリー
================================ */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列 */
  gap: 6px;
  padding: 10px;
}

.gallery img {
  width: 100%;
  object-fit: cover; /* ← "zover" → "cover" に修正 */
  border-radius: 10px;
}

/* ===============================
   下メニュー
================================ */
.menu {
  position: fixed;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 150;
}

.menu-image {
  width: 100%;
  height: auto;
  display: block;
}


.kuma-icon {
  position: fixed;
  right: 20px;   /* 右からの距離（好みで調整OK） */
  bottom: 80px;  /* 下からの距離（メニューにかぶらないように） */
  width: 120px;   /* サイズは画像に合わせて調整！ */
  height: auto;  /* 横幅に合わせて高さ自動調整 */
  z-index: 200;  /* 一番上に出す */
  cursor: pointer; /* クリックできそうにする（おまけ） */
}
