/* ============================================================
   SATSUEI 札栄電設 — design system
   palette: ink/navy/steel + electric blue, paper light content
   signature: 通電ライン (a flowing current line down the page)
   ============================================================ */
:root {
  --ink: #060b16;
  --navy: #0b1e38;
  --steel: #18456e;
  --electric: #1fa8ff;
  --glow: #6fd8ff;
  --silver: #c5d2de;
  --paper: #ffffff;
  --paper-2: #f3f6fa;
  --line: #e3e9f0;
  --text: #16202e;
  --muted: #5d6c7d;

  --f-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --f-body: "Noto Sans JP", sans-serif;
  --f-en: "Rajdhani", "Saira", sans-serif;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

* { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 日本語の自然な改行（文節単位）----------
   見出し・キャッチは .phrase（inline-block）で文節を包み、
   文節の途中では折り返さない。PCで収まれば改行されず、
   狭い画面では文節の境目だけで改行される。 */
.phrase { display: inline-block; }
.hero__title, .sec-title, .about__catch, .recruit__catch,
.recruit-close__catch, .contact-cta__title, .pillar__title, .biz__title,
.recruit-value h3, .work__name { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- english eyebrow + jp heading ---------- */
.eyebrow {
  font-family: var(--f-en);
  font-weight: 700;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: 0.32em;
  color: var(--electric);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 4px rgba(31, 168, 255, 0.18), 0 0 16px var(--electric);
}
.sec-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-top: 18px;
  color: var(--ink);
}
.sec-lead { color: var(--muted); margin-top: 22px; max-width: 760px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 700;
  padding: 16px 34px; border-radius: 2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary {
  background: linear-gradient(120deg, var(--electric), var(--steel));
  color: #fff; box-shadow: 0 10px 30px rgba(31, 168, 255, .35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(31, 168, 255, .5); }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn .arrow { font-family: var(--f-en); }

/* ============================================================ HEADER */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(6, 11, 22, 0);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 11, 22, .9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  height: 64px;
}
.site-header .container { display: flex; align-items: center; gap: 30px; max-width: 1280px; }
.site-logo img { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; align-items: center; }
.nav a {
  font-family: var(--f-display); font-weight: 700;
  font-size: 14.5px; color: #e7eef5; opacity: .9;
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--electric); transition: width .25s ease;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.header-cta {
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  color: #fff; padding: 11px 24px; border: 1px solid rgba(111,216,255,.6);
  border-radius: 2px; transition: all .2s ease;
}
.header-cta:hover { background: var(--electric); border-color: var(--electric); }
.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ============================================================ HERO */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink); color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 18%, rgba(6,11,22,.65) 48%, rgba(6,11,22,.15) 100%),
    linear-gradient(0deg, rgba(6,11,22,.9), rgba(6,11,22,0) 40%);
}
.hero__beam {
  position: absolute; z-index: 1; top: -10%; left: 30%; width: 2px; height: 130%;
  background: linear-gradient(180deg, transparent, var(--glow), transparent);
  filter: blur(1px); transform: rotate(18deg); opacity: .5;
  animation: beam 6s ease-in-out infinite;
}
@keyframes beam { 0%,100%{opacity:.25} 50%{opacity:.7} }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow {
  font-family: var(--f-en); font-weight: 700; letter-spacing: .34em;
  color: var(--glow); font-size: clamp(13px,1.5vw,16px);
}
.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(38px, 7vw, 84px); line-height: 1.18; letter-spacing: .03em;
  margin-top: 22px; text-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.hero__title .accent { color: var(--glow); }
.hero__sub { margin-top: 26px; color: #c9d6e3; font-size: clamp(15px,1.7vw,18px); max-width: 540px; line-height: 1.9; }
.hero__cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 26px; z-index: 2;
  font-family: var(--f-en); font-size: 12px; letter-spacing: .25em; color: #8fa6bb;
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll::before { content: ""; width: 38px; height: 1px; background: #8fa6bb; }

/* ============================================================ CURRENT LINE (signature) */
.flow { position: relative; }
.flow::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: max(28px, calc((100vw - var(--container))/2 - 26px));
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
  z-index: 0;
}
.flow::after {
  content: ""; position: absolute; left: max(27px, calc((100vw - var(--container))/2 - 27px));
  top: 0; width: 4px; height: 120px; border-radius: 4px;
  background: linear-gradient(180deg, transparent, var(--electric), var(--glow), transparent);
  filter: blur(.5px); box-shadow: 0 0 16px var(--electric);
  z-index: 1; animation: current 7s linear infinite;
}
@keyframes current { 0%{ top: -10%; opacity: 0 } 10%{opacity:1} 90%{opacity:1} 100%{ top: 100%; opacity: 0 } }

/* ============================================================ SECTION base */
.section { position: relative; z-index: 2; padding-block: clamp(72px, 10vw, 130px); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .sec-title { color: #fff; }
.section--dark .sec-lead { color: #aebccb; }
.section--alt { background: var(--paper-2); }
.section__head { margin-bottom: 56px; }

/* QUALITY — 3 pillars */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 38px 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11,30,56,.12); border-color: rgba(31,168,255,.4); }
.pillar__no { font-family: var(--f-en); font-weight: 700; font-size: 14px; letter-spacing: .2em; color: var(--electric); }
.pillar__title { font-family: var(--f-display); font-weight: 700; font-size: 22px; margin: 14px 0 14px; color: var(--ink); }
.pillar__body { color: var(--muted); font-size: 15px; }

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px,5vw,72px); align-items: center; }
.about__media img { border-radius: 4px; box-shadow: 0 30px 60px rgba(6,11,22,.45); }
.about__catch { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px,3.2vw,34px); line-height: 1.5; margin-bottom: 26px; }
.about__catch .accent { color: var(--electric); }
.about__body { color: #b9c7d6; font-size: 15.5px; }
.about__body p + p { margin-top: 1.2em; }

/* BUSINESS — column cards */
.biz-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.biz {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.biz:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(11,30,56,.14); }
.biz__media { aspect-ratio: 16/9; background: linear-gradient(135deg,var(--navy),var(--steel)); overflow: hidden; position: relative; }
.biz__media img { width: 100%; height: 100%; object-fit: cover; }
.biz__no { position: absolute; top: 14px; left: 16px; font-family: var(--f-en); font-weight: 700; color: #fff; background: rgba(6,11,22,.55); padding: 4px 12px; letter-spacing: .15em; font-size: 13px; }
.biz__body { padding: 28px 26px 32px; }
.biz__title { font-family: var(--f-display); font-weight: 700; font-size: 21px; color: var(--ink); margin-bottom: 12px; }
.biz__text { color: var(--muted); font-size: 14.5px; }

/* WORKS */
.works { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.work {
  position: relative; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden;
  background: linear-gradient(135deg,var(--navy),var(--ink)); color: #fff; display: flex;
}
.work img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .4s ease, opacity .3s ease; }
.work:hover img { transform: scale(1.06); opacity: .7; }
.work__body { position: relative; z-index: 1; margin-top: auto; padding: 22px; width: 100%; background: linear-gradient(0deg, rgba(6,11,22,.85), transparent); }
.work__cat { font-family: var(--f-en); font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--glow); }
.work__name { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.5; margin-top: 6px; }
.works-note { margin-top: 30px; color: var(--muted); font-size: 14px; }

/* RECRUIT */
.recruit { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,5vw,64px); align-items: center; }
.recruit__media img { border-radius: 4px; box-shadow: 0 30px 60px rgba(6,11,22,.5); }
.recruit__catch { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px,3vw,30px); line-height: 1.5; margin-bottom: 22px; }
.recruit__body { color: #b9c7d6; font-size: 15px; margin-bottom: 28px; }
.welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-bottom: 32px; }
.welcome li { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 700; color: #eaf2f9; font-size: 15px; }
.welcome li::before { content: "▸"; color: var(--electric); }
.recruit-values { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.recruit-value { border-left: 2px solid var(--electric); padding: 6px 0 6px 24px; }
.recruit-value h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 12px; }
.recruit-value p { color: #b9c7d6; font-size: 14.5px; }
.recruit-welcome { margin-top: 56px; }
.recruit-welcome > h3 { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 20px; }
.recruit-welcome .welcome { margin-bottom: 0; }
.recruit-close { margin-top: 60px; text-align: center; padding-top: 50px; border-top: 1px solid rgba(255,255,255,.1); }
.recruit-close__catch { font-family: var(--f-display); font-weight: 700; font-size: clamp(22px,3vw,32px); margin-bottom: 18px; }
.recruit-close p { color: #b9c7d6; max-width: 720px; margin: 0 auto 28px; font-size: 15px; }

/* COMPANY */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,60px); align-items: start; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.spec th { width: 120px; font-family: var(--f-display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.spec td { color: var(--muted); }
.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 4px; min-height: 320px; filter: grayscale(.2) contrast(1.05); }

/* NEWS */
.news-list { border-top: 1px solid var(--line); }
.news-item { display: flex; gap: 26px; align-items: baseline; padding: 22px 6px; border-bottom: 1px solid var(--line); transition: background .2s ease; flex-wrap: wrap; }
.news-item:hover { background: rgba(31,168,255,.04); }
.news-date { font-family: var(--f-en); font-weight: 700; color: var(--steel); letter-spacing: .05em; }
.news-cat { font-size: 12px; font-family: var(--f-display); font-weight: 700; color: #fff; background: var(--steel); padding: 3px 12px; border-radius: 2px; }
.news-ttl { color: var(--text); flex: 1 1 60%; }
.news-item:hover .news-ttl { color: var(--electric); }

/* CONTACT CTA */
.contact-cta { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.contact-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 80% 20%, rgba(31,168,255,.25), transparent 60%); }
.contact-cta .container { position: relative; z-index: 1; text-align: center; }
.contact-cta__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px,3.4vw,36px); margin: 18px 0 20px; }
.contact-cta__lead { color: #c2d1e0; max-width: 680px; margin: 0 auto 36px; }
.contact-actions { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.tel-block { text-align: left; }
.tel-block .tel { font-family: var(--f-en); font-weight: 700; font-size: clamp(26px,3vw,38px); color: #fff; letter-spacing: .04em; display: flex; align-items: center; gap: 12px; }
.tel-block .hours { color: #9fb3c6; font-size: 13px; }

/* ============================================================ FOOTER */
.site-footer { background: var(--ink); color: #cdd9e5; padding-block: 64px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-logo img { height: 44px; margin-bottom: 20px; }
.foot-addr { font-size: 13.5px; color: #9fb3c6; line-height: 1.9; }
.foot-nav h4 { font-family: var(--f-en); font-weight: 700; letter-spacing: .2em; font-size: 12px; color: var(--electric); margin-bottom: 16px; }
.foot-nav li { margin-bottom: 11px; }
.foot-nav a { font-size: 14px; color: #cdd9e5; word-break: keep-all; }
.foot-nav a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; font-family: var(--f-en); letter-spacing: .08em; font-size: 12px; color: #7f93a7; text-align: center; }

/* ============================================================ generic page / single (news) */
.page-hero { background: var(--ink); color: #fff; padding-top: calc(var(--header-h) + 60px); padding-bottom: 60px; position: relative; }
.page-hero .eyebrow { color: var(--glow); }
.page-hero .eyebrow::before { background: var(--glow); }
.page-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px,4vw,42px); margin-top: 14px; }
.prose { max-width: 820px; margin-inline: auto; padding-block: clamp(50px,7vw,80px); }
.prose h2 { font-family: var(--f-display); font-size: 26px; margin: 1.6em 0 .6em; color: var(--ink); }
.prose h3 { font-family: var(--f-display); font-size: 20px; margin: 1.4em 0 .5em; color: var(--ink); }
.prose p { margin-bottom: 1.2em; }
.prose a { color: var(--electric); text-decoration: underline; }
.single-meta { display: flex; gap: 18px; align-items: center; margin-top: 16px; }

/* breadcrumb */
.crumb { font-family: var(--f-en); font-size: 13px; letter-spacing: .04em; color: #9fb3c6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.crumb a { color: var(--glow); }
.crumb a:hover { text-decoration: underline; }
.crumb__current { color: #9fb3c6; }
.page-hero .crumb { margin-bottom: 18px; }

/* post nav (prev / back / next) */
.prose__thumb { margin: 0 0 2em; }
.prose__thumb img { width: 100%; border-radius: 4px; }
.post-nav { max-width: 980px; margin: 0 auto 90px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.post-nav__side a { display: inline-flex; flex-direction: column; gap: 4px; }
.post-nav__prev { text-align: left; }
.post-nav__next { text-align: right; }
.post-nav__next a { align-items: flex-end; }
.post-nav__dir { font-family: var(--f-en); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--electric); }
.post-nav__ttl { font-size: 13.5px; color: var(--muted); max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav__side a:hover .post-nav__ttl { color: var(--electric); }
@media (max-width: 700px) {
  .post-nav { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .post-nav__prev, .post-nav__next { text-align: center; }
  .post-nav__next a { align-items: center; }
  .post-nav__center { order: -1; }
}

/* contact form */
.form { max-width: 720px; margin-inline: auto; padding-block: clamp(50px,7vw,80px); }
.form .field { margin-bottom: 24px; }
.form label { display: block; font-family: var(--f-display); font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.form label .req { color: #e0463c; font-size: 12px; margin-left: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px;
  font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--electric); border-color: transparent; }
.form textarea { min-height: 170px; resize: vertical; }
.form__submit { text-align: center; margin-top: 10px; }
.notice { padding: 16px 20px; border-radius: 4px; margin-bottom: 24px; }
.notice--ok { background: #e6f7ee; color: #1d7a47; border: 1px solid #b7e6cc; }
.notice--err { background: #fdeceb; color: #b3322a; border: 1px solid #f3c6c2; }

/* ============================================================ reveal animation
   visible by default (no-JS / SEO safe); only hidden once JS marks <html class="js"> */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================ responsive */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .site-nav-open .nav {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(6,11,22,.97);
    padding: 24px var(--gutter) 36px;
  }
  .site-nav-open .nav ul { flex-direction: column; gap: 4px; align-items: stretch; }
  .site-nav-open .nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .pillars, .biz-grid, .works { grid-template-columns: 1fr; }
  .about, .recruit, .company { grid-template-columns: 1fr; }
  .about__media, .recruit__media { order: -1; }
  .welcome { grid-template-columns: 1fr; }
  .recruit-values { grid-template-columns: 1fr; }
  .flow::before, .flow::after { left: 18px; }
  .works { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-logo { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .works { grid-template-columns: 1fr; }
  .news-item { gap: 10px 16px; }
  .news-ttl { flex-basis: 100%; }
  .contact-actions { flex-direction: column; }
  .flow::before, .flow::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__beam, .flow::after { animation: none; }
  html { scroll-behavior: auto; }
}
