/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a2538;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

:root {
  --c-primary: #1a4a8c;        /* 深い電気ブルー */
  --c-primary-dark: #0d2f5e;   /* 紺色 */
  --c-accent: #f5b800;         /* 電気の閃光イエロー */
  --c-accent-dark: #c89400;    /* ゴールド */
  --c-text: #1a2538;
  --c-muted: #5a6a80;
  --c-bg: #f3f6fa;             /* 涼しげなライトグレー */
  --c-border: #d6dde6;
  --shadow-sm: 0 2px 8px rgba(26, 74, 140, 0.08);
  --shadow-md: 0 6px 24px rgba(26, 74, 140, 0.14);
  --shadow-lg: 0 12px 48px rgba(26, 74, 140, 0.20);
}

/* ===== Layout ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.sp-only { display: none; }
@media (max-width: 768px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  border-radius: 8px;
}
.logo-text strong { font-size: 17px; }
.nav-pc { display: flex; gap: 24px; align-items: center; }
.nav-pc a { font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-pc a:hover { color: var(--c-primary); }
.nav-pc .nav-cta {
  background: var(--c-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
}
.nav-pc .nav-cta:hover { background: var(--c-primary-dark); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.2s;
}

@media (max-width: 1100px) {
  .nav-pc { display: none; }
  .hamburger { display: flex; }
}

/* スマホナビ */
.nav-sp {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 16px 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.nav-sp.is-open { display: flex; }
.nav-sp a {
  padding: 14px 8px;
  border-bottom: 1px solid var(--c-border);
  font-weight: 500;
}
.nav-sp a:last-child { border-bottom: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2f5e 0%, #1a4a8c 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(13, 47, 94, 0.65) 0%, rgba(13, 47, 94, 0.75) 100%),
    url('../images/01_hero_electrician.png');
  background-size: cover;
  background-position: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--c-accent);
  color: #1a2538;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 900;
  margin-bottom: 32px;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.hero-title {
  display: inline-block;
  color: #fff;
  font-size: clamp(28px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  background: rgba(0, 0, 0, 0.55);
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 56px);
  border-radius: 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 100%;
}
.hero-em {
  display: inline-block;
  background: var(--c-accent);
  color: #1a2538;
  text-shadow: none;
  padding: 2px 14px;
  border-radius: 8px;
  font-weight: 900;
}
.hero-sub {
  display: inline-block;
  color: #fff;
  background: rgba(8, 26, 56, 0.7);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 600;
  margin-bottom: 36px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-points {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-points li {
  background: rgba(8, 26, 56, 0.6);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.btn-primary {
  background: var(--c-accent);
  color: #1a2538;
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn-secondary {
  background: #fff;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.btn-secondary:hover {
  background: var(--c-primary);
  color: #fff;
}
.btn-icon { font-size: 24px; }
.btn-small { display: block; font-size: 12px; opacity: 0.9; }
.btn-large { display: block; font-size: 22px; line-height: 1.2; }
.btn-tiny { display: block; font-size: 11px; opacity: 0.8; }
.btn-large-cta { padding: 22px 36px; }

/* ===== Trust Badges ===== */
.trust {
  background: var(--c-bg);
  padding: 48px 0;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-list li {
  text-align: center;
  background: #fff;
  padding: 28px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.trust-list strong {
  display: block;
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.trust-num {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--c-primary);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.trust-num small { font-size: 0.5em; margin-left: 4px; }
.trust-list em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--c-muted);
}

@media (max-width: 768px) {
  .trust-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Sections common ===== */
section { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  margin-bottom: 56px;
  line-height: 1.4;
}
.section-eyebrow {
  display: block;
  font-size: 13px;
  color: var(--c-accent-dark);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.section-title-light { color: #fff; }
.section-title-light .section-eyebrow { color: var(--c-accent); }

/* ===== Problem ===== */
.problem { background: #fff; }
.problem-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.problem-list li {
  background: var(--c-bg);
  padding: 28px 16px;
  text-align: center;
  border-radius: 16px;
}
.problem-icon {
  display: inline-block;
  font-size: 36px;
  margin-bottom: 12px;
}
.problem-list p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.problem-answer {
  text-align: center;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-top: 24px;
}
.problem-answer strong {
  color: var(--c-accent-dark);
  font-size: 1.15em;
}

@media (max-width: 768px) {
  .problem-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Strengths ===== */
.strengths { background: var(--c-bg); }
.strength-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: #fff;
  padding: 36px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.strength-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--c-accent-dark);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
}
.strength-image {
  flex-shrink: 0;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  align-self: center;
}
.strength-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.strength-body { flex: 1; }
.strength-body h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 12px;
  color: var(--c-primary-dark);
}
.strength-body p {
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: 12px;
}
.strength-tag {
  display: inline-block;
  background: var(--c-accent);
  color: #1a2538;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .strength-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .strength-num { width: auto; font-size: 40px; }
  .strength-image { width: 100%; }
}

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 2px solid var(--c-border);
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.2s;
}
.service-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-icon { font-size: 48px; margin-bottom: 16px; }
.service-card h3 {
  font-size: 18px;
  color: var(--c-primary-dark);
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ===== Flow ===== */
.flow { background: var(--c-bg); }
.flow-list {
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.flow-list li {
  background: #fff;
  padding: 24px 18px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.flow-num {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.flow-list h3 {
  font-size: 15px;
  color: var(--c-primary-dark);
  margin-bottom: 8px;
}
.flow-list p {
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .flow-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .flow-list { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 18px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 50px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--c-primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 24px 24px;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: #fff;
  text-align: center;
}
.contact-lead {
  font-size: 16px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.9);
}
.contact-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.contact-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 32px;
}

/* ===== About ===== */
.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.company-table th, .company-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  vertical-align: top;
}
.company-table th {
  background: var(--c-bg);
  font-weight: 700;
  width: 30%;
  color: var(--c-primary-dark);
}
.company-table tr:last-child th, .company-table tr:last-child td {
  border-bottom: none;
}
.company-table a { color: var(--c-primary); text-decoration: underline; }

@media (max-width: 600px) {
  .company-table th, .company-table td {
    display: block;
    width: 100%;
    padding: 12px 18px;
  }
  .company-table th { padding-bottom: 4px; }
  .company-table td { padding-top: 4px; padding-bottom: 18px; }
}

/* ===== Footer ===== */
.footer {
  background: #0d1f3a;
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-logo { font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.footer-address, .footer-tel { font-size: 13px; margin-bottom: 4px; }
.footer-copy { font-size: 12px; margin-top: 24px; opacity: 0.7; }
.footer-note {
  font-size: 11px;
  margin-top: 8px;
  opacity: 0.5;
  font-style: italic;
}

/* ===== Floating Call Button (Mobile) ===== */
.floating-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-accent);
  color: #1a2538;
  padding: 14px;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 50;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.floating-call-icon { font-size: 20px; }
@media (max-width: 768px) {
  .floating-call { display: flex; }
  .footer { padding-bottom: 80px; }
}
