/* ===== Base ===== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  color: #111;
}
a { color: inherit; text-decoration: none; }

/* ===== Header（共通）===== */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(255,255,255,.6); 
  backdrop-filter: blur(6px);
  overflow: visible;
}

.site-header__inner{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 0 50px;
}

.site-title{
  font-weight: 700;
  letter-spacing: .02em;
}

/* PCナビ */
.site-header__right{
  justify-self: end;
}

.anchor-nav{
  display: flex;
  gap: 16px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}
.anchor-nav a{ padding: 6px 0; }

/* ロゴ（中央固定＆FVに重なる） */
.site-header__logo{
  position: relative;
  z-index: 20;
  margin-bottom: -28px;
  justify-self: center;
}
.logo{
  display: grid;
  place-items: center;
  width: 160px;
  height: 120px;
  background: #000;
}
.logo img{
  max-height: 80px;
  max-width: 120px;
  width: auto;
  height: auto;
}

/* ハンバーガーボタン：PCでは非表示 */
.menu-btn{
  display: none;
  background: none;
  border: none;
  padding: 0;
  width: 34px;
  height: 22px;
  position: relative;
}
.menu-btn span{
  display: block;
  height: 2px;
  background: #000; /* 閉じてる時は黒のまま */
  transition: .3s ease;
}

.sp-only{ display: none; }

/* ===== Page Top ===== */
.page-top{
  position: fixed;
  right: 40px;
  bottom: 40px;

  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(0,0,0,.40);
  backdrop-filter: blur(4px);

  color: #fff;
  border: none;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;

  z-index: 1000;
}

/* 表示時 */
.page-top.is-active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* SVGサイズ */
.page-top svg{
  width: 22px;
  height: 22px;
}

/* ホバー */
.page-top:hover{
  transform: translateY(-4px);
}



/* ===== SP ===== */
@media (max-width: 768px){

    .pc-only{ display: none; }
    .sp-only{ display: block; }

    .site-header__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px 0 0;
    gap: 0;
    }

    .site-header__left{ display: none; }

    /* SPではハンバーガー表示 */
    .menu-btn{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    position: fixed;   /* ← これで×が潜らない */
    top: 18px;
    right: 18px;
    z-index: 2200;     /* ← overlayより上 */
    width: 28px;
    height: 22px;
    }

    .site-header__logo{
    margin-bottom: 0; /* SPは重ねないなら0。必要なら調整 */
    }

    /* SPナビ：閉じてる時は完全に隠す */
    .site-header__right{
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    display: grid;
    place-items: center;

    background: rgba(0,0,0,.80); /* 透過はここで調整 */
    backdrop-filter: blur(6px);
    z-index: 2100;

    transition: opacity .25s ease, visibility .25s ease;
    }

    /* 開いた時だけ表示 */
    body.nav-open .site-header__right{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    }

    body.nav-open{ overflow: hidden; }

    /* ナビの見た目（SP） */
    .anchor-nav{
    flex-direction: column;
    gap: 42px;
    text-align: center;
    font-size: 20px;
    }
    .anchor-nav li a{ color: #fff; }

    /* 開いた時だけ線を白にして×にする */
    body.nav-open .menu-btn span{ background: #fff; }

    body.nav-open .menu-btn span:nth-child(1){
    transform: translateY(8px) rotate(45deg);
    }
    body.nav-open .menu-btn span:nth-child(2){
    opacity: 0;
    }
    body.nav-open .menu-btn span:nth-child(3){
    transform: translateY(-8px) rotate(-45deg);
    }

    /* PageTop SP（あなたのままでOK） */
    .page-top{
    position: fixed;
    right: 0;
    bottom: 0 ;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 0%;
    background: rgba(0,0,0,.70);
    backdrop-filter: blur(4px);

    color: #fff;
    border: none;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;

    z-index: 1000;
    }

    .logo{
    width: 80px;
    height: auto;
    transform-origin: center top;
    }

    .logo img{
    max-height: 50%;
    }
}
