/* ============================================
   Font Imports
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;500;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   Brand Colors (CSS Variables)
   ============================================ */
:root {
  --wedo-vibrant-blue: #00A3C2;
  --wedo-deep-blue: #00526C;
  --wedo-black: #000000;
  --wedo-gray-bg: #f5f5f6;
  --wedo-border-gray: #e6e7eb;
}

/* ============================================
   Header Styles
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo img {
  height: 32px;
  display: block;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 14px;
  color: #4a5568;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--wedo-vibrant-blue);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 70%;
  left: 0;
  margin-top: 0.5rem;
  width: 256px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 14px;
  color: #4a5568;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
  background-color: #f7fafc;
  color: var(--wedo-vibrant-blue);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-btn {
  display: none;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background-color: var(--wedo-vibrant-blue);
  color: #ffffff;
  font-size: 14px;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.contact-btn:hover {
  background-color: var(--wedo-deep-blue);
}

/* Search Toggle (CSS-only) */
.search-toggle-checkbox {
  display: none;
}

/* Mobile Menu Toggle (CSS-only) */
.mobile-menu-toggle-checkbox {
  display: none;
}

.search-btn {
  padding: 0.5rem;
  color: #4a5568;
  transition: color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-btn:hover {
  color: var(--wedo-vibrant-blue);
}

/* Search Bar */
.search-bar {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 2rem;
  background-color: #ffffff;
}

#search-toggle:checked ~ .header-container .search-bar,
#search-toggle:checked ~ .search-bar {
  max-height: 100px;
  opacity: 1;
  padding: 1rem 2rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
  border-color: var(--wedo-vibrant-blue);
  box-shadow: 0 0 0 2px rgba(0, 163, 194, 0.2);
}

.search-btn,
.mobile-menu-btn {
  padding: 0.5rem;
  color: #4a5568;
  transition: color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-btn:hover,
.mobile-menu-btn:hover {
  color: var(--wedo-vibrant-blue);
}

.mobile-menu-btn {
  display: block;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  padding: 1rem;
}

#mobile-menu-toggle:checked ~ .mobile-nav {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 14px;
  color: #4a5568;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--wedo-vibrant-blue);
}

.mobile-subnav {
  margin-left: 1rem;
  margin-top: 0.25rem;
}

.mobile-subnav-link {
  display: block;
  padding: 0.375rem 1rem;
  font-size: 14px;
  color: #718096;
  transition: color 0.3s ease;
}

.mobile-subnav-link:hover {
  color: var(--wedo-vibrant-blue);
}

.mobile-nav-divider {
  height: 1px;
  background-color: #f7fafc;
  margin: 0.5rem 0;
}

.mobile-contact-btn {
  display: block;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 14px;
  background-color: var(--wedo-vibrant-blue);
  color: #ffffff;
  border-radius: 9999px;
  transition: background-color 0.3s ease;
}

.mobile-contact-btn:hover {
  background-color: var(--wedo-deep-blue);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
  padding-top: 64px; /* Header height */
}

/* ============================================
   Footer Styles
   ============================================ */
.footer {
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--wedo-black);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-link {
  font-size: 12px;
  color: #718096;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--wedo-vibrant-blue);
}

.footer-copyright {
  font-size: 12px;
  color: #a0aec0;
}

/* ============================================
   Responsive Design - Tablet & Desktop
   ============================================ */
@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .contact-btn {
    display: inline-flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}