@font-face {
  font-family: "Noto Sans Egyptian Hieroglyphs";
  src: url("/fonts/NotoSansEgyptianHieroglyphs-Regular.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+13000-1342F;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #deb887;
  color: #212529;
  padding-top: 56px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif, "Noto Sans Egyptian Hieroglyphs";
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0.5rem 1rem;
  background: #343a40;
  color: #fff;
}

.topbar-name {
  font-size: 1.25rem;
  line-height: 1;
}

.page {
  margin: 0 auto;
  padding: 0 15px 3rem;
}

.sheet {
  max-width: 700px;
  margin: 1rem auto 0;
  padding: 1rem 15px 1rem;
  background: #f5f5f5;
}

.sheet h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.sheet h3:first-child {
  margin-top: 0;
}

.sheet p,
.sheet label {
  margin: 0 0 1rem;
}

.quiet-link {
  display: inline-block;
  margin: 0.5rem 0 1rem;
}

.composer {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid #ddd;
}

.composer label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 0.375rem 0.75rem;
  border: 0;
  resize: vertical;
  background: #fff;
  color: #495057;
  font: inherit;
}

textarea::placeholder {
  color: #6c757d;
  opacity: 1;
}

.actions {
  margin-top: 0.5rem;
  text-align: right;
}

.submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0;
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: 0.25rem;
  background: #007bff;
  color: #fff;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.submit:hover {
  background: #0069d9;
}

.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}

.submit .icon {
  width: 1.45em;
  height: 1.45em;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #212529;
  cursor: pointer;
  vertical-align: middle;
}

.notice {
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  font-size: 1.15rem;
  line-height: 1.8;
}

.notice-ok {
  color: #155724;
  background: #d4edda;
  border-color: #c3e6cb;
}

.notice-bad {
  color: #721c24;
  background: #f8d7da;
  border-color: #f5c6cb;
}

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.posts li {
  padding: 10px 0;
  border-top: 1px solid #ddd;
  overflow: auto;
}

.posts img {
  float: left;
  width: 50px;
  height: 50px;
  margin-top: 5px;
  margin-right: 10px;
  object-fit: cover;
}

.posts .post-user,
.posts .post-text,
.favarite {
  margin-left: 60px;
}

.posts .post-user {
  display: block;
  padding-top: 0;
}

.posts .post-text {
  display: block;
  color: #212529;
  font-size: 1.5rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.favarite {
  display: block;
  margin-top: 5px;
}

.favarite form {
  display: inline;
}

.favarite .icon {
  width: 1.85em;
  height: 1.85em;
  color: #3d3428;
}

.share .icon {
  width: 1.45em;
  height: 1.45em;
}

.more-link {
  display: inline-block;
  margin: 12px 0 4px;
  font-size: 1.15rem;
}

.logout-menu {
  position: relative;
  margin-left: auto;
}

.logout-menu > summary {
  list-style: none;
  cursor: pointer;
}

.logout-menu > summary::-webkit-details-marker {
  display: none;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.logout-panel {
  position: absolute;
  right: 0;
  z-index: 30;
  min-width: 10rem;
  margin-top: 0.125rem;
  padding: 0.5rem 0;
  background: #fff;
  color: #212529;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.25rem 1.5rem;
  border: 0;
  background: transparent;
  color: #212529;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-button:hover {
  background: #f8f9fa;
}
