@charset "utf-8";

div#main * { box-sizing: border-box;}

/* common */
.flex_half { display: flex; align-items: stretch; justify-content: center;}
.flex_half .flex_half_wrap { width: calc(50% - 40px); margin: 20px;}

.sec_wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0;}
.sec_wrap.margin_adjust { max-width: calc(1160px + 40px);}
.top .contents { padding-top: 0;}

@media screen and (max-width:1240px) {
  .flex_half { display: block;}
  .flex_half .flex_half_wrap { width: calc(100% - 40px);}
}



/* 01 ================================================= */
.sec_01 { padding-top: 20px; background-color: #DACFA6;}
.sec_01 .flex_half_wrap { margin-bottom: 10px;}


/* スライダー追記 */
.sec_01 .slide_box { width: 100%; max-width: 560px;}

.slick-dots { position: relative; top: inherit; bottom: inherit; padding: 10px 84px;}
.slick-dots li { width: 44px; height: auto; margin: 0;}
.slick-dots li button { width: 24px; height: 24px; margin: 5px 10px;}
.slick-dots li button:before { border-color: #fff;}
.slick-dots li.slick-active button:before { background-color: #968259;}

.buttons { bottom: 0px; right: 0px;}
.buttons .button { width: 34px; height: 34px;}
.buttons .button.js-play,
.buttons .button.js-stop { background: #474749; border-color: #fff; border-radius: 50%;}
.buttons .button.js-play.active,
.buttons .button.js-stop.active { background: #474749; border-color: #968259;}
.buttons .button.js-stop:hover,
.buttons .button.js-stop:focus,
.buttons .button.js-play:hover,
.buttons .button.js-play:focus { border-color: #968259!important;}

.buttons .button.js-play:before { top: 50%; left: calc(50% - 3px); margin-top: -5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 9px solid #fff;}
.buttons .button.js-stop:before,
.buttons .button.js-stop:after { top: 30%; bottom: 30%; left: 30%; width: 4px; background-color: #fff;}
.buttons .button.js-stop:after { left: inherit; right: 32%;}


/* 重要なお知らせ */
.box_significant { display: flex; align-items: stretch; margin: 10px 0; padding: calc(20px + .5em) 20px; background-color: #fff; border: 1px solid #BAA373;}
.box_significant .heading { display: flex; justify-content: center; align-items: center; width: 9em; margin: 0; padding: 0; text-align: center;}
.box_significant .heading .inner { padding-bottom: .3em; font-size: .8em; color: #A90B11; border-bottom: 2px dotted #A90B11;}
.box_significant .txtbox { width: calc(100% - 9em); padding: 0 1em 0 0;}

@media screen and (max-width:1240px) {
  .box_significant { width: 100%; max-width: calc(100% - 40px); margin-left: 20px; margin-right: 20px;}
}

@media screen and (max-width:660px) {
  .box_significant { display: block;}
  .box_significant .heading { margin-left: auto; margin-right: auto; margin-bottom: .5em;}
  .box_significant .txtbox { width: 100%;}
}


/* かんたん検索、マイページログイン */
.sub_menu { padding: 10px; background: url(../img/r5_bg_01.png) #968259;}
.sub_menu .heading { display: flex; justify-content: space-between; align-items: center;}

.sub_menu h2 { width: 100%; max-width: 152px; margin-bottom: 0;}
.sub_menu h2 img { max-width: 100%; height: auto;}
.sub_menu p { margin-top: 15px; margin-bottom: 0; padding-left: .5em;}

.box_easy_search { margin: 10px; padding: 20px; background-color: #fff;}
.box_easy_search .search_box {}
.box_easy_search .search_inner { display: flex; align-items: stretch; width:100%; padding: 2px;}
.box_easy_search input { padding: .75em .5em; font-size: 1.1em;}
.box_easy_search input.search_txt { width: calc(100% - 5em - 8px); margin-right: 8px; background-color: #EEEBE4; border: none; transition-duration: .15s;}
.box_easy_search input.search_bt { width: 5em; color: #fff; background-color: #303030; box-shadow: inset 0 0 0 2px #000; border: none;}
.box_easy_search input.search_bt:hover,
.box_easy_search input.search_bt:focus { box-shadow: inset 0 0 0 2px #DACFA6;}

.box_mypage { display: flex; padding-bottom: 0;}
.mypage_button { width: 250px; margin: 10px;}
.mypage_link { width: calc(100% - 250px - 40px); margin: 10px;}

.mypage_button { padding: 0;}
.mypage_button a { position: relative; display: block; line-height: .75;}
.mypage_button a .hover { position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; opacity: 0; transition-duration: .15s;}

.mypage_button a span { display: block;}
.mypage_button a:hover .hover,
.mypage_button a:focus .hover { opacity: 1;}
.mypage_button img { max-width: 100%; height: auto; opacity: 1!important;}
.mypage_link { display: flex; align-items: center; padding: 0; background-color: #F9F6EF;}
.mypage_link ul { width: 100%; margin: 0; padding: 10px; list-style: none;}
.mypage_link li { border-top: 1px solid #D8CDA5;}
.mypage_link li:first-child { border: none;}

.mypage_link a { position: relative; display: block; padding: .6em 4px .6em 34px; font-weight: bold; color: #000; text-decoration: none; transition-duration: .15s;}
.mypage_link a:before { position: absolute; display: block; content: ""; top: 0px; bottom: 0px; left: 12px; width: 12px; background: url(../img/r5_arrow_12-18_black.png) center center no-repeat;}
.mypage_link a:hover,
.mypage_link a:focus { background-color: #EEE2C9;}

@media screen and (max-width:660px) {
  .sub_menu .heading { display: block; text-align: center;}
  .sub_menu h2 { margin: 0 auto;}
  .sub_menu p { margin-top: .5em;}

  .box_mypage { display: block;}
  .mypage_button { margin-left: auto; margin-right: auto; margin-bottom: 20px;}
  .mypage_link { width: calc(100% - 20px);}
}



/* 02 ================================================= */
.sec_02 { padding-top: 20px; padding-bottom: 0; }
.sec_02 .flex_half_wrap { padding: 20px; background-color: #fff; box-shadow: 0px 2px 6px 0px rgba(64,64,64,.2);}


/* カレンダー */
.box_calendar {}

.selects { padding-bottom: 0;}

/* お知らせ */
.box_news { position: relative;}
.box_news .heading { display: flex; align-items: center; font-size: 1.2em; border-bottom: 1px solid #958158; padding-right: .5em;}
.box_news .heading_main { padding-right: .3em;}
.box_news .heading_sub { font-size: .6em; font-weight: normal;}

.box_news h2 { display: flex;}
.box_news .news { margin-bottom: 0;}
.box_news .more { display: inline-block; position: absolute; top: 1px; right: 1px; padding: .5em 32px .5em .5em; color: #000; text-decoration: none; background-color: #DACFA6; border: 1px solid #CEBC7E; transition-duration: .15s;}
.box_news .more:before { position: absolute; display: block; content: ""; top: 0px; bottom: 0px; right: 8px; width: 12px; background: url(../img/r5_arrow_12-18_black.png) center center no-repeat;}
.box_news .more:hover,
.box_news .more:focus { background-color: #CEBC7E;}


@media screen and (max-width:720px) {
  .box_news .more { display: flex; position: relative; margin: 0 auto 1em; max-width: calc(100% - 2px);}
}


/* 03 ================================================= */
.sec_03 {}
.sec_03 .sec_wrap { align-items: flex-start;}

.section_banner { width: calc(100% - 460px - 20px); margin: 10px;}
.section_banner div[class*="box_"] ul { display: flex; list-style: none; margin: 0; padding: 0;}
.section_banner div[class*="box_"] ul > li { display: flex; justify-content: center; margin: 10px;}

.section_banner a { display: block;}
.section_banner img { max-width: 100%; height: auto;}

.box_txt_banner ul,
.box_img_banner ul { flex-wrap: wrap;}

.box_txt_banner ul { align-items: stretch;}
.box_txt_banner li { width: calc((100% / 3) - 20px);}
.box_txt_banner a { position: relative; display: flex; align-items: center; width: 100%; height: 100%; min-height: 5.5em; padding: .5em .3em .5em 24px; color: #000; text-decoration: none; border: 5px solid #fff; background-color: #EEEBE4; box-shadow: 0px 2px 6px 0px rgba(64,64,64,.2); transition-duration: .15s;}
.box_txt_banner a:hover { background-color: #DBDAD6;}
.box_txt_banner a:before { position: absolute; display: block; content: ""; left: 8px; top: 20%; bottom: 20%; width: 5px; background: linear-gradient( to top, #000, #000 50%, #7E7E7E 51%, #7E7E7E);}


.box_img_banner ul { justify-content: space-between;}
.box_img_banner a { box-shadow: 0px 2px 6px 0px rgba(64,64,64,.2);}
.box_img_banner img { border: 5px solid #fff;}

.box_img_banner a,
.box_sns_banner a { line-height: .7;}
.box_sns_banner ul { justify-content: space-between;}

.box_fb { width: 420px; margin: 20px; padding: 10px 10px 4px; background-color: #fff; box-shadow: 0px 2px 6px 0px rgba(64,64,64,.2);}

@media screen and (max-width:1240px) {
  .section_banner { width: 100%; max-width: calc(100% - 20px);}
  .box_img_banner ul,
  .box_sns_banner ul { justify-content: center;}
  .box_fb { margin-left: auto; margin-right: auto;}
  .box_txt_banner li { width: calc(50% - 20px);}
}

@media screen and (max-width:660px) {
  .box_txt_banner li { width: calc(100% - 20px);}
  .box_txt_banner a { min-height: 4em;}
  .box_sns_banner ul { flex-wrap: wrap;}
  .box_sns_banner li { width: calc(50% - 20px);}
  .section_banner .box_sns_banner li:nth-child(1) { width: calc(100% - 20px);}
  .section_banner .box_sns_banner li:nth-child(2) { justify-content: flex-end;}
  .section_banner .box_sns_banner li:nth-child(3) { justify-content: flex-start;}

  .box_fb { max-width: calc(100% - 40px);}
}
@media screen and (min-width:1080px) {
.box_news .heading { display: block;}
}

/* 04 ================================================= */
.sec_04 { background: url(../img/r5_bg_01.png) #968259;}

.sec_04 .slide_banner { margin: 40px 20px 10px; padding: 0 0 60px;}
.sec_04 .slide_banner .wrap { width: 1160px; max-width: 100%; margin: 0; padding: 0;}
.sec_04 .slide_box { margin: 0; padding: 0 20px; background-color: #fff;}
.sec_04 #autoplay { padding: 26px 10px;}

.autoplay .buttons { bottom: -60px;}
.autoplay .slick-arrow { top: 50%; bottom: 0%; height:calc(100% - 8px); width: 24px; margin: 0; padding: 0; border-radius: 0;}
.autoplay .slick-arrow:hover,
.autoplay .slick-arrow:focus { background-color: #968259; box-shadow: inset 0px 0px 0px 2px #383838;}
.autoplay .slick-prev,
.autoplay .slick-next { background-color: #383838;}
.autoplay .slick-prev { left: -16px;}
.autoplay .slick-next { right: -16px;}
.autoplay .slick-prev:before,
.autoplay .slick-next:before { background-image: url(../img/r5_arrow_12-18_white.png);}
.autoplay .slick-prev:before { transform: scaleX(1);}
.autoplay .slick-next:before { transform: scaleX(-1);}


@media screen and (max-width:1220px) {
  #autoplay .slick-next {right: -16px;}
  #autoplay .slick-prev { left: -16px;}
}


/* 05 ================================================= */
.sec_05 {}
.sec_05 .sec_wrap { padding-top: 20px; padding-bottom: 20px;}

.sec_05 h2 { display: flex; justify-content: center; margin-left: 20px; margin-right: 20px;}
.sec_05 h2 span { display: block; padding: .5em; font-size: .8em; border-bottom: 2px solid #816D44;}

.box_banner_sponsor {}
.box_banner_sponsor ul { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; margin: 0; padding: 0; list-style: none;}
.box_banner_sponsor li { margin: 15px 20px; line-height: .7;}
.box_banner_sponsor li a { display: inline-block;}

.box_button_sponsor { display: flex; justify-content: center;}
.box_button_sponsor a { position: relative; display: flex; justify-content: center; margin: 15px auto; align-items: center; padding: .5em 32px .5em .5em; color: #000; text-decoration: none; background-color: #DACFA6; border: 1px solid #CEBC7E; transition-duration: .15s;}
.box_button_sponsor a:before { position: absolute; display: block; content: ""; top: 0px; bottom: 0px; right: 10px; width: 12px; background: url(../img/r5_arrow_12-18_black.png) center center no-repeat;}
.box_button_sponsor a:hover,
.box_button_sponsor a:focus { background-color: #CEBC7E;}


#libraryHours-main{padding: 0 1em;}
.selects{width:auto;display:block!important;}
#opac-calendar{border: 3px solid #ccc;}
#opac-calendar > thead:nth-child(1) > tr:nth-child(2) > th:nth-child(1){background-color: #f3b3cd;}
#opac-calendar > thead:nth-child(1) > tr:nth-child(2) > th:nth-child(7){background-color: #74B3FF;}
#opac-calendar th,
#opac-calendar td{height: 3em;}
.calendarlist{margin: 0;padding: 1em 0 0;}
.selects{width:100%;margin:0 0 0.5em 0;}