/*
  assets/blog.css
  ブログ(/blog/)専用スタイル。

  前半(SHARED SITE STYLES)は index.html の <style> ブロック(:root, header,
  footer, button 等)から、ブログページの表示に必要な部分だけを抽出したもの。
  値は index.html と完全に一致させてあるため、見た目は既存ページと揃う。
  既存ページ側の <style> ブロックはこのファイルの作成にあたって一切変更していない。

  後半(BLOG-SPECIFIC STYLES)がブログ記事・一覧ページ用の新規スタイル。
*/

/* ============================================================
   SHARED SITE STYLES (index.html の <style> から抽出・値は同一)
   ============================================================ */

:root {
  --blue: #155ee9;
  --blue-dark: #073ebf;
  --blue-soft: #eef4ff;
  --purple: #6d2cf5;
  --purple-bright: #9425ff;
  --navy: #111827;
  --text: #182033;
  --muted: #667085;
  --muted-light: #98a2b3;
  --line: #e6eaf2;
  --white: #ffffff;
  --background: #f7f9fd;
  --cream: #fffaf0;
  --green: #059669;
  --gold: #f3d376;
  --danger: #f04438;
  --container: 1180px;
  --shadow: 0 18px 54px rgba(28, 43, 94, 0.12);
  --shadow-large: 0 30px 80px rgba(33, 42, 93, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic Medium",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paltは見出し系のみに限定（本文はベタ組みで可読性優先）※index.htmlと同じ方針 */
h1,
h2,
h3 {
  font-feature-settings: "palt";
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, #1d68ef, #063cc8);
  box-shadow: 0 14px 30px rgba(16, 81, 218, 0.27);
}

.button-primary:hover {
  box-shadow: 0 18px 40px rgba(16, 81, 218, 0.35);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(227, 232, 242, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.brand-logo-real {
  display: block;
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.nav-link {
  position: relative;
  color: #263047;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-link {
  color: #2c3548;
  font-size: 14px;
  font-weight: 700;
}

.header-cta {
  min-height: 44px;
  padding-inline: 19px;
  font-size: 13px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  border-radius: 999px;
  background: var(--navy);
  transition:
    top 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

body.menu-open .menu-lines {
  background: transparent;
}

body.menu-open .menu-lines::before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-open .menu-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Footer */

.footer {
  padding: 48px 0 25px;
  color: #cfd6e4;
  background: #111726;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
  padding-bottom: 34px;
}

.footer-message {
  max-width: 410px;
  margin: 17px 0 0;
  color: #98a2b6;
  font-size: 14px;
  line-height: 1.85;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 30px;
  margin: 0;
}

.company-grid div {
  display: grid;
  gap: 4px;
}

.company-grid dt {
  color: #7f899e;
  font-size: 12px;
  font-weight: 700;
}

.company-grid dd {
  margin: 0;
  color: #dce2ed;
  font-size: 13px;
  line-height: 1.65;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f899e;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive: tablet (nav collapses to hamburger menu) */

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1002;
    display: none;
    background: #ffffff;
    top: 72px;
    bottom: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    padding: 16px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .header-actions {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1001;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 14px 20px 20px;
    background: #ffffff;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .header-actions a {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.menu-open .nav,
  body.menu-open .header-actions {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive: mobile */

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .header-inner {
    min-height: 64px;
  }

  .nav {
    top: 100px;
  }

  .brand-logo-real {
    height: 30px;
  }

  .footer {
    padding-bottom: 32px;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   BLOG-SPECIFIC STYLES (新規)
   ============================================================ */

.blog-main {
  padding: 56px 0 90px;
  background: var(--background);
}

.blog-breadcrumb {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.blog-breadcrumb a {
  color: var(--muted);
  font-weight: 700;
}

.blog-breadcrumb a:hover {
  color: var(--blue);
}

.blog-breadcrumb .is-current {
  color: var(--text);
}

/* --- 記事一覧ページ --- */

.blog-hero {
  margin: 0 0 40px;
}

.blog-hero-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.blog-hero-description {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-large);
}

.blog-card-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--blue-soft);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 24px;
}

.blog-card-date {
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
}

.blog-card-title {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.blog-card-excerpt {
  flex: 1;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.blog-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 700;
}

.blog-empty {
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

/* --- 記事詳細ページ --- */

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-header {
  margin: 0 0 28px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.article-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.article-hero-figure {
  margin: 28px 0 8px;
}

.article-hero-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.article-credit {
  margin: 8px 0 0;
  color: var(--muted-light);
  font-size: 12px;
}

.article-credit a {
  color: var(--muted-light);
  text-decoration: underline;
}

.article-body {
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}

.article-body h2 {
  margin: 48px 0 18px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
  scroll-margin-top: 90px;
}

.article-body h3 {
  margin: 34px 0 14px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  scroll-margin-top: 90px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 1.4em;
}

.article-body li {
  margin: 0 0 8px;
}

.article-body a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body strong {
  color: var(--navy);
}

.article-section-figure {
  margin: 28px 0;
}

.article-section-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-cta {
  margin: 56px 0 40px;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d68ef, #063cc8);
  color: var(--white);
  text-align: center;
}

.article-cta-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.article-cta-description {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.8;
}

.article-cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.article-cta-links .button-white {
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(11, 31, 92, 0.18);
}

.article-cta-links .button-outline {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
}

.article-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-related-title {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
}

.article-related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.article-publisher {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-related-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-main {
    padding: 36px 0 60px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .article-cta {
    padding: 26px 20px;
  }
}

/* ============================================================
   ARTICLE-INTERNAL COMPONENTS (目次・NG/OK比較・メールテンプレートカード)
   ============================================================ */

.article-toc {
  margin: 28px 0 40px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blue-soft);
}

.article-toc-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.article-toc-list {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 24px;
}

.article-toc-list > li {
  margin: 0 0 6px;
  break-inside: avoid;
}

.article-toc-list a {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

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

.article-toc-sublist {
  margin: 4px 0 8px;
  padding-left: 1.1em;
  columns: initial;
}

.article-toc-sublist li {
  margin: 0 0 3px;
  font-weight: 400;
}

.article-toc-sublist a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.email-template {
  margin: 18px 0 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
  scroll-margin-top: 90px;
}

.email-template-usecase {
  margin: 0 0 14px;
  padding: 3px 10px;
  display: inline-block;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.email-template-subject {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--background);
  font-size: 14px;
  line-height: 1.7;
}

.email-template-body {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--line);
  color: var(--text);
  font-size: 14px;
  line-height: 1.9;
}

.email-template-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.email-template-note:last-child {
  margin-bottom: 0;
}

.example-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.example-block {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
}

.example-ng {
  border-color: rgba(240, 68, 56, 0.35);
  background: rgba(240, 68, 56, 0.05);
}

.example-ok {
  border-color: rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.05);
}

.example-label {
  margin: 0 0 10px;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.example-ng .example-label {
  background: var(--danger);
  color: var(--white);
}

.example-ok .example-label {
  background: var(--green);
  color: var(--white);
}

.example-block .email-template-subject,
.example-block .email-template-body {
  background: transparent;
  border-left: none;
  padding: 0;
  margin: 0 0 8px;
}

.example-points {
  margin: 14px 0 0;
  padding-left: 1.2em;
  font-size: 13px;
  color: var(--muted);
}

.example-points li {
  margin: 0 0 4px;
}

@media (max-width: 640px) {
  .article-toc-list {
    columns: 1;
  }

  .example-compare {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   COMPARISON ARTICLE COMPONENTS (比較表・目的別カード・メリット/注意点)
   ============================================================ */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}

.persona-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.persona-card-title {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.persona-card-body {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.persona-card-body strong {
  color: var(--blue-dark);
}

.compare-table-hint {
  margin: 0 0 8px;
  color: var(--muted-light);
  font-size: 12px;
}

.compare-table-wrap {
  margin: 8px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table caption {
  caption-side: bottom;
  padding: 10px 14px;
  color: var(--muted-light);
  font-size: 11px;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}

.compare-table td:first-child,
.compare-table th:first-child {
  position: sticky;
  left: 0;
  background: var(--white);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  z-index: 1;
}

.compare-table thead th:first-child {
  background: var(--blue-soft);
  z-index: 3;
}

.compare-row-highlight td {
  background: var(--blue-soft);
}

.compare-row-highlight td:first-child {
  background: var(--blue-soft);
}

.service-card {
  margin: 20px 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}

.service-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.service-card-tagline {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.service-card-label {
  margin: 16px 0 6px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
}

.service-card-label:first-of-type {
  margin-top: 0;
}

.pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 6px 0;
}

.pro-list,
.con-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
  line-height: 1.8;
}

.pro-list li,
.con-list li {
  margin: 0 0 4px;
}

.service-card-verdict {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: var(--background);
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
}

.source-note {
  margin: 4px 0 0;
  color: var(--muted-light);
  font-size: 11px;
}

.checklist-group {
  margin: 0 0 20px;
}

.checklist-group-title {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }

  .pro-con-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
