:root {
  color-scheme: light;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --border: #e3e3e3;
  --link: #1d4ed8;
  --link-hover: #1e40af;
  --accent: #7f77dd;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", Meiryo, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

header.site-header .container {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.lang-toggle {
  display: inline-flex;
  gap: 4px;
  font-size: 14px;
}

.lang-toggle a,
.lang-toggle span {
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg);
}

.lang-toggle span[aria-current="true"] {
  color: var(--text);
  border-color: var(--text);
  font-weight: 600;
}

.lang-toggle a:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
}

h1 {
  font-size: 28px;
  line-height: 1.3;
  margin: 8px 0 4px;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 36px 0 8px;
  letter-spacing: 0.01em;
}

p, ul, ol {
  margin: 0 0 14px;
}

ul, ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--link-hover);
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.notice {
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding: 8px 14px;
  margin: 16px 0 28px;
  background: var(--bg-alt);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 13px;
}

footer.site-footer .container {
  padding-top: 20px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--muted);
}

.index-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-list li {
  margin: 0;
}

/* Tappable cards: card surface + chevron so it's obvious on mobile that
   each row is a link. */
.index-list a {
  display: block;
  position: relative;
  padding: 16px 44px 16px 16px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.index-list a::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
}

.index-list a:hover {
  color: var(--text);
  background: var(--bg);
  border-color: var(--accent);
}

.index-list a:active {
  background: var(--border);
}

.index-list .sub {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  margin-top: 2px;
}

.faq-section {
  margin-top: 24px;
}

.faq-section h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 32px 0 8px;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.faq-list > li {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  padding: 0;
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 32px 16px 4px;
  font-weight: 600;
  position: relative;
  color: var(--text);
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-item > summary:hover {
  color: var(--link-hover);
}

.faq-answer {
  padding: 0 4px 16px;
  color: var(--text);
}

.faq-answer p:last-child,
.faq-answer ul:last-child,
.faq-answer ol:last-child {
  margin-bottom: 0;
}

.contact-cta {
  display: inline-block;
  padding: 12px 20px;
  margin: 8px 0 4px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.contact-cta:hover {
  background: var(--link-hover);
  color: #ffffff;
}
