:root {
  --primary: #0052cc;
  --primary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #1a1a1a;
  --muted: #546070;
  --muted-foreground: #5f6f86;
  --card: #f8fbff;
  --border: #d4dce8;
  --radius: 16px;
  --shadow-soft: 0 10px 28px rgba(0, 25, 70, 0.12);
  --shadow-strong: 0 18px 38px rgba(0, 25, 70, 0.18);
  --hero-img: url("assets/NS_FL_2023_JOWETT-163.jpg");
}

body[data-theme="dark"] {
  --primary: #3385ff;
  --primary-foreground: #0a0e27;
  --background: #0a0e27;
  --foreground: #e8eef5;
  --muted: #a0a8b8;
  --muted-foreground: #a0a8b8;
  --card: #1a2847;
  --border: #2d3d5c;
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 18px 38px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

body[data-theme="dark"] .site-nav {
  background: rgba(10, 14, 39, 0.9);
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

body[data-theme="dark"] .site-nav.scrolled {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: var(--shadow-strong);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 38px;
  margin-right: 8px;
}

.brand-wordmark {
  height: 18px;
}

.brand-label {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: var(--muted-foreground);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 82, 204, 0.22);
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero.hero-compact {
  min-height: 60vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
}

.hero-grid {
  position: relative;
  z-index: 1;
  padding: 120px 0 96px;
}

.hero-copy h1 {
  font-family: "Playfair Display", "Noto Sans JP", serif;
  font-size: clamp(42px, 5vw, 68px);
  margin: 0 0 14px;
  color: #fff;
  line-height: 1.1;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-page .section {
  padding: 64px 0 96px;
}

.detail-page .container.narrow {
  max-width: 820px;
}

.detail-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}

.detail-card h3 {
  margin: 6px 0 14px;
}

.detail-card ul {
  padding-left: 20px;
  margin: 0 0 4px;
  display: grid;
  gap: 12px;
}

.cta-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--background);
  line-height: 0;
}

.wave.top {
  top: 0;
  bottom: auto;
}

.wave svg {
  width: 100%;
  height: 90px;
}

.section {
  padding: 96px 0;
}

.about {
  background: var(--background);
}

.about-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}

.about-text h2 {
  font-family: "Playfair Display", "Noto Sans JP", serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 12px;
}

.about-text p {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 16px;
}

.about-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat-number {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 13px;
}

.culture {
  position: relative;
  background: rgba(0, 82, 204, 0.05);
}

.center {
  text-align: center;
}

h2.center {
  font-family: "Playfair Display", "Noto Sans JP", serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 12px;
}

.sub {
  color: var(--muted-foreground);
  margin: 0 0 24px;
  line-height: 1.6;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.value-card {
  padding: 20px;
  text-align: left;
}

.value-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.value-card h3 {
  margin: 0 0 8px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
}

.value-card p {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.culture-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

.culture-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.culture-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.culture-overlay h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", "Noto Sans JP", serif;
  font-size: 28px;
}

.culture-overlay p {
  margin: 0;
  line-height: 1.6;
}

.roles .role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.role-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-thumb {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 0 6px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.voice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.role-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.role-head h3 {
  margin: 0 0 4px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 20px;
}

.meta {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.badge {
  background: rgba(0, 82, 204, 0.12);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.role-desc {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0 0 12px;
}

.role-req {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.benefits {
  background: rgba(0, 82, 204, 0.05);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.benefit-card {
  padding: 16px 18px;
}

.benefit-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.benefit-card h3 {
  margin: 0 0 6px;
}

.benefit-card p {
  margin: 0;
  color: var(--muted-foreground);
}

.contact .narrow {
  max-width: 800px;
}

.contact-card {
  padding: 0;
  border: none;
  box-shadow: none;
}


.contact-photo {
  margin: 0 0 18px;
  box-shadow: var(--shadow-strong);
}

.contact-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
}

.process {
  text-align: center;
  margin-top: 12px;
}

.contact-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--foreground);
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted-foreground);
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.steps.inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.step-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-weight: 600;
  text-align: center;
}

/* Application form */
.form-card {
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 24px;
}

.form-block h2 {
  margin: 0 0 12px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 20px;
}

.fields {
  display: grid;
  gap: 12px;
}

.fields.two-col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--foreground);
  font-weight: 600;
}

.field span {
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  font-family: "Source Sans Pro", "Noto Sans JP", sans-serif;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-size: 15px;
  box-shadow: var(--shadow-soft);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(0, 82, 204, 0.25);
  border-color: var(--primary);
}

.form-actions {
  display: grid;
  gap: 8px;
}

.form-note {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 12px 28px rgba(0, 82, 204, 0.22);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 82, 204, 0.28);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn.outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  color: #fff;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/ocean-horizon.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-wordmark {
  height: 26px;
  margin-bottom: 12px;
}

.footer-text {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid {
    padding: 100px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .culture-hero img {
    height: 320px;
  }
}
