/* ==========================================================================
   Header - Based on Figma Component 41:5127
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px;
}

/* Logo - 145x32 */

.site-header__logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.site-header__logo img {
  width: 145px;
  height: 32px;
  display: block;
}

/* Right section: nav + CTA */

.site-header__right {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__nav a {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  text-decoration: none;
  padding: 16px 24px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header__nav a:hover {
  color: #E51F1F;
}

/* CTA Buttons - gap 16px */

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* 資料ダウンロード: black outline */
.cta-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 4px;
  padding: 16px 24px 16px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.cta-download:hover {
  opacity: 0.7;
}

.cta-download img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* お問い合わせ: red filled */
.cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #E51F1F;
  color: #ffffff;
  border: 1px solid #E51F1F;
  border-radius: 4px;
  padding: 16px 24px 16px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.cta-contact:hover {
  opacity: 0.85;
}

.cta-contact img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hamburger button - hidden on desktop */
.site-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  padding: 0;
  flex-shrink: 0;
  z-index: 101;
}

.site-header__hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
  transition: transform 0.3s, opacity 0.3s;
}

.site-header__hamburger span:nth-child(1) { top: 2px; }
.site-header__hamburger span:nth-child(2) { top: 11px; }
.site-header__hamburger span:nth-child(3) { top: 20px; }

.site-header__hamburger.is-open span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.site-header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.site-header__hamburger.is-open span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* Mobile fullscreen menu modal */
.site-header__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 80px 24px 40px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.site-header__mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.site-header__mobile-nav a {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  padding: 16px 0;
}

.site-header__mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.site-header__mobile-cta .cta-download,
.site-header__mobile-cta .cta-contact {
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .site-header__inner {
    padding: 16px 20px;
  }

  .site-header__right {
    display: none;
  }

  .site-header__hamburger {
    display: block;
  }

  .site-header__mobile-menu {
    display: flex;
  }

  .site-header__mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
  }
}
