/* スクロール設定 */
div.table_wrapper_update {
    max-height: 550px; /* 必要に応じて表示領域の高さを設定 */
    overflow-y: auto;  /* 縦スクロールを有効化 */
    overflow-x: hidden; /* 横方向のオーバーフローを隠す */
    table-layout: fixed; /* 列の幅を固定 */
    margin: 0 !important; /* マージンをゼロに設定 */
    display: block; /* 必須: ブロック要素として扱う */
}

#contents h2.index_update_history {
    margin-top: 0 0 5px 0 !important;
  }

@media (max-width: 768px) {
    div.table_wrapper_update {
        max-height: 480px !important; /* 必要に応じて表示領域の高さを設定 */
    }

    #contents h2.index_update_history {
        margin-top: 0 0 3px 0 !important;
      }
}

/* 更新履歴設定 */
h2.index_update_history{
    margin: 0 !important;
}

table.update_history{
    margin: 0 0 20px 0 !important;
    border: none !important;
    border-collapse: collapse !important;
}
table.update_history td{
    padding: 5px 0 5px 0;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
}
table.update_history td.info{
    text-align: left;
}
table.update_history td.date{
    font-size: 12px;
    padding: 0;
}
table.update_history td.stage{
    padding: 0 2px;
}

/* ステータスデザインの設定 */

td .approval,
td .tentative,
td .offering_price,
td .opening_price,
td .commissioned_underwriters,
td .cancel_listing {
    display: inline-block;
    width: 35px; /* 仮条件の横幅に合わせる */
    padding: 0;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    border: 1px solid;
    white-space: nowrap;
    letter-spacing: 0.5px; /* 文字間隔を調整 */
}

td .approval {
    background-color: #fce4e4; /* 少し抑えた薄い赤 */
    color: #c62828; /* 濃い赤 */
    border-color: #c62828; /* 枠線も濃い赤 */
}

td .tentative {
    background-color: #fff7e6; /* 薄いクリーム色 */
    color: #d48806; /* 濃いオレンジ */
    border-color: #d48806; /* 枠線も濃いオレンジ */
}

td .offering_price {
    background-color: #e6f7ff; /* 薄い青 */
    color: #00509e; /* 濃い青 */
    border-color: #00509e; /* 青の枠線 */
}

td .opening_price {
    background-color: #f9f0ff; /* 薄い紫 */
    color: #531dab; /* 濃い紫 */
    border-color: #531dab; /* 紫の枠線 */
}

td .commissioned_underwriters {
    background-color: #e3fcec; /* 薄い緑 */
    color: #237804; /* 濃い緑 */
    border-color: #237804; /* 緑の枠線 */
}

td .cancel_listing {
    background-color: #f5f5f5; /* 薄いグレー */
    color: #595959; /* 濃いグレー */
    border-color: #8c8c8c; /* ミディアムグレーの枠線 */
}

