/* =========================================================
   全ページ共通ヘッダー（新デザイン踏襲）
   - px基準でグローバルCSS（html{font-size:62.5%}）の影響を受けない
   - 上バーは sticky、ハンバーガーは全画面幅で有効
   - ドロワーは全ページ共通のサイトマップ＋SNS＋言語切替
   ========================================================= */

/* 下層ページは旧固定ヘッダー用に main へ 95px のオフセットが入っているため解除 */
body:not(.home) main {
  margin-top: 0;
}

body.uh-no-scroll {
  overflow: hidden;
}

.uh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 34px;
  background: linear-gradient(0deg, #68730003 10%, #606b006f 90%),
    url(../img/SiteBkgd1Layer.png);
  background-size: 500px;
  box-sizing: border-box;
}

.uh-header * {
  box-sizing: border-box;
}

.uh-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.uh-header__logo {
  display: block;
  line-height: 0;
}

.uh-header__logo img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.uh-header__logo:hover img {
  opacity: 0.72;
}

.uh-header__tagline {
  font-size: 13px;
  color: #4c4224;
  letter-spacing: 0.12em;
  border-left: 1px solid rgba(76, 66, 36, 0.55);
  padding-left: 14px;
  white-space: nowrap;
  font-family: "Yuji Syuku", serif;
}

.uh-header__nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.uh-header__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 17px;
  letter-spacing: 0.02em;
  font-family: "Yuji Syuku", serif;
}

.uh-header__links a {
  color: #4c4224;
  text-decoration: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.uh-header__links a:hover {
  opacity: 0.65;
}

.uh-header__cta {
  background: #953d30;
  color: #f4efe4 !important;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(149, 61, 48, 0.25);
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: "Yuji Syuku", serif;
}

.uh-header__cta:hover {
  background: #bf8b83;
  transform: translateY(-1px);
}

/* ハンバーガー */
.uh-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.uh-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #4c4224;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.uh-burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.uh-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.uh-burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* オーバーレイ */
.uh-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(20, 24, 12, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.uh-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ドロワー */
.uh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 86vw);
  z-index: 1002;
  padding: 96px 40px 48px;
  color: #fff;
  background: linear-gradient(0deg, rgba(54, 74, 26, 0.92), rgba(54, 74, 26, 0.92)),
    url(../img/SiteBkgd1Layer.png);
  background-size: 500px;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  overflow-y: auto;
  box-sizing: border-box;
}

.uh-drawer.is-open {
  transform: translateX(0);
}

.uh-drawer__menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.uh-drawer__menu a {
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  letter-spacing: 0.04em;
  font-family: "Yuji Syuku", serif;
  transition: opacity 0.3s ease;
}

.uh-drawer__menu a:hover {
  opacity: 0.7;
}

.uh-drawer__social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.uh-drawer__social img {
  display: block;
  /* アイコンは濃色でオリーブ背景に埋もれるため白へ反転させて視認性を確保 */
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.uh-drawer__social a:hover img {
  transform: scale(1.12);
}

.uh-drawer__lang {
  margin-top: 26px;
  font-size: 16px;
  color: #e7e2d3;
  letter-spacing: 0.04em;
}

.uh-drawer__lang a {
  color: #e7e2d3;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.uh-drawer__lang a.is-active {
  font-weight: 700;
  color: #fff;
}

.uh-drawer__lang a:hover {
  opacity: 0.7;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1023px) {
  .uh-header__links,
  .uh-header__tagline {
    display: none;
  }
}

@media (max-width: 767px) {
  .uh-header {
    padding: 10px 18px;
  }

  .uh-header__logo img {
    height: 40px;
  }

  .uh-header__cta {
    padding: 8px 14px;
    font-size: 16px;
  }

  .uh-drawer {
    padding: 84px 30px 40px;
  }
}
