/* ===============================
   RESET
=============================== */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,body{
  width:100%;
}

/* ===============================
   HEADER高さ定義
=============================== */
:root{
  --header-height-pc:90px;
  --header-height-sp:78px;
}

/* 固定ヘッダー分の余白 */
body{
  padding-top:var(--header-height-pc);
}

/* ===============================
   HEADER（ロゴ常時表示）
=============================== */
.site-header{
  width:100%;
  height:var(--header-height-pc);
  background:#fff;
  border-bottom:1px solid #000;
  position:fixed;
  top:0;
  left:0;
  z-index:99999;
}

.header-inner{
  max-width:1100px;
  height:100%;
  margin:0 auto;
  padding:0 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* LOGO */
.logo{
  display:flex;
  align-items:center;
  z-index:100000;
}

.logo img{
  max-height:55px;
  display:block;
}

/* ===============================
   GLOBAL MENU（PC）
=============================== */
.global-menu{
  display:flex;
  gap:24px;
  align-items:center;
}

.global-menu a{
  text-decoration:none;
  color:#000;
  font-size:14px;
  padding:14px 0;
  position:relative;
}

/* underline */
.global-menu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:0;
  height:1px;
  background:#000;
  transition:.3s;
}

.global-menu a:hover::after{
  width:100%;
}

/* ===============================
   SUB MENU（PC）
=============================== */
.menu-item{
  position:relative;
}

/* 下線から40pxのブリッジ */
.menu-item::after{
  content:"";
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  height:40px;
}

.sub-menu{
  position:absolute;
  top:calc(100% + 40px);
  left:0;
  min-width:200px;
  background:#fff;
  border:1px solid #000;
  display:none;
  flex-direction:column;
  z-index:20000;
}

.sub-menu a{
  padding:12px 16px;
  font-size:14px;
  border-bottom:1px solid #000;
  color:#000;
}

.sub-menu a:last-child{
  border-bottom:none;
}

.menu-item:hover .sub-menu,
.menu-item:focus-within .sub-menu{
  display:flex;
}

.menu-item:hover > a::after,
.menu-item:focus-within > a::after{
  width:100%;
}

/* ===============================
   HAMBURGER
=============================== */
.hamburger{
  display:none;
  width:60px;
  height:40px;
  cursor:pointer;
  position:relative;
  z-index:100001;
}

.hamburger span{
  position:absolute;
  left:5px;
  width:50px;
  height:2px;
  background:#000;
  transition:.4s;
}

.hamburger span:nth-child(1){ top:10px; }
.hamburger span:nth-child(2){ top:19px; }
.hamburger span:nth-child(3){ top:28px; }

/* × 変形 */
.hamburger.is-open span:nth-child(1){
  transform:rotate(45deg);
  top:19px;
}
.hamburger.is-open span:nth-child(2){
  opacity:0;
}
.hamburger.is-open span:nth-child(3){
  transform:rotate(-45deg);
  top:19px;
}

/* ===============================
   MOBILE MENU
=============================== */
.mobile-menu{
  display:none;
}

/* ===============================
   FOOTER
=============================== */
.site-footer{
  background:#000;
  color:#fff;
  margin-top:80px;
}

.footer-container{
  max-width:1100px;
  margin:0 auto;
  padding:60px 16px;
  text-align:center;
}

/* フッターロゴ */
.footer-logo{
  margin-bottom:28px;
}

.footer-logo img{
  max-height:120px;
  margin:0 auto;
  display:block;
}

/* SNS */
.footer-sns{
  display:flex;
  justify-content:center;
  gap:26px;
  margin-bottom:32px;
}

.footer-sns img{
  width:48px;
  height:48px;
}

/* フッターメニュー */
.footer-nav{
  margin-bottom:24px;
}

.footer-nav-list{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:24px;
  list-style:none;
}

.footer-nav-list a{
  color:#fff;
  text-decoration:none;
  font-size:14px;
}

.footer-nav-list a:hover{
  text-decoration:underline;
}

/* コピーライト */
.footer-bottom{
  font-size:12px;
  color:#aaa;
  border-top:1px solid #333;
  padding-top:20px;
  margin-top:20px;
}

/* ===============================
   MOBILE
=============================== */
@media(max-width:768px){

  body{
    padding-top:78px; /* ← スマホ時のヘッダー高さ分 */
  }

  .global-menu{ display:none; }
  .hamburger{ display:flex; }
  .mobile-menu.is-open{ display:flex; }

  .logo img{
    max-height:43px;
  }

  /* フッターは簡略表示 */
  .footer-nav{
    display:none;
  }

  .footer-logo img{
    max-height:90px;
  }

  .footer-sns img{
    width:42px;
    height:42px;
  }

  .footer-container{
    text-align:center;
    padding:50px 16px;
  }
}


/* ===============================
   MOBILE
=============================== */
@media(max-width:768px){

  body{
    padding-top:var(--header-height-sp);
  }

  .site-header{
    height:var(--header-height-sp);
  }

  .global-menu{
    display:none;
  }

  .hamburger{
    display:block;
  }

  .logo img{
    max-height:43px;
  }

  /* モバイルメニュー */
  .mobile-menu{
    display:flex;
    position:fixed;
    top:var(--header-height-sp);
    left:0;
    width:100vw;
    height:calc(100vh - var(--header-height-sp));
    background:#fff;
    flex-direction:column;
    opacity:0;
    pointer-events:none;
    transition:opacity .4s ease;
    z-index:1000;
  }

  .mobile-menu.is-open{
    opacity:1;
    pointer-events:auto;
  }

  .mobile-menu a{
    padding:18px 20px;
    border-bottom:1px solid #000;
    font-size:16px;
    text-decoration:none;
    color:#000;
  }

  /* スマホではドロップダウン表現を完全無効 */
  .mobile-title::after{
    display:none;
  }

  .mobile-child{
    display:block;
    padding:0;
  }
}
