.ranking-notices {
  box-sizing: border-box;
  max-width: 1204px;
  scroll-margin-top: 86px;
  margin: 0 auto 20px;
  padding: 18px 20px;
  border: 1px solid #c9daf8;
  border-left: 4px solid #2a60dd;
  border-radius: 14px;
  background: #edf4ff;
  color: #1b3456;
}

.ranking-notices-header { display: flex; align-items: center; }
.ranking-notices-header h2 {
  margin: 0;
  color: #1949ab;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
}

.ranking-notice-item { margin-top: 12px; }
.ranking-notice-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
.ranking-notice-meta h3 {
  margin: 0;
  color: #172943;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ranking-notice-meta > span { color: #4c607a; font-size: 12px; }
.ranking-notice-meta .time { color: inherit; }
.ranking-notice-text {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ranking-notices-empty { margin: 10px 0 0; font-size: 13px; }

.ranking-notices summary { cursor: pointer; }
.ranking-notices-publisher { margin-top: 10px; }
.ranking-notices-publisher > summary {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid #c2d4f8;
  border-radius: 7px;
  background: #fff;
  color: #1949ab;
  font-size: 13px;
  font-weight: 700;
}

.ranking-notices-publisher form {
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin: 9px 0 0;
  padding: 14px;
  border: 1px solid #d7e4fa;
  border-radius: 10px;
  background: #fff;
}
.ranking-notices-publisher label { margin: 0; color: #263c5b; font-weight: 650; }
.ranking-notices-publisher :is(input[type="text"], textarea) {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 5px;
  padding: 8px 9px;
  border: 1px solid #c4d5ef;
  border-radius: 7px;
  background: #fafcff;
  color: #172943;
  font: inherit;
}
.ranking-notices-publisher textarea { resize: vertical; }
.ranking-notices-publisher button {
  justify-self: start;
  padding: 8px 13px;
  border: 0;
  border-radius: 7px;
  background: #2458d2;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.ranking-notices-publisher > summary:hover { background: #f6f9ff; }
.ranking-notices-publisher button:hover { background: #1946b7; }
.ranking-notices :is(summary, input, textarea, button):focus-visible {
  outline: 2px solid #2458d2;
  outline-offset: 2px;
}

.ranking-notices-history {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid #ccdcf8;
}
.ranking-notices-history > summary { color: #1949ab; font-size: 13px; font-weight: 650; }
.ranking-notices-history .ranking-notice-item + .ranking-notice-item {
  padding-top: 10px;
  border-top: 1px solid #ccdcf8;
}
.ranking-notice-withdraw { margin-top: 7px; color: #8e3232; font-size: 12px; }
.ranking-notice-withdraw form { margin: 4px 0 0; }
.ranking-notice-withdraw button {
  padding: 4px 8px;
  border: 1px solid #dbb1b1;
  border-radius: 6px;
  background: #fff;
  color: #8e3232;
  cursor: pointer;
}

.page--ranking .ranking-page-frame .rc-notice {
  padding: 14px 16px;
  border-color: #d0def5;
  background: #f5f8ff;
}
.page--ranking .ranking-page-frame .rc-notice-label {
  background: #e1ebff;
  color: #1949ab;
  font-size: 12px;
}
.page--ranking .ranking-page-frame .rc-notice p { color: #344e71; font-size: 13px; }
.page--ranking .ranking-page-frame .rc-notice strong { color: #263e61; font-weight: 700; }

@media (max-width: 600px) {
  .ranking-notices { padding: 14px 13px; }
  .page--ranking .ranking-page-frame .rc-notice { flex-wrap: wrap; gap: 6px; }
}
