/* =================================================================
   HireRoo LP 共通スタイル — 全ページ共通の基盤
   - 設計トークン (CSS 変数)
   - リセット & プリミティブ
   - container / button / eyebrow / sec-* 等の共通コンポーネント
   - site-header / site-footer (root LP / assessment-1 で共有)

   このファイルは public/index.html (Skill Interview) と
   public/assessment-1/ (Skill Assessment) の両方が <link> で読み込みます。
   ページ固有のスタイルは styles-home.css / assessment-1/styles.css に。
   ================================================================= */

/* ===== Web fonts (Google Fonts CDN) ===== */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* =================================================================
   1. Design tokens
   ================================================================= */
:root {
  /* Brand */
  --hr-primary: #EF6972;
  --hr-primary-dark: #A7494F;
  --hr-primary-light: #F2878E;
  --hr-primary-logo: #FF6666;
  --hr-secondary: #4B51C1;
  --hr-secondary-dark: #3D3EAA;
  --hr-secondary-light: #656CCB;

  /* Semantic */
  --hr-error:   #FF1744;
  --hr-error-dark: #B2102F;
  --hr-error-light: #FF4569;
  --hr-warning: #ED6C02;
  --hr-warning-dark: #E65100;
  --hr-warning-light: #FF9800;
  --hr-success: #2E7D32;
  --hr-success-dark: #1B5E20;
  --hr-success-light: #4CAF50;
  --hr-info:    #0288D1;
  --hr-info-dark: #01579B;
  --hr-info-light: #03A9F4;

  /* Rank (assessment) */
  --hr-rank-s: #E53935;
  --hr-rank-a: #FB8C00;
  --hr-rank-b: #E3BC10;
  --hr-rank-c: #5485CE;
  --hr-rank-d: #4CAF50;

  /* Shape */
  --hr-radius-sm: 4px;
  --hr-radius-md: 8px;
  --hr-radius-lg: 12px;
  --hr-radius-xl: 16px;
  --hr-radius-pill: 9999px;

  /* Spacing (8px base) */
  --hr-space-1: 4px;
  --hr-space-2: 8px;
  --hr-space-3: 12px;
  --hr-space-4: 16px;
  --hr-space-5: 20px;
  --hr-space-6: 24px;
  --hr-space-8: 32px;
  --hr-space-10: 40px;
  --hr-space-12: 48px;

  /* Elevation */
  --hr-shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
  --hr-shadow-2: 0 3px 6px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --hr-shadow-4: 0 10px 20px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
  --hr-shadow-8: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);

  /* Typography */
  --hr-font-sans: "Noto Sans JP", "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  --hr-font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hr-fw-regular: 400;
  --hr-fw-medium:  500;
  --hr-fw-bold:    700;
  --hr-lh-tight:  1.2;
  --hr-lh-normal: 1.5;
  --hr-lh-loose:  1.75;
}

/* Light theme overrides (root LP / assessment-1 共通) */
:root,
:root.hr-light {
  --hr-fg-primary:   #1A1D23;
  --hr-fg-secondary: #5C6370;
  --hr-fg-muted:     #8A8F99;
  --hr-fg-disabled:  #9E9E9E;

  --hr-bg-default: #F7F7F9;
  --hr-bg-paper:   #FFFFFF;
  --hr-bg-paper-2: #FFFFFF;
  --hr-bg-paper-4: #FFFFFF;
  --hr-bg-paper-8: #FFFFFF;
  --hr-bg-header:  rgba(255,255,255,0.8);
  --hr-bg-tint:    #FEF4F4;
  --hr-bg-tint-2:  #EFF0FB;

  --hr-divider:      #E5E5EA;
  --hr-divider-weak: #F0F0F2;
  --hr-outlined-border: rgba(0,0,0,0.23);
  --hr-filled-input-bg: rgba(0,0,0,0.06);
  --hr-action-hover: rgba(0,0,0,0.05);
}

/* =================================================================
   2. Reset
   ================================================================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--hr-font-sans);
  color: var(--hr-fg-primary);
  background: var(--hr-bg-paper);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.7;
}

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

/* =================================================================
   3. Container
   ================================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* =================================================================
   4. Buttons (root LP の .btn-primary 系)
   assessment-1 で使われる .btn--primary (BEM) は assessment-1/styles.css
   側で個別定義されています — 当面そちらも維持。
   ================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--hr-primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(239,105,114,0.55);
}
.btn-primary:hover { background: var(--hr-primary-dark); }
.btn-secondary {
  background: #fff;
  color: var(--hr-fg-primary);
  border-color: #D9D9DE;
}
.btn-secondary:hover { background: #FAFAFB; border-color: #C0C0C7; }
.btn-ghost {
  background: transparent;
  color: var(--hr-fg-primary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--hr-action-hover); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13px; border-radius: 6px; }

/* =================================================================
   5. Section primitives
   ================================================================= */
section { padding: 96px 0; position: relative; }
section.sec-tight { padding: 56px 0; }

.sec-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hr-primary);
  text-transform: uppercase;
  background: rgba(239,105,114,0.08);
  border: 1px solid rgba(239,105,114,0.22);
  border-radius: 9999px;
  margin-bottom: 24px;
}
.sec-eyebrow svg { color: var(--hr-primary); }

.sec-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--hr-fg-primary);
}
.sec-title .accent { color: var(--hr-primary); }
.sec-title .indigo { color: var(--hr-secondary); }

.sec-lede {
  font-size: 17px;
  color: var(--hr-fg-secondary);
  line-height: 1.85;
  max-width: 720px;
}

/* =================================================================
   6. Header / Footer 内の小型ボタン
   ================================================================= */
.site-header .btn,
footer.site-footer .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.site-header .btn-primary,
footer.site-footer .btn-primary {
  background: var(--hr-primary);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(239, 105, 114, 0.55);
}
.site-header .btn-primary:hover,
footer.site-footer .btn-primary:hover { background: var(--hr-primary-dark); }
.site-header .btn-ghost {
  background: transparent;
  color: var(--hr-fg-primary);
  border-color: transparent;
}
.site-header .btn-ghost:hover { background: var(--hr-action-hover); }

/* =================================================================
   7. Site header
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hr-divider-weak);
}
.site-header .inner {
  height: 64px;
  display: flex; align-items: center; gap: 24px;
}
.site-header .brand { display: flex; align-items: center; gap: 10px; }
.site-header .brand img { height: 24px; }
.site-header .product-name {
  font-size: 13px; font-weight: 700; color: var(--hr-fg-secondary);
  padding-left: 12px; border-left: 1px solid var(--hr-divider);
  letter-spacing: 0.02em;
}
.site-header nav { display: flex; gap: 28px; margin-left: 24px; }
.site-header nav a {
  font-size: 13.5px; font-weight: 500; color: var(--hr-fg-secondary);
}
.site-header nav a:hover { color: var(--hr-fg-primary); }
.site-header .spacer { flex: 1; }
.site-header .header-actions { display: flex; gap: 10px; align-items: center; }

.site-header .login-link {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 12px;
  font-size: 13px; font-weight: 600;
  color: var(--hr-fg-secondary);
  border-radius: 6px;
  transition: color .15s, background-color .15s;
  letter-spacing: 0.02em;
  position: relative;
}
.site-header .login-link::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hr-primary);
  margin-right: 8px;
  box-shadow: 0 0 0 2px rgba(239, 105, 114, 0.18);
}
.site-header .login-link:hover {
  color: var(--hr-primary-dark);
  background: rgba(239, 105, 114, 0.06);
}

.site-header .btn-sm {
  height: 40px; padding: 0 18px;
  font-size: 13px; border-radius: 6px;
}

@media (max-width: 880px) {
  .site-header nav { display: none; }
  .site-header .product-name { display: none; }
  .site-header .login-link { white-space: nowrap; }
  .site-header .header-actions { gap: 6px; }
}
@media (max-width: 480px) {
  .site-header .login-link { padding: 0 8px; font-size: 12px; }
  .site-header .login-link::before { margin-right: 5px; }
  .site-header .btn-ghost { display: none; }
  .site-header .btn-sm { padding: 0 12px; }
}

/* =================================================================
   8. Site footer
   ================================================================= */
footer.site-footer {
  background: #1A1D23;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
  font-size: 13px;
}
footer.site-footer .row {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
footer.site-footer img { height: 22px; }
/* dark 背景上で HireRoo ロゴを白抜きに反転 */
footer.site-footer .brand-logo {
  filter: brightness(0) invert(1) sepia(0) saturate(0);
}
/* "Skill Interview" / "Skill Assessment" のラベル */
footer.site-footer .brand-name {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}
/* row 内のスペーサー */
footer.site-footer .spacer { flex: 1; }

footer.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site-footer nav a { color: rgba(255, 255, 255, 0.78); }
footer.site-footer nav a:hover { color: #fff; }
footer.site-footer .copy {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}
footer.site-footer .copy .right { display: flex; gap: 14px; }
footer.site-footer .copy .right a { color: inherit; }

@media (max-width: 760px) {
  footer.site-footer { padding: 36px 0 24px; }
  footer.site-footer .row { gap: 12px; }
  footer.site-footer nav { gap: 14px 16px; font-size: 11px; }
  footer.site-footer .copy { flex-direction: column; align-items: flex-start; gap: 10px; }
}
