* {
  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;
}

.user-item {
  margin-bottom: 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  justify-content: left;
  margin: 5px;
  padding: 5px;
  border: 0px;
  border-radius: 5px;
  width: 100%;
}

.user-item:hover {
  background-color: rgb(240, 240, 240);
}

hr.style14 {
  border: 0;
  height: 1px;
  background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -moz-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -ms-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
  background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
}

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

.date-overlay {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px; /* 日付の大きさを調整 */
  font-weight: bold;
  color: white; /* 必要に応じて色を変更 */
  pointer-events: none; /* オーバーレイがクリックなどを妨げないようにする */
}

.nav-link1 {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-text {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

/* 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に設定 */
}

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

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

@keyframes pulseMotion {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(135, 206, 250, 0.4);
  }
  100% {
    transform: scale(1.2);
    box-shadow: 0 0 20px 15px rgba(135, 206, 250, 0);
  }
}

.back-to-top {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  right: 20px;
  bottom: 50px;
  width: 50px;
  height: 50px;
  background-color: rgba(160, 155, 185, 0.4);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease, opacity 0.3s ease,
    transform 0.5s ease-in-out;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

/* JSが inline スタイルで display: block を設定した場合、強制的に flex に変更 */
.back-to-top[style*="block"] {
  display: flex !important;
}

.back-to-top:hover {
  background-color: rgba(105, 105, 105, 0.5);
  transform: scale(1.1);
}

.back-to-top img {
  max-width: 100%;
  max-height: 100%;
}
