/* ============================================================
   header.css — shared site header, loaded on every page
   ============================================================ */

.site-header {
  background: #fff;
  padding: 24px 0 0;
}

.header-inner {
  width: min(1160px, 94%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand p {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
}

.brand h1 {
  margin: 0;
  font-size: 32px;
  color: #111;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: .01em;
}

.brand span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
}

.header-contact {
  text-align: right;
}

.header-contact p {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}

.header-contact .tel {
  display: block;
  color: #087319;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.5px;
}

.tel-main::before {
  content: "☎";
  font-size: 30px;
  margin-right: 14px;
}

.tel-free::before {
  content: "☏";
  font-size: 30px;
  margin-right: 14px;
}

.header-contact span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.7px;
}

.menu-button { display: none; }

.global-nav {
  width: min(790px, 82%);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items: center;
  text-align: center;
}

.global-nav a {
  padding: 10px 10px 18px;
  font-size: 17px;
  font-weight: 700;
  position: relative;
}

.global-nav a.active {
  color: #087319;
}

.global-nav a.active::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  background: #087319;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2ea;
  }

  .header-contact {
    display: block;
    width: 100%;
    order: 2;
    text-align: right;
    margin-top: 10px;
  }

  .header-contact p { display: none; }

  .header-contact .tel {
    display: inline-block;
    font-size: 14px;
    margin: 0 0 0 14px;
  }

  .tel-main::before, .tel-free::before {
    font-size: 14px;
    margin-right: 3px;
  }

  .header-contact span { display: none; }

  body.home .header-contact p {
    display: block;
    font-size: 12px;
  }

  body.home .header-contact .tel {
    display: inline-block;
    font-size: 20px;
    margin: 0 0 2px 14px;
  }

  body.home .tel-main::before, body.home .tel-free::before {
    font-size: 20px;
    margin-right: 8px;
  }

  body.home .header-contact span {
    display: block;
    font-size: 11px;
    margin-top: 6px;
    color: #666;
  }

  .menu-button {
    display: grid;
    gap: 5px;
    border: 0;
    border-radius: 6px;
    background: #087319;
    padding: 12px;
    cursor: pointer;
  }

  .menu-button span {
    width: 26px;
    height: 2px;
    background: #fff;
    display: block;
  }

  .global-nav {
    width: 100%;
    display: none;
    grid-template-columns:minmax(0,1fr);
    margin: 0;
    background: #fff;
    border-top: 1px solid #dfe8d9;
  }

  .global-nav.open { display: grid; }

  .global-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid #dfe8d9;
    font-size: 15px;
  }

  .global-nav a.active::after { display: none; }
}

@media (max-width: 560px) {
  .site-header { padding-top: 18px; }
  .header-inner { width: 94%; }
  .brand img { width: 46px; height: 46px; }
  .brand h1  { font-size: 19px; }
  .brand p, .brand span { font-size: 12px; }
}
