/* Yida Corporate Styles */
:root {
  /* Color Palette */
  --c-primary: #0b2b5c; /* Deep Corporate Blue */
  --c-secondary: #c8a97e; /* Soft Gold */
  --c-text: #222222;
  --c-text-light: #555555;
  --c-bg: #ffffff;
  --c-bg-alt: #f7f8f9;
  
  /* Typography */
  --font-serif: "Shippori Mincho", "Noto Serif JP", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-sans: "Noto Sans JP", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-en: "Montserrat", sans-serif;

  /* Spacing */
  --section-padding: 100px 5%;
  --header-height: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
}

.en {
  font-family: var(--font-en);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .en {
  display: block;
  font-size: 1.2rem;
  color: var(--c-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--c-primary);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.header-logo img {
  height: 40px;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

.header.scrolled .header-logo img {
  filter: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s;
  position: relative;
  text-decoration: none;
}

.nav-links li a .jp {
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.nav-links li a .en {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.header.scrolled .nav-links li a,
.header.scrolled .nav-links li a .jp,
.header.scrolled .nav-links li a .en {
  color: var(--c-primary);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--c-secondary);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-links li.has-dropdown {
  position: relative;
}

.nav-links .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--c-bg);
  min-width: 160px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  list-style: none;
}

.nav-links li.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-links .dropdown li {
  width: 100%;
}

.nav-links .dropdown li a {
  display: block;
  text-align: center;
  padding: 10px 20px;
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.header.scrolled .nav-links .dropdown li a {
  color: var(--c-text);
}

.nav-links .dropdown li a::after {
  display: none;
}

.nav-links .dropdown li a:hover {
  background-color: var(--c-bg-alt);
  color: var(--c-primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 20px;
}

.lang-switcher a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: #fff;
  text-shadow: 0 0 1px rgba(255,255,255,0.5);
}

.header.scrolled .lang-switcher {
  color: rgba(11, 43, 92, 0.6);
  border-left-color: rgba(11, 43, 92, 0.2);
}

.header.scrolled .lang-switcher a:hover,
.header.scrolled .lang-switcher a.active {
  color: var(--c-primary);
  text-shadow: none;
}

.lang-switcher .divider {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1001; /* Above mobile nav */
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.header.scrolled .menu-toggle span,
body.menu-open .menu-toggle span {
  background-color: var(--c-primary);
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--c-primary);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.7);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease-in-out, transform 10s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10%;
  color: #fff;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.4;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 0.5s forwards ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.8s forwards ease-out;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
}

.scroll-down::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: #fff;
  margin-top: 10px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Sections Common */
section {
  padding: var(--section-padding);
}

/* Philosophy Section */
.philosophy {
  background: var(--c-bg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-text {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--c-text-light);
  margin-bottom: 30px;
}

.philosophy-lead {
  font-size: 1.8rem;
  color: var(--c-primary);
  margin-bottom: 20px;
}

/* Business Section */
.business {
  background: var(--c-bg-alt);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.business-card {
  background: var(--c-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-img-wrapper {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.business-card:hover .card-img {
  transform: scale(1.05);
}

.card-content {
  padding: 30px;
}

.card-title {
  font-size: 1.5rem;
  color: var(--c-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-title::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--c-secondary);
}

.card-text {
  color: var(--c-text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 0.8rem;
  padding: 5px 12px;
  background: var(--c-bg-alt);
  color: var(--c-primary);
  border-radius: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 20px;
  text-align: center;
}

.btn-primary {
  background-color: var(--c-primary);
  color: #fff;
  border: 1px solid var(--c-primary);
}

.btn-primary:hover {
  background-color: #fff;
  color: var(--c-primary);
}

/* Company Section */
.company {
  background: var(--c-bg);
}

.company-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table th, 
.company-table td {
  padding: 20px 15px;
  border-bottom: 1px solid #e0e0e0;
}

.company-table th {
  width: 30%;
  text-align: left;
  color: var(--c-primary);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--c-primary);
  color: #fff;
  padding: 60px 5% 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 40px;
}

.footer-info {
  flex: 1;
  min-width: 250px;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--c-secondary);
}

.footer-info p {
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-links-group {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--c-secondary);
  font-family: var(--font-serif);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--c-secondary);
}

.copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Utilities */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Accordion for Tour Details */
.tour-accordion {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.accordion-btn {
  background: none;
  border: none;
  color: var(--c-primary);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.accordion-btn:hover {
  opacity: 0.8;
}

.accordion-btn::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.accordion-btn.open::after {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
  opacity: 0;
  margin-top: 0;
}

.accordion-content.open {
  opacity: 1;
  margin-top: 15px;
  /* Max-height is managed via JS for smooth sliding */
}

.itinerary-day {
  margin-bottom: 20px;
  border-left: 2px solid var(--c-secondary);
  padding-left: 15px;
}

.itinerary-day:last-child {
  margin-bottom: 0;
}

.day-title {
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 5px;
  font-size: 1rem;
}

.day-desc {
  font-size: 0.9rem;
  color: var(--c-text-light);
  line-height: 1.5;
}

.day-meals {
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .business-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: all 0.4s ease;
    z-index: 1000;
  }

  body.menu-open nav {
    left: 0;
  }

  body.menu-open .header {
    background: transparent;
    box-shadow: none;
  }
  
  body.menu-open .header-logo img {
    filter: none;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .nav-links li a,
  .nav-links li a .jp,
  .nav-links li a .en {
    color: var(--c-primary);
  }

  /* Mobile Dropdown Overrides */
  .nav-links .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-top: 15px;
    padding-bottom: 0;
    min-width: auto;
  }
  
  .nav-links li.has-dropdown:hover .dropdown {
    transform: none;
  }

  .nav-links .dropdown li a {
    padding: 8px 0;
  }

  .lang-switcher {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    color: var(--c-primary);
    border-top: 1px solid rgba(11, 43, 92, 0.2);
    padding-top: 20px;
    width: 80%;
    justify-content: center;
  }
  
  .lang-switcher a {
    color: var(--c-primary);
  }
  
  .lang-switcher a:hover,
  .lang-switcher a.active {
    color: var(--c-secondary);
    text-shadow: none;
  }

  .company-table th, 
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 5px;
    border-bottom: none;
  }

  .company-table td {
    padding-top: 0;
    margin-bottom: 10px;
  }
  
  .footer-links-group {
    gap: 30px;
    flex-direction: column;
  }
}
