/*
 * header.css
 * ヘッダー（サイトヘッダー・グローバルナビ・SPハンバーガー）
 * 読み込み順：common.css → header.css → footer.css → ページ別CSS
 */
/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transform: translateY(-100%);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
@keyframes headerReveal {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
body.is-loaded .site-header {
  animation: headerReveal 1s cubic-bezier(0.55, 0, 0.2, 1) forwards;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  gap: 32px;
  padding-left: 30px;
  padding-right: 30px;
  position: relative;
  max-width: 100%;
  height: 100px;
}
.nav-toggle {
  display: none;
}
.header-menu-toggle {
  display: none;
}
.header-brand {
  display: flex;
  align-items: center;
}
.header-brand a {
  transition: opacity .25s ease;
}
.header-brand a:hover {
  opacity: 0.6;
}
.brand-logo {
  height: 49px;
  width: auto;
  display: block;
}
.global-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.global-nav ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  margin-right: 20px;
  /* letter-spacing: 0.14em; */
}
/* ナビリンク：ホバーで下線が左から右に表示（お問い合わせボタンは除く） */
.global-nav a {
  display: block;
  position: relative;
}
.global-nav a:not(.btn-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #333;
  -webkit-transform: scaleX(0);
  -ms-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
}
.global-nav a:not(.btn-contact):hover::after {
  -webkit-transform: scaleX(1);
  -ms-transform: scaleX(1);
  transform: scaleX(1);
}
.header-actions {
  white-space: nowrap;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 20px;
  border-radius: 999px;
  border: 1px solid #333;
  /* letter-spacing: 0.14em; */
  background: #333;
  color: #fff;
  -webkit-transition: color 0.35s ease;
  transition: color 0.35s ease;
  font-size: 15px;
}
.header-actions .btn-contact:hover, .header-actions .btn-contact:hover span {
  color: #333;
}
/* ホバー時の黒→白アニメーションは common.css の .btn-contact::before で付与 */
/* SP：ヘッダー（ハンバーガーメニュー・格納/展開） */
@media screen and (max-width: 1045px) {
  .global-nav ul {
    gap: 15px;
    margin-right: 0;
  }
  .brand-logo {
    height: 40px;
  }
}
/*max-width:1045px*/
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
    height: 60px;
  }
  .header-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    height: 35px;
    cursor: pointer;
    position: relative;
    z-index: 70;
  }
  .header-menu-label {
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
  }
  .header-menu-toggle-bar, .header-menu-toggle-bar::before, .header-menu-toggle-bar::after {
    content: "";
    display: block;
    width: 30px;
    height: 1px;
    border-radius: 2px;
    background: #333;
    -webkit-transition: -webkit-transform 0.45s ease, transform 0.45s ease, opacity 0.45s ease;
    -moz-transition: transform 0.45s ease, opacity 0.45s ease;
    -o-transition: transform 0.45s ease, opacity 0.45s ease;
    transition: transform 0.45s ease, opacity 0.45s ease;
  }
  .header-menu-toggle-bar {
    position: relative;
  }
  .header-menu-toggle-bar::before {
    position: absolute;
    top: -6px;
  }
  .header-menu-toggle-bar::after {
    position: absolute;
    top: 6px;
  }
  .global-nav {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 80px 24px 32px;
    background: rgba(245, 243, 237, 0.98);
    z-index: 50;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    align-items: center;
    -webkit-transition: opacity 0.45s ease;
    -moz-transition: opacity 0.45s ease;
    -o-transition: opacity 0.45s ease;
    transition: opacity 0.45s ease;
  }
  .site-header.nav-open .global-nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    opacity: 0;
  }
  .site-header.nav-open.nav-visible .global-nav {
    opacity: 1;
  }
  .global-nav ul {
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 35px;
    font-size: 17px;
  }
  .header-actions {
    margin-top: auto;
    padding-bottom: 16px;
  }
  .nav-toggle:checked + .header-menu-toggle .header-menu-toggle-bar {
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
  }
  .nav-toggle:checked + .header-menu-toggle .header-menu-toggle-bar::before {
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg);
    top: 0;
  }
  .nav-toggle:checked + .header-menu-toggle .header-menu-toggle-bar::after {
    opacity: 0;
  }
  .btn-contact {
    padding: 10px 60px;
  }
}