@charset "UTF-8";

/* html, body は高さ100%で、全体のスクロールバーは表示せず、各エリアでスクロール */
html,
body {
    height: 100%;
    overflow: hidden; /* 全体のスクロールバーを非表示に */
    margin: 0;
    padding: 0;
}

/* =======================================================
 全体のスタイル
==========================================================*/

body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", Arial, Helvetica, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    background-color: #F2F2F2;
    color: #222222;
    font-size: 1em;
}

/* コンテナ：横並びにし、ビューポートの高さを確保 */
.container {
    display: flex;
    height: 100vh;
}

/* スマートフォン用ヘッダー（デフォルトでは非表示） */
#mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #D0D0D0;
    box-shadow: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

#mobile-header #mobile-logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    flex-shrink: 0;
}

#mobile-header #mobile-product {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    min-width: 0;
}

#mobile-header #mobile-court-name {
    font-size: 0.9em;
    font-weight: bold;
    margin: 0;
    color: #1A2A3A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

#mobile-header #mobile-issue-number,
#mobile-header #mobile-announcement-date-display {
    font-size: 0.9em;
    margin: 0;
    color: #555555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ハンバーガーメニューアイコン */
#hamburger-menu {
    width: 30px;
    height: 25px;
    position: relative;
    cursor: pointer;
    margin-right: 0px;
    margin-left: 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
}

#hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #222222;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ハンバーガーメニューがアクティブになった時のスタイル */
#hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#hamburger-menu.active span:nth-child(2) {
    transform: scaleY(0);
}

#hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* =======================================================
 サイドバーのスタイル
==========================================================*/
/* サイドバー（固定配置） */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    min-width: 180px;
    height: 100vh;
    background-color: #FFFFFF;
    border-right: 1px solid #D0D0D0;
    padding: 30px 0 0 30px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: width 0.3s ease-in-out, padding 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 100;
}

/* サイドバーが閉じた状態のスタイル (初期状態) */
/*
#sidebar.closed {
    width: 250px;
    padding-left: 30px;
    padding-right: 0;
}*/

/* サイドバーが開いた状態のスタイル（460px） */
/*
#sidebar.expanded {
    width: 480px;
    padding-left: 30px;
    padding-right: 0;
}*/

/* ロゴ */
#logo {
    width: 135px;
    height: 64px;
    margin-top: 15px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

/*
@media screen and (max-width: 1280px) and (orientation: landscape) {
    #sidebar {
        padding-top: 15px;
    }
    #logo img {
        height: 40px;
    }
}*/


/* スクロール可能なコンテンツ内（PCサイズ･スマホサイズ用） */
#scrollable-content,
#mobile-menu {
    flex-grow: 1;
    overflow-y: auto;
    box-sizing: border-box;
}

/* PCサイズ用 */
#scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 30px;
    box-sizing: border-box;
    max-height: calc(100vh - 149px);
    scrollbar-width: thin;
    scrollbar-color: #888888 #E8E8E8;
}

/* WebKit系ブラウザ向けスクロールバーのスタイル */
#scrollable-content::-webkit-scrollbar,
#mobile-menu::-webkit-scrollbar {
    width: 8px;
}

#scrollable-content::-webkit-scrollbar-track,
#mobile-menu::-webkit-scrollbar-track {
    background: #E8E8E8;
    border-radius: 10px;
}

#scrollable-content::-webkit-scrollbar-thumb,
#mobile-menu::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 10px;
}

#scrollable-content::-webkit-scrollbar-thumb:hover,
#mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

#mobile-menu {
    scrollbar-width: thin;
    scrollbar-color: #888888 #E8E8E8;
}

#scrollable-content h2 {
    margin-top: 0;
    color: #222222;
    font-size: 1.4em;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* サイドバーのリストスタイル（PCサイズ･スマホサイズ用） */
#sidebar-list,
#mobile-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 1em;
    color: #444444;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* サイドバーのホバースタイル（PCサイズ･スマホサイズ用） */
#sidebar-list li:hover,
#mobile-sidebar-list li:hover {
    background-color: #EFEFEF;
}

/* クリックで選択されたサイドバー項目のスタイル（PCサイズ･スマホサイズ用） */
#sidebar-list li.selected,
#mobile-sidebar-list li.selected {
    background-color: #E0E0E0;
    color: #000000;
    font-weight: bold;
}

/* 検索・絞り込みエリアのスタイル */
.scrollable-content-inner {
    width: auto;
    padding: 10px;
    background-color: #e6e6e6;
}

.scrollable-content-inner-top {
    background-color: #fff;
    padding: 5px 10px 10px 10px;
}


/* フォームコンテナ */
#desktop-search-form {
    box-sizing: border-box;
}

/* 各検索セクション */
.search-section,
.search-target-options {
    margin: 10px 0;
    padding: 0;
}

.search-target-options {
    border-bottom: none;
    padding: 0;
    border-top: 1px solid #D8D8D8;
    border-bottom: 1px solid #D8D8D8;
}

/* ラベル */
label {
    display: block;
    margin-bottom: 0px;
    font-weight: 500;
    color: #333;
    font-size: 0.9em;
}

.search-subtitle {
    color: #777;
    font-size: 0.9em;
    font-weight: 500;
    margin: 0 0 5px 0;
}

/* キーワード入力フィールド */
input:where([type="text"]) {
    width: 100%;
    padding: 0.5em 1em;
    border: 1px solid #5F7276;
    border-radius: 0;
    font-size: 0.9em;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

input:where([type="text"])::placeholder {
    color: #90A4AE;
}

input:where([type="text"]):focus {
    border-color: #364F6B;
    outline: none;
    box-shadow: none;
}

/* 検索セクションのレイアウト */
.search-section {
    display: block;
}

/* 検索ボタン */
#search-button {
    background-color: #364F6B;
    color: #FFFFFF;
    border: none;
    border-radius: 0;
    padding: 0.5em;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
}

#search-button:hover {
    background-color: #4A6C8B;
    color: #FFFFFF;
}

/* 検索対象オプションのタイトル */
.search-target-options h3 {
    color: #777;
    font-size: 0.9em;
    font-weight: 500;
    margin: 10px 0 5px 0;
}

/* チェックボックス・ラジオボタンのラベル */
.search-target-options label {
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: normal;
    color: #333;
    font-size: 0.9rem;
    padding: 1px;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* ホバー時の背景色を追加 */
.search-target-options label:hover {
    color: #000;
    background-color: #f0f0f0;
}

/* カスタムチェックボックス ----------------------------------*/
input:where([type="checkbox"]) {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #78909C;
    border-radius: 2px;
    margin-right: 8px;
    cursor: pointer;
    position: relative;
    top: 1px;
    transition: all 0.15s ease-in-out;
    flex-shrink: 0;
}

input:where([type="checkbox"]):checked {
    background-color: #5F7276;
    border-color: #5F7276;
}

input:where([type="checkbox"]):checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    /* チェックマークの線のスタイル */
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
}

input:where([type="checkbox"]):focus {
    outline: none;
    box-shadow: none;
    border-color: #364F6B;
}

input:where([type="checkbox"]):hover {
    border-color: #364F6B;
}

/* カスタムラジオボタン ----------------------------------*/
.search-target-options input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1);
    accent-color: #007bff;
    position: relative;
    top: -2px;
}

/* チェックされた時のカラー */
.search-target-options input[type="radio"]:checked+.sort-item-name {
    font-weight: bold;
    color: #007bff;
}

/* チェックされた時のラベル全体の背景色 */
.search-target-options label:has(input[type="radio"]:checked) {
    background-color: #F0F8FF;
}

/* ヘルプセクション */
.help-section {
    border-radius: 0;
    color: #78909C;
    font-size: 0.8rem;
    box-shadow: none;
}

.help-text {
    margin: 0;
    line-height: 1.7;
}

/* 全フィルタークリアボタン */
#clear-all-filters {
    background-color: #fff;
    color: #5F7276;
    border: 1px solid #5F7276;
    border-radius: 0;
    padding: 0.5em;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
}

#clear-all-filters:hover {
    background-color: #607D8B;
    color: #FFFFFF;
}


/* タブレット横画面適用 */
@media screen and (min-width: 769px) and (max-width: 1100px) {
    #sidebar {
        padding: 15px 0 0 30px;
    }

    #logo {
        width: 10vw;
        min-width: 80px;
        max-width: 110px;
        height: auto;
        margin: 0;
    }

    #scrollable-content h2 {
    font-size: 1.2em;
    padding-bottom: 6px;
    margin-bottom: 10px;
}
}


/* =======================================================
メインエリアのスタイル
==========================================================*/
/* メインエリア：サイドバーの初期幅分の横方向余白を設定 */
#main-content {
    margin-left: 250px;
    flex-grow: 1;
    padding: 30px 30px 0px 30px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
    transition: margin-left 0.3s ease-in-out;
}

/* サイドバーが開いた時のメインコンテンツの調整 */
/*
#main-content.sidebar-expanded {
    margin-left: 480px;
}*/

/* テーブル行を非表示にするためのクラス */
.hidden-row {
    display: none !important;
}

/* 奇数行の背景色 */
.table-row-odd {
    background-color: #FDFDFD;
}

/* 偶数行の背景色 */
.table-row-even {
    background-color: #FFFFFF;
}

/* 検索結果0件時のメッセージスタイル */
#no-records-message {
    text-align: center;
    padding: 25px;
    font-size: 1.1em;
    color: #666666;
    background-color: #EFEFEF;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    margin-top: 25px;
    box-shadow: none;
}

#no-records-message .suggestion {
    font-size: 0.9em;
    color: #888888;
    margin: 0;
}

/* hidden クラスで非表示にする */
.hidden {
    display: none !important;
}

/* コンテンツ部分 info-content */
#datanews-info-display .info-content {
    color: #333333;
    font-size: 1em;
}

/*全件（件数）表示部分*/
.totalFilteredItemsCount {
    font-weight: normal;
    color: #696969;
    font-size: 0.8em;
}

/* 更新日時 */
.toukiDataUpdateTime {
    font-weight: normal;
    color: #696969;
    font-size: 0.6em;
}

/* <a>タグリンクスタイル */
#datanews-info-display a {
    display: inline;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* <a>タグリンクホバー時のスタイル */
#datanews-info-display a:hover {
    opacity: 0.8;
}

/* 選択された絞り込み条件を表示するエリアのスタイル */
#active-filters-display {
    margin-bottom: 20px;
    padding: 6px 12px;
    background-color: #F0F0F0;
    border: 1px solid #D8D8D8;
    border-radius: 4px;
    color: #444444;
    font-size: 0.95em;
    min-height: 75px;
    height: auto;
    max-height: 150px;
    overflow-y: auto;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6em;
}

#active-filters-display:empty {
    display: none !important;
}

/* 検索ボタン（キーワード検索欄が空値） */
#search-button:disabled,
#mobile-search-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 商品エリア */
#product {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#issue-number {
    font-size: 1.2em !important;
    margin: 0;
    padding: 0;
}

#main-content h1 {
    margin-top: 0;
    color: #222222;
    font-size: 1.6em;
    margin: 0;
    padding: 0;
}

#main-content p {
    font-size: 1.1em;
    color: #555555;
}

#main-content h2 {
    margin-top: 0;
    color: #222222;
    font-size: 1.4em;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 12px;
    margin-bottom: 20px;

    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* 商品名のスタイル */
#product .product-name {
    position: relative;
    color: #222222;
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 15px;
    padding: 0;
}

#product .product-name::before {
    position: absolute;
    top: -1.3em;
    left: 0;
    transform: none;
    padding: 0 0.4em;
    color: #353535;
    font-size: 13px;
    font-weight: 400;
    content: '配当要求終期の公告';
    letter-spacing: 0.3em;
    width: 150%;
}


/*全件商品PDFリンク*/
.pdf-links-container {
    text-align: right;
    margin-bottom: 12px;
}

/* 全件PDFリンク自体 */
.pdf-links-container a {
    background-color: #1A2A3A;
    color: white;
    padding: 9px 8px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-block;
    transition: background-color 0.2s ease;
}

/* ホバー時のスタイル */
.pdf-links-container a:hover {
    background-color: #0F1D2A;
}

/* タブレット横画面適用 */
@media screen and (min-width: 769px) and (max-width: 1100px) {
    #main-content h2 {
        font-size: 1.2em;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
}


/* =======================================================
テーブルスタイル
==========================================================*/
/* テーブルコンテナ */
.table-container {
    margin-bottom: 25px;
    flex-grow: 1;
}

#main-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    box-shadow: none;
}

#main-table th,
#main-table td {
    border: 1px solid #EAEAEA;
    padding: 15px;
    text-align: left;
    white-space: nowrap;
    color: #333333;
}

#main-table th {
    background-color: #F7F7F7;
    font-weight: bold;
    color: #333333;
}

#main-table tbody tr:hover {
    background-color: #F0F0F0;
}

#main-table td a {
    background-color: #1A2A3A;
    color: white;
    padding: 9px 16px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    box-shadow: none;
}

#main-table td a:hover {
    background-color: #0F1D2A;
    box-shadow: none;
}

/* 事件中（取得不可）・目録データなしの処理 */
/* 「目録データなし」 */
.processing-mokuroku {
    color: #696969;
    padding: 9px 46px 9px 16px;
    font-size: 0.85em;
}

/* 「取得不可」 */
.processing-touhon {
    color: #696969;
    padding: 9px 16px;
    font-size: 0.85em;
}

/* 「目録データなし」の説明文 */
.processing-mokuroku-text {
    color: #696969;
    font-size: 0.8em;
}

/* 「商品注意書き（note）」「主な所在注意書き（notice-touhon）」「事件中（取得不可）」の説明文 */
.note,
.notice-touhon-text,
.processing-touhon-text {
    color: #696969;
    font-size: 0.8em;
}

/* =======================================================
ページングのスタイル
==========================================================*/
/*ページング*/
.pagination-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #D0D0D0;
    font-size: 0.95em;
    color: #555555;
}

/* Item Summary Section */
.item-summary-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-summary-section p {
    margin: 0;
}

#view-all-button {
    background-color: #E0E0E0;
    color: #444444;
    border: 1px solid #C0C0C0;
    padding: 8px 15px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
}

#view-all-button:hover:not(:disabled) {
    background-color: #D0D0D0;
    border-color: #A0A0A0;
    box-shadow: none;
}

#view-all-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pagination Buttons Section */
.pagination-buttons-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-buttons-section button {
    background-color: #E0E0E0;
    color: #444444;
    border: 1px solid #C0C0C0;
    padding: 8px 15px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
}

.pagination-buttons-section button:hover:not(:disabled) {
    background-color: #D0D0D0;
    border-color: #A0A0A0;
    box-shadow: none;
}

.pagination-buttons-section button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Current Page / Total Pages */
.current-page,
.total-pages {
    font-weight: normal;
    color: #555555;
    margin: 0;
}

.display-start-index,
.display-end-index,
.display-total-filtered-items {
    font-weight: bold;
    color: #333333;
}


/* =======================================================
フッターのスタイル
==========================================================*/
/* footer を #main-content 内で下部に配置 */
#main-footer {
    border-top: 1px solid #D0D0D0;
    color: #444444;
    text-align: left;
    /*margin-top: auto;*/
    margin-top: 25px;
    padding: 30px 0px 40px 0px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    flex-shrink: 0;
}

/* タブレット横画面適用 */
@media screen and (min-width: 769px) and (max-width: 1100px) {
    /* フッターのモバイル用調整 */
    #main-footer {
        padding: 20px 0px 100px 0px;
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

#main-content .footer-container p {
    margin: 0;
    font-size: 0.8em;
    flex-grow: 1;
}

/* フッターのナビスタイル */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-nav a {
    color: #555555;
    font-size: 0.85em;
    text-decoration: none;
    padding: 5px 10px 5px 0;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #222222;
}

#main-content .footer-container p a {
    text-decoration: none;
    color: #555555;
}

/* トップへ戻るボタン */
#js-pagetop {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 999;
}

#js-pagetop a {
    position: relative;
    display: block;
    width: 65px;
    height: 65px;
    background: #0F1D2A;
    transition: opacity .6s ease;
    border-radius: 3px;
    box-shadow: none;
}

#js-pagetop a:hover {
    background: #1A1A1A;
    box-shadow: none;
}

#js-pagetop a::before {
    position: absolute;
    top: 7px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 14px;
    height: 14px;
    margin: auto;
    content: '';
    transform: rotate(-45deg);
    border-top: 1px solid #FFF;
    border-right: 1px solid #FFF;
}

/* --- レスポンシブデザイン --- */
@media screen and (max-width: 768px) {

    /* PC用サイドバー、商品名（裁判所･号数）は非表示 */
    #sidebar,
    #product {
        display: none;
    }

    /* メインコンテンツは左余白なし */
    #main-content {
        padding-top: 80px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
        margin-left: 0;
        transition: transform 0.3s ease-in-out;
    }

    #main-content h2 {
    font-size: 1.2em;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

    /* モバイルメニューがアクティブになったときにメインコンテンツを右に移動 */
    #main-content.menu-active {
        transform: translateX(50%);
        /* メニューの幅に合わせて移動*/
        overflow: hidden;
        /* コンテンツが重ならないようにする */
    }

    /* スマホ用固定ヘッダー */
    #mobile-header {
        display: flex;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: #FFFFFF;
        color: #222222;
        z-index: 200;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* ハンバーガーメニュー */
    #hamburger-menu {
        background: transparent;
        border: none;
        font-size: 1.5em;
        color: #222222;
        margin-right: 10px;
        cursor: pointer;
    }

    /* ヘッダー内ロゴ */
    #mobile-header #logo {
        width: 40px;
        height: 35px;
        margin-right: 8px;
    }

    /* モバイル商品名ラッパーを縦並びに */
    .mobile-product-name-wrap {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* ヘッダー内商品名 サブタイトル */
    .mobile-product-name-label {
        display: block;
        font-size: 8px;
        font-weight: 400;
        color: #353535;
        letter-spacing: 0.4em;
        margin-bottom: 0.1em;
        line-height: 1;
    }

    /* ヘッダー内商品名 */
    .mobile-product-name {
        display: block;
        font-size: 1.1em;
        font-weight: bold;
        color: #1A2A3A;
        margin-right: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
    }

    /* ヘッダー内裁判所情報 */
    #mobile-header .court-info {
        display: flex;
        flex-direction: column;
        font-size: 0.9em;
    }

    /* スマホ用メニュー */
    #mobile-menu {
        position: fixed;
        top: 60px;
        bottom: 0;
        left: -80%;
        width: 80%;
        max-width: 300px;
        background-color: #FFFFFF;
        box-shadow: none;
        z-index: 150;
        padding: 25px;
        padding-bottom: calc(25px + env(safe-area-inset-bottom));  /* iPhoneノッチ対応 */
        box-sizing: border-box;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #888888 #E8E8E8;
    }

    #mobile-menu h2 {
        margin-top: 0;
        color: #222222;
        font-size: 1.2em;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    #mobile-menu li {
        padding: 14px 0;
        border-bottom: 1px solid #F0F0F0;
        font-size: 0.95em;
        color: #444444;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    #mobile-menu.active {
        left: 0;
    }

    /* ハンバーガーメニュークリック時に背景を暗転 */
    #mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 140;
    }

    /* 読み込み後は、メインコンテンツはヘッダー分上に余白を追加 */
    #main-content {
        padding-top: 80px;
    }


    /* 検索結果0件時のメッセージスタイル */
    #no-records-message .suggestion {
        font-size: 0.85em;
    }

    /* 検索・絞り込みエリアのスタイル */
    /* 検索ボタン */
    #mobile-search-button {
        background-color: #364F6B;
        color: #FFFFFF;
        border: none;
        border-radius: 0;
        padding: 0.5em;
        font-size: 0.9em;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }

    #mobile-search-button:hover {
        background-color: #4A6C8B;
        color: #FFFFFF;
    }


    /* 全フィルタークリアボタン */
    #mobile-clear-all-filters {
        background-color: #fff;
        color: #5F7276;
        border: 1px solid #5F7276;
        border-radius: 0;
        padding: 0.5em;
        font-size: 0.9rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-top: 10px;
        box-shadow: none;
    }

    #mobile-clear-all-filters:hover {
        background-color: #607D8B;
        color: #FFFFFF;
    }

    /* カスタムラジオボタン ----------------------------------*/
    .search-target-options input[type="radio"] {
        top: -3px;
    }

    /* テーブルのモバイル用スタイル */
    #main-table {
        border: none;
        width: 100%;
        margin-top: 20px;
        box-shadow: none;
    }

    #main-table thead {
        display: none;
        /* モバイルでテーブルヘッダーを非表示 */
    }

    #main-table tbody,
    #main-table tr {
        display: block;
        width: 100%;
    }

    #main-table tr {
        margin-bottom: 20px;
        border: 1px solid #D8D8D8;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: none;
    }

    #main-table td {
        display: block;
        width: auto;
        border: none;
        padding: 10px 20px;
        text-align: left;
        white-space: normal;
        position: relative;
        font-size: 0.9em;
        color: #333333;
    }

    /* 最初のセル（事件番号） */
    #main-table td:first-child {
        font-weight: bold;
        background-color: #F7F7F7;
        border-bottom: 1px solid #E0E0E0;
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 0.95em;
        color: #1A2A3A;
    }

    /* ラベルの擬似要素 */
    #main-table td[data-label]::before {
        content: attr(data-label);
        display: inline-block;
        width: 90px;
        font-size: 0.9em;
        color: #555555;
    }

    /* スマホ表示時の事件番号の折り返し調整 */
    #main-table td[data-label="事件番号"] {
        display: flex;
        align-items: baseline;
        padding-left: 20px;
        text-indent: 0;
    }

    #main-table td[data-label="事件番号"]::before {
        content: attr(data-label);
        display: inline-block;
        width: 90px;
        flex-shrink: 0;
        margin-right: 0;
        font-size: 0.9em;
        color: #555555;
    }

    /*全件商品PDFリンク*/
    .pdf-links-container {
        text-align: left;
        margin-bottom: 0px;
    }

    /* 全件PDFリンク自体 */
    .pdf-links-container a {
        background-color: #333333;
        padding: 7px 6px;
        border-radius: 2px;
        font-size: 0.8em;
    }

    /* PDFリンクセルの特定のスタイル */
    #main-table td:last-child {
        padding-top: 10px;
        padding-bottom: 10px;
        background-color: #FDFDFD;
        border-top: 1px solid #E0E0E0;
    }

    #main-table td a {
        display: inline-block;
        width: auto;
        padding: 8px 18px;
        background-color: #333333;
        font-size: 0.85em;
        border-radius: 2px;
        box-shadow: none;
    }

    #main-table td a:hover {
        background-color: #1A1A1A;
        box-shadow: none;
    }

    /* カードレイアウトのために既存のストライプをリセット */
    .table-row-odd,
    .table-row-even {
        background-color: transparent !important;
    }

    /* カードビューで不要な場合は、セル上のホバー時の背景色を削除 */
    #main-table tbody tr:hover {
        background-color: #F8F8F8;
    }

    /* ページング調整 */
    /* ページネーションコントロールを縦に並べ、左寄せにする */
    .pagination-controls-container {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 25px;
        padding-top: 20px;
    }

    .item-summary-section {
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    /* 「すべて見る」ボタンの幅を調整 */
    #view-all-button {
        width: auto;
        margin-left: 0;
    }

    .pagination-buttons-section {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .pagination-buttons-section button {
        flex-grow: 0;
        width: 80px;
        padding: 10px 12px;
        font-size: 0.95em;
        border-radius: 2px;
    }

    .item-summary-section {
        margin-bottom: 15px;
    }

    .pagination-buttons-section {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .pagination-buttons-section button {
        flex-grow: 1;
        margin: 0 5px;
        padding: 12px 18px;
        font-size: 1em;
        border-radius: 2px;
    }

    /* フッターのモバイル用調整 */
    #main-footer {
        padding: 20px 0px 0px 0px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
        /*margin-bottom: 30px;*/
    }

    .footer-container {
        align-items: flex-start;
    }

    #main-content .footer-container p {
        margin-top: 20px;
    }

    .footer-container .footer-links {
        margin: 0;
    }

    /* トップへ戻るボタン */
    #js-pagetop a {
        width: 50px;
        height: 50px;
        border-radius: 3px;
        box-shadow: none;
    }
}