/* SimpleShot — 公開ページ共通スタイル
   ライト／ダークはOSの設定に追従。外部リソース（Webフォント等）は読み込まない。 */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --fg: #1d1d1f;
  --fg-muted: #5f5f66;
  --border: #e2e2e6;
  --accent: #0a6cff;
  --accent-soft: #eaf1ff;
  --radius: 14px;
  --maxw: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --bg-soft: #1c1c20;
    --fg: #f2f2f4;
    --fg-muted: #a4a4ad;
    --border: #2f2f36;
    --accent: #64a0ff;
    --accent-soft: #1a2536;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
}

/* タイトルだけ左、ナビと言語切替は右端へ寄せる。行が折り返しても
   （狭い画面）それぞれの行で右揃えのまま。 */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1.25rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 0 0;
  letter-spacing: 0.02em;
}

.site-title a { color: inherit; text-decoration: none; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1rem;
  font-size: 0.9rem;
}

.site-nav a { color: var(--fg-muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* ---- 言語切替 ---- */

/* ドロップダウンは JS があってはじめて機能するため、無効時は出さない
   （そのときは .doc がすべて縦に並ぶ）。 */
.lang-select { display: none; }

html.js .lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: var(--fg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 2rem 0.3rem 0.85rem;
  line-height: 1.5;
  cursor: pointer;
}

.lang-select select:hover { border-color: var(--accent); }

.lang-select select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 右端の下向き山形。select 自体の矢印は appearance: none で消してある。 */
.lang-select::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* 言語セクション。JS が有効なときは選択中の1言語だけを表示し、
   無効なときは全言語を縦に並べて（見出し付きで）すべて読めるようにする。 */

.doc + .doc {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
}

.lang-name {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

html.js .doc { display: none; }
html.js .doc.is-active { display: block; }
html.js .doc + .doc { border-top: 0; margin-top: 0; padding-top: 0; }
html.js .lang-name { display: none; }

/* 狭い画面ではヘッダーが3段（タイトル／ナビ／言語）になり画面を圧迫するため固定しない。 */
@media (max-width: 640px) {
  .site-header { position: static; }
}

main { padding: 2.5rem 0 3.5rem; }

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.85rem;
  padding: 1.5rem 0 2.5rem;
}

.site-footer p { margin: 0.25rem 0; }

/* ---- 文字組み ---- */

h1 {
  font-size: 1.7rem;
  line-height: 1.45;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.25rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}

p, li { margin: 0.6rem 0; }

ul, ol { padding-left: 1.4rem; }

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

.lead {
  color: var(--fg-muted);
  font-size: 1.02rem;
}

.meta {
  color: var(--fg-muted);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---- パーツ ---- */

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}

.card h2, .card h3 { margin-top: 0; }

.note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  margin: 0.5rem 0;
}

.button:hover { opacity: 0.88; }

.link-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.link-list a {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg-soft);
}

.link-list a:hover { border-color: var(--accent); }

.link-list .label { font-weight: 600; }

.link-list .desc {
  display: block;
  color: var(--fg-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.table-scroll { overflow-x: auto; margin: 1.25rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.93rem;
}

th, td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

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

dl { margin: 1rem 0; }
dt { font-weight: 600; margin-top: 1.25rem; }
dd { margin: 0.35rem 0 0; color: var(--fg); }

.updated { color: var(--fg-muted); font-size: 0.85rem; }

/* ---- ホームのヒーロー（index.html） ----
   アイコン・タイトル・App Store バッジを中央に置くだけの最小限の装飾。
   背景の淡いグラデーションはアプリアイコンの色（シアン→パープル）に合わせている。 */

:root {
  --hero-a: rgba(34, 201, 240, 0.16);
  --hero-b: rgba(197, 108, 245, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --hero-a: rgba(34, 201, 240, 0.20);
    --hero-b: rgba(197, 108, 245, 0.20);
  }
}

.hero {
  text-align: center;
  margin: 0 0 2.5rem;
  padding: 2.25rem 1.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 120% at 50% 0%, var(--hero-a) 0%, var(--hero-b) 55%, transparent 100%),
    var(--bg-soft);
}

.hero h1 { margin: 0 0 0.35rem; }

.app-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.1rem;
  border-radius: 24.5%;      /* iOS のアイコン角丸に近づけた比率 */
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tagline {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--fg-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.store { margin: 1.5rem 0 0; }

/* Apple 提供の公式バッジ画像。改変せずそのまま置き、周囲に余白を確保する
   （バッジの高さの 1/4 以上）。ダークでは白版へ差し替わる（<picture> 側）。 */
.store-badge {
  display: inline-block;
  line-height: 0;
  padding: 0.75rem;
  border-radius: 10px;
}

.store-badge img { height: 50px; width: auto; }

.store-badge:hover { opacity: 0.85; }

.store-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- できること（index.html） ---- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.6rem;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* 先頭のチェック。文字ではなく罫線で描くのでフォントに依存しない。 */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  width: 0.42rem;
  height: 0.8rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 480px) {
  .hero { padding: 1.75rem 1rem 1.5rem; }
  .app-icon { width: 92px; height: 92px; }
  .store-badge img { height: 44px; }
}
