#loadingOverlay1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* Increased opacity */
  backdrop-filter: blur(5px); /* Stronger blur effect */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Spinner animation */
.loading-spinner {
  margin: 0 auto;
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.header {
  width: 100%;
  padding: 1.4rem 0;
  background-color: white;
  box-shadow: 0px 2px 2px 1px rgba(0, 0, 0, 0.1);
  /* This creates the smooth transition effect */
  transition: all 0.4s ease-in-out;
}

.header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
/*   z-index: 1000; */
  /* Optional: slightly different styling for the sticky state */
  padding: 1rem 0;
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.1);
}

.header-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-left {
  max-width: 15rem;
}

.header-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header_right {
  display:flex;
  justify-content:center;
  font-family: Noto Sans JP;
  font-size: 12px;
  font-weight: 700;
  line-height: 25.6px;
  text-align: center;
  padding: 0;
  list-style: none;
  margin: 0;
  align-items: center;
}

.header_right li a {

}

.header_right li a:hover {
  text-decoration: underline;
}

.nav_content {
  margin: 0 10px;
  color:black;
}

@media (max-width: 1120px) {
  .header_right {
    display: none;
  }

  .header-left {
    max-width: 12rem;
  }
}

.btn_header{
  border-radius: 0.8rem;
  cursor: pointer;
  font-weight: 700;
  padding: 1.2rem 2.4rem;
  text-align: center;
  width: 100%;
  display: block;
}

.btn_header.is_fitContent{
  width: fit-content;
  max-width: inherit;
}

.btn_header.is_middle{
  padding: 0.4rem 0.8rem;
  font-size: 1.4rem;
}


{# main #}
.btn_header.is_main{
  border: 1px solid #1a5398;
  background: #1a5398;
  color: var(--white);
}
.btn_header.is_main:hover{
  opacity: 0.8;
  text-decoration: none;
}

.action-button {
  padding: 10px 20px;
  display: flex;
  background-color: #1a5398;
  color: #ffffff;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  gap: 8px;
  margin: 0 auto;
  margin-left:10px;
}

.action-button:hover {
  background-color: #003e7d;  text-decoration: none;
}

.header_mypage {
  display: flex;
}

.header_mypage img{
  width: 20px;
  margin-left:10px;
}

.header_mypage_content{
  margin: 0 10px 0 2px;
}

@media (max-width: 1024px) {
  .header-content {
    padding-right: 20px;
    padding-left: 20px;
  }
  .header {
    z-index: 999999;
    position: relative;
  }
}

@media (max-width:768px) {
  .action-button {
    width: 100%;
  }
}
/* --- Hamburger Menu & Mobile Navigation Styles --- */

body.menu-open {
  overflow: hidden;
}

.hamburger-menu {
  display: none;
  width: 25px;
  height: 21px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.35s ease-in-out;
}

.hamburger-menu span:nth-child(1) { top: 0px; }
.hamburger-menu span:nth-child(2) { top: 9px; }
.hamburger-menu span:nth-child(3) { top: 18px; }


.hamburger-menu.is-active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.hamburger-menu.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger-menu.is-active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 39, 49, 0.3);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.mobile-nav.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 7rem 2rem 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.mobile-nav.is-active ul {
  transform: translateX(0);
}

.mobile-nav ul li a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.mobile-nav .header_mypage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mobile-nav .action-button {
  display: inline-block;
  padding: 12px 40px;
  margin-top: 1rem;
  color: #fff;
}


/* --- Responsive Breakpoints --- */

@media (max-width: 1024px) {
  .header_right {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }
  .mobile-nav ul {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .mobile-nav ul {
    max-width: 100%;
    box-shadow: none;
  }
}

/* --- Base Mobile Nav Styles --- */
.mobile-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(29, 39, 49, 0.3);
  backdrop-filter: blur(4px);
  z-index: 1001; opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.mobile-nav.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  position: absolute; top: 0; right: 0; height: 100%; width: 100%;
  max-width: 400px;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 6rem 1.5rem 2rem; margin: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  overflow-y: auto; /* Adds scroll for smaller screens */
}

.mobile-nav.is-active ul {
  transform: translateX(0);
}

/* --- Styles for Menu Items --- */
.mobile-menu-title {
  font-size: 16px; font-weight: 700; color: #333;
  width: 100%; text-align: center;
  margin-bottom: 0.5rem;
  padding-top: 10px;
}

.mobile-menu-divider {
  width: 90%; height: 1px;
  background-color: #e0e0e0;
  margin: 0.5rem auto 1rem;
  list-style: none;
}

.mobile-nav ul li {
  width: 100%;
}

.mobile-menu-item {
  display: flex; align-items: center; gap: 15px;
  padding: 10px; width: 100%;
  border-radius: 6px; text-decoration: none;
  color: #333; font-weight: 700; font-size: 14px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.mobile-menu-item:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

.mobile-menu-item img {
  width: 24px; height: 24px;
  object-fit: contain;
}

.mobile-points {
  display: flex; align-items: center; gap: 15px;
  padding: 10px; margin-top: 1rem;
  font-size: 14px; font-weight: 700;
}

.mobile-points img {
  width: 28px; height: 28px;
  object-fit: contain;
}

.mobile-points .points_strong {
  font-size: 18px; color: #1a5398;
  border-bottom: 1px solid #1a5398;
}

.mobile-cta-item {
  margin-top: auto; /* Pushes button to the bottom */
  padding-top: 1rem;
}

.mobile-cta-item .action-button {
  width: 100%;
  margin-left: 0;
  text-decoration: none;
  text-align: center;
}

.mobile-nav .mobile-menu-item::after {
  content: ''; /* This is required for pseudo-elements to show up */
  display: inline-block;

  /* Set the icon's appearance */
  width: 16px;
  height: 16px;
  background-image: url('https://gf-academy.com/hubfs/Vector%20(3).svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  /* Push the icon to the far right */
  margin-left: auto;
  flex-shrink: 0; /* Prevents the icon from shrinking on smaller screens */
}

.mobile-nav .mobile-menu-item.noafter::after {
  display: none ;
}







.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 10px;
  z-index: 1002;
}

/* When this class is added by JS, the modal becomes visible */
.modal-overlay.is-open {
  display: flex;
}

/* The content box of the modal */
.modal-content {
  position: relative;
  background-color: #ffffff;
  width: 100%;
  max-width: 380px; /* Increased size */
  margin: auto;
  border-radius: 12px; /* Slightly larger radius */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
  padding: 25px; /* Increased padding */
}

@media (min-width: 768px) {
  .modal-content {
    padding: 30px; /* Increased padding for desktop */
  }
}

/* The 'X' close button */
.modal-close-button {
  position: absolute;
  top: 15px; /* Adjusted position */
  right: 15px; /* Adjusted position */
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease-in-out;
}

.modal-close-button:hover {
  color: #4b5563;
}

.modal-close-button svg {
  width: 20px; /* Increased size */
  height: 20px; /* Increased size */
}

/* Container for the main icon */
.modal-icon-container {
  margin: 0 auto 15px; /* Increased margin */
  color: #1a5398;
}

.modal-icon-container svg {
  height: 50px; /* Increased size */
  width: 50px; /* Increased size */
  margin: 0 auto;
}

/* Modal heading text */
.modal-heading {
  font-family: 'Inter', sans-serif;
  font-size: 20px; /* Increased size */
  line-height: 26px; /* Adjusted line-height */
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px; /* Adjusted margin */
}

/* Modal body text */
.modal-body-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px; /* Set specific size */
  line-height: 22px; /* Set specific line-height for readability */
  color: #4b5563;
  margin-bottom: 20px; /* Increased margin */
}

/* The main "Got It" button */
.modal-confirm-button {
  font-family: 'Inter', sans-serif;
  width: 100%;
  background-color: #1a5398;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 10px; /* Increased padding */
  border: none;
  border-radius: 8px; /* Increased radius */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.modal-confirm-button:hover {
  opacity: 0.8;
}

.modal-confirm-button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}