:root{
  --pink: #EC0C7C;
  --text: #222222;
  --max-width: 1200px;
  --header-height: 60px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
}

/* ページ確認用のダミーコンテンツ */
.demo-spacer{
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
  color: #999;
  font-size: 13px;
}

/* ==================== ヘッダー ==================== */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

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

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

/* ロゴ */
.logo{
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 24px 0 0;
  flex-shrink: 0;
}

.logo img{
  height: 100%;
  width: auto;
}

/* ======= グローバルナビ（PC） ======= */
.gnav{
  height: 100%;
}
.gnav-list{
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
}

.gnav-item{
  height: 100%;
  display: flex;
  align-items: center;
}

.gnav-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

/* ホバー時のピンクアンダーライン */
.gnav-link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.gnav-item:hover .gnav-link::after,
.gnav-item.is-open .gnav-link::after{
  transform: scaleX(1);
}

/* ====== ドロップダウン共通 ======= */
.dropdown{
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  border-top: none;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  opacity: 0;
  visibility: hidden;
  z-index: 90;
}

.gnav-item:hover .dropdown,
.gnav-item.is-open .dropdown{
  opacity: 1;
  visibility: visible;
}

.dropdown-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* ---- 商品ラインナップ：カラム型メガメニュー ---- */
.dropdown--products .dropdown-inner{
  display: flex;
  gap: 50px;
  padding: 30px 50px;
  justify-content: flex-start;
}

.menu-col{
  min-width: 180px;
}

.menu-col-title{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: bold;
}

.menu-col-title::before{
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--pink);
}

.menu-col-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-col-list a{
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.menu-col-list a:hover{
  color: var(--pink);
  font-weight: 600;
}

/* ---- ご利用ガイド／当社について：シンプルリスト型 ---- */
.dropdown--simple{
  left: auto;
  right: auto;
  width: 300px;
}

.dropdown--simple .dropdown-inner{
  max-width: none;
  margin: 0;
  padding: 24px 30px;
}

.simple-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simple-list a{
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.simple-list a:hover{
  color: var(--pink);
  font-weight: 600;
}

/* ======= ハンバーガーボタン（SP） ======= */
.hamburger{
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.hamburger span{
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.hamburger span:nth-child(1){ top: 9px; }
.hamburger span:nth-child(2){ top: 15px; }
.hamburger span:nth-child(3){ top: 21px; }

.hamburger.is-active span:nth-child(1){
  top: 15px;
  transform: rotate(45deg);
}
.hamburger.is-active span:nth-child(2){
  opacity: 0;
}
.hamburger.is-active span:nth-child(3){
  top: 15px;
  transform: rotate(-45deg);
}

.sp-overlay{
  display: none;
}

/* ====== レスポンシブ（max-width: 767px） ======= */
@media (max-width: 767px){

  .hamburger{
    display: block;
  }

  /* PC用ナビは隠し、SPドロワーへ切り替え */
  .gnav{
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .gnav.is-open{
    transform: translateX(0);
  }

  .gnav-list{
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
  }

  .gnav-item{
    height: auto;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid #eee;
  }

  .gnav-link{
    height: auto;
    padding: 16px 20px;
    font-size: 15px;
  }

  .gnav-link::after{
    display: none;
  }

  /* SPではドロップダウンをアコーディオンとして扱う */
  .dropdown{
    position: static;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: #efefef;
  }

  .gnav-item.is-open .dropdown{
    max-height: 1000px;
  }

  .dropdown-inner,
  .dropdown--products .dropdown-inner{
    padding: 20px;
    flex-direction: column;
    gap: 24px;
    max-width: none;
  }

  .dropdown--simple{
    width: auto;
  }
  .dropdown--simple .dropdown-inner{
    padding: 20px;
  }

  .menu-col-title{
    margin-bottom: 12px;
  }

  .menu-col{
    padding-left: 12px;
  }

  .simple-list{
    padding-left: 12px;
  }
}
