:root {
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-border: #e5e1d8;
  --color-text: #2b2924;
  --color-muted: #756f63;
  --color-primary: #8a6d4b;
  --color-primary-dark: #6f5638;
  --color-accent: #c9a35e;
  --color-danger: #b3564a;
  --color-success: #4c7a5e;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(43, 41, 36, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.brand { font-size: 1.7rem; font-weight: 700; color: var(--color-text); letter-spacing: 0.02em; }
.brand span { color: var(--color-accent); font-weight: 500; margin-left: 8px; font-size: 1.1rem; }
.nav a { margin-left: 24px; color: var(--color-text); font-size: 0.92rem; }

.hero { background: linear-gradient(135deg, #f4efe4, #fbfaf7); padding: 40px 0; border-bottom: 1px solid var(--color-border); }
.hero h1 { margin: 0 0 12px; font-size: 1.8rem; }
.hero p { margin: 0; color: var(--color-muted); }
.hero p br { content: ""; display: block; margin-top: 6px; }

.properties-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 40px 0; }
.property-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.property-card-thumb {
  height: 140px;
  background: repeating-linear-gradient(135deg, #f2ede1, #f2ede1 10px, #ece5d4 10px, #ece5d4 20px);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-border);
}
.thumb-icon { width: 40px; height: 40px; color: var(--color-primary); opacity: 0.7; }
.thumb-label { font-size: 0.78rem; color: var(--color-muted); letter-spacing: 0.05em; }
.property-card-thumb--photo { padding: 0; background: none; }
.property-card-thumb--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.room-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; display: block; }
.property-hero-photo { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin: 14px 0; display: block; }
.property-card-body { padding: 18px 20px; }
.property-card-body h2 { margin: 0 0 6px; font-size: 1.15rem; }
.price-range { font-weight: 600; color: var(--color-primary-dark); margin: 10px 0; }
.muted { color: var(--color-muted); }
.small { font-size: 0.85rem; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; font-size: 0.92rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn-small { padding: 6px 14px; font-size: 0.82rem; }

.flow-section { margin: 56px 0; }
.flow-list { list-style: none; counter-reset: flow; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.flow-list li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; }

.site-footer { background: #2b2924; color: #d8d3c7; padding: 32px 0; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; }
.footer-brand { font-weight: 700; margin: 0 0 4px; color: #fff; }
.footer-note, .footer-contact p { margin: 2px 0; }

.property-detail h1 { margin: 6px 0 4px; }
.breadcrumb { font-size: 0.85rem; color: var(--color-muted); margin: 20px 0 10px; }
.description { max-width: 840px; word-break: keep-all; overflow-wrap: break-word; }
.access-text { margin: 4px 0 12px; }
.map-embed { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.map-embed iframe { display: block; }

.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; margin: 24px 0 60px; }
.room-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.room-meta { list-style: none; padding: 0; margin: 10px 0; color: var(--color-muted); font-size: 0.9rem; }
.room-meta li { margin: 2px 0; }
.room-meta li.highlight { color: var(--color-success); font-weight: 700; }
.amenities { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.amenity-tag { background: #f2ede1; color: var(--color-primary-dark); border-radius: 999px; padding: 3px 10px; font-size: 0.78rem; }

.reserve-page h1 { margin-bottom: 4px; }
.reserve-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin: 28px 0 60px; align-items: start; }
@media (max-width: 860px) { .reserve-grid { grid-template-columns: 1fr; } }

.calendar-panel, .form-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cal-more-btn { display: block; margin: 16px auto 0; }

.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.cal-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cal-table caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
.cal-table th { color: var(--color-muted); font-weight: 500; padding: 4px 0; }
.cal-table td { padding: 2px; text-align: center; }
.cal-day { width: 34px; height: 34px; border-radius: 50%; border: none; background: transparent; cursor: pointer; font-size: 0.85rem; }
.cal-day--available:hover { background: #f2ede1; }
.cal-day--past { color: #cfcabf; cursor: not-allowed; }
.cal-day--blocked { color: #cfcabf; text-decoration: line-through; cursor: not-allowed; background: #f4f1ea; }
.cal-day--selected { background: var(--color-primary); color: #fff; }
.cal-day--in-range { background: #ecdfc4; }

.legend { display: flex; gap: 16px; margin-top: 12px; font-size: 0.8rem; color: var(--color-muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.dot-available { background: #f2ede1; border: 1px solid var(--color-border); }
.dot-selected { background: var(--color-primary); }
.dot-blocked { background: #cfcabf; }

.field-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.field-row label { font-size: 0.85rem; color: var(--color-muted); }
.field-row input, .field-row select, .field-row textarea {
  padding: 9px 12px; border: 1px solid var(--color-border); border-radius: 6px; font-size: 0.92rem; font-family: inherit;
}
.form-message { min-height: 1.4em; font-size: 0.88rem; }
.form-message--error { color: var(--color-danger); }
.form-message--success { color: var(--color-success); }

.login-page { max-width: 380px; padding: 60px 20px; }
.login-form .btn { width: 100%; text-align: center; }

.admin-page { padding: 30px 20px 60px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--color-surface); font-size: 0.85rem; }
.admin-table th, .admin-table td { border: 1px solid var(--color-border); padding: 8px 10px; vertical-align: top; }
.admin-table th { background: #f2ede1; text-align: left; }
.admin-note { width: 140px; font-family: inherit; font-size: 0.82rem; }
.msg-cell { max-width: 180px; white-space: pre-wrap; }
.status-legend { margin-top: 12px; }
