/* ============================================
   ADCon Tech Partners — Stylesheet
   Deep Navy · White · Light Grey · Blue Accent
   ============================================ */

:root {
  --navy:       #0f2342;
  --navy-light: #1a3a6b;
  --blue:       #2563eb;
  --blue-light: #3b82f6;
  --blue-pale:  #dbeafe;
  --accent:     #38bdf8;
  --white:      #ffffff;
  --grey-50:    #f8fafc;
  --grey-100:   #f1f5f9;
  --grey-200:   #e2e8f0;
  --grey-400:   #94a3b8;
  --grey-600:   #475569;
  --grey-800:   #1e293b;
  --text:       #0f2342;
  --text-light: #475569;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(15,35,66,0.08);
  --shadow-lg:  0 12px 48px rgba(15,35,66,0.14);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }

/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(15,35,66,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0.75rem 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo-mark {
  background: var(--blue);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.logo-text { color: white; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-toggle {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition);
}
.lang-toggle:hover { background: rgba(255,255,255,0.2); }
.lang-divider { margin: 0 0.2rem; opacity: 0.4; }
.lang-en, .lang-jp { opacity: 0.5; transition: opacity var(--transition); }
.lang-en.active, .lang-jp.active { opacity: 1; }
.nav-cta {
  background: var(--blue);
  color: white;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #080f1f 0%, #0f2342 40%, #1a3a6b 70%, #0f2342 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(37,99,235,0.4);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title-line {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}
.hero-title-line:nth-child(2) { animation-delay: 0.2s; }
.hero-title-line:nth-child(3) { animation-delay: 0.3s; }
.hero-title .accent {
  background: linear-gradient(90deg, var(--blue-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 580px;
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s ease 0.35s both;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.7s ease 0.45s both;
}
.btn-primary {
  background: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeUp 0.7s ease 0.55s both;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 500; margin-top: 0.25rem; }
.hero-stat-div { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.hero-visual {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
}
.skyline-svg { width: 100%; display: block; }

/* ─── INTRO STRIP ────────────────────────────── */
.intro-strip {
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: 2.5rem 0;
}
.intro-text {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--grey-600);
  line-height: 1.8;
  font-weight: 400;
}

/* ─── SECTION COMMON ─────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--blue-pale);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ─── SERVICES CAROUSEL ──────────────────────── */
.services-section { padding: 6rem 0; background: white; overflow: hidden; }
.services-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}
.services-track-wrap::before,
.services-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.services-track-wrap::before { left: 0; background: linear-gradient(90deg, white, transparent); }
.services-track-wrap::after  { right: 0; background: linear-gradient(270deg, white, transparent); }

.services-track {
  display: flex;
  gap: 1.5rem;
  animation: scrollTrack 40s linear infinite;
  width: max-content;
  padding: 0.5rem 1rem;
}
@keyframes scrollTrack {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.service-card {
  flex-shrink: 0;
  width: 280px;
  background: white;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.service-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-img-wrap img { transform: scale(1.07); }
.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15,35,66,0.5));
}
.service-body { padding: 1.25rem 1.5rem 1.5rem; }
.service-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.service-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.service-desc { font-size: 0.83rem; color: var(--text-light); line-height: 1.55; }

/* ─── ABOUT ──────────────────────────────────── */
.about-section {
  padding: 6rem 0;
  background: var(--grey-50);
  border-top: 1px solid var(--grey-200);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text .section-title { text-align: left; margin-bottom: 1rem; }
.about-text .section-tag { display: inline-block; }
.about-text p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tag {
  background: white;
  border: 1.5px solid var(--grey-200);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.stat-card {
  background: white;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.stat-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue); }
.stat-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.stat-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-desc { font-size: 0.8rem; color: var(--text-light); line-height: 1.45; }

/* ─── SALARY SECTION ─────────────────────────── */
.salary-section {
  padding: 6rem 0;
  background: white;
  border-top: 1px solid var(--grey-200);
}
.salary-card {
  max-width: 780px;
  margin: 0 auto;
  background: white;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.salary-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.form-group input,
.form-group select {
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group select:disabled { background: var(--grey-100); color: var(--grey-400); cursor: not-allowed; }
.btn-submit {
  width: 100%;
  margin-top: 1.5rem;
  background: var(--blue);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-submit:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.btn-submit:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

/* Salary Result */
.salary-result { max-width: 680px; margin: 0 auto; }
.result-card {
  background: white;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.5s ease both;
}
.result-badge {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.result-role {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.result-level { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }
.result-range-label {
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.result-range {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.result-unit { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.75rem; }
.result-cta-box {
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
}
.result-cta-box p { font-size: 0.9rem; color: var(--navy); font-weight: 500; line-height: 1.5; }
.result-upload-area {
  border: 2px dashed var(--grey-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
.result-upload-area:hover { border-color: var(--blue); }
.result-upload-area p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem; }
.btn-upload {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-upload:hover { background: var(--blue-light); transform: translateY(-1px); }
.upload-status { margin-top: 0.5rem; font-size: 0.83rem; color: var(--text-light); }
.upload-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.upload-check { font-size: 1.25rem; }
.upload-success p { font-size: 0.875rem; color: #065f46; line-height: 1.5; text-align: left; }
.btn-reset {
  background: none;
  border: 1.5px solid var(--grey-200);
  color: var(--text-light);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color var(--transition), color var(--transition);
}
.btn-reset:hover { border-color: var(--navy); color: var(--navy); }

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-addr { margin-top: 0.5rem; color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.footer-links h4,
.footer-contact h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-links a,
.footer-contact p {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-bottom {
  padding: 1.25rem 0;
}
.footer-bottom p {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ─── TOAST ──────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--navy);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-error { background: #dc2626; }
.toast-success { background: #059669; }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,35,66,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.2rem; padding: 0.75rem 2rem; }
  .hamburger { display: flex; z-index: 1000; }
  .nav-cta { display: none; }

  .hero { padding: 7rem 1.5rem 5rem; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.4rem; }
  .hero-visual { display: none; }

  .salary-form .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }

  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .result-range { font-size: 2.2rem; }
  .salary-card { padding: 1.5rem; }
  .result-card { padding: 1.75rem 1.25rem; }

  .container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-primary { text-align: center; }
  .about-stats { grid-template-columns: 1fr; }
}
