@charset "UTF-8";

* {
  list-style: none;
  margin: 0;
  padding: 0;
  /* border: 0; */
  color: #333;
  font-style: normal;
  line-height: 1.4em;
  text-decoration: none;
  text-align: left;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#tNav a:link,
#tNav a:visited,
#breadcrumbs a:link,
#breadcrumbs a:visited {
  color: #039;
}

#tNav a:hover,
#tNav a:active,
#tNav a:focus {
  color: #d90505;
}

.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #d07599;
  border: solid 2px #a6a6a6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.pagetop__arrow {
  height: 10px;
  width: 10px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translateY(20%) rotate(-45deg);
}

img {
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

body {
  background: #fff;
  color: #595757;
}

#wrap {
  margin: 0 auto;
  width: 100%;
  height: auto;
  position: relative;
  padding: 0 2.5% 0;
}

/* #in_wrap {
  margin: 0 auto;
  width: 100%;
  padding: 0 2.5%;
} */

#head {
  height: 235px;
}

/* 上部リンク */
#tNav {
  height: 3.2em;
  margin: 0 auto;
  border-bottom: 1px solid #666;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 0.5em 0;
}

#tNav li {
  margin-right: 0;
  font-size: 60%;
  padding: 3px 0 3px 15px;
  vertical-align: bottom;
}

#title {
  height: 180px;
}

#logo {
  content: url('../img/second_title.png');
}

#kai {
  display: none;
}

.second_top {
  width: 100%;
  min-height: 200px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.links a {
  width: auto;
  display: block;
}

.links li:first-child img {
  width: auto;
  height: 50px;
}

.links li:nth-child(2) img {
  width: auto;
  height: 74px;
  /* margin-left: -4px; */
}

.top_bg {
  position: absolute;
  top: 0;
  left: 5%;
  width: 95%;
  height: 400px;
  background: url(../img2/secondTop_bg.png) 10% 0 no-repeat;
  background-size: 50%;
  z-index: -1;
}

.bg01 {
  position: absolute;
  top: 280px;
  left: 0;
  margin-left: -10px;
  width: 40%;
  aspect-ratio: 617/539;
  background: url(../img2/base_left.png) 0 0 no-repeat;
  background-size: contain;
  z-index: -1;
}

.bg02 {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-bottom: -6px;
  width: 26%;
  aspect-ratio: 411/461;
  background: url(../img2/base_right.png) no-repeat;
  background-size: contain;
  z-index: -1;
}

.bg03 {
  width: 100%;
  height: auto;
  max-width: 586px;
  max-height: 65px;
  margin: 1em auto 0;
  padding-top: 4px;
}

.bg03 img {
  display: block;
  margin: 0 auto;
}
.keyword_area {
  width: 100%;
  max-width: 800px;
  /* max-width: 1180px; */
  margin: 2.5% auto;
  padding: 2rem;
  border: 1px solid #a6a6a6;
  border-radius: 6px;
}

.keyword_title {
  margin-bottom: 0.5em;
  font-weight: 600;
}

.keyword_title > span {
  color: #a90009;
}

.search_keyword {
  text-align: center;
}

.search_keyword input {
  height: 2rem;
  width: calc(100% - 5rem);
}

.search_keyword button {
  height: 2rem;
  width: 4rem;
  background-color: #e0e0e0;
  text-align: center;
  border: none;
  border-radius: 5px;
}

#searchWarning {
  display: none;
  margin-top: 0.5em;
  font-size: 0.8em;
}

.list_area {
  width: 100%;
  max-width: 1180px;
  min-height: 400px;
  margin: 2.5% auto;
  padding: 2rem;
  border: 1px solid #b778a1;
  border-radius: 10px;
  background-color: #fff;
}

.btn_list {
  display: flex;
}

.list_ka,
.list_sa,
.list_ta,
.list_na,
.list_ha,
.list_ma,
.list_ya,
.list_ra,
.list_none {
  display: none;
}

#result_area {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 0.9em;
}

.search_word {
  font-size: 1.5rem;
  border-bottom: 3px solid #b778a1;
  display: inline-block;
  margin-bottom: 1rem;
}

.record_heading {
  border: 1px solid #b778a1;
  display: flex;
}

.heading {
  border-right: 1px solid #fff;
  font-weight: 600;
  background-color: #b778a1;
  color: #fff;
  text-align: center;
  padding: 0.4em;
}

.heading:last-child {
  border-right: unset;
}

.record_content {
  border: 1px solid #b778a1;
  border-bottom: 3px solid #b778a1;
  display: flex;
}

.content1,
.content2,
.content3,
.content4 {
  border-right: 1px solid #b778a1;
  text-align: center;
  margin: 0 auto;
}

.content4 {
  border-right: unset;
}

.content1,
.content2_1,
.content4 {
  display: flex;
}

.content1,
.content4 {
  align-items: center;
}

.cont {
  padding: 0.4em;
  word-wrap: break-word;
}

.head1,
.head6,
.content1,
.content5 {
  width: 10%;
}

.content5 {
  display: flex;
  align-items: center;
}

.content2 {
  width: 55%;
}

.unit {
  display: unset;
  align-items: center;
  flex-grow: 1;
}

.unit,
.content2_2 {
  min-height: 1.8em;
}

.documentNumber.unit,
.handle.unit {
  word-break: break-all;
}

.content2_1,
.content2_2,
.publicationYear {
  border-bottom: 1px solid #b778a1;
  min-height: 2em;
}

.bookTitle.unit {
  width: calc((25 / 55) * 100%);
  width: 26%;
  border-right: 1px solid #b778a1;
}

.Auther.unit,
.contributions.unit {
  width: 8%;
  border-right: 1px solid #b778a1;
}
.contributions.unit {
  border-right: unset;
}

.volumeNumber.unit,
.bibliographicID.unit {
  width: calc((15 / 55) * 100%);
  /* border-left: 1px solid #b778a1; */
}

.head2,
.head5,
.content3 {
  width: 25%;
}

.head3,
.head4 {
  width: 15%;
}

.record_heading_sp {
  display: none;
}

.showMirador {
  display: block;
  margin: 0 auto;
  /* height: 2rem; */
  max-width: 6.5rem;
  padding: 0.5em 0.2em;
  background-color: #a90009;
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 5px;
  font-size: 0.9em;
}

.noneMirador {
  display: block;
  margin: 0 auto;
  /* height: 2rem; */
  max-width: 6.5rem;
  padding: 0.5em 0.2em;
  background-color: #bababa;
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 5px;
}

.manifest_link {
  width: 100%;
  display: inline-block;
  text-align: center;
  text-decoration: underline;
  margin-top: 0.4em;
}

#breadcrumbs {
  display: none;
}

.publisherDetailsColor {
  background: #eae65f61;
}

@media screen and (max-width: 800px) {
  .unit {
    display: flex;
    align-items: center;
    flex-grow: 1;
  }

  .Auther.unit,
  .contributions.unit,
  .content5 {
    width: unset;
    border-right: unset;
  }
  .content2_1,
  .content2_2,
  .publicationYear {
    height: unset;
  }
  .record_heading {
    display: none;
  }

  .record_heading_sp {
    display: flex;
    padding: 0.4em;
    align-self: stretch;
  }

  .record_content {
    flex-direction: column;
  }
  .content1,
  .content2,
  .content3,
  .content4 {
    border-right: unset;
    /* border-bottom: 1px solid #b778a1;*/
  }

  .unit {
    display: flex;
    border-bottom: 1px solid #b778a1;
    width: unset;
  }

  .content2_1 {
    flex-direction: column;
    border-bottom: unset;
  }

  .content2_1,
  .content2_2 {
    border-bottom: unset;
  }

  .publicationYear.cont {
    border-bottom: unset;
  }

  .record_heading_sp.documentNumber {
    width: 8em;
    background-color: #b778a1;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
  }

  .record_heading_sp:not(.documentNumber) {
    width: 10em;
    background-color: #b778a190;
    color: #333;
    font-size: 0.8em;
    font-weight: 600;
    align-items: center;
  }

  .record_content {
    border-bottom: 1px solid #b778a1;
  }

  .cont {
    width: calc(100% - 8em);
  }

  .content1 {
    background-color: #b778a1;
    font-weight: 600;
  }

  .content1,
  .content2,
  .content2_1,
  .content2_2,
  .content3,
  .content4 {
    width: 100%;
  }

  .bookTitle.unit,
  .volumeNumber.unit,
  .bibliographicID.unit,
  .publisherDetails.unit,
  .Auther.unit,
  .contributions.unit {
    width: 100%;
    border-right: unset;
    border-left: unset;
    border-bottom: 1px solid #b778a1;
  }

  .documentNumber.cont {
    width: calc(100% - 8em);
    color: #fff;
  }

  .image.unit {
    width: 100%;
    border-top: 1px solid #b778a1;
  }

  .image.cont {
    width: 100%;
  }

  #tNav .t00 {
    display: none;
  }

  #breadcrumbs {
    display: block;
    position: absolute;
    top: 42px;
    left: 2.5%;
  }

  .crumbs {
    white-space: nowrap;
  }

  .crumbs li {
    display: inline-block;
    font-size: 70%;
  }

  .crumbs li:not(:last-child)::after {
    content: '|';
    margin: 0 5px;
  }
}

@media screen and (max-width: 700px) {
  #head {
    height: auto;
  }

  .top_bg {
    background-size: 100%;
  }

  .second_top {
    flex-direction: column-reverse;
  }

  .title {
    height: 100px;
  }

  .links {
    align-self: flex-start;
  }

  #tNav li {
  padding: 3px 0 3px 8px;
  }

  .bg01 {
    top: 380px;
  }
  .bg03 {
    padding-top: 25px;
  }

  #title {
    height: 100px;
    padding-top: 0.5em;
  }

  #title_kai {
    display: flex;
    align-items: center;
  }
  #kai {
    display: block;
    height: 75px;
  }
  #logo {
    content: url(../img/h1_sp.png);
    height: 40px;
  }
}

/********** （kawahara） **********/
h2 {
  color: #b778a1;
  border-bottom: 1px solid #b778a1;
}

h2 span {
  font-size: 75%;
  color: #333;
}

h3 {
  margin: 0.5em 0;
  padding: 0.3em 0 0.13em 0.5em;
  background-color: #e0e0e0;
  font-size: 1.1em;
}

/* 50音ボタン */
.btn_list {
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
}

.btn_column {
  font-weight: bolder;
  color: #fff;
  border-radius: 10% / 50%;
  background: #9e9400;
  padding: 0.4em 0.8em;
  border-color: #605a03;
  border-bottom: 5px solid #605a03;
  -webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.btn_column:hover {
  margin-top: 2.5px;
  color: #fff;
  background: #bdb760;
  border-color: #828065;
  border-bottom: 2px solid #828065;
}

.btn_column.selected {
  margin-top: 2.5px;
  color: #333;
  background: #e5e4e2;
  border-color: #9d9c95;
  border-bottom: 5px solid #9d9c95;
}

/* データが存在しないときの50音ボタン */
.disabled-button {
  background: #959480;
  border-color: #716f5b;
  border-bottom: 5px solid #716f5b;
  -webkit-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.disabled-button:hover {
  margin: 0;
  color: #fff; /* ホバー時のテキストの色を初期値に設定 */
  background: #959480; /* ホバー時の背景色を初期値に設定 */
  border-color: #716f5b;
  border-bottom: 5px solid #716f5b;
}

.disabled-button.selected {
  margin-top: 2.5px;
  color: #fff; /* ホバー時のテキストの色を初期値に設定 */
  background: #9e9400; /* ホバー時の背景色を初期値に設定 */
  border-color: #716f5b;
  border-bottom: 5px solid #716f5b;
}

/* 人名ボタンのスタイル */
.list-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.publisher_btn button {
  border: 2px solid #333;
  border-radius: 0;
  background: #fff;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.publisher_btn button:before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  content: '';
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  background: #333;
}

.publisher_btn button:hover {
  color: #fff;
  background: #333;
}

.publisher_btn button:hover:before {
  background: #fff;
}

.publisher_btn button:hover span {
  color: #fff;
}

/* syo_kanji 部分のホバー時のスタイル */
.publisher_btn button:hover .syo_kanji {
  color: #fff;
}

.syo_yomi {
  font-size: 1.3em;
  margin: 0.2em 0.5em;
}

@media screen and (max-width: 800px) {
  .syo_yomi {
    font-size: 1em;
    margin: 0 0.8em;
  }
  /* 書名ボタンのスタイル */
  .list-container {
    gap: 0.5em;
  }
}
