/**
 * assets/design-tokens.css
 * ナースロビー — Web統一デザイントークン（全ページ共通）
 *
 * 基準: lp/job-seeker/index.html（TOP スマホ版）
 * 対象: blog/ / lp/job-seeker/area/ / lp/job-seeker/guide/ / terms/privacy 等全下層ページ
 *
 * 命名規則: ルート変数のみでフラット管理（LP既存の命名と互換）
 * ※ SNS画像用は docs/design-tokens.css（--nr-* prefix）を使用。本ファイルとは別物。
 *
 * 最終更新: 2026-04-20
 */

/* ==========================================================================
   1. COLOR PALETTE — LP準拠（#1a9de0ブルー＋LINE緑系）
   ========================================================================== */

:root {
  /* Primary（ブランド主色：明るいティールブルー） */
  --primary:          #1a9de0;
  --primary-dark:     #1080c0;
  --primary-deeper:   #0a6aa0;
  --primary-light:    #e6f4fb;
  --primary-glass:    rgba(26, 157, 224, 0.08);

  /* LINE CTA（行動喚起） */
  --line-green:       #06C755;
  --line-dark:        #05b34c;
  --line-glow:        rgba(6, 199, 85, 0.30);
  --line-glow-strong: rgba(6, 199, 85, 0.45);

  /* Accent（サブカラー：ミント系グリーン） */
  --accent:           #50c8a0;
  --accent-light:     #e8f8f2;
  --accent-glow:      rgba(80, 200, 160, 0.30);

  /* Text */
  --text-primary:     #2a2a3e;
  --text-secondary:   #4a4a5e;
  --text-muted:       #7a7a8e;
  --text-light:       #9a9aae;
  --text-inverse:     #ffffff;
  --text-heading:     #2a2a3e; /* 旧互換 */

  /* Background */
  --bg-base:          #ffffff;
  --bg-white:         #ffffff;
  --bg-tint:          #f0f8fc;
  --bg-soft:          #fafcfd;
  --bg-dark:          #1a1a2e;

  /* Border */
  --border-base:      #e4eaf0;
  --border-light:     #eef2f6;

  /* Status */
  --warn:             #e8756d;
  --warn-light:       #fff0ee;
}


/* ==========================================================================
   2. TYPOGRAPHY — フォント統一
   ========================================================================== */

:root {
  --font-base:   "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-mono:   "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Size（clamp使用でレスポンシブ、スマホ基準） */
  --fs-hero:    clamp(1.6rem, 5vw, 2.4rem);   /* h1 ヒーロー */
  --fs-h1:      clamp(1.4rem, 4vw, 1.9rem);
  --fs-h2:      clamp(1.2rem, 3.5vw, 1.5rem);
  --fs-h3:      clamp(1.05rem, 3vw, 1.2rem);
  --fs-lg:      1.125rem;
  --fs-md:      1rem;      /* 本文標準 */
  --fs-sm:      0.9rem;
  --fs-xs:      0.8rem;

  /* Weight */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold: 600;
  --fw-bold:    700;
  --fw-heavy:   800;

  /* Line height */
  --lh-tight:   1.35;
  --lh-snug:    1.55;
  --lh-normal:  1.75;
  --lh-relaxed: 1.85;

  /* Letter spacing */
  --ls-tight:   -0.01em;
  --ls-normal:  0;
  --ls-wide:    0.02em;
}


/* ==========================================================================
   3. SPACING・LAYOUT
   ========================================================================== */

:root {
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Section（スマホ基準） */
  --section-pad-y: 64px;
  --section-pad-x: 20px;

  /* Container */
  --container-max: 880px;
  --content-max:   720px;

  /* Radius */
  --radius-xs:   6px;
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-xs:   0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.05), 0 8px 32px rgba(0, 0, 0, 0.04);
  --shadow-lg:   0 8px 24px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(26, 157, 224, 0.08);

  /* Easing */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Duration */
  --dur-fast:   150ms;
  --dur-base:   250ms;
  --dur-slow:   400ms;
}


/* ==========================================================================
   4. BASE ELEMENTS — 全ページ共通ベース
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-smooth);
}

a:hover {
  color: var(--primary-dark);
}


/* ==========================================================================
   5. TYPOGRAPHY CLASSES — 見出し・本文の統一スタイル
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
}

h1 { font-size: var(--fs-h1); font-weight: var(--fw-heavy); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0 0 var(--space-md);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 var(--space-md);
  padding-left: var(--space-lg);
  line-height: var(--lh-normal);
}

li { margin-bottom: var(--space-xs); }

hr {
  border: none;
  border-top: 1px solid var(--border-base);
  margin: var(--space-xl) 0;
}


/* ==========================================================================
   6. LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.content-narrow {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad-y) var(--section-pad-x);
}


/* ==========================================================================
   7. BUTTONS — LP準拠のCTAスタイル
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-base);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-smooth);
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-inverse);
}

.btn-line {
  background: linear-gradient(135deg, var(--line-green) 0%, var(--line-dark) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px var(--line-glow), 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 16px 36px;
  min-height: 52px;
  font-size: var(--fs-md);
}

.btn-line:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px var(--line-glow-strong), 0 2px 8px rgba(0, 0, 0, 0.10);
  color: var(--text-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}


/* ==========================================================================
   8. CARDS & PANELS
   ========================================================================== */

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.panel-tint {
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.panel-accent {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
}


/* ==========================================================================
   9. TABLES
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-lg);
  font-size: var(--fs-sm);
}

th, td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-base);
  text-align: left;
  line-height: var(--lh-snug);
}

th {
  background: var(--bg-tint);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

tbody tr:hover {
  background: var(--bg-soft);
}


/* ==========================================================================
   10. HEADER & FOOTER — LP(TOP)完全準拠（全ページ共通）
   ========================================================================== */

/* ---- Site Header（LP index-deferred.css より移植） ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(230, 245, 250, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(26, 157, 224, 0.10);
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.3s var(--ease-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo img {
  height: 80px;
  width: auto;
}

.header-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s var(--ease-smooth);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}

.header-nav a:hover { color: var(--primary); }
.header-nav a:hover::after { width: 100%; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  padding: 4px 8px;
}

/* ---- Mobile Navigation ---- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
}

.mobile-nav.open { display: block; }

.mobile-nav-inner {
  background: #fff;
  width: 260px;
  height: 100%;
  padding: 24px 20px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

.mobile-nav-inner a {
  display: block;
  padding: 14px 0;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  float: right;
  color: #666;
}

/* ---- Site Footer（LP index-deferred.css より移植） ---- */
.site-footer {
  background: var(--primary-light);
  color: var(--text-secondary);
  border-top: 1px solid rgba(26, 157, 224, 0.12);
  text-align: center;
  padding: 56px 24px 40px;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.footer-permit {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

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

.footer-editorial {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.footer-editorial a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.73rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-top: 6px;
}

/* ---- Mobile Sticky CTA ---- */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(26, 157, 224, 0.10);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  display: none;
}

.mobile-sticky-cta.visible { transform: translateY(0); }

.mobile-sticky-cta a {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #06C755 0%, #05b34c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px var(--line-glow);
}

/* ---- Header Responsive ---- */
@media (max-width: 767px) {
  .header-nav { display: none; }
  .hamburger { display: block; }
}


/* ==========================================================================
   11. ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
