@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap");

:root {
  --bg-top: #e6f0ff;
  --bg-bottom: #f7f5ee;
  --ink-main: #1a2433;
  --ink-sub: #3d4a5f;
  --card-bg: rgba(255, 255, 255, 0.86);
  --card-border: rgba(157, 176, 214, 0.42);
  --accent-1: #0f4c81;
  --accent-2: #1f7a8c;
  --accent-soft: rgba(31, 122, 140, 0.14);
  --shadow-1: 0 28px 55px rgba(17, 40, 83, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink-main);
  background:
    radial-gradient(1300px 700px at -10% -25%, rgba(81, 125, 214, 0.24), transparent 70%),
    radial-gradient(900px 520px at 108% 8%, rgba(15, 76, 129, 0.19), transparent 72%),
    radial-gradient(720px 440px at 55% 108%, rgba(250, 197, 64, 0.12), transparent 70%),
    linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  line-height: 1.85;
}

.article-page {
  max-width: 940px;
  margin: 0 auto;
  padding: 34px 16px 52px;
  animation: pageReveal 420ms ease-out both;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(53, 83, 131, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 18px rgba(35, 68, 112, 0.1);
  color: #173d76;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 64, 130, 0.42);
  box-shadow: 0 12px 24px rgba(26, 69, 129, 0.14);
}

.article-shell {
  position: relative;
  padding: 30px 30px 28px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.article-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #0f4c81 0%, #1f7a8c 52%, #2aa7b8 100%);
}

.article-shell::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -210px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 38% 38%, rgba(45, 129, 173, 0.22), rgba(45, 129, 173, 0));
}

.article-meta {
  margin: 0 0 12px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2b5b82;
}

h1 {
  margin: 0 0 18px;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 700;
  font-size: clamp(1.72rem, 1.34rem + 1.2vw, 2.2rem);
  line-height: 1.44;
  letter-spacing: 0.02em;
  color: #12263d;
}

h2 {
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-1);
  font-size: 1.08rem;
  line-height: 1.55;
  color: #102d51;
}

p {
  margin: 0 0 12px;
  font-size: 1.01rem;
  color: var(--ink-sub);
}

ul {
  margin: 9px 0 14px;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  margin: 0 0 7px;
  padding: 7px 10px 7px 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: #253652;
}

li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-1));
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.2);
}

a {
  color: #0d4a87;
}

@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .article-page {
    padding-top: 22px;
  }

  .article-shell {
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  h2 {
    margin-top: 22px;
  }

  li {
    padding-left: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-page {
    animation: none;
  }

  .back-link {
    transition: none;
  }
}
/* ===== Add-ons for article components (TOC / Figures / Callouts / Tables / FAQ) ===== */

/* Smaller headings inside sections */
h3 {
  margin: 18px 0 10px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #12365f;
}

/* --- Figures / Images --- */
.article-hero,
.article-figure {
  margin: 16px 0 18px;
}

.article-hero img,
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(157, 176, 214, 0.42);
  box-shadow: 0 18px 42px rgba(17, 40, 83, 0.12);
}

.article-hero figcaption,
.article-figure figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #3a506b;
  letter-spacing: 0.02em;
}

/* Hero image gets a bit more emphasis */
.article-hero img {
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(17, 40, 83, 0.16);
}

/* --- Table of contents --- */
.toc {
  margin: 18px 0 22px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(157, 176, 214, 0.48);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 26px rgba(35, 68, 112, 0.10);
}

.toc-title {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #163a66;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25em;
  list-style: decimal;
}

.toc li {
  margin: 0 0 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: inherit;
}

.toc li::before {
  content: none;
}

.toc a {
  text-decoration: none;
  font-weight: 700;
  color: #0d4a87;
}

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

/* --- Callouts --- */
.callout {
  margin: 14px 0 18px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(31, 122, 140, 0.28);
  background: rgba(31, 122, 140, 0.10);
  box-shadow: 0 10px 22px rgba(35, 68, 112, 0.08);
}

.callout p {
  margin-bottom: 10px;
}

.callout ul {
  margin: 8px 0 0;
}

.callout--summary {
  border-color: rgba(15, 76, 129, 0.30);
  background: rgba(15, 76, 129, 0.08);
}

.callout--cta {
  border-color: rgba(42, 167, 184, 0.34);
  background: rgba(42, 167, 184, 0.10);
}

/* inline code for instructions like href="#" */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  padding: 0.15em 0.38em;
  border-radius: 8px;
  background: rgba(15, 76, 129, 0.10);
  border: 1px solid rgba(15, 76, 129, 0.18);
  color: #12365f;
}

/* --- Compare table --- */
.table-wrap {
  overflow-x: auto;
  margin: 14px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(157, 176, 214, 0.48);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 26px rgba(35, 68, 112, 0.10);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  table-layout: fixed;
}

.compare-table th:nth-child(1),
.compare-table td:nth-child(1) {
  width: 22%;
}

.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
  width: 20%;
}

.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
  width: 58%;
}

.compare-table th,
.compare-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(157, 176, 214, 0.35);
  vertical-align: top;
  color: #253652;
  font-size: 0.98rem;
}

.compare-table th {
  background: rgba(15, 76, 129, 0.08);
  color: #102d51;
  font-weight: 900;
  text-align: left;
}

.compare-table tbody tr:hover td {
  background: rgba(31, 122, 140, 0.06);
}

/* --- FAQ (details/summary) --- */
details {
  margin: 10px 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(157, 176, 214, 0.48);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 22px rgba(35, 68, 112, 0.08);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 900;
  color: #163a66;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  background: rgba(15, 76, 129, 0.06);
  border-bottom: 1px solid rgba(157, 176, 214, 0.35);
}

details p {
  padding: 10px 14px 14px;
  margin: 0;
}

/* --- Affiliate disclosure / note --- */
.note,
.affiliate-disclosure {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #3a506b;
}

.affiliate-disclosure {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed rgba(157, 176, 214, 0.58);
}

/* --- Link buttons for affiliate entries (optional) --- */
a.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 129, 0.28);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 8px 18px rgba(35, 68, 112, 0.10);
  text-decoration: none;
  font-weight: 900;
}

a.btn-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(26, 69, 129, 0.14);
}

/* Mobile refinements */
@media (max-width: 700px) {
  .toc {
    padding: 14px 12px 12px;
    border-radius: 16px;
  }

  .article-hero img,
  .article-figure img {
    border-radius: 16px;
  }

  .callout {
    padding: 12px 12px 10px;
    border-radius: 16px;
  }

  summary {
    padding: 11px 12px;
  }
}
/* 小さめの説明用図 */
.figure-small img {
  max-width: 520px;
  margin: 0 auto;
}