.list_body {
    margin: 0px;
    flex-direction: column;
    font-family: "Noto Sans JP", sans-serif;
    background-image: url(../images/logo_bg.png);
    background-position: bottom 35px left -35px;
    background-size: 900px;
    background-repeat: no-repeat;
}
/*-----------------------------------------------------------------
リストページ
------------------------------------------------------------------*/
header {
    width: 100%;
    height: 100px;
    background: linear-gradient(96deg, #FCB045 0%, #9E7EB4 100%) 0% 0%;
    opacity: 0.9;
    color: #ffffff;
}

.header_container {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section_h2{
    /*font-size: 2.4rem;*/
    margin-top: 50px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 30px;
}
.section_alert{
    font-size: 0.8rem;
    padding: 10px;
    /*border: 1px solid #999;*/
    background-color: #fff2cc;
    margin-bottom: 30px;
}

@media (max-width: 1250px) {
    .header_container {
        width: 90%;
    }
}

.header_logo {
    width: 175px;
    height: 64px;
}
@media (max-width: 750px) {
    .header_logo {
        width: 150px;
        height: 55px;
    }
}

.header_text {
    width: 800px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: right;
}
@media (max-width: 1050px) {
    .header_text {
        width: 600px;
    }
}
@media (max-width: 850px) {
    .header_text {
        width: 500px;
    }
}
@media (max-width: 750px) {
    .header_text {
        font-size: 16px;
        width: 400px;
    }
}


@media screen and (min-width: 601px) {
    .loader {
        position: fixed;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        z-index: 555;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .loader img {
        position: absolute;
        height: 50%;
        top: 51.5vh;
        left: 50%;
        transform: translate(-50%, -45%);
    }
}
@media screen and (max-width: 600px) {
    .loader {
        position: fixed;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        z-index: 555;
        top: 0;
        left: 0;
    }
    .loader img {
        position: absolute;
        width: 90vw;
        top: 51.5vh;
        left: 50%;
        transform: translate(-50%, -45%);
    }
}


.index_main {
    width: 1200px;
    height: 100%;
    margin: 0 auto;
}
@media (max-width: 1250px) {
    .index_main {
        width: 90%;
    }
}

.index_table {
    width: 100%;
    padding-top: 32px;
}
.index_table td{
    text-align: center;
    font-size: 18px;
}
@media (max-width: 1000px) {
    .index_table td{
        font-size: 16px;
    }
}
@media (max-width: 800px) {
    .index_table td{
        font-size: 14px;
    }
}
.index_image {
    width: 131px;
}
@media (max-width: 1000px) {
    .index_image {
        width: 101px;
    }
}
@media (max-width: 800px) {
    .index_image {
        width: 81px;
    }
}
.index_table form{
    margin-top: 12px;
    margin-bottom: 10px;
}
.index_select {
    width: 66%;
    margin-bottom: 2px;
    margin-left: 8px;
    margin-right: 8px;
}
.index_button {
    margin-top: 16px;
    margin-bottom: 10px;
    width: 66%;
    border-radius: 5px;
    background-color:lightgray;
}

/*-----------------------------------------------------------------
フッター
------------------------------------------------------------------*/
footer {
  text-align: center;
  background: linear-gradient(96deg, #FCB045 0%, #9E7EB4 100%) 0% 0%;
  opacity: 0.9;
  padding: 30px 0;
  font-size: 1rem;
}
@media (max-width: 860px) {
  footer {
    padding: 20px 0;
  }
}
@media (max-width: 600px) {
  footer {
    font-size: 1.2rem;
  }
}

.footer_section {
  display: flex;
  justify-content: right;
  margin: 100px auto 70px;
  line-height: 1.7;
  width: 1080px;
}
@media (max-width: 860px) {
  .footer_section {
    margin: 20px 0;
  }
}
.footer_section .footer_name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}
@media (max-width: 600px) {
  .footer_section .footer_name {
    font-size: 1.2rem;
    margin: 0;
  }
}
.footer_section .footer_address {
  font-size: 1rem;
  margin: 0;
}
@media (max-width: 600px) {
  .footer_section .footer_address {
    font-size: 0.4rem;
    margin: 0;
  }
}

/*-----------------------------------------------------------------
ビューアーページ
------------------------------------------------------------------*/
#viewer_body {
    position: fixed;
    margin: 0;
    height: 99.2vh;
    min-width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: hidden;
}
.overlay_box{
    /*flex-shrink: 0;*/
    position: absolute;
    background-color: rgba(255, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
    transition: all 0.1s ease;
}

#pdf_canvas{
    box-shadow: 10px 5px 5px gray;
    margin: 10px;
    position: relative;
    display: block;
    /*scale: 50%;*/
}
#toolbar {
    width: 100%;
    height: 8%;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: #23282e;
    border: none;
    font-size: 16px;
    display: flex;
    font-size: 12px;
    justify-content: center;
    align-items: center;
}

@media (max-width: 900px) {
    #toolbar {
        font-size: 11px;
    }
}


#toolbar_area {
    height: 95%;
    display: flex;
}
@media (max-width: 900px) {
    #toolbar_area {
        align-items: center;
    }
}

#find_field, #move_field, #zoom_field, #close_field {
    display: flex;
    align-items: center;
    margin-right: 20px;    
    border: none;
}
@media (max-width: 1175px) {
    #find_field, #move_field, #zoom_field, #close_field {
        margin-right: 10px;  
    }
}
@media (max-width: 1125px) {
    #find_field, #move_field, #zoom_field, #close_field {
        margin-right: 0px;  
    }
}

#search_button {
    background-image: url('/sample/wp-content/themes/cocoon-child-master/images/vw_btn/btn_find.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60% 60%;
}
#search_button:hover{
    background-color: red;
}
#first_button {
    background-image: url('/sample/wp-content/themes/cocoon-child-master/images/vw_btn/btn_first.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40% 40%;
}
#previous_button {
    background-image: url('/sample/wp-content/themes/cocoon-child-master/images/vw_btn/btn_prev.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60% 60%;
}
#next_button {
    background-image: url('/sample/wp-content/themes/cocoon-child-master/images/vw_btn/btn_next.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60% 60%;
}
#last_button {
    background-image: url('/sample/wp-content/themes/cocoon-child-master/images/vw_btn/btn_last.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40% 40%;
}
#zoomout_button {
    background-image: url('/sample/wp-content/themes/cocoon-child-master/images/vw_btn/btn_zoomout.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60% 60%;
}
#zoomin_button {
    background-image: url('/sample/wp-content/themes/cocoon-child-master/images/vw_btn/btn_zoomin.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60% 60%;
}
#back_button {
    font-size: 16px;
    margin-left: 8px;
    margin-right: 8px;
    width: 90px;
    height: 30px;
    background-color: #dddddd;
    color: #000000;
    border: none;
    cursor: pointer;
}

@media (max-width: 900px) {
    #back_button {
        font-size: 12px;
        margin-left: 4px;
        margin-right: 4px; 
        width: 70px;
        height: 30px;
    }
}


#close_button {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-image: url('/sample/wp-content/themes/cocoon-child-master/images/vw_btn/btn_close.png');
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
}

#search_popup {
    display: none; /* 初期状態で非表示 */
    background-color: #ffffe0;
    position: absolute;
    left: 20px;
    top: 50px;
    padding: 5px 10px;
    z-index: 1000;
    font-size: 15px;
}
/*#search_popup:after{
    border-bottom: 12px solid #ffffe0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    left: 5px;                           /* 吹き出し口の位置調整 
    top: -12px;                                /* 吹き出し口の縦位置
    content: "";
    position: absolute;
}*?display/

/* フェードアウト用クラス */
.fade-out {
    animation: fadeOut 0.2s forwards;
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

button {
    margin-left: 2px;
    margin-right: 2px;
    width: 30px;
    height: 30px;
    background-color: transparent;
    color: #000000;
    border: none;
    cursor: pointer;
}
button:active {
    background-color: #aaaaaa;
}
button:disabled {
    background-color: #bbbbbb;
    cursor: not-allowed;
}
#find_field input {
    width: 240px;
    height: 26px;
    font-size: 16px;
    background-color: #ffffff;
}

#move_field input {
    width: 40px;
    height: 26px;
    margin-left: 2px; 
    margin-right: 2px;
    font-size: 16px;
}
#zoom_field select{
    width: 160px;
    height: 26px;
    margin-right: 10px;
    font-size: 16px;
}
@media (max-width: 900px) {
    #find_field input {
        width: 160px;
        height: 26px;
        font-size: 12px;
    }
    #move_field input {
        width: 35px;
        height: 26px;
        font-size: 12px;
    }
    #zoom_field select {
        width: 120px;
        height: 26px;
        margin-right: 2px;
        font-size: 12px;
    }
    button {
        margin-left: 4px;
        margin-right: 4px; 
        width: 32px;
        height: 32px;
    }
}


.page_mover1 {
    margin-left: 10px;
    margin-right: 10px;
}

.page_mover2 {
    margin-left: 5px;
    margin-right: 15px;
}
@media (max-width: 950px) {
    .page_mover1 {
        margin-left: 5px;
        margin-right: 5px;
    }
    .page_mover2 {
        margin-left: 2px;
        margin-right: 8px;
    }
}



#frame {
    display: flex;
    min-height: 92%;
    max-height: 92%;
    width: 100%;
    overflow: hidden;
}

#sidebar {
    display: none; /* 初期状態で非表示 */
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 15px;
    padding-left: 0px;
    width: 300px;
    min-height: 92%;
    z-index: 500;
    background-color: #8a8a8ad5;
    overflow-y: auto;
    border: none;
}
#close_field {
    align-items: right;
}
#result_field {
    font-size: 12px;
    margin-bottom: 16px;
}
#search_results {
    padding-top: 2px;
    font-size: 12px;
}
#result_count {
    font-size: 14px;
    margin-bottom: 12px;
    color: #ffffff;
}
#result_page {
    font-size: 14px;
    margin-top: 6px;
}
#search_results div{
    padding-bottom: 6px;
    padding-left: 10px;
    padding-right: 10px;
}
.pageRes{
    background-color: #ffffff;
    margin-bottom: 10px;
    padding-top: 4px;
    padding-bottom: 4px;

}
#search_results p {
    background-color: #ffffff;
    padding: 4px;
    padding-left: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
}
#search_results p:hover {
    background-color: #f0f0f0;
}
#pdf_container {
    flex: 1;
    display: flex;
    justify-content: safe center;
    align-items: flex-start;
    padding: 5px;
    max-width: 100%;
    min-width: 69%;
    max-height: 100vh;
    overflow: scroll;
    background-color: #f2f2f2;
    position: relative; /* ✅ ハイライトボックスを内部に正しく描画するために追加 */
}

#search_mode{
    padding: 10px 0;
    color: #ffffff;
}


