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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  line-height: 1.8;
  color: #1a1a1a;
  background: #fff;
  font-size: 15px;
}

.container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem 5rem; }

/* Header */
.site-header {
  padding: 1.5rem 0 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wordmark {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.wordmark-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: block;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 0; }

.site-nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
}

.site-nav a:hover { color: #1a1a1a; }

/* Page heading */
.page-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; }
.page-updated { color: #999; font-size: 0.82rem; margin-bottom: 2.5rem; }

/* Content */
h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.5rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eee;
}

h3 { font-size: 0.95rem; font-weight: 600; margin: 1.5rem 0 0.4rem; }
p { margin-bottom: 0.85rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 0.85rem; }
li { margin-bottom: 0.2rem; }
strong { font-weight: 600; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.875rem; }
th {
  background: #f7f7f7;
  font-weight: 600;
  text-align: left;
  padding: 0.55rem 0.85rem;
  border: 1px solid #e0e0e0;
}
td { padding: 0.55rem 0.85rem; border: 1px solid #e0e0e0; vertical-align: top; }

/* Dividers */
.section-divider { border: none; border-top: 2px solid #eee; margin: 3rem 0; }
.lang-divider { border: none; border-top: 1px solid #e8e8e8; margin: 0.5rem 0 2rem; }

/* Note */
.note {
  background: #f8f8f8;
  border-left: 3px solid #ccc;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #555;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e8e8e8;
  color: #aaa;
  font-size: 0.78rem;
  text-align: center;
}
.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Index page specific */
.hero { padding: 2.5rem 0 1.5rem; }
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.hero h1 { font-size: 1.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.hero p { color: #555; }

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  margin-top: 1.75rem;
  border: 1px solid #333;
  transition: opacity 0.15s;
}
.appstore-badge:hover { opacity: 0.75; }
.appstore-badge-icon { width: 22px; height: 22px; flex-shrink: 0; }
.appstore-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.appstore-badge-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #fff;
}
.appstore-badge-main {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}
.appstore-coming-soon {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #aaa;
}

.legal-links { margin-top: 3rem; }
.legal-links > h2 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  border: none;
  margin-bottom: 0.75rem;
  padding: 0;
}
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e8e8e8; }
.link-list li { border-bottom: 1px solid #e8e8e8; margin: 0; }
.link-list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.9rem 0.25rem;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
}
.link-list a:hover { color: #555; }
.link-list .en { font-size: 0.78rem; color: #aaa; }

.contact-box {
  margin-top: 3rem;
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 6px;
}
.contact-box h2 { font-size: 0.95rem; border: none; margin: 0 0 0.5rem; padding: 0; }
.contact-box a { color: #1a1a1a; font-weight: 600; }

/* Support page */
.support-email {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.support-email a { color: #1a1a1a; text-decoration: none; }

/* Responsive */
@media (max-width: 600px) {
  .page-title { font-size: 1.35rem; }
  h2 { font-size: 1.05rem; }
  table { font-size: 0.8rem; }
  th, td { padding: 0.45rem 0.6rem; }
  .hero h1 { font-size: 1.5rem; }
}
