/* =========================================================
   DEVOTE JAPAN Inc. — Corporate Site
   Shared stylesheet
   ========================================================= */

:root {
  --navy-900: #070d1e;
  --navy-800: #0b1530;
  --navy-700: #101f42;
  --navy-600: #182a52;
  --white: #ffffff;
  --off-white: #f4f5f7;
  --paper: #fafafb;
  --text-dark: #1c1f26;
  --text-muted: #6b7280;
  --text-faint: #9aa1ad;
  --line: rgba(255, 255, 255, 0.28);
  --line-dark: rgba(20, 25, 40, 0.12);
  --max-width: 1180px;
  --section-pad: clamp(60px, 8vw, 110px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
}

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

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

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 500;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-solid {
  background: var(--navy-900);
  padding: 16px 0;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0.18em;
  font-weight: 500;
  white-space: nowrap;
}

.logo img {
  height: 30px;
  width: 30px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 38px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}

.main-nav a:hover { opacity: 0.7; }

.main-nav a.is-active { border-bottom-color: var(--white); }

.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--white);
  transition: all 0.3s ease;
}

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

/* ---------- Hero (page banner, used on subpages) ---------- */
.page-banner {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--sky-top, #4fa3e8) 0%, var(--sky-bottom, #cfeaf7) 100%);
  background-size: cover;
  background-position: center 78%;
  margin-top: 0;
  transition: background 10s linear;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 30, 0.55) 0%, rgba(7, 13, 30, 0.75) 100%);
}

.page-banner .wrapper { position: relative; z-index: 2; }

.page-banner h1 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.08em;
  font-weight: 500;
  margin: 0 0 10px;
}

.breadcrumb {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.breadcrumb a { color: var(--white); opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }

/* ---------- Home Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/hero-home.jpg");
  background-size: cover;
  background-position: center 72%;
  animation: heroDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 11, 26, 0.35) 0%, rgba(6, 11, 26, 0.15) 35%, rgba(6, 11, 26, 0.55) 100%);
}

@keyframes heroDrift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(0, -1.5%, 0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 110px;
}

.hero-title,
.hero-text,
.hero-content .btn {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.9s cubic-bezier(.22,.61,.36,1) forwards;
}

.hero-title { animation-delay: 0.15s; }
.hero-text { animation-delay: 0.4s; }
.hero-content .btn { animation-delay: 0.65s; }

.scroll-cue {
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: 0.9s;
}

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

.hero-title {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0 0 28px;
}

.hero-text {
  max-width: 480px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.6); }

.btn svg { transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn--dark {
  border-color: rgba(20, 25, 40, 0.25);
  color: var(--text-dark);
}

.btn--dark:hover { background: rgba(20, 25, 40, 0.05); }

.scroll-cue {
  position: absolute;
  right: 36px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
  color: var(--white);
}

.scroll-cue span {
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: 0.2em;
}

.scroll-cue .line {
  width: 1px;
  height: 70px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--white);
  animation: scrollDown 2.2s infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}

/* ---------- Generic Section ---------- */
.section {
  padding: var(--section-pad) 0;
}

.section--paper { background: var(--paper); }
.section--off { background: var(--off-white); }
.section--navy { background: var(--navy-800); color: var(--white); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}

.section-label {
  font-size: clamp(24px, 2.8vw, 30px);
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0 18px;
}

.section--navy .section-label { color: var(--white); }

.section-title {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 0 22px;
}

.section--navy .section-desc { color: rgba(255, 255, 255, 0.72); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
}

.link-arrow svg { width: 16px; height: 12px; transition: transform 0.25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Business grid ---------- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.business-card { text-align: left; }

.business-card .thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 22px;
}

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

.business-card:hover .thumb img { transform: scale(1.06); }

.business-card .name-en {
  font-size: 15px;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin: 0 0 6px;
}

.business-card .name-jp {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.business-card--soon { cursor: default; }
.business-card--soon:hover .thumb img { transform: none; }

.thumb--soon {
  aspect-ratio: 1 / 1;
  margin-bottom: 22px;
  background: var(--off-white);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb--soon span {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}
.business-card--soon .name-en,
.business-card--soon .name-jp { color: var(--text-faint); }

.notice-box {
  border: 1px solid var(--line-dark);
  background: var(--off-white);
  padding: 56px 32px;
  text-align: center;
}
.notice-box .notice-en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.notice-box p { font-size: 14px; color: var(--text-muted); margin: 0; letter-spacing: 0.03em; }

/* ---------- News list ---------- */
.news-list { border-top: 1px solid var(--line-dark); }

.news-item {
  display: grid;
  grid-template-columns: 110px 90px 1fr 20px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: opacity 0.2s ease;
}

.news-item:hover { opacity: 0.6; }

.news-date {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.news-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--line-dark);
  padding: 5px 10px;
  text-align: center;
  white-space: nowrap;
}

.news-title { font-size: 14px; }

.news-item svg { width: 16px; height: 12px; }

/* ---------- Mission split ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mission-jp {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.9;
  margin: 18px 0 0;
}

.mission-body p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
}

/* ---------- Recruit split ---------- */
.recruit-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.recruit-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }

.recruit-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 18px 0 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--white);
  padding: 70px 0 30px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 40px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav a:hover { color: var(--white); }

.footer-social { display: flex; gap: 14px; }

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switch a {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.footer-social svg { width: 15px; height: 15px; fill: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Inner page content blocks ---------- */
.content-block { margin-bottom: 64px; }
.content-block h2 {
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: 0.04em;
  font-weight: 500;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.content-block p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  padding: 30px 26px;
}

.stat-card .num {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--line-dark); }
.info-table th, .info-table td {
  text-align: left;
  padding: 18px 16px;
  font-size: 13px;
  vertical-align: top;
}
.info-table th {
  width: 200px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  font-weight: 500;
}
.insta-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 8px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.insta-link:hover { color: var(--text-dark); }
.insta-link svg { width: 16px; height: 16px; fill: currentColor; }

.job-card {
  border: 1px solid var(--line-dark);
  padding: 30px;
  margin-bottom: 20px;
}
.job-card h3 { font-size: 16px; letter-spacing: 0.04em; margin: 0 0 10px; }
.job-card .meta { font-size: 12px; color: var(--text-faint); margin-bottom: 14px; letter-spacing: 0.04em; }
.job-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

.contact-form { display: grid; gap: 22px; max-width: 640px; }
.form-row label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
}
.form-row input:focus,
.form-row textarea:focus { outline: 1px solid var(--navy-700); background: var(--white); }

.required {
  font-size: 10px;
  color: var(--white);
  background: var(--navy-700);
  padding: 2px 7px;
  margin-left: 8px;
  letter-spacing: 0.04em;
}

.submit-btn {
  justify-self: start;
  background: var(--navy-800);
  color: var(--white);
  border: none;
  padding: 16px 36px;
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.submit-btn:hover { background: var(--navy-700); }

/* ---------- Scroll reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1), transform 0.6s cubic-bezier(.22,.61,.36,1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid, .recruit-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .news-item { grid-template-columns: 80px 80px 1fr 16px; gap: 14px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  body.nav-open .main-nav {
    display: block;
    position: fixed;
    inset: 0;
    background: var(--navy-900);
    padding: 110px 32px 40px;
  }
  body.nav-open .main-nav ul {
    flex-direction: column;
    gap: 26px;
  }
  body.nav-open .main-nav a { font-size: 14px; }

  .hero-content { padding-top: 90px; }
  .hero-text { max-width: 100%; }
  .business-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .news-item svg { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .info-table th { width: 120px; }
  .page-banner { height: 220px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-title,
  .hero-text,
  .hero-content .btn,
  .scroll-cue {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal,
  .reveal-stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .scroll-cue .line::after { animation: none; }
}
