/* 西湖工業 共通ヘッダー設定 */
body {
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", Meiryo, sans-serif;
}
header {
  background: #fff;
  border-bottom: 3px solid #2e7d32;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.hdr-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.hdr-logo img {
  height: 32px;
  width: auto;
  display: block;
}
/* 文字の高さ調整:ここを直せば全部のページが同時に直ります */
.hdr-logo div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  margin-top: 2px;
}
.hdr-name {
  font-size: 20px;
  font-weight: 700;
  color: #1b5e20;
  white-space: nowrap;
}
.hdr-sub {
  font-size: 10px;
  color: #555;
  display: block;
  margin-top: 1px;
}
.hdr-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hdr-tel {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #2e7d32;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hdr-tel span {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
/* 電話アイコン白固定（全デバイス共通） */
.hdr-tel svg {
  fill: #fff !important;
  flex-shrink: 0;
}
.cta-tel svg {
  fill: #fff !important;
}
.hdr-est {
  background: #1b5e20;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.hdr-hbg {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 44px;
  cursor: pointer;
  background: #2e7d32;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  flex-shrink: 0;
}
.hdr-hbg span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}
.hdr-hbg::after {
  content: "メニュー";
  font-size: 9px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}
.hdr-hbg.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr-hbg.open span:nth-child(2) { opacity: 0; }
.hdr-hbg.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
nav { background: #1b5e20; }
.hdr-nav {
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
}
.hdr-nav a {
  color: #fff;
  text-decoration: none;
  padding: 9px 5px;
  font-size: 10.5px;
  display: block;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}
.hdr-nav a:hover, .hdr-nav a.active { background: #2e7d32; }
/* タブレット：ナビを2行折り返し */
@media(max-width: 1024px) and (min-width: 701px) {
  .hdr-nav { flex-wrap: wrap; }
  .hdr-nav a { flex: 0 0 auto; padding: 8px 10px; font-size: 10.5px; }
}
@media(max-width: 700px) {
  .hdr-sub { display: none; }
  .hdr-logo div { margin-top: 0; }
  .hdr-name { font-size: 15px; }
  .hdr-tel { font-size: 11px; padding: 5px 8px; }
  .hdr-est { display: none; }
  .hdr-hbg { display: flex; }
  .hdr-nav { display: none; flex-direction: column; }
  .hdr-nav.open { display: flex; }
  .hdr-nav a { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.15); }
}

/* トップに戻るボタン（全ページ共通） */
#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  z-index: 9999;
}
#page-top svg {
  fill: #fff;
  width: 28px;
  height: 28px;
}

/* 施工写真ギャラリー共通（全ページ） */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
@media(max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
