/*
Theme Name: Nagamatsu Denki Bosai Hello Child
Theme URI: https://nagamatsu-denki-bosai.bizinfo.network/
Description: Hello Elementor child theme for 株式会社永松電気防災 free landing page.
Author: CrownCrown / おうちのこうじ
Template: hello-elementor
Version: 1.0.0
Text Domain: nagamatsu-hello-child
*/

:root {
  --ngm-navy: #10243c;
  --ngm-navy-2: #163653;
  --ngm-blue: #1d6f95;
  --ngm-green: #2f7d59;
  --ngm-green-2: #e7f4ee;
  --ngm-bg: #f5f8fa;
  --ngm-card: #ffffff;
  --ngm-text: #1b2733;
  --ngm-muted: #617082;
  --ngm-border: #dbe4ea;
  --ngm-line: rgba(16, 36, 60, 0.14);
  --ngm-shadow: 0 16px 46px rgba(16, 36, 60, 0.12);
  --ngm-radius: 20px;
}

.nagamatsu-lp,
.nagamatsu-lp * {
  box-sizing: border-box;
}

.nagamatsu-lp {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--ngm-text);
  background: var(--ngm-bg);
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

.nagamatsu-lp a {
  color: inherit;
  text-decoration: none;
}

.nagamatsu-lp p,
.nagamatsu-lp h1,
.nagamatsu-lp h2,
.nagamatsu-lp h3,
.nagamatsu-lp ul,
.nagamatsu-lp dl,
.nagamatsu-lp dd {
  margin: 0;
}

.nagamatsu-lp ul {
  padding: 0;
  list-style: none;
}

.ngm-container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.ngm-topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  padding: 18px 0;
  color: rgba(255,255,255,0.92);
}

.ngm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}

.ngm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ngm-brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
}

.ngm-topbar__tel {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}

.ngm-hero {
  position: relative;
  color: #fff;
  padding: clamp(92px, 11vw, 148px) 0 68px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.20) 0, rgba(255,255,255,0.08) 22%, transparent 48%),
    linear-gradient(135deg, var(--ngm-navy) 0%, var(--ngm-navy-2) 46%, var(--ngm-blue) 72%, var(--ngm-green) 100%);
  overflow: hidden;
}

.ngm-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
}

.ngm-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.ngm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.ngm-hero h1 {
  font-size: clamp(31px, 5.8vw, 60px);
  line-height: 1.18;
  letter-spacing: 0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.ngm-hero__lead {
  max-width: 740px;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}

.ngm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ngm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.35;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ngm-btn:hover {
  transform: translateY(-2px);
}

.ngm-btn--primary {
  background: #ffffff;
  color: var(--ngm-navy);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.ngm-btn--ghost {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.10);
}

.ngm-hero-card {
  position: relative;
  z-index: 2;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
}

.ngm-hero-card__title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}

.ngm-check-list {
  display: grid;
  gap: 12px;
}

.ngm-check-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255,255,255,0.92);
}

.ngm-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 13px;
  font-weight: 900;
}

.ngm-section {
  padding: clamp(58px, 8vw, 92px) 0;
}

.ngm-section--white {
  background: #fff;
}

.ngm-section--soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(245,248,250,1));
}

.ngm-section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.ngm-section-head--center {
  margin-inline: auto;
  text-align: center;
}

.ngm-label {
  display: inline-block;
  color: var(--ngm-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.ngm-section h2 {
  font-size: clamp(25px, 3.6vw, 38px);
  line-height: 1.35;
  color: var(--ngm-navy);
  font-weight: 850;
  margin-bottom: 12px;
}

.ngm-section-head p {
  color: var(--ngm-muted);
  font-size: 16px;
}

.ngm-alert {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-radius: var(--ngm-radius);
  background: #fffdf5;
  border: 1px solid #ecdca8;
  box-shadow: 0 10px 30px rgba(138, 112, 34, 0.08);
}

.ngm-alert__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f4e7b7;
  color: #6b5412;
  font-weight: 900;
}

.ngm-alert strong {
  display: block;
  color: var(--ngm-navy);
  font-size: 17px;
  margin-bottom: 4px;
}

.ngm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ngm-card {
  background: var(--ngm-card);
  border: 1px solid var(--ngm-border);
  border-radius: var(--ngm-radius);
  padding: 24px;
  box-shadow: 0 12px 34px rgba(16, 36, 60, 0.07);
}

.ngm-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--ngm-green);
  background: var(--ngm-green-2);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 16px;
}

.ngm-card h3 {
  color: var(--ngm-navy);
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.ngm-card p {
  color: var(--ngm-muted);
  font-size: 15px;
}

.ngm-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ngm-service-item {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ngm-border);
  color: var(--ngm-navy);
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(16, 36, 60, 0.05);
}

.ngm-service-item::before {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ngm-green);
  box-shadow: 0 0 0 5px var(--ngm-green-2);
}

.ngm-area {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

.ngm-area-map {
  position: relative;
  min-height: 330px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 34%, rgba(47,125,89,0.30), transparent 32%),
    radial-gradient(circle at 66% 70%, rgba(29,111,149,0.25), transparent 36%),
    linear-gradient(135deg, #e8f3f1, #f5f8fa);
  border: 1px solid var(--ngm-border);
}

.ngm-area-map::before,
.ngm-area-map::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(16,36,60,0.18);
}

.ngm-area-map::before {
  inset: 44px 76px 76px 40px;
}

.ngm-area-map::after {
  inset: 84px 38px 42px 108px;
}

.ngm-area-pin {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 156px;
  height: 156px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 999px;
  background: var(--ngm-navy);
  color: #fff;
  font-weight: 900;
  box-shadow: var(--ngm-shadow);
}

.ngm-area-list {
  display: grid;
  gap: 14px;
}

.ngm-area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ngm-border);
  box-shadow: 0 8px 22px rgba(16, 36, 60, 0.05);
}

.ngm-area-card strong {
  color: var(--ngm-navy);
  font-size: 18px;
}

.ngm-area-card span {
  color: var(--ngm-green);
  font-size: 13px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ngm-green-2);
}

.ngm-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ngm-license-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ngm-border);
  box-shadow: 0 8px 22px rgba(16, 36, 60, 0.05);
}

.ngm-status {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  color: #2f7d24;
  background: #f4fff0;
  border: 1px solid #79bd5c;
  font-size: 13px;
  font-weight: 800;
}

.ngm-license-name {
  color: var(--ngm-navy);
  font-weight: 800;
}

.ngm-company {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 26px;
  align-items: start;
}

.ngm-company-panel {
  padding: 30px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--ngm-navy), var(--ngm-blue));
  box-shadow: var(--ngm-shadow);
}

.ngm-company-panel h2 {
  color: #fff;
}

.ngm-company-panel p {
  color: rgba(255,255,255,0.88);
}

.ngm-insurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ngm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.ngm-info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ngm-border);
  box-shadow: 0 12px 34px rgba(16, 36, 60, 0.07);
}

.ngm-info-table th,
.ngm-info-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--ngm-border);
  vertical-align: top;
  text-align: left;
}

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

.ngm-info-table th {
  width: 34%;
  color: var(--ngm-navy);
  background: #f8fbfc;
  font-weight: 850;
}

.ngm-info-table td {
  color: var(--ngm-text);
}

.ngm-cta {
  color: #fff;
  padding: clamp(54px, 7vw, 82px) 0;
  background: linear-gradient(135deg, var(--ngm-navy), var(--ngm-green));
}

.ngm-cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.ngm-cta h2 {
  color: #fff;
  font-size: clamp(24px, 3.6vw, 36px);
  margin-bottom: 8px;
}

.ngm-cta p {
  color: rgba(255,255,255,0.88);
}

.ngm-footer {
  padding: 28px 0;
  color: var(--ngm-muted);
  background: #fff;
  font-size: 13px;
}

.ngm-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .ngm-hero__grid,
  .ngm-area,
  .ngm-company,
  .ngm-cta__box {
    grid-template-columns: 1fr;
  }

  .ngm-grid-3,
  .ngm-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ngm-container {
    width: min(100% - 22px, 1120px);
  }

  .ngm-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ngm-hero {
    padding-top: 136px;
  }

  .ngm-actions,
  .ngm-btn {
    width: 100%;
  }

  .ngm-grid-3,
  .ngm-service-grid,
  .ngm-license-grid {
    grid-template-columns: 1fr;
  }

  .ngm-alert,
  .ngm-license-item {
    grid-template-columns: 1fr;
  }

  .ngm-info-table,
  .ngm-info-table tbody,
  .ngm-info-table tr,
  .ngm-info-table th,
  .ngm-info-table td {
    display: block;
    width: 100%;
  }

  .ngm-info-table th {
    padding-bottom: 6px;
    border-bottom: none;
  }

  .ngm-info-table td {
    padding-top: 0;
  }
}
/* ロゴ画像の角はみ出し修正 */
.ngm-header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(260px, 30vw, 360px);
  max-width: 100%;
  padding: 0;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.ngm-header-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .ngm-header-logo {
    width: min(340px, 100%);
    padding: 0;
    border-radius: 999px;
  }

  .ngm-header-logo img {
    border-radius: 999px;
  }
}