.page-records .cof-page {
  padding-top: 8px;
}

.records-hero {
  margin-bottom: 12px;
}

.records-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 12px;
  align-items: start;
}

.records-layout--list {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.records-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.records-section-chip {
  color: #1c9b34;
  text-decoration: none;
  font-size: 14px;
}

.records-section-chip:hover,
.records-section-chip.is-active {
  color: #0f6b21;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.records-list,
.records-side__list {
  display: grid;
  gap: 0;
}

.records-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.records-search input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
}

.records-item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px dotted #bdbdbd;
}

.records-item:first-child {
  padding-top: 0;
  border-top: 1px solid #cfcfcf;
}

.records-item:last-child {
  padding-bottom: 0;
}

.records-item__meta,
.records-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #666666;
  font-size: 12px;
}

.records-item__meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.records-item__title,
.records-entry h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  color: #1c9b34;
  text-decoration: none;
}

.records-item__title:hover,
.records-entry__back a:hover,
.records-side__item:hover strong {
  color: #0f6b21;
  text-decoration: underline;
}

.records-pill {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 11px;
  color: #555555;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.records-pill--note,
.records-pill--blog,
.records-pill--section {
  color: #666666;
}

.records-item__excerpt {
  margin: 0;
  color: #111111;
  line-height: 1.8;
}

.records-entry__back {
  margin: 0 0 10px;
}

.records-entry__back a {
  color: #1c9b34;
  text-decoration: none;
}

.records-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  color: #666666;
  font-size: 12px;
}

.records-entry__tags a,
.records-tags a {
  color: #1c9b34;
  text-decoration: none;
}

.records-entry__tags a:hover,
.records-tags a:hover {
  color: #0f6b21;
  text-decoration: underline;
}

.records-entry__content {
  margin-top: 20px;
}

.records-entry__content.post {
  max-width: none;
}

.records-entry__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
}

.records-entry__content h1,
.records-entry__content h2,
.records-entry__content h3 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  color: #111111;
}

.records-entry__content p,
.records-entry__content li {
  color: #111111;
}

.records-entry__content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.records-entry__content blockquote {
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 2px solid #bdbdbd;
  background: transparent;
}

.records-entry__content pre {
  padding: 0.85rem 1rem;
  overflow: auto;
  border: 1px solid #d2d2d2;
  border-radius: 0;
  background: #f7f7f7;
}

.records-entry__content code {
  background: #f7f7f7;
  padding: 0.1rem 0.35rem;
  border-radius: 0;
}

.records-entry__content .study-answer {
  display: grid;
  gap: 16px;
}

.records-entry__content .study-answer__meta {
  margin: 0;
  color: #555555;
  font-size: 0.95rem;
  line-height: 1.8;
}

.records-entry__content .study-answer__panel {
  border: 1px solid #d9dde3;
  padding: 18px;
  background: #ffffff;
}

.records-entry__content .study-answer__panel h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: #111111;
}

.records-entry__content .study-answer__note {
  margin: 0.8rem 0 1rem;
  padding: 0.6rem 0.9rem;
  border-left: 4px solid #d9dde3;
  background: #fafbfc;
  color: #333333;
  line-height: 1.75;
  font-size: 0.95rem;
}

.records-entry__content .study-answer__qa {
  margin-top: 0.25rem;
}

.records-entry__content .study-answer__item {
  margin: 0.8rem 0 0;
  padding: 14px 14px 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.records-entry__content .study-answer__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.records-entry__content .study-answer__answer {
  margin: 0.25rem 0;
  line-height: 1.85;
}

.records-entry__content .study-answer__label {
  display: inline-block;
  min-width: 6.2em;
  color: #444444;
}

.records-entry__content .study-answer details {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e5e7eb;
  background: #fcfcfd;
}

.records-entry__content .study-answer summary {
  cursor: pointer;
  color: #222222;
  font-size: 0.95rem;
}

.records-entry__content .study-answer__gloss {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.records-entry__content .study-answer__gloss li {
  padding: 0.22rem 0;
  border-bottom: 1px dotted #e5e7eb;
  line-height: 1.75;
  word-break: break-word;
}

.records-entry__content .study-answer__gloss li:last-child {
  border-bottom: none;
}

.records-entry__content .study-answer__lang {
  font-family: "New Athena Unicode", "Noto Serif", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.records-entry__content .study-answer__small {
  font-size: 0.92rem;
  color: #555555;
}

.records-entry__pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #cfcfcf;
}

.records-entry__nav {
  display: grid;
  gap: 6px;
  min-height: 100%;
  padding: 14px 16px;
  border: 1px solid #cfcfcf;
  background: #fafafa;
  color: #111111;
  text-decoration: none;
}

.records-entry__nav:hover {
  border-color: #1c9b34;
}

.records-entry__nav span {
  color: #666666;
  font-size: 12px;
}

.records-entry__nav strong {
  color: #1c9b34;
  font-size: 15px;
  font-weight: 500;
}

.records-entry__nav--next {
  text-align: right;
}

.records-side h3 {
  margin: 0 0 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 28px;
  line-height: 1.2;
  color: #111111;
}

.records-side__item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid #cfcfcf;
  color: #555555;
  text-decoration: none;
}

.records-side__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.records-side__item.is-active {
  color: #111111;
}

.records-side__item strong {
  color: #1c9b34;
  font-size: 15px;
  font-weight: 500;
}

.records-side__type {
  font-size: 11px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.records-tagbox {
  margin-top: 18px;
}

.records-tagbox h4 {
  margin: 0 0 10px;
  color: #111111;
  font-size: 16px;
}

.records-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.records-sections {
  display: grid;
  gap: 0;
}

.records-sections a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #cfcfcf;
  color: #1c9b34;
  text-decoration: none;
  font-size: 14px;
}

.records-sections a:first-child {
  border-top: 0;
  padding-top: 0;
}

.records-sections a.is-active,
.records-sections a:hover {
  color: #0f6b21;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.records-sections a span {
  font-size: 12px;
  color: #111111;
}

.records-tags a {
  font-size: 13px;
}

.records-kpi {
  display: grid;
  gap: 0;
}

.records-kpi div {
  padding: 10px 0;
  border-top: 1px solid #cfcfcf;
}

.records-kpi div:first-child {
  border-top: 0;
  padding-top: 0;
}

.records-kpi strong {
  display: block;
  color: #111111;
  font-size: 18px;
}

.records-kpi span {
  display: block;
  margin-top: 4px;
  color: #666666;
  font-size: 12px;
}

.records-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #cfcfcf;
}

.records-pagination__count {
  color: #666666;
  font-size: 13px;
}

.records-pagination__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.records-empty {
  margin: 0;
  color: #666666;
  line-height: 1.8;
}

@media (max-width: 1080px) {
  .records-layout,
  .records-layout--list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .records-entry__pager {
    grid-template-columns: 1fr;
  }

  .records-entry__nav--next {
    text-align: left;
  }
}
