/*
    style.css
    作成者: 荻島良郎
    作成日: 2025-08-26
    概要:
        複数HTMLで共用するスタイルを定義
        主にテーブルの装飾を使いまわす
*/

/* 通常テーブル */
.tg {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0px auto;
}

.tg td {
    border-color: black;
    border-style: solid;
    border-width: 1px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    overflow: hidden;
    padding: 10px 5px;
    word-break: break-all;
    /* 単語の途中でも折り返す */
    white-space: normal;
    /* 折り返しを有効にする */
    vertical-align: top;
}

.tg th {
    border-color: black;
    border-style: solid;
    border-width: 1px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
    overflow: hidden;
    padding: 10px 5px;
    word-break: break-all;
    white-space: normal;
    vertical-align: top;
}

/*白背景黒文字中央寄せ*/
.tg .tg-c3ow {
    border-color: inherit;
    text-align: center;
    vertical-align: top;
}

/*緑背景白文字中央寄せ*/
.tg .tg-tfnm {
    background-color: #05a289;
    border-color: inherit;
    color: #ffffff;
    text-align: center;
    vertical-align: top;
}

/*白背景黒文字左揃え*/
.tg .tg-0pky {
    border-color: inherit;
    text-align: left;
    vertical-align: top;
}

/*テーブルのセルを強調する。優先順位の都合上、後ろの方に定義してください*/
.tg .tg-highlight {
    background-color: #ffffAA;
    font-weight: bold;
}

/*通常ボタン*/
.submit-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 1px 6px;
    border-width: 1px;
    border-style: solid;
    border-color: #767676 #767676 #767676 #767676;
    /* ブラウザによって異なる場合あり */
    border-image: initial;
    background-color: #e6e6e6;
    color: initial;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    overflow: visible;
    text-transform: none;
    cursor: pointer;
    box-sizing: border-box;
}

.submit-button:hover {
    background-color: #d6d6d6;
}

.submit-button:active {
    background-color: #c6c6c6;
    border-color: #555555 #555555 #555555 #555555;
    transform: translateY(1px);
}

/*ホームボタン*/
.btn-home {
    background-color: #ffbdbd;
    border: 1px solid #000000;
    color: #000000;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 450px;
}

.btn-home:hover {
    background-color: #ff0000;
    color: #ffffff;
}

/* --- 共通レイアウト (Login, Search) --- */

/* ページ全体の背景色 */
body {
    background: #fafafa;
}

/* コンテンツ領域: 枠線、余白、幅700px、中央寄せ、背景白 */
.container {
    border: 2px solid #222;
    padding: 30px;
    width: 700px;
    margin: 30px auto;
    background: #fff;
}

/* 見出し: 文字サイズ、下余白 */
.page-title {
    font-size: 1.5em;
    margin-bottom: 30px;
}

/* フォームグループの余白 */
.form-section {
    margin-bottom: 40px;
}

/* ラベルの文字サイズ */
.form-label {
    font-size: 1.1em;
}

/* テキスト入力・プルダウン: 幅70%、余白、文字サイズ */
.form-input {
    width: 70%;
    padding: 8px;
    margin: 10px 0 10px 0;
    font-size: 1em;
}

/* ボタン: パディング、文字サイズ、左マージン */
.action-btn {
    padding: 8px 24px;
    font-size: 1em;
    margin-left: 20px;
}

/* --- 検索結果画面 (Search Result) --- */

/* テーブル全体設定: 枠線結合、幅90%、上下マージン */
.result-table {
    border-collapse: collapse;
    width: 90%;
    margin: 20px 0;
}

/* セル設定: 枠線、パディング、中央揃え、改行維持、フォントサイズ */
.result-table th,
.result-table td {
    border: 1px solid #888;
    padding: 8px 12px;
    text-align: center;
    white-space: pre-line;
    font-size: medium;
}

/* ヘッダー背景色: 薄いグレー */
.result-table th {
    background: #f0f0f0;
}

/* 中央揃え用クラス */
.center-text {
    text-align: center;
}

/* 開くボタン: 大きめのパディング、フォントサイズ、マージン */
.open-btn {
    padding: 8px 24px;
    font-size: 1em;
    margin: 20px 0;
}