/* Blue Post Cross — website styles
   配色はアプリのアイコンとスプラッシュ（#0B0E14）に合わせています。 */

:root {
  --bg: #0b0e14;
  --bg-soft: #121724;
  --surface: #161c2b;
  --surface-2: #1c2436;
  --line: #27314a;
  --text: #e8ecf4;
  --text-dim: #a3aec4;
  --text-faint: #76819a;
  --android: #c6f24a;
  --iphone: #4a9cff;
  --radius: 14px;
  --maxw: 880px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

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

a { color: var(--iphone); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- レイアウト ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(105deg, var(--android), var(--iphone));
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.site-nav a { color: var(--text-dim); }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--android); }

/* ---------- ヒーロー ---------- */

.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(198, 242, 74, 0.10), transparent 70%),
    radial-gradient(60% 70% at 88% 0%, rgba(74, 156, 255, 0.14), transparent 70%);
}

.hero h1 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.35;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

.hero .tagline {
  font-size: clamp(16px, 3.4vw, 20px);
  color: var(--text);
  margin: 0 0 18px;
}

.hero .lead {
  color: var(--text-dim);
  margin: 0;
  max-width: 42em;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin: 0 0 14px;
}

/* ---------- セクション ---------- */

section { padding: 52px 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(21px, 4.4vw, 27px);
  line-height: 1.5;
  margin: 0 0 6px;
}

h2 + .sub {
  color: var(--text-dim);
  margin: 0 0 26px;
}

h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

/* ---------- カード ---------- */

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

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

.card h3 { margin-bottom: 4px; }
.card p { color: var(--text-dim); font-size: 15px; margin: 0; }

.feature {
  display: grid;
  gap: 24px;
  align-items: start;
  margin-bottom: 44px;
}

.feature:last-child { margin-bottom: 0; }

@media (min-width: 720px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feature.reverse .feature-text { order: 2; }
}

.feature-text p { color: var(--text-dim); }
.feature-text h3 { font-size: 19px; margin-bottom: 8px; color: var(--text); }

/* ---------- イラスト枠（画像が届いたら差し替えます） ---------- */

figure.illust { margin: 0; }

figure.illust img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* 明るい背景のイラスト（PNG）は、白い一枚の絵として見せます */
figure.illust.photo img {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 縦長の端末モックは、端末らしい幅に抑えて中央に置きます */
figure.illust img.portrait {
  max-width: 300px;
  margin: 0 auto;
}

figure.illust.photo figcaption,
figure.illust img.portrait + figcaption {
  text-align: center;
}

.illust-slot {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(198, 242, 74, 0.05), rgba(74, 156, 255, 0.06));
  padding: 22px 20px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.illust-slot .slot-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--android);
}

.illust-slot .slot-file {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-faint);
  word-break: break-all;
}

.illust-slot .slot-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

figure.illust figcaption {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 10px;
  line-height: 1.7;
}

/* ---------- 手順 ---------- */

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

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 46px;
  margin: 0;
  border-left: 2px solid var(--line);
  margin-left: 14px;
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--android);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--text-dim); font-size: 15px; }

/* ---------- 表 ---------- */

.table-scroll { overflow-x: auto; margin: 0 0 16px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  background: var(--bg-soft);
}

td { color: var(--text-dim); }

/* ---------- 本文ページ（プライバシーポリシー） ---------- */

.doc { padding: 48px 0 8px; }
.doc h1 { font-size: clamp(24px, 5vw, 34px); margin: 0 0 8px; }
.doc .meta { color: var(--text-faint); font-size: 14px; margin: 0; }

.doc-body h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 4px;
}

.doc-body h3 { font-size: 16px; margin: 24px 0 6px; }
.doc-body p, .doc-body li { color: var(--text-dim); }
.doc-body strong { color: var(--text); }

.callout {
  background: linear-gradient(135deg, rgba(198, 242, 74, 0.07), rgba(74, 156, 255, 0.07));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}

.callout p { color: var(--text); margin: 0; }

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--text-faint);
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--text-dim); }
