﻿@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap");

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

:root {
  --bg-primary: #fff;
  --bg-secondary: #f8fafc;
  --text-primary: #1a1a1a;
  --text-secondary: #4b5563;
  --accent-primary: #1e3a8a;
  --accent-light: #eff6ff;
  --link-blue: #1a0dab;
  --border: #e5e7eb;
}

body {
  font-family: "Lato", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.3px;
  opacity: 0;
  animation: fade .5s ease forwards;
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

.breadcrumb {
  max-width: none;
  margin: 0;
  padding: 1.25rem 2rem 0.75rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--accent-light) 100%);
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  list-style-type: none;
}

.breadcrumb li {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-type: none;
  color: var(--text-secondary);
}

.breadcrumb li::marker {
  content: "";
}

.breadcrumb li::after {
  content: "/";
  margin-left: 0.35rem;
  color: #9ca3af;
}

.breadcrumb li:last-child::after {
  content: "";
  margin-left: 0;
}

.breadcrumb a {
  color: var(--link-blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

header.article-header {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--accent-light) 100%);
  border-bottom: 3px solid var(--accent-primary);
  padding: 2rem;
  margin-bottom: 3rem;
}

.article-meta {
  max-width: 800px;
  margin: 0 auto;
}

.article-category {
  display: inline-block;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

h1.article-title {
  font-family: "Lato", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-excerpt {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-link {
  color: var(--link-blue);
  text-decoration: none;
  font-weight: 600;
}

.author-link:hover {
  text-decoration: underline;
}

.author-given-name {
  display: inline-block;
  font-size: 1em;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.3rem;
}

.author-family-name {
  color: #9ca3af;
  font-weight: 600;
}

main {
  max-width: 800px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.table-of-contents {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  border-radius: 4px;
}

.answer-box {
  background: #0f2a5f;
  color: #fff;
  padding: 1.75rem 2rem;
  margin: 2rem 0 2.75rem;
  border-radius: 8px;
}

.answer-box h2 {
  border-bottom: 0;
  border-left: 0;
  padding-bottom: 0;
  padding-left: 0;
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #fff;
}

.answer-box h2::before {
  content: "✓";
  display: inline-block;
  color: #7dd3fc;
  font-size: 1rem;
  letter-spacing: 0;
  margin: 0 0.55rem 0 0;
  text-transform: none;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.answer-box p {
  color: #fff;
}

.decision-guide {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0 2.75rem;
}

.decision-guide h2 {
  border-left: 4px solid var(--accent-primary);
  border-bottom: 0;
  padding-left: 0.9rem;
  padding-bottom: 0;
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.decision-guide h2::before {
  display: none;
}

.decision-guide-intro {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.decision-question-list {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.decision-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.decision-check:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.08);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.decision-check-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-primary);
  border-radius: 4px;
  margin-top: 0.15rem;
  position: relative;
  flex: 0 0 auto;
}

.decision-check:hover .decision-check-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 12px;
  border: solid var(--accent-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.decision-check strong {
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.35rem;
}

.decision-check p {
  margin: 0;
}

.section-answer,
.definition-sentence {
  padding: 20px 0 0;
  margin: -0.5rem 0 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.toc-title {
  font-family: "Lato", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.toc-list {
  margin-left: 1.2rem;
}

.toc-list a {
  color: var(--link-blue);
  text-decoration: none;
  font-weight: 500;
}

main a {
  color: var(--link-blue);
}

main a:hover {
  text-decoration: underline;
}

h2 {
  font-family: "Lato", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  border-bottom: 0;
  border-left: 5px solid var(--accent-primary);
  padding: 0.15rem 0 0.15rem 1rem;
}

h2::before {
  content: attr(data-number);
  display: block;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  background: var(--accent-light);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

h3::before {
  content: none;
}

p {
  margin-bottom: 0.95rem;
  color: var(--text-secondary);
}

ul,
ol {
  margin-left: 2rem;
  margin-bottom: 1.15rem;
}

li {
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
}

main ul:not(.toc-list) {
  margin-left: 0;
  list-style: none;
}

main ul:not(.toc-list) li {
  position: relative;
  padding-left: 1.65rem;
}

main ul:not(.toc-list) li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #fff;
  border: 1px solid var(--border);
}

.eyecatch {
  margin: 0 0 3rem;
}

.eyecatch img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.eyecatch figcaption {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

th {
  background: var(--accent-primary);
  color: #fff;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:nth-child(even) {
  background: var(--bg-secondary);
}

aside.cta-section {
  background: #0f2a5f;
  color: #fff;
  padding: 3rem 2rem;
  margin: 4rem 0;
  border-radius: 4px;
  text-align: center;
}

.cta-section h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: transparent;
  padding: 0;
}

.cta-section h3::before {
  content: "✓";
  display: inline-block;
  color: #7dd3fc;
  margin-right: 0.55rem;
  font-weight: 700;
}

.cta-section p {
  color: #fff;
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--accent-primary);
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(30, 58, 138, 0.2);
}

.credentials {
  background: var(--bg-secondary);
  padding: 2rem 2rem 2.25rem;
  margin: 0 0 2.5rem;
  border-radius: 4px;
  border-top: 3px solid var(--accent-primary);
}

.credentials h4 {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.process-visual {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0 2.75rem;
}

.process-visual h4 {
  color: var(--accent-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow-step;
}

.flow-steps li {
  position: relative;
  min-height: 82px;
  margin: 0;
  padding: 1rem 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.06);
}

.flow-steps li::before {
  counter-increment: flow-step;
  content: counter(flow-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.flow-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -0.72rem;
  transform: translateY(-50%);
  color: var(--accent-primary);
  font-weight: 900;
}

.flow-steps.compact {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.cycle-visual {
  background: radial-gradient(circle at center, #fff 0%, #f8fafc 58%, #eff6ff 100%);
}

.cycle-visual .flow-steps li:last-child::after {
  content: "↺";
  position: absolute;
  top: -0.75rem;
  right: 0.75rem;
  transform: none;
  color: #0d9488;
  font-size: 1.2rem;
  font-weight: 900;
}

.faq-list {
  margin: 2rem 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item[open] summary {
  background: var(--accent-light);
}

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

.faq-item p {
  padding: 1rem 1.1rem 1.1rem;
  margin: 0;
  border-top: 1px solid var(--border);
}

.faq-q,
.faq-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 800;
}

.faq-q {
  background: var(--accent-primary);
  color: #fff;
}

.faq-a {
  background: #0d9488;
  color: #fff;
  margin-right: 0.55rem;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-card.has-thumb {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  align-items: start;
}

.article-card-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.article-card-thumb img {
  display: block;
  width: 100%;
  height: 146px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card a {
  color: var(--text-primary);
  text-decoration: none;
}

.article-card a:hover {
  color: var(--accent-primary);
}

.article-card h2,
.article-card h3 {
  border-bottom: 0;
  border-left: 0;
  font-size: 1.12rem;
  line-height: 1.5;
  padding-bottom: 0;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0.75rem;
  background: transparent;
}

.article-card h2::before,
.article-card h3::before {
  display: none;
}

.article-card-meta {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .article-card.has-thumb {
    grid-template-columns: 96px 1fr;
    gap: 0.85rem;
  }

  .article-card.has-thumb {
    padding: 1rem;
  }

  .article-card.has-thumb h2 {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 0.45rem;
  }

  .article-card.has-thumb p {
    font-size: 0.92rem;
  }

  .article-card-thumb img {
    height: 54px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-steps li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -0.9rem;
    transform: translateX(50%) rotate(90deg);
  }

  h1.article-title {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  main {
    padding: 0 1rem;
  }

  header.article-header {
    padding: 2rem 1rem;
  }
}
