/* ===== Nishimaru Custom Theme CSS ===== */
/* Reset */
*, *::before, *::after { box-sizing: border-box; }

/* ============================
   WordPress Block Styles
   (VK Blocks / Gutenberg)
   ============================ */
.nm-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.nm-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  background: var(--nm-primary);
  color: var(--nm-white);
}
.nm-content .wp-block-button__link:hover { opacity: 0.85; }

/* VK Button Block */
.nm-content .vk_button { margin: 16px 0; }
.nm-content .vk_button_link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}
.nm-content .vk_button-align-block .vk_button_link { display: flex; width: 100%; justify-content: center; }
.nm-content .vk_button_link.has-vk-color-primary-background-color {
  background: var(--nm-primary) !important;
  color: var(--nm-white) !important;
}
.nm-content .vk_button_link:hover { opacity: 0.85; transform: translateY(-1px); }
.nm-content .vk_button_link_caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
}
.nm-content .vk_button_link_subCaption {
  font-size: 12px;
  opacity: 0.8;
  margin: 4px 0 0;
}

/* VK Table Styles */
.nm-content .wp-block-table table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.nm-content .wp-block-table th,
.nm-content .wp-block-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--nm-border);
  border-bottom: 1px solid var(--nm-border);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
.nm-content .wp-block-table td:first-child {
  font-weight: 600;
  color: var(--nm-primary);
  white-space: nowrap;
  width: 25%;
  background: var(--nm-bg-light);
}
.nm-content .is-style-vk-table-border-top-bottom th,
.nm-content .is-style-vk-table-border-top-bottom td {
  border-left: none;
  border-right: none;
}

/* VK Spacer */
.vk_spacer { margin: 0; padding: 0; }
.vk_block-margin-lg--margin-top { margin-top: 48px; }
.vk_block-margin-md--margin-top { margin-top: 32px; }
.vk_block-margin-sm--margin-top { margin-top: 16px; }

/* WordPress Columns Block */
.nm-content .wp-block-columns { display: flex; gap: 32px; margin: 24px 0; }
.nm-content .wp-block-column { flex: 1; }

/* WordPress Cover Block */
.nm-content .wp-block-cover { position: relative; padding: 48px 32px; border-radius: 12px; overflow: hidden; margin: 24px 0; }

/* WordPress Group Block */
.nm-content .wp-block-group { margin: 24px 0; }
.nm-content .wp-block-group.has-background { padding: 32px; border-radius: 12px; }

/* WordPress Separator */
.nm-content .wp-block-separator {
  border: none;
  border-top: 2px solid var(--nm-accent);
  margin: 32px auto;
  max-width: 120px;
}
.nm-content .wp-block-separator.is-style-wide { max-width: 100%; }

/* WordPress Heading with VK style */
.nm-content .is-style-vk-heading-plain { border: none; padding: 0; }
.nm-content .is-style-vk-heading-background_fill_lightgray {
  background: var(--nm-bg-light);
  padding: 12px 20px;
  border-radius: 8px;
  border-bottom: none;
}

/* Google Maps iframe */
.nm-content iframe {
  max-width: 100%;
  width: 100%;
  min-height: 350px;
  border-radius: 12px;
  border: none;
}

/* Font Awesome icons (used by VK Blocks) — do NOT override font-family */

/* VK list styles */
.nm-content .is-style-vk-check-mark li::marker { content: none; }
.nm-content .is-style-vk-check-square-mark li::marker { content: none; }
.nm-content .is-style-vk-check-square-mark { list-style: none; padding-left: 0; }
.nm-content .is-style-vk-check-mark { list-style: none; padding-left: 0; }

/* Hide empty WordPress Details block (renders as stray dot/triangle) */
.nm-content details:empty,
.nm-content details:has(> summary:only-child:empty) {
  display: none;
}
.nm-content .wp-block-details summary:empty {
  display: none;
}
.nm-content .wp-block-details:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .nm-content .wp-block-columns { flex-direction: column; gap: 24px; }
  .nm-content .wp-block-table td:first-child { white-space: normal; width: auto; display: block; }
  .nm-content .vk-table--mobile-block td { display: block; width: 100%; }
}

:root {
  --nm-primary: #1a3a5c;
  --nm-primary-light: #2a5a8c;
  --nm-accent: #e8a838;
  --nm-text: #333;
  --nm-text-light: #666;
  --nm-bg-light: #f7f8fa;
  --nm-white: #fff;
  --nm-border: #eee;
}

body.nm-wrap {
  font-family: "Noto Sans JP", "Helvetica Neue", "Hiragino Sans", sans-serif;
  color: var(--nm-text);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  background: var(--nm-white);
}

a { transition: color 0.2s, opacity 0.2s; }

/* Hide Lightning's default header/footer if any leak through */
.site-header, .site-footer, #page_top { display: none !important; }

/* ============================
   HEADER
   ============================ */
.nm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nm-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--nm-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.nm-logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--nm-text-light);
  letter-spacing: 0.1em;
}
/* PC Nav */
.nm-nav-pc {
  display: flex;
  gap: 32px;
  align-items: center;
}

/* Mobile Nav (headerの外に配置) */
.nm-mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #ffffff;
  padding: 16px 32px 32px;
  overflow-y: auto;
}
.nm-mobile-nav.is-open { display: block; }
.nm-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nm-mobile-nav li { border-bottom: 1px solid #eee; }
.nm-mobile-nav a {
  display: block;
  padding: 18px 0;
  font-size: 17px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
.nm-mobile-nav li:last-child a {
  margin-top: 16px;
  text-align: center;
  background: var(--nm-primary);
  color: #fff;
  border-radius: 8px;
  padding: 16px;
}
.nm-nav-pc a {
  text-decoration: none;
  color: var(--nm-text);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nm-nav-pc a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--nm-accent);
  transition: width 0.3s;
}
.nm-nav-pc a:hover,
.nm-nav-pc a.is-current { color: var(--nm-primary); }
.nm-nav-pc a:hover::after,
.nm-nav-pc a.is-current::after { width: 100%; }
.nm-nav-contact {
  background: var(--nm-primary) !important;
  color: var(--nm-white) !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  transition: background 0.2s !important;
}
.nm-nav-contact:hover { background: var(--nm-primary-light) !important; }
.nm-nav-contact::after { display: none !important; }

/* Mobile menu toggle */
.nm-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}
.nm-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--nm-primary);
  transition: all 0.3s;
}
.nm-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nm-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.nm-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================
   BUTTONS
   ============================ */
.nm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.nm-btn-primary {
  background: var(--nm-accent);
  color: var(--nm-primary);
}
.nm-btn-primary:hover {
  background: #f0b448;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,168,56,0.4);
  color: var(--nm-primary);
}
.nm-btn-outline {
  background: transparent;
  color: var(--nm-white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.nm-btn-outline:hover {
  border-color: var(--nm-white);
  background: rgba(255,255,255,0.08);
  color: var(--nm-white);
}
.nm-btn-outline-dark {
  background: transparent;
  color: var(--nm-primary);
  border: 1.5px solid var(--nm-border);
}
.nm-btn-outline-dark:hover {
  border-color: var(--nm-primary);
  color: var(--nm-primary);
}

/* ============================
   HERO (Front Page Only)
   ============================ */
.nm-hero {
  margin-top: 72px;
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  background: linear-gradient(135deg, var(--nm-primary) 0%, #0d2240 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('') center/cover;
  opacity: 0.3;
}
.nm-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.nm-hero-badge {
  display: inline-block;
  background: rgba(232,168,56,0.15);
  color: var(--nm-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(232,168,56,0.3);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.nm-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--nm-white);
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.nm-hero h1 span { color: var(--nm-accent); }
.nm-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.9;
}
.nm-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================
   STATS
   ============================ */
.nm-stats {
  background: var(--nm-white);
  border-bottom: 1px solid var(--nm-border);
}
.nm-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.nm-stat-item { padding: 16px; }
.nm-stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--nm-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.nm-stat-number span { font-size: 18px; font-weight: 600; }
.nm-stat-label { font-size: 14px; color: var(--nm-text-light); font-weight: 500; }

/* ============================
   SECTIONS
   ============================ */
.nm-section { padding: 96px 24px; }
.nm-section-inner { max-width: 1200px; margin: 0 auto; }
.nm-section-header { text-align: center; margin-bottom: 64px; }
.nm-section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--nm-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.nm-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--nm-primary);
  margin-bottom: 16px;
}
.nm-section-desc {
  font-size: 15px;
  color: var(--nm-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================
   SERVICE CARDS
   ============================ */
.nm-services { background: var(--nm-bg-light); }
.nm-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.nm-service-card {
  background: var(--nm-white);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s;
  border: 1px solid var(--nm-border);
  overflow: hidden;
}
.nm-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: transparent;
}
.nm-service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.nm-service-icon.blue { background: #e8f0fe; color: #1a73e8; }
.nm-service-icon.green { background: #e6f4ea; color: #1e8e3e; }
.nm-service-icon.orange { background: #fef3e0; color: #e8a838; }
.nm-service-icon.red { background: #fce8e6; color: #d93025; }
.nm-service-icon.purple { background: #f3e8fd; color: #9334e6; }
.nm-service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--nm-primary);
  margin-bottom: 12px;
}
.nm-service-card p {
  font-size: 14px;
  color: var(--nm-text-light);
  line-height: 1.7;
}
a.nm-service-card-link { text-decoration: none; display: block; }
a.nm-service-card-link:hover { border-color: var(--nm-accent); }
.nm-service-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nm-accent);
}

/* ============================
   ABOUT
   ============================ */
.nm-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.nm-about-image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
}
.nm-about-image img { width: 100%; height: 100%; object-fit: cover; }
.nm-about-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--nm-primary);
  margin-bottom: 20px;
  line-height: 1.4;
}
.nm-about-content p {
  font-size: 15px;
  color: var(--nm-text-light);
  margin-bottom: 16px;
  line-height: 1.9;
}
.nm-about-list { list-style: none; margin: 24px 0 32px; padding: 0; }
.nm-about-list li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--nm-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.nm-about-list li::before {
  content: "\2713";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #e6f4ea;
  color: #1e8e3e;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================
   CTA
   ============================ */
.nm-cta {
  background: linear-gradient(135deg, var(--nm-primary) 0%, #0d2240 100%);
  text-align: center;
  padding: 80px 24px;
}
.nm-cta h2 { font-size: 32px; font-weight: 800; color: var(--nm-white); margin-bottom: 16px; }
.nm-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.nm-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.nm-cta .nm-btn-primary { font-size: 16px; padding: 16px 40px; }
.nm-cta .nm-btn-outline-light {
  font-size: 16px;
  padding: 16px 40px;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--nm-white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}
.nm-cta .nm-btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--nm-white); }
.nm-cta-phone { margin-top: 24px; color: rgba(255,255,255,0.6); font-size: 14px; }
.nm-cta-phone strong { color: var(--nm-white); font-size: 22px; letter-spacing: 0.05em; }

/* ============================
   FOOTER
   ============================ */
.nm-footer {
  background: #0a1628;
  color: rgba(255,255,255,0.5);
  padding: 64px 24px 32px;
}
.nm-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.nm-footer-brand .nm-logo { color: var(--nm-white); font-size: 18px; display: inline-block; margin-bottom: 16px; }
.nm-footer-brand p { font-size: 13px; line-height: 1.8; }
.nm-footer h4 { color: var(--nm-white); font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.nm-footer ul { list-style: none; padding: 0; margin: 0; }
.nm-footer ul li { margin-bottom: 10px; }
.nm-footer ul a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.nm-footer ul a:hover { color: var(--nm-white); }
.nm-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px;
}

/* ============================
   PAGE HEADER (Sub Pages)
   ============================ */
.nm-page-header {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--nm-primary) 0%, #0d2240 100%);
  padding: 64px 24px;
  text-align: center;
}
.nm-page-header-inner { max-width: 1200px; margin: 0 auto; }
.nm-page-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--nm-white);
  margin: 0 0 12px;
}
.nm-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); }
.nm-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.nm-breadcrumb a:hover { color: var(--nm-white); }
.nm-breadcrumb span { margin: 0 8px; }

/* ============================
   MAIN CONTENT AREA
   ============================ */
.nm-main {
  padding: 64px 24px;
  background: var(--nm-bg-light);
  min-height: 40vh;
}
.nm-main-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.nm-main-narrow { max-width: 800px; }

.nm-article {
  background: var(--nm-white);
  border-radius: 16px;
  padding: 48px;
  border: 1px solid var(--nm-border);
}

/* WordPress Content Styles */
.nm-content {
  font-size: 15px;
  line-height: 2;
  color: var(--nm-text);
}
.nm-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--nm-primary);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--nm-accent);
}
.nm-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--nm-primary);
  margin: 40px 0 16px;
}
.nm-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--nm-primary);
  margin: 32px 0 12px;
}
.nm-content p { margin: 0 0 20px; }
.nm-content ul, .nm-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.nm-content li { margin-bottom: 8px; }
.nm-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.nm-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.nm-content table th,
.nm-content table td {
  padding: 12px 16px;
  border: 1px solid var(--nm-border);
  text-align: left;
  font-size: 14px;
}
.nm-content table th {
  background: var(--nm-bg-light);
  font-weight: 600;
  color: var(--nm-primary);
  white-space: nowrap;
  width: 30%;
}
.nm-content blockquote {
  border-left: 4px solid var(--nm-accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--nm-bg-light);
  border-radius: 0 8px 8px 0;
}
.nm-content a {
  color: var(--nm-primary-light);
  text-decoration: underline;
}
.nm-content a:hover { color: var(--nm-accent); }

/* Contact Form 7 Styles */
.nm-content .wpcf7 input[type="text"],
.nm-content .wpcf7 input[type="email"],
.nm-content .wpcf7 input[type="tel"],
.nm-content .wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.nm-content .wpcf7 input:focus,
.nm-content .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--nm-primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
.nm-content .wpcf7 input[type="submit"] {
  background: var(--nm-accent);
  color: var(--nm-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 48px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.nm-content .wpcf7 input[type="submit"]:hover {
  background: #f0b448;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,168,56,0.4);
}

/* ============================
   SINGLE POST
   ============================ */
.nm-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.nm-single-meta time {
  font-size: 14px;
  color: var(--nm-text-light);
}
.nm-tag {
  display: inline-block;
  background: var(--nm-bg-light);
  color: var(--nm-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
}
.nm-single-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--nm-primary);
  margin: 0 0 32px;
  line-height: 1.5;
}
.nm-back-link {
  margin-top: 32px;
  text-align: center;
}

/* ============================
   NEWS LIST (Archive)
   ============================ */
.nm-news-list {
  background: var(--nm-white);
  border-radius: 16px;
  border: 1px solid var(--nm-border);
  overflow: hidden;
}
.nm-news-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  text-decoration: none;
  color: var(--nm-text);
  border-bottom: 1px solid var(--nm-border);
  transition: background 0.2s;
}
.nm-news-item:last-child { border-bottom: none; }
.nm-news-item:hover { background: var(--nm-bg-light); }
.nm-news-date {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nm-news-date time {
  font-size: 14px;
  color: var(--nm-text-light);
  font-weight: 500;
  white-space: nowrap;
}
.nm-news-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--nm-text);
}
.nm-no-posts {
  text-align: center;
  padding: 64px;
  color: var(--nm-text-light);
}

/* Pagination */
.nm-pagination { margin-top: 32px; text-align: center; }
.nm-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.nm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--nm-text);
  background: var(--nm-white);
  border: 1px solid var(--nm-border);
  transition: all 0.2s;
}
.nm-pagination .page-numbers:hover,
.nm-pagination .page-numbers.current {
  background: var(--nm-primary);
  color: var(--nm-white);
  border-color: var(--nm-primary);
}

/* ============================
   CONTACT PAGE FIXES
   ============================ */
/* お問い合わせページのフォーム下余白を縮小 */
.page-id-contact .nm-main,
body.page .nm-main { padding-bottom: 48px; }

/* 送信ボタンを大きく・目立たせる */
.nm-content .wpcf7 input[type="submit"] {
  width: 100%;
  max-width: 320px;
  padding: 16px 48px;
  font-size: 17px;
  display: block;
  margin: 32px auto 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .nm-nav-pc { display: none; }
  .nm-menu-toggle { display: flex; z-index: 10001; }

  .nm-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 32px 24px; }
  .nm-stat-number { font-size: 32px; }
  .nm-services-grid { grid-template-columns: 1fr; }
  .nm-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .nm-footer-inner { grid-template-columns: 1fr 1fr; }
  .nm-section { padding: 64px 24px; }
  .nm-hero { height: 70vh; }

  .nm-article { padding: 24px; }
  .nm-news-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 24px; }
}

@media (max-width: 480px) {
  .nm-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .nm-hero h1 { font-size: 28px; }
  .nm-hero-buttons { flex-direction: column; }
  .nm-hero-buttons .nm-btn { width: 100%; justify-content: center; }
  .nm-page-header h1 { font-size: 24px; }
}
