/* ===== Header ===== */
.site-header{
  position: fixed;   /* sticky → fixed */
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;     /* 念のため上げる */
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner{
  max-width:var(--container);
  height:var(--header-h);
  margin:0 auto;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:16px;
  position:relative;
}

main{
  padding-top: var(--header-h);
}

.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;}
.brand-logo{height:auto;width:120px;display:block;}

.global-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:22px;
}

.nav-link{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  text-decoration:none;
  color:#111;
  padding:6px 2px 10px;
}

.nav-en{
  font-family: 'Oswald', sans-serif;
  font-size:15px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  transition:color .25s ease;
}

.nav-ja{
  font-size:10px;
  color:#666;
  letter-spacing:.08em;
  transition:color .25s ease;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:var(--red);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .25s ease;
}

.nav-link:hover .nav-en,
.nav-link:hover .nav-ja{ color:var(--red); }

.nav-link:hover::after{ transform:scaleX(1); }

.header-cta{
  margin-left:10px;
  font-family: 'Oswald', sans-serif;
  font-size:14px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:10px 18px;
  border-radius:6px;
  background:transparent;
  color:#111;
  border:1.5px solid #111;
  text-decoration:none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.header-cta:hover{
  background:var(--red);
  color:#fff;
  border-color:var(--red);
}

/* checkbox は見えなくするだけ */
.nav-toggle{ position:absolute; opacity:0; }

@media (max-width: 980px){
  .hamburger{
    position:fixed;
    top:14px;
    right:20px;
    width:44px;
    height:44px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    z-index:1200;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    overflow:visible;
  }

  .hamburger span{
    display:block;
    width:20px;
    height:2px;
    background:#111;
    margin:0;
    transform-origin:center;
    transition:transform .25s ease, opacity .2s ease;
  }

  #nav-toggle:checked + .hamburger span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  #nav-toggle:checked + .hamburger span:nth-child(2){ opacity:0; }
  #nav-toggle:checked + .hamburger span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }
}

/* drawer（全画面） */
.drawer{
  position:fixed;
  inset:0;
  background:#fff;
  z-index:1000;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}

#nav-toggle:checked ~ .drawer{
  opacity:1;
  pointer-events:auto;
}

.is-hidden {
  display: none;
}

/* PCでは無効 */
@media (min-width: 981px){
  .hamburger,
  .drawer{ display:none; }
}

/* ===== Responsive: header ===== */
@media (max-width: 980px){
  .global-nav, .header-cta{display:none;}
  .hamburger{display:flex;}
  .header-inner{gap:10px;}
}

/* SP Header logo center */
@media (max-width: 980px){
  .header-inner{ justify-content:center; }
  .brand{ margin:0 auto; }
}

/* SP Drawer (Oswald + JA) / dark overlay */
@media (max-width: 980px){
  .drawer{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
    background: rgba(0,0,0,.77);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 18px) 16px 24px;
  }

  #nav-toggle:checked ~ .drawer{
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-panel{
    width: min(520px, 100%);
    max-height: calc(100dvh - (var(--header-h) + 42px));
    overflow: auto;
    border-radius: 16px;
    padding: 22px 18px;
    transform: translateY(-6px);
    transition: transform .5s ease;
  }

  #nav-toggle:checked ~ .drawer .drawer-panel{
    transform: translateY(0);
  }

  .drawer-nav{ display:grid; gap:14px; }

  .drawer-link{
    text-decoration:none;
    border-radius:12px;
    padding:14px 14px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.04);
    display:flex;
    flex-direction:column;
    gap:4px;
    transition:background-color .2s ease, border-color .2s ease, transform .2s ease;
  }

  .drawer-en{
    font-family:'Oswald', sans-serif;
    font-weight:600;
    letter-spacing:.16em;
    text-transform:uppercase;
    font-size:16px;
    color:rgba(255,255,255,.92);
  }

  .drawer-ja{
    font-size:11px;
    letter-spacing:.10em;
    color:rgba(255,255,255,.70);
  }

  .drawer-link:hover{
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.22);
    transform:translateY(-1px);
  }

  .drawer-link--cta{
    border-color:rgba(228,0,18,.55);
    background:rgba(228, 0, 19, 0.322);
    text-align:center;
  }
  .drawer-link--cta:hover{
    background:rgba(228,0,18,.18);
    border-color:rgba(228,0,18,.75);
  }
  .drawer-link--cta .drawer-en,
  .drawer-link--cta .drawer-ja{ text-align:center; }

  .hamburger{ z-index: 2100; }
}

body:has(#nav-toggle:checked){
  overflow: hidden;
}

/* ===== Footer (Luffia style) ===== */
.site-footer{
  background: var(--red);
  color: #fff;
  padding: 34px 16px;
}

.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo{
  width: 160px;
  height: auto;
  display: block;
}

.footer-copy{
  margin: 0;
  color: rgba(255,255,255,.82);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: 560px;
}

.footer-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-nav a{
  color: rgba(255,255,255,.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 2px 0;
}

.footer-nav a:hover{
  opacity: .85;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-subnav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.footer-subnav a{
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .06em;
}

.footer-subnav a:hover{
  opacity: .85;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer SP：中央寄せ */
@media (max-width: 680px){
  .footer-inner{
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-meta{
    align-items: center;
    max-width: 100%;
  }

  .footer-nav,
  .footer-subnav{
    justify-content: center;
  }

  .footer-logo{
    width: 150px;
  }

  .footer-left{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-copy{
    text-align: center;
  }
}
