/* ============================================================
   Blog Styles — MYコンサルティング株式会社
   Extends corporate style.css
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.blog-breadcrumb-area {
  background: var(--bg-white);
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: var(--text-body);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '>';
  margin: 0 10px;
  color: var(--border);
  font-size: 12px;
}

.breadcrumb__item a {
  color: var(--text-body);
  transition: color 0.3s;
}

.breadcrumb__item a:hover {
  color: var(--primary);
}

.breadcrumb__item.is-current {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Blog Hero ---------- */
.blog-hero {
  background: var(--bg-white);
  padding: 48px 0 56px;
  text-align: center;
}

.blog-hero .section-lead {
  margin-bottom: 0;
}

/* ---------- Blog Layout (Main + Sidebar) ---------- */
.blog-section {
  padding-top: 64px;
  padding-bottom: 80px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ---------- Blog Card Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.blog-card {
  display: block;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-card:hover .blog-card__img img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 20px 24px 24px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-card__date {
  font-size: 13px;
  color: var(--text-body);
  letter-spacing: 0.02em;
}

.blog-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.blog-card__tag--hp {
  background: #E8F0FE;
  color: var(--primary);
}

.blog-card__tag--seo {
  background: #E6F7ED;
  color: #1B7A3D;
}

.blog-card__tag--marketing {
  background: #FFF3E0;
  color: #C26A00;
}

.blog-card__tag--ai {
  background: #F3E8FD;
  color: #6B21A8;
}

.blog-card__tag--news {
  background: #F0F0F0;
  color: #555;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Sidebar ---------- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.sidebar-block {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-block__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

/* Category list */
.sidebar-category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #eee;
  transition: color 0.3s;
}

.sidebar-category-list li:last-child a {
  border-bottom: none;
}

.sidebar-category-list li a:hover {
  color: var(--primary);
}

.sidebar-category-count {
  font-size: 12px;
  color: var(--text-body);
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 28px;
  text-align: center;
}

/* Recent articles */
.sidebar-recent-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-recent-item {
  display: flex;
  gap: 12px;
  transition: opacity 0.3s;
}

.sidebar-recent-item:hover {
  opacity: 0.75;
}

.sidebar-recent-item__img {
  flex: 0 0 80px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-recent-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent-item__body {
  flex: 1;
  min-width: 0;
}

.sidebar-recent-item__date {
  display: block;
  font-size: 12px;
  color: var(--text-body);
  margin-bottom: 4px;
}

.sidebar-recent-item__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar CTA */
.sidebar-block--cta {
  background: var(--primary);
  color: #fff;
}

.sidebar-block__title--cta {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sidebar-cta__text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.sidebar-cta__btn {
  width: 100%;
  justify-content: center;
}

/* ---------- Article Page ---------- */
.article {
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.article__header {
  padding: 40px 40px 0;
}

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

.article__date {
  font-size: 14px;
  color: var(--text-body);
}

.article__title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}

.article__author {
  font-size: 14px;
  color: var(--text-body);
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.article__eyecatch {
  margin: 0;
}

.article__eyecatch img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Article Body — Typography */
.article__body {
  padding: 40px;
  font-size: 16px;
  line-height: 2;
  color: var(--text);
}

.article__body p {
  margin-bottom: 24px;
}

.article__body h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  color: var(--text);
}

.article__body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  color: var(--text);
}

.article__body ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article__body ul li {
  list-style: disc;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.article__body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article__body ol li {
  list-style: decimal;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.article__body img {
  border-radius: 8px;
  margin: 24px 0;
}

.article__body strong {
  font-weight: 700;
  color: var(--text);
}

.article__body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg-gray);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--text-body);
}

/* Article CTA */
.article__cta {
  margin: 0 40px 40px;
  padding: 32px;
  background: var(--bg-gray);
  border-radius: 12px;
  text-align: center;
}

.article__cta h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.article__cta p {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ---------- Blog CTA Section ---------- */
.blog-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- Current Nav ---------- */
.header-nav-list li a.is-current {
  color: var(--primary);
}

.header-nav-list li a.is-current::after {
  width: 100%;
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }

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

  .article__header {
    padding: 32px 28px 0;
  }

  .article__title {
    font-size: 24px;
  }

  .article__body {
    padding: 32px 28px;
  }

  .article__cta {
    margin: 0 28px 28px;
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .blog-hero {
    padding: 32px 0 40px;
  }

  .blog-hero .section-title {
    font-size: 26px;
  }

  .blog-section {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-sidebar {
    position: static;
  }

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

  .blog-card__body {
    padding: 16px 20px 20px;
  }

  .blog-card__title {
    font-size: 16px;
  }

  .article__header {
    padding: 28px 20px 0;
  }

  .article__title {
    font-size: 22px;
  }

  .article__body {
    padding: 28px 20px;
  }

  .article__body h2 {
    font-size: 20px;
    margin-top: 36px;
  }

  .article__body h3 {
    font-size: 17px;
    margin-top: 28px;
  }

  .article__cta {
    margin: 0 20px 20px;
    padding: 24px 20px;
  }

  .blog-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .breadcrumb__item.is-current {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .blog-hero .section-title {
    font-size: 22px;
  }

  .blog-hero .section-lead {
    font-size: 14px;
  }

  .blog-card__title {
    font-size: 15px;
  }

  .blog-card__excerpt {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .article__title {
    font-size: 20px;
  }

  .article__body {
    font-size: 15px;
    padding: 24px 16px;
  }

  .article__header {
    padding: 24px 16px 0;
  }

  .article__cta {
    margin: 0 16px 16px;
  }

  .sidebar-recent-item__img {
    flex: 0 0 64px;
    height: 48px;
  }
}


/* ============================================================
   記事装飾強化（2026-07-29 / HP用語のトリセツ〜）
   ============================================================ */

/* --- H2: オレンジ帯 --- */
.article__body h2 {
  position: relative;
  background: linear-gradient(135deg, #FFF4E8, #FFEBD6);
  border-left: 6px solid #FF7500;
  border-bottom: none;
  border-radius: 6px;
  padding: 16px 20px;
}
.article__body h2::after { display: none; }

/* --- H3: 左ライン+下線 --- */
.article__body h3 {
  border-left: 4px solid #FF7500;
  border-bottom: 2px solid #FFE3C7;
  padding: 6px 4px 8px 14px;
}

/* --- 目次 --- */
.toc {
  background: #FFFCF8;
  border: 2px solid #FFD9B3;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 32px 0 40px;
}
.toc__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.toc__title::before { content: "📖"; }
.toc ol {
  margin: 0;
  padding-left: 4px;
  list-style: none;
  counter-reset: toc;
}
.toc ol > li {
  counter-increment: toc;
  padding: 6px 0;
  font-size: 14.5px;
  border-bottom: 1px dashed #FFE3C7;
}
.toc ol > li:last-child { border-bottom: none; }
.toc ol > li::before {
  content: counter(toc);
  display: inline-grid;
  place-content: center;
  width: 22px;
  height: 22px;
  background: #FF7500;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
}
.toc ol ol { margin-top: 4px; padding-left: 32px; counter-reset: none; }
.toc ol ol li { border-bottom: none; padding: 3px 0; font-size: 13.5px; counter-increment: none; }
.toc ol ol li::before { content: "−"; background: none; color: #FF7500; width: auto; height: auto; margin-right: 8px; font-weight: 900; }
.toc a { color: #333; text-decoration: none; }
.toc a:hover { color: #FF7500; }

/* --- 汎用ボックス --- */
.box-def {
  background: #FFF4E8;
  border-left: 4px solid #FF7500;
  padding: 16px 20px;
  border-radius: 6px;
  margin: 22px 0;
}
.box-point {
  position: relative;
  background: #FFFCF3;
  border: 2px solid #FFC633;
  border-radius: 12px;
  padding: 26px 22px 18px;
  margin: 30px 0;
}
.box-point::before {
  content: "💡 ポイント";
  position: absolute;
  top: -14px;
  left: 16px;
  background: #FFC633;
  color: #1a1a1a;
  font-size: 12.5px;
  font-weight: 900;
  padding: 3px 14px;
  border-radius: 100px;
}
.box-note {
  position: relative;
  background: #FDF3F3;
  border: 2px solid #E8A9A5;
  border-radius: 12px;
  padding: 26px 22px 18px;
  margin: 30px 0;
}
.box-note::before {
  content: "⚠ 注意";
  position: absolute;
  top: -14px;
  left: 16px;
  background: #D66;
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  padding: 3px 14px;
  border-radius: 100px;
}

/* --- 表 --- */
.article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}
.article__body th {
  background: #FF7500;
  color: #fff;
  font-weight: 700;
  border: 1px solid #FFD9B3;
  padding: 10px 12px;
}
.article__body td {
  border: 1px solid #FFE3C7;
  padding: 10px 12px;
  background: #fff;
}
.article__body tr:nth-child(odd) td { background: #FFFCF8; }

/* --- FAQ --- */
.article__body .faq-q {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: none;
  border-left: none;
  border-bottom: none;
  background: #FFF4E8;
  border-radius: 10px 10px 0 0;
  padding: 14px 16px;
  margin: 28px 0 0;
  font-size: 16px;
}
.article__body .faq-q::before {
  content: "Q";
  flex-shrink: 0;
  display: grid;
  place-content: center;
  width: 26px;
  height: 26px;
  background: #FF7500;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}
.article__body .faq-a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #FFFCF8;
  border: 1px solid #FFE3C7;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 14px 16px;
  margin: 0 0 8px;
}
.article__body .faq-a::before {
  content: "A";
  flex-shrink: 0;
  display: grid;
  place-content: center;
  width: 26px;
  height: 26px;
  background: #2C3E5D;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.toc ol, .toc ol li { list-style: none !important; }
.toc ol li::marker { content: none; }

/* 表のはみ出し対策（スマホは横スクロール） */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
.table-scroll table { min-width: 540px; margin: 0; }

/* グリッド子要素の縮小許可（pre/tableのはみ出し根本対策） */
.blog-layout > * , .blog-main, .blog-sidebar { min-width: 0; }
.article__body pre { max-width: 100%; overflow-x: auto; }
.article__body img { max-width: 100%; height: auto; }


/* ============ ブログ一覧ページ（2026-08-04整備） ============ */
.blog-index {
  background: #FDFCFA;
  padding: 56px 20px 90px;
}
.blog-index__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.series-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #FFF4E8;
  border: 1.5px solid #FFD9B3;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.series-intro__badge {
  flex-shrink: 0;
  background: #FF7500;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: 100px;
  padding: 8px 20px;
}
.series-intro__text {
  font-size: 13.5px;
  color: #6b5335;
  line-height: 1.9;
  margin: 0;
}
.blog-grid--index {
  grid-template-columns: repeat(3, 1fr);
}
.blog-card { background: #fff; }
.blog-card__title { font-size: 16px; line-height: 1.6; margin: 0 0 8px; }
.blog-card__excerpt {
  font-size: 12.5px;
  color: #777;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__tag--hp { background: #FFF4E8; color: #FF7500; }
@media (max-width: 1024px) {
  .blog-grid--index { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .blog-grid--index { grid-template-columns: 1fr; }
  .blog-index { padding: 36px 18px 64px; }
}
