/* ==========================================================================
   Marusou Co., Ltd. - Modern Corporate Website
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #141414;
  --color-bg-card: #1a1a1a;
  --color-text: #f5f5f5;
  --color-text-muted: #999999;
  --color-text-dim: #666666;
  --color-accent: #c9a961;
  --color-accent-hover: #d4b876;
  --color-border: #2a2a2a;
  --color-line: #333333;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-en: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1280px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-jp);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 15px;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* Typography */
.en {
  font-family: var(--font-en);
  letter-spacing: 0.08em;
}

.section-label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  margin-bottom: 24px;
  display: inline-block;
  position: relative;
  padding-left: 40px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.section-title-en {
  font-family: var(--font-en);
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 40px;
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  padding: 16px 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 101;
}

.logo-mark {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1;
}

.logo-mark .accent {
  color: var(--color-accent);
}

.logo-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Menu Toggle */
.menu-toggle {
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text);
  padding: 8px 12px;
}

.menu-toggle-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.menu-toggle-icon {
  width: 28px;
  height: 16px;
  position: relative;
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition);
}

.menu-toggle-icon span:nth-child(1) { top: 4px; }
.menu-toggle-icon span:nth-child(2) { top: 11px; }

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Overlay Menu */
.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-bg);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-menu {
  text-align: center;
}

.nav-menu li {
  margin-bottom: 20px;
  overflow: hidden;
}

.nav-menu a {
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 4px 20px;
  position: relative;
  color: var(--color-text);
}

.nav-menu a .jp-label {
  display: block;
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-weight: 400;
}

.nav-menu a:hover {
  color: var(--color-accent);
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.6) 100%);
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(56px, 12vw, 180px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.2s; }
.hero-title span:nth-child(2) { animation-delay: 0.4s; color: var(--color-accent); }
.hero-title span:nth-child(3) { animation-delay: 0.6s; }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--color-text-muted);
  margin-top: 40px;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 60px;
  background: var(--color-text-muted);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Page Hero (Non-top pages) */
.page-hero {
  height: 60vh;
  min-height: 440px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.5) 100%);
  z-index: 1;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.page-hero-title {
  font-family: var(--font-en);
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.page-hero-title-jp {
  display: block;
  font-family: var(--font-jp);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--color-accent);
  margin-top: 20px;
  font-weight: 500;
}

/* Breadcrumb */
.breadcrumb {
  padding: 24px 40px;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.breadcrumb .container {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .separator {
  color: var(--color-text-dim);
}

/* Business Section */
.business-list {
  display: grid;
  gap: 80px;
}

.business-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.business-item:nth-child(even) {
  direction: rtl;
}

.business-item:nth-child(even) > * {
  direction: ltr;
}

.business-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-card);
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.business-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: block;
}

.business-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.business-desc {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  padding: 18px 32px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  background: transparent;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn:hover {
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.btn-arrow {
  transition: transform 0.4s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(6px);
}

/* About Section */
.about {
  background: var(--color-bg-alt);
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 2;
}

.about-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Table (Company Profile) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table th,
.info-table td {
  padding: 24px 20px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.info-table th {
  width: 220px;
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  padding-top: 28px;
}

.info-table td {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.9;
}

.info-table td ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.info-table td ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--color-accent);
}

/* News */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.news-card {
  background: var(--color-bg-card);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.news-date {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.news-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

/* Recruit CTA */
.recruit-cta {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

.recruit-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.recruit-cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85), rgba(10,10,10,0.65));
  z-index: 1;
}

.recruit-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recruit-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.recruit-cta-title {
  font-family: var(--font-en);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
}

.recruit-cta-sub {
  font-size: clamp(20px, 2.5vw, 28px);
  margin-bottom: 20px;
}

.recruit-cta-desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Contact Form */
.form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.form-label .required {
  color: #e74c3c;
  margin-left: 8px;
}

.form-label .jp {
  font-family: var(--font-jp);
  color: var(--color-text-muted);
  margin-left: 12px;
  letter-spacing: 0.1em;
}

.form-input,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding: 12px 0;
  color: var(--color-text);
  font-family: var(--font-jp);
  font-size: 15px;
  transition: var(--transition);
}

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

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

/* Feature cards for services */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  padding: 40px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.feature-num {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.feature-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Job listing */
.job-item {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.job-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.job-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.job-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.job-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.job-detail {
  padding: 20px;
  background: var(--color-bg-card);
  border-left: 2px solid var(--color-accent);
}

.job-detail-label {
  font-family: var(--font-en);
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.job-detail-value {
  font-size: 15px;
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Policy content */
.policy-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-accent);
  padding-left: 16px;
  border-left: 2px solid var(--color-accent);
}

.policy-content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 2;
}

.policy-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.policy-content ul li {
  list-style: disc;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background: var(--color-bg-alt);
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo-mark {
  font-size: 32px;
  margin-bottom: 20px;
}

.footer-info {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 2;
  margin-top: 20px;
}

.footer-heading {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 24px;
}

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

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  .container {
    padding: 0 24px;
  }
  .header {
    padding: 20px 24px;
  }
  .business-item,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .business-item:nth-child(even) {
    direction: ltr;
  }
  .news-list {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .info-table th {
    width: 140px;
    font-size: 11px;
  }
  .info-table th,
  .info-table td {
    padding: 20px 12px;
    font-size: 14px;
  }
  .hero-content {
    padding: 0 24px;
  }
  .scroll-indicator {
    left: 24px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .section {
    padding: 60px 0;
  }
  .hero {
    min-height: 600px;
  }
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    padding: 16px 0 8px;
    border-bottom: none;
  }
  .info-table td {
    padding: 0 0 20px;
  }
  .info-table tr {
    padding: 8px 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .breadcrumb {
    padding: 16px 24px;
  }
}
