/* N&Sエンタープライズ — precision corporate design */
:root {
  --navy: #0b2440;
  --navy-deep: #061831;
  --navy-ink: #0a1e38;
  --accent: #0a4a8c;
  --accent-soft: #dcebf7;
  --gray-bg: #f4f6f9;
  --gray-line: #dde3ea;
  --text: #232a31;
  --text-sub: #5d6874;
  --white: #fff;
  --max: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --latin: "Inter", "Noto Sans JP", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", YuGothic, "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--navy); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  transition: box-shadow .35s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--gray-line), 0 14px 34px rgba(6,24,49,.10); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 16px;
}
.header-logo img { height: 52px; width: auto; }
.header-info { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.header-tel { text-align: right; line-height: 1.3; }
.header-tel .tel-label { font-size: 10.5px; color: var(--text-sub); letter-spacing: .14em; }
.header-tel .tel-num {
  font-family: var(--latin); font-size: 23px; font-weight: 700; color: var(--navy-ink);
  text-decoration: none; letter-spacing: .03em; white-space: nowrap;
}
.btn-contact {
  display: inline-block; background: var(--navy); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 13.5px; letter-spacing: .06em;
  padding: 12px 22px; white-space: nowrap;
  transition: background .3s ease;
}
.btn-contact:hover { background: var(--accent); }
.global-nav { border-top: 1px solid var(--gray-line); border-bottom: 1px solid var(--gray-line); }
.global-nav ul {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; list-style: none; gap: 6px;
}
.global-nav a {
  display: block; color: var(--navy-ink); text-decoration: none; position: relative;
  font-size: 13.5px; font-weight: 500; letter-spacing: .08em; padding: 11px 16px;
}
.global-nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.global-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; background: var(--navy-deep); overflow: hidden; height: min(78vh, 660px); min-height: 480px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.82) contrast(1.04);
  transform: scale(1.06);
}
.hero-slide.active img { animation: heroZoom 7.5s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.10); } to { transform: scale(1.02); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,24,49,.82) 0%, rgba(6,24,49,.48) 52%, rgba(6,24,49,.08) 100%),
    linear-gradient(0deg, rgba(6,24,49,.55) 0%, rgba(6,24,49,0) 34%);
  pointer-events: none;
}
.hero-copy {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%;
  transform: translateY(-54%);
}
.hero-copy .wrap { padding-right: 34%; }
.hero-kicker {
  font-family: var(--latin); color: #a9cbe9; font-size: 12px; font-weight: 600;
  letter-spacing: .42em; margin-bottom: 20px; display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before { content: ""; width: 46px; height: 1px; background: var(--accent); }
.hero-copy h1 {
  color: var(--white); font-size: clamp(32px, 4.6vw, 52px); font-weight: 900;
  line-height: 1.42; letter-spacing: .05em;
}
.hero-copy p {
  color: #dbe7f3; font-size: clamp(14px, 1.6vw, 17.5px); margin-top: 18px; letter-spacing: .06em;
}
.hero-dots {
  position: absolute; z-index: 3; bottom: 26px; left: 0; right: 0;
}
.hero-dots-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; gap: 8px;
}
.hero-dots button {
  width: 54px; height: 3px; border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.32); transition: background .3s;
}
.hero-dots button.active { background: var(--white); }
.hero-scroll {
  position: absolute; z-index: 3; right: 34px; bottom: 0;
  color: rgba(255,255,255,.75); font-family: var(--latin); font-size: 10px;
  letter-spacing: .4em; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 64px; background: rgba(255,255,255,.4);
  animation: scrollLine 2.4s var(--ease) infinite; transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- セクション共通 ---------- */
section { padding: clamp(72px, 9vw, 112px) 0; }
.section-title {
  display: flex; align-items: flex-end; gap: 20px;
  margin-bottom: clamp(36px, 5vw, 54px);
}
.section-title .sec-no {
  font-family: var(--latin); font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: .2em; padding-bottom: 12px;
}
.section-title .en {
  display: block; font-family: var(--latin); font-size: 11.5px; letter-spacing: .42em;
  color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 8px;
}
.section-title h2 {
  font-size: clamp(26px, 3.4vw, 34px); color: var(--navy-ink); font-weight: 900;
  letter-spacing: .04em; line-height: 1.35;
}
.section-title .rule { flex: 1; height: 1px; background: var(--gray-line); margin-bottom: 14px; }
.bg-gray { background: var(--gray-bg); }
.bg-navy { background: var(--navy); }
.bg-navy .section-title h2 { color: var(--white); }

/* ---------- 紹介3カラム ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.intro-box { padding: 6px 34px 6px 0; }
.intro-box + .intro-box { border-left: 1px solid var(--gray-line); padding-left: 34px; }
.intro-box .box-no {
  font-family: var(--latin); font-size: 30px; font-weight: 700; color: var(--accent-soft);
  line-height: 1; display: block; margin-bottom: 14px;
}
.intro-box h3 { font-size: 18.5px; color: var(--navy-ink); font-weight: 700; margin-bottom: 12px; letter-spacing: .03em; }
.intro-box p, .intro-box li { font-size: 14.5px; color: var(--text-sub); line-height: 1.95; }
.intro-box ul { list-style: none; }
.intro-box li { padding-left: 1.05em; text-indent: -1.05em; }
.intro-box li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 9px; vertical-align: 2px; }
.about-office {
  margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: 380px 1fr;
  gap: clamp(24px, 4vw, 44px); align-items: center;
  background: var(--gray-bg); padding: clamp(22px, 3.4vw, 38px);
}
.about-office img { width: 100%; height: 100%; object-fit: cover; }
.about-office h3 { color: var(--navy-ink); font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: .03em; }
.about-office p { font-size: 14.5px; color: var(--text-sub); }
.about-office a { font-family: var(--latin); font-weight: 600; text-decoration: none; }
.about-office a:hover { text-decoration: underline; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; max-width: 880px; }
.news-list li { border-bottom: 1px solid var(--gray-line); }
.news-list li:first-child { border-top: 1px solid var(--gray-line); }
.news-list a {
  display: flex; gap: 26px; padding: 20px 10px; text-decoration: none; color: var(--text);
  align-items: baseline; transition: background .3s ease, padding-left .35s var(--ease);
}
.news-list a:hover { background: var(--white); padding-left: 20px; }
.news-date { font-family: var(--latin); color: var(--accent); font-weight: 700; white-space: nowrap; font-size: 13.5px; letter-spacing: .06em; }
.news-more { margin-top: 32px; }
.btn-outline {
  display: inline-block; border: 1px solid var(--navy); color: var(--navy);
  text-decoration: none; font-weight: 700; font-size: 13.5px; letter-spacing: .08em;
  padding: 12px 38px; transition: .3s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- 実績ギャラリー ---------- */
.gallery-group { margin-bottom: clamp(48px, 6vw, 68px); }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group-head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  border-bottom: 2px solid var(--navy-ink); padding-bottom: 12px; margin-bottom: 8px;
}
.gallery-group h3 {
  font-size: clamp(19px, 2.4vw, 22px); color: var(--navy-ink); font-weight: 700; letter-spacing: .03em;
}
.gallery-group .group-count {
  font-family: var(--latin); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .18em;
}
.gallery-group .group-desc { font-size: 13.5px; color: var(--text-sub); margin: 0 0 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { cursor: pointer; }
.gallery-item .gi-frame { overflow: hidden; background: var(--gray-bg); }
.gallery-item img {
  width: 100%; height: 218px; object-fit: cover;
  filter: saturate(.9) contrast(1.03);
  transition: transform 1s var(--ease), filter .5s ease;
}
.gallery-item:hover img { transform: scale(1.055); filter: saturate(1) contrast(1.03); }
.gallery-item figcaption {
  padding: 11px 2px 0; font-size: 13px; line-height: 1.65; color: var(--text);
  display: flex; gap: 10px; align-items: baseline;
}
.gallery-item figcaption::before {
  content: ""; flex: none; width: 14px; height: 1px; background: var(--accent);
  position: relative; top: -4px;
}
.screens-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.screens-grid .gallery-item img { height: 158px; object-fit: contain; background: #edf1f5; }

/* ライトボックス */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(4,15,30,.94);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lightbox p { color: var(--white); margin-top: 16px; font-size: 14.5px; text-align: center; }
.lightbox .lb-close {
  position: absolute; top: 14px; right: 22px; color: var(--white);
  font-size: 34px; background: none; border: none; cursor: pointer; line-height: 1;
}

/* ---------- 実績一覧 ---------- */
.works-block { margin-bottom: clamp(40px, 5vw, 56px); }
.works-block:last-child { margin-bottom: 0; }
.works-block h3 {
  font-size: 19px; color: var(--navy-ink); font-weight: 700; letter-spacing: .03em;
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.works-block h3::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.works-block ul {
  list-style: none; background: var(--white);
  border-top: 1px solid var(--gray-line);
  columns: 2; column-gap: 56px;
}
.works-block li {
  padding: 13px 6px 13px 22px; border-bottom: 1px solid var(--gray-line);
  position: relative; font-size: 14.5px; break-inside: avoid; line-height: 1.75;
}
.works-block li::before {
  content: ""; position: absolute; left: 4px; top: 25px;
  width: 6px; height: 6px; background: var(--accent);
}

/* ---------- 求人バナー ---------- */
.recruit-banner {
  background: linear-gradient(118deg, var(--navy-deep) 0%, var(--navy) 58%, #144a80 100%);
  color: var(--white); text-align: center; padding: clamp(52px, 7vw, 76px) 24px;
  position: relative; overflow: hidden;
}
.recruit-banner::before {
  content: "RECRUIT"; position: absolute; right: -10px; bottom: -38px;
  font-family: var(--latin); font-size: clamp(90px, 14vw, 170px); font-weight: 700;
  color: rgba(255,255,255,.05); letter-spacing: .04em; line-height: 1; pointer-events: none;
}
.recruit-banner .en { font-family: var(--latin); font-size: 11.5px; letter-spacing: .42em; color: #a9cbe9; font-weight: 700; }
.recruit-banner p.catch { font-size: clamp(20px, 3vw, 27px); font-weight: 900; margin: 16px 0 30px; line-height: 1.65; letter-spacing: .04em; }
.btn-white {
  display: inline-block; background: var(--white); color: var(--navy);
  text-decoration: none; font-weight: 700; padding: 14px 44px; font-size: 14.5px; letter-spacing: .06em;
  transition: background .3s, color .3s; position: relative; z-index: 1;
}
.btn-white:hover { background: var(--accent); color: var(--white); }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: #bfcede; padding: 56px 0 0; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px 38px;
  display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap;
}
.footer-inner img { height: 50px; width: auto; background: var(--white); padding: 5px; }
.footer-info .company { font-size: 17.5px; font-weight: 700; color: var(--white); letter-spacing: .03em; }
.footer-info .addr { font-size: 13.5px; margin-top: 5px; }
.footer-info .tel a { font-family: var(--latin); color: #bfcede; text-decoration: none; font-size: 14px; font-weight: 600; }
.footer-nav { margin-left: auto; }
.footer-nav ul { list-style: none; display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: #bfcede; text-decoration: none; font-size: 13px; letter-spacing: .06em; }
.footer-nav a:hover { color: var(--white); }
.copyright {
  border-top: 1px solid rgba(255,255,255,.12); text-align: center;
  font-size: 12px; padding: 18px 20px; color: #8496ab; letter-spacing: .05em;
}
.page-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: var(--navy); color: var(--white); text-decoration: none;
  font-family: var(--latin); font-size: 10px; font-weight: 700; letter-spacing: .14em;
  padding: 13px 11px; opacity: 0; pointer-events: none; transition: opacity .3s, background .3s;
}
.page-top:hover { background: var(--accent); }
.page-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 下層ページ ---------- */
.page-head {
  background: linear-gradient(118deg, var(--navy-deep), var(--navy) 70%);
  color: var(--white); padding: 52px 0 46px;
}
.page-head h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 900; letter-spacing: .05em; margin-top: 8px; }
.page-head .en { font-family: var(--latin); font-size: 11px; letter-spacing: .42em; color: #a9cbe9; font-weight: 700; }
.breadcrumb { font-size: 12.5px; color: var(--text-sub); padding: 16px 0 0; letter-spacing: .04em; }
.breadcrumb a { color: var(--text-sub); }
.article { max-width: 820px; margin: 0 auto; }
.article .article-date { font-family: var(--latin); color: var(--accent); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; }
.article h1 { font-size: clamp(22px, 3vw, 27px); color: var(--navy-ink); font-weight: 900; margin: 8px 0 22px; line-height: 1.55; }
.article-body { font-size: 15.5px; }

/* ---------- 出現アニメ ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .85s var(--ease), transform .85s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide.active img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .works-block ul { columns: 1; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-box { padding: 0; }
  .intro-box + .intro-box { border-left: none; border-top: 1px solid var(--gray-line); padding: 30px 0 0; }
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid { grid-template-columns: repeat(3, 1fr); }
  .about-office { grid-template-columns: 1fr; }
  .hero-copy .wrap { padding-right: 24px; }
  .hero-scroll { display: none; }
  .footer-nav { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-inner { gap: 8px; padding: 10px 14px; }
  .header-logo img { height: 42px; }
  .header-info { gap: 12px; }
  .header-tel .tel-num { font-size: 16.5px; }
  .header-tel .tel-label { display: none; }
  .btn-contact { padding: 10px 14px; font-size: 12.5px; }
  .global-nav ul { padding: 0 8px; overflow-x: auto; gap: 0; }
  .global-nav a { padding: 10px 11px; font-size: 12.5px; white-space: nowrap; }
  .hero { height: 480px; min-height: 420px; }
  .hero-copy h1 { font-size: 27px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 228px; }
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list a { flex-direction: column; gap: 2px; padding: 16px 6px; }
  .section-title { gap: 12px; }
  .section-title .sec-no { display: none; }
}
