/* --------------------------------------------- */
/* ▼モバイルファースト (全環境に共通のデザイン) */
/* --------------------------------------------- */
/* header（上部固定） */
#top-head {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  color: #000;
  font-feature-settings: normal; /* カンプは等幅組み（palt なし） */
}
.top-head_wrap {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 10px 0 13px;
  background: #fff;
  box-sizing: border-box;
}
/* ロゴ */
#top-head .logo {
  flex-shrink: 0;
  width: 150px;
  line-height: 0;
}
/* 現在会員数 */
.h_count {
  margin-left: 12px;
  color: var(--darkblue);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.h_count_num {
  margin: 0 0 0 0.2em;
  color: var(--red);
  font-size: 1.95rem;
  letter-spacing: 0;
}
/* 右側のボタン群 */
.h_btns {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
/* 会員登録・浜松だいすきネット（SPのヘッダーでは非表示。メニュー内には表示） */
.h_entry, .h_daisuki {
  display: none;
}
.h_entry a, .h_daisuki a {
  position: relative;
  display: flex;
  align-items: center;
  height: 65px;
  box-sizing: border-box;
  font-weight: 700;
  transition: opacity .3s;
}
.h_entry a {
  justify-content: center;
  padding: 0 30px;
  background: var(--red);
  border-radius: 9999px;
  color: #fff;
  font-size: 2.3rem;
  letter-spacing: 0;
}
/* 右向き三角 */
.h_entry a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 11px;
  height: 18px;
  background: #fff;
  -webkit-mask: var(--icon-arrow) no-repeat center / contain;
  mask: var(--icon-arrow) no-repeat center / contain;
  transform: translateY(-50%);
  transition: right .3s;
}
.h_daisuki a {
  gap: 9px;
  padding: 0 40px 0 18px;
  background: #E4F0F5;
  border-radius: 10px;
  color: #000;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.h_daisuki img {
  width: 29px;
}
/* 右向きの「>」 */
.h_daisuki a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .3s;
}
@media (hover: hover) {
  .h_entry a:hover, .h_daisuki a:hover {
    opacity: 0.85;
  }
  .h_entry a:hover {
    color: #fff;
  }
  .h_daisuki a:hover {
    color: #000;
  }
  .h_entry a:hover::after {
    right: 15px;
  }
  .h_daisuki a:hover::after {
    right: 18px;
  }
  .h_daisuki a:hover img {
    opacity: 1; /* style.css の a:hover img を打ち消し */
  }
}
/*========= メニューボタン ===============*/
/* 赤い円を少しずらして敷き、上に黒い線の円を重ねた手描き風 */
.openbtn {
  --ob-size: 47px;
  --ob-shift: 2px 1px; /* 赤い円のずれ */
  --ob-line: 17px; /* 三本線の幅 */
  --ob-gap: 6.5px; /* 三本線の間隔 */
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  width: var(--ob-size);
  height: var(--ob-size);
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
/* 赤い円（下に少しずらして敷く）と黒い線の円 */
.openbtn::before, .openbtn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.openbtn::before {
  z-index: -1;
  translate: var(--ob-shift);
  background: var(--red);
}
/* 黒い線の円（赤い円より前） */
.openbtn::after {
  border: 1px solid #000;
}
.openbtn span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ob-line);
  height: 2px;
  margin: -1px 0 0 calc(var(--ob-line) / -2);
  background: #fff;
  border-radius: 2px;
  transition: translate .3s, rotate .3s, opacity .3s;
}
.openbtn span:nth-of-type(1) {
  translate: 0 calc(var(--ob-gap) * -1);
}
.openbtn span:nth-of-type(3) {
  translate: 0 var(--ob-gap);
}
/* 開いている時は × に */
.openbtn.active span:nth-of-type(1) {
  translate: 0 0;
  rotate: 45deg;
}
.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn.active span:nth-of-type(3) {
  translate: 0 0;
  rotate: -45deg;
}
/* ホバー：ずれていた赤い円が線の円にピタッと重なり、線が順番にピョコッと縮む */
.openbtn::before {
  transition: translate .3s cubic-bezier(.34, 1.56, .64, 1);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .openbtn:hover::before {
    translate: 0 0;
  }
  .openbtn:hover span {
    animation: ob-line .5s ease-in-out;
  }
  .openbtn:hover span:nth-of-type(2) {
    animation-delay: .08s;
  }
  .openbtn:hover span:nth-of-type(3) {
    animation-delay: .16s;
  }
}
@keyframes ob-line {
  50% { scale: .55 1; }
}
/*========= ナビゲーション（右からスライドするパネル） ===============*/
#gnav {
  position: fixed;
  inset: 0;
  z-index: 10000; /* ヘッダーより前 */
  visibility: hidden;
  transition: visibility .5s;
}
#gnav.panelactive {
  visibility: visible;
  transition-duration: 0s; /* 開く時はすぐ表示（閉じる時はアニメーション後に隠す） */
}
/* 背景の暗幕（クリックで閉じる） */
.gnav_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  cursor: pointer;
  transition: opacity .5s;
}
/* パネル（縦スクロール） */
#gnav-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% - 30px);
  height: 100%;
  overflow: hidden auto; /* 横スクロールは出さない */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* スクロールが背面ページへ伝播するのを防ぐ */
  background: linear-gradient(180deg, rgba(215, 252, 224, 1) 0%, rgba(213, 242, 255, 1) 100%);
  border-radius: 30px 0 0 30px;
  translate: 100% 0;
  transition: translate .5s cubic-bezier(.33, 1, .68, 1);
}
/* 閉じるボタン（JSでヘッダーのメニューボタンと同じ位置に置く） */
.gnav_close {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity .3s;
}
#gnav.panelactive .gnav_overlay, #gnav.panelactive .gnav_close {
  opacity: 1;
}
#gnav.panelactive #gnav-inner {
  translate: none;
}
/* メニュー表示中は背面のスクロールを止める */
html.gnav-open, html.gnav-open body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}
.gnav_wrap {
  width: 85%;
  max-width: 403px;
  margin: 0 auto;
  padding: 80px 0 60px;
  text-align: left;
}
.gnav_logo {
  margin-bottom: 30px;
  line-height: 0;
}
/* 赤い点線（上端と各項目の下） */
.gnav_list, .gnav_list li {
  background: radial-gradient(circle, var(--red) 1.5px, transparent 1.7px) repeat-x 0 100% / 8px 3px;
}
.gnav_list {
  padding-top: 3px;
  background-position: 0 0;
}
.gnav_list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  min-height: 52px;
  padding: 0 0 3px 2px;
  box-sizing: border-box;
  color: #000;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}
/* 赤丸の矢印 */
.gnav_list a::after {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 11'%3E%3Cpath d='M1.5 1.5l4 4-4 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 55% 50% / 25% auto;
  border-radius: 50%;
  transition: translate .3s;
}
/* 無料会員登録（黒い線のボタンに、赤い背景を少しずらして敷く） */
.gnav_entry {
  margin-top: 36px;
}
.gnav_entry a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  transition: opacity .3s;
}
.gnav_entry a::before, .gnav_entry a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
}
.gnav_entry a::before {
  z-index: -1;
  translate: 5px 4px;
  background: var(--red);
  transition: translate .3s cubic-bezier(.34, 1.56, .64, 1);
}
.gnav_entry a::after {
  border: 2px solid #000;
}
/* 右向き三角 */
.gnav_entry span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 13px;
  background: #fff;
  -webkit-mask: var(--icon-arrow) no-repeat center / contain;
  mask: var(--icon-arrow) no-repeat center / contain;
  transform: translateY(-50%);
  transition: right .3s;
}
/* 海の湖・やらまいか */
.gnav_bnr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 30px;
}
.gnav_bnr a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  background: #fff;
  border-radius: 10px;
  transition: opacity .3s;
}
.gnav_bnr a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 7px;
  height: 11px;
  background: var(--blue);
  -webkit-mask: var(--icon-arrow) no-repeat center / contain;
  mask: var(--icon-arrow) no-repeat center / contain;
  transform: translateY(-50%);
  transition: translate .3s;
}
.gnav_bnr_umi img {
  width: 64.5%;
}
.gnav_bnr_yaramaika img {
  width: 57%;
}
@media (hover: hover) {
  .gnav_list a:hover {
    color: var(--red);
  }
  .gnav_list a:hover::after {
    translate: 4px 0;
  }
  /* メニューボタンと同じく、ずれていた赤い背景が黒い線にピタッと重なる */
  .gnav_entry a:hover {
    color: #fff;
  }
  .gnav_entry a:hover::before {
    translate: 0 0;
  }
  .gnav_entry a:hover span::after {
    right: 18px;
  }
  .gnav_bnr a:hover {
    opacity: 0.8;
  }
  .gnav_bnr a:hover img {
    opacity: 1; /* style.css の a:hover img を打ち消し */
  }
  .gnav_bnr a:hover::after {
    translate: 4px 0;
  }
}
/* ------------------------------------ */
/* ▼タブレット用デザインとして付け足すデザイン */
/* ------------------------------------ */
@media all and (min-width: 768px) {
  /* 上下左右に余白をとった角丸の白い箱 */
  #top-head {
    padding: 12px 12px 0;
    box-sizing: border-box;
  }
  .top-head_wrap {
    height: 80px;
    padding: 0 14px 0 22px;
    border: 1px solid #000;
    border-radius: 16px;
  }
  #top-head .logo {
    width: 200px;
  }
  .h_count {
    margin-left: 18px;
    font-size: 1.6rem;
  }
  .h_count_num {
    font-size: 2.8rem;
  }
  .h_btns {
    gap: 14px;
  }
  .h_entry {
    display: block;
  }
  .h_entry a {
    height: 44px;
    padding: 0 44px 0 30px;
    font-size: 1.8rem;
  }
  .h_entry a::after {
    right: 18px;
    width: 9px;
    height: 15px;
  }
  .openbtn {
    --ob-size: 60px;
    --ob-shift: 3px 2px;
    --ob-line: 22px;
    --ob-gap: 9px;
  }
  /* メニュー（カンプ準拠） */
  #gnav-inner {
    width: min(560px, 100% - 30px);
    border-radius: 45px 0 0 45px;
  }
  .gnav_wrap {
    padding: 160px 0 160px;
  }
  .gnav_logo {
    width: 110%; /* 下のメニューより少し大きく */
    margin: 0 -5% 20px;
  }
  .gnav_list a {
    min-height: 64px;
    font-size: 1.8rem;
  }
  .gnav_list a::after {
    width: 30px;
    height: 30px;
  }
  .gnav_entry {
    margin-top: 47px;
  }
  .gnav_entry a {
    height: 77px;
  }
  .gnav_entry span::after {
    right: 33px;
    width: 12px;
    height: 16px;
  }
  .gnav_bnr {
    margin-top: 40px;
  }
  .gnav_bnr a {
    height: 70px;
    border-radius: 12px;
  }
  .gnav_bnr a::after {
    right: 13px;
    width: 9px;
    height: 14px;
  }
  /* トップページ（-hide-top）は、PCでは最初は隠してスクロールしたら表示 */
  .js #top-head.-hide-top {
    opacity: 0;
    visibility: hidden;
    translate: 0 -100%;
    transition: opacity .5s, visibility .5s, translate .5s cubic-bezier(.33, 1, .68, 1);
  }
  .js #top-head.-hide-top.is-show {
    opacity: 1;
    visibility: visible;
    translate: none;
  }
}
/* ------------------------------------ */
/* ▼PC用デザインとして付け足すデザイン */
/* ------------------------------------ */
@media all and (min-width: 1200px) {
  #top-head {
    padding: 16px 15px 0;
  }
  .top-head_wrap {
    height: 80px;
    padding: 0 16px 0 27px;
    border-radius: 20px;
  }
  #top-head .logo {
    width: 200px;
  }
  .h_count {
    margin-left: 24px;
    font-size: 1.8rem;
  }
  .h_count_num {
    font-size: 3rem;
  }
  .h_btns {
    gap: 20px;
  }
  .h_entry a {
    height: 44px;
    padding: 0 52px 0 30px;
  }
  .h_entry a::after {
    right: 19px;
    width: 9px;
    height: 15px;
  }
  .openbtn {
    --ob-size: 56px;
    --ob-line: 21px;
    --ob-gap: 8px;
  }
  .openbtn span {
    height: 2.5px;
  }
}
/* 「浜松だいすきネット」ボタンは、会員数に重ならない幅（1080px〜）で表示 */
@media all and (min-width: 1080px) {
  .h_daisuki {
    display: block;
  }
  .h_daisuki a {
    height: 44px;
  }
  .h_daisuki img {
    width: 24px;
  }
}
@media all and (min-width: 1440px) {
  .top-head_wrap {
    height: 80px;
  }
  #top-head .logo {
    width: 200px;
  }
  .h_count {
    margin-left: 20px;
    font-size: 1.7rem;
  }
  .h_count_num {
    font-size: 2.8rem;
  }
  .h_entry a {
    width: 160px;
    height: 44px;
    padding: 0 52px 0 30px;
    font-size: 1.8rem;
  }
  .h_daisuki a {
    width: 302px;
  }
}