* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --accent: #0a84ff;
  --accent-soft: #f0f0f3;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
               "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--accent); }

/* ---- Language switcher ---- */
.lang-switch {
  display: none; /* JS 有効時のみ表示 */
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: flex-end;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
html.js .lang-switch { display: flex; }

.lang-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 30px 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  transition: background .15s;
}
.lang-field:hover { background: #e5e5ea; }
.lang-field:focus-within {
  background: #e5e5ea;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ネイティブの select をそのまま使う（モバイルでは OS のピッカーが出る）。
   見た目だけ外して、矢印は .lang-caret で描く。 */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 7px 0;
  cursor: pointer;
}
.lang-select:focus { outline: none; }
/* 展開時のリストは OS 側の描画なので、地の色を明示しておく */
.lang-select option { color: var(--text); background: var(--surface); }

.lang-globe,
.lang-caret {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.lang-globe { width: 15px; height: 15px; }
.lang-caret {
  position: absolute;
  right: 12px;
  width: 10px;
  height: 7px;
  stroke-width: 1.8;
}

/* 言語ごとのセクション。JS 無効時は日本語のみ表示 */
[data-lang] { display: none; }
[data-lang="ja"] { display: block; }
html.js [data-lang] { display: none; }
html.js [data-lang].is-active { display: block; }

/* ---- Landing (index) ---- */
.hero {
  background:
    radial-gradient(closest-side, rgba(10, 132, 255, 0.12), transparent) no-repeat center 0 / 100% 18rem,
    var(--surface);
  text-align: center;
  padding: 72px 24px 40px;
}
.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.18), 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 36px;
}
.badge img {
  height: 52px;
  transition: opacity .2s;
}
.badge img:hover { opacity: 0.85; }

/* スクリーンショットの帯。横スクロールで、収まる画面幅なら中央に寄せる */
.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  list-style: none;
  padding: 8px 24px 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.shots li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.shots li:first-child { margin-left: auto; }
.shots li:last-child { margin-right: auto; }
.shots img {
  display: block;
  width: 220px;
  height: auto;
  aspect-ratio: 600 / 1300;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
@media (max-width: 480px) {
  .shots img { width: 60vw; }
}

.features {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 32px 24px 40px;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  white-space: nowrap;
}
footer a:hover { text-decoration: underline; }

/* ---- Document pages (privacy / terms) ---- */
.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.doc h1 { font-size: 1.6rem; margin-bottom: 4px; }
.doc h2 { font-size: 1.1rem; margin-top: 2rem; margin-bottom: 0.4rem; color: var(--text); }
.doc p, .doc li { font-size: 0.95rem; }
.doc ul { padding-left: 1.4em; margin: 0.2rem 0; }
.doc li { margin: 4px 0; }
.doc a { text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }

.back {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}
.back:hover { text-decoration: underline; }

/* ---- Support ---- */
.support {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
.support h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.subtitle { font-size: 0.9rem; color: var(--muted); margin-bottom: 32px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
}
.card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.card p, .card li { font-size: 0.95rem; color: var(--muted); }
.card ul { padding-left: 1.4em; margin: 0.2rem 0; }
.card li { margin: 4px 0; }
.contact-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.contact-btn:hover { background: #000; }
