/* 出張して頑張るあなたへ — mobile-first, warm editorial */
:root {
  --bg: #f3ece1;
  --bg-deep: #e8ddd0;
  --paper: #fffaf3;
  --ink: #2b241c;
  --ink-soft: #53493f;
  --muted: #7a7066;
  --line: #e2d6c6;
  --line-strong: #cbbba6;
  --accent: #b04a28;
  --accent-hover: #8e3a1e;
  --accent-soft: #f4e0d6;
  --gold: #c4a27a;
  --sage: #5d6b4e;
  --sage-soft: #e7eee0;
  --hotel: #5c4a7a;
  --hotel-soft: #eee8f4;
  --app: #2f5f6b;
  --app-soft: #e3eef0;
  --shadow: 0 10px 28px rgba(43, 36, 28, 0.07);
  --radius: 16px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Hiragino Mincho", serif;
  --max-read: 42rem;
  --max: 70rem;
  --gutter: 1.25rem;
  --header-h: 3.75rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(196, 162, 122, 0.22), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(176, 74, 40, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.45;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

p { text-wrap: pretty; overflow-wrap: anywhere; }

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 40;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-120%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, white 14%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: inherit; }

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6e7c8 0%, #e8c48a 60%, #c9844a 100%);
  box-shadow: inset 0 0 0 1px rgba(176, 74, 40, 0.18), 0 4px 10px rgba(43, 36, 28, 0.12);
  display: grid;
  place-items: center;
}
.brand-mark svg { display: block; }

.brand-name {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0 1rem;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.4rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

#nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
#nav-toggle:focus + .nav-toggle { outline: 3px solid var(--accent); outline-offset: 3px; }
#nav-toggle:checked ~ .nav { display: flex; }

@media (min-width: 840px) {
  .nav-toggle { display: none; }
  .header-inner { display: grid; grid-template-columns: auto 1fr; }
  .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.2rem 0.4rem;
    padding: 0;
  }
  .nav a { padding: 0.2rem 0.7rem; font-size: 0.92rem; }
}

/* Hero */
.hero {
  padding: 2.2rem 0 1.6rem;
}
.hero-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5.6vw, 2.7rem);
  letter-spacing: 0.03em;
}
.hero-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fffaf3;
}
.btn-primary:hover { background: var(--accent-hover); color: #fffaf3; }
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
main { flex: 1; }
.section { padding: 1.4rem 0 2.4rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}
.section-head a {
  flex: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}
.section-head a:hover { color: var(--accent); }

/* Cards */
.post-list {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .post-list.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.post-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: inherit;
}
.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 1.12rem;
}
.post-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bg-deep);
  color: var(--ink-soft);
}
.badge-goods { background: var(--sage-soft); color: var(--sage); }
.badge-hotel { background: var(--hotel-soft); color: var(--hotel); }
.badge-app { background: var(--app-soft); color: var(--app); }

/* Article */
.page-head {
  padding: 2rem 0 0.4rem;
  max-width: var(--max-read);
}
.page-head h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
}
.lede {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
}

.article-wrap,
.prose-wrap {
  max-width: var(--max-read);
  padding-bottom: 3rem;
}

.article-body,
.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.6rem;
  box-shadow: var(--shadow);
}
.article-body h2,
.prose h2 {
  margin: 2rem 0 0.7rem;
  padding-top: 0.4rem;
  font-size: 1.28rem;
  border-top: 1px solid var(--line);
}
.article-body h2:first-child,
.prose h2:first-child { border-top: 0; margin-top: 0; }
.article-body h3,
.prose h3 { font-size: 1.08rem; margin: 1.4rem 0 0.5rem; }
.article-body p,
.prose p { margin: 0.85rem 0; }
.article-body ul,
.article-body ol,
.prose ul,
.prose ol { margin: 0.6rem 0 1rem; padding-left: 1.3rem; }
.article-body li,
.prose li { margin: 0.25rem 0; }
.article-body strong { font-weight: 700; }

.source-note {
  margin-top: 1.6rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Pref grid */
.pref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (min-width: 720px) {
  .pref-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .pref-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.pref-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0.55rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.pref-card:hover { border-color: var(--accent); color: inherit; }
.pref-card.has-posts {
  border-color: color-mix(in srgb, var(--hotel) 35%, var(--line));
  background: var(--paper);
}
.pref-card .pref-name { font-weight: 700; font-size: 0.92rem; }
.pref-card .pref-count {
  font-size: 0.74rem;
  color: var(--muted);
}
.pref-card.empty {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.region-label {
  margin: 1.6rem 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

/* App cards */
.app-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}
.app-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.app-card h2 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.app-card ul { margin: 0.4rem 0 1rem; padding-left: 1.2rem; }

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #2b241c;
  color: #efe6d8;
  padding: 2rem 0 1.6rem;
}
.site-footer a { color: #f0c9b2; }
.footer-inner {
  display: grid;
  gap: 1rem;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}
.footer-links a { color: #efe6d8; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: #f0c9b2; }
.copyright {
  margin: 0.6rem 0 0;
  color: #c4b8aa;
  font-size: 0.85rem;
}

.empty {
  padding: 1.2rem;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.crumb {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }

@media (min-width: 720px) {
  :root { --gutter: 2rem; }
  .hero { padding-top: 3rem; }
  .article-body,
  .prose { padding: 2rem 2.1rem 2.2rem; }
}
