@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* 2025/06/05 「保護中:」のテキスト表示をカスタマイズする */
.protected-prefix {
    /* color: #999; /* グレーアウト */
    /* font-weight: bold; /* 太字 */
}


/* TKDB 検索フォームのスタイル */
.tkdb-search-form fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}
.tkdb-search-form legend {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 10px;
    color: var(--color_main); /* SWELLのメインカラーに合わせて調整 */
}
.tkdb-search-form p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.tkdb-search-form label {
    flex: 0 0 120px; /* ラベルの幅を固定 */
    margin-right: 10px;
    font-weight: bold;
}
.tkdb-search-form input[type="number"],
.tkdb-search-form input[type="search"],
.tkdb-search-form input[type="date"] {
    flex: 1; /* 入力フィールドが残りの幅を占める */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    max-width: 300px; /* 最大幅を設定 */
}
.tkdb-search-form button {
    padding: 10px 20px;
    margin-right: 10px;
    background-color: var(--color_main); /* SWELLのメインカラーに合わせて調整 */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}
.tkdb-search-form button[type="reset"] {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}
.tkdb-search-form button:hover {
    opacity: 0.8;
}

/* TKDB 検索結果テーブルのスタイル */
.tkdb-search-results {
    overflow-x: auto; /* テーブルが画面からはみ出る場合にスクロール可能にする */
    margin-top: 30px;
}
.tkdb-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.tkdb-data-table th,
.tkdb-data-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}
.tkdb-data-table th {
    background-color: #f9f9f9;
    font-weight: bold;
    white-space: nowrap; /* ヘッダーの折り返しを防ぐ */
}
.tkdb-data-table tr:nth-child(even) {
    background-color: #fcfcfc;
}
.tkdb-data-table a {
    color: var(--color_main); /* SWELLのメインカラーに合わせて調整 */
    text-decoration: none;
}
.tkdb-data-table a:hover {
    text-decoration: underline;
}
.search-results-count,
.no-results {
    font-weight: bold;
    margin-top: 20px;
    text-align: center;
}

.nowrap td:nth-child(1),.nowrap td:nth-child(2){
    white-space: nowrap;
}
