@charset "UTF-8";

/* ============================================================
   長野電気工事店  ／  職人ドキュメンタリー風リニューアル
   ============================================================ */
:root {
  --bg: #fafaf8;
  --bg-soft: #f1efe8;
  --bg-deep: #e6e2d6;
  --ink: #1a1814;
  --ink-soft: #4a4640;
  --ink-muted: #888378;
  --line: #ddd9cd;
  --accent: #c89a3a;
  --accent-deep: #9a7424;
  --alert: #c44430;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: opacity .25s; }
a:hover { opacity: 0.6; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ===== 緊急バー（落ち着いた黒地） ===== */
.emergency-bar {
  background: var(--ink);
  color: var(--bg);
  padding: 12px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--accent);
}
.emergency-bar .label-en {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  margin-right: 16px;
  text-transform: uppercase;
}
.emergency-bar a {
  color: var(--accent);
  font-weight: 600;
  margin-left: 12px;
  letter-spacing: 0.05em;
}
.emergency-bar a:hover { color: var(--bg); }

/* ===== ヘッダー ===== */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1.4;
}
.logo .sub {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-muted);
  font-weight: 400;
  margin-top: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-tel {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}
.header-tel strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}
nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
nav a.active { color: var(--ink); }
nav a.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--accent);
  margin-top: 4px;
}

/* ===== ヒーロー（フルブリード写真） ===== */
.hero {
  position: relative;
  height: 84vh;
  min-height: 600px;
  background-color: #2a2620;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero .tag {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 26px;
  font-weight: 500;
  text-transform: uppercase;
}
.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero p {
  font-size: 15px;
  max-width: 560px;
  line-height: 2.2;
  opacity: 0.92;
  margin-bottom: 44px;
}
.hero-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 18px 48px;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg) !important;
  cursor: pointer;
  font-family: inherit;
  transition: all .3s;
}
.btn:hover { background: transparent; color: var(--ink) !important; opacity: 1; }
.btn-outline {
  background: transparent;
  border-color: var(--bg);
  color: var(--bg) !important;
}
.btn-outline:hover { background: var(--bg); color: var(--ink) !important; }
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink) !important;
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white) !important; }

/* ===== セクション共通 ===== */
section { padding: 130px 0; }
.section-label {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
  text-transform: uppercase;
}
.section-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  color: var(--ink);
}

/* ===== INTRO ===== */
.intro {
  background: var(--bg);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.intro-img {
  height: 540px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
}
.intro-text p {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2.2;
}
.intro-text p:last-child { margin-bottom: 0; }
.signature {
  margin-top: 36px;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.1em;
}

/* ===== STRENGTHS（数字付き行） ===== */
.strengths {
  background: var(--bg-soft);
}
.strengths-list { margin-top: 60px; }
.strength-row {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: 50px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.strength-row:last-child { border-bottom: none; }
.strength-row .num {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  color: var(--accent);
  font-weight: 500;
  line-height: 1;
}
.strength-row h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.strength-row p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 2.1;
}

/* ===== SERVICES（タイル型・SVGアイコン） ===== */
.services {
  background: var(--bg);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.service-tile {
  background: var(--white);
  padding: 44px 32px;
  border: 1px solid var(--line);
  transition: all .3s;
}
.service-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.service-tile .icon-line {
  width: 38px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 24px;
}
.service-tile h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.6;
}
.service-tile p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}

/* ===== CASES（施工事例） ===== */
.cases {
  background: var(--bg);
}
.cases-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.case-item {
  display: block;
  position: relative;
}
.case-img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-deep);
  margin-bottom: 14px;
  transition: opacity .3s;
}
.case-item:hover .case-img { opacity: 0.78; }
.case-tag {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.case-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.7;
}

/* ===== NUMBERS ===== */
.numbers {
  background: var(--ink);
  color: var(--bg);
  padding: 110px 0;
}
.numbers .section-label { color: var(--accent); }
.numbers .section-title { color: var(--bg); }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 50px;
}
.number-item {
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 32px;
}
.number-item .big {
  font-family: "Cormorant Garamond", serif;
  font-size: 84px;
  line-height: 1;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 4px;
}
.number-item .big small {
  font-size: 28px;
  margin-left: 4px;
  opacity: 0.7;
}
.number-item .label {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(250,250,248,0.65);
  margin-top: 12px;
}

/* ===== AREA SECTION ===== */
.area-section {
  background: var(--bg-soft);
}
.area-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 50px;
}
.area-list span {
  background: var(--bg);
  padding: 22px;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* ===== CTA ===== */
.cta-band {
  background:
    linear-gradient(rgba(26,24,20,0.88), rgba(26,24,20,0.88)),
    url('https://loremflickr.com/1800/700/electrician,worker?lock=902') center/cover;
  color: var(--bg);
  text-align: center;
  padding: 130px 32px;
}
.cta-band .section-label { color: var(--accent); }
.cta-band h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  line-height: 1.7;
  color: var(--bg);
}
.cta-band p { color: rgba(250,250,248,0.8); margin-bottom: 24px; font-size: 14.5px; line-height: 2; }
.cta-tel {
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: inline-block;
  margin: 8px 0;
}
.cta-band small { display: block; opacity: 0.7; margin-bottom: 36px; font-size: 12px; letter-spacing: 0.15em; }

/* ===== 既存ページ用（service/company/contact 互換維持） ===== */
.service-detail {
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 40px;
  transition: border .3s;
}
.service-detail:hover { border-color: var(--accent); }
.service-detail h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.service-detail p { color: var(--ink-soft); margin-bottom: 14px; font-size: 14.5px; line-height: 2.1; }
.service-detail .price-tag {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  margin-top: 30px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.info-table th {
  background: transparent;
  width: 26%;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.info-table td { color: var(--ink); line-height: 2; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-top: 30px;
}
.contact-info-box {
  background: var(--ink);
  color: var(--bg);
  padding: 44px 36px;
}
.contact-info-box h3 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--accent);
}
.contact-info-box .cta-tel { color: var(--accent); font-size: 30px; margin: 12px 0; }
.contact-info-box dl { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-info-box dt {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-top: 18px;
  font-weight: 500;
}
.contact-info-box dd { font-size: 14px; line-height: 2; color: rgba(250,250,248,0.9); }

form .field { margin-bottom: 24px; }
form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 500;
}
form label .req {
  background: var(--alert);
  color: var(--bg);
  padding: 2px 8px;
  font-size: 10px;
  margin-left: 8px;
  letter-spacing: 0.1em;
}
form input, form textarea, form select {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--accent);
}
form textarea { min-height: 160px; resize: vertical; }
.form-submit { text-align: center; margin-top: 40px; }
.form-submit button {
  padding: 18px 64px;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: all .3s;
}
.form-submit button:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ===== フッター ===== */
footer {
  background: var(--ink);
  color: rgba(250,250,248,0.7);
  padding: 80px 0 40px;
  text-align: center;
}
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
footer .logo { color: var(--bg); margin-bottom: 16px; font-size: 18px; }
footer .logo .sub { color: var(--accent); }
footer p { font-size: 13px; line-height: 2; margin-bottom: 4px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  padding-top: 26px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(250,250,248,0.4);
}

/* ===== レスポンシブ ===== */
@media (max-width: 880px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 24px; }
  .header-right { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .header-tel { text-align: left; }
  nav ul { gap: 18px; flex-wrap: wrap; }
  .hero { height: 78vh; min-height: 480px; }
  .hero-inner { padding: 0 28px 50px; }
  section { padding: 80px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-img { height: 320px; }
  .strength-row { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .strength-row .num { font-size: 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: 1fr; gap: 28px; }
  .number-item { padding-left: 24px; }
  .number-item .big { font-size: 60px; }
  .area-list { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 30px; }
  .info-table th { width: 36%; padding: 16px; font-size: 11px; }
  .info-table td { padding: 16px; font-size: 13px; }
  .cta-tel { font-size: 28px; }
}
