/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Softer Japanese-inspired color palette */
  --primary-red: #b3162a;       /* Dimmed red */
  --primary-dark: #6e0000;       /* Darker but less saturated */
  --secondary-gold: #e6c556;     /* Muted gold */
  --accent-blue: #1a336f;        /* Softer navy blue */
  --neutral-gray: #7d828a;       /* Less contrasty gray */
  --light-gray: #f5f6f8;         /* Slightly dimmed light gray */
  --white: #fefefe;              /* Off-white */
  --black: #2a2f38;              /* Softened black */
  --text-dark: #4a5568;          /* Dimmed dark text */
  --border-light: #d8dbe0;       /* Less sharp border */

  /* Typography */
  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-japanese: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --element-spacing: 2rem;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--black);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Japanese accent styling */
.japanese-accent {
  color: var(--primary-red);
  font-family: var(--font-japanese);
  font-size: 1.2em;
  margin-right: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
  background-color: var(--primary-red);
  color: var(--white);
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  background-color: var(--white);
  color: var(--text-dark);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.lang-btn.active,
.lang-btn:hover {
  background-color: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}


.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
}

/* Desktop Navigation - ensure it's visible */
.nav-menu {
  display: block;
}

.mobile-menu-toggle {
  display: none;
}

/* Footer Styles */
.footer {
  background-color: #1A3A5F;
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}


.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 30px;
  height: 30px;
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-red);
}

.footer-description {
  margin-bottom: 1.5rem;
  color: #ffffff;
  opacity: 0.9;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  color: #ffffff;
  opacity: 0.9;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ffffff;
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-red);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #ffffff;
  opacity: 0.8;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: #ffffff;
  opacity: 0.8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary-red);
  opacity: 1;
}

/* Section Styles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-red);
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form input,
.form select,
.form textarea {
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary-red);
}

/* Japanese Design Elements */
.japanese-pattern {
  background-image: radial-gradient(circle at 25% 25%, #c8102e 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, #ffd700 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
}

.wave-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8102e' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm0 0c0 11.046 8.954 20 20 20s20-8.954 20-20-8.954-20-20-20-20 8.954-20 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.sakura-accent::before {
  content: "🌸";
  margin-right: 0.5rem;
  font-size: 1.2em;
}

/* Improved Mobile Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Header Mobile Fixes */
  .header {
    padding: 0;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .nav-container {
    padding: 0 16px;
  }

  /* Fix mobile menu visibility */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    border-top: 3px solid var(--primary-red);
    z-index: 999;
  }

  .nav-menu.active {
    display: block !important;
    animation: slideDown 0.3s ease-out;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1000;
  }

  /* Hamburger animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .language-switcher {
    margin-left: 1rem;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Typography Mobile */
  h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  h3 {
    font-size: 1.4rem;
  }

  /* Button Mobile */
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-legal {
    justify-content: center;
  }

  /* Section spacing mobile */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  /* Form Mobile */
  .form input,
  .form select,
  .form textarea {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .nav-container {
    padding: 0 12px;
  }

  h1 {
    font-size: 1.9rem;
  }
  h2 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* Add slide down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add top margin to account for fixed header */
main {
  margin-top: 70px;
}

@media (max-width: 768px) {
  main {
    margin-top: 65px;
  }
}
