:root {
  --ink: #292523;
  --muted: #77716d;
  --line: #e9e5e2;
  --paper: #fff;
  --soft: #faf8f6;
  --brick: #a34732;
  --brick-dark: #843724;
  --green: #687d68;
  --shadow: 0 12px 32px rgba(48, 36, 30, .09);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.topbar { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid #eeeae7; backdrop-filter: blur(12px); }
.top-inner, .container, .footer-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.top-inner { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--brick-dark); font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f5e9e3; font-size: 19px; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 13px; }
.nav a:hover, .text-link:hover { color: var(--brick); }
.header-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; }
.button, .header-actions button, .header-actions a.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; background: var(--brick); color: #fff; padding: 11px 17px; font-weight: 700; transition: .18s ease; }
.button:hover, .header-actions button:hover, .header-actions a.button:hover { background: var(--brick-dark); transform: translateY(-1px); }
.button.secondary { border: 1px solid #dfc5bb; background: #fff; color: var(--brick-dark); }
.button.ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.button.small { padding: 8px 12px; font-size: 12px; }
.header-actions .login { border: 0; background: none; color: var(--ink); padding: 8px; }
.header-actions form { margin: 0; }
.mobile-menu { display: none; border: 0; background: none; color: var(--ink); font-size: 24px; }
main { min-height: 72vh; }
.container { padding: 36px 0 72px; }
.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 410px; overflow: hidden; padding: 52px 7%; border-radius: 16px; background: var(--soft); }
.hero-copy { position: relative; z-index: 1; max-width: 520px; }
.hero-photo { position: absolute; inset: 0 0 0 52%; background-image: linear-gradient(90deg, rgba(42,27,19,.08), transparent 38%), url("https://images.unsplash.com/photo-1554118811-1e0d58224f24?auto=format&fit=crop&w=1400&q=85"); background-position: center; background-size: cover; background-repeat: no-repeat; }
.eyebrow { color: var(--brick); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 12px 0 15px; font-size: clamp(32px, 4vw, 48px); line-height: 1.4; letter-spacing: -.03em; }
h2 { font-size: 24px; letter-spacing: -.02em; }
h3 { font-size: 16px; }
.hero p { color: #625a55; line-height: 1.9; }
.hero-actions, .form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.search-panel { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 12px; margin: -25px 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.field label { display: block; margin: 0 0 7px; color: #625a55; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #dedad6; border-radius: 7px; background: #fff; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brick); box-shadow: 0 0 0 3px #a347321c; }
textarea { min-height: 150px; resize: vertical; }
.section { margin-top: 52px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.text-link { color: var(--brick); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .panel, .form-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.card { transition: .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-image { display: block; width: 100%; height: 205px; object-fit: cover; background: #f3efec; }
.card-body { padding: 16px; }
.card-body h3 { margin: 9px 0; }
.card-body p { margin-bottom: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #f5eae5; color: var(--brick-dark); font-size: 11px; font-weight: 700; }
.rating { color: #a65c31; font-weight: 700; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #f0ece9; }
.filters { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.filters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.filter-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.result-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 14px; }
.pagination { display: flex; justify-content: center; margin-top: 28px; }
.pagination nav { display: flex; gap: 7px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; }
.pagination [aria-current="page"] span { background: var(--brick); color: #fff; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.detail-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: 14px; }
.info-list { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); font-size: 13px; }
.info-list dt, .info-list dd { margin: 0; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 9px; background: #faf4f1; color: #6b534a; font-size: 13px; line-height: 1.7; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.post-main, .panel, .form-card { padding: 22px; }
.post-body { white-space: pre-wrap; line-height: 2; }
.post-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.post-gallery img { width: 100%; height: 230px; object-fit: cover; border-radius: 10px; }
.comment { padding: 15px 0; border-bottom: 1px solid var(--line); }
.comment p { margin: 8px 0 0; line-height: 1.7; }
.form-card { max-width: 720px; margin: 0 auto; }
.form-card .field { margin-top: 16px; }
.checkline { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 13px; }
.checkline input { width: auto; }
.message { margin: 16px auto; padding: 12px 16px; border-radius: 9px; background: #edf4ec; color: #36573b; }
.message.error { background: #fbefed; color: #8c3026; }
.errors { color: #9a3025; font-size: 12px; }
.auth-wrap { max-width: 480px; margin: 20px auto; }
.auth-wrap .form-card { padding: 30px; }
.avatar { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; background: #f1ded0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 11px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 6px; font-size: 26px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--soft); color: var(--muted); font-size: 11px; }
.footer { padding: 32px 0; background: var(--soft); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.empty { padding: 35px 20px; border: 1px dashed #ded4cf; border-radius: 12px; color: var(--muted); text-align: center; }
.map-unavailable { min-height: 240px; display: grid; place-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: repeating-linear-gradient(45deg, #f8f6f3, #f8f6f3 14px, #fff 14px, #fff 28px); color: var(--muted); text-align: center; }
.nearby-page { width: min(1680px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 42px; }
.nearby-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.nearby-heading h1 { margin: 3px 0 0; font-size: clamp(28px, 3vw, 36px); }
.nearby-heading p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.nearby-workspace { display: grid; grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.nearby-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 106px); overflow-y: auto; padding-right: 3px; }
.nearby-sidebar .filters { margin: 0; padding: 16px; }
.nearby-sidebar .filters h2 { margin: 0 0 14px; font-size: 17px; }
.nearby-sidebar .filters-grid { grid-template-columns: 1fr; gap: 10px; }
.nearby-search-button { width: 100%; margin-top: 14px; }
.nearby-search-area { display: grid; gap: 4px; margin-top: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; }
.nearby-search-area span { color: var(--brick-dark); font-weight: 700; }
.nearby-search-area small { color: var(--muted); line-height: 1.6; }
.nearby-results-panel { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.nearby-results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.nearby-results-head h2 { margin: 0; font-size: 17px; }
.nearby-results-head strong { color: var(--muted); font-size: 12px; }
.nearby-results { max-height: min(38vh, 360px); overflow-y: auto; }
.nearby-result { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 4px; text-align: left; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; }
.nearby-result.active { color: var(--brick-dark); background: #fbf5f0; }
.nearby-result:last-child { border-bottom: 0; }
.nearby-result-no { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #f2e4dc; color: var(--brick-dark); font-weight: 700; }
.nearby-result strong, .nearby-result small { display: block; }
.nearby-result small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.nearby-content { min-width: 0; }
.nearby-map-stage { position: relative; height: clamp(520px, calc(100vh - 190px), 820px); min-height: 520px; overflow: hidden; border: 1px solid #d6ded1; border-radius: 12px; background: #f5f5f5; }
.nearby-map-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.nearby-selected-list { position: absolute; z-index: 2; top: 16px; left: 16px; width: min(350px, calc(100% - 32px)); pointer-events: none; }
.nearby-selected { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid #e8e4e0; border-radius: 10px; background: #fff; box-shadow: 0 4px 18px #241b1633; pointer-events: auto; }
.nearby-selected[hidden] { display: none; }
.nearby-selected img { width: 92px; height: 112px; object-fit: cover; border-radius: 7px; }
.nearby-selected h2 { margin: 5px 0; font-size: 16px; }
.nearby-selected .meta { font-size: 11px; }
.nearby-selected .rating { margin: 6px 0; font-size: 12px; }
.nearby-pagination { margin-top: 12px; }
.nearby-pagination nav { flex-wrap: wrap; }
.nearby-map-caption { display: flex; justify-content: space-between; gap: 12px; padding: 9px 3px; color: var(--muted); font-size: 12px; }
.nearby-map-caption a { color: var(--brick-dark); white-space: nowrap; }
.nearby-map-note { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.nearby-empty { margin-top: 0; }
.nearby-map-empty { min-height: 520px; display: grid; place-items: center; }
@media (max-width: 900px) {
  .top-inner { gap: 14px; }
  .nav { gap: 12px; }
  .filters-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .top-inner, .container, .footer-inner { width: min(100% - 32px, 1180px); }
  .top-inner { min-height: 62px; justify-content: space-between; }
  .brand { font-size: 17px; }
  .nav { display: none; }
  .header-actions .login { display: none; }
  .header-actions .button { padding: 8px 11px; font-size: 12px; }
  .mobile-menu { display: block; }
  .nav.open { position: absolute; top: 61px; left: 0; right: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); background: #fff; }
  .container { padding: 25px 0 48px; }
  .hero { display: block; min-height: 470px; padding: 30px 22px; }
  .hero-photo { inset: auto 0 0; height: 190px; }
  .hero p { max-width: 95%; font-size: 13px; }
  h1 { font-size: 31px; }
  .search-panel { grid-template-columns: 1fr 1fr; margin: 14px 0 0; padding: 14px; }
  .search-panel .button { grid-column: 1 / -1; }
  .section { margin-top: 38px; }
  .section-head h2 { font-size: 20px; }
  .grid, .grid.two, .grid.four, .detail-grid, .post-layout { grid-template-columns: 1fr; }
  .nearby-page { width: min(100% - 32px, 1180px); padding-top: 20px; }
  .nearby-heading { display: block; }
  .nearby-heading p { margin-top: 7px; }
  .nearby-workspace { grid-template-columns: 1fr; }
  .nearby-content { order: -1; }
  .nearby-sidebar { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .nearby-sidebar .filters-grid { grid-template-columns: 1fr 1fr; }
  .nearby-results { max-height: 300px; }
  .nearby-map-stage { height: 58vh; min-height: 420px; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .filter-actions { align-items: flex-start; gap: 12px; }
  .post-gallery img { height: 180px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .nearby-sidebar .filters-grid { grid-template-columns: 1fr; }
  .nearby-map-stage { height: 62vh; min-height: 380px; }
  .nearby-selected { grid-template-columns: 72px minmax(0, 1fr); gap: 9px; padding: 9px; }
  .nearby-selected img { width: 72px; height: 96px; }
  .nearby-selected h2 { font-size: 14px; }
}
