.header {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  padding: 15px 30px;
  box-shadow: 0 3px 6px rgba(0,0,0,.16);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), opacity .35s ease;
}

.header.is-hidden {
  transform: translateX(-50%) translateY(-110%);
  opacity: 0;
  pointer-events: none;   /* 触れないように */
}

.header.is-shown {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.header-left {
  width: 220px;
}

.header-left img {
  max-height: 48px;
  height: auto;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 0;
}

.sns-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sns-list-item {
  width: 32px;
}

.sns-list-item a {
  transition: opacity .25s;
}

.sns-list-item a:hover {
  opacity: .7;
}

.header-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
  padding: 10px 0 0;
  margin: 0 0 10px;
}

.nav-backdrop,
.nav-head,
.drawer-sns {
  display: none;
}

.nav-panel {
  display: block;
}

.header-nav-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4%;
  width: 100%;
  max-width: 1200px;
  line-height: 1.4;
  list-style: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
}

.header-nav-list li {
  display: flex;
  align-items: center;
}

.header-nav-list a {
  text-decoration: none;
  line-height: 1.4;
  color: #282828;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-nav-list a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(138,236,196,.15);
}

.nav-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  bottom: -18px;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -5px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.header-nav-list li:not(.attention__Box) a:hover .nav-icon {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.attention__Box + .attention__Box {
  margin-left: -3%;
}

.attention__Box a {
  width: 145px;
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: #C761E1;
  border: none;
  border-radius: 0;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: .1em;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform .3s, box-shadow .3s;
}

.attention__Box a::before,
.attention__Box a::after {
  content: none;
}

.attention__Box a:hover {
  transform: translateY(-3px) scale(1.06);
}

.box__Follow {
  width: 145px !important;
  margin: auto;
}

.menu-toggle {
  display: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: 0;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.menu-label {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #282828;
  user-select: none;
}

.menu-icon svg {
  width: clamp(32px, 6vh, 48px);
  height: clamp(32px, 6vh, 48px);
  display: block;
}

/* ===== 769px〜1165px（ハンバーガー帯：デフォルト閉） ===== */
@media (min-width:769px) and (max-width:1165px) {

  .header-left {
    width: 220px;
  }
  .header-left img {
    max-height: 48px;
  }
  .header-right {
    margin-top: 0;
  }
  .sns-list {
    display: none !important;
  }
  .menu-toggle {
    display: flex;
    align-self: center;
  }

  .header-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0,0,0,.9);
    box-shadow: 0 3px 6px rgba(0,0,0,.16);
    z-index: 1000;
    padding: 0;
    margin: 0;
    display: none;
  }

  .nav-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: pointer;
    display: block;
  }

  .nav-panel {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100px;
    padding: 12px 16px;
    position: relative;
  }

  .nav-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, #8AECC4, #e06df0);
  }

  .nav-logo img {
    height: 42px;
    width: auto;
    display: block;
  }

  .nav-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
  }

  .nav-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
  }

  .header-nav-list {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.2vh, 26px);
    width: 100%;
    max-width: 720px;
    margin: 24px auto 12px;
    padding: 0;
    align-items: stretch;
  }

  .header-nav-list .nav-icon {
    display: none;
  }

  .header-nav-list li {
    width: 100%;
  }

  .header-nav-list li:not(.attention__Box) a {
    width: 100%;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    border: 1px solid;
    border-image: linear-gradient(to right, #8AECC4, #e06df0) 1;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .header-nav-list li:not(.attention__Box) a:hover {
    background: rgba(255,255,255,.1);
  }

  .header-nav-list .attention__Box a {
    background: #C761E1;
    border: none;
    border-radius: 0;
    padding: 16px;
  }

  .attention__Box a {
    width: 100%;
  }

  .set-back {
    margin-left: 0% !important;
  }

  .drawer-sns {
    display: none;
    margin-top: auto;
    position: relative;
    gap: 18px;
    justify-content: center;
    align-items: center;
    padding-top: 18px;
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .drawer-sns::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, #8AECC4, #e06df0);
  }

  body.nav-open .drawer-sns {
    display: flex !important;
  }

  .drawer-sns .sns-list-item {
    width: 40px;
  }
}

/* ===== 〜768px（SPオーバーレイ） ===== */
@media (max-width:768px) {

  .header {
    padding: 19px 16px;
  }
  .header-right {
    margin-top: 0;
  }
  .sns-list {
    display: none !important;
  }
  .menu-toggle {
    display: flex;
    align-self: center;
  }

  .header-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0,0,0,.97);
    box-shadow: 0 3px 6px rgba(0,0,0,.16);
    z-index: 1000;
    padding: 0;
    margin: 0;
    display: none;
  }

  .nav-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    cursor: pointer;
    display: block;
  }

  .nav-panel {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 72px;
    padding: 27px 16px;
    position: relative;
  }

  .nav-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, #8AECC4, #e06df0);
  }

  .nav-logo img {
    height: 36px;
    width: auto;
    display: block;
  }

  .nav-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #ffffff;
  }

  .nav-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 16px 16px 12px;
    box-sizing: border-box;
  }

  .header-nav-list {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.6vh, 22px);
    width: 100%;
    max-width: 720px;
    margin: 16px auto 8px;
    padding: 0;
    align-items: stretch;
  }

  .header-nav-list .nav-icon {
    display: none;
  }

  .header-nav-list li {
    width: 100%;
  }

  .header-nav-list li:not(.attention__Box) a {
    width: 100%;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    border: 1px solid;
    border-image: linear-gradient(to right, #8AECC4, #e06df0) 1;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .header-nav-list li:not(.attention__Box) a:hover {
    background: rgba(255,255,255,.1);
  }

  .header-nav-list .attention__Box {
    width: 100%;
    margin: 0 !important;
  }

  .header-nav-list .attention__Box a {
    width: 100%;
    display: block;
    text-align: center;
    background: #C761E1;
    border: none;
    border-radius: 0;
    padding: 16px;
    color: #fff !important;
  }

  .drawer-sns {
    display: none;
    margin-top: auto;
    position: relative;
    gap: 18px;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .drawer-sns::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, #8AECC4, #e06df0);
  }

  body.nav-open .drawer-sns {
    display: flex !important;
  }

  .drawer-sns .sns-list-item {
    width: 40px;
  }
}

/* 開いている間のスクロールロック */
html.nav-open,
body.nav-open {
  overflow: hidden;
}