.form-container {
    background-color: white;
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
}

.form-note {
    color: #999;
    font-size: 12px;
}

input[type="text"], 
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='18px' height='18px'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.upload-btn {
    background-color: #e0e0e0;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}

.footer {
    display: flex;
    margin-top: 10px;
}

.footer-btn {
    flex: 1;
    padding: 15px;
    border: none;
    text-align: center;
    cursor: pointer;
}

.top-btn {
    background-color: lightslategrey;
    color: white;
}

.register-btn {
    background-color: #0099cc;
    color: white;
}

.update-btn {
    background-color: #8fddff;
    color: black;
}

.delete-btn,
.cancel-btn {
    background-color: #ffb2a8;
    color: black;
}

.complete-btn {
    background-color: #00d8ff;
    color: #fff;
    width: 100%;
    border: none;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 0 0 4px 4px;
    font-size: 16px;
    margin-bottom: 0;
}

/* 一覧ページ用の追加スタイル */
.item-list-container {
    background-color: white;
    padding: 0;
}


.item-card {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.item-image {
    width: 70px;
    min-width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.item-image img {
    max-width: 90%;
    max-height: 90%;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.item-purchase-date {
    font-size: 14px;
    color: #333;
}

.item-arrow {
    color: #999;
    font-size: 20px;
    padding-right: 5px;
}

.single-button {
    justify-content: center;
}

.single-button .footer-btn {
    flex: 0 0 auto;
    width: 100%;
}

/* フィルターセクション用のスタイル */
.filter-section {
    background-color: white;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.filter-group {
    margin-bottom: 10px;
}


.help-link {
    display: block;
    color: #4894e0;
    text-decoration: none;
    font-size: 14px;
    margin-top: 5px;
}

.donate-btn {
    background-color: #8fddff;
    color: black;
}

.manage-btn {
    background-color: #ffb2a8;
    color: black;
}

.transfer-btn {
    background-color: #0099cc;
    color: white;
}

/* アイテムリスト最後のアイテムのボーダーを消す */
.item-card:last-child {
    border-bottom: none;
}

/* 道具詳細ページのスタイル */
.item-detail-container {
    background-color: white;
    padding: 15px;
}

.item-detail-header {
    display: flex;
    margin-bottom: 20px;
}

.item-detail-image {
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.item-detail-image img {
    max-width: 90%;
    max-height: 90%;
}

.item-detail-info {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.item-detail-info .item-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.item-remark {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
}

/* 申請フォームのスタイル */
.request-form {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.form-title {
    font-size: 16px;
    margin: 0 0 15px 0;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.requierd {
    color: red;
    font-size: 12px;
    margin-left: 5px;
}

.error-container {
    background-color: #ffb2a8;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
}

.error-message {
    color: #d8000c;
    font-size: 20px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.error-btn {
    background-color: lightgray;
    color: black;
    border: none;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.error-btn:hover {
    background-color: lightslategray;
}

/* 一部ページのページヘッダー非表示設定 */
.page-id-52 >div.page-header /* エラーページ */{
   display: none;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination-link {
    margin: 0 5px;
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ccc;
    color: #333;
}

.pagination-link.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* 画像モーダル用スタイル */
#image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}
#image-modal.active {
    display: flex !important;
}
#image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    margin: auto;
    box-shadow: 0 0 20px #000;
}
#close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

/* 譲受申請一覧用のスタイル */
.transfer-status {
    font-size: 12px;
    margin-top: 3px;
    font-weight: bold;
}

.item-status {
    font-size: 12px;
    margin-top: 3px;
    font-weight: bold;
}

.status-apply {
    color: #0099cc;
}

.status-complete {
    color: #28a745;
}

.status-cancel {
    color: #6c757d;
}

.status-reject {
    color: #dc3545;
}

.status-disp {
    color: #28a745;
}

.status-end {
    color: #6c757d;
}

.organization-name {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    line-height: 1.3;
}

/* 参照モード用のスタイル */
.form-value {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
    min-height: 20px;
    box-sizing: border-box;
}

/* 特定ページのヘッダー非表示設定 */
/* ログインページのIDは140とする,ページを作り直した場合はIDの変更が必要 */
.page-id-140 >header.site-header /* ログインページのヘッダー */{
   display: none;
}
.page-id-140 >div.breadcrumb /* ログインページのパンくずリスト */{
   display: none;
}
