/* ===== 基本設定 ===== */
:root{
  --header-height: 72px;
  --max-width: 1120px;
  --color-text: #111827;
  --color-border: #D1D5DB;
  --color-white: #fff;
  --color-black: #000;
  --color-accent-bg: #ffe4ef;
}

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

.site-header{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
}

.header-spacer{
  height: var(--header-height);
}

.header-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img{
  height: 40px;
  width: auto;
  display:block;
}

.header--default{
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.global-nav{
  display: none;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px){
  .global-nav{ display: flex; }
  .btn-menu{ display: none; }
}

.nav-item{
  position: relative;
}
.nav-link{
  display: block;
  color: var(--color-text);
  font-weight: 600;
  font-size: 18px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
  text-decoration: none;
  line-height: 1.2;
}
.nav-link:hover{
  background: var(--color-accent-bg);
}

.has-dropdown .dropdown{
  position: absolute;
  top: 100%;
  left: 0;
  width: 208px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  display: none;
  padding: 8px 0;
  z-index: 60;
}
.has-dropdown:hover .dropdown{
  display: block;
}
.dropdown-link{
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
}
.dropdown-link:hover{
  background: var(--color-accent-bg);
}

.btn-menu{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: none;
  background: transparent;
  color: #374151;
  cursor: pointer;
}
.btn-menu .icon{
  width: 32px;
  height: 32px;
}

.mobile-menu{
  display: none;
  padding: 0 24px 16px;
  background: var(--color-white);
  border-top: 1px solid #E5E7EB;
}
.mobile-menu.is-open{ display: block; }

.mobile-link{
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #E5E7EB;
  text-decoration: none;
  color: var(--color-text);
}
.mobile-link:last-child{ border-bottom: 0; }

/* ===== LP（ハンバーガー）用スタイル ===== */
.header--lp{
  background: transparent;
}
/* スマホ基準 */
.header-inner--lp{
  position: relative;
  padding-left: 16px;
  padding-right: 0;
  display: flex;
  justify-content: flex-end;
  color: var(--color-white);
}

.btn-hamburger{
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(0,0,0,.7);
  color: #fff;
  transition: opacity .2s ease;
  z-index: 51;
}
.btn-hamburger:hover{ opacity: .9; }

.menu-overlay{
  position: absolute;
  top: calc(100%);
  right: 0;
  width: 256px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border-bottom-left-radius: 12px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
  backdrop-filter: saturate(150%) blur(6px);
  opacity: 0;
  transform: translateY(8px) scale(.95);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
}
.menu-overlay.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.menu-link{
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}
.menu-link:hover{
  color: #F9A8D4;
}

/* PCだけ右端に固定＆少し余白（安全領域対応） */
@media (min-width: 768px) {
  .btn-hamburger {
    position: absolute;
    top: 16px;
    /* 右端からの距離 + 安全領域（ノッチや丸角の端末対応） */
    right: calc(24px + env(safe-area-inset-right));
  }
}
