@charset "utf-8";
/* index.html専用。各sectionは全幅、内側.wrapのみ中央に制限する。 */
.hero { display:grid;grid-template-columns:560px 500px;gap:100px;padding:38px 0 44px;min-height:553px }
/* スライダーの見た目はここに集約。slick.cssは基本動作のみ。 */
.main-slider { position:relative;min-width:0;padding-left:57px;align-self:start }
.slides { position:relative;display:grid;grid-template-columns:minmax(0,1fr) 84px;column-gap:12px;row-gap:15px;width:500px;max-width:100%;min-width:0 }
.slides .slick-list { grid-column:1/-1;min-width:0;border:6px solid #ffc366;border-radius:22px;padding:0 !important;box-shadow:0 3px 5px #00000012 }
.slides .slide { width:488px;max-width:100%;height:auto }
.slides .slide img { display:block;width:100%;height:auto;aspect-ratio:5/4;object-fit:cover }
.slides:not(.slick-initialized) { display:block;border:6px solid #ffc366;border-radius:22px;overflow:hidden }
.slides:not(.slick-initialized) .slide:not(:first-child) { display:none }
.main-slider .slick-arrow { position:absolute;grid-column:1/-1;grid-row:1;top:50%;z-index:1;display:flex;align-items:center;justify-content:center;width:44px;height:60px;padding:0;border:0;background:transparent;color:transparent;font-size:0em;transform:translateY(-50%);cursor:pointer }
.main-slider .slick-prev { left:-57px }
.main-slider .slick-next { right:-57px }
.main-slider .slick-arrow::before { content:"";display:block;width:40px;height:40px;border-top:3px solid #999;border-right:3px solid #999 }
.main-slider .slick-prev::before { transform:rotate(-135deg) }
.main-slider .slick-next::before { transform:rotate(45deg) }
.main-slider .slick-arrow.slick-hidden { display:none }
.main-slider .slick-dots { grid-column:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 16px;min-width:0;min-height:38px;margin:0;padding:0;list-style:none;margin-left: 72px; }
.main-slider .slick-dots li { margin:0;padding:0;list-style:none }
.main-slider .slick-dots li::before { content:none }
.main-slider .slick-dots button { display:flex;align-items:center;justify-content:center;width:21px;height:38px;margin:0;padding:0;border:0;background:transparent;color:transparent;font-size:0em;cursor:pointer }
.main-slider .slick-dots button::before { content:"";display:block;width:12px;height:12px;border-radius:50%;background:#f4d971 }
.main-slider .slick-dots .slick-active button::before { background:#ff7b26 }
.main-slider .buttons { position:absolute;right:0;bottom:0;display:flex;gap:8px }
.main-slider .button { position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;margin:0;padding:0;border:1px solid #333;border-radius:50%;background:#fff;color:transparent;font-size:0em;cursor:pointer }
.main-slider .button.active { background:#333 }
.main-slider .js-play::before { content:"";display:block;margin-left:3px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid #333 }
.main-slider .js-play.active::before { border-left-color:#fff }
.main-slider .js-stop::before { content:"";display:block;width:7px;height:12px;border-left:2px solid #333;border-right:2px solid #333 }
.main-slider .js-stop.active::before { border-color:#fff }
.main-slider button:focus-visible { outline:2px solid #168046;outline-offset:3px }
.quick-tools { display:grid;gap:19px;align-content:start }
.quick-tools h2 { font-size:1.33333em;font-weight:500;margin:0;line-height:1.5 }
.book-search { background:#ffc366;border-radius:14px;padding:20px 34px;min-height:210px }
.book-search h2 { display:flex;align-items:center;gap:5px;margin-bottom:12px }
.book-search h2 img { width:33px;height:33px }
.search-row { display:flex;gap:9px }
.search-row input { min-width:0;flex:1;border:1px solid #555;border-radius:5px;background:#f8f5f3;padding:14px 12px;font-size:1em;height:60px }
.search-row input::placeholder { color:#999 }
.search-row button { background:#333;color:#fff;border:0;border-radius:5px;min-width:100px;font-size:1.33333em }
.search-links { display:flex;gap:15px;justify-content:center;margin-top:18px }
.search-links .pill { min-height:42px;width:190px;font-size:0.94444em;padding:5px 18px;border:0 }
.search-links .icon { color:var(--orange) }
.search-status { font-size:0.83333em;margin:12px 0 0 }
.account-panel,.card-panel { display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:14px;padding:20px 18px 20px 28px;min-height:110px;background:#d6e86b }
.account-panel p { font-size:0.88889em;margin:0 }
.account-panel .pill,.card-panel .pill { border:0;min-height:70px;width:230px;justify-content:center;padding:12px 20px }
.account-panel .pill>.icon:first-child { color:#31a474 }
.card-panel { background:#f7dc77 }
.card-panel .pill>.icon { color:var(--orange) }
.card-panel h2 { font-size:1.22222em }
.opening { width:100%;background:var(--cream) }
.opening-inner { display:grid;grid-template-columns:320px 1fr;gap:60px;padding-block:56px;}
.calendar-card { padding:1em;background:#fff;border-radius:15px;box-shadow:0 2px 3px #00000008;}
.calendar { box-sizing:border-box;border:5px solid #dedede;width:100%;max-width:320px;margin:auto;background:#fff; }
/* 蔵書検索システムが生成する月間カレンダー。月・曜日・日付は表の各セルで整列する。 */
#opac-calendar { font-size:0.85em;border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;line-height:1.2;text-align:center; }
#opac-calendar th,#opac-calendar td { width:14.2857%;height:29px;padding:0;border:0;background:#fff;text-align:center;vertical-align:middle;font-weight:400; }
#opac-calendar thead tr:first-child th { height:36px;background:#f7f7f7; }
#opac-calendar #currM { width:auto;font-weight:700;white-space:nowrap; }
#opac-calendar #prev,#opac-calendar #next { position:relative;cursor:pointer;font-size:0; }
#opac-calendar #prev::after,#opac-calendar #next::after { content:"";position:absolute;top:50%;left:50%;width:6px;height:6px;border-top:1px solid #777;border-right:1px solid #777; }
#opac-calendar #prev::after { transform:translate(-25%,-50%) rotate(-135deg); }
#opac-calendar #next::after { transform:translate(-75%,-50%) rotate(45deg); }
#opac-calendar thead tr:nth-child(2) th:first-child { background:#f6a9b4; }
#opac-calendar thead tr:nth-child(2) th:last-child { background:#80b7fa; }
#opac-calendar td span { display:grid;place-items:center;width:22px;height:22px;margin:auto;border-radius:50%; }
#opac-calendar td.currDay span {outline: 2px solid #f56e00;outline-offset: 1px;background: #fff3c4;}
#opac-calendar td.closingDay span { background:#f4b1cf; }
#opac-calendar td.pMDate span,#opac-calendar td.nMDate span { visibility:hidden; }
.libraries { display: none; }
.calendar-legend { font-size:0.88889em;line-height:1.9;margin:12px 0 14px;white-space:nowrap }
.calendar-legend.title{background: #fff3c4;padding: 0.3em 0.3em 0.3em 1em;color: #f56e00;font-weight: bold;margin-bottom: 0;}
ul.calendar-legend{padding-left:0.4em;}
.closed-dot,.event-square { display:inline-block;width:16px;height:16px;margin-right:5px;background:#f4b1cf }
.closed-dot { border-radius:50% }
.event-square { background:#d8e49d }
.year-calendar { display:flex;margin:auto;background:#d9eb87;border:0;width:max-content }
.opening-details { position:relative;padding-top:2px }
.opening-details h2 { font-size:1.16667em;font-weight:400;width:max-content;border-bottom:1px solid #ffb76a;padding:3px 13px 12px;margin:0 0 21px }
.hours { display:grid;grid-template-columns:245px 1fr;gap:17px 15px;align-items:center;font-size:1.11111em;margin-bottom:20px }
.hours dt { background:#ffd083;border-radius:7px;text-align:center;padding:8px 10px }
.hours dd { margin:0;white-space:nowrap }
.closed-days { list-style:none;padding:0 0 0 16px;margin:0;font-size:1.11111em;line-height:2 }
.closed-days li:before { content:"";display:inline-block;width:10px;height:10px;border-radius:50%;background:#ffc366;margin-right:14px }
.opening-mascots { position:absolute;right:34px;bottom:30px;display:flex;gap:13px;align-items:flex-end }
.opening-mascots img:first-child { width:62px }
.opening-mascots img:last-child { width:100px }
.updates { width:100%;background-image:linear-gradient(#e3e9ff 1px,transparent 1px),linear-gradient(90deg,#e3e9ff 1px,transparent 1px);background-size:46px 46px }
.update-grid { display:grid;grid-template-columns:1fr;gap:40px;padding-block:56px 60px }
.update-panel { background:#d8f3e3;border-radius:20px;padding:32px 34px 35px; }
.update-panel.event { background:#fff3c4 }
.update-panel h2 { font-size:1.11111em;font-weight:400;width:max-content;border-bottom:1px solid #339168;padding:0 4px 8px;margin:0 0 20px;display:flex;align-items:center;gap:14px }
.update-panel h2 span { font-family:"Noto Sans JP",sans-serif;color:#168046;font-size:2em }
.event h2 { border-color:#ff9b4d }
.event h2 span { color:#f56e00 }
.update-panel ul { list-style:none;padding:0;margin:0 0 24px }
.update-panel li { border-bottom:1px solid #b5ceb9;font-size:1em;line-height:1.65 }
.update-panel li a { display:block;padding:13px 12px }
.news-date { display:block }
.update-panel>.pill { display:flex;width:max-content;margin:auto }
.event>.pill { border-color:#ffab58 }
.event>.pill .icon { color:#fc7800 }
.related-links { padding-block:40px 59px }
.related-links ul { padding:0;list-style:none;margin:0;display:grid }
.shortcut-links { grid-template-columns:repeat(4,1fr);gap:32px }
.shortcut-links a { display:flex;align-items:center;justify-content:space-between;gap:10px;background:#d0efdf;border:6px solid #a9e3ce;border-radius:13px;min-height:91px;padding:14px;font-size:1.05556em;line-height:1.3 }
.shortcut-links .icon { background:#fff;border-radius:50%;padding:5px;width:36px;height:36px;color:var(--green) }
.related-links .banners { grid-template-columns:repeat(3,1fr);gap:40px;margin-top:36px }
.banners a { height:110px;border:3px solid;display:flex;align-items:center;justify-content:center;gap:5px;border-radius:10px;padding:14px;font-size:1.27778em;line-height:1.35 }
.banners .town-banner { border-color:#ff9eab }
.town-banner img { width:200px;max-width:65% }
.town-banner span { white-space:nowrap;font-weight:600;font-size:1.16667em }
.banners .hiki-banner { border-color:#6ab0ed }
.hiki-crop { width:300px;max-width:100%;overflow:hidden;display:block }
.hiki-crop img { width:450px;max-width:none;height:auto }
.banners .cross-banner { border-color:#00a663;gap:18px }
.cross-banner .icon { color:#00a663;width:48px;height:55px }
.reports { width:100%;background:var(--cream);padding-block:52px 51px;min-height:510px }
.report-title { display:flex;align-items:center;justify-content:center;margin:0 0 46px;font-size:1.66667em;line-height:1;font-weight:600;color:#507619 }
.letter { display:grid;place-items:center;width:51px;height:54px;background:#a3e1c7;border-radius:50% }
.letter:nth-child(3n) { background:#a3d78f }
.letter:nth-child(3n + 1) { background:#c3df70 }
.letter:nth-child(5) { background:#9adedd }
.leaf { font-size:3em;margin-inline:16px;color:#76a932;transform:rotate(-70deg) }
.leaf:last-child { transform:scaleX(-1) rotate(-70deg) }
.report-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:52px }
.report-card { background:#fff;border-radius:18px;overflow:hidden;display:block }
.report-card img { width:100%;aspect-ratio:3/2;object-fit:cover }
.report-card p { font-size:1.11111em;line-height:1.5;margin:0;padding:23px 21px;min-height:135px }
@media(max-width:1250px) {
  .hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:70px }
  .calendar-card { padding-inline:35px }
  .calendar { margin:auto }
  .hours { grid-template-columns:220px 1fr;font-size:0.94444em;gap:16px 10px }
  .opening-mascots { right:10px }
  .report-grid { gap:30px }
  .shortcut-links { gap:20px }
  .related-links .banners { gap:24px }
  .banners a { font-size:1.11111em }
  .town-banner span { font-size:0.94444em }
}
@media(max-width:1000px) {
  .hero { gap:45px;min-height:0 }
  .book-search { padding:18px }
  .quick-tools h2 { font-size:1.16667em }
  .search-row button { min-width:70px;font-size:1.11111em }
  .search-row input { font-size:0.83333em }
  .search-links { gap:8px }
  .search-links .pill { padding-inline:10px;font-size:0.83333em }
  .account-panel,.card-panel { padding:16px;gap:6px }
  .account-panel .pill,.card-panel .pill { width:auto;padding:12px;gap:6px;font-size:0.88889em }
  .account-panel p { font-size:0.72222em }
  .calendar-card { padding:24px }
  .hours { display:block }
  .hours dt { width:max-content;min-width:235px }
  .hours dd { margin:7px 0 15px }
  .opening-mascots { width:125px;bottom:0 }
  .opening-mascots img:first-child { width:40px }
  .opening-mascots img:last-child { width:68px }
  .opening-inner { min-height:640px }
  .update-panel { padding:25px;min-height:0 }
  .update-panel h2 span { font-size:1.61111em }
  .update-panel h2 { font-size:0.94444em;gap:8px }
  .shortcut-links a { font-size:0.88889em;padding:10px }
  .related-links .banners { gap:16px }
  .banners a { padding:10px;font-size:0.88889em }
  .town-banner span { font-size:0.77778em }
  .report-grid { gap:22px }
  .report-card p { font-size:0.94444em;padding:18px 14px }
}
@media(max-width:767px) {
  .hero { display:block;padding-top:25px;padding-bottom:30px }
  .quick-tools { margin-top:24px;gap:14px }
  .book-search { padding:20px;min-height:0 }
  .search-row input { font-size:0.88889em;height:50px }
  .search-row button { min-width:75px }
  .search-links .pill { width:50%;font-size:0.88889em;min-height:40px }
  .quick-tools h2 { font-size:1.16667em }
  .account-panel,.card-panel { min-height:96px;padding:15px 18px }
  .account-panel .pill,.card-panel .pill { min-width:145px;min-height:54px;padding:10px 14px }
  .account-panel p { font-size:0.66667em }
  .opening-inner { display:flex;flex-direction:column;padding-block:30px;gap:28px;min-height:0 }
  .calendar-card { width:100%;max-width:450px;align-self:center;padding:24px 30px;min-height:0 }
  .calendar-legend { font-size:0.77778em;width:310px;max-width:100%;margin:12px auto }
  .opening-details { padding:0 0 112px }
  .opening-details h2 { font-size:1.11111em;margin-bottom:16px }
  .hours { display:grid;grid-template-columns:auto 1fr;font-size:0.77778em;gap:12px 10px }
  .hours dt { width:auto;min-width:0;padding:9px 7px }
  .hours dd { margin:0;white-space:normal }
  .closed-days { font-size:0.88889em }
  .opening-mascots { bottom:0;right:12px }
  .update-grid { grid-template-columns:1fr;gap:24px;padding-block:30px }
  .update-panel { padding:26px 24px }
  .update-panel h2 span { font-size:1.66667em }
  .update-panel li { font-size:0.88889em }
  .update-panel li a { padding:14px 0 }
  .related-links { padding-block:30px }
  .shortcut-links { grid-template-columns:1fr 1fr;gap:14px }
  .shortcut-links a { min-height:80px;border-width:4px;font-size:0.77778em }
  .shortcut-links .icon { width:28px;height:28px }
  .related-links .banners { grid-template-columns:1fr;gap:16px;margin-top:24px }
  .banners a { height:90px;font-size:1.16667em }
  .town-banner span { font-size:1em }
  .hiki-crop { width:280px }
  .reports { padding-block:32px;min-height:0 }
  .report-title { margin-bottom:28px;font-size:1.11111em }
  .letter { width:34px;height:37px }
  .leaf { font-size:1.83333em;margin-inline:3px }
  .report-grid { grid-template-columns:1fr 1fr;gap:18px }
  .report-card { border-radius:14px }
  .report-card p { font-size:0.83333em;padding:16px 13px;min-height:0 }
}
@media(max-width:360px) {
  .hours { display:block }
  .hours dd { margin-block:8px 14px }
  .account-panel,.card-panel { padding:12px }
  .quick-tools h2 { font-size:1em }
  .account-panel .pill,.card-panel .pill { min-width:132px;font-size:0.77778em }
  .letter { width:30px }
  .leaf { font-size:1.44444em }
}
/* XDの葉のパスをそのままSVGとして抽出 */
.report-title .leaf { width:30px;height:57px;margin-inline:18px;transform:none;object-fit:contain }
@media(max-width:767px) {
  .report-title .leaf { width:18px;height:35px;margin-inline:5px }
}
.quick-tools h2,.opening-details h2 { font-weight:500 }
.update-panel h2 { font-weight:400 }
.update-panel h2 span { font-size:1.75em;font-weight:400 }
.report-title { font-weight:700 }
.calendar-heading strong { font-weight:700 }
.search-links .pill { font-weight:400 }
.search-links .pill>.icon:last-child { color:var(--orange) }
@media(max-width:1000px) {
  .update-panel h2 span { font-size:1.70588em }
}
@media(max-width:767px) {
  .update-panel h2 span { font-size:1.76471em }
}
/* Gridの自動最小幅とボタンの固定幅による押し出しを防止する。 */
.quick-tools { min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr); }
.quick-tools > section, .quick-tools form, .search-row, .search-links { min-width: 0; max-width: 100%; }
.search-row input { width: 0; flex: 1 1 0; }
.search-row button { flex: 0 0 auto; }
.search-links .pill { flex: 1 1 0; width: auto; min-width: 0; }
.account-panel > div, .card-panel > h2 { min-width: 0; }
.account-panel .pill, .card-panel .pill { flex: 0 1 230px; min-width: 0; }
.closed-days li::before { content: none; display: none; }
@media (max-width: 767px) {
  .account-panel .pill, .card-panel .pill { flex: 0 1 145px; width: auto; min-width: 0; }
  .search-row input { font-size: 1em; }
}
@media (max-width: 470px) {
  .book-search { padding: 18px 16px; }
  .account-panel, .card-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .account-panel .pill, .card-panel .pill { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; }
  .account-panel p { font-size: .875em; overflow-wrap: anywhere; }
  .quick-tools h2 { font-size: 1.125em; }
  .search-links { gap: 8px; }
  .search-links .pill { padding: 7px 10px; font-size: .875em; }
  .search-row button { min-width: 64px; padding: 8px; }
}
@media (max-width: 420px) {
  .shortcut-links { grid-template-columns: minmax(0, 1fr); }
}
/* 矢印の余白を確保し、写真の上下中央へ配置する。 */
@media(max-width:1250px) {
  .main-slider { padding-left:35px }
  .slides { width:100% }
  .main-slider .slick-prev { left:-35px }
  .main-slider .slick-next { right:-45px }
  .main-slider .slick-arrow { width:32px }
  .main-slider .slick-arrow::before { width:26px;height:26px }
}
@media(max-width:1000px) {
  .main-slider { padding-left:24px }
  .main-slider .slick-prev { left:-29px }
  .main-slider .slick-next { right:-32px }
  .main-slider .slick-dots { gap:0 9px }
}
@media(max-width:767px) {
  .main-slider { width:100%;max-width:556px;margin:auto;padding:0 28px }
  .slides { grid-template-columns:minmax(0,1fr) 72px;column-gap:8px;row-gap:10px }
  .slides .slick-list { border-width:4px;border-radius:18px }
  .main-slider .slick-arrow { width:25px }
  .main-slider .slick-prev { left:-28px }
  .main-slider .slick-next { right:-28px }
  .main-slider .slick-arrow::before { width:22px;height:22px;border-width:2px }
  .main-slider .slick-dots { min-height:32px;gap:0 4px }
  .main-slider .slick-dots button { width:21px;height:32px }
  .main-slider .buttons { right:28px }
  .main-slider .button { width:32px;height:32px }
}

.libraries { display: none; }
.update-panel.important{margin-top: 2em;background-color:#FFD3E0;}
.update-panel.important h2 span{color:#B30101;}
.update-panel.important h2{color:#B30101;border-bottom-color:#B30101;}
.update-panel.important  li{border-bottom:dotted 1px #B30101;}