/* 管理画面 */
body.admin { background: #f4f7f8; font-size: 16px; }
.admin-header { background: var(--sea-deep); color: #fff; position: sticky; top: 0; z-index: 20; }
.admin-bar { display: flex; align-items: center; gap: 16px; padding: 10px 20px; max-width: 1200px; margin: 0 auto; }
.admin-brand { color: #fff; font-family: var(--mincho); font-weight: 800; font-size: 19px; text-decoration: none; margin-right: auto; }
.admin-view { color: #fff; font-size: 14px; }
.admin-logout button { font: inherit; font-size: 14px; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 4px 12px; border-radius: 4px; cursor: pointer; }
.admin-nav ul { list-style: none; margin: 0 auto; padding: 0 12px; display: flex; flex-wrap: wrap; max-width: 1200px; }
.admin-nav a { display: block; color: #fff; text-decoration: none; padding: 10px 16px; border-bottom: 4px solid transparent; }
.admin-nav a[aria-current="page"] { border-bottom-color: var(--kotoden); font-weight: 700; }
.admin-nav .count { background: var(--kotoden); color: var(--ink); font-size: 12px; border-radius: 99px; padding: 0 7px; margin-left: 6px; font-weight: 700; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 120px; }
.admin-main h1 { font-size: 26px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.head-row h1 { margin: 0; }
.muted { color: var(--stone); }
.warn { color: var(--red); font-weight: 700; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 20px; }
.panel h2 { font-size: 20px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.panel[hidden] { display: none; }
.panel-warn { border-color: var(--kotoden); border-width: 2px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--mist); }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.quick-btn { display: block; background: var(--sea); color: #fff; text-decoration: none; padding: 20px; border-radius: var(--r); }
.quick-btn:hover { background: var(--sea-deep); color: #fff; }
.quick-btn strong { display: block; font-size: 20px; font-family: var(--mincho); }
.quick-btn span { font-size: 14px; opacity: .9; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 5px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--sea); color: #fff; border-color: var(--sea); }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--mist); text-align: left; vertical-align: middle; }
.admin-table th { background: var(--mist); font-weight: 700; white-space: nowrap; }
.admin-table tr.unread td { background: #fffbea; }
.nowrap { white-space: nowrap; }
.thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 3px; }
.inline { display: inline; }
.inline button { font: inherit; padding: 2px 8px; border: 1px solid var(--line); background: #fff; border-radius: 3px; cursor: pointer; }
.status { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: var(--mist); white-space: nowrap; }
.status-公開 { background: #e7f4ec; color: #1d5133; }
.status-商談中 { background: #e3eef8; color: #1c4670; }
.status-成約済 { background: #eee; color: #555; }
.status-非公開, .status-下書き { background: #fdecea; color: #7a1712; }
.status-予約 { background: #fff6d6; color: #6b5200; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 20px; }
.field-grid .wide { grid-column: 1 / -1; }
.help { font-size: 13px; color: var(--stone); margin: 4px 0 0; }
.with-unit { display: flex; align-items: center; gap: 6px; }
.with-unit span { white-space: nowrap; }
.num { max-width: 110px; }
.feature-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.feature-groups fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; margin: 0; }
.feature-groups legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.section-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; position: sticky; top: 98px; z-index: 10; background: #f4f7f8; padding: 6px 0; }
.section-jump a { font-size: 14px; padding: 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; }
.section-jump a[hidden] { display: none; }
.img-edit { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.img-edit li { border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: grid; gap: 6px; font-size: 14px; }
.img-edit img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 3px; }
.img-edit label { display: flex; align-items: center; gap: 6px; }
.danger { color: var(--red); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.upload-preview img { width: 110px; height: 82px; object-fit: cover; border-radius: 3px; }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; z-index: 30; box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.save-bar .btn-danger { margin-left: auto; }
.body-area { font-family: var(--mincho); font-size: 17px; line-height: 1.9; }
.login-box { max-width: 420px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px; }
.login-box h1 { font-size: 22px; }
.search-row { display: flex; gap: 8px; max-width: 480px; margin-bottom: 16px; }
.inline-actions { display: flex; gap: 10px; margin-top: 16px; }
.link-danger { color: var(--red); background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 700px) { .section-jump { position: static; } .save-bar .btn-danger { margin-left: 0; } }
.import-log { font-size: 14px; max-height: 360px; overflow: auto; background: var(--mist); padding: 10px 10px 10px 4em; border-radius: var(--r); }
.import-log li.warn { color: var(--red); }
.btn-row { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.btn-rent { background: var(--pine); border-color: var(--pine); color: #fff; }
.btn-rent:hover { background: #5a7240; border-color: #5a7240; color: #fff; }
.quick-btn-rent { background: var(--pine); }
.quick-btn-rent:hover { background: #5a7240; }
.deal-pill { display: inline-block; font-family: var(--gothic); font-size: 14px; font-weight: 700; vertical-align: middle; padding: 2px 12px; border-radius: 99px; background: var(--sea); color: #fff; }
.deal-pill-rent { background: var(--pine); }
.feature-groups fieldset[hidden], .field[hidden] { display: none; }
