/* EasyWork ポータル — スマホ優先・外部依存なし（システムフォント） */
:root {
  color-scheme: light;
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-deep: #1e3a8a;
  --brand-soft: #eff6ff;
  --accent: #7c3aed;
  --ink: #0f172a;
  --ink-muted: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --max: 1120px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.35; margin: 0 0 0.5em; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: none; gap: 20px; font-size: 14px; }
.site-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--brand-strong); }
.header-cta { font-size: 14px; padding: 8px 14px; min-height: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent;
  transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #3b82f6 0%, var(--brand-strong) 55%, var(--brand-deep) 100%);
  color: #fff;
  padding: 48px 0 0;
  overflow: hidden;
}
.hero-inner { display: grid; gap: 32px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 9vw, 56px); font-weight: 800; margin-bottom: 0.2em; }
.hero-tagline { font-size: clamp(20px, 5.4vw, 28px); font-weight: 700; margin-bottom: 0.6em; }
.hero-lead { font-size: clamp(15px, 4vw, 18px); color: #dbeafe; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { font-size: 13px; color: #dbeafe; }
.hero-visual { display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.phone {
  width: min(64vw, 280px);
  border-radius: 36px 36px 0 0;
  border: 6px solid rgba(255, 255, 255, 0.85); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.35);
  overflow: hidden; background: #fff;
  aspect-ratio: 560 / 900;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-secondary { display: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; scroll-margin-top: 60px; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.kicker { color: var(--brand-strong); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(24px, 6vw, 34px); }
.section-head p { color: var(--ink-muted); }

/* Features */
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 12px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature.is-ai .feature-icon { background: #f3e8ff; color: var(--accent); }
.feature h3 { font-size: 18px; }
.feature p { color: var(--ink-muted); font-size: 15px; margin: 0; }

/* Screens gallery */
.screens {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 16px; margin: 0 calc(var(--gutter) * -1);
  list-style: none;
}
.screens li { flex: 0 0 62%; max-width: 240px; scroll-snap-align: center; }
.screens figure { margin: 0; }
.screens img { border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 560 / 1216; object-fit: cover; }
.screens figcaption { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-muted); margin-top: 10px; }

/* Personas */
.persona-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.persona { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; border-top: 5px solid var(--brand); }
.persona.is-manager { border-top-color: #0e7490; }
.persona.is-bp { border-top-color: #047857; }
.persona h3 { font-size: 20px; margin-bottom: 4px; }
.persona-sub { color: var(--ink-muted); font-size: 14px; margin-bottom: 14px; }
.persona ul { margin: 0; padding-left: 1.2em; }
.persona li { margin-bottom: 6px; }
.persona-login { margin: 16px 0 0; font-size: 13px; color: var(--ink-muted); background: var(--surface-alt); border-radius: var(--radius-sm); padding: 10px 12px; }

/* Download */
.download { background: linear-gradient(160deg, var(--brand-strong), var(--brand-deep)); color: #fff; }
.download .section-head h2, .download .kicker { color: #fff; }
.download .section-head p { color: #dbeafe; }
.store-grid { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.store-btn {
  display: flex; align-items: center; gap: 14px;
  background: #fff; color: var(--ink); text-decoration: none;
  border-radius: var(--radius); padding: 18px 20px; min-height: 76px;
  border: 2px solid transparent;
}
.store-btn:hover { color: var(--ink); border-color: #93c5fd; }
.store-btn svg { width: 34px; height: 34px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.35; }
.store-label { font-size: 12px; color: var(--ink-muted); }
.store-name { font-size: 18px; font-weight: 800; }
.store-status {
  margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #166534;
}
.store-btn.is-pending { cursor: not-allowed; background: #f1f5f9; }
.store-btn.is-pending:hover { border-color: transparent; }
.store-btn.is-pending .store-status { background: #fef3c7; color: #92400e; }
.download-note { max-width: 900px; margin: 20px auto 0; font-size: 14px; color: #dbeafe; text-align: center; }
.download-note a { color: #fff; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--brand-strong);
}
.faq details[open] summary::after { content: "−"; }
.faq-body { padding: 0 18px 16px; color: var(--ink-muted); }
.faq-body p:last-child, .faq-body ol:last-child { margin-bottom: 0; }

/* Plain pages (privacy / support / 404) */
.page { padding: 40px 0 64px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(26px, 6vw, 36px); }
.page h2 { font-size: 20px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.notice {
  background: #fffbeb; border: 1px solid #fcd34d; color: #78350f;
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0 24px; font-size: 15px;
}
.notice strong { display: block; margin-bottom: 4px; }
.todo { background: #fef3c7; color: #78350f; padding: 1px 6px; border-radius: 4px; font-size: 0.9em; font-weight: 700; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 8px; }
.center { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 40px 0 28px; font-size: 14px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.site-footer h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.copyright { border-top: 1px solid #334155; margin-top: 28px; padding-top: 18px; color: #94a3b8; font-size: 13px; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(3, 1fr); }
  .store-btn { flex-direction: column; align-items: flex-start; }
  .store-status { margin-left: 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .screens li { flex-basis: 220px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 24px; }
  .site-nav { display: flex; }
  .hero { padding-top: 72px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; align-items: end; }
  .hero-copy { padding-bottom: 72px; }
  .phone { width: 260px; }
  .phone-secondary { display: block; width: 220px; margin-bottom: -40px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .persona-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 88px 0; }
  .screens { justify-content: center; flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 0; }
  .screens li { flex: 0 0 calc(25% - 12px); max-width: 240px; }
}
