/* ============================================
   有限会社山光電気 デモサイト スタイルシート
   ============================================ */
:root {
  --navy: #10294a;
  --navy-2: #1a3a66;
  --blue: #1f5fa8;
  --sky: #eaf2fa;
  --amber: #f2a71b;
  --amber-dark: #d18e07;
  --ink: #22303f;
  --ink-soft: #5a6b7d;
  --line: #dde5ec;
  --bg: #f7f9fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 41, 74, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { line-height: 1.3; }
.brand-text .corp { font-size: .68rem; color: var(--ink-soft); letter-spacing: .06em; }
.brand-text .name { font-size: 1.12rem; font-weight: 900; letter-spacing: .04em; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.gnav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); font-size: .9rem; font-weight: 500;
}
.gnav a:hover { background: var(--sky); color: var(--blue); }
.head-tel { flex: none; text-align: right; line-height: 1.3; }
.head-tel .num {
  font-size: 1.18rem; font-weight: 900; color: var(--navy);
  letter-spacing: .02em; white-space: nowrap;
}
.head-tel .num svg { width: 16px; height: 16px; vertical-align: -2px; }
.head-tel .note { font-size: .66rem; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,28,52,.88) 0%, rgba(11,28,52,.62) 45%, rgba(11,28,52,.25) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: 96px 20px 110px;
}
.hero-lead {
  font-size: .95rem; font-weight: 700; letter-spacing: .22em;
  color: #ffd77a; margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  font-weight: 900; line-height: 1.45; letter-spacing: .06em;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero p.sub {
  margin-top: 20px; max-width: 620px;
  font-size: clamp(.9rem, 1.6vw, 1.02rem);
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-badges span {
  display: inline-block; padding: 7px 14px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px; font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(2px);
}
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .05em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-amber { background: var(--amber); color: #2b2000; box-shadow: 0 4px 16px rgba(242,167,27,.45); }
.btn-amber:hover { background: #ffb62e; transform: translateY(-2px); }
.btn-ghost { border: 2px solid rgba(255,255,255,.8); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .3em; color: var(--amber-dark); text-transform: uppercase;
  margin-bottom: 8px;
}
.sec-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 900;
  color: var(--navy); letter-spacing: .08em;
}
.sec-head .desc { margin-top: 14px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- reasons ---------- */
.reasons { background: var(--white); }
.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reason {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center;
}
.reason .icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: var(--sky); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.reason .icon svg { width: 32px; height: 32px; }
.reason h3 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.reason p { font-size: .88rem; color: var(--ink-soft); text-align: left; }
.reason .num { font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: var(--amber-dark); display: block; margin-bottom: 6px; }

/* ---------- services ---------- */
.services { background: linear-gradient(180deg, var(--bg) 0%, var(--sky) 100%); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease;
}
.service:hover { transform: translateY(-4px); }
.service figure { height: 180px; overflow: hidden; }
.service figure img { width: 100%; height: 100%; object-fit: cover; }
.service .body { padding: 22px 22px 26px; flex: 1; }
.service h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.service h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--amber); flex: none;
}
.service p { font-size: .86rem; color: var(--ink-soft); }
.service .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.service .tags li {
  font-size: .7rem; font-weight: 500; color: var(--blue);
  background: var(--sky); border-radius: 999px; padding: 3px 10px;
}

/* ---------- company ---------- */
.company { background: var(--white); }
.company-flex { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.company table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.company th, .company td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company th { width: 9em; color: var(--navy); font-weight: 700; white-space: nowrap; }
.company-side { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.company-side h3 { color: var(--navy); font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.company-side h3 svg { width: 20px; height: 20px; }
.company-side p { font-size: .88rem; color: var(--ink-soft); }
.company-side .map-link { margin-top: 16px; }
.company-side .map-link a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 700; color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 999px; padding: 8px 18px;
}
.company-side .map-link a:hover { background: var(--sky); }
.company-side .map-link svg { width: 15px; height: 15px; }
.company-side + .company-side { margin-top: 20px; }

/* ---------- recruit ---------- */
.recruit { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.recruit::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,167,27,.25) 0%, transparent 70%);
}
.recruit .sec-head h2 { color: var(--white); }
.recruit .sec-head .en { color: #ffd77a; }
.recruit-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; position: relative; }
.recruit-copy h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 900; line-height: 1.6; margin-bottom: 16px; }
.recruit-copy p { font-size: .92rem; color: #cfdcec; }
.recruit-copy .note { margin-top: 14px; font-size: .78rem; color: #9fb3c8; }
.recruit-table {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 8px 22px;
}
.recruit-table dl { display: grid; grid-template-columns: 6.5em 1fr; }
.recruit-table dt, .recruit-table dd { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.recruit-table dt { font-weight: 700; color: #ffd77a; }
.recruit-table dl > dt:last-of-type, .recruit-table dl > dd:last-of-type { border-bottom: none; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.contact-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 30px; text-align: center;
}
.contact-card .icon { width: 52px; height: 52px; margin: 0 auto 14px; background: var(--sky); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 10px; }
.contact-card .big { font-size: clamp(1.5rem, 3.2vw, 1.9rem); font-weight: 900; color: var(--navy); letter-spacing: .02em; }
.contact-card .big a { color: var(--navy); }
.contact-card p.small { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
.contact-card .btn { margin-top: 14px; }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 4px 16px rgba(31,95,168,.35); }
.btn-blue:hover { background: #2a70bf; transform: translateY(-2px); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #cfdcec; padding: 40px 0 30px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; text-align: center; }
.footer-brand { color: var(--white); font-weight: 900; font-size: 1.05rem; letter-spacing: .06em; }
.footer-addr { font-size: .82rem; margin-top: 8px; }
.footer-copy { font-size: .74rem; color: #8ba0b8; margin-top: 18px; }
.footer-demo-note {
  margin-top: 14px; font-size: .72rem; color: #8ba0b8;
  border: 1px dashed rgba(255,255,255,.25); border-radius: 8px;
  padding: 8px 12px; display: inline-block;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .reason-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .company-flex, .recruit-flex { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 120px; }
  .header-inner { flex-wrap: wrap; padding: 10px 14px 8px; gap: 6px; }
  .gnav { order: 3; width: 100%; margin-left: 0; }
  .gnav ul { justify-content: center; gap: 0; }
  .gnav a { padding: 6px 8px; font-size: .78rem; }
  .head-tel { margin-left: auto; }
  .head-tel .num { font-size: 1rem; }
  .hero-inner { padding: 64px 20px 76px; }
  section { padding: 60px 0; }
  .reason-grid, .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .service figure { height: 160px; }
}
