@charset "UTF-8";
/* =========================
   header.css
   - header / hamburger / global-nav
========================= */

/* =========================
   header
========================= */
#site_header {
  width: 100%;
  height: 70px;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;

  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
}

/* header 中身（95%） */
.header-inner {
  width: 95%;
  height: 100%;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ヘッダーロゴ */
#site_header .logo img {
  width: 250px;
  height: auto;
  display: block;
}

/* 右側（インスタ＋ハンバーガー） */
#site_header .link {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* インスタ */
.top-instagram img {
  width: 30px;
  height: 30px;
  display: block;
}

/* =========================
   hamburger（❌はこれが最前面）
========================= */
.hamburger {
  width: 26px;
  height: 30px;
  background: none;
  border: none;
  padding: 5px 0;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;
  z-index: 30; /* ← global-navより上にして、常に押せる＆見える */
}

/* 横線 */
.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #555;
  transition: transform .25s ease, opacity .2s ease;
}

/* 開いてる時は×に（26×30用） */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =========================
   global nav（右からスライド）
========================= */
.global-nav {
  position: fixed;
  inset: 0;
  z-index: 20; /* ← hamburger(30)より下、header(10)より上 */

  background: rgba(0, 0, 0, 0.4);

  /* closed */
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

/* open */
.global-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体（右から出る） */
.global-nav ul {
  position: absolute;
  top: 0;
  right: 0;

  width: 80vw;
  max-width: 420px;
  height: 100vh;

  background: #fff;

  list-style: none;
  margin: 0;
  padding: 80px 0 0;
  text-align: center;

  transform: translateX(100%);
  transition: transform .3s ease;
}

/* open：スライドイン */
.global-nav.is-open ul {
  transform: translateX(0);
}

/* 罫線 */
.global-nav li {
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.global-nav li:first-child {
  border-top: 1px solid rgba(0,0,0,.15);
}

/* リンク */
.global-nav a {
  display: block;
  padding: 18px 0;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
}
.global-nav a:hover {
  opacity: .7;
}

/* header固定分の余白 */
html {
  scroll-padding-top: 70px;
}




/* =========================
   Tablet（768px〜）
========================= */
@media (min-width: 768px) {
	
/* ヘッダーロゴ */
#site_header .logo img {
  width: 300px;
}
}

/* =========================
   PC: グローバルナビ横並び（1200px〜）
========================= */
@media (min-width: 1200px) {

  /* ハンバーガーは消す */
  .hamburger{
    display: none;
  }

  /* header内の並び（HTMLいじらない） */
  .header-inner .logo{ order: 1; }
  .header-inner .global-nav{ order: 2; }
  .header-inner .link{ order: 3; margin-left: auto; }

  /* global-nav：オーバーレイ→通常配置 */
  .global-nav{
    position: static;
    inset: auto;
    z-index: auto;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
  }

  /* メニュー本体：横並び */
  .global-nav ul{
    position: static;
    width: auto;
    max-width: none;
    height: auto;

    margin: 0;
    padding: 0;

    transform: none;
    transition: none;

    display: flex;
    align-items: center;
    gap: 10px;          /* ←間隔はこれだけで管理 */
    text-align: left;
	  
	 padding-left: 20px;
	  
	 background: transparent;  /* 背景白消す */
  }

  /* 罫線は不要 */
  .global-nav li{
    border: none;
    margin: 0;          /* ←ここ重要（余白二重防止） */
  }

  /* TOP表記は消す（ロゴがTOP導線） */
  .global-nav li:first-child{
    display: none;
  }

  /* リンク */
  .global-nav a{
    padding-top: 8px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 8px;
    font-weight: 600;
    font-size: 12px;
    background-color: var(--yellow);
    border-radius: 15px;
    color: #fff;
  }
 .global-nav a:hover{
    background-color: var(--blue);
}
}