/* ============================================
   WDC採用サイト — Design Tokens & Global Styles
   Palette C: ビビッド＆エナジー
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary */
  --color-primary: #00CEC9;
  --color-primary-dark: #00A8A3;
  --color-primary-light: #DFFFFE;
  --color-logo: #34B9C4;

  /* Accent / CTA */
  --color-accent: #FF7675;
  --color-accent-dark: #E05555;
  --color-accent-light: #FFF5F5;

  /* Highlight */
  --color-yellow: #FFEAA7;
  --color-yellow-light: #FFF8E1;

  /* Text */
  --color-text: #2D3436;
  --color-text-secondary: #636E72;
  --color-text-muted: #B2BEC3;

  /* Backgrounds */
  --color-bg: #FFFFFF;
  --color-bg-alt: #DFFFFE;
  --color-bg-dark: #2D3436;

  /* Border */
  --color-border: #DFE6E9;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Radius */
  --radius-card: 12px;
  --radius-btn: 28px;
  --radius-lg: 16px;

  /* Layout */
  --max-width: 1200px;
  --section-padding: 80px 0;
  --section-padding-sp: 48px 0;

  /* Font */
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', 'Poppins', sans-serif;
}

/* --- Utility --- */
.sp-only { display: none; }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.4;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: var(--section-padding);
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
}
.section--accent {
  background: var(--color-accent-light);
}
.section--yellow {
  background: var(--color-yellow-light);
}

/* --- Section Heading --- */
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading__en {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.section--gradient .section-heading__en {
  color: rgba(255,255,255,0.7);
}
.section-heading__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}
.section--gradient .section-heading__title {
  color: #fff;
}
.section-heading__sub {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}
.section-heading__line {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-primary);
  margin: 16px auto 0;
}
.section--gradient .section-heading__line {
  background: rgba(255,255,255,0.4);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn--primary:hover {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.02);
}
.btn--secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.btn--large {
  font-size: 17px;
  padding: 16px 48px;
}

/* --- Card --- */
.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card--bordered {
  border-top: 4px solid var(--color-primary);
}
.card__body {
  padding: 24px;
}
.card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}
.card__text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.header--scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}
.header__logo img {
  height: 40px;
  width: auto;
}
.header__logo img.logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.header__logo:hover img.logo-hover {
  opacity: 1;
}
.header__logo:hover img.logo-default {
  opacity: 0;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.header__link {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0 12px;
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
}
.header__link:last-of-type {
  border-right: none;
  padding-right: 0;
}
.header--scrolled .header__link {
  color: var(--color-text);
}
.header__link:hover {
  color: var(--color-primary);
}
.header__link--active {
  color: var(--color-primary);
}
.header__cta {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.header__cta:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.03);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}
.header--scrolled .header__hamburger span {
  background: var(--color-text);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  padding: 80px 32px 32px;
  transition: right 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}
.mobile-menu--open {
  right: 0;
}
.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}
.mobile-menu__link {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}
.mobile-menu__link:hover {
  color: var(--color-primary);
}
.mobile-menu__cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border-radius: var(--radius-btn);
  padding: 14px 0;
  text-decoration: none;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: #fff;
  padding: 60px 0 30px;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
.footer__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer__sub {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 12px;
}
.footer__info {
  font-size: 13px;
  opacity: 0.6;
  line-height: 1.8;
}
.footer__heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer__link {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  line-height: 2.2;
}
.footer__link:hover {
  color: var(--color-primary);
}
.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  opacity: 0.4;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero--sub {
  min-height: 45vh;
}
.hero--minimal {
  min-height: 30vh;
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,206,201,0.7), rgba(0,168,163,0.6));
  z-index: -1;
}
.hero__content {
  max-width: 800px;
  padding: 0 24px;
  padding-top: 80px;
  padding-bottom: 40px;
}
.hero__breadcrumb {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 16px;
}
.hero__breadcrumb a { color: inherit; }
.hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: inherit;
}
.hero__subtitle {
  font-size: 16px;
  margin-top: 16px;
  opacity: 0.9;
  font-weight: 400;
}
.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.6;
  animation: bounce 2s infinite;
}
.hero__scroll::after {
  content: '↓';
  display: block;
  text-align: center;
  margin-top: 4px;
  font-size: 16px;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Timeline --- */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-primary);
}
.timeline__item {
  text-align: center;
  flex: 1;
  position: relative;
}
.timeline__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}
.timeline__dot--accent {
  background: var(--color-accent);
}
.timeline__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.timeline__desc {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* --- Stepper (Recruitment Process) --- */
.stepper {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}
.stepper__step {
  flex: 1;
  text-align: center;
  position: relative;
}
.stepper__step::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  border-top: 2px dashed var(--color-primary);
}
.stepper__step:last-child::after { display: none; }
.stepper__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
}
.stepper__step:last-child .stepper__num {
  background: var(--color-accent);
}
.stepper__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.stepper__desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* --- Table --- */
.table-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}
.table-card table {
  width: 100%;
  border-collapse: collapse;
}
.table-card th {
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
}
.table-card td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}
.table-card tr:nth-child(even) td {
  background: #F8FFFE;
}
.table-card__label {
  font-weight: 700;
  color: var(--color-text);
  width: 30%;
}

/* --- Stats (Numbers) --- */
.stats {
  display: flex;
  justify-content: center;
  gap: 0;
}
.stats__item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stats__item:last-child { border-right: none; }
.stats__number {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}
.stats__unit {
  font-size: 18px;
  font-weight: 400;
  margin-left: 2px;
}
.stats__label {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.9;
}
.stats__sub {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1023px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .sp-only { display: inline; }
  .section { padding: var(--section-padding-sp); }
  .hero__title { font-size: 24px; }
  .hero__subtitle { font-size: 18px !important; white-space: normal; }
  .hero__mission { font-size: 22px !important; white-space: nowrap; }
  .section-heading__title { font-size: 20px !important; white-space: nowrap !important; }

  .header__nav { display: none; }
  .header__hamburger { display: flex; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .stats { flex-direction: column; gap: 24px; }
  .stats__item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 16px 0; }
  .stats__item:last-child { border-bottom: none; }
  .stats__number { font-size: 48px; }

  .stepper { flex-direction: column; gap: 24px; align-items: flex-start; padding-left: 32px; }
  .stepper__step { text-align: left; display: flex; align-items: flex-start; gap: 12px; }
  .stepper__step::after { display: none; }
  .stepper__num { margin: 0; flex-shrink: 0; }

  .timeline { flex-direction: column; gap: 24px; padding-left: 32px; }
  .timeline::before { top: 0; bottom: 0; left: 15px; width: 2px; height: auto; right: auto; }
  .timeline__item { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .timeline__dot { margin: 0; flex-shrink: 0; }

  .footer__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }

  .table-card td, .table-card th { padding: 10px 12px; font-size: 13px; }
}
