/*
Theme Name: machi-biz
Theme URI: https://machi-biz.com
Description: 地域のビジネスポータルサイト「まちビズ」のWordPressテーマ
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Author: machi-biz
Author URI: https://machi-biz.com
Text Domain: machi-biz
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================
   CSS Variables
   ============================ */
:root {
  --mb-blue: #2563eb;
  --mb-blue-dark: #1d4ed8;
  --mb-blue-light: #eff6ff;
  --mb-blue-muted: #93c5fd;
  --mb-orange: #f59e0b;
  --mb-orange-light: #fffbeb;
  --mb-ink: #1e293b;
  --mb-ink-light: #475569;
  --mb-ink-muted: #94a3b8;
  --mb-bg: #fafbfc;
  --mb-bg-warm: #f8f7f4;
  --mb-white: #fff;
  --mb-border: #e2e8f0;
  --mb-border-light: #f1f5f9;
  --mb-radius: 12px;
  --mb-radius-sm: 8px;
  --mb-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --mb-shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --mb-shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --mb-max-w: 780px;
  --bs-font-sans-serif: 'Noto Sans JP', sans-serif;
  --bs-body-font-family: 'Noto Sans JP', sans-serif;
  --bs-body-font-size: 20px;
}

/* ============================
   Reset & Base
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--mb-ink);
  background: var(--mb-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
a { color: var(--mb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ============================
   Header
   ============================ */
.site-header {
  background: var(--mb-white);
  border-bottom: 1px solid var(--mb-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.site-logo:hover {
  text-decoration: none;
}
.site-logo-mark {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mb-blue);
  letter-spacing: -0.02em;
}
.site-logo-mark span { color: var(--mb-orange); }
.site-logo-sub {
  font-size: 0.8125rem;
  color: var(--mb-ink-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.header-nav {
  display: flex;
  gap: 24px;
}
.header-nav a {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--mb-ink-light);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}
.header-nav a:hover,
.header-nav-btn:hover {
  background: var(--mb-blue);
  color: var(--mb-white);
  text-decoration: none;
}

/* Hamburger Menu */
.hamburger-btn {
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: none;
  background: var(--mb-blue);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0 2px 0;
  cursor: pointer;
  transition: background 0.2s;
  gap: 5px;
  margin-left: auto;
  margin-right: -20px;
  z-index: 200;
}
.hamburger-label {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1;
}
@media (hover: hover) {
  .hamburger-btn:hover { background: var(--mb-blue-dark); }
}
.hamburger-btn:focus { background: var(--mb-blue); outline: none; }
.hamburger-btn:active { background: var(--mb-blue-dark); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--mb-white);
  z-index: 99;
  padding: 20px;
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mb-ink);
  border-bottom: 1px solid var(--mb-border);
  text-decoration: none;
}
.mobile-nav a:hover {
  color: var(--mb-blue);
  text-decoration: none;
}

/* ============================
   Breadcrumb
   ============================ */
.breadcrumb {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 0.75rem;
  color: var(--mb-ink-muted);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.breadcrumb a { color: var(--mb-ink-muted); white-space: nowrap; }
.breadcrumb a:hover { color: var(--mb-blue); }
.breadcrumb-sep { margin: 0 6px; flex-shrink: 0; }
.breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ============================
   Article Container
   ============================ */
.article {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ============================
   Article Header
   ============================ */
.article-header {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--mb-border);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.article-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--mb-white);
  background: var(--mb-blue);
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  display: inline-block;
}
.article-tag--area {
  background: transparent;
  color: var(--mb-blue);
  border: 1.5px solid var(--mb-blue);
}
.article-date {
  font-size: 1rem;
  color: var(--mb-ink-muted);
  margin-left: auto;
}
.article-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--mb-ink);
}
.article-lead {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--mb-ink-light);
  line-height: 1.8;
}

/* ============================
   TOC (Table of Contents)
   ============================ */
.toc {
  margin: 32px 0;
  background: var(--mb-bg-warm);
  border-radius: var(--mb-radius);
  padding: 24px 28px;
  border: 1px solid var(--mb-border);
}
.toc-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mb-ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-title::before {
  content: '\1F4D1';
  font-size: 14px;
}
.toc ol {
  list-style: decimal;
  padding-left: 20px;
}
.toc li {
  font-size: 0.875rem;
  color: var(--mb-ink-light);
  padding: 4px 0;
  line-height: 1.6;
}
.toc a { color: var(--mb-ink-light); }
.toc a:hover { color: var(--mb-blue); }

/* ============================
   Section Headings
   ============================ */
.section-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.375rem;
  font-weight: 900;
  color: var(--mb-ink);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mb-border);
  letter-spacing: -0.01em;
}
/* removed decorative ::after bar */
.section-num {
  color: var(--mb-blue);
  font-size: 1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.1em;
}

/* ============================
   Content Prose
   ============================ */
.prose { font-size: 1rem; color: var(--mb-ink-light); line-height: 1.9; }
.prose p { margin-bottom: 1.2em; }
.prose strong { color: var(--mb-ink); font-weight: 600; }

/* ============================
   Tips Box
   ============================ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.tip-card {
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
  padding: 20px 16px;
  text-align: left;
  transition: box-shadow 0.2s;
}
.tip-card:hover { box-shadow: var(--mb-shadow-md); }
.tip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--mb-blue);
  color: var(--mb-white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 10px;
}
.tip-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mb-ink);
  margin-bottom: 6px;
}
.tip-desc {
  font-size: 1rem;
  color: var(--mb-ink-muted);
  line-height: 1.6;
}

/* ============================
   Shop Count Banner
   ============================ */
.shop-count-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mb-blue-light);
  padding: 14px 20px;
  border-radius: var(--mb-radius-sm);
  margin: 32px 0 24px;
  border: 1px solid var(--mb-border);
}
.shop-count-num {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--mb-blue);
  line-height: 1;
}
.shop-count-text {
  font-size: 1rem;
  color: var(--mb-ink-light);
  font-weight: 500;
}

/* ============================
   Shop Card
   ============================ */
.shop-list { display: flex; flex-direction: column; gap: 16px; }

.shop-card {
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.shop-card:hover {
  box-shadow: var(--mb-shadow-lg);
  border-color: var(--mb-blue-muted);
}
.shop-card-inner {
  padding: 20px 24px;
}
.shop-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.shop-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--mb-ink);
  color: var(--mb-white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
}
.shop-rank--gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.shop-rank--silver { background: linear-gradient(135deg, #94a3b8, #64748b); }
.shop-rank--bronze { background: linear-gradient(135deg, #d97706, #b45309); }

.shop-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--mb-ink);
  flex: 1;
  line-height: 1.4;
}
.shop-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.shop-stars {
  color: var(--mb-orange);
  font-size: 1rem;
  letter-spacing: 1px;
}
.shop-score {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--mb-ink);
}
.shop-reviews {
  font-size: 1rem;
  color: var(--mb-ink-muted);
}

.shop-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-size: 1rem;
  color: var(--mb-ink-light);
}
.shop-info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.shop-info-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  opacity: 0.45;
}
.shop-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mb-border-light);
}
.shop-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.shop-link svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.shop-link--map {
  background: var(--mb-blue-light);
  color: var(--mb-blue);
}
.shop-link--map:hover { background: var(--mb-blue); color: var(--mb-white); text-decoration: none; }
.shop-link--web {
  background: var(--mb-border-light);
  color: var(--mb-ink-light);
}
.shop-link--web:hover { background: var(--mb-ink); color: var(--mb-white); text-decoration: none; }

/* ============================
   Price Table
   ============================ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
}
.price-table th {
  background: var(--mb-ink);
  color: var(--mb-white);
  font-weight: 600;
  padding: 10px 16px;
  text-align: left;
}
.price-table th:last-child { text-align: right; }
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--mb-border);
  color: var(--mb-ink-light);
  font-size: 1.0625rem;
}
.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--mb-ink);
}
.price-table tr:hover td { background: var(--mb-blue-light); }

/* ============================
   FAQ
   ============================ */
.faq-list { margin: 20px 0; }
.faq-item {
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--mb-white);
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mb-ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--mb-blue-light); }
.faq-q::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--mb-blue);
  color: var(--mb-white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.faq-q::after {
  content: '+';
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--mb-ink-muted);
  transition: transform 0.2s;
}
.faq-q.is-open::after { content: '\2212'; }
.faq-a {
  display: none;
  padding: 12px 20px 16px 56px;
  font-size: 1.0625rem;
  color: var(--mb-ink-light);
  line-height: 1.8;
  background: var(--mb-bg-warm);
  position: relative;
}
.faq-a::before {
  content: 'A';
  position: absolute;
  left: 20px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--mb-orange);
  color: var(--mb-white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
}
.faq-a.is-open { display: block; }

/* ============================
   Disclaimer
   ============================ */
.disclaimer {
  margin: 48px 0 0;
  padding: 20px 24px;
  background: var(--mb-bg-warm);
  border-radius: var(--mb-radius-sm);
  border: 1px solid var(--mb-border);
  font-size: 0.75rem;
  color: var(--mb-ink-muted);
  line-height: 1.8;
}
.disclaimer a { color: var(--mb-blue); }

/* ============================
   Footer
   ============================ */
.site-footer {
  background: var(--mb-ink);
  color: rgba(255,255,255,0.5);
  padding: 40px 20px 32px;
  margin-top: 60px;
  font-size: 0.8125rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.8);
}
.footer-logo span { color: var(--mb-orange); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.75rem; text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-copy { width: 100%; text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 8px; font-size: 0.6875rem; }

/* ============================
   Hero Section (Front Page)
   ============================ */
.hero {
  background: linear-gradient(135deg, var(--mb-blue) 0%, var(--mb-blue-dark) 100%);
  padding: 80px 20px 60px;
  text-align: center;
  color: var(--mb-white);
}
.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 32px;
}
.hero-search {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  background: var(--mb-white);
  border-radius: var(--mb-radius);
  overflow: hidden;
  box-shadow: var(--mb-shadow-lg);
}
.hero-search-input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--mb-ink);
  outline: none;
}
.hero-search-input::placeholder {
  color: var(--mb-ink-muted);
}
.hero-search-btn {
  background: var(--mb-orange);
  color: var(--mb-white);
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.2s;
}
.hero-search-btn:hover {
  background: #e08e00;
}

/* ============================
   Section Title (Front Page)
   ============================ */
.section-title-block {
  text-align: center;
  margin: 60px 0 32px;
}
.section-title-block h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mb-ink);
  letter-spacing: -0.01em;
}
.section-title-block p {
  font-size: 1rem;
  color: var(--mb-ink-muted);
  margin-top: 8px;
}

/* ============================
   Area / Category Grid (Front Page)
   ============================ */
.grid-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.area-grid,
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.area-card,
.cat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
  padding: 12px 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mb-ink);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.area-card:hover,
.cat-card:hover {
  box-shadow: var(--mb-shadow-md);
  border-color: var(--mb-blue-muted);
  color: var(--mb-blue);
  text-decoration: none;
}

/* ============================
   Latest Articles (Front Page)
   ============================ */
.latest-articles {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: var(--mb-ink);
}
.article-card:hover {
  box-shadow: var(--mb-shadow-lg);
  border-color: var(--mb-blue-muted);
  text-decoration: none;
}
.article-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--mb-border-light);
}
.article-card-body {
  padding: 16px 20px;
}
.article-card-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--mb-ink);
}
.article-card-date {
  font-size: 1rem;
  color: var(--mb-ink-muted);
  margin-top: 8px;
}

/* ============================
   Archive Shop
   ============================ */
.archive-header {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 32px 20px 20px;
}
.archive-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mb-ink);
}
.archive-desc {
  font-size: 1.0625rem;
  color: var(--mb-ink-light);
  margin-top: 8px;
}
.archive-filters {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--mb-ink-light);
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  text-decoration: none;
  transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--mb-blue);
  color: var(--mb-white);
  border-color: var(--mb-blue);
  text-decoration: none;
}
.archive-shop-list {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ============================
   Single Shop
   ============================ */
.single-shop-header {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 32px 20px 20px;
}
.single-shop-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 900;
  color: var(--mb-ink);
}
.single-shop-meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.single-shop-content {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ============================
   Page
   ============================ */
.page-header {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 32px 20px 20px;
}
.page-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mb-ink);
}
.page-content {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ============================
   404
   ============================ */
.not-found {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}
.not-found-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--mb-blue);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found-text {
  font-size: 1rem;
  color: var(--mb-ink-light);
  margin-bottom: 32px;
}
.not-found-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mb-blue);
  color: var(--mb-white);
  padding: 12px 24px;
  border-radius: var(--mb-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.not-found-link:hover {
  background: var(--mb-blue-dark);
  text-decoration: none;
}

/* ============================
   Pagination
   ============================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--mb-border);
  color: var(--mb-ink-light);
  background: var(--mb-white);
  transition: all 0.15s;
}
.pagination a:hover {
  background: var(--mb-blue);
  color: var(--mb-white);
  border-color: var(--mb-blue);
  text-decoration: none;
}
.pagination .current {
  background: var(--mb-blue);
  color: var(--mb-white);
  border-color: var(--mb-blue);
}

/* ============================
   Buttons (adapted from three9studio pattern)
   ============================ */
.btn-mb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-mb::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  transition: transform 0.2s;
}
.btn-mb:hover::after { transform: rotate(45deg) translateX(2px) translateY(-2px); }
.btn-mb:hover { text-decoration: none; }
.btn-mb-primary { background: var(--mb-blue); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.btn-mb-primary:hover { background: var(--mb-blue-dark); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transform: translateY(-2px); }
.btn-mb-outline { background: transparent; color: var(--mb-blue); border: 1.5px solid var(--mb-blue); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.btn-mb-outline:hover { background: var(--mb-blue-light); color: var(--mb-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.12); transform: translateY(-2px); }
.btn-mb-white { background: #fff; color: var(--mb-ink); border: 1.5px solid var(--mb-border); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.btn-mb-white:hover { border-color: var(--mb-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.12); color: var(--mb-blue); transform: translateY(-2px); }
.btn-mb-lg { font-size: 18px; padding: 13px 36px 15px; }

/* ============================
   Animations
   ============================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   Responsive
   ============================ */
/* PC: 1200px+ → body 20px (default) */
@media (min-width: 1200px) {
  body { font-size: 20px; }
}

/* Tablet: 768-992px */
@media (max-width: 992px) {
  body { font-size: 18px; --bs-body-font-size: 18px; }
  .hero { padding: 60px 20px 48px; }
  .articles-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .article-title { font-size: 1.5rem; }
  .section-heading { font-size: 1.2rem; }
  .article { padding: 0 16px 48px; }
}

/* Small tablet / large phone: 576-768px */
@media (max-width: 768px) {
  body { font-size: 17px; --bs-body-font-size: 17px; }
  .header-nav { display: none; }
  .hamburger-btn { display: flex; }
  .area-grid,
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .articles-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.375rem; }
  h2 { font-size: 1.2rem; }
  .shop-card-inner { padding: 18px; }
  .price-table { font-size: 0.9375rem; }
}

/* Phone: 576px- */
@media (max-width: 576px) {
  body { font-size: 16px; --bs-body-font-size: 16px; }
  .site-logo-sub { display: none; }
  .tips-grid { grid-template-columns: 1fr; }
  .shop-card-inner { padding: 14px; }
  .shop-card-top { flex-wrap: wrap; }
  .shop-rating { margin-top: 4px; }
  .shop-links { flex-wrap: wrap; }
  .article-header { padding: 20px 0 16px; }
  .article-title { font-size: 1.25rem; }
  .section-heading { font-size: 1.1rem; margin-top: 36px; }
  .hero { padding: 40px 16px 32px; text-align: left; }
  .hero-title { font-size: 1.3rem; }
  .hero-search { flex-direction: column; border-radius: var(--mb-radius-sm); }
  .hero-search-btn { padding: 12px; }
  .toc { padding: 16px; }
  .breadcrumb { padding: 10px 16px; font-size: 0.75rem; }
  .prose { font-size: 0.9375rem; }
  .faq-q { font-size: 0.9375rem; padding: 14px 16px; }
  .faq-a { font-size: 0.875rem; padding: 10px 16px 14px 48px; }
  .price-table { font-size: 0.875rem; }
  .price-table th, .price-table td { padding: 10px 12px; }
  .disclaimer { font-size: 0.75rem; padding: 16px; }
  .shop-name { font-size: 1rem; }
  .shop-info { font-size: 0.875rem; }
  .shop-link { font-size: 0.8125rem; padding: 7px 12px; }
}

/* ===== Drawer Nav ===== */
.drawer-nav {
  display: flex;
  flex-direction: column;
}
.drawer-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mb-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--mb-border-light);
}
.drawer-nav a:hover {
  color: var(--mb-blue);
}
.offcanvas .btn-close {
  width: 36px;
  height: 36px;
  border: 2px solid var(--mb-border);
  border-radius: 50%;
  opacity: 0.6;
  padding: 0;
  background-size: 10px;
}

/* Header nav buttons (pill) */
.header-nav a,
.header-nav-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mb-ink-light);
  text-decoration: none;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--mb-blue-light);
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
}
.header-nav-btn:hover {
  background: var(--mb-blue);
  color: var(--mb-white);
  text-decoration: none;
}

/* Pill shape for tags and badges */
/* article-tag pill already set above */
.shop-link { border-radius: 100px; }

/* Area grid: nearby */
.area-grid--nearby {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mb-ink);
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  padding: 8px 16px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
}
.area-chip:hover { border-color: var(--mb-blue); color: var(--mb-blue); text-decoration: none; }
.area-chip--lg { font-size: 1rem; padding: 10px 20px; }

/* Area grid: all (regional grouping) */
.area-grid--all {
  margin-top: 16px;
}
.area-region {
  margin-bottom: 16px;
}
.area-region-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mb-ink-light);
  margin-bottom: 8px;
}
.area-region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Show all areas button */
.btn-more-areas {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--mb-blue-light);
  border: 1px solid var(--mb-blue-muted);
  color: var(--mb-blue);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-more-areas:hover { background: var(--mb-blue-muted); border-color: var(--mb-blue); color: var(--mb-white); }

/* Category grid with emoji */
.cat-card {
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px;
  border-radius: var(--mb-radius-sm);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.cat-emoji { font-size: 1.3rem; }
.cat-emoji { font-size: 1.1rem; }

/* Latest articles as list */
.latest-list {
  max-width: var(--mb-max-w);
  margin: 0 auto;
}
.latest-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mb-border-light);
  text-decoration: none;
  color: var(--mb-ink);
  transition: color 0.2s;
}
.latest-item:hover { color: var(--mb-blue); text-decoration: none; }
.latest-item time {
  font-size: 0.75rem;
  color: var(--mb-ink-muted);
  flex-shrink: 0;
  width: 70px;
}
.latest-title {
  font-size: 0.9375rem;
  font-weight: 500;
}
@media (max-width: 576px) {
  .latest-item { flex-wrap: wrap; gap: 2px 8px; }
  .latest-item time { width: auto; }
  .latest-title { flex-basis: 100%; font-size: 0.875rem; }
  .area-chip--lg { font-size: 0.875rem; padding: 8px 14px; }
}

/* ============================
   Contact Form 7 Styles
   ============================ */
.wpcf7 {
  max-width: 640px;
  margin: 0 auto;
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  padding: 36px 32px 32px;
  box-shadow: var(--mb-shadow);
}
.cf7-form-group {
  margin-bottom: 28px;
}
.cf7-form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mb-ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.cf7-required {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
  font-size: 0.9375rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--mb-ink);
  background: var(--mb-bg);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--mb-ink-muted);
  font-size: 0.875rem;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--mb-blue);
  background: var(--mb-white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 1px 2px rgba(0,0,0,0.04);
}
.wpcf7 textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}
.wpcf7 select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.cf7-submit-wrap {
  text-align: center;
  margin-top: 36px;
  padding-top: 8px;
}
.cf7-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--mb-blue), var(--mb-blue-dark));
  color: var(--mb-white) !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 56px;
  border: none;
  border-radius: var(--mb-radius);
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: box-shadow 0.25s, transform 0.15s, background 0.2s;
}
.cf7-submit-btn:hover {
  background: linear-gradient(135deg, var(--mb-blue-dark), #1e3a8a);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}
.cf7-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}
.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: var(--mb-radius-sm) !important;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
  background: #f0fdf4;
  border-color: #86efac !important;
  color: #166534;
}
.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output {
  background: #fef2f2;
  border-color: #fca5a5 !important;
  color: #991b1b;
}
.wpcf7 .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 6px;
  font-weight: 500;
}
.wpcf7-spinner {
  display: none !important;
}

/* Contact page specific */
.page-content h2:first-child,
.page-content .wp-block-heading:first-child {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--mb-ink);
  margin-bottom: 12px;
}
.page-content > p:first-of-type {
  color: var(--mb-ink-light);
  line-height: 1.8;
  margin-bottom: 28px;
}
.page-content h3,
.page-content .wp-block-heading[class*="h3"] {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mb-ink);
  margin: 40px 0 14px;
  padding: 10px 14px;
  background: var(--mb-blue-light);
  border-left: 4px solid var(--mb-blue);
  border-radius: 0 var(--mb-radius-sm) var(--mb-radius-sm) 0;
}
.page-content h4,
.page-content .wp-block-heading[class*="h4"] {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mb-ink);
  margin: 24px 0 10px;
}
.page-content ol {
  padding-left: 0;
  margin-bottom: 20px;
  counter-reset: step-counter;
  list-style: none;
}
.page-content ol li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--mb-ink-light);
  font-size: 0.9375rem;
  padding-left: 36px;
  position: relative;
  counter-increment: step-counter;
}
.page-content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  background: var(--mb-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-content hr,
.page-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--mb-border);
  margin: 44px 0;
}
.page-content > p:last-child {
  font-size: 0.875rem;
  color: var(--mb-ink-muted);
}

@media (max-width: 576px) {
  .wpcf7 {
    padding: 24px 18px 20px;
    border-radius: var(--mb-radius-sm);
  }
  .cf7-form-group {
    margin-bottom: 22px;
  }
  .cf7-submit-btn {
    width: 100%;
    padding: 15px 24px;
  }
  .page-content h3 {
    font-size: 1rem;
    padding: 8px 12px;
  }
}

/* Responsive cat-card */
@media (min-width: 769px) {
  .cat-card {
    padding: 14px 12px;
    font-size: 0.9375rem;
    gap: 4px;
  }
  .cat-emoji { font-size: 1.5rem; }
}

/* ============================
   Shop Detail Row (single-shop)
   ============================ */
/* Shop detail info table */
.shop-detail {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.shop-detail-info {
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
  overflow: hidden;
  margin: 20px 0;
}
.shop-detail-row {
  display: flex;
  border-bottom: 1px solid var(--mb-border-light);
  font-size: 0.875rem;
}
.shop-detail-row:last-child { border-bottom: none; }
.shop-detail-label {
  flex-shrink: 0;
  width: 100px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--mb-ink);
  background: var(--mb-bg-warm);
  border-right: 1px solid var(--mb-border-light);
}
.shop-detail-row span:not(.shop-detail-label),
.shop-detail-row a {
  padding: 12px 16px;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}
@media (max-width: 576px) {
  .shop-detail-row { flex-direction: column; }
  .shop-detail-label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--mb-border-light);
    padding: 8px 12px;
  }
  .shop-detail-row span:not(.shop-detail-label),
  .shop-detail-row a { padding: 8px 12px; }
}

/* ============================
   Area Archive Description
   ============================ */
.archive-area-desc {
  max-width: var(--mb-max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Search filter active tab */
.area-chip--active {
  background: var(--mb-blue);
  color: var(--mb-white);
  border-color: var(--mb-blue);
}
.area-chip--active:hover {
  color: var(--mb-white);
}

/* Taxonomy archive card grid */
.taxonomy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.taxonomy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
  padding: 10px 14px;
  text-decoration: none;
  color: var(--mb-ink);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.taxonomy-card-body { flex: 1; min-width: 0; }
.taxonomy-card-arrow { color: var(--mb-ink-muted); flex-shrink: 0; margin-left: 8px; }
.taxonomy-card:hover {
  box-shadow: var(--mb-shadow-md);
  border-color: var(--mb-blue-muted);
  color: var(--mb-ink);
  text-decoration: none;
}
.taxonomy-card-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.taxonomy-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.taxonomy-card-date {
  font-size: 0.6875rem;
  color: var(--mb-ink-muted);
}
@media (max-width: 576px) {
  .taxonomy-card-grid { grid-template-columns: 1fr; }
}

/* Region tabs */
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.region-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--mb-border);
  background: var(--mb-white);
  color: var(--mb-ink);
  cursor: pointer;
  transition: all 0.2s;
}
.region-tab:hover { border-color: var(--mb-blue); color: var(--mb-blue); }
.region-tab.is-active {
  background: var(--mb-blue);
  color: var(--mb-white);
  border-color: var(--mb-blue);
}

/* City grid */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--mb-white);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-sm);
  text-decoration: none;
  color: var(--mb-ink);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.city-card:hover {
  border-color: var(--mb-blue);
  color: var(--mb-blue);
  text-decoration: none;
  box-shadow: var(--mb-shadow);
}
.city-arrow { color: var(--mb-ink-muted); flex-shrink: 0; }
.city-card:hover .city-arrow { color: var(--mb-blue); }

.region-group { margin-bottom: 20px; }
.region-group:last-child { margin-bottom: 0; }

@media (max-width: 576px) {
  .city-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .city-card { font-size: 0.8125rem; padding: 8px 10px; }
  .region-tab { font-size: 0.75rem; padding: 6px 12px; }
}

/* Show more button */
.btn-show-more {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mb-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.btn-show-more:hover { opacity: 0.7; }
