body {
    background-color: #f7f7f8;
    font-family: Arial, sans-serif;
    width: 100%;
    padding: 20px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
}

.credit-form-container {
    width: 50%;
    margin: 0 auto;
}

h1 {
    margin-bottom: 50px;
}

h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    /* 余白を増やしてエラーメッセージのスペースを確保 */
    position: relative;
}

.form-group label:not(.toggle-date-label),
.info-label {
    width: 170px;
    /* ラベルが横並びになっている別の要素によって横幅を変更されないようmin-widthを設定 */
    min-width: 170px;
    /* ラベルの幅を統一 */
    height: 38px;
    padding: 10px;
    background-color: #dce9f4;
    color: #1a3f61;
    text-align: center;
    /* テキストを中央揃え */
    margin-right: 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
}

/* チェックボックスのみスタイルの影響を除外 */
.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    margin-right: 10px;
    border-radius: 5px;
}

textarea[name="body"] {
    height: 150px;
}

/* チェックボックスのスタイル */
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 10px;
    /* 上部余白 */
    padding-bottom: 20px;
    /* 下部余白 */
}

.form-check {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    height: 38px;
}

.form-check-input {
    position: absolute;
    margin-left: -1.25rem;
    margin-top: 0;
}

.form-group-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* アップロード領域のスタイル */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    text-align: center;
    color: #777;
}

.upload-placeholder:hover {
    background-color: #f1f1f1;
    /* ホバー時に少し色を変える */
}

.upload-icon img {
    width: 40px;
    /* アップロードアイコンのサイズを調整 */
    margin-bottom: 10px;
}

.upload-text {
    font-size: 14px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.btn-primary {
    padding: 8px 20px;
    border-radius: 99px;
    background: #327cbd;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #286599;
    /* ホバー時の少し明るい背景色 */
    color: #fff;
    /* ホバー時もテキストは白 */
    text-decoration: none;
    /* ホバー時に下線を表示しない */
}

.btn-secondary {
    padding: 8px 20px;
    border-radius: 99px;
    background-color: #fff;
    color: #327cbd;
    /* テキストの色を青に */
    border: 1px solid #327cbd;
    /* 青いボーダー */
}

.btn-secondary:hover {
    background-color: #f1f1f1;
    /* ホバー時に少し色を変える */
    color: #327cbd;
    /* テキストの色を青に */
    border: 1px solid #327cbd;
    /* 青いボーダー */
    text-decoration: none;
    /* ホバー時に下線を表示しない */
}

.property-info {
    display: grid;
    grid-template-columns: 180px 1fr;
    /* ラベルと値の2カラムグリッド */
    gap: 20px 10px;
    /* 行と列の間隔を設定 */
    margin-bottom: 20px;
}

.info-item {
    display: contents;
    /* 各項目をグリッドの内容として扱う */
}

.info-value {
    flex-shrink: 0;
    /* ラベルの幅を固定 */
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.validation-message-required,
.validation-message {
    color: red;
    font-size: 14px;
    display: block;
    /* ブロック要素として表示 */
    left: 200px;
    /* メッセージの位置を入力欄の左に揃える */
}

.c-uploadPhotoMain {
    display: flex;
    flex-wrap: wrap;
    margin-left: 170px;
    max-width: 100%;
}

#property_images {
    display: none;
}

.photo {
    position: relative;
    display: inline-block;
    /* 画像と削除ボタンを1つのブロックとして扱う */
    margin: 10px;
    /* 少し余白を追加 */
}

.photo img {
    width: 300px;
    height: auto;
    object-fit: fill;
    /* 画像が枠に収まるようにし、引き伸ばして均一表示 */
    border-radius: 5px;
    border: 2px solid #ccc;
    aspect-ratio: 16/9;
}

.photo-remove {
    position: absolute;
    top: -27px;
    right: -20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border: none;
}

.photo-remove img {
    width: 100%;
    height: 100%;
    border: none;
}

.bi-cloud-upload {
    font-size: 40px;
    color: #777;
}

/* キーボードフォーカスとマウスホバー時の共通スタイル */
.dropdown-item.active,
.dropdown-item:hover {
    background-color: #e2e6ea;
    color: #000;
    text-decoration: none;
    /* ホバー時に下線を表示しない */
}

.error {
    border-color: #e3342f;
}

#before-send-back-login {
    font-size: 14px;
}

/* 削除ボタン */
.delete {
    background: none;
    color: #327cbd;
    border: none;
    padding: 8px 13px;
    border-radius: 99px;
    margin: auto;
}

/* 追加アイコン */
.bi-plus-circle-fill {
    color: #327cbd;
}

/* 矢印アイコン */
.move-buttons {
    border: none;
}

.move-buttons i {
    cursor: pointer;
    /* カーソルをポインタに変更 */
    font-size: 13px;
    /* アイコンサイズの調整 */
}

tr:first-child .move-up-btn {
    display: none;
}

tr:last-child .move-down-btn {
    display: none;
}

.btn-outline-secondary {
    border-radius: 99px;
    color: #495057;
    padding: 8px 20px;
}

.pulldown-box {
    position: relative;
    display: inline-block;
    width: 100%;
}

.pulldown-box select {
    width: 100%;
    height: 38px;
    padding-right: 2rem;
    /* アイコンと重ならないように右側に余白を確保 */
    appearance: none !important;
    /* デフォルトの矢印を消す */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-select {
    background-image: none !important;
}

.pulldown-box i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    /* アイコンをクリックしても select に影響しないように */
    font-size: 1rem;
    color: #555;
    /* アイコンの色 */
}

.form-field-container {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.income-row {
    position: relative;
}

.income-row-grid {
    display: grid;
    grid-template-columns: 3fr 3fr 3fr 1fr;
    align-items: center;
    column-gap: 0.5rem;
    padding: 5px 0;
    border-bottom: 1px solid #d3d3d3;
}
