/* パケ道 — site styles (shared by index / support / privacy). Dark, terminal-flavoured, in the infra-craft key. */
:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-card: #1a212b;
  --border: #2d3644;
  --text: #e6edf3;
  --text-muted: #8b98a9;
  --accent: #22d3ee;
  --accent-2: #4ade80;
  --accent-3: #f59e0b;
  --mono: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  --sans: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.prompt { color: var(--accent-2); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo img { width: 26px; height: 26px; border-radius: 7px; }
.cursor { color: var(--accent); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text-muted); font-size: 0.92rem; white-space: nowrap; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(34, 211, 238, 0.10), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(74, 222, 128, 0.07), transparent);
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-inner > *, .two-col > * { min-width: 0; } /* a wide <pre> must scroll inside its column, never widen the page */
.hero-eyebrow { font-family: var(--mono); color: var(--accent-2); font-size: 0.9rem; margin-bottom: 14px; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.3; font-weight: 800; margin-bottom: 20px; }
.highlight { color: var(--accent); text-shadow: 0 0 24px rgba(34, 211, 238, 0.35); }
.hero-lead { color: var(--text-muted); max-width: 600px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  color: #0d1117;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.store-btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); }
.store-btn.ios { background: var(--accent); }
.store-btn.android { background: var(--accent-2); }
.path-btn {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent-3);
  color: var(--accent-3);
  transition: background 0.2s ease;
}
.path-btn:hover { text-decoration: none; background: rgba(245, 158, 11, 0.1); }
.hero-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 22px; font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted); }
.hero-visual { position: relative; display: flex; justify-content: center; }
/* Phone screenshots are 554×1200: show the upper part at a fixed, modest height so the figures stay short */
.hero-visual img {
  width: min(240px, 100%);
  height: 400px;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 211, 238, 0.12);
}

/* Sections */
.section { padding: 64px 0 8px; }
.section-title { font-size: 1.4rem; margin-bottom: 8px; }
.section-sub { font-family: var(--mono); font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.section-lead { color: var(--text-muted); max-width: 720px; margin-bottom: 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-meta { display: flex; align-items: center; gap: 12px; }
.badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid;
}
.badge.cyan { color: var(--accent); border-color: rgba(34, 211, 238, 0.5); }
.badge.green { color: var(--accent-2); border-color: rgba(74, 222, 128, 0.5); }
.badge.amber { color: var(--accent-3); border-color: rgba(245, 158, 11, 0.5); }
.badge.pro { color: #ffcc80; border-color: rgba(255, 152, 0, 0.6); background: rgba(230, 81, 0, 0.18); }
.badge.free { color: #a5d6a7; border-color: rgba(76, 175, 80, 0.5); background: rgba(27, 94, 32, 0.25); }
.card-title { font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.card-desc { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }

/* Terminal block (今日の障害) */
.terminal {
  background: #0b0f14;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.78rem; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.terminal pre { padding: 18px 20px; overflow-x: auto; line-height: 1.7; color: var(--text); white-space: pre; }
.t-key { color: var(--accent-2); }
.t-val { color: var(--accent); }
.t-dim { color: var(--text-muted); }
.t-warn { color: var(--accent-3); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.steps { list-style: none; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.steps .n { font-family: var(--mono); color: var(--accent-2); font-weight: 700; min-width: 2.2em; }
.steps strong { color: var(--text); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--bg-card); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--accent); font-family: var(--mono); font-weight: 600; font-size: 0.82rem; background: var(--bg-soft); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(34, 211, 238, 0.04); }

/* Device chips */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.chip b { font-family: var(--mono); font-size: 0.9rem; color: var(--text); font-weight: 600; }
.chip span.desc { color: var(--text-muted); font-size: 0.78rem; display: block; }

/* Protocol legend */
.legend { display: flex; gap: 14px 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.9rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px currentColor; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.price-card.pro { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 40px rgba(245, 158, 11, 0.08); }
.price-card h3 { font-family: var(--mono); font-size: 1rem; color: var(--text-muted); letter-spacing: 0.08em; }
.price-card .price { font-size: 2rem; font-weight: 800; margin: 8px 0 16px; color: var(--accent); }
.price-card.pro .price { color: var(--accent-3); }
.price-card ul { list-style: none; display: grid; gap: 6px; color: var(--text-muted); font-size: 0.92rem; }
.price-card ul li::before { content: "- "; color: var(--accent); font-family: var(--mono); }
.price-card.pro ul li::before { color: var(--accent-3); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; max-width: 720px; }
.gallery img { width: 100%; height: 320px; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-soft); }

/* Prose pages (support / privacy) */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 20px 0; }
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; margin-bottom: 6px; }
.prose .app-name { font-family: var(--mono); color: var(--accent-2); font-size: 0.9rem; margin-bottom: 32px; }
.prose h2 { font-size: 1.2rem; margin: 40px 0 14px; }
.prose p, .prose li { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.faq { display: grid; gap: 14px; }
.faq details { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 0; transition: border-color 0.2s ease; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--text); list-style: none; display: flex; gap: 10px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ">"; font-family: var(--mono); color: var(--accent-2); }
.faq details[open] summary::before { content: "v"; }
.faq details p { padding: 0 20px 18px 20px; margin: 0; }
.contact-box { background: var(--bg-soft); border: 1px solid var(--border); border-left: 3px solid var(--accent-2); border-radius: 8px; padding: 22px 24px; margin-top: 16px; }
.contact-box .email { font-family: var(--mono); font-size: 1.05rem; color: var(--accent); font-weight: 700; }
.updated { font-family: var(--mono); color: var(--text-muted); font-size: 0.82rem; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 32px 0; }
.footer-inner { text-align: center; }
.footer-logo { font-family: var(--mono); font-weight: 700; margin-bottom: 6px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; margin-bottom: 8px; }
.footer-note { color: var(--text-muted); font-size: 0.8rem; font-family: var(--mono); }

@media (max-width: 760px) {
  .hero { padding: 56px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual img { width: min(200px, 70%); height: 320px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gallery img { height: 220px; border-radius: 12px; }
  .two-col { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; justify-content: center; }
  .nav { gap: 12px 16px; width: 100%; justify-content: center; }
  .terminal pre { font-size: 0.78rem; padding: 14px 16px; }
}
