@charset "UTF-8";
@import url('./root.css');

/**
 * common
 */
html {
  margin: 0;
  padding: 0;
  width: 100%;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--body-font-family);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  background-color: var(--body-background-color);
  line-height: 1.4;
  @media screen and (min-width:769px) {
    font-size: 14px;
  }
}

/* アイコン */
.icon-white {
  path, polygon, rect, circle {
    fill: var(--icon-white);
  }
}
.icon-black {
  path, polygon, rect, circle {
    fill: var(--icon-black);
  }
}
.icon-16 {
  max-width: 16px;
  max-height: 16px;
}
.icon-24 {
  max-width: 24px;
  max-height: 24px;
}


/* メッセージ・アラート */
#page-wrapper {
  .alert {
    margin-bottom: 0;
    border-radius: 0;
    h2 {
      margin: 0 auto;
      font-size: 18px;
      font-weight: 500;
    }
    hr {
      margin-top: 8px;
      margin-bottom: 8px;
    }
  }
}

#page-wrapper {
  border-top: 8px solid var(--page-top-border-color);
}

/**
 * header
 */
header {
  position: relative;
  .header-wrap {
    @media screen and (min-width:769px) {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      column-gap: 16px;
    }
  }
  .fs-1 {
    font-size: 24px;
    @media screen and (min-width:769px) {
      font-size: 32px;
    }
  }

  #navbar-top {
    img {
      height: auto;
    }
  }

  .offcanvas {
    &.offcanvas-end {
      top: 0;
      right: 0;
      width: var(--bs-offcanvas-width);
      border-left: var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);
      transform: translateX(100%);
    }
    &.fade {
      @media screen and (min-width:769px) {
        opacity: 1;
      }
    }
  }
  .offcanvas-header {
    display: none;
  }
  .offcanvas-body {
    @media screen and (min-width:769px) {
      justify-content: flex-end;
    }
  }
  /* メニュー */
  .navbar-nav {
    display: block;
    /* grid-template-columns: repeat(3, 1fr); */
    row-gap: 24px;
    margin-right: 40px;
    /* NGT-CSTM-OPAC-002 start */
    max-width: 72vw;
    /* NGT-CSTM-OPAC-002 end */

    @media screen and (min-width:769px) {
      display: flex;
      flex-flow: row;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: flex-end;
      row-gap: 8px;
      margin-right: 0;
    }
    @media screen and (min-width:769px) and (max-width:1023px) {
      column-gap: 16px;
    }
    @media screen and (min-width:1024px) {
      column-gap: 24px;
    }
    li {
      position: relative;
      margin-bottom: 0;
      padding: 8px 16px;
      border-bottom: 1px solid var(--border-color);
      @media screen and (min-width:769px) {
        padding: 0;
        border-bottom: none;
      }
      &::after {
        @media screen and (min-width:769px) {
          content: '|';
          display: block;
          position: absolute;
          top: 2px;
          font-size: 10px;
        }
        @media screen and (min-width:769px) and (max-width:1023px) {
          right: -8px;
        }
        @media screen and (min-width:1024px) {
          right: -12px;
        }
      }
      &:last-of-type {
        &::after {
          content: '';
          display: none;
        }
      }
    }
    a {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      column-gap: 16px;
      color: var(--link-text-color);
      text-align: left;
      transition: all 0.3s;
      @media screen and (min-width:769px) {
        display: block;
        min-width: 32px;
        text-align: center;
      }
      &:hover {
        text-decoration: none;
      }
      .menu-title {
        @media screen and (max-width:768px) {
          flex: 1;
        }
      }
    }

    /* メニューアイコン */
    .menu-icon {
      margin: 0 auto;
      max-width: 24px;
      max-height: 24px;
      @media screen and (min-width:961px) {
        max-width: 32px;
        max-height: 32px;
      }
    }

    /* メニュータイトル */
    .menu-title {
      font-size: 14px;
      @media screen and (min-width:769px) {
        /* NGT-CSTM-OPAC-002 start */
        /* font-size: 12px; */
        font-size: 14px;
        /* NGT-CSTM-OPAC-002 end */
      }
    }
  }

  &.header-border-bottom {
    border-bottom: 16px solid var(--search-condition-background-color);
  }

  /* スマホメニューボタン */
  .sp-menu-button {
    position: absolute;
    top: 16px;
    right: 16px;
    display: block;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 5000;
    span {
      position: absolute;
      display: block;
      width: 100%;
      height: 3px;
      border-radius: 2px;
      background-color: var(--sp-menu-button-color);
      transition: all 0.4s;
      &:nth-of-type(1) {
        top: 0;
      }
      &:nth-of-type(2) {
        top: calc(50% - 1.5px);
      }
      &:nth-of-type(3) {
        bottom: 0;
      }
    }
    @media screen and (min-width:769px) {
      display: none;
    }
    &.open {
      span {
        &:nth-of-type(1) {
          transform: translateY(10px) rotate(-45deg);
        }
        &:nth-of-type(2) {
          opacity: 0;
        }
        &:nth-of-type(3) {
          transform: translateY(-11px) rotate(45deg);
        }
      }
    }
  }

}

/**
 * footer
 */
footer {
  width: 100%;

  .copy {
    padding: 12px 16px 10px 16px;
    font-size: 11px;
    text-align: center;
    color: var(--copyright-text-color);
    background-color: var(--copyright-background-color);
  }
}



/**
 * link
 */
a {
  color: var(--link-text-color);
  text-decoration: none;
  cursor: pointer;
  &.hover-line {
    display: inline-block;
    position: relative;
    transition: all 0.3s;
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 1px;
      background-color: var(--body-text-color);
      transform: scale(0, 1);
      transform-origin: left top;
      transition: all 0.3s;
    }
    &:hover {
      &::after {
        transform: scale(1, 1);
      }
    }
  }
}
label {
  &:hover {
    cursor: pointer;
  }
}
a:not(.hover-line) {
  transition: all var(--transition-duration);
  opacity: 1.0;
  &:hover {
    opacity: var(--hover-opacity);
  }
}
.hover-opacity {
  &:hover {
    opacity: var(--link-hover-opacity);
  }
}

/**
 * form
 */
.form-control {
  display: block;
  width: 100%;
  font-weight: normal;
  font-size: 16px;
  border: 1px solid #ced4da;
  appearance: none;
  border-radius: 2px;

  @media screen and (min-width:769px) {
  }
}

input[type=text], textarea {
  padding: 4px 9px;
}

input[type=checkbox] {
  transform: scale(1.2);
}

button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
  cursor: pointer;
}

.btn {
  border: 0;
  border-radius: 2px;
}

.btn-primary {
  color: var(--btn-primary-color);
  background-color: var(--btn-primary-background-color);
  transition: all 0.3s;
  &:hover {
    color: var(--btn-primary-hover-color);
    background-color: var(--btn-primary-hover-background-color);
  }
}

.btn-detail-primary {
  color: var(--btn-detail-primary-color);
  background-color: var(--btn-detail-primary-background-color);
  transition: all 0.3s;
  &:hover {
    color: var(--btn-detail-primary-hover-color);
    background-color: var(--btn-detail-primary-hover-background-color);
  }
}


.form-select {
  display: block;
  width: 100%;
  padding: 4px 9px;
  font-size: 16px;
  border: 1px solid #ced4da;
  border-radius: 2px;
  @media screen and (min-width:769px) {
    font-size: 14px;
  }
}


/* データエクスポートボタンなど */
.data-export-link {
  display: block;
  margin: 0 auto 4px auto;
  padding: 8px 16px;
  color: var(--btn-export-color);
  background-color: var(--btn-export-background-color);
  border-radius: 2px;
}

/* table */
thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}


/**
 * container
 */
.container {
  margin: 0 auto;
  padding-right: 16px;
  padding-left: 16px;
  width: 100%;

  @media screen and (min-width:769px) {
    padding-right: 24px;
    padding-left: 24px;
  }
}

/* 書影画像 */
.cover-image {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.16));
}

/**
 * キーワード検索・詳細条件
 */
.nalis-search-nalis-schema-search-form {
  background-color: var(--search-condition-background-color);

  /* キーワード検索 */
  .simple-search {
    padding-top: 24px;
    padding-bottom: 24px;

    .simple-search-inputs {
      column-gap: 0;
      @media screen and (min-width:769px) {
        display: flex;
        flex-flow: row;
        align-items: center;
      }
    }

    .kywd-wrap {
      display: flex;
      align-items: center;
      margin-bottom: 16px;
      @media screen and (min-width:769px) {
        margin-bottom: 0;
      }
    }
    .kywd-action-wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;
      align-self: stretch;

    }
    .kywd {
      width: 100%;
      @media screen and (min-width:769px) {
        max-width: 480px;
      }
      input {
        border-radius: 2px 0 0 2px;
      }
    }

    /* キーワード検索ボタン */
    .search-keyword-submit {
      display: flex;
      justify-content: center;
      align-items: center;
      align-self: stretch;
      white-space: nowrap;
      padding-inline: 24px;
      border-radius: 0 2px 2px 0;
      /* 虫眼鏡アイコン */
      svg {
        width: 24px;
        height: auto;
        @media screen and (min-width:769px) {
          width: 16px;
        }

        path {
          fill: rgba(255, 255, 255, 1.0);
        }
      }
    }
  }
}

/* 詳細件枠 表示・非表示ボタン */
.search-condition-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  padding-inline: 16px;
  color: var(--search-condition-button-text-color);
  background-color: var(--search-condition-button-background-color);
  border-radius: 2px;
  white-space: nowrap;
  @media screen and (min-width:769px) {
    margin-left: 8px;
    margin-right: 16px;
  }
  &::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -7px;
    width: 16px;
    height: 8px;
    background-color: var(--search-condition-button-background-color);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
}

/* 日本語の時（ボタン幅） */
html[lang^="ja"] {
  /* 検索ボタン */
  .search-keyword-submit {
    width: 110px;
  }
  /* 詳細条件ボタン */
  .search-condition-button {
    width: 90px;
  }
}
/* 英語の時（ボタン幅） */
html[lang^="en"] {
  /* 検索ボタン */
  .search-keyword-submit {
    width: 120px;
  }
  /* 詳細条件ボタン */
  .search-condition-button {
    width: 150px;
  }
}


/* 件枠条件クリアボタン */
.search-clear-button {
  align-self: stretch;
  @media screen and (min-width:769px) {
    margin-left: 16px;
    margin-right: 32px;
  }
}

/* 検索詳細条件 */
.search-detail-conditions {
  margin: 0;
  padding: 0;
  transition: all 0.6s;
  .advanceSearch {
    margin: 8px auto 0 auto;
    padding: 18px 8px;
    color: var(--search-detail-condition-text-color);
    background-color: var(--search-detail-condition-background-color);
    border-radius: 2px;
    @media screen and (min-width:769px) {
      padding: 24px;
    }
    .col {
      padding-inline: 4px;
    }
    fieldset {
      border: 1px solid var(--border-color);
      border-radius: 2px;
      legend {
        margin-left: 8px;
        padding: 4px 8px;
        font-size: inherit;
        background-color: transparent;
        /* border-bottom: 1px solid var(--border-color); */
      }
      .fieldset-wrapper {
        padding: 4px 8px;
      }
    }
  }
  .btn-bunrui {
    padding: 6px 12px;
    line-height: 1.0;
    color: var(--btn-bunrui-text-color);
    background-color: var(--btn-bunrui-background-color);
    &:hover {
      opacity: 0.72;
    }
  }
  /* 検索ボタン */
  .advanced-search-submit {
    button {
      padding: 8px;
      width: 100%;
      font-size: 16px;
    }
  }
}

/* 著者典拠情報・統一書名典拠 */
.authority-info-wrap {
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  legend {
    margin-left: 8px;
    padding: 4px 8px;
    font-size: inherit;
    background-color: transparent;
    /* border-bottom: 1px solid var(--border-color); */
  }
  .async-block-author
  , .async-block-book {
    dl {
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      margin: 0 auto;
      padding: 0;
      dt {
        align-self: stretch;
        margin: 0 auto;
        padding: 4px 16px;
        width: 20%;
        border-bottom: 1px solid var(--border-color);
        &:first-of-type {
          border-top: 1px solid var(--border-color);
        }
        &:nth-of-type(odd) {
          background-color: var(--row-background-color-odd);
        }
        &:nth-of-type(even) {
          background-color: var(--row-background-color-even);
        }
      }
      dd {
        align-self: stretch;
        margin: 0 auto;
        padding: 4px 16px;
        width: 80%;
        border-bottom: 1px solid var(--border-color);
        &:first-of-type {
          border-top: 1px solid var(--border-color);
        }
        &:nth-of-type(odd) {
          background-color: var(--row-background-color-odd);
        }
        &:nth-of-type(even) {
          background-color: var(--row-background-color-even);
        }
      }
    }
  }
}


.row {
  display: flex;
  flex-wrap: wrap;

  &>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
  }
}

/**
 * スマホ用ファセット表示・非表示アイコン
 */
.menu-faset-visible {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  width: 64px;
  height: 64px;
  background-color: var(--faset-visible-background-color);
  border-radius: 50%;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
  z-index: 1000;
  @media screen and (min-width:769px) {
    display: none;
  }
  img, svg {
    width: 32px;
    path, polygon, rect, circle {
      fill: var(--faset-visible-icon-color);
    }
  }
}

/**
 * 検索結果画面左サイドバー
 */
.sidebar_first {
  position: fixed;
  left: 100vw;
  top: 0;
  padding: 32px 24px;
  width: 96%;
  background-color: var(--sidebar-background-color);
  filter: drop-shadow(3px 0 4px rgba(0, 0, 0, 0.1));
  z-index: 500;
  transition: all 0.6s;
  @media screen and (max-width:768px) {
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: scroll;
  }
  @media screen and (min-width:769px) {
    position: relative;
    left: 0;
    width: auto;
  }
  &.active {
    left: 4%;
  }
  h2 {
    position: relative;
    margin: 0 auto 20px auto;
    padding-left: 24px;
    font-size: inherit;
    border-bottom: 1px solid var(--border-color);

    &:before {
      position: absolute;
      top: 2px;
      left: 0;
      display: block;
      content: '';
      width: 16px;
      height: 16px;
      background-image: url(../images/icons/icon_sliders.svg);
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
    }
  }

  .facet-blocks {
    .block-facets {
      margin-bottom: 16px;
    }

    h3 {
      margin: 0 auto;
      font-size: 14px;
      font-weight: bold;

      a {
        color: var(--body-text-color);
      }
    }

    ul {
      margin: 0 auto;
      padding: 0 0 0 10px;
    }

    .facet-read-more {
      text-align: right;
    }
  }
}

/**
 * 検索結果一覧
 */
.path-search {

  /* メイン列 */
  .main-content {
    padding: 24px 16px;
    @media screen and (min-width:769px) {
      padding: 32px 24px;
    }

    h1 {
      margin: 0;
    }

    /* 結果無しメッセージ */
    .no-result-message {
      margin-bottom: 16px !important;
    }
  }


  .view-search {
    /* ヘッダー（検索結果件数など） */
    .view-header {
      margin-bottom: 8px;
      @media screen and (min-width:769px) {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
      }
    }
    .list-item-info-wrap {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      column-gap: 8px;
      word-break: break-all;
      @media screen and (min-width:769px) {
        column-gap: 16px;
      }
      /* レコード番号・チェックボックス */
      .list-num-wrap {
        display: grid;
        column-gap: 0;
        row-gap: 2px;
        grid-template-columns: repeat(1, 1fr);
        @media screen and (min-width:769px) {
          grid-template-columns: repeat(2, 1fr);
          column-gap: 2px;
          row-gap: 0;
          align-items: center;
        }
        .record-num {}
        .record-check {
          display: flex;
          justify-content: center;
          align-items: center;
          input[type=checkbox] {
            margin: 0;
          }
        }
      }
    }

    .item-list {
      ul {
        margin: 0 auto;
        padding: 0;
        list-style-type: none;

        li {
          position: relative;
          padding: 8px 4px;
          border-bottom: 1px solid var(--row-border);
          @media screen and (min-width:769px) {
            padding: 16px 12px;
          }
          &:first-child {
            border-top: 1px solid var(--row-border);
          }

          &:nth-child(odd) {
            background-color: var(--row-background-color-odd);
          }

          /* 書影 */
          .searchOPAC {
            img {
              width: 64px;
              height: auto;
              max-height: 128px;
            }
          }

          h4 {
            margin: 0;
            max-width: calc(100% - 24px);
            font-size: 16px;
            @media screen and (min-width:769px) {
              max-width: calc(100% - 24px);
            }
          }

          /* 著者・所蔵などの各情報 */
          .list-item-info {
            margin: 0 auto;
            padding: 0;
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            column-gap: 8px;
            +.hidden {
              display: none;
            }
            dt {
              margin: 0;
              padding: 0;
              flex-shrink: 0;
              text-align: left;
              @media screen and (min-width:769px) {
                width: 80px;
                /* text-align-last: justify; */
              }
            }

            dd {
              margin: 0;
              padding: 0;
              text-align: left;
              @media screen and (min-width:769px) {
                flex: 1;
              }
            }
          }
        }
      }
    }
  }


  /* 子書誌情報 */
  .ncip-childbib-id {
    table {
      border: none;
      border-top: 1px solid var(--border-color);
      tr {
        border-bottom: 1px solid var(--border-color);
        th, td {
          padding: 2px 4px;
          font-weight: 400;
        }
      }
    }
  }

}

/*
 * 検索結果ページャー
 */
.list-custom-pager {
  ul {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 4px;
    margin: 0;
    padding: 0;
    list-style-type: none;
    @media screen and (min-width:769px) {
    }
    .pager-previous, .pager-next {
      a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 32px;
        height: 32px;
        border: 1px solid #ced4da;
        border-radius: 100vh;
        &:hover {
          color: #ffffff;
          background-color: #ced4da;
        }
      }
    }
    input {
      width: 56px;
    }
    tt {
      font-size: 18px;
      font-weight: 700;
    }
  }
}
.list-pager-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/**
 * リストに対するアクション
 */
.list-actions-wrapper {
  align-items: center;
  margin-bottom: 4px;
  @media screen and (min-width:769px) {
    display: flex;
    justify-content: space-between;
  }
  .list-data-export-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    column-gap: 16px;
    flex-wrap: wrap;
    a {
      display: flex;
      align-items: center;
      color: var(--body-text-color);
      img, svg {
        margin-right: 4px;
        width: 16px;
      }
    }
  }
}


/**
 * 他のサイトで検索
 */
.search-other-sites {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--search-other-sites-text-color);
  border-bottom: 1px solid var(--search-other-sites-underline-color);
  white-space: nowrap;
  img, svg {
    margin-left: 4px;
    width: 100%;
    max-width: 16px;
  }
}

/**
 * ブックマーク一覧画面
 */
.page-view-bookmark {
  .main-content {
    padding: 24px 0;
  }
  header {
    border-bottom: 16px solid var(--search-condition-background-color);
  }
  .page-title {
    margin: 0 auto 8px auto;
    font-size: 18px;
    @media screen and (min-width:769px) {
      font-size: 24px;
    }
  }
  .table-bookmark {
    width: 100%;
    border: none;
    border-top: 1px solid var(--border-color);
    tr {
      border-bottom: 1px solid var(--border-color);
    }
    tbody {
      tr {
        &:nth-child(odd) {
          background-color: var(--row-background-color-odd);
        }
        &:nth-child(even) {
          background-color: var(--row-background-color-even);
        }
      }
      a {
        font-weight: 500;
      }
    }
  }
}

/**
 * 詳細画面
 */
.path-node {

  /* ヘッダー */
  header {
    border-bottom: 8px solid var(--search-condition-background-color);
  }

  /* 前へ・一覧へ・次へ */
  .bib-pager-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-top: -24px;
    margin-bottom: 16px;
    padding: 16px 0 8px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
    z-index: 500;
    .bib-pager-list {
      flex-grow: 1;
      text-align: center;
    }
  }

  /* メイン列 */
  .main-content {
    padding: 0;
  }

  /* 左列 */
  .catalog-detail-aside {
    padding: 32px 24px;
    background-color: var(--sidebar-background-color);
    filter: drop-shadow(3px 0 4px rgba(0, 0, 0, 0.1));
    .bib-detail-sidebar {
      position: relative;
      top: 0;
      left: 0;
      transition: all 0.3s;
    }
    /* 書誌画像 */
    .sidebar-cover-image {
      margin-bottom: 16px;
      text-align: center;
      img {
        margin: 0 auto;
        width: 100%;
        max-width: 160px;
      }
    }
    /* 書誌タイトル */
    .sidebar-bib-title {
      h2 {
        margin: 0 auto 24px auto;
        font-size: 14px;
      }
    }

    /* アクション */
    .side-actions {
      position: relative;
      a {
        display: flex;
        @media screen and (max-width:768px) {
          display: none;
        }
        justify-content: flex-start;
        align-items: center;
        img, svg {
          margin-right: 4px;
        }
      }
    }

    /* QRコード */
    .page-qrcode {
      @media screen and (max-width:768px) {
        display: none;
      }
      margin-top: 16px;
      padding: 24px 16px;
      border: 1px solid var(--border-color);
      legend {
        font-size: 12px;
      }
      img {
        margin: 0 auto;
      }
    }
  }

  /* メイン列 */
  .catalog-detail-main {
    padding: 32px 16px;
    @media screen and (min-width:769px) {
      padding: 24px 32px 64px 32px;
    }

    /* 「書誌情報を取り込む」ボタン */
    .bibimport {
      display: none;
      /* display: inline-block; */
      margin: 0 0 0.4rem 0;
      padding: 4px 16px;
      color: var(--btn-importbib-color);
      background-color: var(--btn-importbib-background-color);
      border-radius: 4px;
    }

    /* タイトル */
    h1 {
      margin: 0 auto 16px auto;
      font-size: 18px;
      font-weight: bold;
    }

    /* 上部情報 */
    .catalog-info-wrap {
      dl {
        margin: 0 auto;
        padding: 4px 16px;
        width: 100%;
        border-bottom: 1px solid var(--row-border);

        @media screen and (min-width:769px) {
          display: flex;
          justify-content: flex-start;
          align-items: flex-start;
          flex-wrap: nowrap;
          column-gap: 16px;
        }

        &:first-of-type {
          border-top: 1px solid var(--row-border);
        }
        /* &:nth-child(odd) {
          background-color: var(--row-background-color-odd);
        }

        &:nth-child(even) {
          background-color: var(--row-background-color-even);
        } */

        dt {
          @media screen and (min-width:769px) {
            width: 20%;
            max-width: 144px;
          }
        }
        dd {
          flex: 1;
          margin: 0;
          padding: 0;
          word-break: break-all;
        }
        a {
          font-weight: 500;
        }
        ul {
          margin: 0 auto;
          padding: 0;
        }
      }

    }

    /* 各セクション */
    .toggle-section {
      margin: 40px auto 0 auto;
      /* セクションタイトル */
      .toggle-header {
        position: relative;
        font-size: 16px;
        font-weight: bold;
        &::after {
          display: block;
          content: '';
          position: absolute;
          left: 0;
          top: 50%;
          width: 100%;
          height: 1px;
          border-bottom: 1px solid var(--body-text-color);
        }
        a {
          color: var(--body-text-color);
          &:hover {
            opacity: 1.0;
          }
          span {
            position: relative;
            padding: 0 16px 0 0;
            background-color: #ffffff;
            z-index: 10;
          }
        }
        a[aria-expanded=false] .fa-angle-down {
          display: none;
        }
        a[aria-expanded=true] .fa-angle-right {
          display: none;
        }
      }
      .toggle-body {
        margin-top: 8px;
      }
    }
    /* 所蔵情報 */
    .async-block-holding,
    .async-block-childbib,
    .async-block-receipt,
    .async-block-recommend {
      table {
        width: 100%;
        border: none;
        th, td {
          padding: 3px 6px;
        }
        thead{
          @media screen and (max-width:768px) {
            display: none;
          }
          th, td {
            display: table-cell;
            background: var(--row-background-color-even);
            font-weight: normal;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
          }
        }
        tbody {
          tr {
            td {
              border-bottom: 1px solid var(--border-color);
            }
            &:nth-child(odd) {
              td {
                background-color: var(--row-background-color-odd);
              }
            }
            &:nth-child(even) {
              td {
                background-color: var(--row-background-color-even);
              }
            }
            a {
              font-weight: 500;
            }
          }
        }
      }
      /* 請求記号 */
      .hold-header {
        @media screen and (max-width:768px) {
          float: left;
        }
      }
      .call-number {
        display: flex;
        column-gap: 1.2rem;
        @media screen and (min-width:768px) {
          display: block;
          margin: 0 auto;
          padding: 0 4px;
          width: 80px;
          font-size: 11px;
          background-color: var(--body-background-color);
          border-radius: 2px;
          border: 1px solid var(--border-color);
        }
        .call-number-top,
        .call-number-middle,
        .call-number-bottom {
          position: relative;
          @media screen and (min-width:769px) {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 1.1rem;
          }
        }
        .call-number-middle {
          @media screen and (min-width:769px) {
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
          }
        }
        .call-number-top, .call-number-middle {
          &::after {
            @media screen and (max-width:768px) {
              /*content: '//';*/
              content: attr(data-text);
              display: block;
              position: absolute;
              right: -1.0rem;
              top: 0;
            }
          }
        }
      }
      .btn-reserve-order {
        display: inline-block;
        margin: 0 auto;
        padding: 8px 6px;
        font-size: 12px;
        font-weight: 400;
        color: var(--reserve-order-button-color);
        line-height: 1.0;
        background-color: var(--reserve-order-button-background-color);
        border-radius: 2px;
      }
    }
    /* 受入情報 */
    .async-block-receipt {
      .toggle-header {
        margin: 40px auto 0 auto;
      }
    }


    /* タイトルが類似してる資料 */
    .title-similar-wrap {
      overflow: hidden;
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 0;
      margin: 0 -1px -1px 0;
      padding: 0;
      list-style-type: none;
      background-color: var(--body-background-color);
      border-top: 1px solid var(--border-color);
      border-left: 1px solid var(--border-color);
      @media screen and (min-width:960px) {
        grid-template-columns: repeat(3, 1fr);
      }
      li {
        align-self: stretch;
        margin: 0;
        padding: 8px 16px;
        width: 100%;
        background-color: var(--body-background-color);
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        a {
          font-weight: 500;
        }
        h4 {
          margin: 0 auto;
          padding: 0;
        }
      }
    }

    /* 類似資料 */
    .recommend-swiper-wrap {
      position: relative;
      .swiper-button-prev,
      .swiper-button-next {
        color: var(--body-text-color);
        &::before,
        &::after {
          font-size: 18px;
          font-weight: bold;
        }
      }
      .swiper-button-prev {
        margin-left: -16px;
      }
      .swiper-button-next {
        margin-right: -16px;
      }
    }
    .recommend-swiper {
      width: calc(100% - 48px);
      height: 100%;
      .swiper-slide {
        position: relative;
        img {
          max-width: 72px;
        }
        /* 画像 */
        .recommend-cover-image {
          margin: 0 auto 8px auto;
          text-align: center;
        }
        /* タイトル */
        h4 {
          margin: 0 auto 8px auto;
          font-weight: 500;
          line-height: 1.2;
        }
        /* 著者 */
        .creator {
          font-size: 12px;
        }
        /* 出版社 */
        .publisher {
          font-size: 12px;
        }
      }
    }
  }

}

/* 図書・雑誌などフォーマットアイコン */
.bib-format {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 4px;
  font-size: 11px;
  color: var(--bib-format-text-color);
  line-height: 1.0;
  background-color: var(--bib-format-background-color);
  border: 1px solid var(--bib-format-text-color);
  border-radius: 2px;
}


/* クリックツールチップ */
.dropbox-close {
  display: none;
}
.dropbox-open {
  display: block;
}
.dropbox-contents {
  display: none;
  position: absolute;
  padding: 2px 8px;
  color: var(--dropbox-text-color);
  background-color: var(--dropbox-background-color);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
  border-radius: 2px;
  z-index: 999;
  &.dropbox-close {
    display: none;
  }
  &.dropbox-open {
    display: block;
  }
  &::after {
    display: block;
    content: '';
    position: absolute;
    top: -9px;
    left: 8px;
    width: 16px;
    height: 10px;
    background-color: var(--dropbox-background-color);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }
  a {
    display: block;
    margin: 0 auto;
    padding: 4px 8px;
    color: var(--dropbox-text-color);
    background-color: var(--dropbox-background-color);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    word-break: keep-all;
    &:last-of-type {
      border-bottom: none;
    }
  }
}
.menu--main {
  /* メインメニュー内のdropbox */
  @media screen and (max-width:768px) {
    .dropbox-contents {
      display: block;
      position: relative;
      padding: 0;
      color: var(--dropbox-text-color);
      background-color: var(--dropbox-background-color);
      filter: none;
      border-radius: 0;
      &.dropbox-close {
        display: block;
      }
      &.dropbox-open {
        display: block;
      }
      &::after {
        display: none;
      }
      a {
        padding: 8px 8px 8px 48px;
        border-bottom: none;
      }
    }
  }
}


/* モーダル（日本十進分類・NLMCなど） */
.modal {
  z-index: 9000;
}
.callnumber-buttons {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  column-gap: 16px;
  row-gap: 8px;
}
.modal-content {
  .modal-title {
    margin-top: 0;
    font-size: 14px;
    color: var(--body-text-color);
  }
  ul {
    margin: 0 auto;
    padding: 0 !important;
  }
}


/* 文章開閉 */
.clamp-toggle {
  position: relative;
  display: grid;
  margin: 0 auto;
  padding: 0;
  border: none;
  content-visibility: auto !important;
  contain-intrinsic-size: 1000px;
  summary {
    cursor: pointer;
    padding: 0;
    list-style: none;
  }
  &[open] {
    .clamp-text3 {
      -webkit-line-clamp: unset;
      display: block;
    }
  }
}
.clamp-text3 {
  --lines: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines);
  line-clamp: var(--lines);
  overflow: hidden;
  transition: all 0.3s ease;
  content-visibility: visible !important;
}

/* 請求記号テーブル */
.table-callnumber {
  margin: 0 auto;
  width: 100%;
  color: var(--body-text-color);
  border: none;
  table {
    border: none;
    td {
      border-bottom: 1px solid var(--border-color);
    }
  }
  img {
    margin-right: 4px;
    width: auto;
    max-height: 24px;
  }
  .tree {
    padding-left: 24px;
  }
  &.table-callnumber-nlmc {
    td {
      border-bottom: 1px solid var(--border-color);
    }
  }
}

.smart_non_disp {
  @media screen and (min-width:768px) {
    display:none!important;
  }
}

.nonDisplay:has(dd span:empty) {
  display: none !important;
}

/* NGT-CSTM-OPAC-003 start */
.item-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}
/* NGT-CSTM-OPAC-003 end */
