/*
Theme Name: OceanWP Child
Theme URI: https://your-site.com
Description: OceanWP Child Theme
Author: Your Name
Author URI: https://your-site.com
Template: oceanwp
Version: 1.0
*/

/* デフォルトフォント設定 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
input,
button,
textarea,
select {
    font-family: 'Noto Sans JP', sans-serif !important;
}


/* Playfair Displayフォントは特定の要素のみに適用 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

main #content-wrap {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
}

h3 {
    line-height: 0.4 !important;
}

#wrap a {
    outline: none !important;
    text-decoration: underline !important;
}

/* カスタムCSS */
#wrap .header-top {
    padding: 1.5rem 2rem !important;
    background: #3F3F3F !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 50px;
    color: white !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
}

#wrap .header-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

#wrap .site-logo {
    font-family: 'Playfair Display', serif !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    color: white !important;
    text-decoration: none !important;
}

#wrap .site-description {
    font-size: 12px !important;
    color: white !important;
}

#wrap .header-right {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
}

#wrap .lang-link {
    text-decoration: none !important;
    font-size: 14px !important;
    padding: 5px !important;
    color: white !important;
}

#wrap .lang-link.active {
    font-weight: bold !important;
}

#wrap .main-navigation {
    background: #E3D19A !important;
    width: 100% !important;
    position: fixed !important;
    top: 50px !important;
    left: 0 !important;
    z-index: 1000 !important;
}

#wrap .main-nav {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

#wrap .main-nav ul.wp-block-navigation__container {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#wrap .main-nav .wp-block-navigation-item__content {
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: bold;
    padding: 5px 10px !important;
}

#wrap .main-nav .wp-block-navigation-item__content:hover {
    text-decoration: underline !important;
}

/* お知らせセクション */
#wrap .news-section {
    max-width: 1200px !important;
    padding: 0 20px !important;
    position: relative !important;
}

#wrap .wp-block-heading {
    position: relative !important;
}

#wrap .news-section::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 18px !important;
    width: 70px !important;
    height: 30px !important;
    background: #e6d5a7 !important;
    z-index: -1 !important;
    clip-path: polygon(0 0, 100% 0, 0% 100%, 0 100%) !important;
}

.wp-block-heading::before {
    content: '' !important;
    position: absolute !important;
    width: 70px !important;
    height: 30px !important;
    background: #e6d5a7 !important;
    z-index: -1 !important;
    clip-path: polygon(0 0, 100% 0, 0% 100%, 0 100%) !important;
    top: -6px;
    left: -10px;
}

#wrap .news-header {
    position: relative !important;
}

#wrap .news-header h2 {
    position: relative !important;
    display: inline-block !important;
    padding: 15px 0 15px 10px !important;
    font-size: 24px !important;
    font-weight: normal !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

#wrap .news-list {
    margin-bottom: 5px !important;
}

#wrap .news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#wrap .news-meta {
    display: flex;
    /* align-items: center; */
    width: 100%;
    margin-bottom: 0;
    flex-direction: column;
    border-bottom: 1px solid #eee;
    padding: 10px;
}

#wrap .news-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

#wrap .news-date {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-right: 20px;
    white-space: nowrap;
}

#wrap .news-date .quick-link-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

#wrap .news-date .quick-link-icon img {
    width: 18px;
    height: 18px;
}

#wrap .news-categories {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

#wrap .news-categories .quick-link-icon {
    display: inline-flex;
    align-items: center;
}

#wrap .news-categories .quick-link-icon img {
    width: 18px;
    height: 18px;
}

#wrap .category-tag {
    display: inline-block;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 5px;
}

#wrap .news-link {
    color: #1A5D7E !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

#wrap .news-link:hover {
    text-decoration: underline !important;
}


#wrap .news-more:hover {
    text-decoration: underline !important;
}

#wrap .news-footer {
    border-top: 1px solid #eee;
}

/* クイックリンク */
#wrap .quick-links {
    max-width: 1200px !important;
    margin: 15px auto !important;
    padding: 0 20px !important;
    display: flex !important;
    gap: 20px !important;
    justify-content: space-between !important;
}

#wrap .quick-link-item {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    padding: 15px 20px !important;
    background: #fff !important;
    border: 1px solid #e6d5a7 !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
}

#wrap .quick-link-item:hover {
    background: #e6d5a7 !important;
    color: #000 !important;
}

#wrap .quick-link-icon {
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#wrap .quick-link-icon img {
    width: 70% !important;
    height: 70% !important;
    object-fit: contain !important;
}

#wrap .quick-link-text {
    flex: 1 !important;
    font-size: 16px !important;
}

#wrap .quick-link-arrow {
    margin-left: 10px !important;
}

/* データベースセクション */
#wrap .database-section {
    max-width: 1200px !important;
    margin: 30px auto !important;
    padding: 0 20px !important;
    position: relative !important;
}

#wrap .database-section::before {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    left: 18px !important;
    width: 70px !important;
    height: 30px !important;
    background: #e6d5a7 !important;
    z-index: -1 !important;
    clip-path: polygon(0 0, 100% 0, 0% 100%, 0 100%) !important;
}

#wrap .database-header {
    position: relative !important;
    margin-bottom: 10px !important;
}

#wrap .database-header h2 {
    position: relative !important;
    display: inline-block !important;
    padding: 15px 0 15px 10px !important;
    font-size: 24px !important;
    font-weight: normal !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

#wrap .database-list {
    display: flex !important;
    gap: 20px !important;
    justify-content: space-between !important;
}

#wrap .database-item {
    flex: 1 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.3s ease !important;
    max-width: 70% !important;
}

#wrap .database-content {
    padding: 0 !important;
    text-align: center !important;
    max-width: 100% !important;
}

#wrap .database-image {
    margin: 0 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

#wrap .database-image img {
    height: auto !important;
    object-fit: contain !important;
}

#wrap .database-item:hover {
    transform: translateY(-3px) !important;
}

/* サイドバーのカレンダー用スタイル */
#right-sidebar .calendar-section {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    background: #fff !important;
    border: none !important;
    width: 80%;
}

#right-sidebar .calendar-header {
    background: #e6d5a7 !important;
    text-align: center !important;
    border: none !important;
    padding: 5px 0 !important;
    /* ヘッダーの高さを低くする */
}

#right-sidebar .calendar-header h2 {
    margin: 0 !important;
    font-size: 14px !important;
    /* フォントサイズを小さくする */
    font-weight: normal !important;
    color: #333 !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    /* 行の高さを低くする */
}

#right-sidebar .calendar-content {
    padding: 3px 0px !important;
    /* パディングを小さくする */
    background: #fff !important;
    border: none !important;
}

#right-sidebar .calendar-month {
    text-align: center !important;
    font-size: 14px !important;
    /* フォントサイズを小さくする */
    font-weight: normal !important;
    color: #333 !important;
    margin: 3px 0 !important;
    /* マージンを小さくする */
}

#right-sidebar .calendar-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 1px !important;
    /* 間隔を小さくする */
    margin-bottom: 5px !important;
    /* マージンを小さくする */
    border: none !important;
}

#right-sidebar .calendar-table th {
    padding: 0 !important;
    font-weight: normal !important;
    text-align: center !important;
    color: #333 !important;
    background: none !important;
    border: none !important;
    font-size: 11px !important;
    /* フォントサイズを小さくする */
    line-height: 1.2 !important;
    /* 行の高さを低くする */
}

#right-sidebar .calendar-table td {
    width: 25px !important;
    /* 幅を小さくする */
    height: 20px !important;
    /* 高さを指定して低くする */
    padding: 0 !important;
    text-align: center !important;
    font-size: 11px !important;
    /* フォントサイズを小さくする */
    color: #333 !important;
    line-height: 1.2 !important;
    /* 行の高さを低くする */
}

#right-sidebar .calendar-table td:empty {
    background: none !important;
    border: none !important;
}

#right-sidebar .calendar-table .normal-time {
    background: #cce6ff !important;
}

#right-sidebar .calendar-table .long-time {
    background: #d8f2d8 !important;
}

#right-sidebar .calendar-table .holiday {
    background: #ffcccc !important;
}

#right-sidebar .calendar-legend {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    /* 間隔を小さくする */
    margin-top: 3px !important;
    /* マージンを小さくする */
}

#right-sidebar .legend-item {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    /* 間隔を小さくする */
    font-size: 10px !important;
    /* フォントサイズを小さくする */
}

#right-sidebar .legend-color {
    width: 15px !important;
    /* 幅を小さくする */
    height: 15px !important;
    /* 高さを小さくする */
    display: inline-block !important;
    border: none !important;
}

#right-sidebar .legend-color.normal-time {
    background: #cce6ff !important;
}

#right-sidebar .legend-color.long-time {
    background: #d8f2d8 !important;
}

#right-sidebar .legend-color.holiday {
    background: #ffcccc !important;
}

#right-sidebar .legend-text {
    color: #333 !important;
    font-size: 9px !important;
    /* フォントサイズを小さくする */
    line-height: 1.1 !important;
    /* 行の高さを低くする */
}

/* スライダーコンテナとオーバーレイ */
.slider-container {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    /* スライダー外の背景色 */
}

.slider-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 48, 135, 0.3) !important;
    /* 青透明の背景色 */
    z-index: 50 !important;
    /* テキストより下、スライダーより上のz-index */
    pointer-events: none !important;
    /* クリックイベントを通過させる */
}

.slider-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100 !important;
    text-align: center !important;
    width: 100% !important;
}

.main-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 70px !important;
    font-weight: 500 !important;
    color: white !important;
    margin: 0 0 10px 0 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    line-height: 0.7;
}

.sub-title {
    font-size: 26px !important;
    color: white !important;
    margin: 0 !important;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* スライダーの高さを調整 */
.n2-section-smartslider {
    height: auto !important;
    /* 高さを自動に変更 */
    max-height: 500px !important;
    /* 最大高さを設定 */
}

.n2-ss-slider-wrapper-inside {
    height: auto !important;
}

.n2-ss-slider,
.n2-ss-slide {
    height: auto !important;
}

/* スライダー内の画像が表示領域を超えないようにする */
.n2-ss-slide-background-image {
    background-size: cover !important;
    background-position: center center !important;
}

/* スライダーの下部に余白がある場合に対応 */
.n2-ss-layers-container {
    margin: 0 !important;
}

/* ナビゲーションアイコンのスタイル */
#wrap .wp-block-navigation-item {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

#wrap .wp-block-navigation-item .quick-link-icon {
    width: 16px !important;
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#wrap .wp-block-navigation-item .quick-link-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* メインナビゲーションのリンクスタイル調整 */
#wrap .main-nav .wp-block-navigation-item__content {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* フッタースタイル - 画像と完全に一致するように調整 */
#footer {
    background-color: #E3D19A !important;
    padding: 10px 0 !important;
    width: 100% !important;
    border-top: none !important;
    position: relative !important;
}

.footer-content {
    max-width: 1300px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
}

.footer-logo {
    display: flex !important;
    align-items: center !important;
    margin-right: 25px !important;
}

.sokendai-logo {
    height: 25px !important;
    /* ロゴサイズを大きく */
    width: auto !important;
    margin-left: 10px !important;
    /* 左側の余白を追加 */
}

/* 左端の斜めのデザイン */
#footer::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100px !important;
    /* 斜めの部分の幅 */
    height: 100% !important;
    background: linear-gradient(135deg, #E3D19A 0%, #E3D19A 50%, #d9c78c 50%, #E3D19A 51%) !important;
    /* グラデーションで斜めの効果を作成 */
    z-index: 1 !important;
}

/* ロゴを斜めの上に表示するために */
.footer-logo {
    position: relative !important;
    z-index: 2 !important;
}

.footer-links {
    flex: 1 !important;
    position: relative !important;
    z-index: 2 !important;
}

.footer-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.footer-menu li {
    margin: 0 15px !important;
    font-size: 10px !important;
    position: relative !important;
}

.footer-menu li:not(:last-child)::after {
    display: none !important;
    /* 区切り線を削除 */
}

.footer-menu li a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-weight: normal !important;
}

.footer-menu li a:hover {
    text-decoration: underline !important;
}

.footer-copyright {
    text-align: center !important;
    padding: 0 !important;
    font-size: 8px !important;
    color: #333 !important;
    position: absolute !important;
    right: 100px !important;
    z-index: 2 !important;
}

.footer-copyright p {
    margin: 0 !important;
    font-size: 9px !important;
}

/* 記事ページのレイアウト */
.content-sidebar-wrap {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

#primary {
    flex: 1;
    padding: 0 15px;
    min-width: 65%;
}

#sidebar {
    width: 30%;
    padding: 0 15px;
}

/* パンくずリスト */
.breadcrumbs-container {
    margin-bottom: 10px;
    font-size: 11px;
}

.breadcrumbs a {
    color: #666;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* 記事ヘッダー */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.entry-date {
    color: #666;
    font-size: 14px;
}

/* 検索フォーム */
.search-form-container {
    margin-bottom: 10px;
}

/* データベースリンク */
.database-links {
    display: flex;
    flex-direction: column;
}

.database-item {
    display: block;
    margin-bottom: 5px;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.database-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* サイト内検索のスタイル */
.search-section {
    /* margin-bottom: 30px; */

}

.search-section .sidebar-title {
    font-size: 16px;
    margin: 20px 0 10px !important;
}

.custom-search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.custom-search-form .search-field {
    flex: 1;
    height: 30px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    margin-right: 5px;
    min-height: 30px;
    max-width: 65% !important;
}

.custom-search-form .search-submit {
    width: 45px;
    height: 30px;
    background-color: #E3D19A;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-search-form .search-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-search-form .search-icon svg {
    width: 18px;
    height: 24px;
    fill: #333;
}

.custom-search-form .search-field:focus {
    border-color: #aaa;
}

.custom-search-form .search-submit:hover {
    background-color: #d6c48c;
}


/* 利用案内ボタンと概要ボタンの共通スタイル */
.wp-block-button__link.wp-element-button,
.info-button {
    background-color: #FFFFFF !important;
    color: black !important;
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 16px !important;
    padding: 15px 20px !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid #E3D19A !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 70% !important;
    max-width: 100% !important;
    text-align: left !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
}

.wp-block-button__link.wp-element-button:hover,
.info-button:hover {
    background-color: #F9F7F0 !important;
    color: #9A8C5B !important;
    text-decoration: none !important;
}

/* ボタンコンテナのスタイル */
.wp-block-button {
    width: 100% !important;
    margin: 0 !important;
}

/* 図書館利用案内ページのスタイル */
.library-guide-container {
    margin-bottom: 40px;
}


/* アイコン */
.guide-icon {
    display: inline-block;
    margin-right: 10px;
}

.guide-icon.diamond {
    width: 10px;
    height: 10px;
    background-color: #E3D19A;
    transform: rotate(45deg);
}

/* 蔵書・情報検索ページのスタイル */
.library-search-container {
    margin-bottom: 40px;
}

.library-search-content {
    margin-bottom: 30px;
    line-height: 1.8;
}


.resource-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
}

.resource-icon {
    flex: 0 0 40px;
    margin-right: 15px;
}

.resource-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.resource-content {
    flex: 1;
}

.resource-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.resource-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.resource-arrow {
    flex: 0 0 30px;
    text-align: right;
    font-size: 18px;
    color: #9A8C5B;
}

.resource-arrow img {
    width: 14px;
    height: 14px;
}

/* ページタイトルのシンプルなデザイン */
.page-header {
    background-color: transparent !important;
    border-bottom: none !important;
    padding: 0 0 20px 0 !important;
}

.page-header .page-title {
    font-size: 28px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 10px !important;
}

.wp-block-image.alignfull img,
.wp-block-image.alignwide img {
    height: 250px;
    width: 100%;
}


/* タブナビゲーション */
.smb-tabs__tab[aria-selected="true"] {
    background-color: #E3D19A;
}

.smb-tabs__tab[aria-selected="true"]:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #E3D19A;
}

/* タブコンテンツ */
.smb-tab-panel {
    border: none;
    border-top: 4px solid #E3D19A;
}

.smb-tabs__tab-wrapper {
    width: 130px;
}

/* ページネーション */
.pagination-container {
    margin-top: 30px;
    text-align: center;
}

.pagination-container .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.pagination-container .page-numbers.current {
    background-color: #E3D19A;
    color: #333;
    border-color: #E3D19A;
}

.pagination-container .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* 最下部の余白を完全に削除 - 改良版 */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

#wrap {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 89px !important;
    /* header-top(50px) + main-navigation(56px)の合計 */
}

#main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#content-wrap {
    flex: 1 0 auto;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 電子ジャーナルアコーディオンスタイル */
.wp-block-snow-monkey-blocks-accordion.smb-accordion {
    max-width: 100%;
    border: 1px solid #E3D19A;
    overflow: hidden;
    position: relative;
    width: 600px;
    margin-bottom: 16px;
}

.wp-block-snow-monkey-blocks-accordion.smb-accordion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 70px 0 0;
    border-color: #e6d5a7 transparent transparent transparent;
    z-index: 1;
}

.wp-block-snow-monkey-blocks-accordion-item.smb-accordion__item {
    border: none;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.wp-block-snow-monkey-blocks-accordion-item.smb-accordion__item:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.wp-block-snow-monkey-blocks-accordion-item .smb-accordion__item__title {
    background-color: white;
    padding: 15px 20px;
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.wp-block-snow-monkey-blocks-accordion-item .smb-accordion__item__title__label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.wp-block-snow-monkey-blocks-accordion-item .smb-accordion__item__body {
    padding: 15px 20px;
    background-color: #fff;
}

.wp-block-snow-monkey-blocks-accordion-item .wp-block-list {
    margin: 0;
    padding-left: 20px;
}

.wp-block-snow-monkey-blocks-accordion-item .wp-block-list li {
    margin-bottom: 8px;
    color: #333;
}

.wp-block-snow-monkey-blocks-accordion-item .wp-block-list li:last-child {
    margin-bottom: 0;
}

/* 電子ジャーナル関連リンクのスタイル */
.wp-block-snow-monkey-blocks-accordion+ul.wp-block-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wp-block-snow-monkey-blocks-accordion+ul.wp-block-list li a:hover {
    color: #9A8C5B;
    text-decoration: underline;
}

/* お問い合わせ先ページのスタイル */
.contact-container {
    margin-bottom: 40px;
}

.contact-content {
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-heading {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e6d5a7;
    color: #333;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-label {
    width: 120px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.contact-icon {
    color: #4b0082;
    margin-right: 8px;
    font-size: 14px;
}

.contact-value {
    flex: 1;
    line-height: 1.6;
}

.contact-note {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: block;
}


.lib-accessable-table td:first-child,
.lib-accessable-table th:first-child {
    width: 150px;
}

.lib-accessable-table td:nth-child(n+2),
.lib-accessable-table th:nth-child(n+2) {
    width: 1200px;
}

.lib-table tbody {
    border: 1px solid;
}

.lib-table tbody td,
.lib-table tbody th,
.lib-av-table tbody td,
.lib-av-table tbody th,
.lib-accessable-table tbody td,
.lib-accessable-table tbody th {
    border: 1px solid;
}

.lib-guide-table tr:first-child,
.lib-accessable-table tr:first-child,
.lib-table tr:first-child,
.lib-av-table tr:first-child,
.lib-subscript-table tr:first-child,
.lib-table tr:nth-child(2),
.lib-accessable-table tr:nth-child(2) {
    background: #E3D19A !important;
}

.lib-table tr:nth-child(n+3) td:first-child,
.lib-accessable-table tr:nth-child(n+3) td:first-child,
.lib-av-table tr:nth-child(n+2) td:first-child,
.lib-guide-table tr:nth-child(n+2) td:first-child,
.lib-overview-table tr:nth-child(n) td:first-child,
.lib-av-table tr:nth-child(n+2) td:nth-child(2) {
    background: gainsboro;
}

.lib-av-table td:first-child,
.lib-av-tabl th:first-child {
    width: 100px;
}

@media (max-width: 1024px) {
    .contact-item {
        flex-direction: column;
    }

    .contact-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .contact-value {
        width: 100%;
    }

    /* タブレットサイズでのレイアウト調整 */
    .content-sidebar-wrap {
        flex-direction: column;
    }

    #primary {
        width: 100%;
        min-width: 100%;
    }

    #sidebar,
    #right-sidebar {
        width: 100%;
        padding: 0 15px;
    }

    /* サイドバー内のウィジェットを中央寄せ */
    #sidebar .widget,
    #right-sidebar .widget {
        margin: 0 auto 20px;
    }

    /* カレンダーセクションの中央寄せ */
    #right-sidebar .calendar-section {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .content-area {
        border-style: none;
    }
}

@media (max-width: 576px) {


    #main {
        padding: 0 20px;
    }

    .search-section .sidebar-title {
        font-size: 20px;
        margin: 20px 0 15px !important;
    }

    .slider-container {
        display: none;
    }

    #wrap .quick-links {
        gap: 10px !important;
        padding: 0px !important;
        flex-direction: column;
    }

    #wrap .database-section {
        padding: 0px !important;
    }

    #wrap .database-list {
        gap: 10px !important;
        flex-direction: column;
    }

    #wrap .news-section {
        padding: 0px !important;
    }

    #wrap .database-section::before,
    #wrap .news-section::before {
        left: -5px !important;
    }

    #wrap .database-image img {
        max-width: 100% !important;
    }

    #wrap .main-nav ul.wp-block-navigation__container {
        flex-direction: column;
        align-items: center;
        gap: 0rem !important;
    }

    #wrap .header-left {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0px !important;
    }

    #wrap .database-header h2 {
        padding: 15px 0px !important;
    }

    #wrap .site-logo {
        font-size: 20px !important;
        height: 25px;
    }

    #wrap .site-description {
        font-size: 10px !important;
    }

    #wrap .news-header h2 {
        padding: 15px 0 15px 0px !important;
    }

    .footer-copyright {
        /* text-align: center !important; */
        top: 70px;
        position: unset !important;
    }

    #footer {
        height: 100px;
    }

    .footer-content {
        align-items: baseline !important;
        padding: 0 8px !important;
        flex-direction: column;
        gap: 10px;
    }

    .footer-copyright p {
        font-size: 8px !important;
    }

    :where(.wp-block-columns.is-layout-flex) {
        gap: 0em;
    }

    .library-search-content {
        margin-bottom: -20px;
    }

    .wp-block-button__link.wp-element-button,
    .info-button {
        width: 100% !important;
    }
}

/* テーブルのカラム幅設定 */
.lib-table .column-1 {
    width: 150px !important;
}


.lib-table .column-2 {
    width: 300px !important;
}

.lib-table .column-3 {
    width: 100px !important;
}

.lib-table .column-4 {
    width: 200px !important;
}

.table-2023 .column-5 {
    width: 200px !important;
}

.lib-av-table .column-1 {
    width: 40px !important;
}

.table-2023 .row-32 td,
.table-2023 .row-36 td {
    background: #E3D19A !important;
}

.lib-table a,
.lib-table img {
    display: inline;
    vertical-align: middle;
}

/* テーブル本体のスタイル */
/* .lib-accessable-table {
    width: max-content !important;
    min-width: 100% !important;
    border-collapse: collapse !important; */
/* } */