/* ひとのび site — palette from the app icon (mint gradient). */

:root {
  --green-a: #40d6ad;
  --green-b: #1ca88c;
  --paper: #fcfefd;
  --card: #ffffff;
  --ink: #1f2a27;
  --ink-soft: #64736e;
  --line: #e4ece9;
  --accent: #0f8f76;
  --shadow: 0 24px 60px -24px rgba(16, 80, 66, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14191a;
    --card: #1c2224;
    --ink: #e9efed;
    --ink-soft: #9aaaa5;
    --line: #28312f;
    --accent: #4fd3b4;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); }

/* ---------- header ---------- */

.site-header { position: relative; z-index: 2; }

body[data-page="index"] .site-header {
  position: absolute; top: 0; left: 0; right: 0;
}

.site-header .wrap {
  display: flex; align-items: center; gap: 12px;
  padding-top: 20px; padding-bottom: 20px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.05rem;
}

body[data-page="index"] .brand { color: #fff; }

.brand img {
  width: 34px; height: 34px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(10, 60, 48, 0.3);
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--green-a), var(--green-b));
  color: #fff;
  padding: 120px 0 72px;
}

.hero .wrap { max-width: 720px; text-align: center; }

.hero-eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; opacity: 0.85; margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.4;
}

.hero-lede {
  margin: 20px auto 30px; max-width: 34em;
  font-size: 1.02rem; opacity: 0.95;
}

.hero-cta {
  display: inline-block; background: #fff; color: var(--green-b);
  font-weight: 700; text-decoration: none;
  padding: 12px 30px; border-radius: 999px;
  transition: transform 0.15s ease;
}

.hero-cta:hover { transform: translateY(-2px); }

/* ---------- shots ---------- */

.shots { padding: 56px 0 0; }

.shots .wrap {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
}

.shots figure { max-width: 220px; }

.shots img {
  width: 100%; height: auto; display: block;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shots figcaption {
  margin-top: 12px; text-align: center;
  font-size: 0.85rem; color: var(--ink-soft);
}

/* ---------- sections ---------- */

.section { padding: 72px 0 0; }

.section-title {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.01em; margin-bottom: 26px;
}

.feature-grid {
  display: grid; gap: 20px;
  /* 項目は 3 つ。1 行に収まる幅にしないと 2+1 で最後が浮く。 */
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
}

.feature h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

.support-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 36px;
  box-shadow: 0 8px 30px -18px rgba(16, 80, 66, 0.25);
}

.support-card p { color: var(--ink-soft); max-width: 44em; margin-bottom: 22px; }

.form-button {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none;
  padding: 12px 28px; border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.form-button:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- doc ---------- */

.doc { max-width: 680px; margin: 0 auto; padding: 40px 24px 0; }
.doc h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.doc-updated { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 28px; }
.doc-intro { font-size: 1.02rem; margin-bottom: 12px; }
.doc h2 { font-size: 1.1rem; font-weight: 700; margin: 30px 0 8px; }
.doc p { color: var(--ink-soft); }
.doc ul { color: var(--ink-soft); margin: 8px 0 0 1.3em; }
.doc ul + p { margin-top: 10px; }
.doc-back { display: inline-block; margin-top: 40px; font-weight: 600; text-decoration: none; }

/* ---------- footer ---------- */

.site-footer {
  margin-top: 88px; border-top: 1px solid var(--line);
  padding: 28px 0 40px; font-size: 0.85rem; color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
}

.site-footer a { color: var(--ink-soft); }
.footer-spacer { flex: 1; }

@media (max-width: 600px) {
  .hero { padding: 100px 0 56px; }
  .shots figure { max-width: 180px; }
  .support-card { padding: 24px; }
}
