:root {
  --red: #e60012;
  --line: #e5e7eb;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
  color: var(--text, var(--black, #222));
  background: var(--page-bg, var(--bg, #fff));
  line-height: 1.75;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* 全ページ共通のヘッダー / フッター / 常時表示CTA */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04)
}

.site-header__inner,
.site-footer__grid,
.site-footer__company,
.site-footer__bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px
}

.site-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  padding: 0;
  line-height: 0;
  flex: 0 0 auto
}

.site-logo__image {
  width: 132px;
  height: auto;
  display: block;
  background: #fff;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  object-fit: contain
}

.site-header .site-logo__image {
  width: 132px;
  max-height: 52px
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 800
}

.site-header__nav a {
  white-space: nowrap
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e60012;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(230, 0, 18, .22);
  cursor: pointer
}

.site-header__toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none
}

.site-header__toggle-button {
  display: none
}

.site-footer {
  background: #101010;
  color: #fff;
  padding: 42px 0
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 26px
}

.site-footer .site-logo {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  width: max-content
}

.site-footer .site-logo__image {
  width: 132px;
  max-height: 54px
}

.site-footer a {
  color: #fff;
  text-decoration: none
}

.site-footer a:hover {
  text-decoration: underline
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px
}

.site-footer__company {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14)
}

.site-footer__company b {
  display: block;
  margin-bottom: 8px
}

.site-footer__company p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .82)
}

.site-footer__bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0
}

.site-footer__legal a {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .72);
  padding: 0 14px;
  line-height: 1.2
}

.site-footer__legal a:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, .24)
}

.site-footer__legal a:first-child {
  padding-left: 0
}

.site-footer__legal a:hover {
  color: #fff
}

.site-footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .6)
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.floating-cta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  transition: transform .15s ease, box-shadow .15s ease
}

.floating-cta__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28)
}

.floating-cta__link--top {
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db
}

.floating-cta__link--tel {
  background: #111
}

.floating-cta__link--estimate {
  background: #e60012;
  box-shadow: 0 12px 28px rgba(230, 0, 18, .3)
}

.floating-cta__link--contact {
  background: #374151
}

@media(max-width:900px) {
  .site-header__inner {
    height: auto;
    min-height: 68px;
    padding: 10px 22px;
    flex-wrap: wrap
  }

  .site-header__toggle-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 11px;
    margin-left: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer
  }

  .site-header__toggle-button span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease
  }

  .site-header__nav {
    display: none;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    font-size: 15px
  }

  .site-header__toggle:checked~.site-header__nav {
    display: flex
  }

  .site-header__nav a {
    padding: 14px 4px;
    border-top: 1px solid #eef0f2;
    white-space: normal
  }

  .site-header__nav .site-header__cta {
    margin-top: 12px;
    border-top: 0;
    padding: 14px 18px
  }

  .site-header__toggle:checked~.site-header__toggle-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
  }

  .site-header__toggle:checked~.site-header__toggle-button span:nth-child(2) {
    opacity: 0
  }

  .site-header__toggle:checked~.site-header__toggle-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
  }

  .site-logo__image {
    width: 124px
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .floating-cta {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 0
  }

  .floating-cta__link {
    flex: 1;
    min-width: 0;
    padding: 13px 6px;
    border-radius: 0;
    font-size: 13px;
    box-shadow: none;
    transition: none
  }

  .floating-cta__link:hover {
    transform: none;
    box-shadow: none
  }

  .floating-cta__link--estimate {
    box-shadow: none
  }

  body {
    padding-bottom: 56px
  }
}

@media(max-width:560px) {
  .site-header__inner,
  .site-footer__grid,
  .site-footer__company,
  .site-footer__bottom {
    padding-left: 16px;
    padding-right: 16px
  }
}
