@charset "utf-8";
/* CSS Document */

:root {
    --primary-color: #006f83;
    --secondary-color: #008299;
    --background-color: #f9f9f9;
    --table-border: #dddddd;
    --text-color: #222222;
    --label-text: #ffffff;
}

.hiddenColumn {
    display: none;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 20px 40px;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-wrap: anywhere;
}
.container {
/*<!--  max-width: 1200px;-->*/
  margin: 0 auto;
  /*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}
h1 {
  color: var(--primary-color);
  font-size: 1.5em;
}

h2 {
  color: var(--primary-color);
  font-size: 1.2em;
}

.mainContent {
    border-bottom: solid thin;
}

.mainContent:not(:has(~ .mainContent)){
    border-bottom: none;
}

.mainContent p{
    margin: -0.5em 0 0.5em;
}

.subContent{
    margin: 30px 0px 0px;
    border-top: solid thin;
}

.subContent p{
    margin: -1em 0 0.5em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header {
  background-color: var(--primary-color);
  text-align: center;
  padding: 10px;
}

header h1{
  font-weight: normal;
  margin: 0px;
  font-size: 2em;
  color: var(--label-text);
}

.memo {
  font-size: 1em;
}

.desc{
    margin-left: 0.5em;
}
/* トップページ */



/*.menu-container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content:flex-start;
  font-size: 1.2em;
}
.menuBtn {
  min-width: 240px;
  display: block;
  text-align: center;
  color: var(--text-color);
  padding: 10px;
  border: solid;
  border-color: var(--primary-color);
  border-radius: 10px;
  text-decoration: none;
}
*/

footer {
  font-size: 1em;
  color: var(--text-color);
  margin-top: 20px;
  border-top: solid thin;
  background-color: white;
}

/* トップページ　*/

/* 特殊コレクション */


.mainContent:last-child {
    border-bottom: none;
}

.mainContent ul{
    margin-top: -0.5em;
}

.subContent ol{
    margin: -0.5em 0 1em;
}

/* 特殊コレクション */


/* 花月文庫 */

.ex-link {
    width: 16px;
    height: 16px;
    vertical-align:middle;
        margin-left: 3px;
}

.column-toggle-controls {
  margin: 10px 0;
}
.column-toggle-controls label {
  margin-right: 15px;
  font-size: 0.9em;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  font-size: 1em;
  margin-bottom: 10px;
}
.button-container a {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: white;
  color: var(--text-color);
  padding: 10px;
  border: var(--primary-color) solid thin;
  border-radius: 5px;
  text-decoration: none;
}


input#search {
  width: 100%;
  max-width: none;
  display: block;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid var(--table-border);
  border-radius: 4px;
}
.search-container {
  display: flex; /* 横並びにする */
  align-items: center; /* 縦の中央揃え */
  gap: 10px; /* 検索バーとボタンの間隔 */
  width: 100%;
  max-width: 800px; 
}
#search {
  flex: 1; /* 幅を可変にしてボタンとバランスを取る */
  padding: 10px;
  border: 1px solid var(--table-border);
  border-radius: 4px;
}
#searchButton {
  padding: 5px 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}
#searchButton:hover {
  background-color: #004080; /* ホバー時の色変更 */
}
.andOr {
  margin: 0px 0px 20px;
}
.andOr label {
  margin-right: 20px;
}
.linkBtn {
  display: inline-block;
  padding: 3px 10px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  font-size: 1em;
}
.multiView .linkBtn {
  margin: 2px 0px;
}
.view-button:hover {
  background-color: #004080; /* ホバー時の色変更 */
}
.table-container {
  overflow-x: visible;
}

#bookTable{
 table-layout: fixed;
 width:100%;
 border-collapse: collapse;
}


table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
th, td {
  border: 1px solid var(--table-border);
  padding: 12px;
  text-align: left;
  font-size: 1em;
}
th {
  background-color: var(--primary-color);
  color: var(--label-text);
  font-weight: bold;
}

.item01, .item02, .item03, .item04, .item05, .item06, .item07, .item08, .item09, .item10, .item11, .item12, .item13{
  text-align: center;
}
.item01 {
  width: 2em;
}
.item02 {
  width: 2em;
}
.item03 {
  width: 6em;
}

.item04, .item05, .item06, .item07, .item08, .item09{
 width: 2em;
}

.item10 {
  width: 4em;
}

.item11, .item12, .item13{
 width: 6em;
}

@media (min-width: 1080px) {
.item03 {
  width: 7em;
}

.item04, .item05, .item06, .item07, .item08, .item09{
 width: 3em;
}

}


.col01, .col02, .col05, .col06, .col07, .col10 {
  text-align: center;
}
.col08, .col09 {
  text-align: right;
}


/*.scroll-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 50%;
  font-weight: bold;
  display: none;
}
*/

thead tr th {
  position: sticky;
  top: 0;
  background-color: var(--primary-color);
  color: var(--label-text);
  z-index: 2;
}


.subContent ul{
    margin: -0.5em 0 1em;
}

.grid-container {
  display: grid;
  gap: 4px;
  max-width: 1000px;
  grid-template-columns: repeat(3, auto);
}

.subgrid-container {
  grid-column: span 3;
  display: grid;
  grid-template-columns: subgrid;
}

.grid-item01 {
max-width: 2em;
}

.grid-item02 {
max-width: 6em;
}

.grid-item03 {
padding-left: 0.5em;
}

.grid-item03 ul{
    list-style-type: square;
}

/* 花月文庫 */

/* 上田の図書館のあゆみ*/

#history{
    margin: 20px 0px 20px;
    background-color: white;
}

#history .WY{
   width: 4em;
   text-align: right;
}
#history .JY{
   width: 5em;
   text-align: right;
}

#history .Mo{
   width: 3em;
   text-align: right;
}


.taisho:not(:has(~ .taisho)){
    border-bottom: double var(--table-border);
}

.showa:not(:has(~ .showa)){
    border-bottom: double var(--table-border);
}

.heisei:not(:has(~ .heisei)){
    border-bottom: double var(--table-border);
}

@media (max-width: 768px) {

/* 花月文庫 */
    
  input#search {
    font-size: 16px;
  }
  th, td {
    padding: 6px;
    font-size: 0.8em;
  }
  input#search {
    font-size: 16px;
  }
  th, td {
    padding: 6px;
    font-size: 0.8em;
  }
    
    
    
/*  .scroll-indicator {
    display: block;
  }
*/
/* 花月文庫 */
    
/*上田市の図書館のあゆみ*/
    
    
    
    
    
}
    
