:root {
  --bg-base: #fbf6ec;
  --bg-mist-1: #f4ead7;
  --bg-mist-2: #e9d6bc;
  --bg-shadow: #d6bc9c;
  --text-deep: #4a3a2c;
  --text-mid: #826f5b;
  --text-light: #aa9680;
  --pale-pink: #f0d5c8;
  --pale-honey: #ead8b8;
  --pale-rose: #ecc8b9;
  --accent: #9a8770;
  --accent-deep: #6a5848;
  --walnut: #a07252;
  --line: rgba(74, 58, 44, 0.13);
  --line-soft: rgba(74, 58, 44, 0.07);
  --serif-jp: "Noto Serif JP", serif;
  --serif-en: "Cormorant Garamond", serif;
  --hand: "Klee One", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-deep);
  font-family: var(--serif-jp);
  font-weight: 300;
  line-height: 2.0;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(240, 213, 200, 0.45) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 70%, rgba(234, 216, 184, 0.38) 0%, transparent 45%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-mist-1) 75%, var(--bg-mist-2) 100%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; }

/* ========== Header ========== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 18px 50px;
  background: rgba(251, 246, 236, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text-deep);
  text-decoration: none;
}
.logo small {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 3px;
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.15em;
}
nav ul { list-style: none; display: flex; gap: 36px; }
nav a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 400;
}

/* ========== パンくず ========== */
.crumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 110px 40px 0;
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.15em;
}
.crumb a { color: var(--text-light); text-decoration: none; }
.crumb a:hover { color: var(--text-mid); }
.crumb span.sep { margin: 0 12px; }

/* ========== 記事ヒーロー ========== */
.article-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px 70px;
  text-align: center;
  position: relative;
}
.article-cat {
  display: inline-block;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--walnut);
  margin-bottom: 32px;
}
.article-cat::before, .article-cat::after { content: "—"; margin: 0 14px; color: var(--text-light); }

.article-hero h1 {
  font-size: 38px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
  color: var(--text-deep);
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.18em;
  font-family: var(--serif-en);
  font-style: italic;
}
.article-meta time::before { content: "·  "; }

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hero-deco .feather-mini {
  position: absolute;
  top: 30px;
  right: -20px;
  width: 50px;
  opacity: 0.25;
  transform: rotate(28deg);
}
.hero-deco .lights-mini {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-deco .lights-mini circle {
  transform-origin: center;
  transform-box: fill-box;
  animation: heroTwinkle 6s ease-in-out infinite;
}
.hero-deco .lights-mini circle:nth-child(2n) { animation-duration: 9s; animation-delay: -2s; }
.hero-deco .lights-mini circle:nth-child(3n) { animation-duration: 11s; animation-delay: -5s; }
@keyframes heroTwinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.85; }
}

/* ========== リード ========== */
.lead-block {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
.lead-block p {
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-mid);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: center;
}
.lead-block .lead-divider {
  margin: 60px auto 0;
  width: 200px;
  height: 30px;
  display: block;
  opacity: 0.7;
}

/* ========== 目次 ========== */
.toc {
  max-width: 620px;
  margin: 0 auto 80px;
  padding: 38px 44px;
  background: rgba(251, 246, 236, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.toc-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 24px;
}
.toc-label::before, .toc-label::after { content: "·"; margin: 0 14px; }
.toc ol {
  list-style: none;
  counter-reset: tocnum;
}
.toc li {
  counter-increment: tocnum;
  border-bottom: 1px dashed var(--line-soft);
  padding: 14px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.toc li:last-child { border-bottom: none; }
.toc li::before {
  content: counter(tocnum, decimal-leading-zero);
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  min-width: 28px;
}
.toc a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  flex: 1;
}
.toc a:hover { color: var(--text-deep); }

/* ========== 本文 ========== */
article.body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 40px;
}

article.body h2 {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: var(--text-deep);
  margin: 80px 0 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
article.body h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--walnut);
}
article.body h2 .num {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.25em;
  margin-bottom: 14px;
  font-weight: 400;
}
article.body h2 .num .chap-lights {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
article.body h2 .num .chap-lights span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0c8, var(--walnut) 90%);
  opacity: 0.55;
  animation: chapTwinkle 5s ease-in-out infinite;
}
article.body h2 .num .chap-lights span:nth-child(2n) { animation-delay: -1.5s; }
article.body h2 .num .chap-lights span:nth-child(3n) { animation-delay: -3s; }
@keyframes chapTwinkle {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%      { opacity: 0.95; transform: translateY(-2px); }
}

article.body h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--text-deep);
  margin: 50px 0 20px;
  padding-left: 14px;
  border-left: 2px solid var(--walnut);
}

article.body p {
  font-size: 15.5px;
  line-height: 2.15;
  color: var(--text-deep);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

article.body p strong {
  font-weight: 500;
  color: var(--text-deep);
  background: linear-gradient(180deg, transparent 65%, rgba(240, 213, 200, 0.55) 65%);
  padding: 0 2px;
}

article.body em {
  font-style: normal;
  color: var(--accent-deep);
  font-weight: 400;
}

article.body blockquote {
  margin: 40px 0;
  padding: 36px 36px 32px 60px;
  background: rgba(244, 234, 215, 0.5);
  border-left: 2px solid var(--walnut);
  position: relative;
  font-family: var(--hand);
  font-size: 15px;
  line-height: 2.2;
  color: var(--text-mid);
}
article.body blockquote .quote-feather {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 24px;
  height: 36px;
  opacity: 0.55;
  transform: rotate(-12deg);
}
article.body blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--serif-jp);
  font-size: 12px;
  color: var(--text-light);
  font-style: normal;
  letter-spacing: 0.1em;
}
article.body blockquote cite::before { content: "— "; }

.note {
  margin: 36px 0;
  padding: 28px 32px 28px 56px;
  background: rgba(251, 246, 236, 0.7);
  border: 1px solid var(--line);
  border-radius: 0;
  position: relative;
}
.note .note-leaf {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 18px;
  height: 26px;
  opacity: 0.7;
}
.note-label {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--walnut);
  margin-bottom: 12px;
}
.note p {
  font-size: 14px !important;
  line-height: 2.0 !important;
  color: var(--text-mid) !important;
  margin-bottom: 0 !important;
}

article.body ul {
  list-style: none;
  margin: 24px 0 32px;
  padding-left: 4px;
}
article.body ul li {
  font-size: 15px;
  line-height: 2.0;
  color: var(--text-deep);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 300;
}
article.body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--pale-honey), var(--walnut) 90%);
  opacity: 0.7;
}

article.body ol.method {
  list-style: none;
  margin: 32px 0 40px;
  counter-reset: methodnum;
}
article.body ol.method > li {
  counter-increment: methodnum;
  padding: 22px 0 22px 56px;
  border-bottom: 1px dashed var(--line-soft);
  position: relative;
}
article.body ol.method > li:last-child { border-bottom: none; }
article.body ol.method > li::before {
  content: counter(methodnum, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 26px;
  color: var(--walnut);
  line-height: 1;
  letter-spacing: 0.05em;
}
article.body ol.method h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-deep);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
article.body ol.method p {
  font-size: 14.5px;
  line-height: 2.0;
  color: var(--text-mid);
  margin-bottom: 0;
}

/* ========== 中盤の小CTA ========== */
.mid-cta {
  margin: 70px -20px;
  padding: 44px 40px;
  background:
    linear-gradient(135deg, rgba(240, 213, 200, 0.28), rgba(234, 216, 184, 0.22)),
    rgba(251, 246, 236, 0.85);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.mid-cta::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 216, 184, 0.5), transparent 70%);
  pointer-events: none;
}
.mid-cta-tag {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--walnut);
  margin-bottom: 16px;
}
.mid-cta h4 {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-deep);
  margin-bottom: 18px;
  letter-spacing: 0.03em;
}
.mid-cta-teller {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.mid-cta-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--pale-honey), var(--pale-pink) 60%, var(--bg-shadow) 100%);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.mid-cta-info { flex: 1; }
.mid-cta-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-deep);
  letter-spacing: 0.05em;
}
.mid-cta-desc {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 4px;
  line-height: 1.7;
  font-weight: 300;
}
.mid-cta-meta {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-align: right;
  flex-shrink: 0;
}
.btn-line {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--text-deep);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.2em;
  border: 1px solid var(--accent-deep);
  font-size: 12px;
  transition: background 0.4s, color 0.4s;
}
.btn-line:hover { background: var(--accent-deep); color: var(--bg-base); }

/* ========== 末尾の大CTA ========== */
.end-cta {
  max-width: 760px;
  margin: 110px auto 80px;
  padding: 70px 50px;
  background:
    linear-gradient(135deg, rgba(240, 213, 200, 0.3), rgba(234, 216, 184, 0.25)),
    rgba(251, 246, 236, 0.85);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.end-cta::after {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 216, 184, 0.4), transparent 70%);
  pointer-events: none;
}
.end-cta .end-feather {
  position: absolute;
  bottom: -20px;
  left: -10px;
  width: 90px;
  opacity: 0.18;
  transform: rotate(-160deg);
  pointer-events: none;
}
.end-cta .end-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.end-cta .end-lights circle {
  transform-origin: center;
  transform-box: fill-box;
  animation: chapTwinkle 7s ease-in-out infinite;
}
.end-cta .end-lights circle:nth-child(2n) { animation-delay: -3s; }
.end-cta .end-lights circle:nth-child(3n) { animation-delay: -5s; }
.end-cta-tag {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-light);
  margin-bottom: 22px;
}
.end-cta-tag::before, .end-cta-tag::after { content: "—"; margin: 0 12px; }
.end-cta h3 {
  font-size: 26px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-deep);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.end-cta .price {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 36px;
  line-height: 2.0;
  font-weight: 300;
}
.end-cta .price strong {
  color: var(--accent-deep);
  font-size: 18px;
  font-weight: 500;
  margin: 0 4px;
  font-family: var(--serif-en);
}
.cta-sub {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.15em;
}

/* ========== 関連記事 ========== */
.related {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}
.related-head {
  text-align: center;
  margin-bottom: 50px;
}
.related-head .related-orn {
  width: 80px;
  height: 30px;
  margin: 0 auto 20px;
  display: block;
  opacity: 0.8;
}
.related-head .ja {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-light);
  margin-bottom: 14px;
}
.related-head .ja::before, .related-head .ja::after { content: "·"; margin: 0 14px; }
.related-head h3 {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-deep);
  letter-spacing: 0.08em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.related-card {
  padding: 28px 26px;
  background: rgba(251, 246, 236, 0.5);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.4s;
  display: block;
}
.related-card:hover { background: rgba(251, 246, 236, 0.85); }
.related-cat {
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 11px;
  color: var(--walnut);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.related-card h4 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-deep);
  letter-spacing: 0.04em;
}

/* ========== Footer ========== */
footer {
  padding: 70px 40px 50px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 300;
}
footer .logo { font-size: 18px; margin-bottom: 14px; color: var(--text-deep); display: inline-block; }
footer .small {
  margin-top: 24px;
  opacity: 0.7;
  font-family: var(--serif-en);
  font-style: italic;
  letter-spacing: 0.12em;
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--walnut), var(--pale-rose));
  width: 0%;
  z-index: 200;
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  header { padding: 14px 20px; }
  nav ul { gap: 14px; }
  nav a { font-size: 11px; letter-spacing: 0.1em; }
  .crumb { padding: 90px 20px 0; }
  .article-hero { padding: 40px 20px 50px; }
  .article-hero h1 { font-size: 24px; line-height: 1.8; }
  .article-meta { flex-direction: column; gap: 8px; }
  .lead-block { padding: 0 24px 60px; }
  .lead-block p { font-size: 15px; text-align: left; }
  .toc { margin: 0 20px 60px; padding: 28px 24px; }
  article.body { padding: 0 24px; }
  article.body h2 { font-size: 21px; margin: 60px 0 24px; }
  article.body h3 { font-size: 16px; }
  article.body p { font-size: 15px; }
  article.body ol.method > li { padding-left: 44px; }
  article.body ol.method > li::before { font-size: 22px; }
  .mid-cta { margin: 50px 0; padding: 32px 22px; }
  .mid-cta-teller { flex-wrap: wrap; }
  .end-cta { margin: 70px 20px 60px; padding: 50px 24px; }
  .end-cta h3 { font-size: 21px; }
  .related { padding: 40px 20px 70px; }
  .related-grid { grid-template-columns: 1fr; gap: 14px; }
}
