
.site-header{
  position:sticky;
  top:0;
  z-index:9999;
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  background:rgba(7,13,25,.78);
  border-bottom:1px solid var(--line)
}
.header-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  gap:20px
}
.site-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  font-weight:800;
  letter-spacing:.08em
}
.site-logo-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--blue),var(--purple));
  box-shadow:0 0 18px rgba(59,130,246,.65)
}
.site-logo-text{
  color:#fff;
  font-size:15px;
  white-space:nowrap
}
.desktop-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:14px
}
.nav-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap:24px;
  margin:0;
  padding:0
}
.nav-list li{position:relative}
.nav-list a,.country-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  background:transparent;
  border:0;
  cursor:pointer;
  padding:10px 0;
  white-space:nowrap
}
.nav-list a:hover,.country-toggle:hover{color:var(--cyan)}
.country-menu{
  position:absolute;
  top:calc(100% + 14px);
  left:0;
  min-width:280px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(10,18,33,.96);
  box-shadow:var(--shadow);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease
}
.country-menu a{
  display:block;
  padding:12px 14px;
  border-radius:12px
}
.country-menu a:hover{background:rgba(255,255,255,.05)}
.menu-item-has-children:hover .country-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0)
}
.header-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 16px;
  border-radius:999px;
  color:#fff!important;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 12px 28px rgba(0,0,0,.18)
}
.line-btn{background:#06c755}
.line-btn:hover{background:#04a948}
.mobile-toggle{
  display:none;
  position:relative;
  flex:0 0 auto;
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction:column;
  transition:transform .25s ease, background .25s ease, border-color .25s ease
}
.mobile-toggle:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.14)
}
.mobile-toggle span{
  width:18px;
  height:2px;
  background:#fff;
  border-radius:999px;
  transform-origin:center;
  transition:transform .28s ease, opacity .22s ease
}
.mobile-toggle.is-active span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.mobile-toggle.is-active span:nth-child(2){ opacity:0; }
.mobile-toggle.is-active span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu-panel[hidden]{display:none!important}
.mobile-menu-panel{
  position:fixed;
  inset:0;
  z-index:9998
}
.mobile-menu-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.0);
  transition:background .35s ease
}
.mobile-menu-sheet{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background:linear-gradient(180deg,#09111f 0%,#0b1426 100%);
  display:flex;
  flex-direction:column;
  opacity:0;
  transform:translateY(18px) scale(.985);
  transition:opacity .35s ease, transform .42s cubic-bezier(.2,.8,.2,1)
}
.mobile-menu-panel.is-open .mobile-menu-backdrop{
  background:rgba(2,6,23,.74)
}
.mobile-menu-panel.is-open .mobile-menu-sheet{
  opacity:1;
  transform:translateY(0) scale(1)
}
.mobile-menu-head{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 18px;
  border-bottom:1px solid rgba(255,255,255,.08)
}
.mobile-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.08em;
  color:#fff
}
.mobile-close{
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:24px;
  line-height:1;
  transition:transform .2s ease, background .2s ease
}
.mobile-close:hover{
  transform:scale(1.04);
  background:rgba(255,255,255,.08)
}
.mobile-menu-inner{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  padding-top:18px;
  padding-bottom:24px
}
.mobile-nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px
}
.mobile-nav-list > li{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .32s ease, transform .32s ease
}
.mobile-menu-panel.is-open .mobile-nav-list > li{
  opacity:1;
  transform:translateY(0)
}
.mobile-menu-panel.is-open .mobile-nav-list > li:nth-child(1){ transition-delay:.05s; }
.mobile-menu-panel.is-open .mobile-nav-list > li:nth-child(2){ transition-delay:.09s; }
.mobile-menu-panel.is-open .mobile-nav-list > li:nth-child(3){ transition-delay:.13s; }
.mobile-menu-panel.is-open .mobile-nav-list > li:nth-child(4){ transition-delay:.17s; }
.mobile-menu-panel.is-open .mobile-nav-list > li:nth-child(5){ transition-delay:.21s; }

.mobile-nav-list > li > a,
.mobile-country-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:58px;
  padding:0 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-size:16px;
  font-weight:700;
  transition:transform .2s ease, background .2s ease, border-color .2s ease
}
.mobile-nav-list > li > a:hover,
.mobile-country-toggle:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12)
}
.mobile-country-group{display:grid;gap:10px}
.mobile-country-icon{
  font-size:20px;
  line-height:1;
  color:var(--cyan);
  transition:transform .28s ease, color .2s ease
}
.mobile-country-toggle[aria-expanded="true"] .mobile-country-icon{
  transform:rotate(45deg);
}
.mobile-country-menu{
  display:grid;
  gap:10px;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-6px);
  transition:max-height .38s ease, opacity .26s ease, transform .26s ease
}
.mobile-country-menu.is-open{
  max-height:520px;
  opacity:1;
  transform:translateY(0)
}
.mobile-country-menu a{
  display:block;
  width:100%;
  min-height:50px;
  padding:14px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  color:var(--text-sub);
  transition:transform .2s ease, background .2s ease, color .2s ease
}
.mobile-country-menu a:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.06);
  color:#fff
}
.mobile-cta-row{margin-top:8px}
.mobile-line-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  border-radius:18px;
  background:#06c755!important;
  color:#fff!important;
  border:0!important;
  font-weight:800;
  box-shadow:0 14px 30px rgba(6,199,85,.22)
}

@media (max-width:980px){
  .desktop-nav{display:none}
  .mobile-toggle{display:inline-flex; margin-left:auto}
}
@media (min-width:981px){
  .mobile-menu-panel{display:none!important}
}
@media (max-width:640px){
  .header-inner{min-height:72px}
  .site-logo-text{font-size:14px}
}



/* =========================
   モバイルメニュー 全画面背景
========================= */
@media (max-width: 768px) {

  .mobile-menu,
  .sp-menu,
  .header-menu,
  .nav-menu {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: linear-gradient(180deg, rgba(5,10,25,0.98), rgba(10,20,40,0.98)) !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    backdrop-filter: blur(8px);
  }

  body.menu-open {
    overflow: hidden;
  }

}


/* ===== FORCE FIX: mobile menu full-screen background ===== */
@media (max-width: 980px){
  .mobile-menu-panel{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 99999 !important;
  }

  .mobile-menu-backdrop{
    position: absolute !important;
    inset: 0 !important;
    background: rgba(3, 8, 20, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  .mobile-menu-sheet{
    position: absolute !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    overflow-y: auto !important;
    background:
      linear-gradient(180deg, rgba(6,12,28,0.985) 0%, rgba(8,16,34,0.985) 40%, rgba(10,20,42,0.985) 100%) !important;
    opacity: 1 !important;
  }

  .mobile-menu-head{
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(8,16,34,0.96) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-menu-inner{
    position: relative;
    z-index: 1;
    min-height: calc(100dvh - 78px);
    background: transparent !important;
  }

  .mobile-nav-list > li > a,
  .mobile-country-toggle{
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.10) !important;
  }

  .mobile-country-menu a{
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
  }
}


/* ===== HEADER LOGO IMAGE UPDATE ===== */
.site-logo{
  display:inline-flex;
  align-items:center;
  gap:0;
  min-width:0;
}

.site-logo-image{
  display:block;
  width:auto;
  height:48px;
  object-fit:contain;
}

.site-logo-dot,
.site-logo-text{
  display:none !important;
}

.mobile-brand{
  display:inline-flex;
  align-items:center;
}

.mobile-brand .site-logo-image{
  height:38px;
}

@media (max-width: 768px){
  .site-logo-image{
    height:40px;
  }

  .mobile-brand .site-logo-image{
    height:34px;
  }
}


/* ===== TEXT LOGO BRAND ===== */
.site-logo-textual{
  display:inline-flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.site-logo-mark{
  width:14px;
  height:14px;
  flex:0 0 14px;
  border-radius:999px;
  background:linear-gradient(135deg, #4f7cff 0%, #8b5cf6 100%);
  box-shadow:0 0 18px rgba(99,102,241,.38);
}

.site-logo-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.site-logo-title{
  display:block;
  color:#ffffff;
  font-size:30px;
  line-height:1;
  font-weight:800;
  letter-spacing:.01em;
  white-space:nowrap;
}

.site-logo-subtitle{
  display:block;
  color:#35d9ff;
  font-size:11px;
  line-height:1;
  font-weight:700;
  letter-spacing:.24em;
  white-space:nowrap;
}

.site-logo-image{
  display:none !important;
}

.mobile-brand.site-logo-textual .site-logo-title{
  font-size:20px;
}

.mobile-brand.site-logo-textual .site-logo-subtitle{
  font-size:9px;
  letter-spacing:.18em;
}

@media (max-width: 768px){
  .site-logo-textual{
    gap:10px;
  }

  .site-logo-mark{
    width:11px;
    height:11px;
    flex-basis:11px;
  }

  .site-logo-title{
    font-size:21px;
  }

  .site-logo-subtitle{
    font-size:8px;
    letter-spacing:.16em;
  }

  .mobile-brand.site-logo-textual .site-logo-title{
    font-size:18px;
  }

  .mobile-brand.site-logo-textual .site-logo-subtitle{
    font-size:8px;
  }
}


/* ===== COUNTRY MENU RESTORE ===== */
.mobile-country-toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-country-icon{
  font-size: 24px;
  line-height: 1;
  color: var(--cyan, #22d3ee);
  transition: transform .22s ease;
}

.mobile-country-menu.is-open + .mobile-country-icon{
  transform: rotate(45deg);
}

.mobile-country-toggle[aria-expanded="true"] .mobile-country-icon{
  transform: rotate(45deg);
}

.country-toggle::after{
  content: "▾";
  font-size: 12px;
  opacity: .8;
}

.ad-youtoo img{background:#fff;padding:10px;border-radius:12px;}
