/* header */
#header {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
}
#header::before {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 10px);
  content: '';
  background: var(--yellow);
  border-radius: 100px;
}
.logo {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 100px;
  z-index: 3;
  width: 220px;
  height: 56px;
  background: #000;
}
.logo a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  line-height: 0.9;
  transition: all 0.3s;
}
.logo a img {
  width: 75%;
  margin: auto;
  opacity: 1;
  transition: filter 0.3s;
}
.logo a:hover img {
  animation: logoGlowWhite 1.6s ease-in-out infinite;
}
@keyframes logoGlowWhite {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
  }
}
.logo::before, .logo::after {
  position: absolute;
  content: '';
  display: block;
  background-image: url("../img/common/sparkle.webp");
  background-size: contain;
  background-repeat: no-repeat;
}
.logo::before {
  width: 9px;
  height: 9px;
  top: 30px;
  left: 10px;
}
.logo::after {
  width: 12px;
  height: 12px;
  top: 10px;
  right: 13px;
}
.h_nav {
  position: absolute;
  z-index: 3;
  top: 25px;
  right: 470px;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0em auto 0em;
  justify-content: flex-end;
}
.h_nav li {
  position: relative;
  padding: 0 0 0 40px;
}
.h_nav li::before {
  position: absolute;
  content: '';
  top: 50%;
  transform: translate(0%, -50%);
  left: 15px;
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("../img/common/sparkle.webp");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}
.h_nav li a {
  color: #333 !important;
  display: inline-block;
  transform: scale(1);
  transition: transform 0.3s ease;
}
.h_nav li a:hover {
  transform: scale(1.02);
}
.h_nav li:hover::before {
  transform: translate(0%, -50%) rotate(45deg) scale(1.3);
}
.h_btn {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 230px;
}
.h_btn a {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.4rem;
  padding: 8px 20px;
  transform: scale(1);
  transition: transform 0.3s ease;
}
.h_btn a:hover {
  transform: scale(1.02);
}
.h_btn a img {
  width: 20px;
  margin: 0 10px 0 0;
}
.h_btn a p {
  color: #333;
}
/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: absolute;
  z-index: 9999; /*ボタンを最前面に*/
  top: 55%;
  right: 40px;
  transform: translate(0%, -50%);
  cursor: pointer;
  width: 35px;
  height: 22px;
}
/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  right: 25%;
  height: 2px;
  background-color: #000;
  border-radius: 3px;
  width: 100%;
}
.openbtn span:nth-of-type(1) {
  top: 0;
}
.openbtn span:nth-of-type(2) {
  top: 50%;
}
.openbtn span:nth-of-type(3) {
  top: 100%;
}
/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
.openbtn.active {}
.openbtn.active span {}
.openbtn.active span:nth-of-type(1) {
  top: 45%;
  transform: translateY(6px) rotate(-45deg);
}
.openbtn.active span:nth-of-type(2) {
  display: none;
}
.openbtn.active span:nth-of-type(3) {
  transform: translateY(-6px) rotate(45deg);
}
/*========= ナビゲーションのためのCSS ===============*/
#gnav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 9998;
  /*ナビのスタート位置と形状*/
  top: -500%;
  right: 0%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  transition: all 0.6s;
}
/*アクティブクラスがついたら位置を0に*/
#gnav.panelactive {
  top: 0;
}
/*ナビゲーションの縦スクロール*/
#gnav.panelactive #gnav-inner {
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
/*ナビゲーション*/
.gnav_wrap {
  display: flex;
  gap: 24px;
  box-sizing: border-box;
  min-height: calc(100vh - 36px);
  margin: 10px;
  padding: 24px;
  overflow: hidden;
  background: rgba(255, 226, 0, 0.95);
  border-radius: 30px;
}
.gnav_people {
  position: absolute;
  right: 67px;
  bottom: 49px;
  width: 76px;
}
/* 左：ビジュアル */
.gnav_visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: clamp(260px, 28vw, 400px);
  min-height: 600px;
  padding: clamp(30px, 6.5vh, 60px) 0 0;
  
  background: url("../img/common/bg.webp") no-repeat center / cover;
  border-radius: 25px;
}
.gnav_catch {
  font-family: kinuta-maruminold-stdn, serif;
  font-size: clamp(2.8rem, 2.7vw, 3.8rem);
  line-height: 1.2;
  letter-spacing: 0.2em;
  color: #fff;
}
.gnav_catch span {
  display: table;
  margin: 0 auto 0.45em;
  padding: 0 0 0.2em 0.2em;
  background: radial-gradient(circle, var(--yellow) 1.2px, transparent 1.6px) repeat-x left bottom / 7px 4px;
}
.gnav_catch em {
  font-style: normal;
  color: var(--yellow);
}
.gnav_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(240px, 60%, 26vh);
  transform: translate(-50%, -50%);
}
.gnav_logo span {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
}
.gnav_logo span img {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}
.gnav_cheers {
  position: absolute;
  bottom: -5px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 4.7%;
  width: 100%;
}
.gnav_cheers img {
  width: 33.7%;
}
/* 乾杯アニメーション（about_img02_cheers と同じ動き） */
.gnav_cheers img:first-child {
  transform-origin: bottom right;
  animation: gnavCheersLeft 2.4s ease-in-out infinite;
}
.gnav_cheers img:last-child {
  transform-origin: bottom left;
  animation: gnavCheersRight 2.4s ease-in-out infinite;
}
/* 下層ページでは mv.css を読み込まないため、メニュー用に定義 */
@keyframes gnavCheersLeft {
  0%, 100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(3deg);
  }
  40% {
    transform: rotate(0deg);
  }
}
@keyframes gnavCheersRight {
  0%, 100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(8deg);
  }
  30% {
    transform: rotate(-3deg);
  }
  40% {
    transform: rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gnav_cheers img:first-child, .gnav_cheers img:last-child {
    animation: none;
  }
}
.gnav_sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gnav_sparkles span {
  position: absolute;
  width: 22px;
  height: 22px;
  translate: -50% -50%; /* アニメーションの transform と競合しないよう translate で指定 */
  background: url("../img/common/sparkle.webp") no-repeat center / contain;
  animation: gnavTwinkle 2.4s ease-in-out infinite;
}
.gnav_sparkles span.is-yellow {
  width: 40px;
  height: 40px;
  background-image: url("../img/common/sparkle_yellow.webp");
}
.gnav_sparkles .s1 { top: 5.7%; left: 88.6%; }
.gnav_sparkles .s2 { top: 37%; left: 90.8%; animation-delay: 0.6s; }
.gnav_sparkles .s3 { top: 44.7%; left: 10.6%; animation-delay: 1.2s; }
.gnav_sparkles .s4 { top: 75.5%; left: 47%; animation-delay: 0.3s; }
.gnav_sparkles .s5 { top: 79.4%; left: 25%; animation-delay: 1.8s; }
/* 下層ページでは top.css を読み込まないため、メニュー用に定義 */
@keyframes gnavTwinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(0.7);
  }
}
/* 右：メニュー */
.gnav_menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.gnav_menu > * {
  width: min(480px, 100%);
  text-align: left;
}
.gnav_top a {
  position: relative;
  display: inline-block;
  padding: 0 0 0 34px;
  font-size: 2rem;
  font-weight: 700;
  color: #000 !important; /* top.css の a { color: #fff !important; } を上書き */
}
.gnav_top a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 32px;
  height: 32px;
  content: '';
  transform: translate(0, -50%);
  background: url("../img/common/sparkle.webp") no-repeat center / contain;
  transition: transform 0.4s ease;
}
.gnav_top a:hover::before {
  transform: translate(0, -50%) rotate(45deg) scale(1.2);
}
.gnav_list {
  margin: 30px auto 0;
}
.gnav_list li + li {
  margin: 20px 0 0;
}
.gnav_list a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  box-sizing: border-box;
  padding: 24px 56px;
  background: #000;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gnav_list a:hover {
  transform: scale(1.02);
  box-shadow: 0 0 12px 2px rgba(255, 235, 59, 0.4);
}
.gnav_en {
  font-family: quiche-sans, sans-serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 3.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--yellow);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 235, 59, 0.45), 0 0 18px rgba(255, 235, 59, 0.25);
}
.gnav_en small {
  position: relative;
  display: table;
  margin: 0 auto 0.15em;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
}
.gnav_en small::before, .gnav_en small::after {
  position: absolute;
  content: '';
  background: url("../img/common/sparkle.webp") no-repeat center / contain;
  animation: gnavTwinkle 2.4s ease-in-out infinite;
}
.gnav_en small::before {
  top: 45%;
  left: -20px;
  width: 9px;
  height: 9px;
}
.gnav_en small::after {
  top: -4px;
  right: -16px;
  width: 11px;
  height: 11px;
  animation-delay: 1.2s;
}
.gnav_ja {
  margin: 6px 0 0;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
}
.gnav_list .arrow {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 28px;
  transform: translate(0, -50%);
  border-radius: 50%;
}
.gnav_list a:hover .arrow {
  animation: arrowGlow 1.6s ease-in-out infinite;
}
.gnav_btn {
  margin: 38px auto 0;
}
.gnav_btn a {
  display: inline-flex;
  align-items: center;
  height: 45px;
  padding: 0 18px 0 16px;
  background: #fff;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #001660 !important; /* top.css の a { color: #fff !important; } を上書き */
  transition: transform 0.3s ease;
}
.gnav_btn a:hover {
  transform: scale(1.03);
}
.gnav_btn a img {
  width: 18px;
  margin: 0 8px 0 0;
}
.gnav_btn a span::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 1px 8px;
  content: '';
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
@media screen and (max-width: 975px) {
  .h_nav {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .logo {
    width: 160px;
  }
  .logo a {
    line-height: 0.7;
  }
  .logo::before {
    width: 8px;
    height: 8px;
    top: 40px;
    left: 10px;
  }
  .logo::after {
    width: 10px;
    height: 10px;
    top: 10px;
    right: 13px;
  }
  .h_nav {
    display: none;
  }
  .h_btn {
    display: none;
  }
  /*========= ボタンのためのCSS ===============*/
  .openbtn {
    right: 20px;
  }
  /*========= ナビゲーションのためのCSS ===============*/
  #gnav {
    top: -500%;
  }
  .openbtn.active {
    top: 40px;
    right: 25px;
  }
  .gnav_wrap {
    flex-direction: column;
    min-height: 0;
    margin: 10px 14px 14px;
    padding: 68px 14px 28px;
    border-radius: 15px;
  }
  .gnav_visual {
    width: 100%;
    min-height: 0;
    padding: 20px 0 17px;
    border-radius: 10px;
  }
  .gnav_catch {
    font-size: 2.4rem;
  }
  .gnav_catch span {
    display: inline;
    margin: 0;
    padding: 0 0 0.2em;
  }
  .gnav_logo {
    position: relative;
    top: auto;
    left: auto;
    width: 145px;
    margin: 18px auto 0;
    transform: none;
  }
  .gnav_cheers {
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 7%;
  }
  .gnav_cheers img {
    width: 28%;
  }
  .gnav_sparkles span {
    width: 9px;
    height: 9px;
  }
  .gnav_sparkles span.is-yellow {
    width: 15px;
    height: 15px;
  }
  .gnav_sparkles .s1 { top: 30%; left: 80%; }
  .gnav_sparkles .s2 { top: 54%; left: 86%; }
  .gnav_sparkles .s3 { top: 41%; left: 19%; }
  .gnav_sparkles .s4 { top: 91.5%; left: 29%; }
  .gnav_sparkles .s5 { top: 60%; left: 12%; }
  .gnav_menu {
    display: block;
    padding: 0 15px;
  }
  .gnav_top a {
    padding: 0 0 0 30px;
  }
  .gnav_top a::before {
    width: 28px;
    height: 28px;
  }
  .gnav_list {
    margin: 18px auto 0;
  }
  .gnav_list li + li {
    margin: 10px 0 0;
  }
  .gnav_list a {
    min-height: 108px;
    padding: 14px 36px;
    border-radius: 6px;
  }
  .gnav_en {
    font-size: 3.2rem;
  }
  .gnav_en small {
    margin: 0 auto 0.3em;
    font-size: 1.2rem;
  }
  .gnav_en small::before {
    left: -16px;
    width: 7px;
    height: 7px;
  }
  .gnav_en small::after {
    right: -14px;
    width: 8px;
    height: 8px;
  }
  .gnav_ja {
    margin: 4px 0 0;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }
  .gnav_list .arrow {
    right: 12px;
    width: 16px;
  }
  .gnav_btn {
    margin: 20px 0 0;
  }
  .gnav_btn a {
    height: 44px;
    padding: 0 16px 0 17px;
    font-size: 1.2rem;
    letter-spacing: 0;
  }
  .gnav_btn a img {
    width: 19px;
    margin: 0 10px 0 0;
  }
  .gnav_btn a span::after {
    margin-left: 10px;
  }
  .gnav_people {
    right: 31px;
    bottom: -41px;
    width: 65px;
  }
}

/* 言語切り替え（GTranslate Dropdown） */
.h_lang {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 104px;
}
.h_lang select {
  -webkit-appearance: none;
  appearance: none;
  height: 46px;
  width: 104px;
  padding: 0 30px 0 16px;
  border: none;
  border-radius: 50px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23001660' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 11px;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
  text-overflow: ellipsis;
  cursor: pointer;
}
.h_lang select:focus-visible {
  outline: 2px solid #001660;
  outline-offset: 2px;
}
@media screen and (max-width: 768px) {
  .h_lang {
    top: 22px;
    right: 80px;
  }
  .h_lang select {
    height: 36px;
    width: auto;
    max-width: 100px;
    padding: 0 28px 0 13px;
    background-position: right 11px center;
    font-size: 1.3rem;
  }
}
