/* Flashio 共通ヘッダー/フッター（全ページ） */
.flashio-chrome{
  /* 好みで調整 */
  --f-grad: linear-gradient(90deg, #6366f1 0%, #7c3aed 100%);
  --f-bg: #0b1020;
  --f-white: #fff;
  --f-border: rgba(255,255,255,.18);
}

/* Cocoon標準ヘッダー/フッターを非表示（flashio-chrome の時だけ） */
.flashio-chrome #header-container,
.flashio-chrome #header,
.flashio-chrome .header-container,
.flashio-chrome .header{
  display: none !important;
}

.flashio-chrome #footer,
.flashio-chrome .footer,
.flashio-chrome #footer-container,
.flashio-chrome .footer-container{
  display: none !important;
}

/* ヘッダー */
.f-header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--f-grad);
  color: var(--f-white);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* WP管理バーがあるとき */
.admin-bar .f-header{ top: 32px; }
@media (max-width: 782px){
  .admin-bar .f-header{ top: 46px; }
}

.f-header__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.f-header__brand{
  color: inherit;
  text-decoration: none;
}
.f-header__logo{
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 18px;
  white-space: nowrap;
}

/* ナビ（PC） */
.f-nav{
  display: flex;
  align-items: center;
  gap: 10px;
}

.f-nav__link{
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.10);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  font-weight: 700;
  font-size: 14px;
}

.f-nav__link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
  border-color: var(--f-border);
}

.f-nav__link.is-active{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.40);
}

/* ハンバーガー */
.f-header__toggle{
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  color: #fff;
  cursor: pointer;
}

.f-header__toggleBars{
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.f-header__toggleBars::before,
.f-header__toggleBars::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.f-header__toggleBars::before{ top: 2px; }
.f-header__toggleBars::after{ bottom: 2px; }
.f-header__toggleText{ font-weight: 800; font-size: 12px; }

/* スマホ時：ナビを折りたたみ */
@media (max-width: 900px){
  .f-header__toggle{ display: inline-flex; }
  .f-nav{
    display: none;
    width: 100%;
    padding-top: 10px;
  }
  .f-nav.is-open{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .f-header__inner{
    flex-wrap: wrap;
  }
}

/* フッター */
.f-footer{
  background: var(--f-bg);
  color: rgba(255,255,255,.88);
}

.f-footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.08);
}

.f-footer__link{
  color: rgba(255,255,255,.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 2px;
}
.f-footer__link:hover{ opacity: .9; }

.f-footer__copy{
  opacity: .75;
}




/* ヘッダー直下の謎スペースの犯人：Cocoonの main padding を潰す */
.flashio-chrome main#main.main{
  padding-top: 0 !important;
}

/* ついでに、上に余白を作りがちなラッパーも潰す（環境差対策） */
.flashio-chrome #content,
.flashio-chrome #content .content-in,
.flashio-chrome #content .content-in-wrap{
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* メインとフッターの間の余白（Cocoon main の下padding）を消す */
.flashio-chrome main#main.main{
  padding-bottom: 0 !important;
}

/* 念のため、下余白を作りがちな内側ラッパーも潰す */
.flashio-chrome #content,
.flashio-chrome #content .content-in,
.flashio-chrome #content .content-in-wrap{
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}