@charset "UTF-8";

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

:root {
  --ngc-navy: #17324c;
  --ngc-navy-deep: #0f2437;
  --ngc-ink: #1f2b36;
  --ngc-muted: #5c6b78;
  --ngc-mist: #eef3f7;
  --ngc-line: #dbe3ea;
  --ngc-paper: #ffffff;
  --ngc-radius: 4px;
  --ngc-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ngc-font-accent: "Shippori Mincho", "Hiragino Mincho ProN", serif;
}

.ngc-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.ngc-wrap-wide {
  max-width: 1400px;
}
/* 施工事例などの画像一覧：PCでは画面幅いっぱいに広げてアイキャッチを大きく見せる */
@media (min-width: 901px) {
  .ngc-wrap-full {
    max-width: none;
    padding: 0 40px;
  }
}

body {
  font-family: var(--ngc-font);
  color: var(--ngc-ink);
  line-height: 1.8;
  background: var(--ngc-paper);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- Header ---------- */
.ngc-header {
  border-bottom: 1px solid var(--ngc-line);
  background: var(--ngc-paper);
  position: relative;
  z-index: 20;
}
.ngc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.ngc-logo,
.ngc-logo:hover,
.ngc-logo:visited,
.ngc-logo:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ngc-navy);
}
.ngc-logo-icon { color: var(--ngc-navy); flex-shrink: 0; }
.ngc-logo-text { display: flex; flex-direction: column; line-height: 1.4; }
.ngc-logo-eyebrow { font-size: 0.7rem; color: var(--ngc-muted); }
.ngc-logo-name { font-size: 1.15rem; font-weight: 700; }
.ngc-logo-sub { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--ngc-muted); }

.ngc-nav {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}
.ngc-nav a:hover { color: var(--ngc-navy); opacity: 0.7; }

.ngc-header-cta {
  align-self: center;
  margin: 16px 0;
  border-radius: 999px;
  padding: 11px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* ---------- Hamburger menu ---------- */
.ngc-menu-toggle-input { display: none; }

.ngc-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  cursor: pointer;
}
.ngc-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ngc-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.ngc-menu-toggle-input:checked ~ .ngc-header .ngc-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ngc-menu-toggle-input:checked ~ .ngc-header .ngc-hamburger span:nth-child(2) { opacity: 0; }
.ngc-menu-toggle-input:checked ~ .ngc-header .ngc-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ngc-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 88px 24px 24px;
  overflow-y: auto;
  background: var(--ngc-navy-deep);
  color: #fff;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.3s ease, visibility 0.35s;
}
.ngc-menu-toggle-input:checked ~ .ngc-mobile-nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.ngc-mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
.ngc-mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 320px;
  font-size: 1.15rem;
  font-weight: 700;
}
.ngc-mobile-nav-links a { color: #fff; }
.ngc-mobile-nav-links a:hover { opacity: 0.8; }
.ngc-mobile-nav-links .ngc-btn {
  width: auto;
  margin: 0;
  padding: 0;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
  color: #fff;
}
.ngc-mobile-nav-links .ngc-btn:hover { background: none; color: #fff; opacity: 0.8; }
.ngc-mobile-nav-info {
  width: 100%;
  max-width: 320px;
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
}
.ngc-mobile-nav-info p { margin: 0; }
.ngc-mobile-nav-info a { color: rgba(255, 255, 255, 0.7); }
.ngc-mobile-nav-name { font-size: 0.88rem; font-weight: 700; color: #fff; }
body:has(.ngc-menu-toggle-input:checked) { overflow: hidden; }

/* ---------- Fixed mobile footer bar ---------- */
.ngc-fixed-footer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  background: var(--ngc-navy-deep);
  box-shadow: 0 -4px 14px rgba(15, 36, 55, 0.25);
}
.ngc-fixed-footer-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px calc(9px + env(safe-area-inset-bottom, 0px));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.9;
}
.ngc-fixed-footer-item:hover { opacity: 1; }
.ngc-fixed-footer-item-cta { background: var(--ngc-navy); opacity: 1; }
.ngc-fixed-footer-item.is-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); opacity: 1; }
.ngc-fixed-footer-item.is-line { background: #06c755; opacity: 1; }

/* ---------- Side pop (Instagram / LINE) ---------- */
.ngc-side-pop {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ngc-side-pop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ngc-navy);
  color: #fff;
  padding: 12px 18px 12px 14px;
  border-radius: 999px 0 0 999px;
  box-shadow: 0 8px 20px rgba(15, 36, 55, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(40px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.ngc-side-pop-item:hover { transform: translateX(0); }
.ngc-side-pop-item.is-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.ngc-side-pop-item.is-instagram:hover { background: linear-gradient(135deg, #fdd34a, #f1418c, #7438f2); }
.ngc-side-pop-item.is-line { background: #06c755; }
.ngc-side-pop-item.is-line:hover { background: #05a648; }
.ngc-side-pop-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (max-width: 900px) {
  .ngc-side-pop-item { transform: translateX(0); padding: 10px 14px; }
  .ngc-side-pop-label { display: none; }
}

/* ---------- Buttons ---------- */
.ngc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--ngc-radius);
  border: 1px solid transparent;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.ngc-btn-primary { background: var(--ngc-navy); color: #fff; }
.ngc-btn-primary:hover { background: var(--ngc-navy-deep); color: #fff; }
.ngc-btn-white { background: #fff; color: var(--ngc-navy); }
.ngc-btn-white:hover { background: var(--ngc-navy); color: #fff; }
.ngc-btn-dark { background: var(--ngc-navy-deep); color: #fff; width: 100%; justify-content: space-between; }
.ngc-btn-dark:hover { opacity: 0.85; color: #fff; }
.ngc-btn-outline-dark { background: transparent; color: var(--ngc-navy); border-color: var(--ngc-navy); }
.ngc-btn-outline-dark:hover { background: var(--ngc-navy); color: #fff; }
.ngc-btn-outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.ngc-btn-outline-white:hover { background: #fff; color: var(--ngc-navy); }
.ngc-btn-pill { border-radius: 999px; }
.ngc-btn-equal { width: 240px; justify-content: center; }

/* ---------- Video embed ---------- */
.ngc-video-embed {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16/9;
  margin: 0 auto 40px;
  border-radius: var(--ngc-radius);
  overflow: hidden;
}
.ngc-video-embed iframe,
.ngc-video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }

/* ---------- Hero ---------- */
.ngc-hero, .ngc-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.ngc-hero-media, .ngc-cta .ngc-hero-media {
  position: absolute;
  inset: 0;
}
.ngc-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ngc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,36,55,0.72) 0%, rgba(15,36,55,0.42) 45%, rgba(15,36,55,0.15) 100%);
}
.ngc-hero-content {
  position: relative;
  padding: 96px 24px 110px;
}
.ngc-hero-content h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 24px;
}
.ngc-hero-content p {
  font-size: 1rem;
  max-width: 34ch;
  opacity: 0.95;
}

/* ---------- Sections ---------- */
.ngc-section { padding: 88px 0; }
.ngc-section-light { background: var(--ngc-paper); }
.ngc-section-mist { background: var(--ngc-mist); }

/* ---------- Banner intro (flashy navy statement, navy-only emphasis) ---------- */
.ngc-section-banner {
  position: relative;
  overflow: hidden;
  background: var(--ngc-navy);
}
.ngc-section-banner::before {
  content: attr(data-watermark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  white-space: nowrap;
  font-family: var(--ngc-font-accent);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 12rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.ngc-section-banner .ngc-wrap { position: relative; z-index: 1; }
.ngc-section-banner .ngc-section-head h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  padding-bottom: 16px;
}
.ngc-section-banner .ngc-section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 52px;
  height: 4px;
  background: #fff;
}
.ngc-section-banner .ngc-eyebrow {
  display: table;
  margin: 18px auto 0;
  padding: 7px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}
.ngc-section-banner .ngc-contact-lede { color: rgba(255, 255, 255, 0.85); }

.ngc-section-head {
  text-align: center;
  margin-bottom: 48px;
}
.ngc-section-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ngc-navy);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.ngc-eyebrow {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--ngc-muted);
}

/* ---------- Services ---------- */
.ngc-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ngc-service-card {
  border: 1px solid var(--ngc-line);
  border-radius: var(--ngc-radius);
  overflow: hidden;
  background: var(--ngc-paper);
  display: flex;
  flex-direction: column;
}
.ngc-service-media { aspect-ratio: 4/3; overflow: hidden; }
.ngc-service-media img { width: 100%; height: 100%; object-fit: cover; }
.ngc-service-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ngc-service-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--ngc-navy); }
.ngc-service-body p { font-size: 0.86rem; color: var(--ngc-muted); flex: 1; }

/* ---------- Housing list ---------- */
.ngc-housing-list { display: flex; flex-direction: column; gap: 40px; }
.ngc-housing-row {
  position: relative;
  width: 100%;
  border-radius: var(--ngc-radius);
  overflow: hidden;
}
.ngc-housing-media { aspect-ratio: 21/9; }
.ngc-housing-media img,
.ngc-housing-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ngc-housing-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(340px, 60%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(15, 36, 55, 0.75), rgba(15, 36, 55, 0.6));
}
.ngc-housing-row:nth-child(odd) .ngc-housing-overlay { right: 0; }
.ngc-housing-row:nth-child(even) .ngc-housing-overlay { left: 0; }
.ngc-housing-label {
  font-family: var(--ngc-font-accent);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
}
.ngc-housing-copy { display: flex; flex-direction: column; gap: 12px; }
.ngc-housing-copy .ngc-eyebrow {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  margin-top: 0;
  padding: 5px 16px;
  background: #70bc3a;
  border: 1px solid #70bc3a;
  border-radius: 999px;
  text-align: left;
  font-weight: 700;
  color: #fff;
}
.ngc-housing-copy p { color: rgba(255, 255, 255, 0.9); font-size: 0.88rem; line-height: 1.8; }
.ngc-housing-copy .ngc-btn { align-self: flex-start; }
.ngc-housing-actions { display: grid; gap: 12px; align-self: flex-start; }

/* ---------- News ---------- */
.ngc-news-layout {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: start;
}
.ngc-news-title h2 { font-size: 1.4rem; font-weight: 800; color: var(--ngc-navy); }
.ngc-news-title .ngc-eyebrow { margin-top: 4px; text-align: left; }
.ngc-news-list { display: flex; flex-direction: column; }
.ngc-news-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ngc-line);
  font-size: 0.9rem;
}
.ngc-news-item:hover .ngc-news-text { color: var(--ngc-navy); }
.ngc-news-date { color: var(--ngc-navy); font-weight: 600; width: 92px; flex-shrink: 0; }
.ngc-news-all { align-self: start; }

/* ---------- Works ---------- */
.ngc-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ngc-work-card { display: flex; flex-direction: column; gap: 10px; }
.ngc-work-media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--ngc-radius); }
.ngc-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ngc-work-card:hover .ngc-work-media img { transform: scale(1.05); }
.ngc-work-card h3 { font-size: 1rem; font-weight: 700; color: var(--ngc-navy); }
.ngc-work-card p { font-size: 0.82rem; color: var(--ngc-muted); }
.ngc-work-link { align-self: flex-start; margin-top: 4px; font-size: 0.8rem; padding: 9px 18px; }

/* ---------- CTA ---------- */
.ngc-cta { padding: 64px 24px; }
.ngc-cta-inner {
  position: relative;
  max-width: 800px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  background: #fff;
  border-radius: 8px;
  color: var(--ngc-ink);
}
.ngc-cta-copy { display: flex; flex-direction: column; gap: 10px; }
.ngc-cta-text { font-size: 1.5rem; font-weight: 700; line-height: 1.6; color: var(--ngc-navy); }
.ngc-cta-sub { font-size: 0.9rem; color: var(--ngc-muted); }
.ngc-cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; width: 100%; }
.ngc-cta-btn { width: 100%; max-width: 400px; padding: 14px 26px; margin: 0 auto; justify-content: center; }

/* ---------- Footer ---------- */
.ngc-footer { background: var(--ngc-navy-deep); color: #fff; padding: 56px 0; }
.ngc-footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.ngc-footer .ngc-logo-icon,
.ngc-footer .ngc-logo-name,
.ngc-footer .ngc-logo-eyebrow,
.ngc-footer .ngc-logo-sub { color: #fff; }
.ngc-footer .ngc-logo-eyebrow,
.ngc-footer .ngc-logo-sub { opacity: 0.7; }
.ngc-footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; margin-top: 18px; }
.ngc-footer-address, .ngc-footer-phone { display: flex; gap: 10px; align-items: flex-start; opacity: 0.9; margin: 0; }
.ngc-footer-social { display: flex; flex-direction: column; gap: 12px; font-size: 0.85rem; }
.ngc-footer-social-item { display: flex; align-items: center; gap: 10px; opacity: 0.9; color: #fff; }
.ngc-footer-social-item:hover { opacity: 1; }
.ngc-footer-sitemap { display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem; }
.ngc-footer-sitemap a { opacity: 0.85; }
.ngc-footer-sitemap a:hover { opacity: 1; color: #fff; }
.ngc-footer .ngc-logo:hover .ngc-logo-name,
.ngc-footer .ngc-logo:hover .ngc-logo-eyebrow,
.ngc-footer .ngc-logo:hover .ngc-logo-sub { color: #fff; opacity: 1; }

/* ---------- Sitemap ---------- */
.ngc-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.ngc-sitemap-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ngc-navy);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ngc-line);
}
.ngc-sitemap-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ngc-sitemap-group a { font-size: 0.9rem; color: var(--ngc-ink); }
.ngc-sitemap-group a:hover { color: var(--ngc-navy); text-decoration: underline; }

/* ---------- Contact page ---------- */
.ngc-contact-lede { max-width: 70ch; color: var(--ngc-muted); margin-top: 20px; }
.ngc-contact-layout {
  max-width: 1000px;
  margin: 0 auto;
}

.ngc-contact-form table { width: 100%; border-collapse: collapse; }
.ngc-contact-form tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--ngc-line); }
.ngc-contact-form tr:first-child { border-top: 1px solid var(--ngc-line); }
.ngc-contact-form th {
  display: block;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ngc-navy);
  margin-bottom: 10px;
}
.ngc-contact-form th .have {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--ngc-navy);
  border-radius: 999px;
  padding: 2px 10px;
  margin-right: 8px;
}
.ngc-contact-form td { display: block; }
.ngc-contact-form input[type="text"],
.ngc-contact-form input[type="tel"],
.ngc-contact-form input[type="email"],
.ngc-contact-form textarea {
  width: 100%;
  max-width: 480px;
  padding: 11px 14px;
  border: 1px solid var(--ngc-line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}
.ngc-contact-form textarea { max-width: 100%; min-height: 160px; }
.ngc-contact-form .wpcf7-form-control-wrap { display: block; }
.ngc-contact-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 10px; }
.ngc-contact-form .wpcf7-list-item {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--ngc-line);
  border-radius: 999px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ngc-contact-form .wpcf7-list-item label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ngc-contact-form .wpcf7-list-item:hover { border-color: var(--ngc-navy); }
.ngc-contact-form .wpcf7-list-item:has(input:checked) { border-color: var(--ngc-navy); background: var(--ngc-mist); }
.ngc-contact-form .wpcf7-list-item input[type="checkbox"] { accent-color: var(--ngc-navy); width: 16px; height: 16px; }
.ngc-contact-form .wpcf7-list-item-label { font-size: 0.9rem; }
.ngc-contact-form .submit-pot { padding-top: 8px; }
.ngc-contact-form input[type="submit"] {
  background: var(--ngc-navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 40px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}
.ngc-contact-form input[type="submit"]:hover { background: var(--ngc-navy-deep); }
.ngc-contact-form .wpcf7-not-valid-tip { color: #c0392b; font-size: 0.82rem; margin-top: 6px; }

/* ---------- Work single ---------- */
.ngc-work-hero {
  background: var(--ngc-navy);
  color: #fff;
  padding: 56px 0;
}
.ngc-work-hero .ngc-eyebrow { color: rgba(255,255,255,0.7); }
.ngc-work-hero h1 { margin-top: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.ngc-work-hero-center { text-align: center; }
.ngc-work-hero-center .ngc-eyebrow { justify-content: center; }
.ngc-work-hero-center h1 { max-width: 34ch; margin-left: auto; margin-right: auto; }

.ngc-work-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.ngc-work-gallery-item { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.ngc-work-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.ngc-work-gallery-item:first-child:nth-last-child(1) { grid-column: 1 / -1; aspect-ratio: 16/9; }
.ngc-work-gallery-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Work slider (slick) ---------- */
.ngc-work-slider { position: relative; margin-bottom: 12px; border-radius: 6px; overflow: hidden; }
.ngc-work-slide { aspect-ratio: 16/9; }
.ngc-work-slide img { width: 100%; height: 100%; object-fit: cover; }
.ngc-work-slider .slick-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 36, 55, 0.55);
  color: #fff;
  font-size: 0;
  cursor: pointer;
}
.ngc-work-slider .slick-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.ngc-work-slider .slick-prev { left: 16px; }
.ngc-work-slider .slick-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.ngc-work-slider .slick-next { right: 16px; }
.ngc-work-slider .slick-next::before { transform: translate(-70%, -50%) rotate(45deg); }

.ngc-work-thumbs { margin: 0 -6px 40px; }
.ngc-work-thumbs .slick-track { display: flex; }
.ngc-work-thumb {
  margin: 0 6px;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.ngc-work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ngc-work-thumbs .slick-current .ngc-work-thumb { opacity: 1; outline: 2px solid var(--ngc-navy); outline-offset: -2px; }

.ngc-work-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--ngc-line);
  border-bottom: 1px solid var(--ngc-line);
  margin-bottom: 32px;
}
.ngc-work-meta-label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--ngc-muted); }
.ngc-work-meta-value { margin-top: 6px; font-size: 0.95rem; color: var(--ngc-ink); font-weight: 600; }
.ngc-work-meta-value a { color: var(--ngc-navy); }

/* ---------- Customer story ---------- */
.ngc-story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}
.ngc-story-block:nth-child(even) { direction: rtl; }
.ngc-story-block:nth-child(even) > * { direction: ltr; }
.ngc-story-media { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.ngc-story-media img { width: 100%; height: 100%; object-fit: cover; }
.ngc-story-text h2 { font-size: 1.3rem; font-weight: 800; color: var(--ngc-navy); margin-bottom: 16px; }

/* ---------- Story block: bold showcase (navy-only emphasis) ---------- */
.ngc-story-block-bold { gap: 56px; }
.ngc-story-block-bold .ngc-story-media {
  position: relative;
  box-shadow: 0 20px 44px rgba(15, 36, 55, 0.2);
}
.ngc-story-block-bold .ngc-story-media img { transition: transform 0.6s ease; }
.ngc-story-block-bold .ngc-story-media:hover img { transform: scale(1.06); }
.ngc-story-block-bold .ngc-eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--ngc-navy);
  border-radius: 999px;
  color: var(--ngc-navy);
  font-weight: 700;
}
.ngc-story-block-bold .ngc-story-text h2 {
  font-size: 1.7rem;
  margin-top: 14px;
}
.ngc-story-callout {
  margin-top: 20px;
  padding: 16px 22px;
  border-left: 4px solid var(--ngc-navy);
  background: var(--ngc-mist);
  font-weight: 700;
  color: var(--ngc-navy);
}

.ngc-entry-content { max-width: 74ch; line-height: 1.9; }
.ngc-entry-content img { height: auto; margin: 24px 0; border-radius: 6px; }
.ngc-entry-content p { margin-bottom: 1.2em; }
.ngc-work-comment { margin-bottom: 8px; }

/* ---------- Archive ---------- */
.ngc-tag-row { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 32px; }
.ngc-tag-row-center { justify-content: center; }
.ngc-tag-row a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--ngc-line);
  color: var(--ngc-ink);
}
.ngc-tag-row a:hover { border-color: var(--ngc-navy); color: var(--ngc-navy); }
.ngc-tag-row a.is-active { background: var(--ngc-navy); border-color: var(--ngc-navy); color: #fff; }

/* 施工事例・お客様の声：アイキャッチのみ＋カテゴリーをオーバーレイ表示 */
.ngc-archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ngc-archive-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ngc-archive-card { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.ngc-archive-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--ngc-mist); }
.ngc-archive-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ngc-archive-card:hover .ngc-archive-card-media img { transform: scale(1.05); }
.ngc-archive-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 36, 55, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.ngc-archive-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: var(--ngc-navy);
  padding: 3px 10px;
  border-radius: 999px;
}
.ngc-archive-card-overlay h3 {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ngc-archive-card-link {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* お知らせなど：縦一列のテキストアーカイブ */
.ngc-list { display: flex; flex-direction: column; max-width: 820px; margin: 0 auto; }
.ngc-list-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ngc-line);
  font-size: 0.95rem;
}
.ngc-list-item:first-child { border-top: 1px solid var(--ngc-line); }
.ngc-list-item:hover .ngc-list-title { color: var(--ngc-navy); }
.ngc-list-date { color: var(--ngc-navy); font-weight: 600; width: 100px; flex-shrink: 0; }

.ngc-archive-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.ngc-archive-with-sidebar .ngc-list { max-width: none; margin: 0; }
.ngc-archive-sidebar .ngc-sitemap-group { position: sticky; top: 24px; padding-top: 12px; border-top: 1px solid var(--ngc-line); }
.ngc-archive-sidebar .ngc-sitemap-group ul { gap: 0; }
.ngc-archive-sidebar .ngc-sitemap-group li { text-align: left; border-bottom: 1px solid var(--ngc-line); }
.ngc-archive-sidebar .ngc-sitemap-group a { display: block; padding: 12px 0; text-align: left; }
.ngc-list-title { flex: 1; }

.ngc-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.ngc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--ngc-line);
  color: var(--ngc-ink);
  font-size: 0.85rem;
}
.ngc-pagination .page-numbers.current { background: var(--ngc-navy); border-color: var(--ngc-navy); color: #fff; }
.ngc-pagination .page-numbers:hover:not(.current) { border-color: var(--ngc-navy); color: var(--ngc-navy); }

/* ---------- Company page ---------- */
.ngc-entry-lede { max-width: 74ch; margin: 0 auto; color: var(--ngc-muted); }
.ngc-entry-lede p + p { margin-top: 1.4em; }

.ngc-leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.ngc-leader-card { display: flex; flex-direction: column; gap: 18px; }
.ngc-leader-photo { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; }
.ngc-leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.ngc-leader-name { font-size: 1.15rem; font-weight: 700; color: var(--ngc-navy); }
.ngc-leader-role { display: block; margin-top: 4px; font-size: 0.78rem; font-weight: 600; color: var(--ngc-muted); }
.ngc-leader-body { font-size: 0.88rem; color: var(--ngc-muted); }

.ngc-staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ngc-staff-card {
  position: relative;
  border: 1px solid var(--ngc-line);
  border-radius: var(--ngc-radius);
  overflow: hidden;
  background: var(--ngc-paper);
  box-shadow: 0 10px 28px rgba(15, 36, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ngc-staff-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(15, 36, 55, 0.2); }
.ngc-staff-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(23, 50, 76, 0.3) 2px, transparent 2.4px);
  background-size: 100% 16px;
  background-position: 0 0;
  background-repeat: repeat-y;
}
.ngc-staff-photo img {
  width: calc(100% - 14px);
  height: 100%;
  object-fit: cover;
  margin-left: 14px;
  display: block;
  transition: transform 0.5s ease;
}
.ngc-staff-card:hover .ngc-staff-photo img { transform: scale(1.06); }
.ngc-staff-body { padding: 20px 22px 26px; }
.ngc-staff-role {
  position: absolute;
  top: 14px;
  left: 26px;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #fff;
  background: rgba(15, 36, 55, 0.7);
  padding: 5px 12px;
  text-transform: uppercase;
}
.ngc-staff-name { margin-top: 0; font-family: var(--ngc-font-accent); font-size: 1.15rem; font-weight: 700; color: var(--ngc-navy); line-height: 1.6; }
.ngc-staff-cert { margin-top: 6px; font-size: 0.74rem; color: var(--ngc-muted); }
.ngc-staff-desc { margin-top: 10px; font-size: 0.84rem; color: var(--ngc-muted); }

.ngc-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ngc-values-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ngc-value-card { text-align: center; padding: 34px 20px; border: 1px solid var(--ngc-line); border-radius: var(--ngc-radius); }
.ngc-values-grid-white .ngc-value-card { background: var(--ngc-paper); border-color: var(--ngc-navy); }

/* ---------- Bold showcase cards (navy-only emphasis) ---------- */
.ngc-values-grid-bold { gap: 28px; }
.ngc-values-grid-bold .ngc-value-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  background: var(--ngc-paper);
  border: 2px solid var(--ngc-navy);
  padding: 36px 26px 30px;
  box-shadow: 0 10px 30px rgba(15, 36, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.ngc-values-grid-bold .ngc-value-card::before {
  content: attr(data-index);
  position: absolute;
  top: -0.2em;
  right: 10px;
  font-family: var(--ngc-font-accent);
  font-size: 4.4rem;
  font-weight: 800;
  color: var(--ngc-mist);
  line-height: 1;
  z-index: 0;
  transition: color 0.25s ease;
}
.ngc-values-grid-bold .ngc-value-card::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: 0;
  width: 32px;
  height: 4px;
  background: var(--ngc-navy);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.ngc-values-grid-bold .ngc-value-title,
.ngc-values-grid-bold .ngc-value-desc { position: relative; z-index: 1; transition: color 0.25s ease; }
.ngc-values-grid-bold .ngc-value-title { font-size: 1.15rem; margin-top: 10px; }
.ngc-values-grid-bold .ngc-value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(15, 36, 55, 0.28);
  background: var(--ngc-navy);
}
.ngc-values-grid-bold .ngc-value-card:hover::before { color: rgba(255, 255, 255, 0.14); }
.ngc-values-grid-bold .ngc-value-card:hover::after { width: 56px; background: #fff; }
.ngc-values-grid-bold .ngc-value-card:hover .ngc-value-title { color: #fff; }
.ngc-values-grid-bold .ngc-value-card:hover .ngc-value-desc { color: rgba(255, 255, 255, 0.82); }
.ngc-values-grid-bold .ngc-value-card:hover .ngc-value-icon { color: #fff; }
.ngc-values-grid-bold .ngc-value-card-center { text-align: center; }
.ngc-values-grid-bold .ngc-value-card-center::before { right: 50%; transform: translateX(50%); }
.ngc-values-grid-bold .ngc-value-card-center::after { left: 50%; transform: translateX(-50%); }
.ngc-values-grid-bold .ngc-value-card-center:hover::after { width: 56px; }
.ngc-values-grid-bold .ngc-value-card-center .ngc-value-icon { position: relative; z-index: 1; margin: 0 auto 16px; }
.ngc-value-icon { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--ngc-navy); display: flex; align-items: center; justify-content: center; transition: color 0.25s ease; }
.ngc-value-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: #fff; background: var(--ngc-navy); padding: 3px 14px; border-radius: 999px; margin-bottom: 14px; }
.ngc-value-title { font-size: 0.98rem; font-weight: 700; color: var(--ngc-navy); }
.ngc-value-desc { margin-top: 8px; font-size: 0.8rem; color: var(--ngc-muted); line-height: 1.8; }

/* ---------- Value list (vertical, left-aligned) ---------- */
.ngc-value-list { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin: 0 auto; }
.ngc-value-list .ngc-value-card { text-align: left; background: var(--ngc-paper); }
.ngc-value-list .ngc-value-title { font-size: 1.05rem; }
.ngc-value-list .ngc-value-desc { margin-top: 10px; font-size: 0.88rem; }

/* ---------- Highlight list (short poetic lines) ---------- */
.ngc-highlight-list { max-width: 560px; margin: 32px auto; display: flex; flex-direction: column; gap: 12px; }
.ngc-highlight-list p { text-align: center; font-size: 1.05rem; font-weight: 700; color: var(--ngc-navy); }

/* ---------- Compare grid (new build vs renovation) ---------- */
.ngc-compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ngc-compare-card { border: 1px solid var(--ngc-line); border-radius: var(--ngc-radius); padding: 32px; background: var(--ngc-paper); }
.ngc-compare-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--ngc-navy); margin-bottom: 18px; }
.ngc-compare-card ul { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }
.ngc-compare-card li { padding-left: 22px; position: relative; font-size: 0.9rem; color: var(--ngc-ink); }
.ngc-compare-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 999px; background: var(--ngc-navy); }

/* ---------- Compare grid: bold VS matchup (navy-only emphasis) ---------- */
.ngc-compare-grid-bold { position: relative; align-items: stretch; gap: 32px; }
.ngc-compare-grid-bold .ngc-compare-card {
  border: 2px solid var(--ngc-navy);
  padding: 40px 34px;
  box-shadow: 0 14px 34px rgba(15, 36, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ngc-compare-grid-bold .ngc-compare-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 36, 55, 0.2);
}
.ngc-compare-grid-bold .ngc-compare-card h3 { font-size: 1.15rem; }
.ngc-compare-grid-bold .ngc-compare-card li { font-size: 0.92rem; padding-left: 28px; }
.ngc-compare-grid-bold .ngc-compare-card li::before {
  content: "✓";
  width: auto; height: auto;
  top: -2px;
  border-radius: 0;
  background: none;
  color: var(--ngc-navy);
  font-size: 1.05rem;
  font-weight: 800;
}
.ngc-compare-card-fill { background: var(--ngc-navy); }
.ngc-compare-card-fill h3 { color: #fff; }
.ngc-compare-card-fill li { color: rgba(255, 255, 255, 0.88); }
.ngc-compare-grid-bold .ngc-compare-card-fill li::before { color: #fff; }
.ngc-compare-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--ngc-navy-deep);
  color: #fff;
  font-family: var(--ngc-font-accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 20px rgba(15, 36, 55, 0.3), 0 0 0 6px var(--ngc-paper);
}

/* ---------- FAQ ---------- */
.ngc-faq-list { display: flex; flex-direction: column; gap: 24px; max-width: 760px; margin: 0 auto; }
.ngc-faq-item { border: 1px solid var(--ngc-line); border-radius: var(--ngc-radius); padding: 28px 32px; background: var(--ngc-paper); }
.ngc-faq-q { font-size: 1rem; font-weight: 800; color: var(--ngc-navy); display: flex; gap: 10px; }
.ngc-faq-a { margin-top: 12px; font-size: 0.9rem; color: var(--ngc-muted); line-height: 1.8; padding-left: 24px; text-indent: -24px; }
.ngc-faq-a span { font-weight: 800; color: var(--ngc-navy); margin-right: 10px; }

/* ---------- Closing quotes ---------- */
.ngc-quote-list { max-width: 520px; margin: 32px auto; display: flex; flex-direction: column; gap: 10px; }
.ngc-quote-list p { text-align: center; font-size: 0.98rem; color: var(--ngc-ink); }

/* ---------- Sticky media + scrolling list ---------- */
.ngc-sticky-layout {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  gap: 48px;
  align-items: start;
}
.ngc-sticky-media {
  position: sticky;
  top: 32px;
  aspect-ratio: 3/4;
  border-radius: var(--ngc-radius);
  overflow: hidden;
}
.ngc-sticky-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ngc-sticky-media .ngc-sticky-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ngc-sticky-media .ngc-sticky-img.is-active { opacity: 1; }
.ngc-sticky-layout-lg { grid-template-columns: minmax(320px, 52%) 1fr; }
.ngc-sticky-layout-lg .ngc-sticky-media { aspect-ratio: 4/5; }
.ngc-sticky-list { display: flex; flex-direction: column; gap: 24px; }
.ngc-sticky-list .ngc-value-card { text-align: left; background: var(--ngc-paper); border-color: var(--ngc-navy); }
.ngc-sticky-list .ngc-value-desc { margin-top: 10px; }

.ngc-fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ngc-line); }
.ngc-fact-item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--ngc-line); }
.ngc-fact-item.is-full { grid-column: 1 / -1; }
.ngc-fact-label { font-size: 0.74rem; letter-spacing: 0.06em; font-weight: 700; color: var(--ngc-navy); }
.ngc-fact-value { font-size: 0.88rem; color: var(--ngc-ink); }
.ngc-fact-value a { color: var(--ngc-navy); text-decoration: underline; text-underline-offset: 2px; }

.ngc-company-banner { border-radius: 6px; overflow: hidden; }
.ngc-company-banner img { width: 100%; height: auto; display: block; }

/* ---------- Craftsmen marquee (two rows, opposite directions) ---------- */
.ngc-craftsmen-marquee {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ngc-marquee-row {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: ngc-marquee-x 46s linear infinite;
}
.ngc-marquee-row-b { animation-direction: reverse; }
.ngc-craftsmen-marquee:hover .ngc-marquee-row { animation-play-state: paused; }
.ngc-marquee-card { flex: 0 0 260px; width: 260px; }
@keyframes ngc-marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ngc-marquee-row { animation: none; }
  .ngc-craftsmen-marquee { overflow-x: auto; }
}
@media (max-width: 640px) {
  .ngc-marquee-card { flex-basis: 200px; width: 200px; }
}

/* ---------- Craftsmen modal (CSS-only, :target) ---------- */
.ngc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ngc-modal:target,
.ngc-modal.is-open { display: flex; }
.ngc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 55, 0.78);
}
.ngc-modal-box {
  position: relative;
  z-index: 1;
  background: var(--ngc-paper);
  border-radius: 8px;
  max-width: 760px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.ngc-modal-photo { position: relative; min-height: 340px; }
.ngc-modal-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ngc-modal-body { padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.ngc-modal-company {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--ngc-navy);
  padding: 4px 14px;
  border-radius: 999px;
}
.ngc-modal-name { margin-top: 4px; font-size: 1.2rem; font-weight: 700; color: var(--ngc-navy); }
.ngc-modal-catch { font-size: 0.98rem; font-weight: 700; color: var(--ngc-ink); }
.ngc-modal-text { font-size: 0.86rem; color: var(--ngc-muted); }
.ngc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(15, 36, 55, 0.06);
  color: var(--ngc-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
}
.ngc-modal-close:hover { background: var(--ngc-mist); }
@media (max-width: 640px) {
  .ngc-modal-box { grid-template-columns: 1fr; }
  .ngc-modal-photo { min-height: 0; aspect-ratio: 16/9; }
}

/* ---------- Post nav ---------- */
.ngc-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.ngc-post-nav-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--ngc-line);
}
.ngc-post-nav-card.is-next { text-align: right; justify-content: space-between; }
.ngc-post-nav-text { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ngc-post-nav-thumb { flex: 0 0 120px; width: 120px; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background: var(--ngc-mist); }
.ngc-post-nav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ngc-post-nav-card.is-empty { border: none; background: transparent; }
.ngc-post-nav-card:hover { border-color: var(--ngc-navy); }
.ngc-post-nav-card:hover .ngc-post-nav-title { color: var(--ngc-navy); }
.ngc-post-nav-dir { font-size: 0.75rem; letter-spacing: 0.05em; color: var(--ngc-muted); }
.ngc-post-nav-title { font-size: 0.95rem; font-weight: 700; color: var(--ngc-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ngc-nav { display: none; }
  .ngc-header-cta { display: none; }
  .ngc-hamburger { display: flex; }
  .ngc-fixed-footer { display: flex; }
  .ngc-side-pop { display: none; }
  body { padding-bottom: 58px; padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .ngc-btn-outline-dark { padding: 12px 16px; font-size: 0.84rem; gap: 6px; }
  .ngc-service-grid { grid-template-columns: 1fr; }
  .ngc-section-tight-top { padding-top: 32px; }
  .ngc-works-grid { grid-template-columns: repeat(2, 1fr); }
  .ngc-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .ngc-archive-card-media { aspect-ratio: 1/1; }
  .ngc-news-layout { grid-template-columns: 1fr; }
  .ngc-news-all { align-self: flex-start; }
  .ngc-footer-inner { grid-template-columns: 1fr; }
  .ngc-sitemap-grid { grid-template-columns: 1fr; gap: 32px; }
  .ngc-archive-with-sidebar { grid-template-columns: 1fr; }
  .ngc-archive-sidebar .ngc-sitemap-group { position: static; }
  .ngc-post-nav { grid-template-columns: 1fr; }
  .ngc-post-nav-thumb { flex-basis: 96px; width: 96px; }
  .ngc-leader-grid { grid-template-columns: 1fr; }
  .ngc-staff-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 8px;
  }
  .ngc-staff-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .ngc-values-grid { grid-template-columns: repeat(2, 1fr); }
  .ngc-work-gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .ngc-compare-grid { grid-template-columns: 1fr; }
  .ngc-compare-vs { display: none; }
  .ngc-fact-grid { grid-template-columns: 1fr; }
  .ngc-sticky-layout { grid-template-columns: 1fr; gap: 24px; }
  .ngc-sticky-media,
  .ngc-sticky-layout-lg .ngc-sticky-media { position: relative; top: 0; aspect-ratio: 16/9; }
  .ngc-sticky-list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 8px;
  }
  .ngc-sticky-list .ngc-value-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .ngc-values-grid-3.ngc-values-grid-white {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 8px;
  }
  .ngc-values-grid-3.ngc-values-grid-white .ngc-value-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .ngc-values-grid-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 8px;
  }
  .ngc-values-grid-scroll .ngc-value-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .ngc-work-gallery-4 {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin: 0 -24px;
    padding: 4px 24px 8px;
  }
  .ngc-work-gallery-4 .ngc-work-gallery-item {
    flex: 0 0 68%;
    scroll-snap-align: start;
  }
  .ngc-housing-media { aspect-ratio: 3/4; }
  .ngc-housing-overlay,
  .ngc-housing-row:nth-child(odd) .ngc-housing-overlay,
  .ngc-housing-row:nth-child(even) .ngc-housing-overlay {
    width: 100%;
    left: 0;
    right: 0;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(15, 36, 55, 0) 0%, rgba(15, 36, 55, 0.55) 35%, rgba(15, 36, 55, 0.88) 100%);
  }
  .ngc-housing-label { font-size: 1.2rem; }
}
.ngc-br-sp { display: none; }
@media (max-width: 560px) {
  .ngc-works-grid { grid-template-columns: 1fr; }
  .ngc-hero-content { padding: 64px 20px 80px; }
  .ngc-cta-inner { padding: 64px 20px; }
  .ngc-section-mist > .ngc-cta-inner { margin: 0 16px; }
  .ngc-cta-text { font-size: 1.3rem; }
  .ngc-work-gallery { grid-template-columns: 1fr; }
  .ngc-story-block { grid-template-columns: 1fr; direction: ltr; }
  .ngc-story-block:nth-child(even) { direction: ltr; }
  .ngc-staff-grid { grid-template-columns: 1fr; }
  .ngc-values-grid { grid-template-columns: 1fr; }
  .ngc-fact-item { grid-template-columns: 1fr; gap: 4px; }
  .ngc-br-sp { display: block; }
}

/* ---------- TOP: scroll-less business selector ---------- */
.ngc-top-select {
  position: relative;
  height: calc(100vh - 84px);
  height: calc(100svh - 84px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: var(--ngc-navy);
  color: #fff;
}
.ngc-top-select-title {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  pointer-events: none;
}
.ngc-top-select-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 0; }
.ngc-top-panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.ngc-top-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ngc-top-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,36,55,0.1) 30%, rgba(15,36,55,0.85) 100%);
}
.ngc-top-panel + .ngc-top-panel { border-left: 2px solid rgba(255,255,255,0.7); }
.ngc-top-panel:hover img { transform: scale(1.05); }
.ngc-top-panel-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 32px 28px 40px; width: 100%; text-align: center; align-items: center; }
.ngc-top-panel-name { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
.ngc-top-panel-en { font-size: 0.72rem; letter-spacing: 0.2em; opacity: 0.85; }
.ngc-top-panel-text { font-size: 0.86rem; line-height: 1.7; max-width: 26em; }
.ngc-top-panel-more { margin-top: 8px; padding: 10px 24px; border: 1px solid #fff; border-radius: 999px; font-size: 0.82rem; font-weight: 700; transition: background 0.2s, color 0.2s; }
.ngc-top-panel:hover .ngc-top-panel-more { background: #fff; color: var(--ngc-navy); }
@media (max-width: 900px) {
  .ngc-top-select { min-height: 0; }
  .ngc-top-select-title { top: 14px; font-size: 1.1rem; letter-spacing: 0.04em; }
  .ngc-top-select-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  .ngc-top-panel + .ngc-top-panel { border-left: 0; border-top: 2px solid rgba(255,255,255,0.7); }
  .ngc-top-panel-body { padding: 16px 18px 18px; gap: 4px; }
  .ngc-top-panel-text, .ngc-top-panel-en { display: none; }
  .ngc-top-panel-more { margin-top: 4px; padding: 6px 18px; }
}

/* ---------- 空き家見守りサービス バナー ---------- */
.ngc-akiya-banner-section { padding: 48px 0; background: var(--ngc-paper); }
.ngc-akiya-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 40px;
  border-radius: var(--ngc-radius);
  background: linear-gradient(100deg, var(--ngc-navy) 0%, #2b5679 100%);
  color: #fff;
  transition: opacity 0.2s;
}
.ngc-akiya-banner:hover { opacity: 0.9; color: #fff; }
.ngc-akiya-banner-copy { display: flex; flex-direction: column; gap: 8px; }
.ngc-akiya-banner-eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; opacity: 0.8; }
.ngc-akiya-banner-title { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 800; }
.ngc-akiya-banner-text { font-size: 0.88rem; line-height: 1.8; max-width: 44em; opacity: 0.95; }
.ngc-akiya-banner-more { flex-shrink: 0; padding: 12px 26px; border: 1px solid #fff; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
@media (max-width: 700px) {
  .ngc-akiya-banner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}

/* ---------- TOP: 事業内容カード（1画面内、パネル下部に重ねる） ---------- */
.ngc-top-select { background: var(--ngc-mist); color: var(--ngc-ink); }
.ngc-top-select-grid { padding-bottom: 70px; background: var(--ngc-navy); }
.ngc-top-cards { position: relative; z-index: 4; margin-top: -70px; padding-bottom: 20px; }
.ngc-top-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ngc-top-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 16px 20px 18px; background: var(--ngc-paper); border: 1px solid var(--ngc-line);
  border-radius: var(--ngc-radius); box-shadow: 0 8px 24px rgba(23,50,76,0.12);
}
.ngc-top-card h2 { font-size: 1.1rem; font-weight: 800; color: var(--ngc-navy); }
.ngc-top-card-en { font-size: 0.66rem; letter-spacing: 0.18em; color: var(--ngc-muted); }
.ngc-top-card p { font-size: 0.8rem; line-height: 1.6; color: var(--ngc-muted); flex: 1; margin: 4px 0 6px; }
.ngc-top-card-link { font-size: 0.8rem; font-weight: 700; color: var(--ngc-navy); }
.ngc-top-card-link:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .ngc-top-select { height: auto; }
  .ngc-top-select-grid { grid-template-rows: repeat(3, 200px); padding-bottom: 0; }
  .ngc-top-cards { margin-top: 0; padding: 20px 16px; }
  .ngc-top-cards-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* TOP見出しを白文字で見やすく */
.ngc-top-select-title {
  color: #fff;
  top: 0;
  padding: 36px 16px 56px;
  background: linear-gradient(180deg, rgba(15,36,55,0.65) 0%, rgba(15,36,55,0) 100%);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
/* 事業内容カード（PDF準拠: アイコン＋見出し／説明／リンク） */
.ngc-top-card { align-items: stretch; text-align: left; gap: 8px; padding: 18px 22px 16px; background: #fbf8f3; }
.ngc-top-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ngc-line); }
.ngc-top-card-icon { color: var(--ngc-navy); display: flex; flex-shrink: 0; }
.ngc-top-card-head h2 { font-size: 1.1rem; line-height: 1.3; }
.ngc-top-card p { margin: 0; }
.ngc-top-card-link { align-self: flex-end; padding: 6px 14px; border: 1px solid var(--ngc-navy); border-radius: 999px; font-size: 0.76rem; }
.ngc-top-card-link:hover { background: var(--ngc-navy); color: #fff; text-decoration: none; }
@media (max-width: 900px) { .ngc-top-select-title { padding: 18px 12px 36px; } }

/* カード見出しを中央寄せ */
.ngc-top-card-head { justify-content: center; text-align: center; }
.ngc-top-card-head > div { display: flex; flex-direction: column; align-items: center; }
.ngc-top-card p { text-align: center; }

/* パネルのボタン: 淡いグリーン */
.ngc-top-panel-more { background: #70bc3a; border-color: #70bc3a; color: #fff; }
.ngc-top-panel:hover .ngc-top-panel-more { background: #84cc4f; border-color: #84cc4f; color: #fff; }
.ngc-top-select-title { margin: 0; }

/* カード: ボタン中央寄せ・リード文を少し大きく */
.ngc-top-card-link { align-self: center; }
.ngc-top-card p { font-size: 0.9rem; line-height: 1.7; }
.ngc-top-card { gap: 10px; }
.ngc-top-panel-text { display: block; font-size: 0.95rem; font-weight: 500; line-height: 1.6; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

/* カード: ボタンをテキストリンクに戻す・アイコン拡大 */
.ngc-top-card-link { padding: 0; border: 0; border-radius: 0; background: none; font-size: 0.85rem; }
.ngc-top-card-link:hover { background: none; color: var(--ngc-navy); text-decoration: underline; }
.ngc-top-card-head { gap: 16px; }

/* TOP: カード背景（ベージュ＋左のネイビーを斜めに区切る／PDF準拠） */
.ngc-top-select { background: #f6f1e8; }
.ngc-top-select-grid { padding-bottom: 0; background: transparent; }
.ngc-top-cards-bg { position: relative; flex: none; background: #f6f1e8; }
.ngc-top-cards-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ngc-navy);
  clip-path: polygon(0 0, 47% 0, 42% 34%, 42% 66%, 0 66%);
}
.ngc-top-cards { z-index: 4; }
.ngc-top-card-head { border-bottom: 0; padding-bottom: 0; position: relative; }
.ngc-top-card-head::after { content: none; }
.ngc-top-card h2 + .ngc-top-card-en { margin-bottom: 0; }
.ngc-top-card p { position: relative; padding-top: 14px; }
.ngc-top-card p::before { content: ""; position: absolute; top: 0; left: 50%; width: 36px; height: 2px; margin-left: -18px; background: #c9b79c; }
@media (max-width: 900px) {
  .ngc-top-cards-bg::before { clip-path: polygon(0 0, 100% 0, 100% 18%, 0 30%); }
}
.ngc-top-panel-body { padding-bottom: 92px; }
@media (max-width: 900px) { .ngc-top-panel-body { padding-bottom: 18px; } }
/* 重ねずにパネル直下へ置く（斜めの区切りが見えるように） */
@media (min-width: 901px) {
  .ngc-top-cards { margin-top: 0; padding-top: 28px; padding-bottom: 22px; }
  .ngc-top-panel-body { padding-bottom: 36px; }
  .ngc-top-cards-bg::before { clip-path: polygon(0 0, 47% 0, 42% 20%, 42% 70%, 0 70%); }
}

/* 明朝体（PDF準拠） */
.ngc-top-select-title, .ngc-top-panel-name, .ngc-top-card h2 { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 600; }
.ngc-top-select-title { font-weight: 600; }

/* 全ページの見出し(h1/h2)を明朝体に統一 */
h1, h2, .ngc-section-head h2, .ngc-work-hero h1, .ngc-cta-text { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 600; }

/* 職人さんたち: スライドせず固定のグリッド表示 */
.ngc-craftsmen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .ngc-craftsmen-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 560px) { .ngc-craftsmen-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 900px) { .ngc-br-pc { display: none; } }
.ngc-logo-icon svg { display: block; }
.ngc-top-panel:nth-child(2) img { object-position: 50% 45%; }

/* TOP: 小さめノートPC（画面の高さが低いとき）は文字を詰めて人物の顔にかからないようにする */
@media (min-width: 901px) and (max-height: 860px) {
  .ngc-top-panel-text { display: none; }
  .ngc-top-panel-body { padding-bottom: 24px; gap: 6px; }
  .ngc-top-panel-name { font-size: 1.7rem; }
  .ngc-top-panel-more { margin-top: 4px; padding: 8px 22px; }
}

/* TOP: スマホはパネルを縦積みではなく、横スワイプのスライダーにする */
@media (max-width: 900px) {
  .ngc-top-select-grid {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    height: 64vh;
    height: 64svh;
    min-height: 400px;
    max-height: 600px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ngc-top-select-grid::-webkit-scrollbar { display: none; }
  .ngc-top-panel { flex: 0 0 86%; scroll-snap-align: center; }
  .ngc-top-panel + .ngc-top-panel { border-top: 0; border-left: 2px solid rgba(255,255,255,0.7); }
  .ngc-top-panel-body { padding: 24px 20px 32px; gap: 8px; }
  .ngc-top-panel-text, .ngc-top-panel-en { display: block; }
  .ngc-top-panel-name { font-size: 1.8rem; }
  .ngc-top-panel-more { margin-top: 8px; padding: 10px 24px; }
}

/* パネルのボタンを少し小さく */
.ngc-top-panel-more { padding: 8px 20px; font-size: 0.78rem; }
@media (min-width: 901px) and (max-height: 860px) { .ngc-top-panel-more { padding: 6px 18px; } }
@media (max-width: 900px) { .ngc-top-panel-more { margin-top: 6px; padding: 7px 18px; font-size: 0.76rem; } }

/* ヘッダー: メニューの折り返し・重なりを防ぐ */
.ngc-nav a { white-space: nowrap; }
.ngc-logo { flex-shrink: 0; }
@media (max-width: 1200px) {
  .ngc-header-inner { gap: 16px; }
  .ngc-nav { gap: 20px; font-size: 0.88rem; }
  .ngc-header-cta { padding: 10px 18px; font-size: 0.85rem; }
}
/* 幅1024px以下はハンバーガーメニューに切り替える（PCが小さいときにメニューが重ならないように） */
@media (max-width: 1024px) {
  .ngc-nav { display: none; }
  .ngc-header-cta { display: none; }
  .ngc-hamburger { display: flex; }
}

/* TOP: 事業内容カードを白に */
.ngc-top-card { background: #fff; }

/* ---------- アニメーション（控えめ） ---------- */
/* スクロールでふわっと表示（JSが有効なときだけ） */
.ngc-js .ngc-work-hero .ngc-wrap > *:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-section-head:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-tag-row:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-contact-lede:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-entry-lede:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-video-embed:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-story-block:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-values-grid:not(.ngc-values-grid-scroll) .ngc-value-card:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-compare-card:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-housing-row:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-archive-grid .ngc-archive-card:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-craftsmen-grid .ngc-archive-card:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-staff-card:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-leader-card:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-fact-item:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-work-gallery-item:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-faq-item:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-news-layout > *:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-list .ngc-list-item:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-akiya-banner:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-top-card:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-sitemap-group:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-cta-inner:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-post-nav-card:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *),
.ngc-js .ngc-entry-content > *:not(.ngc-in):not(.ngc-done):not(.ngc-top-select-grid *):not(.ngc-sticky-list *) {
  opacity: 0;
  transform: translateY(22px);
}
.ngc-js .ngc-in:not(.ngc-done) {
  transition-property: opacity, transform !important;
  transition-duration: 0.7s !important;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

/* TOP: 最初の画面は読み込み時に順番に表示 */
@keyframes ngc-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ngc-fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes ngc-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.ngc-top-select-title { animation: ngc-fade-down 0.9s ease both; }
.ngc-top-panel { animation: ngc-fade-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.ngc-top-panel:nth-child(1) { animation-delay: 0.15s; }
.ngc-top-panel:nth-child(2) { animation-delay: 0.3s; }
.ngc-top-panel:nth-child(3) { animation-delay: 0.45s; }
.ngc-top-panel img { animation: ngc-kenburns 2.4s ease-out both; }

/* ホバー: ボタン・カードがわずかに浮く */
.ngc-btn { transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.ngc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 36, 55, 0.18); }
.ngc-top-panel-more { transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s; }
.ngc-top-panel:hover .ngc-top-panel-more { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); }
.ngc-top-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.ngc-top-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(23, 50, 76, 0.18); }
.ngc-akiya-banner { transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s; }
.ngc-akiya-banner:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23, 50, 76, 0.28); }
.ngc-post-nav-card { transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease; }
.ngc-post-nav-card:not(.is-empty):hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15, 36, 55, 0.12); }
.ngc-housing-media img { transition: transform 0.8s ease; }
.ngc-housing-row:hover .ngc-housing-media img { transform: scale(1.04); }
.ngc-nav a { transition: opacity 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .ngc-top-select-title, .ngc-top-panel, .ngc-top-panel img { animation: none; }
  .ngc-btn:hover, .ngc-top-card:hover, .ngc-akiya-banner:hover, .ngc-post-nav-card:hover { transform: none; }
}
.ngc-top-select-grid { background: var(--ngc-navy); }

/* TOP 空き家見守りバナー: スマホではボタンを中央寄せ */
@media (max-width: 700px) {
  .ngc-akiya-banner-more { margin: 0 auto; }
}

/* TOP お知らせ一覧ボタン: スマホでは中央寄せ */
@media (max-width: 900px) {
  .ngc-news-all { align-self: center; margin: 0 auto; }
}

/* ---------- Header dropdown (住宅 > リノベーション) ---------- */
.ngc-nav { align-items: center; }
.ngc-nav-item { position: relative; display: flex; align-items: center; padding: 30px 0; margin: -30px 0; }
.ngc-nav-caret { font-size: 0.7em; opacity: 0.6; }
.ngc-nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 200px;
  padding: 0;
  background: var(--ngc-paper);
  border: 1px solid var(--ngc-line);
  box-shadow: 0 8px 24px rgba(15, 36, 55, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 30;
}
.ngc-nav-dropdown a { display: block; padding: 14px 24px; line-height: 1.6; white-space: nowrap; }
.ngc-nav-dropdown a:hover { background: none; color: var(--ngc-navy); opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.ngc-nav-item.has-dropdown:hover .ngc-nav-dropdown,
.ngc-nav-item.has-dropdown:focus-within .ngc-nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.ngc-mobile-nav-links .ngc-mobile-sub { font-size: 0.95rem; font-weight: 500; margin-top: -8px; opacity: 0.85; }
.ngc-mobile-nav-links .ngc-mobile-sub::before { content: "└ "; }

/* ---------- Housing row: 規格型住宅（写真の左に余白を足し、他のバナーと同じオーバーレイ構成にする） ---------- */
.ngc-housing-row.is-split { aspect-ratio: 21/9; background: var(--ngc-navy-deep); }
.ngc-housing-row.is-split .ngc-housing-media { height: 100%; aspect-ratio: auto; box-sizing: border-box; padding-left: min(340px, 60%); }
.ngc-housing-row.is-split .ngc-housing-media { position: relative; overflow: hidden; }
.ngc-housing-row.is-split .ngc-housing-media::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: var(--ngc-split-bg) center / cover no-repeat;
  filter: blur(22px) brightness(0.6);
}
.ngc-housing-row.is-split .ngc-housing-media img { position: relative; object-fit: contain; }
.ngc-housing-row.is-split:hover .ngc-housing-media img { transform: none; }
@media (max-width: 900px) {
  .ngc-housing-row.is-split { aspect-ratio: auto; }
  .ngc-housing-row.is-split .ngc-housing-media { height: auto; padding-left: 0; }
  .ngc-housing-row.is-split .ngc-housing-media img { height: auto; }
  .ngc-housing-row.is-split .ngc-housing-overlay { position: static; background: var(--ngc-navy-deep); }
}

/* 職人モーダル（ホバー操作時）: 暗幕はマウスを通し、下のカードにも続けてホバーできるようにする */
.ngc-hover-modal .ngc-modal.is-open { pointer-events: none; }
.ngc-hover-modal .ngc-modal.is-open .ngc-modal-box { pointer-events: auto; }

/* ---------- /store/ : 店舗 / 福祉・医療施設 の振り分けパネル ---------- */
.ngc-split-select { display: grid; grid-template-columns: 1fr 1fr; height: clamp(300px, 36vw, 440px); background: var(--ngc-navy-deep); scroll-margin-top: 80px; }
#store, #welfare { scroll-margin-top: 80px; }
.ngc-split-panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; color: #fff; }
.ngc-split-panel + .ngc-split-panel { border-left: 2px solid rgba(255, 255, 255, 0.7); }
.ngc-split-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ngc-split-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 36, 55, 0.15) 0%, rgba(15, 36, 55, 0.78) 100%); }
.ngc-split-panel:hover img { transform: scale(1.05); }
.ngc-split-panel-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 24px 36px; text-align: center; }
.ngc-split-panel-name { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; }
.ngc-split-panel-en { font-size: 0.72rem; letter-spacing: 0.2em; opacity: 0.85; }
.ngc-split-panel-text { font-size: 0.92rem; line-height: 1.6; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.ngc-split-panel-more { margin-top: 10px; padding: 10px 24px; border-radius: 999px; background: #70bc3a; font-size: 0.82rem; font-weight: 700; transition: background 0.2s; }
.ngc-split-panel:hover .ngc-split-panel-more { background: #84cc4f; }
@media (max-width: 700px) {
  .ngc-split-select { height: auto; grid-template-columns: 1fr; grid-template-rows: repeat(2, 200px); }
  .ngc-split-panel + .ngc-split-panel { border-left: 0; border-top: 2px solid rgba(255, 255, 255, 0.7); }
  .ngc-split-panel-body { padding: 16px 18px 18px; }
  .ngc-split-panel-text { display: none; }
}

/* 文節単位で改行させる（単語の途中で折り返さない） */
.ngc-nb { display: inline-block; }

/* よくあるご質問: クリーム色の背景 */
.ngc-section-cream { background: #f6f1e8; }

/* 福祉・医療施設: カードの見出しが1文字だけ折り返さないよう均等に折り返す */
#welfare .ngc-value-title,
#welfare-values .ngc-value-title { text-wrap: balance; }

/* 福祉・医療施設「大切にしていること」: 画像を右、カードを左に縦並び（PCのみ左右入れ替え） */
@media (min-width: 901px) {
  .ngc-sticky-layout-rev.ngc-sticky-layout-lg { grid-template-columns: 1fr minmax(320px, 52%); }
  .ngc-sticky-layout-rev .ngc-sticky-media { order: 2; }
}

/* ---------- /store/ ワンストップ: 写真グリッド（上の帯 / 左右の写真 + 中央カード / 下の帯） ---------- */
#store.ngc-onestop { padding: 6px 0 0; overflow: hidden; }
.ngc-onestop-grid {
  --os-h: clamp(220px, 27vw, 400px);
  --os-overlap: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: var(--os-h) auto var(--os-h);
  gap: 6px;
}
.ngc-onestop-grid figure { margin: 0; overflow: hidden; min-height: 0; }
.ngc-onestop-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }
.ngc-onestop-grid figure:hover img { transform: scale(1.06); }
.os-t1, .os-t2, .os-t3, .os-t4 { grid-row: 1; }
.os-b1, .os-b2, .os-b3, .os-b4 { grid-row: 3; }
.os-side-l { grid-column: 1; grid-row: 2; }
.os-side-r { grid-column: 4; grid-row: 2; }
.ngc-onestop-card {
  position: relative;
  z-index: 2;
  grid-column: 2 / 4;
  grid-row: 2;
  margin: calc(-1 * var(--os-overlap)) 0;
  padding: 52px 48px 48px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(15, 36, 55, 0.18);
  text-align: center;
}
.ngc-onestop-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 4px;
  background: var(--ngc-navy);
}
.ngc-onestop-card .ngc-eyebrow {
  display: inline-block;
  margin-top: 0;
  padding: 6px 18px;
  border: 1px solid var(--ngc-navy);
  border-radius: 999px;
  color: var(--ngc-navy);
  font-weight: 700;
  text-align: center;
}
.ngc-onestop-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; color: var(--ngc-navy); margin: 18px 0 16px; text-wrap: balance; }
.ngc-onestop-card p { max-width: 38em; margin-left: auto; margin-right: auto; }
/* 「こんなお店をつくりたい…」: 白いカードの中に収める */
.ngc-onestop-card .ngc-story-callout {
  position: static;
  width: min(560px, 100%);
  margin: 28px auto 0;
  padding: 18px 28px;
  border: 0;
  border-radius: 6px;
  background: var(--ngc-navy);
  color: #fff;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 16px 36px rgba(15, 36, 55, 0.3);
}
@media (max-width: 900px) {
  .ngc-onestop-grid { --os-overlap: 40px; grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: auto; }
  .ngc-onestop-grid figure { aspect-ratio: 4 / 3; }
  .os-t1, .os-t2, .os-t3, .os-t4, .os-b1, .os-b2, .os-b3, .os-b4, .os-side-l, .os-side-r { grid-row: auto; grid-column: auto; }
  .os-side-l { order: 5; } .os-side-r { order: 6; }
  .os-t1, .os-t2, .os-t3, .os-t4 { order: 1; }
  .ngc-onestop-card { order: 7; grid-column: 1 / 3; grid-row: auto; margin: calc(-1 * var(--os-overlap)) 16px; padding: 40px 22px 36px; }
  .os-b1, .os-b2, .os-b3, .os-b4 { order: 8; }
}

/* ---------- 福祉・医療施設づくり: ワンストップと同じ構成を、落ち着いたトーンで ---------- */
#welfare.ngc-welfare-intro { padding: 56px 0 88px; overflow: hidden; }
.ngc-onestop-grid.is-calm { --os-h: clamp(190px, 21vw, 300px); --os-overlap: 60px; gap: 8px; }
.ngc-onestop-grid.is-calm img { filter: saturate(0.9) brightness(1.02); }
.ngc-onestop-grid.is-calm .ngc-onestop-card { padding: 48px 44px 44px; box-shadow: 0 18px 44px rgba(15, 36, 55, 0.12); }
.ngc-onestop-grid.is-calm .ngc-onestop-card p + p { margin-top: 14px; }
.ngc-welfare-menu { margin-top: 72px; }
@media (max-width: 900px) {
  .ngc-onestop-grid.is-calm { --os-overlap: 32px; }
  .ngc-onestop-grid.is-calm .ngc-onestop-card { padding: 40px 22px 32px; }
  .ngc-welfare-menu { margin-top: 48px; }
}

/* ---------- /company/ 職人: スマホ表示の整理 ---------- */
html.ngc-modal-lock { overflow: hidden; }
.ngc-modal-box { overscroll-behavior: contain; }
@media (max-width: 900px) {
  .ngc-modal { padding: 16px; }
  .ngc-modal-box { max-height: 88vh; max-height: 88dvh; }
  .ngc-modal-body { padding: 22px 20px 26px; }
  .ngc-modal-close { background: rgba(255, 255, 255, 0.9); width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  /* 写真の上に文字を重ねず、写真の下に名前・会社・ひとことを並べる */
  .ngc-craftsmen-grid .ngc-archive-card { display: flex; flex-direction: column; background: var(--ngc-navy); }
  .ngc-craftsmen-grid .ngc-archive-card-media { aspect-ratio: 1 / 1; }
  .ngc-craftsmen-grid .ngc-archive-card-overlay {
    position: static;
    inset: auto;
    flex: 1;
    background: none;
    justify-content: flex-start;
    gap: 4px;
    padding: 10px 10px 14px;
  }
  .ngc-craftsmen-grid .ngc-archive-card-tag {
    position: static;
    align-self: flex-start;
    font-size: 0.6rem;
    line-height: 1.4;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.16);
  }
  .ngc-craftsmen-grid .ngc-archive-card-overlay h3 { font-size: 0.95rem; margin-top: 4px; -webkit-line-clamp: 1; }
  .ngc-craftsmen-grid .ngc-archive-card-link {
    margin-top: 2px;
    font-size: min(0.64rem, 2.5vw);
    line-height: 1.5;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}
.ngc-modal-body p { margin: 0; }
@media (max-width: 900px) { .ngc-modal-box { max-height: calc(100dvh - 32px - 70px); } }
