@charset "UTF-8";

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #050505;
  --color-bg-alt: #0a0a0a;
  --color-text: #ffffff;
  --color-text-muted: #888888;
  --color-accent: #2e6ff2; /* Cool Blue */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-card-bg: rgba(255, 255, 255, 0.03);
  --color-card-hover: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-en: 'Oswald', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  
  /* Layout */
  --container-width: 1100px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-ja);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

.border-top {
  border-top: 1px solid var(--color-border);
}

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

.pc-only {
  display: block;
}
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

.sp-only {
  display: none;
}
@media (max-width: 768px) {
  .sp-only {
    display: block;
  }
}

.d-ib {
  display: inline-block;
}

/* Section Headers */
.section-header {
  margin-bottom: 60px;
}
.section-header.center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-family: var(--font-en);
  font-size: 4.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.section-title-ja {
  display: block;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-top: 5px;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-bottom var(--transition-normal);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background-color: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 40px;
}

.logo a {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nav {
  display: block;
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-item a {
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: width var(--transition-normal);
}

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

/* Hamburger Menu (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001; /* Above mobile nav */
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: var(--transition-fast);
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 999;
}
.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  text-align: center;
}
.mobile-nav-list li {
  margin: 30px 0;
}
.mobile-nav-list a {
  font-family: var(--font-en);
  font-size: 3.2rem;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 10, 0.4), rgba(5, 5, 5, 0.9)), url('../img/hero_bg_japan_1774858424759.png') center/cover no-repeat;
  z-index: -1;
}

/* Subtle cool abstract shapes or grid can be added to background in the future */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(46, 111, 242, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
}

.hero-content {
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-en);
  font-size: 8rem;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .hero-title { font-size: 5rem; }
  .hero-subtitle { font-size: 1.4rem; }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-text {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background-color: var(--color-border);
  position: relative;
  overflow: hidden;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-text);
  animation: scrollLine 2s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}


/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-text {
  font-size: 2rem;
  line-height: 2;
  font-weight: 300;
}

@media (max-width: 768px) {
  .about-text {
    font-size: 1.6rem;
  }
}

/* Philosophy */
.philosophy {
  background-color: var(--color-bg);
}

.philosophy-list-modern {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.phil-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.phil-item:first-child {
  border-top: 1px solid var(--color-border);
}

.phil-num {
  font-family: var(--font-en);
  font-size: 10rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
  line-height: 1;
  width: 150px;
  flex-shrink: 0;
  transition: color 0.4s ease, -webkit-text-stroke 0.4s ease;
}

.phil-item:hover .phil-num {
  color: rgba(46, 111, 242, 0.1); /* Subtle accent color fill on hover */
  -webkit-text-stroke: 1px var(--color-accent);
}

.phil-content {
  flex-grow: 1;
}

.phil-title {
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.phil-title .highlight {
  color: var(--color-accent);
}

.phil-desc {
  font-size: 1.6rem;
  line-height: 2;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .philosophy-list-modern {
    gap: 0;
  }
  .phil-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 30px 0;
  }
  .phil-num {
    font-size: 6rem;
    width: auto;
  }
  .phil-title {
    font-size: 2rem;
  }
}

.company-info {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 40px;
}

.info-list {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
}

.info-list dt {
  width: 25%;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 500;
}

.info-list dd {
  width: 75%;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .company-info { padding: 30px 20px; }
  .info-list dt, .info-list dd {
    width: 100%;
    padding: 15px 0;
  }
  .info-list dt { border-bottom: none; padding-bottom: 0;}
}

/* ==========================================================================
   Business Section
   ========================================================================== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .business-grid {
    grid-template-columns: 1fr;
  }
}

.business-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: 50px 40px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.business-card.hover-lift:hover {
  transform: translateY(-5px);
  background-color: var(--color-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.business-card--main {
  grid-column: 1 / -1;
}

.business-card .card-img-wrap {
  width: calc(100% + 80px);
  height: 300px; /* Larger height for better visual impact on mobile */
  overflow: hidden;
  margin: -50px -40px 30px -40px;
}

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

@media (min-width: 769px) {
  .business-card--main {
    flex-direction: row;
    align-items: stretch;
    gap: 60px; /* Increased gap for cleaner look */
  }
  .business-card--main .card-img-wrap {
    width: 45% !important; /* Slightly smaller width to allow more space for image */
    height: auto;
    aspect-ratio: 1 / 1; /* Square aspect ratio as a base */
    margin: -50px 0 -50px -40px !important;
    flex-shrink: 0;
  }
  .business-card--main .card-content-wrap {
    width: 55%;
    display: flex;
    flex-direction: column;
  }
}

.card-icon {
  font-family: var(--font-en);
  font-size: 4.8rem;
  font-weight: 300;
  color: var(--color-text-muted);
  opacity: 0.3;
  margin-bottom: 20px;
  line-height: 1;
}

.card-title {
  font-size: 2.2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.card-desc {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  flex-grow: 1;
}

.card-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.card-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}
.card-link-icon:hover {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

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

/* ==========================================================================
   Bottom Sections Enhanced (Recruit, Company, Contact)
   ========================================================================== */
.recruit-teaser-enhanced {
  position: relative;
  background: linear-gradient(rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.95)), url('../img/recruit_japan_1774858515426.png') center/cover fixed;
  padding: 140px 0;
  border-top: none;
  overflow: hidden;
}

.recruit-teaser-enhanced .section-title,
.recruit-teaser-enhanced .section-title-ja,
.recruit-teaser-enhanced .contact-text {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.company.section-padding {
  background-color: var(--color-bg);
}

.company .company-info {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.company .info-list {
  border-top: 1px solid var(--color-border);
}

.company .info-list dt {
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.company .info-list dd {
  color: var(--color-text);
  font-weight: 300;
}

.company .info-list dt, .company .info-list dd {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-enhanced {
  background: linear-gradient(to bottom, var(--color-bg), var(--color-bg-alt));
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.contact-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(46, 111, 242, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.contact-enhanced .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Contact Section & Buttons
   ========================================================================== */
.contact-text {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--color-text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  background-color: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-text);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
  z-index: 0;
}

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

.btn-text {
  position: relative;
  z-index: 1;
  transition: color var(--transition-normal);
}

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

.btn-arrow {
  width: 20px;
  height: 1px;
  background-color: var(--color-text);
  position: relative;
  margin-left: 20px;
  z-index: 1;
  transition: all var(--transition-normal);
}

.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--color-text);
  border-right: 1px solid var(--color-text);
  transform: rotate(45deg);
  transition: border-color var(--transition-normal);
}

.btn:hover .btn-arrow {
  background-color: var(--color-bg);
}
.btn:hover .btn-arrow::after {
  border-color: var(--color-bg);
}


/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-en);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.footer-copy {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

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

.footer-link {
  font-family: var(--font-en);
  font-size: 1.4rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

/* For JS Intersection Observer */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ==========================================================================
   Recruit Page Styles
   ========================================================================== */
.subpage .header {
  background-color: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.subpage .nav-item a.active::after {
  width: 100%;
}

.page-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 10, 0.6), rgba(5, 5, 5, 1)), url('../img/recruit_japan_1774858515426.png') center/cover no-repeat;
  z-index: -1;
}

.message-title {
  font-size: 3.2rem;
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.4;
}

.message-text {
  font-size: 1.8rem;
  line-height: 2;
  color: var(--color-text-muted);
}

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

.req-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.req-table th, .req-table td {
  padding: 25px 30px;
  border-bottom: 1px solid var(--color-border);
}

.req-table tr:first-child th, .req-table tr:first-child td {
  border-top: 1px solid var(--color-border);
}

.req-table th {
  width: 25%;
  font-weight: 500;
  color: var(--color-text-muted);
  vertical-align: top;
  background-color: var(--color-card-bg);
}

.req-table td {
  width: 75%;
  line-height: 1.8;
}

.job-list {
  padding-left: 20px;
  list-style-type: disc;
}
.job-list li {
  margin-bottom: 10px;
}
.job-list li:last-child {
  margin-bottom: 0;
}

.req-table .note {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 5px;
}

.apply-action {
  margin-top: 80px;
}
.apply-action .apply-text {
  margin-bottom: 25px;
  font-size: 1.8rem;
}

@media (max-width: 768px) {
  .page-hero { height: 30vh; }
  .message-title { font-size: 2.4rem; }
  .message-text { font-size: 1.5rem; text-align: left; }
  .req-table th, .req-table td {
    display: block;
    width: 100%;
    padding: 15px 20px;
  }
  .req-table th { border-bottom: none; padding-bottom: 5px; background-color: transparent; }
  .req-table td { padding-top: 0; }
}
