/* フォトスリム / PhotoSlim – Support & Privacy Site */
:root {
  --paper:        #F8F5F0;
  --paper-deep:   #EDE8E0;
  --track:        #E8E4DF;
  --rule:         #D4CFC9;
  --ink:          #1A1A1A;
  --ink-muted:    #6B6560;
  --ink-faint:    #A09793;
  --danger:       #B42818;
  --accent:       #2C5F8A;
  --white:        #FFFFFF;

  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --radius: 12px;
  --max-w: 840px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Language toggle ─────────────────────────── */
.lang-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 12px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.lang-btn {
  background: none;
  border: 1.5px solid var(--rule);
  border-radius: 99px;
  padding: 4px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-muted);
  transition: all 0.15s;
}
.lang-btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.lang-btn:hover:not(.active) { border-color: var(--ink); color: var(--ink); }

/* ── Header / Hero ───────────────────────────── */
.site-header {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 72px 24px 64px;
}
.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  background: var(--paper);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
}
.site-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.site-header .tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Container ───────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section ─────────────────────────────────── */
section { padding: 64px 0; border-bottom: 1px solid var(--rule); }
section:last-child { border-bottom: none; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  line-height: 1.25;
}

/* ── Screenshots gallery ─────────────────────── */
.screenshots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots::-webkit-scrollbar { height: 4px; }
.screenshots::-webkit-scrollbar-track { background: var(--track); border-radius: 2px; }
.screenshots::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }

.screenshot-item {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
.screenshot-item img {
  width: 240px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  display: block;
}
.screenshot-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 10px;
  line-height: 1.4;
}

/* ── Feature list ────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--track);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── How to use ──────────────────────────────── */
.steps { list-style: none; counter-reset: step; margin-top: 8px; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  content: counter(step);
}
.step-num::after { content: counter(step); }
.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ── FAQ ─────────────────────────────────────── */
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; margin-bottom: 8px; font-size: 0.97rem; }
.faq-a { font-size: 0.9rem; color: var(--ink-muted); }

/* ── Contact ─────────────────────────────────── */
.contact-box {
  background: var(--track);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.contact-box p { color: var(--ink-muted); margin-bottom: 20px; font-size: 0.95rem; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.8; }
.btn-hero {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  padding: 12px 32px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.15s;
}
.btn-hero:hover { opacity: 0.8; }

/* ── Privacy specific ────────────────────────── */
.policy-section { margin-bottom: 40px; }
.policy-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.policy-section p, .policy-section li {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.policy-section ul { padding-left: 1.4em; }
.highlight-box {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-faint);
}
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }

/* ── i18n ────────────────────────────────────── */
[data-lang="en"] { display: none; }
body.en [data-lang="ja"] { display: none; }
body.en [data-lang="en"] { display: unset; }
/* Block-level elements need block display */
body.en section[data-lang="en"],
body.en div[data-lang="en"],
body.en li[data-lang="en"],
body.en p[data-lang="en"] { display: block; }
body.en ul[data-lang="en"] { display: block; }

@media (max-width: 600px) {
  .site-header h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.4rem; }
  .screenshot-item { flex: 0 0 180px; }
  .screenshot-item img { width: 180px; }
}
