@charset "UTF-8"; /* 文字化け対策：先頭に必ず記述してください */

:root {
    --accent-color: #3498db;
    --bg-light: #f9fbfe;
    --text-main: #2c3e50;
    --border-soft: #eef2f6;
}

* { box-sizing: border-box; }

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    margin: 0; background-color: #fff; color: var(--text-main);
    font-size: 14px;
    overflow-y: scroll; /* スクロールバー領域を常に確保し、ページ間の横ズレを防止 */
}

/* ヘッダー */
header { padding: 15px; text-align: center; background: #fff; border-bottom: 1px solid var(--border-soft); height: 72px; }
.logo img { max-width: 150px; height: auto; border: 0; }

#menu-check { display: none; }
.menu-btn { position: absolute; right: 20px; top: 18px; font-size: 1.5rem; cursor: pointer; display: none; z-index: 100; }

/* パンくずリスト（高さ35px固定） */
.breadcrumb-container { 
    background: #fff; 
    border-bottom: 1px solid var(--border-soft); 
    height: 35px; 
}
.breadcrumb { 
    max-width: 1000px; margin: 0 auto; padding: 0 20px; 
    font-size: 0.75rem; color: #999; 
    line-height: 35px; 
}
.breadcrumb a { color: var(--accent-color); text-decoration: none; }
/* 文字化け対策：半角の > に変更し、前後に余白を持たせます */
.breadcrumb a:after { content: ' > '; margin: 0 6px; color: #bdc3c7; }

.wrapper { display: flex; max-width: 1000px; margin: 0 auto; padding: 20px 15px 40px; align-items: flex-start; }

/* サイドバー（スクロール追従 sticky 復活） */
aside { width: 170px; flex-shrink: 0; margin-right: 30px; position: sticky; top: 20px; }
aside h2 { font-size: 0.8rem; color: var(--accent-color); background: var(--bg-light); padding: 8px 12px; margin: 0; border: 1px solid var(--border-soft); border-bottom: none; border-radius: 4px 4px 0 0; }
aside nav ul { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border-soft); }
aside nav ul li { border-bottom: 1px solid var(--border-soft); }
/* サイドバーのリンク（ホバー時の左線の色と動きを復活） */
aside nav ul li a { 
    display: block; padding: 10px 12px; font-size: 0.85rem; color: #555; text-decoration: none; background: #fff; 
    border-left: 3px solid transparent; transition: 0.2s; 
}
aside nav ul li a:hover { 
    background: #f0f7ff; color: var(--accent-color); 
    border-left: 3px solid var(--accent-color); padding-left: 15px; 
}

main { flex-grow: 1; min-width: 0; }

/* フッター上の区切り線（さらに薄く、余白を最小限に） */
.footer-divider {
    border: 0;
    border-top: 1px solid #f2f2f2; /* 非常に薄いグレー */
    margin: 20px auto 10px;       /* 上の余白を20px、下の余白を10pxに短縮 */
    width: 95%;
    clear: both;
}

/* コピーライト（高さを抑えて中央配置） */
.site-footer {
    text-align: center;
    padding-bottom: 20px;         /* 下の余白を20pxに短縮 */
    color: #bbb;
    font-size: 0.75rem;
    width: 100%;
    display: block;
    line-height: 1;               /* 行間を詰めて高さを最小化 */
}

/* スマホ等へのレスポンシブ対応（間延び解消・幅100%維持版） */
@media (max-width: 768px) {
    .menu-btn { display: block; }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .wrapper { 
        flex-direction: column; 
        padding: 10px; 
        width: 100% !important; 
        box-sizing: border-box !important; 
    }

    aside { width: 100%; position: static; margin-right: 0; margin-bottom: 20px; display: none; }
    #menu-check:checked ~ .wrapper aside { display: block; }

    main {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* コンテナやテーブル、センター寄せ要素を幅100%に */
    main div, 
    main table, 
    main center {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    /* ★修正ポイント：セルを縦並びにしつつ、中の要素は間延びさせない */
    main td {
        display: block !important;
        width: 100% !important;
        padding: 8px 0 !important;
        text-align: left !important;
    }

    /* ★修正ポイント：休止中やNew!などのタグ・リンクが横に並ぶようにする */
    main td a,
    main td span,
    main td font,
    main td b {
        display: inline !important; /* blockからinlineに変更して間延びを防止 */
        width: auto !important;
    }

    /* 画像のサイズ調整 */
    main img {
        max-width: 100% !important;
        height: auto !important;
        display: inline-block !important;
    }

    /* 更新履歴のレイアウト崩れ防止 */
    .log-item {
        display: flex !important; /* ここは横並びを維持 */
        flex-direction: row !important;
    }
    .log-date { width: 85px !important; flex-shrink: 0 !important; display: block !important; }
    .log-content { flex-grow: 1 !important; display: block !important; }
}