:root {
  --primary-color: #1a1a1a;
  --secondary-color: #cfb53b;
  /* Gold accent */
  --text-color: #333;
  --text-light: #f4f4f4;
  --bg-color: #ffffff;
  --overlay-color: rgba(0, 0, 0, 0.4);
  --font-serif: "Noto Serif JP", serif;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: rgba(26, 26, 26, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 35px !important;
  width: auto !important;
  max-width: 100%;
  border-radius: 4px;
}

.highlight {
  color: var(--secondary-color);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: opacity 0.3s;
}

nav a .en {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--secondary-color);
}

nav a .jp {
  font-size: 0.85rem;
  font-weight: 400;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Contact Button Style */
nav a.btn-contact {
  border: 1px solid var(--secondary-color);
  padding: 8px 25px;
  border-radius: 2px;
  background: rgba(207, 181, 59, 0.1);
  transition: background 0.3s, color 0.3s;
}

nav a.btn-contact::after {
  display: none;
  /* Remove underline for button */
}

nav a.btn-contact:hover {
  background: var(--secondary-color);
  color: #000;
}

nav a.btn-contact .en {
  color: var(--text-light);
  /* Keep text light initially */
}

nav a.btn-contact:hover .en,
nav a.btn-contact:hover .jp {
  color: #000;
  /* Dark text on gold background */
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -1;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  padding: 0 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease forwards 0.5s;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 4rem;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  margin-bottom: 40px;
  font-weight: 300;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  animation: float 2s infinite ease-in-out;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--text-light);
  margin-top: 10px;
}

/* Sections */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-subtitle {
  color: #666;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

/* Link Cards */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.card {
  position: relative;
  height: 400px;
  background-color: #f0f0f0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--text-light);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  transform: translateY(20px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.card:hover .card-desc {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 40px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo img {
  height: 45px;
  width: auto;
  border-radius: 4px;
  /* Optional: Soften edges if it's a boxy jpg */
}

.footer-nav {
  margin-bottom: 40px;
}

.footer-nav a {
  color: #999;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--secondary-color);
}

.copyright {
  font-size: 0.8rem;
  color: #666;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  header {
    padding: 15px 20px;
    /* Tighter padding on mobile */
  }

  .logo img {
    height: 30px !important;
  }

  nav ul {
    display: none;
    /* Hide nav for simple prototype or add humburger later */
  }
}

/* --- Sub Page & Common Element Styles --- */

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 150px 40px 60px;
  /* Top padding for fixed header */
  text-align: center;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--secondary-color);
  letter-spacing: 0.1em;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

/* Breadcrumb */
.breadcrumb {
  background-color: #f4f4f4;
  padding: 15px 40px;
  font-size: 0.85rem;
  color: #666;
}

.breadcrumb a {
  text-decoration: none;
  color: #666;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

/* Company Table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.company-table th,
.company-table td {
  padding: 20px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.company-table th {
  width: 30%;
  background-color: #f9f9f9;
  font-weight: 500;
  color: var(--primary-color);
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.staff-card {
  text-align: center;
  margin-bottom: 20px;
}

.staff-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #f9f9f9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.staff-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.staff-role {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.staff-comment {
  font-size: 0.95rem;
  color: #666;
  text-align: left;
  line-height: 1.8;
}

/* Services List */
.service-item {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-img {
  flex: 1;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
}

.service-text {
  flex: 1;
}

.service-text h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 10px;
}

/* Contact Form */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: inherit;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.btn-submit {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 50px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 768px) {

  .service-item,
  .service-item:nth-child(even) {
    flex-direction: column;
  }

  .page-title {
    font-size: 2rem;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    background: transparent;
    padding-bottom: 5px;
  }
}