h1{
    text-align: left;
    padding: 6.4px;
    margin-left: 20px;
  }
  
  /* 追加：上部バー */
  .topbar{
    display:flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .topbar-right{
    margin-right: 20px;
    display:flex;
    gap: 10px;
    align-items:center;
    flex-wrap: wrap;
  }
  .topbar-right .link{
    text-decoration:none;
    color:#333;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 8px;
    background: #fff;
  }
  .topbar-right .user{
    color:#555;
    font-size: 13px;
  }
  
  /* メッセージ */
  .msg{
    width: 50%;
    margin: 10px auto;
    padding: 10px 12px;
    border-radius: 8px;
    box-sizing: border-box;
  }
  .msg.ok{ background:#eef9f0; border:1px solid #bfe6c7; }
  .msg.err{ background:#fdeeee; border:1px solid #f0b7b7; }
  .msg.warn{ background:#fff7e6; border:1px solid #f0d08a; }
  .msg ul{ margin:0; padding-left: 18px; }
  
  table.bbs{
    margin: 0 auto;
    border-collapse: collapse;
    width:50%
  }
  table.bbs th, table.bbs td{
    border: 1px #ccc solid;
    padding: 8px 10px;
    text-align: center;
  }
  
  table.bbs th{
    font-weight: bold;
    background-color: #e6e6fa;
    color:#333;
  }
  
  table.bbs tr:nth-child(even) td{
    background-color: #f0f8ff;
  }
  
  .delete{
    background-color: #fd6f90;
    color: white;
    border-radius: 5px;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
  }
  
  .empty{
    color:#555;
    padding: 14px 10px;
  }
  
  .hint{
    width: 50%;
    margin: 10px auto 0 auto;
    color:#555;
    font-size: 12px;
    line-height: 1.4;
  }
  
  /* profile */
.profile-card { max-width: 980px; margin: 18px auto; }
.profile-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-meta { color:#444; font-size: 14px; }

.profile-title { margin: 0 0 10px 0; font-size: 16px; }

.weekly-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px){ .weekly-grid { grid-template-columns: 1fr; } }

.weekly-box { border:1px solid #ddd; border-radius: 12px; padding: 14px; background:#fff; }
.weekly-label { color:#555; font-size: 13px; }
.weekly-rate { font-size: 28px; font-weight: 800; margin-top: 6px; }
.weekly-sub { color:#555; font-size: 13px; margin-top: 2px; }
.konpeito { display:block; width: 160px; max-width: 100%; height:auto; margin-top: 10px; }

/* level-up overlay (任意：todolistに実装する場合) */
.levelup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center;
  z-index: 9999;
}
.levelup-box {
  background:#fff; border-radius: 16px; padding: 18px 20px;
  min-width: 280px; max-width: 92vw;
  border: 1px solid #ddd;
}
.levelup-box h3 { margin: 0 0 8px 0; }
.levelup-box .btn-row { margin-top: 12px; display:flex; justify-content:flex-end; gap:8px; }
.levelup-box button { border-radius: 10px; padding: 8px 12px; border: 1px solid #333; background:#333; color:#fff; cursor:pointer; }
