body {
  margin: 0;
  background-color: #f8f9e8;
  font-family: "Yu Gothic", sans-serif;
}

/* =========================
   マイページ全体
========================= */

.mypage {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 20px 100px;
  box-sizing: border-box;
}

.page-title {
  text-align: center;
  margin: 24px 0;
  color: #4f6b3c;
  font-size: 28px;
}

/* =========================
   プロフィールカード
========================= */

.profile-card {
  width: 100%;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  gap: 20px;

  margin-bottom: 24px;
  padding: 24px;

  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.character {
  font-size: 60px;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.user-name {
  margin: 0;
  color: #4f6b3c;
  font-size: 22px;
}

.message {
  margin-top: 8px;
  color: #777;
  font-size: 15px;
}

.profile-character {
  width: 90px;
  height: auto;
}

@media (max-width: 480px) {
  .profile-character {
    width: 75px;
  }
}

/* =========================
   メニューカード
========================= */

.menu-card {
  width: 100%;
  box-sizing: border-box;

  background: #fff;
  border-radius: 20px;
  overflow: hidden;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.menu-card a {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 20px;

  color: #444;
  text-decoration: none;

  border-bottom: 1px solid #f0f0f0;

  transition: background-color .2s;
}

.menu-card a:last-child {
  border-bottom: none;
}

.menu-card a:hover {
  background: #f7fbe8;
}

.menu-card span {
  color: #bbb;
  font-size: 20px;
}

.logout {
  color: #d9534f !important;
  font-weight: bold;
}

/* =========================
   戻るボタン
========================= */

.back-button-area {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.back-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 12px 24px;
  min-width: 180px;

  text-decoration: none;
  border-radius: 999px;
}

/* =========================
   スマホ微調整
========================= */

@media (max-width: 480px) {
  .mypage {
    padding: 20px 16px 90px;
  }

  .profile-card {
    gap: 16px;
    padding: 20px;
  }

  .character {
    font-size: 52px;
  }

  .user-name {
    font-size: 20px;
  }

  .message {
    font-size: 14px;
  }
}

.submit-button {
  width: 100%;
  padding: 14px 20px;
  margin-top: 20px;

  border: none;
  border-radius: 30px;

  background: #f6c85f;
  color: #5b4636;

  font-size: 16px;
  font-weight: bold;

  box-shadow: 0 4px 8px rgba(0,0,0,0.12);

  cursor: pointer;
  transition: 0.2s;
}

.submit-button:hover {
  transform: translateY(-2px);
}

.logout {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  box-sizing: border-box;

  padding: 18px 20px;

  background: #fff;
  border: none;
  border-top: 1px solid #f0f0f0;

  color: #d9534f;
  font-weight: bold;

  font-size: inherit;
  font-family: inherit;
  text-align: left;

  cursor: pointer;

  transition: background-color .2s;
}

.logout:hover {
  background: #f7fbe8;
}
