/* === BASE RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Serif JP', 'Georgia', 'Times New Roman', serif;
  background-color: #d3d3d3;
  color: #1a1f2b;
  line-height: 1.7;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 100vh;
  flex-direction: column;
}

/* === CONTAINER === */
.container {
  max-width: 1140px;
  width: 100%;
  background: #f0f8ff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* === HEADER === */
header {
  background-color: white;
  color: #001f3f;
  border-bottom: 1px solid #e2e8f0;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.logo-text h1 {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.4rem);
  color: #1a2a48;
  margin: 0;
  letter-spacing: 1px;
}

.logo-text .tagline {
  font-size: 0.9rem;
  color: #7c8a9a;
  margin-top: 4px;
  font-style: italic;
  letter-spacing: 0.3px;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-label {
  font-weight: bold;
}

#language-select {
  padding: 0.3rem;
  font-size: 1rem;
}

/* === NAVIGATION === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #001f3f;
  padding: 1rem 2rem;
  border-radius: 8px;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  font-weight: bold;
  font-size: 1rem;
  color: #e4e7ef;
  white-space: nowrap;
}

.hamburger {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  display: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem; /* or reduce this if needed */
  flex-wrap: nowrap; /* prevent wrapping */
  overflow-x: auto; /* optional: allow scrolling if really needed */
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #d3d3d3;
  padding: 0.5rem 0.75rem; /* narrower */
  flex-shrink: 1; /* allow shrinking */
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #0056a1;
  color: #fff;
  border-bottom: 2px solid #fff;
}

/* === ATTORNEY INFO === */
.attorney-info {
  padding: 2rem;
  text-align: center;
  font-size: 1rem;
  color: #1a1f2b;
  font-family: 'Georgia', serif;
}

.attorney-info a {
  color: #0056b3;
  text-decoration: none;
}

/* === SECTION HEADINGS === */
.title-heading {
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #1a2a48;
  margin-bottom: 0.5rem;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.title-subheading {
  font-size: 1.2rem;
  color: #5a5a5a;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-style: italic;
  letter-spacing: 0.2px;
  text-align: center;
}

/* === PRIVACY SECTION === */
.imprint {
  padding: 2rem 1rem;
  margin: auto;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
}

.privacy-list {
  list-style: none;
  counter-reset: section;
  padding-left: 0;
  margin-top: 2rem;
}

.privacy-list li {
  margin-bottom: 3rem;
  padding-left: 1.5rem;
}

.privacy-list li h2 {
  font-size: 1.5rem;
  color: #1a2a48;
  margin-bottom: 0.8rem;
  position: relative;
}

.privacy-list li h2::before {
  counter-increment: section;
  content: none;
  font-size: 1.5rem;
  color: #0056a1;
  position: absolute;
  left: -2rem;
  font-weight: bold;
}

.privacy-list li p,
.privacy-list li ul {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.privacy-list li ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  list-style-type: disc;
}

/* === FOOTER === */
.social-links {
  margin-top: 1rem;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #0077b5;
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.linkedin-btn img {
  width: 20px;
  height: 20px;
}

.linkedin-btn:hover {
  background-color: #005e93;
}
footer {
  background-color: #001f3f;
  color: #d3dce6;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

footer a {
  color: #d3dce6;
  margin: 0 0.5rem;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.designer-credit {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-family: 'Georgia', serif;
  color: #b5bcc8;
  letter-spacing: 0.4px;
  opacity: 0.4;
}

.designer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.designer-link:hover {
  opacity: 0.8;
  border-bottom: 1px solid #ffffff;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    gap: 1rem;
    justify-content: center;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
      body {
    padding: 20px 10px;
  }
  .logo-text h1 {
    font-size: 1rem;
    text-align: center;
  }

  .clock-container {
    flex-direction: column;
    align-items: center;
  }

  .logo-row {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    background-color: #001f3f;
    border-radius: 8px;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .nav-links a {
    text-align: center;
    width: 100%;
  }

  .language-toggle {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .language-toggle {
    flex-direction: row;
    justify-content: center;
  }

  .attorney-info {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .attorney-heading {
    font-size: 1.5rem;
  }

  .privacy-list li h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .attorney-heading {
    font-size: 1.2rem;
  }

  .attorney-subheading {
    font-size: 1rem;
  }

  .logo-text h1 {
    font-size: 0.8rem;
  }

  .logo-text .tagline {
    font-size: 0.7rem;
  }

  .attorney-info {
    font-size: 0.85rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 1rem;
  }
}

@media print {
  nav,
  footer,
  .hamburger,
  .language-toggle {
    display: none;
  }
}
