/* イヌマチ style.css — 緑 #2F6B45 × ハニー #E9A13B × 紙 #F6F4EC */
:root {
  --green: #2F6B45;
  --green-dark: #245235;
  --honey: #E9A13B;
  --paper: #F6F4EC;
  --ink: #37352F;
  --line: #E2DDCE;
  --white: #FFFFFF;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7;
}
h1, h2, h3, .logo { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; }
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .8rem; color: #8b8574; }

.config-warn { background: #b3261e; color: #fff; text-align: center; padding: 8px; font-size: .85rem; }

/* header */
#site-header { background: var(--green); position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo { color: #fff; font-size: 1.35rem; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.logo-sub { font-size: .72rem; font-weight: 400; color: #d8e6dd; }
.gnav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.gnav a { color: #fff; font-size: .82rem; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.gnav a:hover { background: var(--green-dark); }

/* hero */
.hero { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; padding: 44px 0 88px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); margin: 0 0 8px; }
.hero p { color: #d8e6dd; margin: 0; }
.hero .paw-bg { position: absolute; right: -20px; bottom: -30px; font-size: 11rem; opacity: .12; transform: rotate(-15deg); pointer-events: none; }

/* search panel */
.search-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(47,107,69,.12); padding: 20px; margin-top: -60px; position: relative; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.search-tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 16px; font-size: .9rem; cursor: pointer; font-family: inherit; }
.search-tabs button.active { background: var(--honey); border-color: var(--honey); color: #fff; font-weight: 700; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
select, .btn { font-family: inherit; font-size: .95rem; }
select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 160px; }
.btn { display: inline-block; background: var(--honey); color: #fff; font-weight: 700; border: none; border-radius: 10px; padding: 10px 22px; cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn-green { background: var(--green); }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 28px 0; }
.cat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(47,107,69,.15); }
.cat-card .emoji { font-size: 2rem; display: block; }
.cat-card .name { font-weight: 700; color: var(--ink); }
.cat-card .cnt { font-size: .78rem; color: #8b8574; }

section.block { margin: 36px 0; }
section.block > h2 { font-size: 1.25rem; border-left: 6px solid var(--honey); padding-left: 10px; margin-bottom: 14px; }

/* facility cards (search results) */
.fac-list { display: grid; gap: 12px; }
.fac-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; position: relative; }
.fac-card.paid { border: 2px solid var(--honey); background: #fffdf6; }
.badge-paid { background: var(--honey); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; display: inline-block; }
.fac-thumb { width: 74px; height: 74px; border-radius: 12px; background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; flex-shrink: 0; }
.fac-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.fac-meta { font-size: .82rem; color: #6f6a5c; }
.fac-cat-tag { font-size: .72rem; background: var(--green); color: #fff; border-radius: 6px; padding: 1px 8px; margin-right: 6px; }

/* paw rating */
.paws { position: relative; display: inline-block; font-size: .95rem; letter-spacing: 2px; filter: grayscale(0); }
.paws-bg { opacity: .22; }
.paws-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.paws-num { font-size: .85rem; font-weight: 700; color: var(--honey); margin-left: 6px; }

/* facility detail */
.detail-head { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.detail-head h1 { margin: 6px 0; font-size: 1.5rem; }
.detail-head.paid { border: 2px solid var(--honey); }
.info-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
.info-table th { text-align: left; width: 8.5em; color: #6f6a5c; font-weight: 500; padding: 8px 6px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.info-table td { padding: 8px 6px; border-bottom: 1px dashed var(--line); }
.banner-area img { border-radius: 10px; margin-top: 12px; }
.campaign { background: #fff6e5; border: 1px dashed var(--honey); border-radius: 10px; padding: 12px; margin-top: 12px; font-size: .92rem; }
#detail-map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); margin-top: 16px; }
.axes-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.axes-list span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .8rem; }

/* nearby marquee */
.near-section { margin: 26px 0; }
.near-section h2 { font-size: 1.1rem; border-left: 6px solid var(--green); padding-left: 10px; }
.mq { overflow: hidden; position: relative; padding: 6px 0; }
.mq-track { display: flex; gap: 12px; width: max-content; }
.mq-anim .mq-track { animation: mq-slide linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-anim .mq-track { animation: none; } .mq { overflow-x: auto; } }
.mq-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 230px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.mq-card.mq-paid { border: 2px solid var(--honey); background: #fffdf6; }
.mq-name { font-weight: 700; color: var(--ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-station { font-size: .78rem; color: var(--green); }
.mq-addr { font-size: .74rem; color: #8b8574; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* map page */
#map-full { height: 70vh; border-radius: var(--radius); border: 1px solid var(--line); }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.map-filters label { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .85rem; cursor: pointer; }
.map-filters input { accent-color: var(--green); }

/* filters on search page */
.filter-bar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 18px 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 14px; font-size: .85rem; cursor: pointer; font-family: inherit; }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.toggle-dogmenu { background: #fff6e5; border: 1px solid var(--honey); border-radius: 999px; padding: 5px 14px; font-size: .85rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }

/* footer */
#site-footer { background: var(--green); color: #d8e6dd; margin-top: 48px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 26px 16px; font-size: .85rem; }
.footer-links a { color: #fff; }

.loading { text-align: center; padding: 40px; color: #8b8574; }
.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: #8b8574; }

@media (max-width: 640px) {
  .gnav { display: none; }
  .fac-thumb { width: 56px; height: 56px; font-size: 1.4rem; }
  .search-panel { margin-top: -48px; }
}
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }
