@charset "utf-8";


.kv {
  position: relative;            
  border-radius: 18px;          
  overflow: hidden;              
}


.kv-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;       
  gap: 0;                        
  z-index: 10;
}

/* ロゴ（中央） */
.kv-overlay .brand {
 pointer-events: auto; 
}

.kv-overlay .brand img {
  height: clamp(42px, 10vw, 96px);
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}

.kv-overlay .nav-pc {
  display: none;
  pointer-events: auto;
}
.kv-overlay .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(14px, 4vw, 38px);
  flex-wrap: wrap;
  justify-content: center;
}
.kv-overlay .nav-link {
  text-decoration: none;
  color: #fff;                 
  letter-spacing: .22em;
  font-size: clamp(11px, 2vw, 13px);
  opacity: .9;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.kv-overlay .nav-link:hover,
.kv-overlay .nav-link:focus {
 opacity: 1; 
}

/* --- ハンバーガー --- */
.kv-overlay .nav-btn {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  top:  max(12px, env(safe-area-inset-top));
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: flex;              
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;        
  transition: transform .2s ease;
  z-index: 21;                 
}
.kv-overlay .nav-btn:active { 
  transform: scale(0.98); 
}

/* 三本線 */
.kv-overlay .nav-btn::before,
.kv-overlay .nav-btn::after,
.kv-overlay .nav-btn span {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 4px 0;               /* 線間 */
  background: #2f2f2f;
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.25);
}

/* open時：真ん中で綺麗に「×」にクロス */
body.open .kv-overlay .nav-btn span { 
  opacity: 0; 
}
body.open .kv-overlay .nav-btn::before {
 transform: translateY(9px) rotate(45deg); 
}
body.open .kv-overlay .nav-btn::after  { 
  transform: translateY(-9px) rotate(-45deg); 
}

.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s ease, opacity .4s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
  z-index: 999;
}

body.open .nav-drawer {
  transform: translateY(0);
  opacity: 1;
}
body.open { 
  overflow: hidden; 
}  


.nav-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.nav-close {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-drawer-logo {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.nav-drawer-nav .nav-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.nav-drawer-nav .nav-link {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  letter-spacing: .15em;
}


@media (prefers-contrast: more) {
  .kv-overlay .nav-link { text-shadow: none; }
  .kv-overlay .brand img { filter: none; }
}


@media (min-width: 1024px) {
  .kv-overlay { gap: 18px; }
  .kv-overlay .nav-btn { display: none; }
  .kv-overlay .nav-pc { display: block; }
  .nav-drawer { display: none; } /* PCではドロワーを使わない */
}


.kv-wrap {
  width: min(1440px, 92%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


@media (min-width: 1024px) {
  .kv-overlay .nav-link {
    position: relative;
    display: inline-block;
    color: #fff;
    transition: opacity 0.3s ease;
  }

  /* 下線（hoverアニメーション） */
  .kv-overlay .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: all 0.35s ease;
    transform: translateX(-50%);
    opacity: 0;
  }

  /* hover時に下線が中央から左右に伸びる */
  .kv-overlay .nav-link:hover::after,
  .kv-overlay .nav-link:focus::after {
    width: 100%;
    opacity: 1;
  }

  /* hover時の文字も少し明るく */
  .kv-overlay .nav-link:hover {
    opacity: 1;
  }

.kv-img {
  width: 100%;
  height: auto;
  display: block;
}



.kv-overlay .brand { 
  pointer-events: auto; 
}
.kv-overlay .nav-pc {
  display: none;                 
  pointer-events: auto;
  margin-top: 18px;              
}

/* PCでナビを出す */
@media (min-width: 1024px) {
  .kv-overlay .nav-pc { display: block; }
}


.kv-wrap {
  width: min(1440px, 92%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width:1024px){
  .kv-overlay .nav-pc {
    position: relative;
    padding: 10px 16px;              
    border-radius: 999px;
    backdrop-filter: blur(2px);      
  }
  .kv-overlay .nav-pc::before {
    content:"";
    position:absolute; inset:0;
    background: rgba(0,0,0,.22);    
    border-radius: inherit;
    z-index:-1;                      
  }
}
