:root {
  --brand: #52c41a;
  --brand-hover: #43a914;
  --brand-dark: #118c36;
  --brand-soft: #eaf8e6;
  --brand-pale: #f4fbf1;
  --ink: #111;
  --muted: #5f665c;
  --paper: #fafaf6;
  --card: #fff;
  --line: #e5e7df;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 24px;
  --shadow: 0 22px 70px rgba(17, 17, 17, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(24px, 4vw, 56px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand img { width: 172px; height: 64px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-weight: 800; }
.nav a { position: relative; color: var(--ink); }
.nav a.active, .nav a:hover { color: var(--brand-dark); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateX(-50%);
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--brand-dark);
  border-radius: 999px;
  color: var(--brand-dark) !important;
}
.nav-toggle { display: none; border: 0; background: transparent; font-size: 26px; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.12; letter-spacing: -.055em; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.25; letter-spacing: -.035em; }
h1 em, h2 em { color: var(--brand-dark); font-style: normal; }
p { color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}
.button.primary { color: #fff; background: linear-gradient(180deg, var(--brand), var(--brand-dark)); }
.button.primary:hover { background: var(--brand-hover); }
.button.secondary { color: var(--brand-dark); border: 1px solid var(--brand-dark); background: #fff; }
.button.dark { color: #fff; background: #111; }
.text-link { color: var(--brand-dark); font-weight: 900; }

.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 46px; align-items: center; }
.hero-copy p { max-width: 720px; font-size: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 22px; }
.hero-actions.centered { justify-content: center; }
.social-proof { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; }
.avatar-stack { width: 86px; height: 28px; border-radius: 999px; background: linear-gradient(90deg, #d9efe1 0 25%, #c9d9ff 25% 50%, #ffd8c2 50% 75%, #d8f6c7 75%); box-shadow: inset 0 0 0 3px #fff; }
.hero-media {
  position: relative;
  min-height: 360px;
  border-radius: 34px;
  background: radial-gradient(circle at 90% 10%, var(--brand-soft), transparent 30%), linear-gradient(135deg, #f0f8eb, #fff);
}
.hero-media::before, .hero-media::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--brand);
}
.hero-media::before { width: 120px; height: 120px; right: 32px; top: 24px; opacity: .95; }
.hero-media::after { width: 240px; height: 130px; right: 170px; bottom: 20px; opacity: .12; }
.photo-main, .photo-small {
  position: absolute;
  border: 8px solid #fff;
  border-radius: 28px;
  background-size: cover;
  box-shadow: var(--shadow);
}
.photo-main { inset: 44px 62px 62px 90px; background-image: linear-gradient(135deg, #d5e7d1, #fff 45%, #bed8c2); }
.photo-small.one { width: 170px; height: 120px; left: 24px; bottom: 54px; background-image: linear-gradient(135deg, #fff, #c9ead1); }
.photo-small.two { width: 190px; height: 130px; right: 18px; bottom: 38px; background-image: linear-gradient(135deg, #111, #15622e); }

.section { padding: 56px 0; }
.compact-section { padding-top: 22px; }
.home-panels { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 20px; }
.panel, .side-card, .news-item, .qr-card, .admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 34px rgba(17,17,17,.035);
}
.panel { padding: 28px; }
.panel-head { display: flex; align-items: center; gap: 8px; }
.panel-head span, .status-chip, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}
.badge.breaking { color: #9a5a00; background: #fff3d8; }
.badge.verified { color: var(--brand-dark); background: var(--brand-soft); }
.badge.corrected { color: #0f4fd6; background: #e8f0ff; }
.mini-news-list { display: grid; gap: 14px; margin: 16px 0; }
.mini-news { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mini-news.text-only { grid-template-columns: 1fr; }
.thumb { display: grid; place-items: center; height: 62px; border-radius: 14px; color: var(--brand-dark); background: var(--brand-soft); font-weight: 900; }
.mini-news h3 { margin: 0 0 3px; font-size: 15px; line-height: 1.45; }
.mini-news small { color: var(--brand-dark); font-weight: 800; }
.feature-row { display: grid; grid-template-columns: 42px 1fr; gap: 16px; margin-top: 20px; }
.feature-row span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 900; }
.feature-row p { margin: 4px 0 0; font-size: 14px; }
.topic-card { background: linear-gradient(135deg, #fff, var(--brand-pale)); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--muted); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.event-banner { padding: 34px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #111, #0d3b1d); }
.event-banner p { color: #d7e6d6; }
.event-banner span { color: var(--brand); font-weight: 900; }

.newsletter-section { padding: 60px 0; }
.newsletter-box { display: grid; grid-template-columns: 1fr 480px; gap: 36px; align-items: center; padding: 36px; border: 1px solid #b9e8a6; border-radius: 30px; background: linear-gradient(135deg, #fff, var(--brand-pale)); }
.newsletter-box span { color: var(--brand-dark); font-weight: 900; }
.subscribe-form { display: grid; gap: 12px; }
.subscribe-form input, .side-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.subscribe-form button, .side-card button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  font-weight: 900;
}
small.success { color: var(--brand-dark); font-weight: 800; }

.page-hero { padding: 56px 0 28px; }
.page-hero.center { text-align: center; }
.page-hero p { max-width: 760px; font-size: 18px; }
.page-hero.center p { margin-left: auto; margin-right: auto; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.filter-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.filter-button.active { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.content-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
.news-list { display: grid; gap: 20px; }
.news-item { display: block; padding: 26px 30px; transition: transform .2s, box-shadow .2s; }
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.news-item h2 { margin: 10px 0 8px; font-size: 23px; }
.impact-line { color: var(--brand-dark); font-weight: 800; }
.tag-list, .keyword-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag-list span, .keyword-list span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 800; }
.sidebar { display: grid; gap: 16px; align-self: start; position: sticky; top: 96px; }
.side-card { padding: 24px; }
.side-card h2 { font-size: 22px; }
.community-cta { background: var(--brand-pale); }

.article-layout { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 46px; }
.article-main h1 { margin: 16px 0; font-size: clamp(34px, 5vw, 56px); }
.breadcrumb { color: #8a9188; font-weight: 800; }
.article-section { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-section h2 { font-size: 24px; }
.article-body { display: grid; gap: 24px; }
.article-body-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.article-body-block h3 { margin: 0 0 8px; font-size: 20px; }
.article-body-block p { margin: 0; }
.point-list, .check-list { padding-left: 0; list-style: none; }
.point-list li, .check-list li { margin: 12px 0; padding-left: 28px; position: relative; }
.point-list li::before, .check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-dark); font-weight: 900; }
.disclaimer { padding: 18px; border: 1px solid #b9e8a6; border-radius: 16px; background: var(--brand-pale); font-size: 13px; }
.source-link { color: var(--brand-dark); font-weight: 900; word-break: break-all; }

.about-hero { padding: 72px 0 48px; overflow: hidden; }
.about-hero-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 48px; align-items: center; }
.about-hero p { max-width: 720px; font-size: 18px; }
.about-visual { position: relative; min-height: 430px; }
.about-visual img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border: 10px solid #fff;
  border-radius: 34px;
  box-shadow: var(--shadow);
  animation: floatIn 900ms ease both;
}
.floating-note {
  position: absolute;
  padding: 10px 18px;
  border: 1px solid #b9e8a6;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--brand-dark);
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(17,17,17,.08);
  animation: bob 3.4s ease-in-out infinite;
}
.floating-note.one { left: 24px; top: 34px; }
.floating-note.two { right: 10px; top: 160px; animation-delay: .4s; }
.floating-note.three { left: 70px; bottom: 24px; animation-delay: .8s; }
.about-feature-grid { width: min(1320px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-feature-grid article, .policy-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(17,17,17,.035);
}
.about-feature-grid b { color: var(--brand-dark); }
.case-section { background: linear-gradient(180deg, transparent, var(--brand-pale)); }
.case-carousel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(17,17,17,.035);
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.case-card img { width: 100%; height: 190px; object-fit: cover; background: var(--brand-pale); }
.case-card div { padding: 22px; }
.case-card span { color: var(--brand-dark); font-weight: 900; }
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  padding: 24px;
  border: 1px solid #1f241f;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}
.partner-logo-tile {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: auto;
  border-radius: 0;
  background: transparent;
}
.partner-logo-tile.wide {
  grid-column: span 2;
}
.partner-logo-tile img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.partner-logo-tile.wide img {
  height: auto;
}
.media-partner-section {
  padding-top: 24px;
}
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.qr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qr-card { padding: 24px; text-align: center; }
.qr-card b { display: inline-flex; padding: 4px 18px; border-radius: 999px; color: #fff; background: var(--brand-dark); }
.qr-placeholder { display: grid; place-items: center; width: 128px; height: 128px; margin: 20px auto; border: 2px dashed #8fcf7a; border-radius: 18px; color: var(--brand-dark); background: var(--brand-pale); font-size: 28px; font-weight: 900; }
.qr-image {
  display: block;
  width: min(100%, 184px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.community-cases {
  background: linear-gradient(180deg, transparent, var(--brand-pale));
}
.community-case-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.community-case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(17,17,17,.035);
}
.community-case-card img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  background: var(--brand-pale);
}
.community-case-card div {
  padding: 16px;
}
.community-case-card span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}
.community-case-card h3 {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.45;
}
.compact-qr-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-qr-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  text-align: left;
}
.compact-qr-card .qr-image {
  width: 82px;
  height: 82px;
  margin: 0;
  padding: 6px;
  border-radius: 14px;
}
.compact-qr-card b {
  padding: 2px 12px;
  font-size: 12px;
}
.compact-qr-card h3 {
  margin: 8px 0 2px;
  font-size: 16px;
}
.compact-qr-card p {
  margin: 0;
  font-size: 13px;
}
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logo-wall span { display: grid; place-items: center; min-height: 64px; border-radius: 14px; background: #f2f3f0; color: #8a9188; }
.event-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.event-list article { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.event-list b { font-size: 34px; }
.event-list span { color: var(--brand-dark); font-weight: 900; }
.community-benefit { background: var(--brand-pale); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.section-head span { color: var(--brand-dark); font-weight: 900; }
.section-head h2 { margin: 6px 0 0; }
.section-head p { max-width: 520px; color: var(--muted); }
.subtle-join {
  background: #f8faf5;
  border-top: 1px solid var(--line);
}
.subtle-join .qr-card {
  box-shadow: none;
  background: rgba(255, 255, 255, .78);
}
.subtle-join .qr-placeholder {
  width: 104px;
  height: 104px;
  opacity: .72;
  font-size: 22px;
}

.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer img { width: 172px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-weight: 800; }
.copyright { margin: 8px 0 0; color: #8a9188; font-size: 13px; }
.pagination { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.pagination-summary { color: var(--muted); font-weight: 800; }
.pagination-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}
.page-button.active { color: #fff; border-color: var(--brand-dark); background: var(--brand-dark); }
.page-button.disabled { opacity: .45; }

.legacy-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  padding: 32px;
  text-align: center;
  background: var(--cream);
}

.legacy-page img {
  width: 190px;
  max-width: 64vw;
}

.admin-body { background: #f7f8f4; }
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; min-width: 0; }
.admin-sidebar { padding: 22px; border-right: 1px solid var(--line); background: #fff; }
.admin-sidebar img { width: 172px; margin-bottom: 28px; }
.admin-brand { display: block; margin-bottom: 28px; }
.admin-sidebar a { display: block; padding: 13px 14px; border-radius: 12px; color: var(--muted); font-weight: 800; cursor: pointer; }
.admin-sidebar a.active { color: var(--brand-dark); background: var(--brand-soft); }
.admin-main { min-width: 0; padding: 28px; }
.admin-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-title h1 { margin: 0; font-size: 38px; letter-spacing: -.03em; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.metric span { color: var(--muted); font-size: 12px; font-weight: 900; }
.metric b { display: block; margin-top: 8px; font-size: 30px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-grid.two-column { grid-template-columns: 1fr 1fr; }
.admin-card { min-width: 0; padding: 22px; }
.admin-card h2 { font-size: 22px; }
.alert { padding: 12px; border-bottom: 1px solid var(--line); }
.alert.warning { color: #8a4f00; }
.alert.info { color: var(--brand-dark); }
.action-grid { display: grid; gap: 12px; }
.action-grid.inline-actions { display: flex; flex-wrap: wrap; margin: 10px 0 16px; }
.action-grid button { min-height: 48px; border: 1px solid var(--brand-dark); border-radius: 14px; color: var(--brand-dark); background: #fff; font-weight: 900; }
.action-grid button:hover { color: #fff; background: var(--brand-dark); }
.admin-action-status { margin: 14px 0 0; font-size: 13px; }
.admin-pre {
  max-height: 520px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcf8;
  color: #1f261f;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.7;
}
.admin-rich-preview {
  max-height: 620px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcf8;
}
.admin-rich-preview h3 { margin: 0 0 14px; font-size: 24px; }
.admin-rich-preview h4 { margin: 22px 0 10px; font-size: 18px; }
.admin-rich-preview p { margin: 8px 0; }
.newsletter-item-title { margin-top: 18px !important; color: var(--ink); font-weight: 900; }
.newsletter-link-line { padding-left: 18px; }
.admin-list { margin: 0; padding-left: 18px; color: var(--muted); }
.admin-list li { margin: 8px 0; }
.admin-table { width: 100%; max-width: 100%; overflow-x: auto; }
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.admin-link-stack { display: grid; gap: 6px; min-width: 90px; }
.review-actions { display: flex; gap: 6px; flex-wrap: wrap; min-width: 220px; }
.review-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.review-actions button:hover { color: #fff; border-color: var(--brand-dark); background: var(--brand-dark); }
.inline-edit-input {
  width: min(100%, 520px);
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--brand-dark);
  border-radius: 10px;
  background: #fff;
}
.content-editor {
  display: grid;
  gap: 12px;
  min-width: min(720px, 72vw);
}
.content-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.content-editor input, .content-editor textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--brand-dark);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.content-editor textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.content-editor textarea[data-edit-field="body_sections"] { min-height: 220px; }
.crm-form { display: grid; gap: 10px; }
.crm-form input, .crm-form select, .crm-form textarea {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.crm-form textarea { min-height: 108px; padding-top: 12px; resize: vertical; }
.crm-form button {
  min-height: 44px;
  border: 1px solid var(--brand-dark);
  border-radius: 12px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 900;
}
.crm-form button[type="button"] { color: var(--brand-dark); background: #fff; }
.media-assets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.media-asset-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcf8;
}
.media-asset-card h3 { margin-bottom: 8px; font-size: 18px; }
.media-asset-card video, .media-asset-card audio { width: 100%; margin: 10px 0; border-radius: 12px; }
.admin-table table { min-width: 920px; }
.admin-table { overflow-x: auto; }

.directory-primary-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.directory-primary-tabs .filter-button {
  min-width: 132px;
  min-height: 52px;
  font-size: 17px;
}
.directory-subtabs {
  margin-top: 14px;
}
.directory-subtabs .filter-button {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.directory-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(17,17,17,.035);
}
.directory-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: var(--brand-dark);
  background: linear-gradient(135deg, var(--brand-soft), #f2f7ff);
  font-size: 22px;
  font-weight: 900;
}
.directory-logo img { width: 48px; height: 48px; object-fit: contain; }
.directory-card span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}
.directory-card h2 { margin: 4px 0; font-size: 22px; }
.directory-card p {
  margin-bottom: 12px;
  font-size: 14px;
}
.directory-card .tag-list {
  margin-top: 8px;
}
.directory-card .tag-list span {
  font-size: 11px;
  padding: 4px 8px;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 34px rgba(17,17,17,.035);
}
.simple-form {
  display: grid;
  gap: 12px;
}
.simple-form input,
.simple-form select,
.simple-form textarea,
.inline-signup input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
}
.simple-form textarea {
  min-height: 128px;
  padding-top: 12px;
  resize: vertical;
}
.simple-form button,
.inline-signup button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 900;
  cursor: pointer;
}
.google-button { margin-top: 12px; }
.result-card {
  padding: 22px;
  border: 1px solid #b9e8a6;
  border-radius: 18px;
  background: var(--brand-pale);
}
.diagnosis-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.diagnosis-split .form-card {
  min-height: 100%;
}
.diagnosis-split h2 {
  margin: 10px 0 8px;
}
.diagnosis-result {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #b9e8a6;
  border-radius: 16px;
  background: var(--brand-pale);
}
.diagnosis-result h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.diagnosis-result p:last-child { margin-bottom: 0; }
.business-diagnosis {
  background: linear-gradient(135deg, #fff, #f6fbf2);
}
.event-card {
  align-items: start;
}
.inline-signup {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 18px;
}
.inline-signup small {
  grid-column: 1 / -1;
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav { display: none; position: absolute; inset: 76px 16px auto; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
  .nav.open { display: grid; gap: 14px; }
  .nav-toggle { display: block; }
  .hero-grid, .home-panels, .split-layout, .content-sidebar, .article-grid, .newsletter-box, .admin-shell, .form-layout, .diagnosis-split { grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-hero-grid, .about-feature-grid, .case-carousel, .policy-grid { grid-template-columns: 1fr; }
  .community-case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-logo-tile.wide { grid-column: span 2; }
  .qr-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: start; flex-direction: column; }
  .admin-shell { display: block; }
  .admin-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .admin-sidebar img { width: 126px; height: 48px; margin: 0; object-fit: contain; }
  .admin-brand { flex: 0 0 auto; margin: 0; padding: 0 !important; }
  .admin-sidebar a { flex: 0 0 auto; white-space: nowrap; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .container, .article-layout { width: min(100% - 28px, 1320px); }
  h1 { font-size: 36px; line-height: 1.16; letter-spacing: -.04em; }
  h2 { font-size: 26px; }
  .site-header { min-height: 64px; padding: 8px 14px; }
  .brand img { width: 140px; height: 52px; }
  .nav { inset: 64px 12px auto; }
  .nav-pill { width: fit-content; }
  .hero { padding-top: 36px; }
  .hero-copy p, .page-hero p { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; min-height: 48px; padding: 0 18px; }
  .hero-media { min-height: 250px; }
  .photo-main { inset: 28px 24px 56px; }
  .photo-small.one { left: 8px; width: 122px; height: 90px; }
  .photo-small.two { right: 8px; width: 128px; height: 90px; }
  .section { padding: 38px 0; }
  .page-hero { padding: 38px 0 18px; }
  .panel, .side-card, .admin-card { padding: 22px; border-radius: 20px; }
  .mini-news { grid-template-columns: 56px 1fr; }
  .mini-news.text-only { grid-template-columns: 1fr; }
  .thumb { height: 52px; }
  .testimonial-grid, .qr-grid, .event-list, .metric-grid, .admin-grid, .admin-grid.two-column, .media-assets, .compact-qr-grid { grid-template-columns: 1fr; }
  .community-case-list, .partner-logo-grid { grid-template-columns: 1fr; }
  .partner-logo-tile.wide { grid-column: span 1; }
  .compact-qr-card { grid-template-columns: 76px 1fr; }
  .compact-qr-card .qr-image { width: 68px; height: 68px; }
  .directory-card { grid-template-columns: 64px 1fr; }
  .inline-signup { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .newsletter-box { padding: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer img { width: 152px; }
  .admin-main { padding: 18px; }
  .admin-title { align-items: flex-start; flex-direction: column; }
  .admin-title h1 { font-size: 30px; }
  .admin-table table { min-width: 620px; }
  .admin-table th, .admin-table td { min-width: 112px; }
}
