/*googlefont*/
html {
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-feature-settings: "palt";
}
.biz-udpgothic-bold {
  font-family: "BIZ UDPGothic", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-feature-settings: "palt";
}

.sp{ display: none;}


/*========================================
ヘッダー
========================================*/
/*スキップリンク ----------------------------*/
	.skip-link {
		position: absolute;
		top: -40px;
		left: 0;
		background: #fff;
		color: #262626;
		padding: 8px;
		z-index: 100;
	  }
	   
	  .skip-link:focus {top: 0;}

/* --- Header Layout --- */
.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 2%;
  background: #ffffff;
}

/* Left: Logo */
.header-left{ width: 32%;}
.header-left a{ display: block; color: #000; text-decoration: none; width: 90%; }
.header-left a:visited{ color: #000!important;}
.header-left a:active{ color: #000!important;;}
.logo {font-size: calc(90% + 0.5vw); font-weight: 400;}
.logo span{ color: #4E75B5;}

/* Center: Buttons */
.header-center {
    display: flex;
    gap: 2%;
    width: 36%;
    max-width: 545px;
}
.header-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1% 4%;
    border-left: 3px solid #4E75B5;
    border-right: 3px solid #4E75B5;
    border-bottom: 3px solid #4E75B5;
    background: #fff;
    border-radius: 0px 0px 10px 10px;
    cursor: pointer;
    font-size: calc(56% + 0.5vw);
    text-align: center;
    position: relative;
    color: #000;
    transition-duration: 0.4s;
}
.header-btn p{ 
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}
.activeCont {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1% 4%;
    border-left: 3px solid #8acdf0;
    border-right: 3px solid #8acdf0;
    border-bottom: 3px solid #8acdf0;
    background: #4E75B5;
    border-radius: 0px 0px 10px 10px;
    cursor: pointer;
    font-size: calc(56% + 0.5vw);
    text-align: center;
    position: relative;
    color: #fff;
    transition-duration: 0.4s;
}
.header-btn-active p{ 
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    margin: auto;
}
.header-btn:hover {
    width: 100%;
    padding: 1% 4%;
    border-left: 3px solid #8acdf0;
    border-right: 3px solid #8acdf0;
    border-bottom: 3px solid #8acdf0;
    background: #4E75B5;
    border-radius: 0px 0px 10px 10px;
    cursor: pointer;
    font-size: calc(56% + 0.5vw);
    text-align: center;
    position: relative;
    color: #fff;
}
.header-btn:focus-visible { outline: -webkit-focus-ring-color auto 1px;}

/* Right: Links */
.header-right {
  display: flex;
  align-items: center;
  justify-content: right;
  width: 32%;
  gap: 16px;
}
.mobile-menu {
  display: flex;
  gap: 16px;
}
.header-link {
  color: #333;
  font-size: calc(40% + 0.5vw);
  padding: 8px 10px;
  border-radius: 20px;
  transition-duration: 0.4s;
}
.header-link:hover {
    background-color: #d4edf9;
    color: #333;
    padding: 8px 10px;
    border-radius: 20px;
    text-decoration: none;
}
.header-link_actv{
    background-color: #d4edf9;
    color: #333;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 20px;
}
/* navi*/
.breadcrumb{ color: #333; font-size: 0.9rem; padding: 1% 2% 30px;}
.webBreadcrumbs{ display: flex;}
.webBreadcrumbs li a:hover{ color: #4E75B5;}

/*========================================
コンテンツ
========================================*/
/*モーダル*/
 body.modal-open {
    overflow: hidden;
  }
#modalCaution{
    margin: 0 auto;
    background: #000;
    max-width: 400px;
    border-radius: 0 0 20px 20px;
    padding: 3% 0;
    color: #fff;
    font-weight: bold;
    line-height: 1.2;
}
/* --- モーダル背景 --- */
  #modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 137, 214, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
  }

  /* --- モーダル本体 --- */
  #modalBox {
    display: block;
    position: absolute;
    background: #fff;
    padding: 0 18px 25px;
    width: 94%;
    max-width: 800px;
    height: 470px;
    border-radius: 10px;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: auto;
  }

  #closeModal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 8px 40px;
    border: none;
    background: #fff;
    color: #000;
    cursor: pointer;
    margin: 0 auto;
    border-radius: 40px;
    border: 3px solid #8acdf0;
  }
  .dli-plus {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  width: 1em;
  height: 0.1em;
  background: currentColor;
  border-radius: 0.1em;
  position: relative;
  transform: rotate(45deg);
  margin: 0 5px 0 0;
}

.dli-plus::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}
#closeModal:hover { color:#fff; background:#4E75B5; border:3px solid #4E75B5;}

#closeModal:focus-visible {
    outline: 3px solid #000;  
  }

  /* マウス操作時はフォーカスリングを隠す */
button:focus {
    outline: none;
}

/* Tabキーを押したときだけフォーカスリングを表示 */
body.user-is-tabbing button:focus {
    outline: 2px solid #fff; 
}

.bookTitleM{font-size: calc(160% + 0.5vw); }
#modalDesc{ text-align: left;}
#modalDescSub{ text-align: left;}


/*main*/
#content{ position: relative; margin: 240px 0 0 0;}
#mainBg{
    width: 100%;
    background: url(../image/imageBg.png) , rgb(224 246 255 / 100%);
    background-repeat: repeat , repeat;
    background-size: auto;
    position: relative;
    margin: 124px 0 0;
    padding: 100px 0 7% 0;
}
.bookTitle{
    text-align: center;
    font-size: calc(300% + 0.5vw);
    font-weight: normal;
    margin: 2% 0 0 0;
}
#bookCount{
    display: block;
    font-size: calc(50% + 0.5vw);
}
    .sort_menu {
    width: 90%;
    max-width: 1480px;
    top: -110px;
    z-index: 1000;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    transition: transform 0.3s ease;
    }

    .sort_menu.hide {
    transform: translateY(-100%);
    }

    #sort_menu {
    width: 90%;
    max-width: 1480px;
    top: -184px;
    z-index: 1000;
    margin: 0 auto;
    position: absolute;
    left: 0;
    right: 0;
    transition: transform 0.3s ease;
    }

    #sort_menu.hide {
    transform: translateY(-100%);
    }

    #sort_menu h2{
      text-align: center;
      margin: 0 0 32px;
    }

    .filter-group {
      position: relative;
    }

    .filter-label {
        display: block;
        width: 26%;
        max-width: 300px;
        color: #fff;
        font-size: calc(30% + 0.5vw);
        font-weight: normal;
        text-align: center;
        background: #000;
        margin: 0 auto;
        border-radius: 20px 20px 0 0;
        position: absolute;
        left: 0;
        right: 0;
        top: -17px;
        padding: 0.5% 0;
        margin: auto;
    }
    .filter-labelColor2{ background: #4E75B5; top: -22px;}

    .toggle-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        grid-template-columns: repeat(6, 1fr);
        gap: 1%;
        width: 100%;
        margin: 0 auto;
        background: black;
        border-radius: 60px 60px 0 0;
        border-top: 6px solid #fff;
        border-right: 6px solid #fff;
        border-left: 6px solid #fff;
        padding:1.6% 0 2.6%;;
    }
    .toggle-buttons2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        grid-template-columns: repeat(6, 1fr);
        gap: 1%;
        width: 100%;
        margin: 0 auto;
        background: #4E75B5;
        border-radius: 0 0 60px 60px ;
        border-bottom: 6px solid #fff;
        border-right: 6px solid #fff;
        border-left: 6px solid #fff;
        padding: 2% 0 2%;
    }

    .toggle-button {
        color: #fff;
        cursor: pointer;
        text-align: center;
        font-size: calc(40% + 0.5vw);
        padding: 8px 10px;
        border: #000 2px solid;
        border-radius: 20px;
        transition-duration: 0.4s;
    }
    .toggle-button:hover{
        background-color: #fff;
        color: #333;
        padding: 8px 10px;
        border: #fff 2px solid;
        border-radius: 20px;
    }
    .toggle-button.active {
        background-color: #fff;
        color: #333;
        padding: 8px 10px;
        border: #fff 2px solid;
        border-radius: 20px;
    }
    .toggle-button:focus-visible { outline: -webkit-focus-ring-color auto 1px;}
    
    .toggle-buttonSe {
        color: #fff;
        cursor: pointer;
        text-align: center;
        font-size: calc(40% + 0.5vw);
        padding: 8px 10px;
        border: #4E75B5 2px solid;
        border-radius: 20px;
        transition-duration: 0.4s;
    }
    .toggle-buttonSe:hover{
        background-color: #fff;
        color: #333;
        padding: 8px 10px;
        border: #fff 2px solid;
        border-radius: 20px;
    }
    .toggle-buttonSe:focus-visible { outline: -webkit-focus-ring-color auto 1px;}
    
    .toggle-buttonSe.active {
        background-color: #fff;
        color: #333;
        padding: 8px 10px;
        border-radius: 20px;
    }
    
    /*リンク確認モーダル */
    .external-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(92, 137, 214, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }
    .external-modal.hidden { display: none; }
    .external-modal-content {
        background: #fff;
        padding: 5% 2%;
        width: 90%;
        max-width: 600px;
        border-radius: 8px;
        text-align: center;
    }
    .modal-buttons {
        margin: 0 auto;
        max-width: 300px;
        text-align: center;
    }
    .modal-buttons button {
        padding: 8px 14px;
        cursor: pointer;
    }

    #modalOk{
      color: #fff;
      font-size: 120%;
      background: #4F75B8;
      border-radius: 40px;
      padding: 6% 18%;
      margin: 0 0 15% 0px;
      position: relative;
      transition-duration: 0.6s;
    }
    .linkicon{
      content:url(../image/linkIcon.svg);
      display:inline-block;
      background-size: contain;
      vertical-align: middle;
      width: 8%;
      bottom: 38%;
      right: 12%;
      position: absolute;
    }
    #modalOk:hover{ scale: 1.2;}

    #modalCancel{
      border: #b9d9ea 3px solid;
      padding: 3% 12%;
      border-radius: 46px;
      transition-duration: 0.6s;
    }
    #modalCancel:hover{ scale: 1.2;}

    /* 通常はフォーカスリングを消す */
    .modal-buttons button:focus {
        outline: none;
    }

    /* Tabキー操作時のみフォーカスリング表示 */
    .user-is-tabbing .modal-buttons button:focus {
        outline: 3px solid #005fcc;
        outline-offset: 3px;
        border-radius: 4px;
    }

    .modal-skip{
      margin: 40px 0 20px 0;
      display: block;
      padding: 5px 0;
    }


    /*バリアフリーブックガイド ==============================*/
    .bgB { gap: 0.14%; }
    

    .book-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 2.08%;
        overflow-wrap: anywhere;
        width: 96%;
        max-width: 1200px;
        margin: 2% auto 0;
    }

    .book-card {
        width: 19%;
        max-width: 220px;
        border: 3px solid #8acdf0;
        padding: 20px 14px;
        border-radius: 28px;
        background: #fff;
        margin: 0 0 2.2%;
        transition-duration: 0.4s;
    }
    .book-card:hover{ scale: 1.1;}

    .book-card a{
      display: block;
      text-decoration: none;    /* 下線を消す */
      color: inherit;           /* テキスト色を親に合わせる */
      font-size: calc(50% + 0.5vw);
    }
    .book-card a img {
        width: 100%;
        max-width: 250px;
        height: auto;
        border-radius: 4px;
        margin: 0 auto;
        border: #dcdcdc 1px solid;
    }

    .book-title {
        font-size: calc(60% + 0.5vw);
        font-weight: bold;
        border-bottom: #b9d9ea 1px solid;
        padding: 0 0 6px 0;
        margin: 8px 0 6px;
    }

    .book-author {
      font-size: calc(46% + 0.5vw);
      color: #555;
    }
    
    /*リンクテキスト選択 -------*/
    .book-card {
      position: relative;
    }

    /* 背面リンク（カード全体） */
    .card-link {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    /* 表示要素は前面に */
    .book-card img,
    .book-title,
    .book-author {
      position: relative;
      z-index: 2;
    }

    /* タイトルは普通のテキストとして扱う */
    .book-title,
    .book-author {
      user-select: text;
      cursor: text;
    }

    /*0227追加 選択項目可視化 ----------------------------*/
    #selectedFilters {
      display: block;
      font-size: 0.4em;
      width: 90%;
      margin: 0 auto;
    }

    /* 非表示状態 */
    #selectedFilters.is-empty {
      height: 0;
      overflow: hidden;
      margin: 0;
      padding: 0;
    }
    /*0227追加 選択項目可視化 END----------------------------*/
    /*0403追加 外部リンク遷移テキスト読み上げ 表示透過*/
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
  }

    /*利用方法 ==============================*/
    .contentInfo{margin: 0!important;}
    .mainBgInfo{margin: 50px 0 0!important;}
    .infocont{
      text-align: center;
      border: 3px solid #8acdf0;
      padding: 20px 14px 60px;
      border-radius: 28px;
      background: #fff;
    }
    .infoBox section{
      width: 95%;
      text-align: left;
      margin: 0 auto;
    }
    .infoBox section p span{
      line-height: 1.5;
      margin: 0;
      text-indent: -1em;
      padding-left: 1em;
    }
    .infocont h3{ font-size: 140%; line-height: 1.2;margin: 1rem 0 0; }
    .infocont h4{ font-size: 120%; margin: 1rem 0 0;}
    .infocont p{ margin: 0.5rem 0;}
    .infocont section .bookTitle{ font-size: calc(170% + 0.5vw); line-height: 1.2; margin: 4% 0 6%; }

    #listmenu{
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      margin: 3% 0 2%;
    }
     #listmenu a{
      width: 30%;
      max-width: 300px;
      text-align: center;
      padding: 12px 10px;
      margin: 0 1%;
      border-radius: 30px;
      border:#a7a7a7 1px solid;
    }
     #listmenu a:hover {
      background-color: #d4edf9;
      color: #333;
      text-decoration: none;
      border-radius: 30px;
    }
    .listbox{ width: 100%!important;}
    .tBooklistF{
      padding: 10px 0;
      border-top: #dcdcdc 1px solid;
    }
    .tBooklist { width: 100%; padding: 10px 0; border-bottom: #dcdcdc 1px solid;}
    .keyWord{
      display: inline-block;
      width: 100%;
      background: #f1f1f1;
      padding: 1% 3%;
      text-indent: 0em!important;
    }
    .waku{
      display: inline-block;
      border: #bcbcbc 1px solid;
      background: #fff;
      padding: 1%!important;
      text-indent: 0em!important;
    }

    /*ウェブアクセシビリティ方針 ==============================*/
    .accesibcont{ text-align: left; padding: 20px 40px!important;}
    .accesibcont .bookTitle{text-align: center; display: block; font-size: calc(180% + 0.5vw); margin: 4% auto;}
    .accesibcont section p{ margin: 0;}

    #main p, #main li, #main dt, #main dd, #main caption, #main th, #main td {
        font-size: 1em;
        line-height: 1.6;
    }
    #main p {
        margin-bottom: 20px;
    }
    .space-btm05 {
        margin-bottom: 10px !important;
    }
    .hdg-type03 {
        margin: 4% 0 0;
    }
    main table td { padding: 0.5rem 1.5rem 0.5rem 0;}
    .score tr{border-top: 1px solid #e8e8e8; }
    table.score { 
      border-collapse: collapse;
      table-layout: inherit;
    }
    table.score th {
      background: #f2f7fd;
      color: #246cc5;
      text-align: center;
      padding: 0.5rem;
    }
    table.score td {
      /*padding: 1rem 0.5rem;*/
      border-bottom: 1px solid #e8e8e8;
    }
    table.score td:nth-child(n+3):nth-child(-n+5) {
      text-align: center;
      /*padding: 1rem 2rem;*/
    }
    .tableWrap { margin-bottom: 2rem;}

    /*フッター ==============================*/
    footer{ position: relative;}
    #linkBox{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      align-items: center;
      width: 90%;
      max-width: 1200px;
      background: #333;
      position: absolute;
      left: 0;
      right: 0;
      top: -19%;
      margin: auto;
      padding: 1% 1.4%;
      border-radius: 120px;
      border: #fff 6px solid;
    }
    #linkBox li a{
      display: block;
      font-size: calc(50% + 0.5vw);
      text-align: center;
      color: #fff;
      text-decoration: none;
      transition-duration:0.4s;
    }
    #linkBox li a:hover {
      text-decoration: underline;
    }

    #linkBox2{
      max-width: 700%;
      font-size: calc(50% + 0.5vw);
      text-align: center;
      line-height: 3;
      padding: 86px 0 30px 0;
      margin: 0 auto;
    }
    #linkBox2 li a{
      color: #333;
      padding: 8px 10px;
      border-radius: 20px;
      transition-duration: 0.4s;
    }
    #linkBox2 li a:hover {
      background-color: #d4edf9;
      color: #333;
      padding: 8px 10px;
      border-radius: 20px;
      text-decoration: none;
    }
    #copyright{
      text-align: center;
      font-size: calc(30% + 0.5vw);
    }

    /*ページトップ --------------------- */
    #page-top{
      height: 84px;
      width: 84px;
      right: 30px;
      bottom: 0px;
      position: fixed;
      z-index: 10000000;
    }
    #page-top a {
        width: min(6.72svw, 84px);
        height: min(6.72svw, 84px);
        background: #4E75B5;
        border-radius: 50%;
        position: fixed;
        bottom: 20px;
        right: 30px;
        z-index: 20000;

        color: #fff;
        font-size: 12px;

        gap: 4px;
        line-height: 1; /* ←ズレ防止 */
    }
    #page-top a span{
      width: 50px;
      display: flex;
      text-align: center;
      font-weight: bold;
      position: absolute;
      left: 0;
      right: 0;
      margin: auto;
      top: 24px;
      bottom: 0;
      flex-wrap: nowrap;
      flex-direction: row;
      align-content: stretch;
      justify-content: space-evenly;
      align-items: center;
    }
    #page-top a::before{
      content: "";
      display: inline-block; /* ←これ重要 */
      box-sizing: border-box;
      width: 0;
      height: 0;
      border: min(0.8svw, 10px) solid transparent;
      border-bottom: min(1.28svw, 16px) solid #fff;
      margin-bottom: min(0.4svw, 5px);
      margin-top: max(-1.6svw, -20px);
      left: 0;
      right: 0;
      position: absolute;
      margin: auto;
      top: -27px;
      bottom: 0;
      transform: translateY(-1px); /* ←視覚中央の微調整 */
    }


  /* ハンバーガー初期は非表示（PCで出さない） */
  .hamburger {
    display: none;
    flex-direction: column;
    width: 44px;
    height: 28px;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
  }


    @media (max-width: 1348px) {
      .book-card { width: 23.3%; max-width: 400px;}
    }

    @media (max-width: 1024px) {
    /*ヘッダーメニュー ------------------*/ 
      .toggle-buttons2{ gap: 0.1%; padding: 3% 1% 2%;}
      #mainBg{ padding: 63px 0 7% 0; }
      .book-list { gap: 1.2%;}
      #linkBox2{ padding: 65px 0 30px 0;}

      .toggle-buttonSe{padding: 8px 6px;}
    }

    @media (max-width: 963px) {
      .sort_menu{ width: 96%;}
      #sort_menu{ width: 96%;}

      .filter-label{
          font-size: calc(46% + 0.5vw);
          top: -15px;
      }
      .logo{ font-size: calc(80% + 0.5vw);}
      .filter-labelColor2 {
          background: #4E75B5;
          top: -18px;
      }
      .activeCont{
        font-size: calc(50% + 0.5vw);
      }
      .header-btn{
        font-size: calc(50% + 0.5vw);
      }
    }

    @media (max-width: 820px) {
      
      /*メニュー ---------------------------------------*/
      .header-link{ border-radius: 0px;}
      .header-link_actv{ background: #fff; border-radius: 0px; }

      /*バリアフリーブックガイド ------------------------*/
        .logo { font-size: calc(76% + 0.5vw); }
        .filter-label { font-size: calc(30% + 0.5vw);}
        #content{ margin: 190px 0 0 0;}
        .sort_menu{ top: -67px;}
        #sort_menu{ top: -160px;}
        .footerSortMenu{ top:0px!important; width: 98% !important;}
        #mainBg{ padding: 86px 0 7% 0; margin: 70px 0 0; box-sizing: border-box;}
        .toggle-buttons{ border-radius: 40px 40px 0 0; }
        .toggle-button { font-size: calc(30% + 0.5vw);}
        .toggle-buttons2 { border-radius: 0 0 40px 40px;}
        .toggle-buttonSe { font-size: calc(30% + 0.5vw);}

        .book-card{ width: 49%;}

        #linkBox {top: -38px;}

       /*利用方法 ------------------------*/
       .book-list section{font-size: 14px;}
       .bookTitle{ font-weight: 14px; margin: 0 0 2rem 0;}

       /*ウェブアクセシビリティ方針 ------------------------*/
       .book-list { font-size: 14px;}
       .accesibcont {  padding: 20px !important;}
       .accesibcont .bookTitle {margin: 2% auto 0%; font-size: 170%;} 
       .tableWrap { font-weight: 14px; margin: 0 0 2rem 0;}

       /* 絞り込みボタン（そのまま） */
      #footer-filter-btn {
        position: fixed;
        bottom: 22px;
        left: 20px;
        z-index: 1000000;
        color: #fff;
        background: #4E75B5;
        border-radius: 20px;
        padding: 10px 20px;
      }
      
      /* オーバーレイCSS */
      .footer-overlay {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0,0,0,0.5); /* 半透明の黒 */
          z-index: 999; /* パネルより下、他コンテンツより上 */
      }

      /* パネル */
      .footer-filter-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-sizing: border-box;
        overflow-y: auto;
      }

      /* 表示状態 */
      .footer-filter-panel.open {
        width: 96%;
        background: #fff;
        border-radius: 37px;
        left: 0;
        right: 0;
        /*bottom: 78px;*/
        margin: auto;
        transform: translateY(0);
        z-index: 100000;
      }

      /* 上部ヘッダー */
      .footer-filter-header {
        position: sticky;
        top: 0;
        background: #fff;
        padding: 12px 16px;
        border-bottom: 1px solid #ccc;
        text-align: right;
        z-index: 1;
      }
      
    }

    @media (max-width: 768px) {
      .spb{ display: block;}
      #content{ position: relative; margin: 200px 0 0 0;}
      /*モーダル*/
      #modalBox{ height: 526px;}
      .bookTitleM {
          font-size: calc(106% + 0.5vw);
      }
      
      .header-left { width: 80%;}
      .logo{font-size: calc(90.5% + 0.5vw);}
      .header-right{ width: 20%;}

      .header-center{
        order: 3;
        width: 100%;
        height: 54px;
        margin: 4% auto 0;
      }
      .activeCont{
        font-size: calc(80% + 0.5vw);
        border: 3px solid #8acdf0;
        border-radius: 10px;
      }
      .header-btn{
        display: flex;
        font-size: calc(80% + 0.5vw);
        border: 3px solid #4E75B5;
        border-radius: 10px;
        text-decoration: none;
      }
      .header-btn:hover {
          font-size: calc(80% + 0.5vw);
          border: 3px solid #8acdf0;
          border-radius: 10px;
      }
      .header-btn p{
        position: relative;
        line-height: 1.2;
        bottom: 0;
      }

      /* ハンバーガーメニュー -----------*/
      .hamburger {
        display: flex;
      }
      .header-link:hover {
        background-color: #d4edf9;
        color: #333;
        padding: 4% 2%;
        border-radius: 0;
      }
      /**/
      #linkBox2{ padding: 32% 0 30px 0!important;}

      /* スマホでは初期状態で閉じる */
      .mobile-menu {
        position: absolute;
        width: 100%;
        top: 56px;
        background: white;
        padding: 0px 0px 10px;
        display: block;           /* 常に block にし、height で開閉する */
        overflow: hidden;         /* アニメーションのため必須 */
        max-height: 0;            /* 閉じた状態 */
        opacity: 0;               /* フェードもつける */
        transition: 
          max-height 0.4s ease, 
          opacity 0.3s ease;
        z-index: 2000;
        right: 0;
        border-top: #dcdcdc 1px solid;
      }

      /* --- 開いたときに付与するクラス --- */
      .mobile-menu.show {
        max-height: 350px;
        opacity: 1;
      }
      .mobile-menu a{
        display: block;
        font-size: calc(100% + 0.5vw);
        padding: 4% 2%;
        border-bottom: #dcdcdc 1px solid;
      }

      .breadcrumb{padding: 4% 2% 12px;}
    
      .mainBgInfo { margin: 20px 0 0 !important;}
      
      /*本の種別 ------------------*/
      #sort_menu h2{
        font-size: 1.3rem;
        font-weight: 100;
      }
      .toggle-buttons{
          padding: 3% 0 8%;
        }
       .toggle-buttons2{
          border-radius: 0 0 40px 40px;
          justify-content: space-evenly;
       } 
        .toggle-button{
          width: 48%;
          height: 44px;
          font-size: calc(70% + 0.5vw);
          line-height: 1.2;
          padding: 8px 10px;
          margin: 1% 0;
          border-radius: 20px;
        }
        .toggle-buttonSe{
          width: 32%;
          height: 44px;
          font-size: calc(70% + 0.5vw);
          line-height: 1.2;
          padding: 8px 3px;
          margin: 1% 0;
          border-radius: 20px;
        }
        .toggle-buttonSe:hover{
          padding: 8px 3px;
        }
        .toggle-buttonSe.active{ padding: 8px 9px;}
        .filter-label {
          top: -16px;
          font-size: calc(60% + 0.5vw);
          width: 48%;
          max-width: 300px;
          padding: 2.5% 0 1%;
        }
        .filter-labelColor2 {
          top: -22px;
          font-size: calc(60% + 0.5vw);
          width: 60%;
          max-width: 300px;
          padding: 2.5% 0 1%;
        }
        .filter-group{ top: 22px;}
        
        .book-card:hover {
          scale: 1;
        }
        .book-card a {
            font-size: calc(80% + 0.5vw);
        }
        .book-title {
            font-size: calc(80% + 0.5vw);
            font-weight: bold;
        }

    /*利用方法*/
    #listmenu{display: block;}
    #listmenu a{
      display: block;
      max-width: 500px;
      width: 90%;
      margin: 0 auto 4%;
      padding: 4% 0;
    }
    .infoBox section p span{
      margin: 1% 0;
    }

    /*ウェブアクセシビリティ方針 ==============================*/
    .accesibcont {padding: 20px 16px !important;}
    
    table.score td:nth-child(n+3):nth-child(-n+5) { padding: 1rem 0.5rem;}

    /*Booksリスト -------------------*/
      #mainBg{ padding:2% 0 16% 0;}
      .bookTitle{font-size: calc(200% + 0.5vw);}
      .book-list { margin: 5% auto 0; padding: 20px 10px;}
      .book-card{ width: 49%; font-size: calc(76% + 0.5vw); padding: 14px 10px; margin: 0 0 4%; border-radius: 16px;}
      .book-author{ font-size: calc(80% + 0.5vw);}
      
     .mainBg2 { padding: 0 0 16% 0;}

    /*Linkリスト ------------------*/
      #linkBox{ padding: 2% 1.4%; border-radius: 20px;}
      #linkBox li{ width: 32%; margin: 3% 0px; }
      #linkBox2{ padding: 100px 0 30px 0;}
      
      #linkBox2 {
          font-size: calc(70% + 0.5vw);
          line-height: 1.4;
      }
      #linkBox2 li { margin: 0 0 5% 0;}
      #copyright {
          font-size: calc(40% + 0.5vw);
          width: 90%;
          margin: 0 auto;
      }

     /*フッター */
     #page-top a{ padding: 10px 24px 40px;}
     #page-top a::before{border: min(2.8svw, 10px) solid transparent; border-bottom: min(6.28svw, 16px) solid #fff;}
    
    }

    @media (max-width: 480px) {
    .sp{ display: block;}
    }

    /*リフロー対応 ==============================*/
    @media (max-width: 320px) {
      .skip-link{ top:-60px;}
      .header-center{ height: auto;}
      .toggle-button { width: 76%;}
      .toggle-buttonSe { width: 76%;}

      .filter-labelColor2{ width: 80%;}

      .book-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        font-size: calc(100% + 1vw);
      }
      .book-card img{ width: 100%; max-width: none;}
      
      #linkBox li{ width: 100%;}
      #linkBox2{padding:98% 0 30px 0!important}
      #footer-filter-btn{ display: none!important;}

    }

    /*SP絞込みボタン二度押し見た目解除 ==============================*/
    @media (hover: none) and (pointer: coarse) {
    .toggle-button {
      -webkit-tap-highlight-color: transparent;
    }

    .toggle-button:not(.active) {
      background: none !important;
      color: #fff !important;
    }
    .toggle-buttonSe {
      -webkit-tap-highlight-color: transparent;
    }

    .toggle-buttonSe:not(.active) {
      background: none !important;
      color: #fff !important;
    }
  }
