:root {
  --color-bg: #ffffff;
  --color-surface: #f5f8fc;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-primary: #0b5ed7;
  --color-primary-hover: #084298;
  --color-primary-soft: #e8f1ff;
  --color-primary-border: #b6d4fe;
  --color-accent: #0369a1;
  --color-border: #e2e8f0;
  --color-card: #ffffff;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-btn: 0 2px 8px rgba(11, 94, 215, 0.22);
  --shadow-btn-hover: 0 6px 20px rgba(11, 94, 215, 0.32);
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  text-decoration: none;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1.25rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.85rem 0;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
}

.nav-mobile a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 0.5rem;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-toggle:hover {
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-sm);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-actions .btn {
  display: none;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-stack);
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #1a6eff 0%, var(--color-primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #3d84ff 0%, var(--color-primary-hover) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-primary-border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: #dbeafe;
  color: var(--color-primary-hover);
  border-color: #93c5fd;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  background: linear-gradient(165deg, var(--color-primary-soft) 0%, #f0f7ff 42%, var(--color-bg) 100%);
  padding: 3rem 1.25rem 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(11, 94, 215, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(3, 105, 161, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.65rem, 4.8vw, 2.45rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero .lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--color-muted);
  max-width: 38em;
  line-height: 1.75;
}

.hero .note {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  max-width: 44em;
  line-height: 1.65;
}

.hero .btn-primary {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

main {
  overflow-x: hidden;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
}

.section--tight {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.page-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.page-intro {
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 46em;
  font-size: 1.02rem;
  line-height: 1.75;
}

.trust-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .trust-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.trust-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-border);
  transform: translateY(-2px);
}

.trust-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-primary);
}

.trust-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.article-card .category {
  margin-bottom: 0.35rem;
}

.article-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.06rem;
  line-height: 1.45;
  font-weight: 800;
}

.article-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.article-card p {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  flex: 1;
  line-height: 1.65;
}

.article-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.risk-box {
  background: linear-gradient(180deg, #fffbeb 0%, #fff8e1 100%);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem;
  box-shadow: var(--shadow-xs);
}

.risk-box h2 {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: #92400e;
}

.risk-box ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text);
  font-size: 0.93rem;
  line-height: 1.7;
}

.risk-box p {
  margin-top: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.15rem 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-text);
}

.faq-item p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.site-footer {
  background: linear-gradient(180deg, var(--color-surface) 0%, #eef2f7 100%);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.25rem;
  margin-top: 2.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-disclaimer {
  font-size: 0.76rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin: 0;
}

.breadcrumb {
  font-size: 0.86rem;
  color: var(--color-muted);
  margin-bottom: 1.15rem;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--color-muted);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.cta-block {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, #dbeafe 100%);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin: 2.25rem 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-block p {
  margin: 0 0 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.02rem;
}

.cta-block .btn-primary {
  min-width: 200px;
}

.related-links {
  margin: 2.25rem 0;
  padding: 1.4rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.related-links h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.related-links ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.85;
}

.related-links a {
  font-weight: 600;
}

.source-links,
.answer-box {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  box-shadow: var(--shadow-xs);
}

.answer-box {
  border-color: var(--color-primary-border);
  background: #f8fbff;
}

.source-links h2,
.answer-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.source-links ul {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.85;
}

.source-links a {
  font-weight: 700;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.info-table th,
.info-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  background: var(--color-surface);
  font-weight: 800;
  color: var(--color-text);
}

.muted {
  color: var(--color-muted);
  font-size: 0.86rem;
}

.positive {
  color: #047857;
  font-weight: 800;
}

.negative {
  color: #b91c1c;
  font-weight: 800;
}

.market-table td:first-child {
  min-width: 11rem;
}

.matrix-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 0;
}

.matrix-list li:last-child {
  border-bottom: 0;
}

.matrix-list span {
  color: var(--color-muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.tool-steps {
  margin: 0 0 2rem;
  padding-left: 1.4rem;
  line-height: 1.9;
}

.article-body h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.14rem;
  font-weight: 800;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

.article-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1rem;
  line-height: 1.8;
}

.article-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.75;
}

.article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  line-height: 1.8;
}

.faq-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 2rem 0 0.5rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions .btn {
    display: inline-flex;
  }

  .nav-mobile {
    display: none !important;
  }

  .nav-mobile.is-open {
    display: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
