:root {
  --text: #1a1a1a;
  --muted: #5c6670;
  --border: #e5e5e5;
  --link: #0b7a6e;
  --bg: #fff;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --max: 42rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

body.lang-en,
body.lang-es,
body.lang-de,
body.lang-pt-br {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.lang-ko {
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

body.lang-zh-tw {
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.nav {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav a:hover,
.nav a.current {
  color: var(--teal-dark);
  text-decoration: underline;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
  margin-right: auto;
}

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  row-gap: 0.2rem;
  margin-left: 0.25rem;
}

.lang-switch__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch__link:hover,
.lang-switch__link.is-current {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch__sep {
  color: #c5ccd3;
  font-size: 0.82rem;
  user-select: none;
}

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

.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

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

header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
}

.updated,
.app-name {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
}

p { margin: 0 0 1rem; }

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li { margin-bottom: 0.35rem; }

a {
  color: var(--link);
  word-break: break-all;
}

a:hover { text-decoration: underline; }

.hero {
  background: linear-gradient(160deg, var(--teal-dark), var(--teal));
  color: #fff;
  padding: 3rem 1.25rem 3.25rem;
}

.hero .wrap {
  padding: 0;
}

.hero h1 {
  color: #fff;
  font-size: 1.85rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.92);
}

.hero .updated { color: rgba(255, 255, 255, 0.75); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
  align-items: start;
}

.shots figure {
  margin: 0;
  min-width: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f3d36;
  box-shadow: 0 6px 18px rgba(15, 61, 54, 0.12);
}

.shots figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 720px) {
  .shots {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}

.cta-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1.25rem;
}

.cta.store {
  background: #fff;
  color: var(--teal-dark) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.cta.store:hover {
  background: #f3fffd;
}

.cta.store-inline {
  background: var(--teal);
  color: #fff !important;
}

.cta.store-inline:hover {
  background: var(--teal-dark);
}

.cta.secondary {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.cta.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .wrap { padding: 4rem 1.5rem 5rem; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.15rem; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots figure:first-child { grid-column: 1 / -1; }
}
