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

:root {
  /* Brand */
  --green:        #13bf30;
  --green-dark:   #11a629;
  --green-pale:   #e5ffea;   /* hero / section tint */
  --green-pale2:  #cff9d4;   /* alternate section tint */
  --aqua-pale:    #e0fffe;   /* accent section bg */
  --gray-pale:    #f1f4f9;   /* card bg / light sections */

  /* Text */
  --text:         #212529;
  --text-muted:   #5a6370;
  --text-light:   #8a939c;

  /* Surfaces */
  --bg:           #ffffff;
  --bg-card:      #ffffff;
  --bg-nav:       #ffffff;
  --border:       #e2e8f0;

  /* Misc */
  --radius:       10px;
  --shadow:       0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 0.97rem;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }

/* ── Nav ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  background: var(--bg-nav);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

header nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 60px;
}

header nav .logo {
  font-weight: 900;
  color: var(--text);
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

header nav .logo::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

header nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav a {
  color: var(--text-muted);
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

header nav a:hover {
  color: var(--text);
  background: var(--green-pale);
}

header nav .logo:hover { background: none; color: var(--text); }

/* ── Main ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

/* ── Trust hero ── */
.trust-hero {
  padding: 3.5rem 0 2rem;
}

.trust-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* ── Tab bar ── */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
  gap: 0;
  position: sticky;
  top: 60px;          /* sits flush below the 60px sticky nav */
  z-index: 10;
  background: var(--bg);
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--green-dark); border-bottom-color: var(--green); }

/* ── Tab panels ── */
.tab-panel { padding-top: 2.5rem; }
.hidden { display: none !important; }

/* ── Overview layout ── */
.overview-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}

.overview-section { margin-bottom: 2.5rem; }

.overview-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.overview-section p {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

/* ── CTA row ── */
.cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 56px;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-link {
  color: var(--green-dark);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--green-dark);
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  transition: background 0.15s, color 0.15s;
}

.btn-link:hover {
  background: var(--green-pale);
  color: var(--green-dark);
}

/* ── Compliance cards ── */
.compliance-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.compliance-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compliance-logo-icon { font-size: 1.2rem; }
.compliance-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 0.9rem 0;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}

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

.faq-item summary::after {
  content: '›';
  font-size: 1.3rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(90deg); }

.faq-item p {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Controls header ── */
.controls-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.controls-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.controls-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
}

.view-all-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

.view-all-btn:hover { color: var(--text); }

/* ── Control cards grid ── */
.control-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.control-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.control-card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(19,191,48,0.10);
}

.control-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.control-card-title { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.control-card-arrow { color: var(--text-muted); font-size: 1.1rem; }

.control-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.control-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.check-icon {
  color: var(--green-dark);
  background: rgba(19,191,48,0.12);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.control-card-more {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Controls tab layout ── */
.controls-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.controls-sidebar { position: sticky; top: 112px; }

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-light);
  margin: 0 0 0.75rem;
}

.controls-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar-btn {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  font-size: 0.87rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.sidebar-btn:hover { background: var(--green-pale); color: var(--text); }

.sidebar-btn.active {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 700;
}

/* ── Controls detail ── */
.category-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.detail-list li:last-child { border-bottom: none; }

.detail-check {
  color: var(--green-dark);
  background: rgba(19,191,48,0.12);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-list strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.detail-list p {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.control-ref {
  display: inline-block;
  font-size: 0.73rem;
  color: var(--green-dark);
  background: rgba(19,191,48,0.08);
  border: 1px solid rgba(19,191,48,0.25);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-family: monospace;
}

/* ── Footer ── */
footer {
  background: #1d1d1d;
  padding: 1.75rem 2rem;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin-top: 4rem;
}

footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: #fff; }

/* ── Certification badges ── */
.cert-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin-bottom: 3rem;
}

.cert-badge-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}

.cert-badge-card:hover { border-color: var(--green); }

.cert-badge-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cert-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }

.cert-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.cert-desc {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cert-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cert-links a {
  font-size: 0.82rem;
  color: var(--green-dark);
  font-weight: 500;
}

/* ── Legal summaries ── */
.legal-summaries {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin-bottom: 3rem;
}

.legal-summary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.legal-summary-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.legal-summary-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.legal-link {
  font-size: 0.82rem;
  color: var(--green-dark);
  font-weight: 600;
  white-space: nowrap;
}

.legal-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-points li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.legal-points li:last-child { border-bottom: none; }
.legal-points strong { color: var(--text); }

.ai-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0;
  background: var(--gray-pale);
}

/* ── FAQ page ── */
.faq-page {
  max-width: 720px;
  padding-top: 1rem;
}

.faq-section { margin-bottom: 2.5rem; }

.faq-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-source {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  transition: color 0.12s;
}

.faq-source:hover { color: var(--green-dark); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .overview-layout { grid-template-columns: 1fr; }
  .control-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .controls-layout { grid-template-columns: 1fr; }
  .controls-sidebar { position: static; }
  nav ul { display: none; }
  .trust-hero h1 { font-size: 2rem; }
}
