.menu-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  overflow-x: hidden;
  background: #1a69ae;
  color: #fff;
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  pointer-events: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.menu-modal.open {
  display: flex;
}

.menu-modal-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 100px 1.5em 2em;
  box-sizing: border-box;
}

.menu-header {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-close {
  background: #fff;
  color: #1a69ae;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1em;
  font-weight: bold;
}

.menu-logo img{
width:200px;
height:auto;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding: 0 1.5em;
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  width: 100%;
}

.menu-nav a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.menu-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 2em;
  padding: 0 1.5em;
  width: 100%;
  box-sizing: border-box;
}

.menu-footer .cta-btn {
  display: block;
  padding: 1em;
  border-radius: 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  min-width:80vw;
}

.cta-btn.white {
  background: #fff;
  color: #1a69ae;
}

.cta-btn.green {
  background: #00b900;
}

.cta-btn.black {
  background: #222;
}

.cta-btn.purple {
  background: #a024f3;
}

.menu-footer img {
  height: 28px;
}

/* === ハンバーガーメニュー === */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 24px;
  background-color: #1a69ae;
  border-radius: 2px;
  transition: all 0.5s ease;
  margin: 3px 0;
}

.hamburger.open {
  background:#fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.hamburger.open span {
  background-color: #1a69ae;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === CTAボタン === */
.cta-box {
  position: fixed;
  bottom: 2em;
  right: 1em;
  left: auto;
  transform: none;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6em;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-box.visible {
  opacity: 1;
  transform: none;
}

.cta-btn {
  display: inline-block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 0.9em 1.4em;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  word-break: keep-all;
  white-space: nowrap;
}

.cta-btn.main {
  background: #1a69ae;
  color: white;
}

.cta-btn.outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.hamburger {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.hamburger.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

.sns-button {
  display: flex;
  gap: 1.2em;
  margin-top: 0.8em;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.sns-button li a {
  font-size: 1.6rem;
  color: #fff;
  transition: color 0.3s ease;
}

.sns-button li a:hover {
  color: #ccc;
}


@media (min-width: 1024px) {
  .menu-modal {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 23vw;
    height: 100vh;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 20px;
    background: #1a69ae;
    z-index: 100;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

.menu-modal.hidden-by-opening {
    display: none !important;
  }

  .menu-modal-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1em;
  }

  .menu-header {
    position: static;
    margin-bottom: 0.5em;
  }

  .hamburger {
    display: none !important; /* ハンバーガー非表示 */
  }

  .menu-nav {
    font-size: 1rem;
    margin-top: 0;
  }

  .menu-footer {
    margin: 5vh 0 0 0;
    padding: 0;
  }

  .menu-footer .cta-btn {
    min-width:10vw;
    max-width: 16vw;
    width: 100%;
    margin: 0 auto;
    font-size: 0.8rem;
  }
}
