/* aka-keishin.com と、アプリごとのサイトで共通に使う。
   主役は各アプリの実際の画面。色はアプリごとに --bg / --fg / --bezel で渡す。
   外部の読み込みは無い。 */

:root {
  --page: #ffffff;
  --ink: #111111;
  --soft: #5e6369;
  --rule: #e4e6e9;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(12px, 2.2vw, 28px);
  --gap: clamp(10px, 1.1vw, 14px);
  --radius: clamp(20px, 2.4vw, 32px);
  --inset: clamp(22px, 2.8vw, 38px);
  --measure: 38em;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---------- 頭と足 ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px calc(var(--pad) + 6px);
}
.mark { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; }
.lang { display: flex; gap: 16px; font-size: 0.875rem; }
.lang a { text-decoration: none; color: var(--soft); }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 700; }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 44px calc(var(--pad) + 6px) 52px;
  font-size: 0.875rem;
  color: var(--soft);
}
.site-foot p { margin: 0; }

/* ---------- トップ: アプリの棚 ---------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
}

.tile {
  grid-column: span 6;
  min-height: clamp(470px, 45vw, 640px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg, #f1f2f4);
  color: var(--fg, var(--ink));
}
.tile.wide { grid-column: span 7; }
.tile.narrow { grid-column: span 5; }

.tile-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--inset) var(--inset) 0;
  color: inherit;
  text-decoration: none;
}
.tile-link:focus-visible { outline-offset: -8px; border-radius: var(--radius); }

.tile h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.0625rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.tile .what { margin: 6px 0 0; max-width: 24em; font-size: 1rem; line-height: 1.55; }
.tile .state { margin: 10px 0 0; font-size: 0.8125rem; line-height: 1.4; opacity: 0.72; }

/* 実際の画面。下端は区画の縁で切れる */
.art {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  height: clamp(250px, 27vw, 380px);
  margin-top: clamp(24px, 3vw, 40px);
  overflow: hidden;
}
.art > * { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile-link:hover .art > * { transform: translateY(-8px); }

.phone {
  flex: 0 1 44%;
  max-width: 270px;
  padding: 1.8%;
  background: var(--bezel, #0c0c0d);
  border-radius: 15.5% / 7.2%;
}
.tile.narrow .phone { flex-basis: 62%; }
.phone img { display: block; width: 100%; height: auto; border-radius: 13.6% / 6.3%; }

.window {
  flex: 0 1 94%;
  align-self: flex-start;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.window img { display: block; width: 100%; height: auto; }

.badge {
  flex: 0 1 46%;
  max-width: 250px;
  align-self: center;
}
.badge img { display: block; width: 100%; height: auto; border-radius: 22.5%; }

@media (max-width: 860px) {
  .tile, .tile.wide, .tile.narrow { grid-column: 1 / -1; min-height: 0; }
  .art { height: clamp(240px, 64vw, 380px); }
  .phone, .tile.narrow .phone { flex-basis: 46%; }
  .badge { flex-basis: 42%; padding-bottom: 28px; }
}

/* ---------- アプリのページ ---------- */

.app-hero {
  margin: 0 var(--pad);
  padding: clamp(28px, 4.4vw, 60px) clamp(22px, 4.4vw, 60px) 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg, #f1f2f4);
  color: var(--fg, var(--ink));
}
.app-hero .id { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.app-hero .icon { flex: none; width: clamp(60px, 8vw, 92px); height: auto; border-radius: 22.5%; }
.app-hero h1 {
  margin: 0;
  font-size: clamp(1.875rem, 4.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.app-hero .what { margin: 6px 0 0; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.5; }
.app-hero .state { margin: 16px 0 0; font-size: 0.875rem; opacity: 0.75; }
.app-hero .store {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--fg, var(--ink));
  color: var(--bg, #fff);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}
.app-hero .art {
  height: clamp(280px, 36vw, 500px);
  justify-content: flex-start;
  margin-top: clamp(28px, 4vw, 52px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.app-hero .art::-webkit-scrollbar { display: none; }
.app-hero .phone { flex: 0 0 clamp(170px, 21vw, 262px); max-width: none; }

.app-body {
  max-width: calc(var(--measure) + var(--pad) * 2 + 12px);
  padding: clamp(32px, 5vw, 60px) calc(var(--pad) + 6px) 0;
}
.app-body > :first-child { margin-top: 0; }
.app-body p { margin: 0 0 1.1em; }

.pages { margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.pages li { border-bottom: 1px solid var(--rule); }
.pages a { display: block; padding: 16px 0; text-decoration: none; font-weight: 700; }
.pages a:hover { text-decoration: underline; }
.pages small { display: block; font-weight: 400; font-size: 0.875rem; color: var(--soft); }

/* ---------- 文書（サポート、プライバシー） ---------- */

.crumb { padding: clamp(28px, 5vw, 56px) calc(var(--pad) + 6px) 0; font-size: 0.9375rem; }
.crumb a { text-decoration: none; color: var(--soft); }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

.doc {
  max-width: calc(var(--measure) + var(--pad) * 2 + 12px);
  padding: 10px calc(var(--pad) + 6px) 0;
  overflow-wrap: anywhere;
}
.doc h1 { margin: 0 0 0.5em; font-size: clamp(1.75rem, 4.4vw, 2.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.doc h2 { margin: 2.3em 0 0.5em; font-size: 1.1875rem; font-weight: 700; line-height: 1.5; }
.doc h3 { margin: 1.8em 0 0.4em; font-size: 1rem; font-weight: 700; }
.doc p, .doc ul, .doc ol { margin: 0 0 1.1em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 0.35em; }
.doc .meta { color: var(--soft); font-size: 0.9375rem; }
.doc code { font-family: var(--mono); font-size: 0.9em; }
:lang(en) .doc, :lang(en) .app-body { line-height: 1.65; }

/* ---------- アプリのページ: 説明つきの画面と、項目ごとの説明 ---------- */

.app-hero .lead {
  max-width: 31em;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
  font-weight: 600;
  line-height: 1.7;
}

/* 画面を切らずに並べ、1枚ごとに一言を付ける */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: clamp(14px, 2.4vw, 34px);
  margin: clamp(30px, 4.4vw, 56px) 0 0;
  padding: 0 0 clamp(30px, 4.4vw, 60px);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots .phone { display: block; max-width: none; }
.shots figcaption {
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .shots { grid-auto-columns: 62%; }
}

.intro {
  max-width: calc(var(--measure) + var(--pad) * 2 + 12px);
  padding: clamp(32px, 5vw, 60px) calc(var(--pad) + 6px) 0;
}
.intro p { margin: 0 0 1.1em; font-size: 1.0625rem; }
.intro > :last-child { margin-bottom: 0; }

.facts {
  margin: clamp(28px, 4vw, 48px) calc(var(--pad) + 6px) 0;
  border-top: 1px solid var(--rule);
}
.fact {
  display: grid;
  grid-template-columns: minmax(9em, 15em) minmax(0, 40em);
  gap: 8px clamp(20px, 4vw, 56px);
  padding: clamp(22px, 2.8vw, 32px) 0;
  border-bottom: 1px solid var(--rule);
}
.fact h2 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.fact ul { margin: 0; padding: 0; list-style: none; }
.fact li + li { margin-top: 0.7em; }
.fact p { margin: 0 0 0.7em; }
.fact p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .fact { grid-template-columns: 1fr; }
}

.after {
  max-width: calc(var(--measure) + var(--pad) * 2 + 12px);
  padding: clamp(28px, 4vw, 44px) calc(var(--pad) + 6px) 0;
}
.after .pages { margin-top: 0; }

/* ---------- 販売ページ: 売り文句、画面ごとの説明、無料とPro ---------- */

/* 冒頭。左に売り文句、右に画面1枚 */
.pitch {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}
.pitch-copy { align-self: center; padding-bottom: clamp(32px, 5vw, 72px); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1rem; font-weight: 700; }
.brand img { flex: none; width: 44px; height: auto; border-radius: 22.5%; }
.pitch h1 {
  margin: clamp(18px, 2.6vw, 30px) 0 0;
  font-size: clamp(2.125rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
:lang(en) .pitch h1 { line-height: 1.1; }
.pitch .state { margin: clamp(18px, 2.4vw, 26px) 0 0; font-size: 0.875rem; opacity: 0.75; }
.pitch-art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(360px, 44vw, 600px);
  overflow: hidden;
}
.pitch-art .phone { flex: 0 1 78%; max-width: 330px; }

@media (max-width: 860px) {
  .pitch { grid-template-columns: 1fr; }
  .pitch-copy { padding-bottom: 0; }
  .pitch-art { height: clamp(320px, 92vw, 470px); }
}

/* 画面1枚につき、見出しと説明。左右を交互に置く */
.features { padding: 0 calc(var(--pad) + 6px); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 30em);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding: clamp(48px, 8vw, 112px) 0;
  border-bottom: 1px solid var(--rule);
}
.feature:nth-child(even) { grid-template-columns: minmax(0, 30em) minmax(0, 300px); }
.feature:nth-child(even) .feature-shot { order: 2; }
.feature-shot .phone { display: block; max-width: 300px; }
.feature h2 {
  margin: 0;
  font-size: clamp(1.625rem, 3.3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.015em;
}
:lang(en) .feature h2 { line-height: 1.15; }
.feature p { margin: 16px 0 0; font-size: 1.0625rem; }
.feature .needs-pro { margin-top: 18px; font-size: 0.8125rem; font-weight: 700; color: var(--soft); }

@media (max-width: 760px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-shot { order: 0; }
  .feature-shot .phone { max-width: 250px; margin: 0 auto; }
}

/* 無料とPro */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin: clamp(48px, 8vw, 104px) var(--pad) 0;
}
.plan { padding: var(--inset); border-radius: var(--radius); background: #f2f3f5; }
.plan.pro { background: var(--bg, var(--ink)); color: var(--fg, #fff); }
.plan h2 { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.plan .terms { margin: 4px 0 0; font-size: 0.9375rem; opacity: 0.75; }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; }
.plan li { padding: 11px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); line-height: 1.6; }

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
}

/* 締め */
.closing {
  margin: clamp(48px, 8vw, 104px) var(--pad) 0;
  padding: clamp(40px, 6vw, 80px) var(--inset);
  border-radius: var(--radius);
  background: var(--bg, var(--ink));
  color: var(--fg, #fff);
}
.closing h2 { margin: 0; font-size: clamp(1.625rem, 3.3vw, 2.5rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; }
.closing p { margin: 10px 0 0; opacity: 0.8; }
.closing .store {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--fg, #fff);
  color: var(--bg, var(--ink));
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}

.tile h2, .tile .what, .app-hero h1, .app-hero .what, .app-hero .lead, .shots figcaption, .pitch h1, .feature h2, .closing h2, .doc h1 { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .art > * { transition: none; }
  .tile-link:hover .art > * { transform: none; }
}

@media print {
  .lang, .art { display: none; }
}
