#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 #0000001A;
}

.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: 1024px) {
  .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;
}

.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: 1.4rem;
  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;
  }

}