* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* リンクの下線を消す */
a {
  text-decoration: none;
  color: inherit;
  /* デフォルトのテキスト色 */
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
* {
  box-sizing: border-box;
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}

.description {
  font-size: 8px;
}

.photo-katu-title {
  font-weight: bold;
  color: white;
  text-align: left; /* 中央揃え */
  font-size: 14px; /* フォントサイズを指定 */
  font-family: "RocknRoll One", sans-serif;
  font-style: normal;
}

label {
  margin: 10px 0 5px;
}

input[type="text"],
input[type="number"],
select,
textarea {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Style for navigation bar */
.top_navbar {
  background-color: #1d1d1d;
  padding: 10px;
  display: flex;
  align-items: left;
  justify-content: space-between;
}

.nav-item {
  margin-right: 10px;
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
}

.nav2_item {
  position: relative;
  /* 親要素を相対位置指定 */
}

.nav2_link {
  display: inline-block;
  /* リンクをブロック要素として扱う */
  position: relative;
  /* 相対位置指定 */
}

.badge {
  position: absolute;
  /* 絶対位置指定 */
  top: -3px;
  /* 上からの位置調整 */
  left: -3px;
  /* 右からの位置調整 */
  font-size: 12px;
  line-height: 12px;
  border-radius: 50%;
  border-width: 1px;
  width: 20px;
  height: 20px;
  background-color: #ff1493;
  border: 4px solid #ff1493;
  color: #ffffff;
  text-align: center;
}

.profile-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  vertical-align: middle;
}

.menu-image {
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.spacer {
  flex-grow: 1;
}

.account-popup {
  display: none;
  /* デフォルトでは非表示 */
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 5px 10px;
  text-align: left;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  z-index: 1000;
  /* 最前面に表示 */
  width: 250px;
  /* 横幅を250pxに設定 */
  max-height: 80vh; /* 画面の高さの80%に制限 */
  overflow-y: auto; /* 高さを超えた場合にスクロール可能にする */
}

.account-popup a {
  font-size: 1.05em;
  /* 文字サイズを大きく */
}

.account-popup.active {
  display: block;
}
