/* Aware Theme Custom CSS - Minimal & Aesthetic */

:root {
  --aware-black: #1a1a1a;
  --aware-gray-dark: #333333;
  --aware-gray: #666666;
  --aware-gray-light: #999999;
  --aware-gray-lighter: #e5e5e5;
  --aware-white: #ffffff;
  --aware-accent: #0066cc;
  --aware-accent-light: #3399ff;
}

/* Override Quark defaults for horizontal menu */
#header .dropmenu ul {
  display: flex !important;
  flex-direction: row !important;
  margin: 0 !important;
  padding: 0 !important;
}

#header .dropmenu ul li {
  display: inline-block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

#header .dropmenu > ul > li > ul {
  display: none !important;
}

/* Remove Quark's tree menu styling */
#header .dropmenu ul li:before {
  display: none !important;
}

#header .treemenu li {
  padding: 0 !important;
}

/* Typography */
body {
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--aware-gray-dark);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 1em;
  letter-spacing: 0.04em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--aware-gray-lighter);
}

h3 {
  font-size: 1.5rem;
}

/* Header Styling */
#header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

.header-dark #header {
  background: rgba(26, 26, 26, 0.98);
}

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

#header .navbar-section {
  display: flex;
  align-items: center;
}

#header .navbar-section.logo img {
  height: 40px;
  width: auto;
}

#header .navbar-section.logo a {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--aware-black);
  text-decoration: none;
}

/* Navigation Menu */
#header .desktop-menu {
  display: flex;
  align-items: center;
}

#header .dropmenu {
  display: flex;
  align-items: center;
}

#header ul.navigation {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

#header ul.navigation > li {
  display: inline-flex;
  margin: 0;
}

#header ul.navigation > li > a {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--aware-gray-dark);
  text-decoration: none;
  position: relative;
}

#header ul.navigation > li > a:hover {
  color: var(--aware-accent);
}

#header ul.navigation > li > a.active {
  color: var(--aware-accent);
}

#header ul.navigation > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--aware-accent);
  transition: width 0.3s ease;
}

#header ul.navigation > li > a:hover::after,
#header ul.navigation > li > a.active::after {
  width: 70%;
}

/* Body spacing for fixed header */
body {
  padding-top: 80px;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -80px;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(0, 102, 204, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  color: white;
  border: none;
  padding: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-description p {
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-buttons .btn {
  margin: 0 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  min-width: 150px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--aware-black);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content Area */
#body {
  padding: 4rem 0;
  min-height: 60vh;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--aware-gray-lighter);
  background: white;
  color: var(--aware-gray-dark);
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.btn-primary {
  background: var(--aware-black);
  color: white;
  border-color: var(--aware-black);
}

.btn:hover {
  background: var(--aware-gray-lighter);
  border-color: var(--aware-gray-light);
  color: var(--aware-black);
}

.btn-primary:hover {
  background: var(--aware-gray-dark);
  border-color: var(--aware-gray-dark);
  color: white;
}

/* Tables */
table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--aware-gray-lighter);
}

table th {
  font-weight: 500;
  background: #fafafa;
  letter-spacing: 0.05em;
}

table tr:hover {
  background: #fafafa;
}

/* Forms */
form .form-field {
  margin-bottom: 2rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--aware-gray-lighter);
  border-radius: 2px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--aware-accent);
}

form textarea {
  resize: vertical;
}

/* Footer */
#footer {
  background: var(--aware-black);
  color: var(--aware-gray-lighter);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
}

#footer a {
  color: var(--aware-gray-lighter);
  transition: color 0.3s ease;
}

#footer a:hover {
  color: white;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
}

@media (max-width: 840px) {
  #header .desktop-menu {
    display: none;
  }
  
  .mobile-menu {
    display: block;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1001;
  }
  
  .mobile-menu .button_container {
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
  }
  
  .mobile-menu span {
    background: var(--aware-gray-dark);
    border: none;
    height: 2px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.35s ease;
  }
  
  .mobile-menu span.top {
    top: 0;
  }
  
  .mobile-menu span.middle {
    top: 11px;
  }
  
  .mobile-menu span.bottom {
    bottom: 0;
  }
  
  .mobile-menu.active span.top {
    transform: rotate(45deg);
    top: 11px;
  }
  
  .mobile-menu.active span.middle {
    opacity: 0;
  }
  
  .mobile-menu.active span.bottom {
    transform: rotate(-45deg);
    bottom: 12px;
  }
}

/* Mobile Container */
.mobile-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
}

.mobile-container.active {
  display: block;
}

.mobile-container .overlay {
  background: rgba(255, 255, 255, 0.98);
  width: 100%;
  height: 100%;
  padding: 80px 40px 40px;
  overflow-y: auto;
}

.mobile-container .mobile-logo {
  text-align: center;
  margin-bottom: 40px;
}

.mobile-container .mobile-logo img {
  height: 50px;
}

.mobile-container .overlay-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-container .overlay-menu ul li {
  margin: 20px 0;
  text-align: center;
}

.mobile-container .overlay-menu ul li a {
  font-size: 1.2rem;
  color: var(--aware-gray-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-container .overlay-menu ul li a:hover {
  color: var(--aware-accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  #header {
    padding: 1rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons .btn {
    display: block;
    width: 80%;
    margin: 0.5rem auto;
  }
  
  #header .navbar-section.logo a {
    font-size: 1.5rem;
  }
  
  #header .navbar-section.logo img {
    height: 30px;
  }
  
  .btn {
    display: inline-block;
    margin: 0.5rem;
  }
  
  .cta-section .btn {
    display: block;
    width: 80%;
    margin: 0.5rem auto;
  }
  
  #footer .row > div {
    text-align: center !important;
    margin-bottom: 2rem;
  }
  
  .business-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .business-card {
    padding: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Additional Enhancements */
::selection {
  background: var(--aware-accent);
  color: white;
}

a {
  color: var(--aware-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--aware-accent-light);
}

/* Clean lists */
ul.clean-list {
  list-style: none;
  padding: 0;
}

ul.clean-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--aware-gray-lighter);
}

/* Card style */
.card {
  background: white;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Business Cards */
.business-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.business-card {
  background: white;
  padding: 2.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.business-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--aware-black);
  font-weight: 400;
}

.business-card p {
  color: var(--aware-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.btn-link {
  color: var(--aware-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: var(--aware-accent-light);
}

.home-content {
  padding: 4rem 0;
}

.home-content h3 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 3rem;
}

.cta-section {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid var(--aware-gray-lighter);
}