/* 電工一善 リニューアル案 共通スタイル */

:root {
  --orange: #f77a1f;
  --orange-dark: #e3600a;
  --yellow: #ffcd3c;
  --yellow-soft: #fff4d6;
  --red: #e53935;
  --ink: #2b2b2b;
  --ink-soft: #595959;
  --line: #eee0c0;
  --bg: #fffaf0;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 24px rgba(227, 96, 10, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top info bar ===== */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar .areas { color: #ffd98f; }
.topbar .tel { margin-left: auto; font-weight: 700; color: #fff; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--orange-dark);
}
.logo .mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
}
.logo small {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
}
.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-call {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow);
}
.btn-call small { display: block; font-size: 10px; font-weight: 500; }

nav.main-nav {
  background: var(--yellow);
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  max-width: 1120px;
  margin: 0 auto;
}
nav.main-nav a {
  display: block;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  border-right: 1px solid rgba(0,0,0,0.08);
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--orange);
  color: #fff;
}
.nav-toggle { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
  color: #fff;
  padding: 42px 0 54px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18), transparent 55%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.4;
  margin: 0 0 14px;
}
.hero h1 span {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 10px;
  border-radius: 6px;
  transform: rotate(-1deg);
}
.hero p { font-size: 15px; opacity: 0.95; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-badges span {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  border: 6px solid #fff;
}

/* ===== Banner strip (client-provided banners) ===== */
.banner-strip {
  padding: 28px 0 0;
}
.banner-strip .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.banner-strip img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ===== Section heading ===== */
.section {
  padding: 48px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 30px;
}
.section-head .kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 26px;
  margin: 0;
  color: var(--orange-dark);
}
.section-head p { color: var(--ink-soft); margin-top: 8px; font-size: 14px; }

/* ===== Service cards (home banners to each page) ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}
.service-card .thumb {
  height: 150px;
  overflow: hidden;
}
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
}
.service-card p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  flex: 1;
}
.service-card .go {
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-dark);
}

/* ===== Why us icons ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.why-item .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.why-item h4 { margin: 0 0 6px; font-size: 14px; }
.why-item p { margin: 0; font-size: 12px; color: var(--ink-soft); }

/* ===== Price table (responsive fix) ===== */
.price-note {
  background: var(--yellow-soft);
  border: 2px dashed var(--orange);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  margin-bottom: 24px;
}
.price-block { margin-bottom: 40px; }
.price-block h3 {
  background: var(--orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px 10px 0 0;
  font-size: 16px;
  margin: 0;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid var(--orange);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  position: relative;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; }

table.price-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  background: #fff;
  font-size: 13.5px;
}
table.price-table th,
table.price-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.price-table th {
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  position: sticky;
  top: 0;
}
table.price-table td:last-child,
table.price-table th:last-child {
  text-align: right;
  font-weight: 800;
  color: var(--orange-dark);
}
table.price-table tr:nth-child(even) td { background: #fff8ea; }
table.price-table td:first-child,
table.price-table th:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  box-shadow: 2px 0 0 var(--line);
}
table.price-table th:first-child { background: var(--ink); }
table.price-table tr:nth-child(even) td:first-child { background: #fff8ea; }

.scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--orange-dark);
  font-weight: 700;
  margin: 8px 2px 0;
}
.scroll-hint.show { display: flex; }

/* ===== Work content pages ===== */
.page-hero {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  padding: 36px 0;
}
.page-hero h1 { margin: 0 0 8px; font-size: 28px; }
.page-hero p { margin: 0; opacity: .95; font-size: 14px; }
.breadcrumb { font-size: 12px; opacity: .85; margin-bottom: 10px; }

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: start;
}
.content-grid .photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bullet-list { list-style: none; margin: 0; padding: 0; }
.bullet-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.bullet-list li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 8px;
}

.mini-price {
  margin-top: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mini-price h4 {
  background: var(--yellow);
  margin: 0;
  padding: 10px 16px;
  font-size: 14px;
}
.mini-price table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-price td { padding: 8px 16px; border-bottom: 1px solid var(--line); }
.mini-price td:last-child { text-align: right; font-weight: 800; color: var(--orange-dark); }

/* ===== CTA strip ===== */
.cta-strip {
  background: var(--ink);
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
.cta-strip h2 { margin: 0 0 6px; font-size: 20px; }
.cta-strip p { margin: 0 0 16px; color: #ddd; font-size: 13px; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta-buttons a {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}
.cta-buttons .tel { background: var(--red); color: #fff; }
.cta-buttons .line { background: #06c755; color: #fff; }
.cta-buttons .contact { background: var(--yellow); color: var(--ink); }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--yellow-soft);
  padding-top: 36px;
}
.slogan-block {
  text-align: center;
  padding: 10px 0 30px;
}
.slogan-block h2 {
  font-size: 22px;
  color: var(--orange-dark);
  margin: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 24px;
  font-size: 13px;
}
.footer-grid h5 { margin: 0 0 10px; color: var(--orange-dark); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
}
.license-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.license-strip span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
}

/* ===== Contact form ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.contact-card h3 { margin-top: 0; color: var(--orange-dark); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8c9a0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.submit-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.demo-flag {
  background: #fff6e0;
  border: 2px dashed var(--orange);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--orange-dark);
  margin-bottom: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .banner-strip .wrap { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar .areas { display: none; }
  .header-cta .btn-call small { display: none; }
  nav.main-nav ul { flex-direction: column; display: none; }
  nav.main-nav ul.open { display: flex; }
  .nav-toggle {
    display: block;
    margin-left: auto;
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 800;
  }
  .header-cta { margin-left: 0; }
  .hero h1 { font-size: 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .scroll-hint.show { display: flex; }
}
