/* SetLive 公開サイト共通スタイル
   配色・行間は skyphone.social の Web (social/apps/web/src/app/globals.css) から移植。
   ライト/ダークは OS 設定 (prefers-color-scheme) に追従する。 */

:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --foreground: #111111;
  --muted-foreground: #6b7280;
  /* アクセントは skyphone.social の水色 */
  --accent: #1ca7e3;
  --accent-dark: #1488bc;
  --accent-light: #5dc6ee;
  --border: rgba(0, 0, 0, 0.1);
  --hover-bg: rgba(0, 0, 0, 0.03);
  --link: #0a6cf1;
  /* ブランドグラデーション (アプリアイコンから抽出) */
  --brand-from: #1393f9;
  --brand-to: #6c42f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #0b0b0b;
    --surface: #141414;
    --foreground: #e5e7eb;
    --muted-foreground: #9ca3af;
    --accent: #46c2f5;
    --accent-dark: #1ca7e3;
    --accent-light: #82d6fa;
    --border: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.03);
    --link: #82d6fa;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
    "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: underline;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── レイアウト ───────────────────────────── */

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px;
}

.wrap-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── サイトヘッダー ───────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-header .name {
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--foreground);
}

/* ── ヒーロー ─────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #ffffff;
  text-align: center;
  padding: 64px 20px 72px;
}

.hero img.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero .brand {
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.5;
  margin: 10px 0 12px;
  letter-spacing: 0.01em;
}

.hero p.lead {
  font-size: 16px;
  margin: 0 auto;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.92);
}

/* 配信状況の但し書き。ストアのボタンがまだ押せない理由をその場で書く。 */
.hero p.status {
  font-size: 14px;
  line-height: 1.8;
  margin: 20px auto 0;
  max-width: 34em;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.96);
}

@media (max-width: 480px) {
  .hero {
    padding: 44px 20px 52px;
  }
  .hero h1 {
    font-size: 25px;
  }
}

/* ── ボタン ───────────────────────────────── */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--hover-bg);
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ── セクション・カード ───────────────────── */

section.block {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

section.block h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

section.block p.section-lead {
  color: var(--muted-foreground);
  margin: 0 0 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-foreground);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.steps strong {
  display: block;
  font-size: 16px;
}

.steps span {
  color: var(--muted-foreground);
  font-size: 14px;
}

/* ── 招待コード表示 ───────────────────────── */

.code-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px 18px;
  margin: 20px 0 8px;
}

.code-box .code {
  flex: 1 1 200px;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  word-break: break-all;
}

.note {
  color: var(--muted-foreground);
  font-size: 14px;
}

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--hover-bg);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 14px;
}

.hidden {
  display: none;
}

/* ── 法務文書 ─────────────────────────────── */

.doc h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.5;
}

.doc .updated {
  color: var(--muted-foreground);
  font-size: 14px;
  margin: 0 0 28px;
}

.doc h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}

.doc h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 6px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 0 0 12px;
}

.doc p {
  margin: 0 0 12px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.doc th,
.doc td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.doc-scroll {
  overflow-x: auto;
}

.quote-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--hover-bg);
  padding: 14px 16px;
  margin: 0 0 16px;
  font-weight: 700;
}

/* ── フッター ─────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 28px 20px 40px;
  color: var(--muted-foreground);
  font-size: 14px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--muted-foreground);
}

/* ── ストアバッジ（公式のカラフルなもの） ───── */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  height: 54px;
  transition: transform 0.1s ease;
}

.store-badge img {
  height: 54px;
  width: auto;
  display: block;
}

.store-badge[aria-disabled="true"] {
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}

/* 公開済みのストアは押せるものとして見せる（未公開の方と並ぶので、
   押せるかどうかが見た目で分かるようにする）。 */
a.store-badge {
  cursor: pointer;
}

a.store-badge:hover {
  transform: translateY(-1px);
}

/* ── カードの見出しアイコン ─────────────────── */

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.card-head h3 {
  margin: 0;
}

.ic {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
}

/* 特徴カードのアイコンは、見出しの文字と同じくらいの小さな線画だけ。
   塗りの下地は付けない（下地があると見出しより目立ってしまう）。 */
.card .ic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.card .ic-badge .ic {
  width: 18px;
  height: 18px;
}

/* ── 運営者からのお知らせ ───────────────────── */

.owner-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.owner-note .ic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}

.owner-note .ic-badge .ic {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.owner-note p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.9;
}

.owner-note p:last-child {
  margin-bottom: 0;
}

.owner-note .owner-name {
  font-weight: 700;
  color: var(--foreground);
}
