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

:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --surface2: #F2F2F7;
  --accent: #FFD500;
  --accent-dark: #E6BF00;
  --text: #000000;
  --text-secondary: #6C6C70;
  --text-tertiary: #AEAEB2;
  --separator: rgba(60,60,67,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--separator);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.logo-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.lang-switcher {
  display: flex;
  gap: 3px;
  background: rgba(118,118,128,0.12);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}

.lang-btn.active {
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.lang-btn:not(.active):hover {
  color: var(--text);
}

/* ── Main ── */
main {
  flex: 1;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  padding: 36px 20px 72px;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--text);
}

.page-meta {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ── Content card ── */
.content-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.content-card section {
  padding: 20px 22px;
}

.content-card section + section {
  border-top: 1px solid var(--separator);
}

.content-card h2 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.content-card p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.65;
}

.content-card p:last-child { margin-bottom: 0; }

.content-card strong {
  font-weight: 600;
  color: var(--text);
}

.content-card a {
  color: #007AFF;
  text-decoration: none;
}

.content-card a:hover {
  text-decoration: underline;
}

/* Address block */
address {
  font-style: normal;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* Warning / notice box */
.notice-box {
  background: rgba(255,213,0,0.12);
  border: 1px solid rgba(255,213,0,0.4);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-top: 10px;
}

.notice-box strong {
  color: #7A6400;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--separator);
  background: var(--surface);
  padding: 18px 20px;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.footer-inner a {
  color: #007AFF;
  text-decoration: none;
  font-size: 13px;
}

.footer-inner a:hover { text-decoration: underline; }

.footer-sep {
  color: var(--text-tertiary);
  font-size: 13px;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 13px;
  margin-left: auto;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .header-inner { padding: 10px 16px; }
  main { padding: 24px 16px 56px; }
  .page-title { font-size: 26px; }
  .content-card section { padding: 16px 16px; }
  .footer-copy { margin-left: 0; }
}
