:root {
  --blue: #1e95d0;
  --blue-dark: #127cae;
  --ink: var(--black);
  --text: var(--black);
  --muted: #7f8d99;
  --line: #d7dee5;
  --line-strong: #bac5ce;
  --bg: #f7f9fb;
  --soft: #f4f6f8;
  --panel: #f3f5f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
}

button {
  font: inherit;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 8px 34px;
}

.breadcrumb {
  font-size: 13px;
  color: #6a8195;
  margin-bottom: 6px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
}

.section-title .sq {
  width: 16px;
  height: 16px;
  background: var(--blue);
  display: inline-block;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

.lead {
  font-size: 14px;
  line-height: 1.8;
  color: #5d6d79;
  margin: 0 0 24px;
}

/* キーワード検索 */
.filter-panel .keyword-search-mode {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.filter-panel .keyword-search-mode input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

.filter-panel .keyword-search-mode input[type="text"]:focus {
  border-color: #0078d7;
  box-shadow: 0 0 4px rgba(0, 120, 215, 0.3);
}

.filter-panel .keyword-search-mode label {
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.filter-panel .keyword-search-mode input[type="radio"] {
  margin-right: 6px;
  accent-color: #0078d7;
}

.filter-panel {
  padding: 24px 0 0;
}

.filter-panel .filter-stack > [class*='js-research-'] + [class*='js-research-'] {
  margin-top: 16px;
}

.filter-panel .c-filter__list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  column-gap: 48px;
  padding: 20px;
  margin: 0;
  list-style: none;
}

.filter-panel .c-filter__item {
  white-space: nowrap;
  font-size: 14px;
  list-style: none;
  margin-block: 0;
}

.filter-panel .c-filter__item label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.filter-panel .c-filter__item label.is-disabled {
  cursor: not-allowed;
  color: #b5bcc2;
}

.filter-panel .c-filter__item label.is-disabled .filter-checkbox {
  pointer-events: none;
  border-color: #d5dbe0;
  background: #f3f5f6;
}

.filter-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group {
  border: 1px solid var(--line);
  background: #fff;
}

.filter-group-head {
  min-height: 58px;
  padding: 16px 24px;
  background: #edf1f3;
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  column-gap: 16px;
}

.filter-group-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.filter-group-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.filter-group-icon::before,
.filter-group-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #111;
  transform: translate(-50%, -50%);
}

.filter-group-icon::before {
  width: 20px;
  height: 2px;
}

.filter-group-icon::after {
  width: 2px;
  height: 20px;
}

.filter-group-body {
  padding: 22px 24px 24px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.filter-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0 0 30px;
  border: 0;
  background: transparent;
  color: #223847;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  cursor: default;
}

.filter-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border: 1px solid #9eaeb9;
  background: #fff;
}

.filter-option.is-active::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blue-dark);
  border-bottom: 2px solid var(--blue-dark);
  transform: rotate(-45deg);
}

.filter-panel .count-reset {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
  padding: 16px 20px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.filter-panel .c-filter__count {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.filter-panel .count-reset__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.filter-panel .research-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.filter-panel .research-filter-reset:focus-visible {
  outline: 2px solid #0078d7;
  outline-offset: 2px;
}

.filter-panel .research-filter-reset {
  color: #333;
  background: #fff;
  border: 1px solid #bbb;
}

.filter-panel .research-filter-reset:hover {
  background: #f5f5f5;
  border-color: #888;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.filter-panel .research-filter-reset__icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.filter-panel .research-filter-reset__icon::after {
  content: '';
  position: absolute;
  top: 1px;
  right: -1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 4px 5px 0;
  border-color: transparent currentColor transparent transparent;
}

.filter-note {
  margin: 0;
  max-width: 470px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.results-bar {
  padding: 24px 0 10px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.hit {
  font-size: 17px;
  font-weight: 700;
  color: #12283a;
}

.hit .count {
  color: var(--blue);
}

.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d6d79;
  font-size: 13px;
  white-space: nowrap;
}

.page-size {
  color: #5d6d79;
}

.page-current {
  font-weight: 700;
  color: #243949;
}

.pager-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pager-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #c7d1da;
  background: #fff;
  color: #516574;
  font-size: 13px;
  line-height: 1;
}

.results-line {
  height: 2px;
  background: #3e4c57;
  margin-top: 8px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.js-scroll-trigger {
  height: 1px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px 16px 18px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.card:has(.card-stretched-link:hover) {
  border-color: var(--blue);
  background: #f8fcfe;
  box-shadow: 0 4px 14px rgba(30, 149, 208, 0.14);
}

.card:has(.card-stretched-link:focus-visible) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 149, 208, 0.2);
}

.card-stretched-link {
  color: inherit;
  text-decoration: none;
}

a.card-stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  background-image: none;
  background-size: unset;
  vertical-align: unset;
}

.card-stretched-link:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-stretched-link:focus-visible {
  outline: 3px solid #7dbbe0;
  outline-offset: 2px;
}

a.card-stretched-link[target="_blank"]:not(.link-pdf):not(.link-xls):not(.link-word):not(.link-ppt):not(.link-zip) .title-text::after,
a.card-stretched-link[target="_blank"][rel="noopener"]:not(.link-pdf):not(.link-xls):not(.link-word):not(.link-ppt):not(.link-zip) .title-text::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../../../common/images/common/icon-blank.svg');
  background-size: 16px;
  background-repeat: no-repeat;
  background-position-y: center;
  margin-left: 0.3em;
  vertical-align: middle;
}

a.card-stretched-link.link-pdf .title-text::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../../../common/images/common/icon-pdf.svg');
  background-size: 16px;
  background-repeat: no-repeat;
  background-position-y: center;
  margin-left: 0.3em;
  vertical-align: middle;
}

a.card-stretched-link.link-xls .title-text::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../../../common/images/common/icon-xls.svg');
  background-size: 16px;
  background-repeat: no-repeat;
  background-position-y: center;
  margin-left: 0.3em;
  vertical-align: middle;
}

a.card-stretched-link.link-word .title-text::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../../../common/images/common/icon-doc.svg');
  background-size: 16px;
  background-repeat: no-repeat;
  background-position-y: center;
  margin-left: 0.3em;
  vertical-align: middle;
}

a.card-stretched-link.link-ppt .title-text::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../../../common/images/common/icon-ppt.svg');
  background-size: 16px;
  background-repeat: no-repeat;
  background-position-y: center;
  margin-left: 0.3em;
  vertical-align: middle;
}

a.card-stretched-link.link-zip .title-text::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../../../common/images/common/icon-zip.svg');
  background-size: 16px;
  background-repeat: no-repeat;
  background-position-y: center;
  margin-left: 0.3em;
  vertical-align: middle;
}

.card-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: start;
}

.card-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.b-paper {
  background: #f2f4f6;
  color: #3d4a56;
}

.b-research {
  background: #e7f6ef;
  color: #0d6b47;
}

.b-release {
  background: #fff3e8;
  color: #a85f18;
}

.b-data {
  background: #eaf7fe;
  color: #0d6a96;
}

.title {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: #1d3141;
  flex: 1;
}

.title .c-batch {
  margin-left: 8px;
  vertical-align: middle;
}

.summary {
  font-size: 15px;
  color: #364654;
  margin: 0 0 8px;
}

.source {
  font-size: 11px;
  line-height: 1.9;
  color: #364654;
  margin-bottom: 10px;
}

.source p {
  font-size: 11px;
  margin: 0;
}

.source-year::before {
  content: "（";
}

.source-year::after {
  content: "）";
}

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

.tag {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--soft);
  color: #364654;
  font-size: 13px;
}

.side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.card .source a,
.card .credit a,
.card .cta,
.card-has-side-action .side {
  position: relative;
  z-index: 2;
}

.card .source a,
.card .credit a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card .source a:hover,
.card .credit a:hover {
  color: var(--blue);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 123px;
  height: 45px;
  border-radius: 6px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.thumb-photo {
  width: 150px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid #d5dde3;
  object-fit: cover;
  display: block;
}

.credit {
  width: 150px;
  font-size: 11px;
  line-height: 1.5;
  color: #87939d;
}

.credit p {
  font-size: 11px;
  margin: 0;
}

.footnote {
  margin-top: 18px;
  font-size: 12px;
  color: #71808c;
}

@media (max-width: 760px) {
  .wrap {
    padding: 12px 12px 28px;
  }

  .filter-panel {
    padding: 16px;
  }

  .filter-panel .keyword-search-mode {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-panel .keyword-search-mode label {
    white-space: normal;
  }

  .filter-group-head {
    min-height: 52px;
    padding: 12px 16px;
  }

  .filter-group-title {
    font-size: 16px;
  }

  .filter-group-body {
    padding: 16px;
  }

  .filter-panel .count-reset {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-note {
    max-width: none;
  }

  .results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pager {
    flex-wrap: wrap;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .side {
    align-items: flex-start;
  }
}
