/* ===== まき電気管理事務所 共通CSS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a5c;
  --accent: #f0a500;
  --light: #f5f7fa;
  --text: #333;
  --subtext: #666;
  --border: #dde3ea;
  --white: #fff;
}

body {
  font-family: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HEADER ===== */
header {
  background: var(--primary);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-img {
  height: 54px;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
}

.logo-text {
  color: var(--white);
}

.logo-text .en {
  font-size: 10px;
  opacity: 0.7;
  letter-spacing: 1px;
}

.logo-text .ja {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo .ja {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 40px 20px 24px;
}

footer .footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

footer .footer-info {
  font-size: 13px;
  margin-bottom: 6px;
}

footer .copyright {
  font-size: 12px;
  margin-top: 20px;
  opacity: 0.5;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 20px;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title .en-label {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.section-title .line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #d4920a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240,165,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  transition: all 0.2s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--subtext);
  line-height: 1.7;
}

/* ===== TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

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

.info-table th {
  width: 200px;
  color: var(--primary);
  font-weight: 700;
  background: var(--light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card-grid-3, .card-grid-2 {
    grid-template-columns: 1fr;
  }
  header {
    padding: 0 16px;
  }
  nav ul {
    gap: 2px;
  }
  nav ul li a {
    font-size: 12px;
    padding: 6px 8px;
  }
  .logo-text .ja {
    font-size: 14px;
  }
}
