body {
    font-family: 'Zen Kaku Gothic New', 'Montserrat', sans-serif;
    margin: 0;
    background: #fff;
    color: #222;
    }

.logo {
    /* padding: 20px 0 0 40px; */
    display: inline-block;
    vertical-align: middle;
    }
.logo img {
    height: 40px;
    width: auto;
    }
nav {
    display: inline-block;
    text-align: right;
    /* margin-right: 40px; */
    vertical-align: middle;
    padding-top: 40px;
    width: 100%;
    }
nav ul {
    list-style: none;
    padding: 10px;
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 80px;
    }
nav li {
    display: inline-block;
    /* margin: 0 50px; */
    }
/* nav li.logo {
    position: absolute;
    left: 40px;
    margin: 0;
    } */
nav li.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    }
/* nav li:last-child {
    position: absolute;
    right: 40px;
    margin: 0;
    } */
nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
    }
/* nav a:not(.contact-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
    }
nav a:not(.contact-btn):hover::after {
    width: 100%;
    } */
nav a.contact-btn {
    background: transparent;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #fff;
    transition: background 0.3s, color 0.3s;
    }
nav a.contact-btn:hover {
    background: #fff;
    color: #222;
    }

main {
    /* max-width: 1440px; */
    margin: 0 auto;
    /* padding: 0 40px; */
    }
.section {
    max-width: 1040px;
    margin: 160px auto;
    padding: 0;
    }
.section-title {
    font-size: 4.0rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 0px;
    letter-spacing: 0.05em;
    margin-top: 0;
    }
h3 {
    margin: 0 0 80px 0;
    font-weight: 400;
    font-size: 2rem;
    }
    /* @media (max-width: 900px) {
        .section-title {
            margin-left: 60px;
        }
        h3 {
            margin-left: 60px;
            }
    } */

@media (max-width: 500px) {
    .section-title {
        font-size: 3.0rem;
    }
    h3 {
    font-size: 1.5rem;
    margin: 0 0 40px 40px;
    }
}
@media (max-width: 375px) {
    h3 {
        margin: 0 0 40px 20px;
        }
}

footer {
    background: #fff;
    color: #222;
    text-align: center;
    /* padding-top: 160px; */
    /* padding-bottom: 160px; */
    font-size: 16px;
    }

.footer-logo img {
    height: 60px;
    width: auto;
    }
address {
    font-style: normal;
    margin: 10px 0;
    }

/* 英語・数字用 */
.english, .number {
    font-family: 'Montserrat', sans-serif;
    }
/* レスポンシブ */
/* @media (max-width: 1200px) {
    main {
        max-width: 700px;
    }
} */

@media (max-width: 900px) {
    .service-content, .works-content {
        flex-direction: column;
        }
}
@media (max-width: 700px) {
    .logo {
        padding: 20px 0 0 0;
    }
    nav {
        margin-right: 20px;
    }
    /* main {
        max-width: 375px;
    } */
    .contact-section {
        padding: 60px 20px;
    }

    .main-copy {
        font-size: 1.2rem;
        left: 10px;
        top: 60px;
        width: 90%;
        padding: 20px;
    }
    .section {
        margin: 160px auto;
    }
    .service-img, .works-img {
        max-width: 100%;
    }
}


nav.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #23241f;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding-top: 24px;
  padding-bottom: 24px;
  transition: background 0.3s, color 0.3s, padding 0.3s;
  max-width: none;
}
nav.sticky a,
nav.sticky a.contact-btn {
  color: #23241f;
  border-color: #23241f;
}
nav.sticky a.contact-btn:hover {
  background: #23241f;
  color: #fff;
}
/* デフォルト（index.htmlなど） */
.site-header,
nav {
  /* background: #181914; */
  color: #fff;
}
nav a,
nav a.contact-btn {
  color: #fff;
  border-color: #fff;
}

nav {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* company.htmlだけ色を変える */
body.company-page .site-header,
body.company-page nav {
  background: #fff !important;
  color: #23241f !important;
}
body.company-page nav a,
body.company-page nav a.contact-btn {
  color: #23241f !important;
  border-color: #23241f !important;
}
body.company-page nav a.contact-btn:hover {
  background: #23241f !important;
  color: #fff !important;
}
.main-visual {
  display: none;
}
body.index-page .main-visual {
  display: block;
}

.footer-logo img {
    height: 60px;
    width: auto;
  }
  
  .footer-company {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
  }
  
  .footer-nav {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  
  .footer-nav ul{
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
  }
  .footer-nav ul li {
    margin-bottom: 30px;
  }
  
  .footer-nav a {
    text-decoration: none;
    color: #222;
  }
  .footer-nav a:hover {
    color: #f6b009;
  }
  .footer-icon-link {
    font-size: 30px;
  }
  .footer-copyright {
    color: #fff;
      background: #222;
      padding-top: 10px;
      padding-bottom: 10px;
  }
@media (max-width: 674px) {
    .footer-nav ul {
        display: grid;
        grid-template-columns: 100px 100px 100px;
        gap: 0;
        margin-bottom: 20px;
      }
}
@media (max-width: 375px) {
    .footer-copyright {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* ハンバーガーメニュー初期非表示 */
.hamburger {
  position: fixed;
  top: 1.5em;
  right: 1.5em;
  z-index: 3000;
  width: 50px;
  height: 50px;
  background: #F6B009;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  display: none;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 1px;
  margin: 6px auto;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  #global-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    /* width: 100vw;
    max-width: 100vw; */
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 2000;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s, transform 0.3s;
    padding-top: 0;
    width: 100%;
    height: 100%;
    /* margin-top: 70px; */
  }
  #global-nav.open {
    max-height: 100vh;
    opacity: 1;
    transform: translateY(0);
    padding-top: 0.5em;
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    margin-top: 80px;
  }
  .nav-list li {
    margin: 1.2em 0;
  }
  .hamburger {
    display: block;
  }
  .site-header {
    position: relative;
    z-index: 1100;
  }
  /* ハンバーガー開閉アニメーション */
  .hamburger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  /* #global-nav.open .nav-list a {
    color: #000 !important;
  } */
}


@media (max-width: 845px) {
nav ul {
    gap: 30px;
    }
}