@import 'common.css';

body {
  background: #f7f8fa;
  color: #202850;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}

@media (min-width: 577px) and (max-width: 768px) {
  body { padding-top: 80px; }
}

@media (min-width: 769px) {
  body { padding-top: 120px; }
}

.category-menu {
  background: #fff;
  border-bottom: 1px solid #e3e7ed;
  border-top: 1px solid #e9edf2;
  padding: 18px 24px;
  width: 100%;
}

.category-menu .nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin: 0 auto;
  max-width: 1320px;
  padding: 0;
}

.category-menu .nav-link {
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 4px;
  color: #364152;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  padding: 11px 17px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.category-menu .nav-link:hover {
  background: #f0f5fb;
  border-color: #9eb5cf;
  color: #155a9c;
}

.category-menu .nav-link.active {
  background: #173f68;
  border-color: #173f68;
  color: #fff;
}

.category-menu .dropdown { display: none; }

.notification-container {
  margin: 42px auto 56px;
  max-width: 1320px;
  padding: 0 24px;
  width: 100%;
}

.notification-list-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.notification-list-heading h2 {
  color: #202850;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
}

.notification-list-heading span {
  color: #718096;
  font-size: .85rem;
}

.notification-list {
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 4px;
}

.notification {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 28px;
  grid-template-columns: 180px minmax(0, 1fr) 24px;
  min-height: 116px;
  padding: 22px 26px;
  position: relative;
  text-decoration: none;
  transition: background-color .15s ease;
}

.notification + .notification {
  border-top: 1px solid #e6e9ed;
}

.notification::before {
  background: #2374b9;
  bottom: 0;
  content: '';
  left: -1px;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity .15s ease;
  width: 4px;
}

.notification:hover,
.notification:focus-visible {
  background: #f6f9fc;
  color: inherit;
  outline: none;
}

.notification:hover::before,
.notification:focus-visible::before {
  opacity: 1;
}

.notification-info {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.notification .date {
  color: #667085;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.notification .meta {
  border-radius: 3px;
  color: white;
  display: inline-block;
  font-size: .75rem;
  font-weight: bold;
  line-height: 1;
  padding: 6px 10px;
}

.notification .meta.イベント { background-color: orange; }
.notification .meta.重要,
.notification .meta.あなた宛て { background-color: red; }
.notification .meta.メンテナンス { background-color: blue; }
.notification .meta.告知 { background-color: green; }
.notification .meta.プライズ { background-color: yellow; color: black; }
.notification .meta.アップデート { background-color: pink; color: black; }
.notification .meta.バグ情報 { background-color: black; }

.notification-main { min-width: 0; }

.notification .title {
  color: #202850;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.notification .summary {
  color: #687386;
  display: -webkit-box;
  font-size: .9rem;
  line-height: 1.65;
  margin-top: 7px;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-arrow {
  color: #98a2b3;
  font-size: .8rem;
  justify-self: end;
  transition: color .15s ease, transform .15s ease;
}

.notification:hover .notification-arrow,
.notification:focus-visible .notification-arrow {
  color: #2374b9;
  transform: translateX(3px);
}

.notification-empty {
  color: #7a8494;
  padding: 72px 24px;
  text-align: center;
}

.notification-empty i {
  color: #aab2bd;
  font-size: 2rem;
  margin-bottom: 14px;
}

.notification-empty p { margin: 0; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 28px 0 0;
}

.pagination a {
  align-items: center;
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 3px;
  color: #344054;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 600;
  height: 40px;
  justify-content: center;
  min-width: 40px;
  padding: 0 10px;
  text-decoration: none;
}

.pagination a:hover {
  background: #f0f5fb;
  border-color: #9eb5cf;
  color: #155a9c;
}

.pagination a.active {
  background: #173f68;
  border-color: #173f68;
  color: #fff;
}

@media (max-width: 768px) {
  .category-menu {
    padding: 14px 16px;
  }

  .category-menu .nav-pills { display: none; }
  .category-menu .dropdown { display: block; }

  .dropdown-toggle {
    background: #173f68;
    border: 0;
    border-radius: 4px;
    display: block;
    font-size: .95rem;
    margin: 0 auto;
    max-width: 420px;
    padding: 11px 16px;
    width: 100%;
  }

  .dropdown-menu {
    border: 1px solid #dfe4ea;
    border-radius: 4px;
    max-width: 420px;
    width: 100%;
  }

  .dropdown-item { padding: 10px 16px; }

  .notification-container {
    margin: 28px auto 44px;
    padding: 0 16px;
  }

  .notification {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 18px;
    min-height: 0;
    padding: 19px 18px;
  }

  .notification-info {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    grid-column: 1 / -1;
  }

  .notification .title {
    font-size: 1rem;
  }

  .notification .summary {
    font-size: .85rem;
    line-height: 1.6;
  }
}

@media (max-width: 576px) {
  body { padding-top: 0; }

  .notification-list-heading h2 { font-size: 1.2rem; }
  .notification-container { padding: 0 12px; }
}
