/* ===== 井野電気 ホームページ ===== */

:root {
  --primary: #0f6bb0;
  --primary-dark: #0b5490;
  --accent: #f5a623;
  --navy: #12263a;
  --ink: #2b2b2b;
  --slate: #5f6b76;
  --canvas: #f4f7fa;
  --white: #ffffff;
  --border: #e2e8ee;

  --font: "Noto Sans JP", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--primary); }

/* ===== ボタン ===== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 44px; font-size: 17px; }

.btn-ghost {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 32px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-ghost:hover { background: rgba(15, 107, 176, 0.08); }

/* ===== ヒーロー ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(18, 38, 58, 0.03), rgba(15, 107, 176, 0.08)),
    var(--canvas);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px 88px;
}

.hero-eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 17px;
  color: var(--slate);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
}

/* ===== セクション共通 ===== */
.section { padding: 88px 0; }

.section-alt { background: var(--canvas); }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--slate);
  margin-bottom: 40px;
}

/* ===== サービスカード ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(18, 38, 58, 0.08);
  transform: translateY(-2px);
}

.card-icon { font-size: 32px; margin-bottom: 12px; }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.card p { font-size: 14.5px; color: var(--slate); }

/* ===== 選ばれる理由 ===== */
.reason-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.reason {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
}

.reason-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}

.reason h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.reason p { color: var(--slate); font-size: 15px; }

/* ===== ご依頼の流れ ===== */
.flow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  list-style: none;
  margin-top: 32px;
  counter-reset: flow;
}

.flow-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 14px;
}

.flow-step h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.flow-step p { font-size: 14px; color: var(--slate); }

/* ===== 会社概要 ===== */
.company-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 15px;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-table th {
  width: 130px;
  background: var(--canvas);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.company-table td { color: var(--slate); }

/* ===== お問い合わせ ===== */
.contact {
  background: linear-gradient(135deg, var(--navy), #1a3a5c);
}

.contact-inner { text-align: center; }

.section-eyebrow.light { color: var(--accent); }
.section-title.light { color: var(--white); }

.contact-lead {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

.contact-tel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  margin-bottom: 32px;
}

.contact-tel-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.contact-tel-number {
  color: var(--white);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.contact-tel-number:hover { color: var(--accent); }

.contact-tel-hours {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* ===== フッター ===== */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* ===== レスポンシブ ===== */
.pc-only { display: inline; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { padding: 64px 24px 60px; }
  .section { padding: 64px 0; }
  .reason { flex-direction: column; gap: 12px; }
  .company-table th { width: 100px; }
  .pc-only { display: none; }
}
