body {
  background-color: #ffffff;
  font-family: "Meiryo", "MS PGothic", sans-serif;
  margin: 0;
  color: #0f1419;
}

.page-layout {
  display: flex;
  min-height: 100vh;
}

.mobile-menu-button {
  display: none;
}

.mobile-compose-button {
  display: none;
}

.menu-overlay {
  display: none;
}

.compose-overlay {
  display: none;
}

.side-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  box-sizing: border-box;
  background-color: #ffffff;
  border-right: 1px solid #eff3f4;
  z-index: 30;
  color: #0f1419;
}

.side-menu-title {
  color: #0f1419;
  font-size: 22px;
  font-weight: bold;
  padding: 18px 18px 14px 18px;
  border-bottom: 1px solid #eff3f4;
  letter-spacing: 0.03em;
}

.side-menu-main {
  height: calc(100vh - 190px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 12px;
}

.side-menu-section {
  padding: 0;
}

.side-menu-section h2 {
  font-size: 14px;
  color: #536471;
  margin: 0 0 10px 6px;
  letter-spacing: 0.08em;
}

.thread-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 6px;
  padding: 12px 14px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background-color: transparent;
  color: #0f1419;
}

.thread-button:hover {
  background-color: #f7f9f9;
}

.thread-button.active {
  background-color: #1d9bf0;
  color: #ffffff;
  font-weight: bold;
}

.create-thread-fixed {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  border-top: 1px solid #eff3f4;
  padding: 12px;
}

.create-thread-fixed h2 {
  font-size: 14px;
  color: #536471;
  margin: 0 0 8px 6px;
  letter-spacing: 0.08em;
}

.create-thread-area label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #536471;
}

.create-thread-area input {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #cfd9de;
  border-radius: 999px;
  background-color: #ffffff;
  color: #0f1419;
  margin-bottom: 8px;
  outline: none;
}

.create-thread-area input:focus {
  border-color: #1d9bf0;
  box-shadow: 0 0 0 1px #1d9bf0;
}

.create-thread-area button {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background-color: #1d9bf0;
  color: #ffffff;
  font-weight: bold;
}

.content-area {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
}

.board-wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
}

.header-area {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  box-sizing: border-box;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eff3f4;
}

.header-inner {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 20px;
}

h1 {
  font-size: 22px;
  color: #0f1419;
  margin: 0 0 4px 0;
  font-weight: bold;
}

.description {
  font-size: 13px;
  color: #536471;
  margin: 0;
}

.main-area {
  width: 100%;
  box-sizing: border-box;
  padding: 94px 0 180px 0;
}

.current-thread-title {
  font-size: 18px;
  color: #0f1419;
  border-bottom: 1px solid #eff3f4;
  padding: 12px 18px;
  margin: 0;
  font-weight: bold;
  background-color: #ffffff;
}

.loading-message {
  color: #536471;
  font-size: 14px;
  padding: 18px 20px;
}

.post {
  margin: 0;
  line-height: 1.35;
  padding: 7px 16px 8px 16px;
  border-bottom: 1px solid #eff3f4;
  transition: background-color 0.2s;
}

.post.odd-post {
  background-color: #ffffff;
}

.post.even-post {
  background-color: #f7f9f9;
}

.post:hover {
  background-color: #eef6fb;
}

.post.highlight {
  background-color: #e8f5fe;
}

.post-header {
  font-size: 13px;
  color: #536471;
  font-weight: normal;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  line-height: 1.25;
}

.post-header-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.post-number {
  color: #1d9bf0;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  flex: 0 0 auto;
  min-width: 18px;
}

.post-number:hover {
  text-decoration: underline;
}

.post-name-label {
  flex: 0 0 auto;
}

.post-name {
  color: #0f1419;
  font-weight: bold;
  display: inline-block;
  width: 8em;
  max-width: 8em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  flex: 0 0 8em;
}

.post-date {
  color: #536471;
  font-weight: normal;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
}

.reply-button {
  padding: 1px 7px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  color: #1d9bf0;
  border-radius: 999px;
  font-weight: bold;
  flex: 0 0 auto;
}

.reply-button:hover {
  background-color: #e8f5fe;
}

.post-body {
  margin-left: 23px;
  white-space: pre-wrap;
  font-size: 15px;
  color: #0f1419;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.anchor-link {
  color: #1d9bf0;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
}

.anchor-link:hover {
  text-decoration: underline;
}

.empty-message {
  color: #536471;
  font-size: 14px;
  margin: 18px 20px;
}

.form-area {
  position: fixed;
  left: 260px;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid #eff3f4;
}

.form-inner {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
}

.form-area h2 {
  font-size: 15px;
  margin: 0 0 8px 0;
  color: #0f1419;
}

.form-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}

.form-row label {
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  color: #536471;
}

.name-control-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

#nameInput {
  width: 190px;
  box-sizing: border-box;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid #cfd9de;
  border-radius: 999px;
  background-color: #ffffff;
  color: #0f1419;
  outline: none;
}

.keep-name-button {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #cfd9de;
  border-radius: 999px;
  background-color: #ffffff;
  color: #536471;
  font-weight: bold;
}

.keep-name-button.on {
  background-color: #1d9bf0;
  color: #ffffff;
  border-color: #1d9bf0;
}

textarea {
  flex: 1;
  height: 48px;
  box-sizing: border-box;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid #cfd9de;
  border-radius: 18px;
  background-color: #ffffff;
  color: #0f1419;
  resize: none;
  outline: none;
}

#nameInput:focus,
textarea:focus {
  border-color: #1d9bf0;
  box-shadow: 0 0 0 1px #1d9bf0;
}

button {
  white-space: nowrap;
}

#postButton {
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background-color: #1d9bf0;
  color: #ffffff;
  font-weight: bold;
}

.form-note {
  font-size: 12px;
  color: #536471;
  margin: 4px 0 0 0;
}

.back-to-top-button {
  position: fixed;
  right: 18px;
  bottom: 150px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #cfd9de;
  background-color: #ffffff;
  color: #1d9bf0;
  font-size: 26px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 10px rgba(15, 20, 25, 0.18);
  z-index: 25;
}

.admin-body {
  background-color: #f7f9f9;
}

.admin-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

.admin-header,
.admin-login-box,
.admin-control-box,
.admin-thread-section {
  background-color: #ffffff;
  border: 1px solid #eff3f4;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.admin-header h1,
.admin-login-box h2,
.admin-control-box h2,
.admin-thread-section h2 {
  margin-top: 0;
}

.admin-header p {
  color: #536471;
}

.admin-link-area a {
  color: #1d9bf0;
  font-weight: bold;
  text-decoration: none;
}

.admin-form-row {
  margin-bottom: 12px;
}

.admin-form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #536471;
}

.admin-form-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #cfd9de;
  border-radius: 999px;
  font-size: 15px;
}

.admin-main-button,
.admin-sub-button,
.admin-delete-button,
.admin-public-button,
.admin-hidden-button,
.admin-tab-button {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.admin-main-button {
  border: none;
  background-color: #1d9bf0;
  color: #ffffff;
}

.admin-sub-button {
  background-color: #ffffff;
  color: #536471;
  border: 1px solid #cfd9de;
}

.admin-delete-button {
  background-color: #ffffff;
  color: #f4212e;
  border: 1px solid #f4212e;
}

.admin-public-button {
  border: none;
  background-color: #00ba7c;
  color: #ffffff;
}

.admin-hidden-button {
  background-color: #ffffff;
  color: #536471;
  border: 1px solid #cfd9de;
}

.admin-tab-button {
  background-color: #ffffff;
  color: #536471;
  border: 1px solid #cfd9de;
}

.admin-tab-button.active {
  background-color: #1d9bf0;
  color: #ffffff;
  border-color: #1d9bf0;
}

.admin-status-message {
  color: #536471;
  font-size: 14px;
}

.admin-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.admin-refresh-area {
  margin-top: 8px;
}

.admin-post-item {
  border-bottom: 1px solid #eff3f4;
  padding: 14px 0;
}

.admin-post-meta {
  color: #536471;
  font-size: 13px;
  margin-bottom: 6px;
}

.admin-post-message {
  white-space: pre-wrap;
  line-height: 1.5;
  margin: 8px 0;
}

.admin-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.status-pending {
  background-color: #fff4cc;
  color: #8a6100;
}

.status-public {
  background-color: #d9f7ea;
  color: #007a4d;
}

.status-hidden {
  background-color: #eff3f4;
  color: #536471;
}

.admin-thread-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eff3f4;
}

.admin-thread-title {
  font-weight: bold;
  color: #0f1419;
}

.admin-thread-meta {
  color: #536471;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .side-area {
    width: 220px;
  }

  .content-area {
    margin-left: 220px;
    width: calc(100% - 220px);
  }

  .header-area,
  .form-area {
    left: 220px;
  }

  .main-area {
    padding-bottom: 190px;
  }
}

@media (max-width: 800px) {
  .page-layout {
    display: block;
  }

  .mobile-menu-button {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    border: 1px solid #cfd9de;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #0f1419;
    font-size: 24px;
    font-weight: bold;
    z-index: 70;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 20, 25, 0.15);
  }

  .mobile-compose-button {
    display: block;
    position: fixed;
    right: 18px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background-color: #1d9bf0;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    z-index: 35;
    box-shadow: 0 4px 14px rgba(29, 155, 240, 0.45);
  }

  .menu-overlay,
  .compose-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(15, 20, 25, 0.35);
  }

  .menu-overlay {
    z-index: 40;
  }

  .compose-overlay {
    z-index: 45;
  }

  .menu-overlay.open,
  .compose-overlay.open {
    display: block;
  }

  .side-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 18px rgba(15, 20, 25, 0.18);
    z-index: 60;
  }

  .side-area.open {
    transform: translateX(0);
  }

  .side-menu-title {
    font-size: 20px;
    padding: 18px 18px 14px 64px;
  }

  .content-area {
    margin-left: 0;
    width: 100%;
  }

  .header-area {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
  }

  .header-inner {
    padding: 12px 14px 12px 64px;
  }

  .description {
    display: none;
  }

  .main-area {
    padding: 0 0 96px 0;
  }

  .current-thread-title {
    font-size: 16px;
    padding: 10px 14px;
  }

  .post {
    padding: 6px 12px 7px 12px;
  }

  .post-header {
    font-size: 12px;
  }

  .post-name {
    width: 8em;
    max-width: 8em;
    flex: 0 0 8em;
  }

  .post-date {
    font-size: 11px;
  }

  .post-body {
    margin-left: 21px;
    font-size: 14px;
  }

  .form-area {
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid #eff3f4;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -4px 18px rgba(15, 20, 25, 0.18);
    transform: translateY(110%);
    transition: transform 0.25s ease;
    z-index: 55;
  }

  .form-area.open {
    transform: translateY(0);
  }

  .form-inner {
    padding: 16px;
  }

  .form-row {
    display: block;
  }

  .form-row label {
    display: block;
    margin-bottom: 5px;
  }

  .name-control-area {
    width: 100%;
  }

  #nameInput {
    flex: 1;
    width: auto;
    margin-bottom: 10px;
  }

  .keep-name-button {
    margin-bottom: 10px;
  }

  textarea {
    width: 100%;
    height: 160px;
    margin-bottom: 10px;
  }

  #postButton {
    width: 100%;
    padding: 11px 12px;
  }

  .back-to-top-button {
    right: 18px;
    bottom: 96px;
  }

  .admin-page {
    padding: 12px;
  }

  .admin-control-header {
    display: block;
  }

  .admin-thread-item {
    display: block;
  }

  .admin-delete-button {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .post-date {
    display: none;
  }

  textarea {
    height: 180px;
  }
}