/* =========================================================
   Nシステム - コーポレートサイト main.css
   モダン・スタイリッシュ / 黒基調 / アクセント：Signal Red & Electric Blue
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --c-ink: #0E0E10;
  --c-paper: #FAFAF7;
  --c-text: #1A1A1A;
  --c-sub: #6B6B6B;
  --c-line: #E5E5E5;
  --c-accent: #E63946;    /* Signal Red */
  --c-accent2: #3A86FF;   /* Electric Blue */
  --c-accent3: #F1D302;   /* 使いどころ限定のハイライト */

  --ff-jp: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --ff-en: "Inter", system-ui, -apple-system, sans-serif;
  --ff-display: "Archivo", "Inter", system-ui, sans-serif;

  --container: min(1240px, 92vw);
  --header-h: 76px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-jp);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--c-text);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
address { font-style: normal; }

/* ---------- Utilities ---------- */
.container { width: var(--container); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section__eyebrow {
  font-family: var(--ff-en);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--c-accent);
  margin: 0 0 14px;
}
.section__title {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
  letter-spacing: .02em;
  margin: 0 0 16px;
}
.section__desc { color: var(--c-sub); margin: 0; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; max-width: none;
}
.section__head--row .section__title { margin-bottom: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-en);
  font-weight: 600;
  letter-spacing: .04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--c-accent); }
.link-arrow:hover span { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
  border: 1.5px solid transparent;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: #c72e3b; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: var(--c-ink); }
.btn--lg { padding: 18px 40px; font-size: 16px; }
.btn span { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(14,14,16,0);
  backdrop-filter: blur(0);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--c-line);
}
.site-header.is-scrolled .logo,
.site-header.is-scrolled .gnav__list > li > a,
.site-header.is-scrolled .hamburger span { color: var(--c-text); }
.site-header.is-scrolled .hamburger span { background: var(--c-text); }

.site-header__inner {
  height: 100%;
  width: var(--container);
  margin-inline: auto;
  display: flex; align-items: center;
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff;
  font-family: var(--ff-display);
  letter-spacing: -.02em;
  transition: color .3s var(--ease);
}
.logo__mark {
  position: relative;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  background: #0E0E10;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  overflow: hidden;
  flex: 0 0 auto;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.logo__mark::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,.18), rgba(58,134,255,.12));
  mix-blend-mode: screen;
  opacity: .7;
}
.logo__mark svg { width: 36px; height: 36px; position: relative; z-index: 1; }
.logo__letter rect,
.logo__letter polygon { fill: #fff; }
.logo__peak { fill: var(--c-accent); }

.logo__text {
  display: inline-flex; flex-direction: column; line-height: 1;
}
.logo__word {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.01em;
}
.logo__sub {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .28em;
  color: rgba(255,255,255,.55);
  margin-top: 3px;
}

.site-header.is-scrolled .logo__word { color: var(--c-text); }
.site-header.is-scrolled .logo__sub { color: var(--c-sub); }

.logo--inverse { color: #fff; }
.logo--inverse .logo__sub { color: rgba(255,255,255,.55); }

/* Global nav */
.gnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1 1 auto;
  margin-left: auto;
}
.gnav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.gnav__list > li > a {
  display: inline-flex; flex-direction: column; align-items: center;
  color: #fff;
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 1;
  padding: 8px 0;
  position: relative;
  transition: color .3s var(--ease);
}
.gnav__list > li > a span {
  font-family: var(--ff-jp);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .1em;
  margin-top: 4px;
  opacity: .7;
}
.gnav__list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .35s var(--ease);
}
.gnav__list > li > a:hover::after { transform: scaleX(1); transform-origin: left center; }

.gnav__cta { padding: 12px 22px; font-size: 14px; }
.header-contact {
  display: none;
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}

/* submenu (desktop) */
.has-sub { position: relative; }
.gnav__sub {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: #fff; color: var(--c-text);
  min-width: 260px;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.has-sub:hover .gnav__sub,
.has-sub:focus-within .gnav__sub {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.gnav__sub li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.gnav__sub li a:hover { background: var(--c-ink); color: #fff; }

/* hamburger */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  position: relative;
}
.hamburger span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: #fff;
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s var(--ease);
}
.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--c-ink);
  color: #fff;
  overflow: hidden;
  display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 40%, transparent 100%);
}
.hero__glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(230,57,70,.25), transparent 70%),
    radial-gradient(40% 40% at 80% 70%, rgba(58,134,255,.22), transparent 70%);
  filter: blur(20px);
}
.hero__gunma {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: min(620px, 58%);
  aspect-ratio: 1 / 1;
  opacity: .08;
  pointer-events: none;
  mask-image: linear-gradient(135deg, #000 30%, transparent 90%);
}
.hero__gunma img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(2.1) contrast(1.1);
  mix-blend-mode: screen;
}
.hero__inner {
  position: relative; z-index: 1;
  width: var(--container); margin-inline: auto;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero__eyebrow {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.75);
  margin: 0 0 22px;
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(44px, 10vw, 136px);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0 0 28px;
}
.hero__title span { display: block; }
.hero__title span:nth-child(2) { color: transparent; -webkit-text-stroke: 2px #fff; }

.hero__lead {
  font-family: var(--ff-jp);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 0 0 40px;
}
.hero__accent {
  background: linear-gradient(transparent 60%, rgba(230,57,70,.45) 60%);
  padding: 0 .15em;
  color: #fff;
  font-weight: 700;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; right: 24px; bottom: 32px;
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl;
}
.hero__scroll span {
  width: 1px; height: 60px;
  background: rgba(255,255,255,.4);
  position: relative; overflow: hidden;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 30px;
  background: #fff;
  top: -30px;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { top: -30px; }
  100% { top: 100%; }
}

/* ---------- About intro ---------- */
.about-intro__layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-intro__body {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  max-width: 960px;
}
.about-intro__body p {
  font-size: 16px; line-height: 2; color: var(--c-text); margin: 0;
}

/* ---------- Gunma Map ---------- */
.gunma-map {
  margin: 0;
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, #F5F5F1 0%, #ECECE7 100%);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.gunma-map::before {
  /* 幾何パターン装飾（背景グリッド） */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,14,16,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,14,16,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
}
.gunma-map__svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}
.gunma-map__shape {
  filter:
    grayscale(1)
    brightness(.22)
    contrast(1.35)
    drop-shadow(0 8px 24px rgba(14,14,16,.18));
}
.gunma-map__pin .pin-dot {
  fill: var(--c-accent);
}
.gunma-map__pin--hq .pin-dot {
  fill: var(--c-accent);
  filter: drop-shadow(0 0 6px rgba(230,57,70,.8));
}
.gunma-map__pin--hq .pin-ring {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.2;
  opacity: .5;
  transform-origin: 505px 478px;
  animation: pinPulse 2.6s ease-out infinite;
}
.gunma-map__pin--origin .pin-dot {
  fill: #fff;
  stroke: var(--c-accent);
  stroke-width: 1.5;
}
@keyframes pinPulse {
  0%   { transform: scale(.4); opacity: .7; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}
.gunma-map__labels .label {
  font-family: var(--ff-jp);
  font-size: 34px;
  font-weight: 700;
  fill: #4A2B12;
  letter-spacing: .08em;
}
.gunma-map__labels .label--hq {
  fill: var(--c-accent);
  font-weight: 800;
}
.gunma-map__labels .label--origin {
  fill: #4A2B12;
}
.gunma-map__caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  text-align: center;
}
.gunma-map__caption-jp {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-text);
}
.gunma-map__caption-en {
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--c-sub);
}
@media (prefers-reduced-motion: reduce) {
  .gunma-map__pin--hq .pin-ring { animation: none; }
}

/* ---------- Services ---------- */
.services { background: #fff; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 36px 28px 28px;
  background: var(--c-ink); color: #fff;
  border-radius: 18px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .4s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,.0), rgba(58,134,255,.0));
  transition: background .4s var(--ease);
  z-index: 0;
}
.service-card:hover { transform: translateY(-6px); }
.service-card:hover::before {
  background: linear-gradient(135deg, rgba(230,57,70,.25), rgba(58,134,255,.22));
}
.service-card > * { position: relative; z-index: 1; }
.service-card__num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 14px; letter-spacing: .2em;
  color: var(--c-accent);
}
.service-card__title {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: .02em;
  margin: 12px 0 18px;
}
.service-card__text {
  font-size: 14px; line-height: 1.8;
  color: rgba(255,255,255,.78);
  margin: 0 0 24px;
}
.service-card__tag {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 11px; letter-spacing: .25em;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}
.service-card__price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--ff-en);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(230,57,70,.14);
  border: 1px solid rgba(230,57,70,.5);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 14px;
  width: fit-content;
}
.service-card__price small {
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: 11px;
  color: rgba(255,255,255,.7);
  letter-spacing: 0;
}
.ext-ico {
  display: inline-block;
  margin-left: 4px;
  font-size: .9em;
  opacity: .75;
}

/* ---------- Works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.works-card a {
  display: block;
  transition: transform .4s var(--ease);
}
.works-card a:hover { transform: translateY(-4px); }
.works-card__thumb {
  position: relative; aspect-ratio: 4/3;
  border-radius: 12px;
  background: linear-gradient(135deg, #1A1A1A, #333);
  overflow: hidden;
  display: grid; place-items: center;
  color: rgba(255,255,255,.5);
  font-family: var(--ff-display);
  font-weight: 900;
  letter-spacing: .2em;
  margin-bottom: 14px;
}
.works-card__thumb::before {
  content: attr(data-placeholder);
  font-size: 20px;
}
.works-card__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 8px);
}
.works-card__meta {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--ff-en);
  font-size: 11px; letter-spacing: .15em;
  color: var(--c-sub);
  margin-bottom: 6px;
}
.works-card__title {
  font-weight: 700; font-size: 15px; line-height: 1.6;
  margin: 0;
}

/* tags */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 10px; letter-spacing: .15em;
  background: var(--c-line); color: var(--c-text);
}
.tag--it      { background: #E8EEFF; color: #1C3FAA; }
.tag--x       { background: #FFE5E9; color: #B8202E; }
.tag--culture { background: #FFF4C2; color: #7A5B00; }
.tag--model   { background: #E6F8EE; color: #12774B; }
.tag--notice  { background: #EFEFEF; color: #333; }

/* ---------- News ---------- */
.news { background: #fff; }
.news-list li + li { border-top: 1px solid var(--c-line); }
.news-list a {
  display: grid;
  grid-template-columns: 130px 110px 1fr;
  gap: 20px; align-items: center;
  padding: 22px 0;
  transition: background .25s var(--ease);
}
.news-list a:hover { background: rgba(14,14,16,.03); }
.news-list time {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 13px; letter-spacing: .1em;
  color: var(--c-sub);
}
.news-list p { margin: 0; font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  background: var(--c-ink); color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(230,57,70,.25), transparent 70%),
    radial-gradient(50% 50% at 80% 70%, rgba(58,134,255,.2), transparent 70%);
}
.cta__inner { position: relative; max-width: 720px; text-align: center; }
.cta__eyebrow {
  font-family: var(--ff-en); font-weight: 800;
  font-size: 12px; letter-spacing: .3em;
  color: var(--c-accent);
  margin: 0 0 20px;
}
.cta__title {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.5;
  margin: 0 0 22px;
}
.cta__lead { color: rgba(255,255,255,.78); margin: 0 0 36px; }
.cta__ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111114; color: rgba(255,255,255,.76);
  padding: 80px 0 28px;
  font-size: 14px;
}
.site-footer__grid {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer__brand .logo { color: #fff; }
.site-footer__brand address { margin-top: 18px; line-height: 1.9; }
.site-footer__brand a { color: inherit; border-bottom: 1px dotted rgba(255,255,255,.3); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer__cols h4 {
  font-family: var(--ff-en); font-weight: 800;
  font-size: 12px; letter-spacing: .3em;
  color: #fff; margin: 0 0 16px;
}
.site-footer__cols ul li { margin-bottom: 10px; }
.site-footer__cols ul li a { transition: color .25s var(--ease); }
.site-footer__cols ul li a:hover { color: #fff; }

.sns a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.sns a:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

.site-footer__bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.55);
}
.site-footer__bottom ul { display: flex; gap: 18px; }
.site-footer__bottom a:hover { color: #fff; }

/* ---------- Sub page (固定 header) ---------- */
.site-header.is-solid {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header.is-solid .logo__word { color: var(--c-text); }
.site-header.is-solid .logo__sub { color: var(--c-sub); }
.site-header.is-solid .gnav__list > li > a,
.site-header.is-solid .hamburger span { color: var(--c-text); }
.site-header.is-solid .hamburger span { background: var(--c-text); }

.is-sub main { padding-top: var(--header-h); }

.page-hero {
  background: var(--c-ink); color: #fff;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 15% 30%, rgba(230,57,70,.25), transparent 70%),
    radial-gradient(50% 50% at 85% 70%, rgba(58,134,255,.2), transparent 70%);
}
.page-hero > * { position: relative; }
.page-hero__eyebrow {
  font-family: var(--ff-en); font-weight: 800;
  font-size: 12px; letter-spacing: .3em;
  color: var(--c-accent); margin: 0 0 12px;
}
.page-hero__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -.01em;
  line-height: 1; margin: 0 0 20px;
}
.breadcrumb {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--ff-en); font-size: 12px;
  letter-spacing: .15em;
  color: rgba(255,255,255,.65);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden="true"] { opacity: .5; }

/* ---------- Message (about) ---------- */
.message__grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: 48px; align-items: center;
}
.message__photo { aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: #1A1A1A; }
.photo-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: rgba(255,255,255,.65);
  font-family: var(--ff-jp); font-weight: 700;
  text-align: center; line-height: 1.6;
  background:
    linear-gradient(135deg, #1C1C20, #0E0E10),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 6px, transparent 6px 12px);
}
.photo-placeholder small { opacity: .5; font-weight: 400; font-size: 12px; letter-spacing: .2em; }

.message__body p { margin: 0 0 18px; line-height: 2; }
.message__sign { margin-top: 28px !important; font-size: 15px; }
.message__sign strong { font-size: 18px; }

/* ---------- Values ---------- */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.value-card {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
  border-color: transparent;
}
.value-card__num {
  font-family: var(--ff-display); font-weight: 900;
  font-size: 14px; letter-spacing: .2em;
  color: var(--c-accent);
}
.value-card h3 {
  font-weight: 700; font-size: 18px; margin: 12px 0 10px; line-height: 1.5;
}
.value-card p { margin: 0; color: var(--c-sub); font-size: 14px; line-height: 1.9; }

/* ---------- Company table ---------- */
.company__table { margin: 0; }
.company__table > div {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--c-line);
}
.company__table > div:last-child { border-bottom: 1px solid var(--c-line); }
.company__table dt {
  font-family: var(--ff-en); font-weight: 700;
  font-size: 12px; letter-spacing: .2em;
  color: var(--c-sub); text-transform: uppercase;
  padding-top: 4px;
}
.company__table dd { margin: 0; font-size: 15px; line-height: 1.8; }
.company__table a { border-bottom: 1px dotted var(--c-sub); }
.company__table a:hover { color: var(--c-accent); border-color: var(--c-accent); }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}
.contact-panel,
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 36px);
}
.contact-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.contact-panel__lead {
  margin: 0 0 24px;
  color: var(--c-sub);
  line-height: 1.9;
}
.contact-points {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
}
.contact-points li {
  padding: 14px 16px;
  border-radius: 14px;
  background: #F7F7F3;
  border: 1px solid #ECECE5;
}
.contact-points strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.contact-direct {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
}
.contact-direct a,
.contact-direct span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--c-text);
}
.contact-direct small {
  display: block;
  color: var(--c-sub);
  font-size: 12px;
  letter-spacing: .04em;
}
.contact-form-wrap__head {
  margin-bottom: 28px;
}
.contact-form-wrap__head p {
  margin: 0;
  color: var(--c-sub);
}
.cf7-form {
  display: grid;
  gap: 20px;
}
.cf7-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.cf7-field {
  display: grid;
  gap: 8px;
}
.cf7-field--full {
  grid-column: 1 / -1;
}
.cf7-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}
.cf7-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #FFE5E9;
  color: #B8202E;
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.wpcf7-form-control-wrap {
  display: block;
}
.wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: #FAFAF7;
  padding: 15px 16px;
  font: inherit;
  color: var(--c-text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
textarea.wpcf7-form-control {
  min-height: 180px;
  resize: vertical;
}
.wpcf7-form-control:not(.wpcf7-submit):focus {
  outline: none;
  border-color: rgba(230,57,70,.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(230,57,70,.08);
}
.cf7-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #F7F7F3;
  border: 1px solid #ECECE5;
  color: var(--c-sub);
  font-size: 13px;
  line-height: 1.8;
}
.cf7-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #F7F7F3;
  border: 1px solid #ECECE5;
}
.cf7-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--c-accent);
  flex: 0 0 auto;
}
.cf7-check span {
  display: block;
  font-size: 14px;
  line-height: 1.8;
}
.cf7-check small {
  display: block;
  color: var(--c-sub);
  font-size: 12px;
}
.cf7-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cf7-actions small {
  color: var(--c-sub);
  font-size: 12px;
}
.wpcf7-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Fade-in ---------- */
[data-fade] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-fade].is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro__layout { grid-template-columns: 1fr; gap: 48px; }
  .about-intro__body { grid-template-columns: 1fr; gap: 20px; }
  .gunma-map__svg { max-width: 360px; }
  .hero__gunma { width: min(520px, 70%); opacity: .06; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .message__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-panel { position: static; }
  .values-grid { grid-template-columns: 1fr; }
  .company__table > div { grid-template-columns: 130px 1fr; gap: 14px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .hamburger { display: block; }
  .header-contact { display: inline-flex; }
  .gnav__cta { display: none; }
  .gnav { margin-left: 0; }
  body.nav-open .header-contact {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  body.nav-open .site-header {
    background: rgba(14,14,16,.96);
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(255,255,255,.08);
  }
  body.nav-open .site-header .gnav__list > li > a { color: #fff !important; }
  body.nav-open .site-header .hamburger span { background: #fff !important; }
  body.nav-open .site-header .logo,
  body.nav-open .site-header .logo__word,
  body.nav-open .site-header .logo__sub {
    color: #fff !important;
  }

  .gnav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 120;
    background: rgba(14,14,16,.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s var(--ease);
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
  }
  .gnav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .gnav__list {
    width: 100%;
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
  }
  .gnav__list > li > a {
    color: #fff;
    font-size: 18px;
    justify-content: flex-end;
    text-align: right;
    padding: 14px 0;
  }
  .gnav__list > li > a span { display: none; }
  .gnav__sub {
    display: none;
  }

  .hero__inner { padding: calc(var(--header-h) + 32px) 0 60px; }
  .hero__scroll { display: none; }

  .service-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; gap: 20px; }

  .gunma-map { padding: 20px; }
  .gunma-map__svg { max-width: 300px; }
  .gunma-map__labels .label { font-size: 40px; }
  .hero__gunma { opacity: .05; width: min(420px, 80%); right: -10%; bottom: -10%; }

  .section__head--row { flex-direction: column; align-items: flex-start; }
  .cf7-grid { grid-template-columns: 1fr; }
  .cf7-actions { align-items: flex-start; }
  .news-list a { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .company__table > div { grid-template-columns: 1fr; gap: 4px; }
  .logo__sub { display: none; }
}
@media (max-width: 767px) {
  .site-header__actions { gap: 8px; }
  .header-contact {
    padding: 9px 14px;
    font-size: 12px;
  }
  .gnav {
    padding: 16px 20px 24px;
  }
  .gnav__list > li > a { font-size: 16px; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1; transform: none; transition: none; }
  .hero__scroll span::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Service detail page ---------- */
.service-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-overview .service-card { min-height: 340px; }

.service-detail-list {
  display: grid;
  gap: 24px;
}
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 22px;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.service-detail__intro {
  background: linear-gradient(180deg, #121216 0%, #1A1A20 100%);
  color: #fff;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.service-detail__intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 20% 20%, rgba(230,57,70,.3), transparent 70%),
    radial-gradient(60% 60% at 80% 80%, rgba(58,134,255,.24), transparent 70%);
}
.service-detail__intro > * { position: relative; }
.service-detail__num {
  display: inline-flex;
  margin-bottom: 14px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--c-accent);
}
.service-detail__intro h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
}
.service-detail__lead {
  margin: 0 0 22px;
  color: rgba(255,255,255,.82);
}
.service-detail__label {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.service-detail__body h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.service-detail__body p {
  margin: 0 0 18px;
  color: var(--c-sub);
}
.service-points,
.service-flow {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}
.service-points li,
.service-flow li {
  padding: 14px 16px;
  border-radius: 14px;
  background: #F7F7F3;
  border: 1px solid #ECECE5;
}
.service-points strong,
.service-flow strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.service-note {
  margin: 0;
  padding: 14px 16px;
  background: #FFF7F8;
  border: 1px solid #FFD9DE;
  border-radius: 14px;
  font-size: 14px;
}

/* ---------- Works page ---------- */
.works-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.works-panel {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  background: #fff;
}
.works-panel__cover {
  aspect-ratio: 16/10;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(14,14,16,.96), rgba(14,14,16,.76)),
    linear-gradient(120deg, rgba(230,57,70,.7), rgba(58,134,255,.55));
  color: #fff;
  display: grid;
  align-content: end;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.works-panel__cover::before {
  content: attr(data-label);
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255,255,255,.58);
}
.works-panel__cover strong {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: .95;
}
.works-panel__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.works-panel__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}
.works-panel__text {
  margin: 0;
  color: var(--c-sub);
}
.works-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.works-kpis li {
  padding: 14px 16px;
  border-radius: 14px;
  background: #F7F7F3;
  border: 1px solid #ECECE5;
}
.works-kpis strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ff-display);
  font-size: 22px;
  line-height: 1;
}
.works-kpis span {
  font-size: 12px;
  color: var(--c-sub);
}
.works-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.works-summary li {
  padding: 28px 24px;
  background: #111114;
  color: #fff;
  border-radius: 18px;
}
.works-summary strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--ff-display);
  font-size: 34px;
  line-height: 1;
}
.works-summary span {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}
.works-summary p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- News page ---------- */
.news-cards {
  display: grid;
  gap: 18px;
}
.news-card {
  display: grid;
  grid-template-columns: 160px 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  background: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.05);
}
.news-card time {
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--c-sub);
}
.news-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.5;
}
.news-card p {
  margin: 0;
  color: var(--c-sub);
}
.news-card__arrow {
  font-family: var(--ff-en);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--c-sub);
}
.news-highlight {
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(135deg, #111114, #1D1D22);
  color: #fff;
  border-radius: 24px;
}
.news-highlight__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.news-highlight h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.35;
}
.news-highlight p {
  margin: 0;
  color: rgba(255,255,255,.78);
  max-width: 760px;
}

@media (max-width: 1023px) {
  .service-overview,
  .works-showcase,
  .works-summary { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .works-kpis { grid-template-columns: 1fr; }
  .news-card { padding: 20px; }
}
