@charset "UTF-8";
/*
Theme Name: Library Theme
Description: 事業創造大学院大学 図書館風 3カラムレスポンシブテーマ
Version: 1.0
Author: Your Name
*/


/* ====== 共通のベース設定 ====== */
* {
    box-sizing: border-box;
}

body {
    font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダーとメインビジュアルの仮装飾 */
header {
    /* text-align: center; */
    /* ← 中央揃えを解除 */
    /* ▼ .container と同じスタイルを適用 */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    /* 中央揃え */
    padding: 15px 0 5px 0;
}

/* assets/main.css に追記 */

header h1 {
    margin: 0 3px;
    /* h1タグが持つデフォルトの上下マージンをリセット */
}

header h1 a {
    display: block;
    width: 250px;
    height: 40px;
    background-image: url('assets/imgs/logo.png');
    background-repeat: no-repeat;
    margin: 0 auto;
    /* これを追加して中央揃えにする */
    background-size: contain;
    /* 画像が要素に収まるように調整 */
    text-indent: -9999px;
    /* テキストを画面外へ */
    color: transparent;
    /* テキストを透明に */
}


.kv-container {
    width: 100%;
    margin-bottom: 15px;
    padding: 0;
    background-color: #f0f0f0;
    /* 明るいグレーの背景色 */

}

.hero-image {
    /* 画像コンテナとしての設定 */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-image img {
    width: 100%;
    /* 親要素の幅いっぱいに表示 */
    height: auto;
    /* アスペクト比を維持 */
    display: block;
    /* 画像下の不要な余白を削除 */
}

.sub-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.sub-image img {
    width: 100%;
    max-height: 100px;
    /* 親要素の幅いっぱいに表示 */
    height: auto;
    /* アスペクト比を維持 */
    display: block;
    /* 画像下の不要な余白を削除 */
}



/* ====== レイアウトの肝（モバイルファースト） ====== */
/* 基本はスマートフォン向けに「縦1列」で並べる */
.container {
    display: grid;
    grid-template-columns: 1fr;
    /* 1カラムという意味 */
    gap: 20px;
    /* 要素と要素の隙間 */
    padding: 0 15px;
    width: 100%;
    /* ←★これがないとflex-container(body)の中で内側に縮んでしまう */
    max-width: 1000px;
    /* PCで表示したときの最大幅 */
    margin: 0 auto;
    /* 中央揃え */
    flex-grow: 1;
    /* sticky footer 対策の補助 */
}

/* ====== PC・タブレット向けのレイアウト変更 ====== */
/* 画面幅が 768px 以上になったら適用されるルール */
@media (min-width: 768px) {
    .container.sub-page {
        /* 左(メインコンテンツ 1fr)、右(サイドバー 260px)の 2カラム に変更 */

        align-items: start; /* 子要素をコンテンツ高さに揃える（stretchで膨らむのを防ぐ） */
    }

    .container:not(.sub-page) {
        grid-template-columns: 1fr;
    }

    /* デスクトップ表示時は、サブページでも通常の左袖メニューを表示する */
    .hamburger-sidebar {
        position: static !important;
    }

    .hamburger-sidebar .menu-icon,
    .hamburger-sidebar .menu-checkbox {
        display: none !important;
    }

    .hamburger-sidebar .menu-content {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding-top: 0 !important;
        left: auto !important;
        overflow: visible !important;
        transition: none !important;
    }

    .hamburger-sidebar .menu-content nav li {
        border-bottom: 1px solid #ccc !important;
    }

    .hamburger-sidebar .menu-content nav a {
        padding: 10px !important;
    }
}

/* ====== 各エリアの簡単な装飾 ====== */
/* 左メニュー */
.left-sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-sidebar nav li {
    border: 1px solid #ccc;
    margin-bottom: -1px;
}

.left-sidebar nav a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
}

.left-sidebar nav a:hover {
    background-color: #eaeaea;
}

/* ====== ハンバーガーメニュー (サブページ用左サイドバー) ====== */
.hamburger-sidebar {
    position: absolute;
}

.hamburger-sidebar .menu-checkbox {
    display: none;
}

.hamburger-sidebar .menu-icon {
    display: block;
    width: 30px;
    height: 24px;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    cursor: pointer;
}

.hamburger-sidebar .menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin-bottom: 5px;
    transition: 0.3s;
}

/* メニュー本体 */
.hamburger-sidebar .menu-content {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: 0.3s;
    padding-top: 60px;
    overflow-y: auto;
}

/* チェックされたら表示 */
.hamburger-sidebar .menu-checkbox:checked~.menu-content {
    left: 0;
}

.hamburger-sidebar .menu-checkbox:checked~.menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-sidebar .menu-checkbox:checked~.menu-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-sidebar .menu-checkbox:checked~.menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-content nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-content nav li {
    border-bottom: 1px solid #ccc;
}

.menu-content nav a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
}

.menu-content nav a:hover {
    background-color: #eaeaea;
}

/* 中央コンテンツ */
.main-content section {
    margin-bottom: 30px;
}

.main-content h2 {
    border-bottom: 2px solid #eb6100;
    /* オレンジ色の線 */
    padding-bottom: 5px;
    font-size: 1.2rem;
}

/* 蔵書検索 */
/* 全体のコンテナ（縦並びの指示） */
.search-login-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

/* 1行目：検索入力欄とボタンを横に並べる */
.search-row {
    display: flex;
    width: 100%;
    gap: 5px;
    align-items: center;
}

.search-row button{
    text-wrap: nowrap;
    text-align: center;
    padding:10px;
    background-color: #003366;
    color:white;
    font-weight: bold;
}

.search-input {
    flex-grow: 1;
    /* 入力欄を最大まで広げる */
    padding: 8px;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: #ececec;
    height: 40px;
}

.search-btn {
    height: 40px;
    width: auto;
}

/* 2行目：ログインボタンの配置 */
.login-box {
    display: flex;
    justify-content: flex-end;
    /* 右寄せ */
}

.login-box img {
    height: 40px;
    width: auto;
    display: block;
}


/* メインリンク（内部もグリッドで並べる） */
.main-links {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    /* スマートフォン等では2列並び */
    gap: 10px;
}

/* PC・タブレット向けのレイアウト変更 */
@media (min-width: 768px) {
    .main-links {
        grid-template-columns: repeat(4, 1fr);
        /* PCでは横4列並び */
    }
}

.main-item {
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
}

/* 資料リンク（内部もグリッドで並べる） */
.db-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* スマートフォン等では2列並び */
    gap: 10px;
}

/* PC・タブレット向けのレイアウト変更 */
@media (min-width: 768px) {
    .db-links {
        grid-template-columns: repeat(4, 1fr);
        /* PCでは横4列並び */
    }
}

.db-item {
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
}

/* 右サイドバー */
.right-sidebar {
    font-size: 0.9em;
}

.calendar-bnr {
    padding: 15px;
    text-align: center;
    border: 1px solid #b3d4ff;
    margin-bottom: 15px;
}

.right-sidebar h3 {
    color: #d35400;
    margin-bottom: 5px;
    font-size: 1em;
}

.right-sidebar p {
    margin-top: 0;
}

/* ====== ページトップへ戻る ====== */
.back-to-top {
    position: fixed; /* 画面に固定 */
    bottom: 20px;    /* 画面下から20px */
    right: 20px;     /* 画面右から20px */
    z-index: 999;    /* 他の要素より手前に表示 */

    /* 初期状態では非表示（JSで制御） */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;

    padding: 8px 16px;
    background-color: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2563eb;
}

/* ====== フッター ====== */
footer {
    background-color: #1a2530;
    /* 濃紺色 */
    color: #f1f5f9;
    /* 明るいテキスト色 */
    text-align: center;
    padding: 40px 15px;
    margin-top: auto;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ====== トップページ専用 CSS ====== */
.top-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* モバイル: シングルカラム */
    gap: 0;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .top-page-grid {
        grid-template-columns: 6.5fr 3.5fr;
        /* デスクトップ: 2カラム */
        grid-template-rows: auto auto;
        /* デスクトップ: 2行（自動高さ） */
    }
}

/* 新着情報 */
.news-section {
    height: 100%;
    padding: 0 15px;
    margin-bottom: 0 !important;
}

.news-title {
    padding: 10px 15px;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.news-title .icon-info {
    margin-right: 5px;
}

.news-list-wrapper {
    padding: 15px;
    height: calc(100% - 44px);
    /* タイトル分引く */
}

.news-list-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-wrapper li {
    margin-bottom: 12px;
}
/* --- Mobile Styles (max-width: 768px) --- */
@media screen and (max-width: 768px) {

    .news-list-wrapper li a{
        font-size:0.8rem;
    }

    .news-list-wrapper li .news-date{
        font-size:0.6rem;
    }

}

/* front-page.php お知らせ「もっと見る」ボタン */
.news-more-link-wrapper {
    text-align: center;
    margin-top: 1rem;
}

.news-more-link {
    display: inline-block;
    padding: 8px 24px;
    background-color: #005bab;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
    font-size: 0.9em;
}

.news-more-link:hover,
.news-more-link:focus {
    background-color: #003f81; /* ホバー時の少し濃い色 */
    color: #ffffff;
}

/* --- ページネーション (index.php, archive.php) --- */
.pagination {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap; /* スマートフォンで折り返すように */
    justify-content: center;
    align-items: center;
    gap: 0.5rem; /* リンク間の隙間 */
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #005bab;
    background-color: #fff;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
    background-color: #003f81;
    color: #ffffff;
    border-color: #003f81;
}

.pagination .page-numbers.current {
    background-color: #005bab;
    color: #ffffff;
    border-color: #005bab;
    cursor: default;
}

/* 「...」のスタイル */
.pagination .dots {
    padding: 8px 4px;
    color: #777;
}




.calendar-placeholder figure {
    max-width: 290px;
    margin: 0 auto;
}


/**
 * トップページ:データベースリンクのバナーをグリッドで並べるスタイル
 * 画面幅に応じて自動で列数が変わるレスポンシブ
 */
.db-links-banner {
    display: grid;

    /* モバイルでは2列で表示 */
    grid-template-columns: repeat(2, 1fr);
    gap: 16px; /* アイテム間の隙間 */
}
.db-links-banner > figure {
    margin: 0; /* figure要素が持つデフォルトのmarginをリセット */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* PC・タブレット向けのレイアウト変更 */
@media (min-width: 768px) {
    .db-links-banner {
        grid-template-columns: repeat(4, 1fr); /* PCでは横4列並び */
    }
}





/* OPAC */
.opac-section {

    padding: 15px;
    margin-bottom: 0 !important;
}

.opac-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: none !important;
}

.opac-form .search-row {
    display: flex;
}

.opac-form .search-input {
    flex-grow: 1;
    padding: 12px;
    border-radius: 6px 0 0 6px;
    font-size: 1em;
}

.opac-form .search-btn-txt {
    padding: 0 20px;
    border-left: none;
    background-color: #fff;
    border-radius: 0 6px 6px 0;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
}

/* カレンダー */
.calendar-section {
    padding: 0 15px;
    margin-bottom: 0 !important;
}

.calendar-bnr {
    text-align: right;
    margin-bottom: 10px;
}

.calendar-bnr a {
    color: #003366;
    text-decoration: underline;
}


.business-hours {
    display: flex;
    justify-content: space-around; /* カラム間のスペースを均等に配置 */
    gap: 20px; /* カラム間の隙間 */

    font-size: smaller;
}

.hours-info,
.closed-info {
    flex: 1; /* カラムが利用可能なスペースを均等に分け合う */
}



/* アクション (ログイン等) */
.action-section {
    padding: 15px;
    margin-bottom: 0 !important;
    height: 100%;
}

.myopac-area,
.remote-area {
    margin-bottom: 15px;
}

.myopac-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #93d14f;
    color: #333;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid #002233;
    font-size: 1.1em;
}

.myopac-btn .btn-icon {
    margin-right: 10px;
    font-size: 1.5em;
}

.remote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffcc00;
    color: #333;
    padding: 12px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid #333;
    font-size: 1.1em;
}

.remote-btn .btn-icon {
    margin-right: 10px;
    font-size: 1.5em;
    /* またはウェブフォントアイコン */
}

.action-desc {
    font-size: 0.8em;
    margin-top: 5px;
    line-height: 1.3;
    text-align: center;
}

/* DBリンク */
.db-details-link {
    background: #d9d9d9;
    padding: 8px 15px;
    margin-bottom: 10px;
}

.db-title {
    font-size: 1em;
    margin: 0;
    border-bottom: none !important;
}

.db-banners-wrapper {
    padding: 15px 15px 0 15px;
    /* バナーのmarginと相殺 */
}


.sub-page .sidebar-right * h2{
    border-bottom: 2px solid #eb6100;
    padding-bottom: 5px;
}

/* PC表示用のスタイル（例：画面幅が768px以上） */
@media screen and (min-width: 768px) {
    .sub-page .page-container {
        display: flex;
        gap: 20px; /* カラム間の余白 */
    }

    .sub-page .main-content {
        flex: 1; /* 利用可能なスペースを埋める */
    }

    .sub-page .sidebar-right {
        flex: 0 0 200px;
        font-size: 0.85rem;
    }
}

/* page.php 固定ページ用 2カラムレイアウト */
.page-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

@media screen and (min-width: 768px) {
    .page-container {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }

    .page-container .main-content {
        flex: 1;
        min-width: 0;
    }

    .page-container .sidebar-right {
        flex: 0 0 260px;
        width: 260px;
    }
}

/* --- Mobile Styles (max-width: 768px) --- */
@media screen and (max-width: 768px) {

    .sub-page .sidebar-right h2{
        font-size: 1.1rem;
    }
}







/* --- Header --- */
header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* ハンバーガーメニューの位置の基準 */
}
/* --- Global Navigation (PC) --- */
.global-nav-pc {
    /* 背景色とボーダーを削除 */
    margin-bottom: 20px;
}

.global-nav-pc .global-nav__list {
    max-width: 1000px;
    margin: 0 auto;
    justify-content: space-between; /* ボタンを均等に配置 */
    padding: 0; /* ulのpaddingを削除 */
    gap: 15px; /* ボタン間の隙間 */
}

.global-nav-pc .global-nav__list a {
    display: block;
    background-color: #003366; /* ボタンの背景色（濃い青） */
    color: #fff; /* 文字色を白に */
    text-decoration: none;
    padding: 15px 10px;
    text-align: center;
    border-radius: 5px; /* 角を少し丸める */
    transition: background-color 0.2s;
    font-weight: bold;
}

.global-nav-pc .global-nav__list a:hover {
    background-color: #0055a4; /* ホバー時の背景色 */
}
/* --- Global Navigation (Desktop) --- */
.global-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-nav__list li {
    margin-left: 0; /* 個別のマージンを削除 */
    flex: 1; /* 各アイテムが均等に幅を取るようにする */
}

.global-nav-pc .global-nav__list li {
    margin-left: 0; /* PC用のスタイルもリセット */
}
/* --- Hamburger Button --- */
.hamburger {
    display: none; /* PCでは非表示 */
    position: relative;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100; /* メニューより手前に表示 */
    margin-right:3px;
}

/* --- Hamburger Button の線 --- */
.hamburger span {
    display: block;
    position: absolute;
    left: 12px; /* 左右中央に配置 (44px - 20px) / 2 = 12px */
    width: 20px; /* 長さを前回の2/3程度に短く変更 */
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* 3本線の縦位置を均等に配置（前回から変更なし） */
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 30px; }

/* --- Hamburger Active State (クリック時の×印) --- */
.hamburger.is-active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}



/* --- Mobile Styles (max-width: 768px) --- */
@media screen and (max-width: 768px) {
    /* PC用ナビゲーションを非表示 */
    .global-nav-pc {
        display: none !important;
    }

    .hamburger {
        display: block;
    }

    /* ▼ メニューの背景（大枠）を画面幅から切り離す調整 ▼ */
    .global-nav-sp {
        display: none;
        position: absolute;
        top: 100%;
        left: 15px;   /* 左側に15pxの余白を確保 */
        right: 15px;  /* 右側に15pxの余白を確保 */
        width: auto;  /* 100% から auto に変更（左右の指定を効かせるため） */
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* 影を少し強めにして浮遊感を出す */
        border-radius: 8px; /* 角を少し丸めて洗練された印象に */
        margin-top: 10px;   /* ヘッダーとの間（上部）にも少し隙間を作る */
        overflow: hidden;   /* 角丸から中身がはみ出さないようにする */
    }

    .global-nav-sp.is-active {
        display: block;
    }

    .global-nav__list {
        flex-direction: column;
        padding: 0;
    }

    /* 前回設定したliの余白は解除し、大枠の幅に合わせます */
    .global-nav__list li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    /* 一番下の線を消す */
    .global-nav__list li:last-child {
        border-bottom: none;
    }

    .global-nav__list li a {
        display: block;
        padding: 15px;
        text-align: center;
    }
}



/* --- Desktop Styles (min-width: 768px) --- */
@media screen and (min-width: 768px) {
    /* SP用ナビゲーション（ヘッダー内）を非表示 */
    .global-nav-sp {
        display: none;
    }
    /* PC用ナビゲーションを表示 */
    .global-nav-pc {
        display: block;
    }
}



/*
    * page.php 固定ページ用のスタイル
    * 画面幅に応じて2カラムレイアウトになる
    */

.sub-page .main-content article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    /* 立体的に見せるための影 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px; /* 角を丸くする */
}

.sub-page .main-content article table th,
.sub-page .main-content article table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.sub-page .main-content article table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.table-cell-left  * th,
.table-cell-left  * td
{
    text-align: left !important;
}

.sub-page .main-content {
    margin-bottom:3rem;
}

.sub-page .main-content  em{
    font-style: normal;
    font-weight: bold;
    color: #d35400;
}



/* --- 投稿一覧ページ (archive.php) --- */
.archive-list {
    margin-top: 2rem;
}

.archive-item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.archive-item:first-of-type {
    border-top: 1px solid #e0e0e0;
}

.archive-item-date {
    margin: 0;
    flex-shrink: 0; /* 日付が幅の狭い画面で改行・縮小されるのを防ぐ */
    width: 90px; /* 日付の幅を固定してレイアウトを揃える */
}

.archive-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
}

.archive-item-title a {
    text-decoration: none;
    color: #337ab7;
}

.archive-item-title a:hover {
    text-decoration: underline;
}

/* --- スマートフォン向けの調整 --- */
@media screen and (max-width: 768px) {
    .archive-item {
        flex-direction: column; /* 縦並びにする */
        gap: 0.25rem;
        align-items: flex-start;
    }
    .archive-item-date {
        font-size: 0.8em;
        width: auto; /* 幅の固定を解除 */
    }
    .archive-item-title {
        font-size: 0.95rem;
    }
}

/* 投稿の装飾 */
.news-date {
    font-family: Courier, monospace;
    font-size: 0.95em;
    color: #333;
    margin-top: -10px;
    margin-bottom: 15px;
}


.js-truncate-title{
    padding-left: 1rem;
}

/* 投稿のnav-link */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.post-navigation > div {
    flex: 1;
    white-space: nowrap; /* タイトルが長い場合に改行させない */
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation .nav-archive {
    text-align: center;
    flex-grow: 0;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block; /* ブロック要素にして親divの領域全体をリンクにする */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #f9f9f9;
    color: #337ab7;
    text-decoration: none;
    transition: background-color 0.2s; /* ホバー効果を滑らかに */
}

.post-navigation a:hover {
    background-color: #f0f0f0; /* ホバー時に背景色を少し変える */
    text-decoration: underline;
}

/* 前後の記事がない場合は空のdivが残るため、そのスペースを詰めます */
.post-navigation .nav-previous:empty,
.post-navigation .nav-next:empty {
    flex: 0;
}


.container.sub-page .main-content article div h3{
    color:#4C94D8;
    margin-bottom: 0.25rem;

}
.container.sub-page .main-content article div p{
    margin-top: 0.25rem;

}
.container.sub-page .main-content article div h4{
    margin-bottom: 0.25rem;

}





.text-align-right {
    text-align: right !important;
}
.text-align-left {
    text-align: left !important;
}
.text-align-center {
    text-align: center !important;
}

.tables-faq * th{
    width: 6rem !important;
    font-weight:normal !important;
    background-color: transparent !important;
}
.tables-faq * td{
    text-align: left !important;
}



/* ページ内アンカーリンクのスタイル */
.page-anchor-nav {
    list-style-type: disc;
    padding: 10px 10px 10px 30px;
    margin: 0 0 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.page-anchor-nav li {
    margin-bottom: 8px;
}




/* サイトマップ */
.sitemap-section {
    background-color: #f9f9f9; /* 背景色を少し変えるなど */
    padding: 0 15px;
}

.sitemap-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sitemap-grid {
    display: grid;
    gap: 30px; /* カラム間の余白 */
}

.sitemap-column h3 {
    font-size: 1.1rem;
    border-bottom: 2px solid #005bac; /* テーマカラーに合わせると良いでしょう */
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sitemap-column h3 a {
    text-decoration: none;
    color: inherit;
}

.sitemap-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-column li {
    margin-bottom: 10px;
}

.sitemap-column li a {
    text-decoration: none;
}

.sitemap-column li a:hover {
    text-decoration: underline;
}


/* デスクトップ (例: 768px以上) で4カラム */
@media (min-width: 768px) {
    .sitemap-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* モバイル (767px以下) で1カラム */
@media (max-width: 767px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }
}
