/* ===================================================
   Article Stylesheet - Pure CSS without external dependencies
   =================================================== */

/* 1. リセット & ベース */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.85;
  color: #2c3e50;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* 2. 共通コンテナ */
.site-container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 3. ページヘッダー（ヒーローヘッダースタイル） */
.site-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #ffffff;
  padding: 50px 0 44px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 920px;
  margin: 0 auto;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.category-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
}

.post-date {
  font-size: 0.85rem;
  color: #dbeafe;
}

.header-title {
  font-size: 2rem;
  line-height: 1.45;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* 4. パンくずリスト */
.breadcrumb-bar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  font-size: 0.825rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
}

.breadcrumb-list li + li::before {
  content: ">";
  padding-right: 8px;
  color: #94a3b8;
}

.breadcrumb-list a {
  color: #64748b;
}

.breadcrumb-list a:hover {
  color: #2563eb;
}

/* 5. 記事メインエリア */
.site-main {
  padding: 30px 0 60px;
}

.article-wrapper {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 44px 48px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 導入文 & リードボックス */
.intro-section {
  margin-bottom: 36px;
}

.intro-lead {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.highlight-summary-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 6px solid #16a34a;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}

.summary-header {
  font-weight: 700;
  color: #15803d;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.highlight-summary-box ul {
  list-style: none;
  padding-left: 0;
}

.highlight-summary-box li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.highlight-summary-box li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

/* 目次 */
.table-of-contents {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0 44px;
}

.toc-header {
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 14px;
}

.toc-items {
  list-style: none;
  padding-left: 0;
}

.toc-items li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.toc-items a {
  color: #334155;
  display: inline-block;
}

.toc-items a:hover {
  color: #2563eb;
  transform: translateX(4px);
  transition: transform 0.15s ease;
}

/* 記事セクション共通 */
.article-section {
  margin-bottom: 50px;
}

.article-section p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #334155;
}

.article-section h2 {
  font-size: 1.45rem;
  color: #0f172a;
  padding: 12px 18px;
  background-color: #f1f5f9;
  border-left: 6px solid #2563eb;
  border-radius: 0 6px 6px 0;
  margin: 36px 0 20px;
}

.article-section h3 {
  font-size: 1.2rem;
  color: #1e293b;
  border-left: 4px solid #38bdf8;
  padding-left: 12px;
  margin: 28px 0 16px;
}

/* 結論カード */
.decision-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.decision-card {
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.card-buyer {
  border-top: 5px solid #2563eb;
}

.card-dealer {
  border-top: 5px solid #059669;
}

.decision-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.tag-buyer {
  background-color: #dbeafe;
  color: #1e40af;
}

.tag-dealer {
  background-color: #d1fae5;
  color: #065f46;
}

.decision-card h3 {
  border: none;
  padding-left: 0;
  margin: 6px 0 12px;
  font-size: 1.25rem;
}

/* 比較テーブル */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.styled-table th, .styled-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.styled-table thead th {
  background-color: #1e3a8a;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

.styled-table thead th:first-child {
  width: 25%;
  text-align: left;
}

.styled-table tbody th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.styled-table tbody td {
  text-align: center;
}

.badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 2px 10px;
  border-radius: 4px;
}

.badge-best {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-good {
  background-color: #e0f2fe;
  color: #0284c7;
}

.badge-normal {
  background-color: #fef3c7;
  color: #b45309;
}

/* 用語集カードグリッド */
.glossary-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.glossary-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
}

.term-title {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  color: #1e40af;
  margin-bottom: 6px;
  border-bottom: 2px solid #93c5fd;
  padding-bottom: 2px;
}

.glossary-card p {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

/* メリット・デメリットボックス */
.pro-con-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.pro-column, .con-column {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 20px;
}

.pro-head {
  color: #15803d;
  font-weight: 700;
  font-size: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #86efac;
  margin-bottom: 14px;
}

.con-head {
  color: #b91c1c;
  font-weight: 700;
  font-size: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #fca5a5;
  margin-bottom: 14px;
}

.pro-con-wrapper ul {
  list-style: none;
  padding-left: 0;
}

.pro-con-wrapper li {
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.65;
}

/* コールアウトボックス */
.callout-box {
  border-radius: 6px;
  padding: 18px 22px;
  margin: 22px 0;
}

.callout-info {
  background-color: #eff6ff;
  border-left: 5px solid #3b82f6;
}

.callout-info p {
  margin-bottom: 0;
  color: #1e40af;
  font-size: 1.05rem;
}

.callout-warning {
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 5px solid #e11d48;
}

.callout-title {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.callout-warning .callout-title {
  color: #9f1239;
}

.callout-warning ul {
  padding-left: 20px;
  color: #4c0519;
  font-size: 0.95rem;
}

.callout-tip {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 5px solid #d97706;
}

.callout-tip .callout-title {
  color: #92400e;
}

.callout-tip p {
  color: #78350f;
  margin-bottom: 0;
}

/* 理由ブロック */
.reason-block {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.reason-label {
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.reason-block h4 {
  font-size: 1.1rem;
  color: #0f172a;
  margin: 8px 0;
}

/* サービス紹介 */
.feature-service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.service-item-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.service-item-card h4 {
  color: #1e3a8a;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* タイムラインステップ */
.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 22px 24px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.timeline-badge {
  width: 34px;
  height: 34px;
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.timeline-content h3 {
  border: none;
  padding: 0;
  margin: 0 0 8px 0;
  font-size: 1.15rem;
}

/* まとめ最終カード */
.final-summary-card {
  background-color: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 24px 28px;
  margin: 20px 0;
}

.final-lead {
  font-weight: 700;
  color: #0f172a;
}

.final-checklist {
  padding-left: 20px;
  margin: 14px 0;
}

.final-checklist li {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

/* ===================================================
   関連記事（ブログカード）スタイル
   =================================================== */
.related-article-section {
  margin-top: 50px;
}

.blog-card {
  display: flex;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #2563eb;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
  border-left-color: #1d4ed8;
}

.blog-card-thumbnail {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  background-color: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-icon {
  font-size: 2.5rem;
}

.blog-card-body {
  flex-grow: 1;
}

.blog-card-tag {
  display: inline-block;
  background-color: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.blog-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: #2563eb;
}

.blog-card-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 6px !important;
}

.blog-card-site {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* 著者プロフィール */
.author-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  margin: 40px 0;
}

.author-icon {
  font-size: 2.8rem;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e2e8f0;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-role {
  font-weight: 700;
  color: #0f172a;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.author-text p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

/* ===================================================
   お問い合わせフォーム（要件コード準拠スタイリング）
   =================================================== */
.contact-area {
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px 40px;
  margin-top: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.contact-intro {
  text-align: center;
  margin-bottom: 28px;
}

.contact-intro h2 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.contact-intro p {
  font-size: 0.95rem;
  color: #64748b;
}

/* フォーム本体 */
.styled-contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
}

.styled-contact-form label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 6px;
  margin-top: 16px;
  display: block;
}

.styled-contact-form label:first-of-type {
  margin-top: 0;
}

.styled-contact-form input[type="text"],
.styled-contact-form input[type="email"],
.styled-contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: #1e293b;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.styled-contact-form input[type="text"]:focus,
.styled-contact-form input[type="email"]:focus,
.styled-contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.styled-contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.styled-contact-form button[type="submit"] {
  margin-top: 24px;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.styled-contact-form button[type="submit"]:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.styled-contact-form button[type="submit"]:active {
  transform: translateY(0);
}

/* 6. フッター */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 36px 0 24px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #334155;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: #60a5fa;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 20px;
}

/* ===================================================
   7. レスポンシブ対応（スマホ・タブレット向け）
   =================================================== */
@media (max-width: 768px) {
  .site-header {
    padding: 32px 0 26px;
  }

  .header-title {
    font-size: 1.45rem;
  }

  .article-wrapper {
    padding: 24px 18px;
  }

  .article-section h2 {
    font-size: 1.25rem;
    padding: 10px 14px;
  }

  .article-section h3 {
    font-size: 1.1rem;
  }

  .decision-cards,
  .pro-con-wrapper {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .blog-card-thumbnail {
    width: 60px;
    height: 60px;
  }

  .blog-card-icon {
    font-size: 1.8rem;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .contact-area {
    padding: 24px 18px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
}