/* N&Sエンタープライズ 静的サイト 共通スタイル */
:root {
  --navy: #0d2b4c;
  --navy-dark: #081e36;
  --navy-light: #16406e;
  --accent: #4a90c4;
  --accent-light: #e8f1f8;
  --gray-bg: #f4f6f8;
  --gray-line: #d8dee4;
  --text: #2b2f33;
  --text-sub: #5a646e;
  --white: #fff;
  --max: 1120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", YuGothic, "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 16px;
}
.header-logo img { height: 56px; width: auto; }
.header-info { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-tel { text-align: right; line-height: 1.35; }
.header-tel .tel-label { font-size: 11px; color: var(--text-sub); letter-spacing: .05em; }
.header-tel .tel-num {
  font-size: 22px; font-weight: 700; color: var(--navy);
  text-decoration: none; letter-spacing: .02em; white-space: nowrap;
}
.btn-contact {
  display: inline-block; background: var(--navy); color: var(--white);
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 4px; white-space: nowrap;
  transition: background .2s;
}
.btn-contact:hover { background: var(--navy-light); }
.global-nav { background: var(--navy); }
.global-nav ul {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; list-style: none;
}
.global-nav a {
  display: block; color: var(--white); text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 10px 18px;
}
.global-nav a:hover { background: var(--navy-light); }

/* ---------- ヒーロー ---------- */
.hero { position: relative; background: var(--navy-dark); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide img { width: 100%; height: 520px; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,30,54,.72) 0%, rgba(8,30,54,.35) 55%, rgba(8,30,54,.05) 100%);
  pointer-events: none;
}
.hero-copy {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
}
.hero-copy .wrap { padding-right: 40%; }
.hero-copy h1 {
  color: var(--white); font-size: 40px; font-weight: 700; line-height: 1.4;
  letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.hero-copy p {
  color: #eaf2f9; font-size: 18px; margin-top: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero-dots {
  position: absolute; z-index: 3; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 11px; height: 11px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.45); padding: 0;
}
.hero-dots button.active { background: var(--white); }

/* ---------- セクション共通 ---------- */
section { padding: 64px 0; }
.section-title {
  text-align: center; margin-bottom: 38px;
}
.section-title .en {
  display: block; font-size: 13px; letter-spacing: .35em;
  color: var(--accent); font-weight: 700; text-transform: uppercase;
}
.section-title h2 {
  font-size: 30px; color: var(--navy); font-weight: 700; margin-top: 6px;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--accent); margin: 14px auto 0;
}
.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); gap: 24px; }
.intro-box {
  background: var(--white); border: 1px solid var(--gray-line);
  border-top: 4px solid var(--navy); padding: 28px 24px; border-radius: 4px;
}
.intro-box h3 { font-size: 19px; color: var(--navy); margin-bottom: 12px; text-align: center; }
.intro-box p, .intro-box li { font-size: 15px; color: var(--text); }
.intro-box ul { list-style: none; }
.intro-box li { padding-left: 1.1em; text-indent: -1.1em; }
.intro-box li::before { content: "■"; color: var(--accent); font-size: 10px; margin-right: 6px; vertical-align: 2px; }
.about-office {
  margin-top: 36px; display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center;
  background: var(--white); border: 1px solid var(--gray-line); border-radius: 4px; padding: 24px;
}
.about-office img { border-radius: 4px; }
.about-office h3 { color: var(--navy); font-size: 20px; margin-bottom: 8px; }
.about-office p { font-size: 15px; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; max-width: 820px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--gray-line); }
.news-list a {
  display: flex; gap: 22px; padding: 16px 8px; text-decoration: none; color: var(--text);
  align-items: baseline;
}
.news-list a:hover { background: var(--accent-light); }
.news-date { color: var(--accent); font-weight: 700; white-space: nowrap; font-size: 14px; }
.news-more { text-align: center; margin-top: 28px; }
.btn-outline {
  display: inline-block; border: 2px solid var(--navy); color: var(--navy);
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 34px; border-radius: 4px; transition: .2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- 実績ギャラリー ---------- */
.gallery-group { margin-bottom: 44px; }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group h3 {
  font-size: 20px; color: var(--navy); margin-bottom: 6px;
  border-left: 5px solid var(--accent); padding-left: 12px;
}
.gallery-group .group-desc { font-size: 14px; color: var(--text-sub); margin: 0 0 16px 17px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  background: var(--white); border: 1px solid var(--gray-line); border-radius: 4px;
  overflow: hidden; cursor: pointer; transition: box-shadow .2s;
}
.gallery-item:hover { box-shadow: 0 4px 16px rgba(13,43,76,.18); }
.gallery-item img { width: 100%; height: 190px; object-fit: cover; }
.gallery-item figcaption { padding: 10px 14px; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.screens-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.screens-grid .gallery-item img { height: 150px; object-fit: contain; background: #eef1f4; }

/* ライトボックス */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(5,18,33,.92);
  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; border-radius: 4px; }
.lightbox p { color: var(--white); margin-top: 14px; font-size: 15px; 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 { max-width: 900px; margin: 0 auto 36px; }
.works-block:last-child { margin-bottom: 0; }
.works-block h3 {
  font-size: 20px; color: var(--white); background: var(--navy);
  padding: 10px 18px; border-radius: 4px; margin-bottom: 0;
}
.works-block ul { list-style: none; background: var(--white); border: 1px solid var(--gray-line); border-top: none; }
.works-block li {
  padding: 13px 18px 13px 32px; border-bottom: 1px solid var(--gray-line);
  position: relative; font-size: 15px;
}
.works-block li:last-child { border-bottom: none; }
.works-block li::before {
  content: ""; position: absolute; left: 16px; top: 24px;
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}

/* ---------- 求人バナー ---------- */
.recruit-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); text-align: center; padding: 52px 20px; border-radius: 6px;
}
.recruit-banner .en { font-size: 12px; letter-spacing: .35em; color: #bcd6ee; font-weight: 700; }
.recruit-banner p.catch { font-size: 26px; font-weight: 700; margin: 12px 0 24px; line-height: 1.6; }
.btn-white {
  display: inline-block; background: var(--white); color: var(--navy);
  text-decoration: none; font-weight: 700; padding: 13px 40px; border-radius: 4px; font-size: 15px;
}
.btn-white:hover { background: var(--accent-light); }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-dark); color: #cdd9e5; padding: 44px 0 0; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px 30px;
  display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap;
}
.footer-inner img { height: 52px; width: auto; background: var(--white); padding: 5px; border-radius: 3px; }
.footer-info .company { font-size: 18px; font-weight: 700; color: var(--white); }
.footer-info .addr { font-size: 14px; margin-top: 4px; }
.footer-info .tel a { color: #cdd9e5; text-decoration: none; font-size: 14px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.15); text-align: center;
  font-size: 13px; padding: 16px 20px; color: #93a7ba;
}
.page-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--navy); color: var(--white); text-decoration: none;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 12px 10px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.page-top.show { opacity: .92; pointer-events: auto; }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--navy); color: var(--white); padding: 40px 0; }
.page-head h1 { font-size: 28px; }
.page-head .en { font-size: 12px; letter-spacing: .35em; color: #bcd6ee; font-weight: 700; }
.breadcrumb { font-size: 13px; color: var(--text-sub); padding: 14px 0 0; }
.breadcrumb a { color: var(--text-sub); }
.article { max-width: 820px; margin: 0 auto; }
.article .article-date { color: var(--accent); font-weight: 700; font-size: 14px; }
.article h1 { font-size: 26px; color: var(--navy); margin: 6px 0 20px; line-height: 1.5; }
.article-body { font-size: 16px; }

/* ---------- レスポンシブ ---------- */
@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: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  section { padding: 44px 0; }
  .header-inner { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
  .header-logo img { height: 44px; }
  .header-info { gap: 10px; }
  .header-tel .tel-num { font-size: 17px; }
  .header-tel .tel-label { display: none; }
  .btn-contact { padding: 9px 13px; font-size: 13px; }
  .global-nav ul { padding: 0 6px; overflow-x: auto; }
  .global-nav a { padding: 9px 10px; font-size: 13px; white-space: nowrap; }
  .hero-slide img { height: 340px; }
  .hero-copy h1 { font-size: 26px; }
  .hero-copy p { font-size: 14.5px; }
  .section-title h2 { font-size: 24px; }
  .intro-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 210px; }
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list a { flex-direction: column; gap: 2px; }
  .recruit-banner p.catch { font-size: 20px; }
  .works-block li { font-size: 14px; }
}
