:root {
  --page-bg: #FBFAF8;
  --surface: #FFFFFF;
  --ink: #26312B;
  --muted: #4F5D54;
  --line: #E7E4DC;
  --soft: #F7F5EF;
  --trust: #2E6650;
  --trust-strong: #255540;
  --trust-soft: #EDF3EE;
  --copper: #8A5A38;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--trust); }
a:hover { color: var(--trust-strong); }
a:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; border-radius: 4px; }

.article-main { flex: 1; }
.article-hero { background: var(--surface); border-bottom: 1px solid #EEEBE3; }
.article-hero-inner { max-width: 1040px; margin: 0 auto; padding: 60px 28px 54px; }
.article-hero-inner::before { content: ''; display: block; width: 52px; height: 2px; margin-bottom: 19px; background: var(--copper); }
.article-breadcrumb { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.7; letter-spacing: 0.02em; }
.article-breadcrumb a { color: inherit; text-underline-offset: 4px; }
.article-category { margin: 0 0 10px; color: var(--trust); font-size: 13px; font-weight: 700; line-height: 1.6; letter-spacing: 0.08em; }
.article-title { max-width: 20em; margin: 0; font-family: 'Shippori Mincho', serif; font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; text-wrap: pretty; }
.article-lead { max-width: 960px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 2; text-wrap: pretty; }

.article-shell { max-width: 1040px; margin: 0 auto; padding: 62px 28px 84px; }
.article-cover { margin: 0 0 54px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); aspect-ratio: 16 / 9; }
.article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 960px; margin: 0 auto; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 68px 0 22px; padding-top: 13px; border-top: 1px solid var(--line); font-family: 'Shippori Mincho', serif; font-size: clamp(26px, 3vw, 32px); font-weight: 700; line-height: 1.48; letter-spacing: -0.018em; text-wrap: pretty; }
.article-body h3 { margin: 42px 0 14px; font-family: 'Shippori Mincho', serif; font-size: 23px; font-weight: 700; line-height: 1.6; letter-spacing: -0.012em; text-wrap: pretty; }
.article-body p { margin: 0 0 24px; text-wrap: pretty; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 27px; padding-left: 1.55em; }
.article-body li { margin: 8px 0; padding-left: 0.15em; }
.article-body blockquote { margin: 40px 0 0; padding: 23px 26px; border: 1px solid #D7E4D9; border-radius: 12px; background: var(--trust-soft); color: var(--ink); font-size: 16px; line-height: 1.9; }
.article-body blockquote p { margin: 0; }
.table-scroll { max-width: 100%; margin: 30px 0 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.article-body table { width: 100%; min-width: 620px; border-collapse: collapse; color: var(--ink); font-size: 15px; line-height: 1.75; }
.article-body th, .article-body td { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th:last-child, .article-body td:last-child { border-right: 0; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body th { background: var(--soft); font-weight: 700; }
.article-body td { background: var(--surface); }

.article-consult { max-width: 1040px; margin: 0 auto 88px; padding: 0 28px; }
.article-consult-inner { padding: 40px 42px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.article-consult-copy { max-width: 960px; }
.article-consult-title { margin: 0 0 8px; font-family: 'Shippori Mincho', serif; font-size: 27px; font-weight: 700; line-height: 1.45; letter-spacing: -0.012em; }
.article-consult-text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.article-consult-link { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 26px; border: 2px solid var(--trust); border-radius: 14px; background: var(--trust); color: var(--surface); font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; text-decoration: none; transition: background-color 160ms ease, transform 120ms ease; }
.article-consult-link:hover { background: var(--trust-strong); color: var(--surface); transform: translateY(-1px); }
.article-back { max-width: 1040px; margin: -54px auto 88px; padding: 0 28px; }
.article-back a { font-size: 16px; font-weight: 700; line-height: 1.7; text-underline-offset: 5px; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .article-hero-inner { padding: 42px 20px 38px; }
  .article-hero-inner::before { width: 42px; margin-bottom: 16px; }
  .article-title { font-size: 32px; line-height: 1.35; }
  .article-lead { margin-top: 17px; font-size: 17px; }
  .article-shell { padding: 46px 20px 62px; }
  .article-cover { margin-bottom: 42px; border-radius: 12px; }
  .article-body h2 { margin-top: 52px; padding-top: 11px; font-size: 25px; }
  .article-body h3 { margin-top: 34px; font-size: 21px; }
  .article-body p { margin-bottom: 21px; }
  .article-body ul, .article-body ol { margin-bottom: 24px; }
  .article-body blockquote { margin-top: 34px; padding: 20px; font-size: 15px; }
  .table-scroll { margin: 25px 0 31px; border-radius: 10px; }
  .article-body table { min-width: 570px; font-size: 14px; }
  .article-body th, .article-body td { padding: 12px 14px; }
  .article-consult { margin-bottom: 62px; padding: 0 20px; }
  .article-consult-inner { padding: 30px 24px; align-items: flex-start; }
  .article-consult-title { font-size: 24px; }
  .article-consult-link { width: 100%; }
  .article-back { margin: -34px auto 62px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .article-consult-link { transition: none; }
}
