:root {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #2f2f2f;
  background-color: #f7f5f0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f7f5f0;
  color: #2f2f2f;
}

.app-shell {
/*  display: grid;*/
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.app-nav {
  padding: 1rem 1rem;
  background: #e8e2d8;
  border-right: 1px solid #d8d0c2;
  backdrop-filter: blur(6px);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f2f2f;
}

.app-main {
  padding: 0;
}

.app-content {
/*  max-width: 900px;*/
}

.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  z-index: 20;
  background: #f7f5f0;
  border-top: 1px solid #d8d0c2;
  backdrop-filter: blur(10px);
}

.mobile-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom));
}

.mobile-bottom-nav-item {
  text-decoration: none;
  color: #2f2f2f;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.mobile-bottom-nav-icon {
  font-size: 1.1rem;
}

.mobile-bottom-nav-item.active {
  color: #2f2f2f;
  background: #e8e2d8;
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-nav {
    border-right: none;
    border-bottom: 1px solid #d8d0c2;
  }

  .app-bottom-nav {
    display: block;
  }
}

.notification-bell-root {
  position: relative;
}

.notification-bell-root.is-open {
  z-index: 41;
}

.notification-bell-button {
  position: relative;
  border: none;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.notification-bell-button:hover {
  background: #ddd5c7;
}

.notification-bell-icon {
  font-size: 1.1rem;
}

.notification-bell-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  background: #c44536;
  color: #fff;
  border-radius: 999px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4.5rem 1rem 1rem;
  z-index: 40;
}

.notification-modal {
  width: min(420px, 100%);
  max-height: calc(100vh - 6rem);
  overflow: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid #ebe4d8;
}

.notification-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eee8df;
}

.notification-modal-header h4 {
  margin: 0;
}

.deadline-section h4 {
  margin: 0;
}

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

.notification-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.5rem 0rem 0rem 0.5rem;
  border-bottom: 1px solid #f0ece3;
  cursor: pointer;
  line-height: 1.4;
  box-sizing: border-box;
  border-radius: 0;
}

.notification-item.is-unread {
  background: #f7f2e8;
}

.notification-item-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.notification-item-body {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
}

.notification-item-time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #6f6a61;
  line-height: 1.4;
}

.notification-empty {
  margin: 0;
  padding: 1rem;
  color: #5a554d;
}

@media (max-width: 860px) {
  .notification-modal-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .notification-modal {
    width: 100%;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
  }
}

/* ===== スマホ版共通レイアウト (AppLayoutMobile) ===== */

.app-layout-mobile {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f7f5f0;
}

.app-layout-mobile__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 1rem;
  background: #f7f5f0;
  border-bottom: 1px solid #d8d0c2;
  backdrop-filter: blur(10px);
}

.app-layout-mobile__logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2f2f2f;
  letter-spacing: -0.02em;
}

.app-layout-mobile__header-right {
  display: flex;
  align-items: center;
}

.app-layout-mobile__body {
  flex: 1;
  padding-top: 48px;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

.app-layout-mobile__bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #f7f5f0;
  border-top: 1px solid #d8d0c2;
  backdrop-filter: blur(10px);
}

.header__logo-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2f2f2f;
    line-height: 1.2;
}
.header__logo-sub {
    font-size: 0.65rem;
    color: #9a9088;
    font-weight: 400;
    line-height: 1;
}
.app-layout-pc__logo-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2f2f2f;
    line-height: 1.2;
}
.app-layout-pc__logo-sub {
    font-size: 0.65rem;
    color: #9a9088;
    font-weight: 400;
    line-height: 1;
}
