/* phase-timer 紹介ページ / styles
   pointa.dev に着想を得た、余白広め・カード基調・エメラルドのアクセント。 */

:root {
  --brand: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --violet: #8b5cf6;

  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --bg-soft: #f0fdf9;
  --ink: #0b1f1a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e6eaef;
  --card: #ffffff;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(2, 44, 34, 0.16);

  --font: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1110;
    --bg-alt: #0f1716;
    --bg-soft: #0e1a17;
    --ink: #ecfdf5;
    --ink-2: #c7d2cc;
    --ink-3: #8b9a93;
    --line: #1d2a27;
    --card: #111b19;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--brand-600); }
.nav-store {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.nav-store:hover { color: #fff !important; transform: translateY(-1px); }

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-600) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-600); }
.btn-lg { font-size: 16px; padding: 15px 30px; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(50% 50% at 20% 10%, rgba(16, 185, 129, 0.18), transparent 70%),
    radial-gradient(45% 55% at 85% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(40% 50% at 60% 30%, rgba(139, 92, 246, 0.12), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-inner > * { min-width: 0; }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--bg-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
}
.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  margin: 0 0 30px;
  max-width: 36em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

.hero-shot { position: relative; }
.shot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--card);
}
.shot-frame img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
}
.i-green { background: linear-gradient(135deg, var(--brand), var(--brand-600)); }
.i-blue { background: linear-gradient(135deg, #60a5fa, var(--blue)); }
.i-amber { background: linear-gradient(135deg, #fbbf24, var(--amber)); }
.i-violet { background: linear-gradient(135deg, #a78bfa, var(--violet)); }
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- Screenshots ---------- */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.shot { margin: 0; }
.shot .shot-frame { box-shadow: var(--shadow-md); }
.shot figcaption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shot figcaption strong { font-size: 16px; font-weight: 700; }
.shot figcaption span { color: var(--ink-3); font-size: 14px; }
.shot-grid .shot:first-child { grid-column: 1 / -1; }
.shot-grid .shot:first-child .shot-frame img {
  object-fit: cover;
  max-height: 460px;
  object-position: center;
}

/* ---------- Install ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step > div { min-width: 0; flex: 1; }
.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--brand-700);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.step h3 { margin: 2px 0 6px; font-size: 17px; }
.step p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.step pre {
  margin: 0;
  background: #0b1f1a;
  color: #d1fae5;
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  .step pre { background: #02110d; border: 1px solid var(--line); }
}
.install-cta { text-align: center; margin-top: 36px; }

/* ---------- Privacy ---------- */
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.privacy-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 16px;
}
.privacy-copy p { color: var(--ink-2); font-size: 17px; margin: 0; }
.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--brand-600);
}
.privacy-link::after { content: "→"; transition: transform 0.15s ease; }
.privacy-link:hover::after { transform: translateX(3px); }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.privacy-list svg { color: var(--brand); flex: none; margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 28px 16px 0;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--ink-3); font-size: 14px; margin: 12px 0 0; max-width: 30em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-links a:hover { color: var(--brand-600); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Reveal animation (JS 有効時のみ) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-cta { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang-toggle { margin-top: 12px; align-self: flex-start; }
  .section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot-grid .shot:first-child .shot-frame img { max-height: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
