:root {
  --paper: #FFFFFF;
  --paper-2: #F6F8FA;
  --ink: #2B2B30;
  --ink-2: #6E6E76;
  --blue: #1E5B94;
  --blue-2: #EAF1F7;
  --orange: #D96C2C;
  --line: #E3E6EA;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.95;
  letter-spacing: 0.02em;
}

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

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Zen Maru Gothic', sans-serif;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

h2 {
  font-size: 19px;
  font-weight: 500;
  padding-left: 10px;
  border-left: 3px solid var(--blue);
  margin-bottom: 0.8em;
}

h3 {
  font-size: 17px;
  font-weight: 500;
}

p + p {
  margin-top: 1.4em;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.site-header__logo:hover {
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  gap: 1.5rem;
}

.site-header__nav a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-header__nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

/* Article Card */
.article-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.article-card:hover {
  text-decoration: none;
}

.article-card:hover .article-card__title {
  color: var(--blue);
}

.article-card__img-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

.article-card__img-wrap img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
}

.article-card__img-placeholder {
  width: 96px;
  height: 96px;
  background: var(--paper-2);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.article-card__body {
  flex: 1;
  min-width: 0;
}

.article-card__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.article-card__date {
  font-size: 13px;
  color: var(--ink-2);
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
}

/* CTA Button */
.cta-button {
  display: block;
  width: 100%;
  height: 52px;
  line-height: 52px;
  text-align: center;
  background: var(--orange);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #c05a1e;
  text-decoration: none;
  color: #fff;
}

/* CTA Block */
.cta-block {
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 2rem 0;
}

.cta-block__heading {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.cta-block__body {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

/* Diagnosis Banner */
.diagnosis-banner {
  background: var(--blue-2);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.diagnosis-banner__question {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.diagnosis-banner__sub {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 1rem;
}

/* Hero */
.hero {
  background: var(--paper-2);
  padding: 3rem 1rem;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero__title {
  font-size: 26px;
  margin-bottom: 0.75rem;
}

.hero__lead {
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}

/* Top Sections */
.top-section {
  padding: 2.5rem 1rem;
}

.top-section--gray {
  background: var(--paper-2);
}

.top-section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.top-section__inner h2 {
  margin-bottom: 1.25rem;
}

.top-section__more {
  text-align: center;
  margin-top: 1rem;
}

.more-link {
  font-size: 14px;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 0.4rem 1rem;
  display: inline-block;
}

.more-link:hover {
  text-decoration: none;
  background: var(--blue-2);
}

/* Category Nav */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-nav__item {
  font-size: 14px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  background: var(--paper);
  text-decoration: none;
}

.category-nav__item:hover {
  background: var(--blue-2);
  text-decoration: none;
}

/* Top CTA */
.top-cta {
  padding: 2rem 1rem;
  background: var(--paper-2);
}

.top-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Page wrap */
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-title {
  margin-bottom: 1.5rem;
}

.empty-msg {
  color: var(--ink-2);
  padding: 1rem 0;
}

/* Article */
.article-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.article {
  min-width: 0;
}

.article__title {
  margin-bottom: 0.75rem;
}

.article__meta {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pr-label {
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Table of Contents */
.toc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.toc__heading {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 0.5rem;
}

.toc__list {
  padding-left: 1.25rem;
  margin: 0;
}

.toc__list li {
  margin-bottom: 0.3rem;
}

.toc__list a {
  font-size: 14px;
  color: var(--blue);
}

/* Article Body */
.article-body {
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.article-body h2 {
  margin-top: 2.5em;
  margin-bottom: 1em;
}

.article-body h3 {
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  border-left: none;
  padding-left: 0;
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body ul, .article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body blockquote {
  border-left: 3px solid var(--line);
  padding-left: 1rem;
  color: var(--ink-2);
  margin: 1.4em 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
  font-size: 14px;
}

.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.article-body th {
  background: var(--paper-2);
  font-weight: 500;
}

/* FAQ */
.faq {
  margin-top: 2.5rem;
}

.faq h2 {
  margin-bottom: 1rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.faq__q {
  background: var(--blue-2);
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.faq__q::before {
  content: 'Q';
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  color: var(--blue);
  margin-right: 0.5rem;
}

.faq__a {
  padding: 0.75rem 1rem;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.8;
}

.faq__a::before {
  content: 'A  ';
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  color: var(--orange);
  margin-right: 0.25rem;
}

/* Article Summary */
.article-summary {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.article-summary h2 {
  margin-bottom: 0.75rem;
}

/* Related Articles */
.related-articles {
  margin-top: 2.5rem;
}

.related-articles h2 {
  margin-bottom: 1rem;
}

/* Secondary offer link under end CTA */
.cta-secondary {
  font-size: 14px;
  text-align: center;
  margin: -1rem 0 2rem;
}

.cta-secondary a {
  color: var(--blue);
  text-decoration: underline;
}

/* Article eyecatch */
.article__eyecatch {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* Static Pages */
.static-section {
  margin-bottom: 2rem;
}

.static-section h2 {
  margin-bottom: 0.75rem;
}

.member-card {
  padding: 1rem;
  background: var(--paper-2);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.member-card h3 {
  margin-bottom: 0.5rem;
  color: var(--blue);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pagination__prev, .pagination__next {
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.4rem 1rem;
  color: var(--blue);
}

.pagination__prev:hover, .pagination__next:hover {
  background: var(--blue-2);
  text-decoration: none;
}

/* Error Page */
.error-page {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.error-page h1 {
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}

.error-page a {
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  display: inline-block;
}

/* Footer */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.site-footer__nav a {
  font-size: 13px;
  color: var(--ink-2);
}

.site-footer__nav a:hover {
  color: var(--ink);
}

.site-footer__ad-notice {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}

.site-footer__copy {
  font-size: 12px;
  color: var(--ink-2);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Media Queries */
@media (max-width: 900px) {
  .article-wrap {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 17px;
  }

  h3 {
    font-size: 16px;
  }

  .site-header__nav {
    gap: 1rem;
  }

  .article-wrap {
    padding: 1rem;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .site-header__nav a {
    font-size: 13px;
  }
}

/* 記事内挿絵 */
.article-body img {
  margin: 24px auto;
  border-radius: 6px;
}

/* 編集部の経験談（吹き出し） */
.voice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 24px 0;
}
.voice__avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-2);
}
.voice__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 50%;
}
.voice__body {
  flex: 1;
  min-width: 0;
}
.voice__name {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.voice__bubble {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 2px 10px 10px 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.85;
}
.voice__bubble p { margin: 0; }
.voice__bubble p + p { margin-top: 0.6em; }

/* 編集部アイコン */
.member-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-card__head h3 { margin: 0; }
.member-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
