/* ============================================================
   nar_footer.css  –  Navbar + Footer + Lang Toggle
   ============================================================ */

:root {
  --color-bg:          #ffffff;
  --color-bg-soft:     #f7f8fa;
  --color-bg-muted:    #f0f2f5;
  --color-navy:        #1a2340;
  --color-navy-mid:    #2c3e6b;
  --color-navy-light:  #4a5a8a;
  --color-accent:      #c8a96e;
  --color-accent-dark: #a88a50;
  --color-accent-soft: rgba(200, 169, 110, 0.12);
  --color-text-main:   #1a2340;
  --color-text-sub:    #5a6480;
  --color-text-muted:  #9aa0b4;
  --color-border:      #e4e8f0;
  --color-border-soft: #f0f2f5;
  --color-white:       #ffffff;
  --font-main:         'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --section-pad-y:     60px;
  --section-pad-x:     clamp(20px, 5vw, 80px);
  --container-max:     1200px;
  --radius-sm:         6px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --radius-xl:         32px;
  --shadow-sm:         0 2px 8px rgba(26, 35, 64, 0.06);
  --shadow-md:         0 4px 20px rgba(26, 35, 64, 0.10);
  --shadow-lg:         0 8px 40px rgba(26, 35, 64, 0.14);
  --ease:              cubic-bezier(0.22, 1, 0.36, 1);
  --duration:          0.4s;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(30, 30, 36, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Container — logo left, nav-right right */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  position: relative; /* needed for mobile dropdown */
}

/* ── Logo ── */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  
}


.logo {
  height: 120px;
  width: auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  margin-left: 2px;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
}


.logo img {
  height: 100%;
  width: auto;
  display: block;
  margin-bottom: 5px;
}

/* ── Nav links (desktop) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.nav-active {
  opacity: 0.7;
}

/* ── Right-side group: hamburger + lang toggle ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Hamburger (hidden on desktop) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(59, 59, 59, 0.2);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e4e8f0;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Lang toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  background-color: rgb(90, 100, 128, 0.3);
  padding-bottom: 2px;
  border-radius: 2%;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
  padding: 3px 5px;
  border-radius: 3px;
  opacity: 0.5;
  line-height: 1;
  transition: opacity 0.2s;
}

.lang-btn:hover {
  opacity: 0.85;
}

.lang-btn.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-divider {
  font-size: 0.7rem;
  opacity: 0.3;
  color: #ffffff;
  user-select: none;
  line-height: 1;
}

/* ============================================================
   NAVBAR — TABLET (768px ~ 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 12px;
  }
}

/* ============================================================
   NAVBAR — MOBILE (under 768px)
   ============================================================ */

@media (max-width: 768px) {
  .navbar .container {
  padding: 0 clamp(5px, 1vw, 40px);
  }

  /* Show hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Hide nav links by default */
  .nav-links {
    display: none;
  }

  /* Dropdown menu when open */
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(20px, 5vw, 80px);  
    left: auto;                       
    width: 200px;
    background: rgba(137, 139, 109, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px clamp(20px, 5vw, 40px);
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5%;
  }

  .nav-links.open li {
    width: 100%;
  }

  .nav-links.open a {
    font-size: 15px;
    display: block;
    padding: 4px 0;
  }

  /* Keep container single row */
  .navbar .container {
    flex-wrap: nowrap;
  }

  /* Logo smaller */
  .logo {
    height: 60px;
    padding: 0 8px 0 0;
    border-radius: 8px;
  }

  /* nav-right stays flex */
  .nav-right {
    gap: 8px;
  }

  /* Lang btn slightly smaller */
  .lang-btn {
    font-size: 0.72rem;
    padding: 2px 4px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.フッター {
  background: var(--color-navy);
  width: 100%;
  padding: 56px 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.フッターのナビ {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
}

.フッターのナビ a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  transition: color 0.2s ease;
}

.フッターのナビ a:hover {
  color: var(--color-white);
}

.フッターの社名 {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
}

.フッターの線 {
  width: 100%;
  max-width: 1200px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.フッターのコピーライト {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .フッター {
    padding: 40px 20px 24px;
  }

  .フッターのナビ {
    gap: 10px 20px;
  }
}
