@charset "UTF-8";

/* ------------------------------
   ベース設定
------------------------------ */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* ------------------------------
   ヘッダー・ナビ
------------------------------ */
.header-nav {
    background: #d1c7b7;
    padding: 10px 16px;
    font-size: 15px;
}

.header-nav a {
    margin-right: 12px;
    text-decoration: none;
    color: #333;
}

.header-nav a:hover {
    text-decoration: underline;
}

/* ------------------------------
   ボタン
------------------------------ */
.button {
    display: inline-block;
    padding: 4px 10px;
    background: #a08863;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.button:hover {
    opacity: 0.85;
}

/* ------------------------------
   テーブル基本
------------------------------ */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 10px;
}

.table th, .table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    font-size: 14px;
}

.table th {
    background: #e7e0d4;
}

/* 横スクロール（スマホ対応） */
.table-wrapper {
    overflow-x: auto;
}

/* 折り返し防止 */
.table th,
.table td {
    white-space: nowrap;
}

/* ------------------------------
   部屋番号／階数
------------------------------ */
.col-roomno {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
}

.col-floor {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
}

/* ------------------------------
   間取／主要採光
------------------------------ */
.col-floorplan {
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    text-align: center;
}
.col-direction {
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    text-align: center;
}

/* ------------------------------
   状態
------------------------------ */
.col-status {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
    text-align: center;
}

/* ------------------------------
   金額系（賃料／共益費／敷金／礼金）
------------------------------ */
.money-col {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    text-align: right !important;
    white-space: nowrap;
}

/* ------------------------------
   日付列（退去予定日／入居可能日）
------------------------------ */
.date-col {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    text-align: center !important;
    white-space: nowrap;
}

/* ------------------------------
   メモ列
------------------------------ */
.memo-col {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center !important;
    white-space: nowrap;
}

.memo-icon {
    font-size: 16px;
    cursor: pointer;
}

/* ------------------------------
   操作列
------------------------------ */
.action-col {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    text-align: center !important;
    white-space: nowrap;
}

/* ------------------------------
   金額入力（rooms_editなど）
------------------------------ */
.input-money {
    text-align: right;
    padding-right: 6px;
}

/* -----------------------------------
   ログイン画面
----------------------------------- */
/* -----------------------------------
   ログイン画面
----------------------------------- */
body.login-page {
    background: #faf7f2;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;  /* 横方向まんなか */
    align-items: center;      /* 縦方向まんなか */
}

.login-box {
    max-width: 420px;
    width: 100%;
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.login-title {
    font-size: 22px;
    color: #4b4b4b;
    border-left: 6px solid #e8b27b;
    padding-left: 10px;
    margin-bottom: 20px;
}

.error-msg {
    background: #ffe8e8;
    color: #b33a3a;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.login-submit {
    margin-top: 20px;
    text-align: right;
}

/* -----------------------------------
   ログインフォーム調整
----------------------------------- */
.login-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-box label {
    font-weight: 600;
    margin-bottom: 4px;
}

.login-box .form-group {
    display: flex;
    flex-direction: column;
}
