@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Noto+Sans+JP:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;500;700&display=swap');

:root {
  /* COLORS */
  --vivid-sky: #00A1E9;
  --vivid-sky-light: #E1F5FE;
  --vivid-sky-soft: rgba(0, 161, 233, 0.05);
  --vivid-sky-dark: #0077B6;
  --success-green: #00C853;
  --success-green-soft: #DFF6E3;
  --success-green-dark: #34A853;
  /* 明るい鮮やかなグリーン ✅ */
  --gray-900: #1A202C;
  --gray-500: #718096;
  --gray-200: #CBD5E0;
  --gray-100: #E2E8F0;
  --deep-navy: var(--gray-900);
  --accent-orange: #F97316;
  --accent-blue: #1a5ed9;
  --accent-pink: #EC4899;
  --accent-purple: #8B5CF6;
  --accent-red: #DD514C;
  --accent-red-light: #FFF5F5;
  --white: #FFFFFF;
  --text-gray: var(--gray-500);
  --bg-light: var(--gray-100);
  --field-fill: var(--surface-soft);
  --surface-soft: #F8FBFF;
  --workspace-bg: #E6F3FD;
  --bg-hover: var(--gray-200);
  --border-color: var(--gray-200);
  --tab-bg: var(--gray-200);
  --tab-bg-hover: var(--gray-200);
  --text-dark: var(--gray-900);
  --badge-pill-padding: 2px 6px;
  --badge-pill-radius: 50px;
  --badge-pill-font-size: 0.7rem;
  --badge-pill-line-height: 1.2;
  --badge-pill-min-width: 5.4em;

  /* RADIUS (Flat & Rounded) */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;

  /* Gray aliases used by the newer design templates (html-20260710). */
  --gray-strong: #1A202C;
  --gray-mid: #718096;
  --gray-surface: #F8FAFC;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴ ProN", Hiragino Kaku Gothic ProN, "メイリオ", Meiryo, sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
  background-color: var(--workspace-bg);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 0.95rem;
}

@keyframes pageEntrance {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Apply animation only to content areas */
.dashboard-main,
.onboarding-container {
  animation: none;
}

.dashboard-main {
  background-color: var(--workspace-bg);
}

/* tableや特定のデータ項目は justify を解除して自然な間隔に */
th,
td,
.btn,
.sidebar,
.menu-item,
h1,
h2,
h3,
.badge,
.status-badge {
  text-align: left;
}

/* Headings inside an explicit centering wrapper (modal headers use a
   `text-center` container with a plain h1/h2/h3) must win over the
   left reset above — the reset targets the heading directly, so
   inheritance alone cannot re-center it. */
.text-center h1,
.text-center h2,
.text-center h3 {
  text-align: center;
}

/* --- Flat Overrides --- */
/* Ported from the live template: keep floating surfaces (modal dialogs,
   action-menu popovers, switcher panels, tooltips) able to cast shadows. */
body *:not(.app-modal-dialog):not(.app-modal-dialog *):not(.app-action-menu-popover):not(.app-action-menu-popover *):not(.workspace-case-switcher-panel):not(.workspace-case-switcher-panel *):not(.help-tooltip):not(.help-tooltip *) {
  box-shadow: none !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
  border: none;
}

/* --- Common Components --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  /* background-color: var(--white); */
  padding: 0.5rem 0;
  /* border-bottom: 1px solid var(--border-color); */
  z-index: 100;
}

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

.logo-area img {
  height: 32px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  padding: 5px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8125rem;
}

/* Show only while scrolling class is active (controlled by JS) */
.is-scrolling::-webkit-scrollbar-thumb {
  background: #E2E8F0;
}

.is-scrolling::-webkit-scrollbar-thumb:hover {
  background: var(--gray-200);
}

footer {
  padding: 3rem 0;
  /* border-top: 1px solid var(--border-color); */
  margin-top: 0;
  background: #FFFFFF;
}

.footer-links {
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-gray);
  font-size: 0.8rem;
}

.copyright {
  font-size: 0.7rem;
  color: var(--text-gray);
  opacity: 0.6;
}
