header {
  display: flex;
  align-items: center;
  padding: 1px;
  background-color: #ffffff;
  justify-content: space-between;
  position: fixed;
}

header .username {
  position: fixed;
  top: 20px; /* 画面上からの距離 */
  right: 25%; /* 画面右からの距離 */
  background: lightblue;
  color: #fff;
  padding: 0 1em;
  border: solid;
  width: 87px;
  height: 30px;
  font-size: 11px;
  border-radius: 5px;
  font-weight: 900;
  font-family: serif;
  z-index: 1; /* 他の要素よりも前面に表示 */
  display: flex; /* フレックスボックスを使用 */
  align-items: center; /* 縦方向の中央揃え */
  justify-content: center; /* 横方向の中央揃え */
  text-align: center; /* テキストを中央揃え */
}

header .username a {
  color: #fff; /* 白色に設定 */
}

header .username:hover {
  background: lightcoral;
  cursor: pointer;
}

.alineCenter {
  position: relative;
  left: 5px;
}

.pc-nav {
  display: none;
}

.camera {
  background-color: #007bff;
  color: #fff;
}

#title {
  font-size: 150%;
}

#hamburger {
  position: relative;
  display: block;
  width: 30px;
  height: 25px;
  margin: 0 0 0 auto;
}
#hamburger span {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background-color: black;
  transform: translateY(-50%);
}

#hamburger::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: black;
}
#hamburger::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: black;
}

.sp-nav {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  transition: all 0.2s ease-in-out;
  opacity: 0;
  transform: translateY(-100%);
}

.sp-nav ul {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.sp-nav li {
  margin: 0;
  padding: 0;
}
.sp-nav li span {
  font-size: 15px;
  color: #fff;
}
.sp-nav li a,
.sp-nav li span {
  display: block;
  padding: 20px 0;
  color: #fff;
}

/*基準となるli要素*/
.sp-nav .close {
  position: relative;
  padding-left: 20px;
}
/*バツ印線1*/
.sp-nav .close::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 16px;
  height: 1px;
  background: #fff;
  transform: rotate(45deg);
}
/*バツ印線2*/
.sp-nav .close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 16px;
  height: 1px;
  background: #fff;
  transform: rotate(-45deg);
}
.toggle {
  transform: translateY(0);
  opacity: 1;
}

.button {
  position: fixed;
  top: 20px; /* 画面上からの距離 */
  right: 1%; /* 画面右からの距離 */
  background: lightblue;
  color: #fff;
  padding: 0 2em;
  border: solid;
  width: 80px;
  height: 30px;
  font-size: 11.5px;
  border-radius: 5px;
  font-weight: 900;
  font-family: serif;
  z-index: 1; /* 他の要素よりも前面に表示 */
}

.button:hover {
  background: lightcoral;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modalContent {
  background-color: #f4f4f4;
  margin: 50% auto;
  width: 80%;
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
  animation-name: modalopen;
  animation-duration: 1s;
}
/* ファイル選択ボタンを隠す */
#camera {
  display: none;
}

@keyframes modalopen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modalHeader h1 {
  margin: 1rem 0;
}

.modalHeader {
  background: lightblue;
  padding: 3px 15px;
  display: flex;
  justify-content: space-between;
}

.modalClose {
  font-size: 2rem;
}

.modalClose:hover {
  cursor: pointer;
}

.modalBody {
  padding: 10px 20px;
  color: black;
}

.TextArea {
  width: 100%;
  box-sizing: border-box;
  margin: 0.5em 0;
  padding: 0.8em;
  border-radius: 1em;
  border: 2px solid #aaa;
}

#loginButton {
  display: none;
}
