/* ============================================
   MEGAGARAGE.GK — Cinematic Monochrome
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* i18n visibility */
html[lang="ja"] .lang-en { display: none; }
html[lang="en"] .lang-ja { display: none; }
html:not([lang]) .lang-en { display: none; }

body {
  margin: 0;
  background: #0a0a0a;
  color: #fff;
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; font-weight: 300; opacity: 0.6; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .3s ease, padding .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #fff;
}
.nav__brand span { font-weight: 300; opacity: 0.5; }
.nav__menu {
  display: flex;
  gap: 32px;
}
.nav__menu a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}
.nav__menu a:hover { color: #fff; }
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: #fff;
  transition: width .3s ease;
}
.nav__menu a:hover::after { width: 100%; }

/* Lang toggle */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 32px;
}
.lang-btn {
  background: none;
  border: 0;
  padding: 4px 2px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color .25s;
  position: relative;
}
.lang-btn:hover { color: rgba(255,255,255,0.8); }
.lang-btn.is-active { color: #fff; }
.lang-btn.is-active::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: 0;
  height: 1px;
  background: #fff;
}
.lang-sep {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
}

.nav__toggle {
  display: none;
  width: 32px; height: 32px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 100%; height: 1.5px;
  background: #fff;
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.3) contrast(1.05);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.15); }
  to   { transform: scale(1.0); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.2) 40%, rgba(10,10,10,0.85) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.5) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 1200px;
}
.hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px;
  text-transform: uppercase;
}
.hero__catch {
  font-family: 'Inter', sans-serif;
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
  color: #fff;
}
.hero__sub {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  margin: 40px 0 0;
  line-height: 2;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  position: relative;
  padding: 140px 40px;
}
.section--dark {
  background: #0a0a0a;
  color: #fff;
}
.section--light {
  background: #f5f5f3;
  color: #0a0a0a;
}
.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section__num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 32px;
}
.section--light .section__num { color: rgba(10,10,10,0.5); }

.section__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 60px;
}
.section__title em { display: inline-block; }
.section__title--dark { color: #0a0a0a; }

.section__lead {
  max-width: 720px;
}
.section__lead p {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 2.1;
  letter-spacing: 0.05em;
  margin: 0;
  color: rgba(255,255,255,0.85);
}

/* ============================================
   BUSINESS
   ============================================ */
.biz {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 40px;
}
.biz__item {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid rgba(10,10,10,0.15);
}
.biz__num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(10,10,10,0.5);
  margin-bottom: 32px;
}
.biz__img {
  width: 72px;
  height: 72px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  transition: transform .6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.biz__img svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.biz__item:hover .biz__img {
  transform: translateY(-4px) rotate(-2deg);
}
.biz__head {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.biz__sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(10,10,10,0.5);
  margin-top: 4px;
}
.biz__text {
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  color: rgba(10,10,10,0.7);
}

/* ============================================
   ACHIEVEMENT
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 40px 0 100px;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.stats__item {
  padding: 48px 32px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.stats__num small {
  font-size: 0.5em;
  font-weight: 300;
  opacity: 0.6;
  margin-left: 4px;
}
.stats__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.achievement__body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}
.achievement__img {
  filter: grayscale(0.5) brightness(0.95);
}
.achievement__text p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 2.1;
  margin: 0;
  color: rgba(255,255,255,0.85);
}
.achievement__text strong {
  font-weight: 700;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
}

/* ============================================
   JDM (FULL IMAGE SECTION)
   ============================================ */
.jdm {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 140px 40px;
  color: #fff;
}
.jdm__bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.4) contrast(1.05);
}
.jdm__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.3) 100%);
}
.jdm__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.jdm__catch {
  font-family: 'Inter', sans-serif;
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 40px;
}
.jdm__lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 2;
  max-width: 600px;
  margin: 0;
  color: rgba(255,255,255,0.9);
}

/* ============================================
   COMPANY
   ============================================ */
.company {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.company__img {
  filter: grayscale(1);
}
.company__list {
  margin: 0;
}
.company__list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(10,10,10,0.12);
}
.company__list > div:first-child { border-top: 1px solid rgba(10,10,10,0.12); }
.company__list dt {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(10,10,10,0.5);
  text-transform: uppercase;
  padding-top: 4px;
}
.company__list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact__info {
  display: flex;
  gap: 60px;
  margin: 40px 0 80px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.contact__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
}
.contact__value {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.contact__value small {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.7;
  margin-left: 8px;
}

/* FORM */
.form { max-width: 720px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form__group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.form__group label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.form__group label i {
  color: rgba(255,255,255,0.9);
  font-style: normal;
  margin-left: 4px;
}
.form__group input:not([type="checkbox"]):not([type="radio"]),
.form__group select,
.form__group textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 0;
  transition: border-color .25s;
  outline: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.form__group textarea {
  resize: vertical;
  min-height: 120px;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-bottom-color: #fff;
}
.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
.form__group select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.5) 50%),
                    linear-gradient(135deg, rgba(255,255,255,0.5) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 10px) center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.form__group select option { background: #0a0a0a; color: #fff; }

.form__checks { display: flex; gap: 24px; padding-top: 4px; flex-wrap: wrap; }
.check {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: rgba(255,255,255,0.85) !important;
  text-transform: none !important;
  margin: 0 !important;
  cursor: pointer;
  user-select: none;
}
.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #fff;
  flex-shrink: 0;
}

.form__submit {
  margin-top: 24px;
  background: #fff;
  color: #0a0a0a;
  border: 0;
  padding: 22px 60px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.15);
}
.form__submit span { position: relative; z-index: 2; }

.form__note {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  margin-top: 24px;
}

.hp { display: none !important; visibility: hidden !important; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #050505;
  padding: 60px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__brand {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.05em;
}
.footer__brand span { font-weight: 300; opacity: 0.5; }
.footer__copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero .reveal { transition-delay: 0.1s; }
.hero .hero__catch.reveal { transition-delay: 0.25s; }
.hero .hero__sub.reveal { transition-delay: 0.4s; }
.hero .hero__scroll.reveal { transition-delay: 0.7s; }

/* Auto-show hero immediately */
.hero .reveal { opacity: 1; transform: translateY(0); animation: heroFade 1.4s ease forwards; }
.hero .hero__eyebrow { animation-delay: 0.2s; opacity: 0; }
.hero .hero__catch  { animation-delay: 0.4s; opacity: 0; }
.hero .hero__sub    { animation-delay: 0.7s; opacity: 0; }
.hero .hero__scroll { animation-delay: 1.1s; opacity: 0; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav__inner { padding: 0 24px; }
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav__menu a { font-size: 14px; }
  body.nav-open .nav__menu { transform: translateX(0); }
  .nav__toggle { display: block; z-index: 110; position: relative; }
  .nav__lang { margin-left: auto; margin-right: 16px; z-index: 110; }

  .section { padding: 100px 24px; }
  .jdm { padding: 100px 24px; }

  .biz {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .stats {
    grid-template-columns: 1fr;
    border: 0;
  }
  .stats__item {
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 32px 0;
  }
  .stats__item:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .achievement__body {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .achievement__img { max-width: 280px; }

  .company {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .company__img { max-width: 240px; }
  .company__list > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .contact__info { gap: 32px; }
  .contact__value { font-size: 22px; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__submit { width: 100%; padding: 22px; }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__sub { font-size: 13px; line-height: 1.9; }
  .section__title { margin-bottom: 40px; }
  .biz__head { font-size: 20px; }
  .stats__num { font-size: 56px; }
}
