/* --- ■■■■■■■■■■ --- */
/* ---  共通  --- */
* {
    font-family: monospace;
}

/* --- ■■■■■■■■■■ --- */
/* --- タグ --- */

html body {
    min-height: 100%;
}

body {
    font-size: 10px;
    /* 9pt; */
    line-height: 1.8em;
}

h1 {
    padding: 10px 20px 20px 0;
    font-size: 18px;
    /* 14pt; */
}

h2 {
    padding: 10px 20px 20px 0;
    font-size: 18px;
    /* 14pt; */
}

h3 {
    padding: 10px 20px 20px 20px;
    font-size: 15px;
    /* 12pt; */
}

h1,
h2,
h3 {
    margin: 0;
}

th {
    font-weight: normal;
}

label {
    font-weight: normal;
}

p {
    margin: 0 0 10px;
}

.pagination {
    margin: 0 0 10px;
}

.unpanel {
    margin: 0 0 20px;
}

/* --- ■■■■■■■■■■ --- */
/* --- bootstrap --- */

.navbar {
    font-size: 12px;
    line-height: 30px;
    margin-bottom: 0px;
}

/* 上書き */
.container-fluid {
    padding-right: 0px;
    padding-left: 0px;
}

.progress {
    margin-top: 20px;
}

/* --- stickytable --- */
/* 上書き */
.sticky-table{
    max-height:90vh
}

    /* containerとnavbar-header前のコンテンツ削除 */
.container::before,
.navbar-header::before {
    content: none;
}

.navbar-brand {
    padding: 0 15px;
}

.badge {
    margin-left: 5px;
}

.btn {
    border-style: solid;
    border-width: 1px;
}

.input-group .btn {
    border-width: 1px;
}

div.text-center .btn {
    min-width: 8em;
}

/* ---  position: unsetを指定しないと、セルの背景色を指定したときにセルの罫線がなぜか消えてしまう --- */
/* ---  position: unsetを指定するとAjaxメッセージがセルを覆うのではなくページを覆ってしまう --- */
/*
.table-bordered > tbody > tr > td, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > td, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > thead > tr > th {
	position: unset;
}
*/

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
    padding: 2px 4px;
    vertical-align: middle;
}

/* ---  ファイルアップロード欄は高さを固定すると「ファイルを選択」ボタンが切れそうになるためautoに変更 --- */
input[type="file"].form-control {
    height: auto;
}

/* ---  一覧ヘッダのボタン位置で使用 --- */
.table > thead > tr > th.text-bottom {
    vertical-align: bottom;
}

/* ---  一覧内のform-control-staticは余白を無くす --- */
.table .form-control-static {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.media {
    padding: 10px 0;
    height: 9em;
}

.media-left p {
    margin: 0;
    padding: 5px;
    width: 100px;
    height: 100px;
    text-align: center;
    border-style: solid;
    border-width: 5px;
}

/* ---  検索画面の「～」 --- */
.input-group-addon {
    background-color: transparent;
    border: 0;
}

/* ---  タブの真下はマージンが無くタブとタイトルがくっついてしまうためマージンを設ける（pagemainクラスも指定しておかないとヘッダメニューまでマージンができてしまう） --- */
.pagemain .nav {
    margin-bottom: 15px;
}

/* ---  タブのアンカーには下線を付けない --- */
.nav a {
    text-decoration: none;
}

/* ---  タブの背景色 --- */
.nav-tabs > li > a {
    border-bottom: solid 1px #ddd;
    background-color: #eee;
}

/* ---  メニュー画面共通 --- */
h2.list-group-item-heading {
    padding: 0;
    margin-bottom: 0;
}

p.list-group-item-text {
    margin-top: 10px;
    margin-left: 20px;
    color: #888888;
}

div.thumbnail div.caption {
    min-height: 8em;
}

/* --- ■■■■■■■■■■ --- */
/* --- カラーピッカー spectrum --- */
.sp-replacer {
    border: solid 1px #ccc;
    border-radius: 4px;
}

/* --- ■■■■■■■■■■ --- */
/* --- ヘッダとフッタ --- */
div.pagehead h1 {
    padding: 0;
    margin: 0;
    font-size: 24px;
    /* 18pt; */
    line-height: 50px;
}

div.pagehead h1 a {
    padding: 0;
    margin: 0;
    text-decoration: none;
}

div.pagehead h1 a img {
    padding: 0;
    margin: 0;
}

div.pagehead,
div.pagefoot {
    padding: 0;
    margin: 0;
    border-style: solid;
    border-width: 0;
    text-align: left;
    background-repeat: repeat;
    background-position: center center;
}

div.pagefoot > div {
    padding-left: 15px;
}

div.pagehead {
    margin: 0 0 20px 0;
}

div.pagehead,
div.pagehead a,
div.pagefoot,
div.pagefoot a {
    line-height: 50px;
}

/* --- ■■■■■■■■■■ --- */
/* --- オリジナル定義クラス --- */

/* ---  非表示領域（開発時は表示させることがあるためCSSのクラスにしておく） --- */
.syshide {
    display: none;
}

/* ---  最小幅でnowrapを使いたい時などに使用する --- */
.col1px {
    width: 1%;
}

/* ---  折り返したくない時に使用する --- */
.nwrp {
    white-space: nowrap;
}

/* ---  一覧表内の画像を縦横比を保ったまま一定サイズ内におさめる --- */
/*
.listimg {
	display: table-cell;
	width: 32px;
	height: 34px;
	text-align: center;
	vertical-align: middle;
}
.listimg img {
	width: auto;
	height: auto;
	max-width: 32px;
	max-height: 34px;
}
*/

.tbody-formsys img {
    height: 34px;
}

/* ---  一覧内のボタンサイズ --- */
.table .pagemain .btn-sm {
    min-width: auto;
    padding: 2px 10px;
}

/* ---  Ajax処理を行うセルをロックするために必要 --- */
td.ajaxcell {
    position: relative;
}

/* ---  Ajax処理の待ち時間に表示 --- */
.ajaxmsg {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 0 0 2px;
    font-size: 12px;
}

/* ---  Ajax処理の待ち時間（エクセル出力時）にプルダウンのほうが全面に来てしまう問題の処置 --- */
.ajaxmsg.ajaxwait {
    z-index: 999;
}

.ajaxwait {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-shadow: #000000 1px 1px 0px, #000000 -1px 1px 0px, #000000 1px -1px 0px,
        #000000 -1px -1px 0px;
    cursor: wait;
    width: 100%;
    height: 100%;
}

/* ---  Ajax処理のfail時に表示 --- */
.ajaxerror {
    background-color: rgba(127, 0, 0, 0.5);
    color: #ffffff;
    text-shadow: #000000 1px 1px 0px, #000000 -1px 1px 0px, #000000 1px -1px 0px,
        #000000 -1px -1px 0px;
    width: 100%;
    height: 100%;
}

/* ---  Ajax処理のsuccess時かつ仕様的に値が更新できなかった時に表示 --- */
.ajaxwarning {
    color: #ff0000;
    text-shadow: #ffffff 1px 1px 0px, #ffffff -1px 1px 0px, #ffffff 1px -1px 0px,
        #ffffff -1px -1px 0px;
    cursor: pointer;
}

/* ---  Ajax処理のsuccess時かつ値が更新できた時に表示 --- */
.ajaxsuccess {
    color: #008800;
    text-shadow: #ffffff 1px 1px 0px, #ffffff -1px 1px 0px, #ffffff 1px -1px 0px,
        #ffffff -1px -1px 0px;
    cursor: pointer;
    pointer-events: none;
}

/* ---  IME --- */
.ime-active {
    ime-mode: active;
}

.ime-inactive {
    ime-mode: inactive;
}

.input-panel {
    background-color: #eee;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    box-sizing: border-box;
}

.input-panel img {
    border: 1px solid #ccc;
}

/* --- ■■■■■■■■■■ --- */
/* ---  ボトムフレーム --- */
div#bframe_outer {
    margin-top: 200px;
    display: none;
}

div#bframe_inner {
    border-top: solid 1px #000000;
    background-color: #eeeeee;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

div#bframe_scroll {
    height: 200px;
    overflow: scroll;
}

div#bframe_outer p {
    margin: 0;
    padding: 4px;
}

div#bframe_outer th,
div#bframe_outer td {
    white-space: nowrap;
}

div#bframe_outer tbody {
    background-color: #ffffff;
}

a#bframe_close {
    padding-right: 10px;
    float: right;
    font-size: 30px;
    cursor: pointer;
    text-decoration: none;
}

div#bframe_outer table th {
    cursor: pointer;
}

div#bframe_outer table th a {
    pointer-events: none;
}

#bframe_resize {
    cursor: ns-resize;
}

/* ---  IEではボトムフレームのスクロールバーがページ全体のスクロールバーの真後ろに重なってしまうため、IEの場合はボトムフレームのスクロールバーの右側にマージンを設ける --- */
@media all and (-ms-high-contrast: none) {
    div#bframe_scroll {
        margin-right: 20px;
    }

    a#bframe_close {
        margin-right: 20px;
    }
}

/* --- ■■■■■■■■■■ --- */
/* --- その他 --- */
span.label {
    font-size: 100%;
    font-weight: normal;
}

.breadcrumb {
    padding: 0;
    margin-top: 0px;
    margin-bottom: 0px;
    background-color: transparent;
}

.thumbnail h2 {
    font-size: 14px;
}

/* ---  bootstrap-selectのフォントサイズを調整 --- */
/*
.filter-option {
	font-size: 15px;
}
*/

/* --- フッタ位置調整  --- */
html,
body {
    height: 100%;
}

#nofooter {
    min-height: 97%;
    height: auto;
}

/* 一覧画面のフッターのみに適用する */
.nofooter-list {
    margin: 0 auto -20px;
}

footer {
    width: 100%;
    padding-top: 0;
}

/* ログイン画面のフッターがせり上がる不具合修正 */
#auth footer {
    position: absolute;
    bottom: 0;
}

/* #footer p {
    margin-bottom: 0;
    padding-bottom: 0;
    height: 100px;
} */

/* --- Table --- */
.table {
    margin-bottom: 0;
}

.table-nothead > tbody > tr:first-child > td {
    border-top: 0px;
}

/* ---  Other --- */
td.orig-oneline,
td.orig-oneline p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tagtile a,
.tagtile a:focus,
.tagtile a:hover {
    border: solid 1px silver;
    line-height: 30px;
    padding: 2px 8px;
    white-space: nowrap;
    border-radius: 4px;
    text-decoration: none;
}

.tail {
    padding: 20px 0;
}

.selectradio {
    padding-left: 20px;
}

.orig-intable tr th,
.orig-intable tr td {
    border-left: solid 1px #ddd;
    border-top: solid 1px #ddd;
    padding: 4px;
}

.orig-intable tr:first-child th,
.orig-intable tr:first-child td {
    border-top: none;
}

.orig-intable tr th:first-child,
.orig-intable tr td:first-child {
    border-left: none;
}

.form-group .btn-warning {
    display: inline-block !important;
}

/* ---  ラジオボタンパディング --- */
.form-horizontal .radio,
.form-horizontal .radio-inline {
    padding-top: 0;
}

/* ---  ラジオボタン枠 --- */
.selectradio {
    border: solid 1px #ccc;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
}

/* ---  ラジオボタン横並び --- */
.checkbox,
.radio {
    display: inline-block;
}

.selectradio label {
    width: 160px;
    vertical-align: top;
    margin-left: 30px;
}

/* ---  ラジオボタンデザイン --- */
input[type="radio"] {
    display: none;
}

.selectradio label {
    border: solid 1px #fff;
    border-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #ddd;
    cursor: pointer;
}

.selectradio label.checked {
    background-color: #aaaa00;
    color: #fff;
}

_delete.tbody-formrel td {
    background-color: #ffffff;
}

/* ---  ラジオボタン（一覧画面） --- */
.tbody-formrel .selectradio {
    white-space: nowrap;
}

.tbody-formrel .checkbox,
.tbody-formrel .radio {
    display: inline;
}

.tbody-formrel .selectradio label {
    padding: 5px 5px 5px 0;
}

.tbody-formrel .selectradio label:first-child {
    padding: 5px;
}

.tbody-formrel .selectradio {
    padding: 6px 2px;
}

/* FRAT */
/* ---  ヘッダとフッタとパネルヘッダの背景色 --- */
.navbar-default,
.navbar-default ul li ul,
div.pagehead,
div.pagefoot,
.panel-default > .panel-heading {
    background-color: #888888;
    color: #ffffff;
}

/* ---  フッタとパネルヘッダの文字色 --- */
.navbar-default *,
.navbar-default ul li ul li a,
div.pagehead *,
div.pagefoot *,
.panel-default > .panel-heading,
.panel-default > .panel-heading * {
    color: #ffffff;
}

/* ---  ヘッダメニューの文字色 --- */
.navbar-default a.navbar-brand,
.navbar-default a.navbar-brand:focus,
.navbar-default a.navbar-brand:hover,
.navbar-default ul.nav > li > a,
.navbar-default ul.nav > li > a:focus,
.navbar-default ul.nav > li > a:hover,
div.pagehead a,
div.pagefoot a {
    background-color: transparent;
    color: #ffffff;
}

/* ---  ヘッダサブメニューの文字色 --- */
.navbar-default .navbar-nav .open .dropdown-menu > li > a,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
    color: #ffffff;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}

body.body-type-detail .text-right {
    text-align: left;
}

body.body-type-detail .text-center {
    text-align: left;
}

body.body-func-del .panel-default {
    background-color: #ffeeee;
    border-color: #ff0000;
}

/* ---  編集画面のラベルを左揃え --- */
body.body-type-detail .form-horizontal .control-label {
    text-align: left;
}

/* ---  スマホ表示時にラベルと必須マークがくっつかないようにする --- */
body.body-type-detail .form-horizontal .control-label > span.label {
    margin-left: 10px;
}

/* ---  PC表示時に必須マークをラベルの右側に縦に揃える --- */
@media (min-width: 768px) {
    body.body-type-detail .form-horizontal .control-label > span.label {
        float: right;
    }
}

/* ---  編集画面の下部のボタンの大きさを揃える --- */
body.body-type-detail .btn {
    width: 100px;
}

body.body-type-dtable th {
    text-align: center;
}

/*---------------------------------

  物件管理システムカスタマイズ

---------------------------------*/

/* ---  物件一覧ドロップダウンメニュー以下のbuttonをaタグデザインに変更 --- */
.dropdown-menu > form > li > button {
    width: 100%;
    text-align: left;
    display: block;
    clear: both;
    font-weight: 400;
    white-space: nowrap;
    background-color: #888888;
    border: none;
}

@media (max-width: 768px) {
    .dropdown-menu > form > li > button {
        padding-top: 10px;
        padding-bottom: 10px;
        line-height: 20px;
    }
}
.dropdown-menu > form > li > button:hover {
    background-color: #e7e7e7;
}

.dropdown-menu > form > li > button > .glyphicon {
    margin-right: 5px;
}

.button-font-small {
    font-size: 10px;
}

/*
サイト備考～提案日までのセル色を色指定
・申込レコード(state1)  ：橙
・提案中レコード(state2)：青
・契約(state3)          ：緑
・決済予定(state9)      ：黄
*/
tbody tr.state1 td:not(:nth-child(2)),
tbody tr.state1 td:not(:nth-child(3)),
tbody tr.state1 td:not(:nth-child(n + 18)) {
    background: #0099ff;
}
tbody tr.state2 td:not(:nth-child(2)),
tbody tr.state2 td:not(:nth-child(3)),
tbody tr.state2 td:not(:nth-child(n + 18)) {
    background: #b8def2;
}
tbody tr.state3 td:not(:nth-child(2)),
tbody tr.state3 td:not(:nth-child(3)),
tbody tr.state3 td:not(:nth-child(n + 18)) {
    background: #00ff00;
}
tbody tr.state9 td:not(:nth-child(2)),
tbody tr.state9 td:not(:nth-child(3)),
tbody tr.state9 td:not(:nth-child(n + 18)) {
    background: #ffff00;
}

/* 編集ボタン、サイト、申込日～取引状況更新者までカラム色を白指定 */
tbody tr.state-color td:nth-child(2),
tbody tr.state-color td:nth-child(3),
tbody tr.state-color td:nth-child(n + 18) {
    background: #fff;
}

/*  申込日～決済日までのセル色を日付があるカラムまでstate1色を延長 */
tbody tr.state-color td.state1 {
    background: #0099ff;
}

/*  申込日～決済日までのセル色を日付があるカラムまでstate2色を延長 */
tbody tr.state-color td.state2 {
    background: #b8def2;
}

/*  申込日～決済日までのセル色を日付があるカラムまでstate3色を延長 */
tbody tr.state-color td.state3 {
    background: #00ff00;
}

/*  申込日～決済日までのセル色を日付があるカラムまでstate9色を延長 */
tbody tr.state-color td.state9 {
    background: #ffff00;
}

/* サイト45日前カラム色 */
tbody tr.state-color td.site-date-limit {
    background: #ff3738;
    /* font-weight: bold; */
}

/*  楽天～その他②までのセル色を値がある場合のみ背景色指定 */
tbody tr.state-color td.bank-value-exist {
    background: rgba(229, 255, 255, 0.8);
}

/* ---  物件一覧ナビゲーションバーのbuttonをaタグデザインに変更 --- */
.navbar-nav > li > form > button {
    height: 50px;
    border: none;
    padding: 15px 15px;
    line-height: 20px;
    background-color: transparent;
}

@media (max-width: 768px) {
    .navbar-nav > li > form > button {
        text-align: left;
        width: 100%;
        height: 40px;
        padding: 10px 15px;
    }
}

.navbar-nav > li > form > button:focus {
    outline: none;
    box-shadow: none;
}

.navbar-nav > li > form > button > .glyphicon {
    margin-right: 5px;
}

.navbar-nav > li > span {
    height: 25px;
    border: none;
    padding: 10px 10px;
    line-height: 10px;
    background-color: transparent;
}

.navbar-nav-detail-count {
    line-height: 20px;
    padding: 15px 30px 15px 0px;
}

.navbar-nav {
    font-size: 14px;
}

/* メールアドレス変更画面、パスワード変更画面のフッターを画面下部に固定 */
.footer-bottom footer {
    position: absolute;
    bottom: 0;
}

/*
テーブルの枠線について
・デフォルトではセル間に隙間があることからsticky-tableをスクロールするとボーダーが消えてしまうため、セル間の隙間を無くす
・セルの左や上にborderがあると列固定スクロール時に微妙にスクロールがガタつくため、セルの右と下にだけborderを付ける
・上記2点だけだとテーブルの左と上に線が無くなってしまうため（テーブルにマージンが無ければ気にならないが）、outlineを使って左と上に線を引く
*/
.sticky-table table {
	border-collapse: separate;
	border-spacing: 0;
}

.table-bordered>tbody>tr>td,
.table-bordered>tbody>tr>th,
.table-bordered>tfoot>tr>td,
.table-bordered>tfoot>tr>th,
.table-bordered>thead>tr>td,
.table-bordered>thead>tr>th {
	border-top: none;
	border-right: 1px solid #000000;
	border-bottom: 1px solid #000000;
	border-left: none;
}

.table-bordered {
	outline: solid 1px #000000;
	border: none;
}

.sticky-table table tr.sticky-header th,
.sticky-table table td.sticky-cell {
    outline: none;
}
