@charset "UTF-8";

/* 梗概集、紀要等 */

.rep-page {
  max-width: 1060px;
  margin-inline: auto;
}

.rep-page .main-content {
  max-width: none;
  margin-inline: 0;
  width: 100%;
}

.rep-page .read {
  margin-bottom: 1em;
  line-height: 1.7;
}

/* 分野見出し（style.css の h2 左線を上書き） */
.rep-page h2 {
  display: flex;
  align-items: center;
  margin: 0 0 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  background-color: #7189f3;
  background-image: none;
  color: #fff;
}

.rep-page h2::before {
  display: none;
}

.rep-page h2.m50-t {
  margin-top: 50px;
}

.rep-page h2 img {
  width: 35px;
  margin-right: 10px;
  border-radius: 5px;
}

.rep-page h3 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 20px;
}

@media (max-width: 767px) {
  .rep-page h3 {
    margin: 20px 0 10px;
  }
}

.rep-page .stress {
  background: linear-gradient(transparent 70%, #ffff00 0%);
}

/* 検索・フィルター */
.rep-page .toolsearch {
  margin-bottom: 20px;
}

.rep-page .keyword-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.rep-page .keyword-search-row input[type="text"] {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.rep-page .keyword-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.rep-page .keyword-search-row label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  margin: 0;
}

.rep-page .serch_button {
  cursor: pointer;
}

@media (min-width: 768px) {
  .rep-page .keyword-search-row {
    flex-wrap: nowrap;
  }

  .rep-page .keyword-search-row input[type="text"] {
    flex: 1 1 auto;
    width: auto;
  }

  .rep-page .keyword-search-actions {
    flex-shrink: 0;
  }
}

.rep-page #RESULT {
  font-size: 16px;
  font-weight: bold;
}

.rep-page #tags {
  list-style-type: none;
  text-align: center;
  margin: 0 0 24px;
  padding: 0;
}

.rep-page #tags li {
  display: inline-block;
  width: 150px;
  height: 30px;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 5px;
  background-color: #7189f3;
  color: #eeeef7;
  font-weight: bold;
  box-sizing: border-box;
}

.rep-page #tags .select {
  background-color: coral;
}

@media (max-width: 767px) {
  .rep-page #tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
  }

  .rep-page #tags li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 30px;
    height: auto;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.3;
  }
}

.rep-page .tbox {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0;
}

.rep-page .tbox > li {
  margin: 0;
  padding: 0;
}

.rep-page .toolchip,
.rep-page .toolchip2,
.rep-page .toolchip3 {
  display: none;
  position: absolute;
  padding: 7px 10px;
  border: solid 3px #7189f3;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 12px;
  line-height: 2;
  z-index: 20;
}

.rep-page .toolchip {
  top: -50px;
  left: 28%;
}

.rep-page .toolchip2 {
  top: -45px;
  left: 28%;
}

.rep-page .toolchip3 {
  width: 130px;
  top: -30px;
  left: -130px;
}

.rep-page .toolsearch:hover .toolchip,
.rep-page .tag_filter:hover .toolchip2 {
  display: inline-block;
}

/* 分野アイコン一覧 */
.rep-page .adaptbox {
  display: table;
  width: 100%;
  margin: 0 0 20px !important;
  padding: 10px;
  list-style-type: none;
  border-radius: 8px;
  background-color: #7189f3;
  font-size: 16px;
  line-height: 1;
  overflow: visible;
}

.rep-page .adaptbox > li {
  display: table-cell;
  float: none;
  width: auto;
  text-align: center;
  border-bottom: 5px solid #7189f3;
  font-size: 14px;
  vertical-align: top;
}

.rep-page .adaptbox > li:hover {
  border-bottom-color: blueviolet;
}

.rep-page .adaptbox a {
  display: block;
  color: #fff;
  text-decoration: none;
}

.rep-page .adaptbox li img {
  display: block;
  width: 45px;
  margin: 0 auto 10px;
  border-radius: 8px;
}

.rep-page .adaptbox li span {
  display: block;
  font-size: 14px;
}

.rep-page .field_cat {
  position: relative;
}

.rep-page .field_cat ul {
  list-style: none;
}

.rep-page .field_cat > li > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 400px;
  max-width: min(400px, 90vw);
  margin-top: 0;
  padding: 7px;
  border: solid 3px #7189f3;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  color: #000;
  box-sizing: border-box;
  text-align: left;
  z-index: 15;
}

.rep-page .bc_name {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  font-weight: bold;
  text-align: left;
}

.rep-page .bcn {
  background-color: #7189f3;
  color: #fff;
}

.rep-page .sc_names {
  position: relative;
  margin: 0;
  padding: 4px;
  overflow: hidden;
  list-style: none;
  border: 1px solid #7189f3;
  color: #555;
  background-color: #fff;
}

.rep-page .bc_name ul li {
  width: 50%;
  margin: 0;
  padding: 1px;
}

.rep-page .bc_name ul li:nth-child(odd) {
  float: left;
  clear: left;
}

.rep-page .bc_name ul li:nth-child(even) {
  float: left;
}

.rep-page .pop_je > li:nth-child(2n + 4) {
  float: left;
  clear: left;
  width: 50%;
  padding: 0 2px 0 0;
}

.rep-page .pop_je > li:nth-child(2n + 5) {
  float: left;
  width: 50%;
  padding: 0 0 0 2px;
}

.rep-page .pop_ji > li:nth-child(3n + 3) {
  float: left;
  clear: left;
  width: 50%;
  padding: 0 2px 0 0;
}

.rep-page .pop_ji > li:nth-child(3n + 4) {
  float: left;
  width: 50%;
  padding: 0 0 0 2px;
}

@media (max-width: 767px) {
  .rep-page .adaptbox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
  }

  .rep-page .adaptbox > li {
    display: block;
    flex: 0 0 50%;
    width: 50%;
    box-sizing: border-box;
    padding: 4px;
  }

  .rep-page .adaptbox li span {
    font-size: 12px;
  }
}

/* 分野内サブメニュー */
.rep-page .tool-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.rep-page .tool-menu li {
  display: inline-block;
  margin: 1% 2px;
  padding: 0 10px;
  border-radius: 5px;
  background-color: #f5f5f5;
}

.rep-page .tool-menu li a {
  padding: 3px 20px 3px 10px;
  color: #7189f3;
}

.rep-page .bigblock ~ .bigblock {
  margin-top: 20px;
}

/* アコーディオン（文献一覧） */
.rep-page .impactbox .accordion {
  margin: 0 0 20px;
}

.rep-page .impactbox .accordion summary {
  font-size: 18px;
}

.rep-page .impactbox .accordion summary span {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .rep-page .impactbox .accordion summary {
    font-size: 16px;
    padding-right: 42px;
  }
}

.rep-page .impactbox .accordion-body {
  padding: 0 0 10px;
}

/* 文献テーブル（5列） */
.rep-page .tbl-literature {
  width: 100%;
  margin: 20px 0 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
}

.rep-page .tbl-literature ~ .tbl-literature {
  margin-top: 30px;
}

.rep-page .tbl-literature caption {
  text-align: left;
}

.rep-page .tbl-literature th {
  padding: 8px 6px;
  background: #7189f3;
  color: #fff;
  font-weight: bold;
  text-align: center;
}

.rep-page .tbl-literature .title {
  width: 52%;
}

.rep-page .tbl-literature .auth,
.rep-page .tbl-literature .jour {
  width: 17%;
}

.rep-page .tbl-literature .pub_y {
  width: 8%;
  padding: 8px 3px;
  text-align: center;
}

.rep-page .tbl-literature .lens {
  width: 36px;
  padding: 8px 2px;
  text-align: center;
}

.rep-page .tbl-literature td {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.rep-page .tbl-literature td div {
  position: relative;
  min-width: 10px;
  cursor: pointer;
}

.rep-page .tbl-literature td .seach-btn:hover {
  cursor: pointer;
}

@media (max-width: 767px) {
  .rep-page .tbl-literature {
    display: block;
    width: 100%;
    margin-top: 12px;
    font-size: 14px;
    border: 0;
    table-layout: auto;
  }

  .rep-page .tbl-literature .title,
  .rep-page .tbl-literature .auth,
  .rep-page .tbl-literature .jour,
  .rep-page .tbl-literature .pub_y,
  .rep-page .tbl-literature .lens {
    width: auto;
  }

  .rep-page .tbl-literature tr.cap {
    display: none;
  }

  /* ラベル列 | 本文 | 検索 の3トラックで揃える */
  .rep-page .tbl-literature tr {
    display: grid;
    grid-template-columns: 7em minmax(0, 1fr) 2.25em;
    width: 100%;
    margin: 0 0 12px;
    border: 1px solid #c5d0f5;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .rep-page .tbl-literature td {
    display: grid;
    grid-template-columns: 7em minmax(0, 1fr);
    align-items: stretch;
    column-gap: 8px;
    width: auto !important;
    max-width: none;
    margin: 0;
    padding: 8px 8px 8px 0;
    border: 0;
    border-bottom: 1px solid #c5d0f5;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: left;
    line-height: 1.45;
  }

  .rep-page .tbl-literature td:nth-child(1),
  .rep-page .tbl-literature td:nth-child(2),
  .rep-page .tbl-literature td:nth-child(3) {
    grid-column: 1 / -1;
  }

  /* 掲載年: 左のラベル列＋中央の値（検索列は空けておく） */
  .rep-page .tbl-literature td:nth-child(4) {
    grid-column: 1 / 3;
    padding: 8px 8px 8px 0;
    border-bottom: 0;
    border-right: 1px solid #c5d0f5;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* 検索: 右端のみ。ラベルは出さずアイコンだけ */
  .rep-page .tbl-literature td:nth-child(5) {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 0;
  }

  .rep-page .tbl-literature td::before {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    box-sizing: border-box;
    margin: -8px 0;
    padding: 8px;
    border-right: 1px solid #c5d0f5;
    background: #7189f3;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.3;
  }

  .rep-page .tbl-literature td:nth-child(1)::before {
    content: "タイトル";
  }

  .rep-page .tbl-literature td:nth-child(2)::before {
    content: "著者・発表機関";
  }

  .rep-page .tbl-literature td:nth-child(3)::before {
    content: "書誌情報等";
  }

  .rep-page .tbl-literature td:nth-child(4)::before {
    content: "掲載年";
  }

  .rep-page .tbl-literature td:nth-child(5)::before {
    content: none;
    display: none;
  }

  .rep-page .tbl-literature td.lens > div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .rep-page .tbl-literature td.lens .seach-btn {
    width: 18px;
    height: auto;
    vertical-align: middle;
  }

  .rep-page .tbl-literature td.lens .toolchip3 {
    display: none !important;
  }
}

.rep-page .year,
.rep-page .area {
  text-align: center;
}

.rep-page .patent td {
  background-color: #ecf7ff;
}

.rep-page .future td {
  background-color: #fefbde;
}

.rep-page .patent tr.noneitem td:first-child,
.rep-page .future tr.noneitem td:first-child {
  border-right: 1px #ddd solid;
}

.rep-page .patent tr.noneitem td {
  border-right-color: #ecf7ff;
}

.rep-page .future tr.noneitem td {
  border-right-color: #fefbde;
}
