/* 研究業績（achievements.html と、トップページの「最新の研究業績」）。
   中身は src/research.js が researchmap のデータから作る。色はサイトの茶色（#6c3b19）に合わせる */

.lab-research-date {
  color: #6c3b19;
  font-family: Vollkorn, serif;
  font-size: 1.05em;
  line-height: 1.8;
  white-space: nowrap;
}
.lab-research-body {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-width: 0;
}
.lab-research-title {
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.lab-research-title a {
  color: #202020;
  text-decoration: underline;
  text-decoration-color: #c9b8a6;
  text-underline-offset: 0.25em;
}
.lab-research-title a:hover {
  color: #6c3b19;
  text-decoration-color: #6c3b19;
}
.lab-research-meta {
  color: #555;
  font-size: 0.85em;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.lab-research-meta strong {
  color: #202020;
  font-weight: 700;
}

/* achievements.html */
.lab-research {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}
.lab-research-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1em 0 0;
  padding: 0;
  list-style: none;
}
.lab-research-ids a {
  display: inline-block;
  padding: 0.1em 0.9em;
  border: 1px solid #6c3b19;
  color: #6c3b19;
  font-size: 0.9em;
  line-height: 2;
  text-decoration: none;
}
.lab-research-ids a:hover,
.lab-research-ids a:focus-visible {
  background: #6c3b19;
  color: #fff;
}
.lab-research-toc {
  margin: 2em 0 0;
  padding: 1.2em 1.5em;
  background: #f7f3ef;
}
.lab-research-toc ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
  gap: 0.2em 2em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lab-research-toc a {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  border-bottom: 1px dotted #c9b8a6;
  color: #202020;
  line-height: 2.4;
  text-decoration: none;
}
.lab-research-toc a:hover {
  color: #6c3b19;
}
.lab-research-section {
  margin-top: 3.2em;
}
.lab-research-h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.8em;
  margin: 0 0 0.8em;
  padding: 0.1em 0 0.1em 0.8em;
  border-left: 4px solid #6c3b19;
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
  scroll-margin-top: 90px; /* 目次から移動したとき、上部に出るメニューに隠れないように */
}
.lab-research-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lab-research-item {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 1em;
  padding: 0.9em 0;
  border-top: 1px solid #eee4da;
}
.lab-research-list > .lab-research-item:last-child {
  border-bottom: 1px solid #eee4da;
}
.lab-research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 0.2em;
}
.lab-research-tags span {
  padding: 0 0.5em;
  border: 1px solid #c9b8a6;
  color: #6c3b19;
  font-size: 0.75em;
  line-height: 1.8;
}
.lab-research-rest summary {
  margin-top: 1em;
  color: #6c3b19;
  font-weight: 700;
  cursor: pointer;
}
.lab-research-rest summary:focus-visible {
  outline: 2px solid #6c3b19;
  outline-offset: 2px;
}
.lab-research-rest[open] summary {
  margin-bottom: 0.4em;
}

/* トップページの「最新の研究業績」 */
.lab-research-latest-heading {
  text-align: left;
}
.lab-research-latest-note {
  margin: 0.4em 0 1em;
  color: #666;
  font-size: 0.85em;
}
.lab-research-latest {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.lab-research-latest-item {
  display: grid;
  grid-template-columns: 6em 6em minmax(0, 1fr);
  align-items: baseline;
  gap: 0.4em 1em;
  padding: 0.9em 0;
  border-top: 1px solid #e3d9cf;
}
.lab-research-latest-item:last-child {
  border-bottom: 1px solid #e3d9cf;
}
.lab-research-kind {
  justify-self: start;
  padding: 0 0.6em;
  background: #6c3b19;
  color: #fff;
  font-size: 0.8em;
  line-height: 1.9;
  white-space: nowrap;
}
.lab-research-more {
  margin-top: 1.6em;
}

@media only screen and (max-width: 641px) {
  .lab-research-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1em;
  }
  .lab-research-latest-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .lab-research-latest-item .lab-research-body {
    grid-column: 1 / -1;
  }
  .lab-research-toc ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
