/* ============================================
   Technicalblog01 - 技術検証ブログ共通スタイル
   汎用的に再利用可能な技術記事デザイン
   ============================================ */

/* === Base === */
.tb01-article {
  color: #223;
  font-size: 15px;
  line-height: 1.9;
}

/* === Scroll offset for anchor links === */
/* Now handled by JS scrollIntoView({ block: 'center' }) */

/* === Article meta (date etc.) === */
.tb01-article-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 14px 0 8px;
  font-size: 14px;
  color: #5a6a7a;
}
.tb01-article-meta__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === Author card === */
.tb01-author {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0 8px;
  padding: 20px 24px;
  background: #f8fafe;
  border: 1px solid #d0dff0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
}
.tb01-author:hover {
  box-shadow: 0 4px 16px rgba(20,67,153,0.13);
  transform: translateY(-2px);
}
.tb01-author__img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d0dff0;
}
/* common.css の .box_cont_detail img による上書きを全幅で防止 */
.tb01-author__img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  object-position: center 30%;
}
.tb01-author__info {
  flex: 1;
  min-width: 0;
}
.tb01-author__name-jp {
  font-size: 16px;
  font-weight: bold;
  color: #144399;
  line-height: 1.4;
}
.tb01-author__name-en {
  font-size: 12px;
  color: #7a8a9a;
  margin-top: 2px;
  line-height: 1.3;
}
.tb01-author__dept {
  font-size: 12px;
  color: #5a6a7a;
  margin-top: 8px;
  line-height: 1.6;
}
.tb01-author__arrow {
  flex-shrink: 0;
  font-size: 14px;
  color: #144399;
  margin-left: auto;
}
@media screen and (max-width: 575.98px) {
  .tb01-author {
    gap: 14px;
    padding: 16px 16px;
  }
  .tb01-author__img {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }
  .tb01-author__name-jp {
    font-size: 15px;
  }
  .tb01-author__dept {
    font-size: 11px;
  }
}

/* === TOC (目次) === */
.tb01-toc {
  margin: 24px 0 36px;
  padding: 22px 26px;
  background: #f8fafe;
  border: 1px solid #d0dff0;
  border-radius: 10px;
}
.tb01-toc__title {
  font-size: 16px;
  font-weight: bold;
  color: #144399;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #144399;
}
.tb01-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.tb01-toc__list li {
  counter-increment: toc-counter;
  margin-bottom: 5px;
}
.tb01-toc__list li a {
  color: #144399;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.7;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.tb01-toc__list li a:hover {
  color: #0066cc;
  text-decoration: underline;
}
.tb01-toc__list li a::before {
  content: counter(toc-counter) ". ";
  font-weight: bold;
  color: #144399;
}

/* === h2 heading design (技術ブログ汎用) === */
.tb01-article .tb01-heading {
  position: relative;
  margin: 40px 0 18px;
  padding: 16px 20px 16px 22px;
  font-size: 20px;
  font-weight: bold;
  color: #1a2a4a;
  background: linear-gradient(135deg, #f0f5fc 0%, #f8faff 100%);
  border-left: 5px solid #144399;
  border-bottom: 2px solid #d0dff0;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}
.tb01-article .tb01-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #144399 0%, #2b6cb0 100%);
  border-radius: 3px 0 0 3px;
}

/* === Lead/callout boxes === */
.tb01-article .lead-box {
  margin: 18px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f4fbff 0%, #f8f6ff 100%);
  border-left: 4px solid #09d;
  border-radius: 8px;
}

/* === Note lists === */
.tb01-article .note-list {
  margin: 14px 0;
  padding-left: 1.2em;
}
.tb01-article .note-list li {
  margin-bottom: 10px;
}

/* === Section images/figures === */
.tb01-article .section-image {
  margin: 24px 0 14px;
  text-align: center;
}
.tb01-article .section-image img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border: 1px solid #d8e7f6;
  border-radius: 10px;
}
.tb01-article .section-image figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #4f5d6b;
  font-style: italic;
}

/* === Tables === */
.tb01-article .simple-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 14.5px;
}
.tb01-article .simple-table th,
.tb01-article .simple-table td {
  border: 1px solid #c9d8e8;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.tb01-article .simple-table th {
  background: #edf5fc;
  color: #123a6e;
  font-weight: bold;
}
.tb01-article .simple-table caption {
  caption-side: top;
  text-align: left;
  font-weight: bold;
  color: #123a6e;
  font-size: 15px;
  padding: 8px 0;
}
.tb01-article .simple-table td.eval-mark {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  width: 50px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Yu Gothic', sans-serif;
}

/* === Code blocks === */
.tb01-article .code-block {
  margin: 14px 0 18px;
  padding: 16px 18px;
  background: #1a1f2e;
  color: #d9e6ff;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
.tb01-article .code-block .code-comment {
  color: #6a9955;
}

/* === Result blocks (RUNSQL/SHOWSQL output) === */
.tb01-article .result-block {
  margin: 14px 0 18px;
  padding: 16px 18px;
  background: #f5f7fa;
  border: 1px solid #d0d8e4;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.6;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  white-space: pre-wrap;
  word-break: break-all;
}
.tb01-article .result-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  background: #144399;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  font-family: 'NotoSansCJKjp', sans-serif;
}

/* === KPI/metric boxes === */
.tb01-article .kpi-box {
  margin: 14px 0;
  padding: 16px 18px;
  background: #f4faff;
  border: 1px solid #cde6ff;
  border-radius: 8px;
  line-height: 1.7;
}
.tb01-article .kpi-box strong {
  color: #0b4f8a;
}

/* === Step indicators === */
.tb01-article .step-section {
  margin: 20px 0;
  padding: 20px 24px;
  border: 1px solid #d8e7f6;
  border-radius: 10px;
  background: #fafcfe;
}
.tb01-article .step-label {
  display: inline-block;
  padding: 4px 18px;
  background: #144399;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  margin-bottom: 10px;
}
.tb01-article .step-title {
  font-size: 16px;
  font-weight: bold;
  color: #1a3060;
  margin: 8px 0 12px;
  line-height: 1.5;
}

/* === 背景 課題 section headers === */
.tb01-article .context-header {
  display: flex;
  align-items: center;
  margin: 20px 0 10px;
  padding: 12px 18px;
  background: #f0f5fc;
  border-radius: 8px;
  border-left: 4px solid #144399;
  font-size: 17px;
  font-weight: bold;
  color: #1a2a4a;
}
.tb01-article .context-header--issue {
  background: #fef8f0;
  border-left-color: #e88c2a;
  color: #6b3a00;
}

/* === Issue sub-items === */
.tb01-article .issue-item {
  margin: 12px 0;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #f0d8c0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tb01-article .issue-item strong {
  display: block;
  color: #6b3a00;
  margin-bottom: 6px;
  font-size: 15px;
}
.tb01-article .issue-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

/* === Phase section headers === */
.tb01-article .phase-header {
  margin: 28px 0 16px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #144399 0%, #2b6cb0 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  line-height: 1.6;
}

/* === Support / CTA section === */
.tb01-article .support-section {
  margin: 30px 0;
  padding: 0;
  background: #fff;
  border: 2px solid #144399;
  border-radius: 14px;
  overflow: hidden;
}
.tb01-article .support-header__title {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.03em;
}
.tb01-article .support-body {
  padding: 24px 26px;
  background: linear-gradient(135deg, #f6faff 0%, #f8f4ff 100%);
}
.tb01-article .support-list {
  margin: 14px 0;
  padding-left: 0;
  list-style: none;
}
.tb01-article .support-list li {
  margin-bottom: 10px;
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  line-height: 1.8;
}
.tb01-article .support-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #144399;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.5;
}
.tb01-article .cta-link {
  display: inline-block;
  margin: 16px 0;
  padding: 12px 28px;
  background: #144399;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.tb01-article .cta-link:hover {
  background: #0d3070;
  color: #fff;
}

/* === Disclaimer === */
.tb01-article .disclaimer {
  margin: 24px 0;
  padding: 16px 20px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* === Hero banner (box_title overlay) === */
.tb01-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box_title の固定 height をオーバーライド */
  height: auto !important;
  min-height: 360px;
  background-size: cover;
}
.tb01-hero__overlay {
  position: relative;
  width: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 40px;
  background: linear-gradient(180deg, rgba(10,30,80,0.45) 0%, rgba(10,30,80,0.60) 100%);
  box-sizing: border-box;
}
/*
 * 固定ヘッダーの高さ分を擬似要素スペーサーとして確保。
 * flexbox justify-content: center がこのスペーサーとtitleを含めて中央配置するため、
 * タイトルは「ヘッダー下の可視領域」のど真ん中に来る。
 */
.tb01-hero__overlay::before {
  content: "";
  display: block;
  flex-shrink: 0;
  /* PC: fs_box(35px) + boxA(60px) + padding(25px) ≈ 120px */
  height: 120px;
}
.tb01-hero__label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 22px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.50);
  border-radius: 20px;
  letter-spacing: 0.12em;
}
.tb01-hero__title {
  margin: 0;
  padding: 0 20px;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  letter-spacing: 0.02em;
  word-break: auto-phrase;
}
@media (max-width: 1250px) {
  .tb01-hero {
    min-height: 320px;
  }
  .tb01-hero__overlay {
    padding: 24px 30px;
  }
  .tb01-hero__overlay::before {
    height: 110px;
  }
  .tb01-hero__title {
    font-size: 22px;
    padding: 0 16px;
  }
}
@media (max-width: 767px) {
  .tb01-hero {
    min-height: 280px;
  }
  .tb01-hero__overlay {
    padding: 16px 16px;
  }
  .tb01-hero__overlay::before {
    /* モバイルヘッダー: fs_box(30px) + boxA(50px) + padding(10px) ≈ 90px */
    height: 90px;
  }
  .tb01-hero__title {
    font-size: 16px;
    line-height: 1.6;
    padding: 0 8px;
  }
  .tb01-hero__label {
    font-size: 11px;
    padding: 3px 14px;
    margin-bottom: 8px;
  }
}
@media (max-width: 480px) {
  .tb01-hero {
    min-height: 260px;
  }
  .tb01-hero__overlay {
    padding: 12px 12px;
  }
  .tb01-hero__overlay::before {
    height: 85px;
  }
  .tb01-hero__title {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* === h3 subheading (tb01-heading 相当) === */
.tb01-article .tb01-subheading {
  position: relative;
  margin: 30px 0 16px;
  padding: 13px 18px 13px 20px;
  font-size: 17px;
  font-weight: bold;
  color: #1a2a4a;
  background: linear-gradient(135deg, #f0f5fc 0%, #f8faff 100%);
  border-left: 4px solid #2b6cb0;
  border-bottom: 1px solid #d0dff0;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

/* === Reference card (データの民主化 等) === */
.tb01-article .tb01-reference-card {
  display: flex;
  align-items: stretch;
  margin: 24px 0;
  border: 1px solid #d0dff0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}
.tb01-article .tb01-reference-card:hover {
  box-shadow: 0 4px 16px rgba(20,67,153,0.13);
  transform: translateY(-2px);
}
.tb01-article .tb01-reference-card__img {
  flex: 0 0 240px;
  background: #f0f5fc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tb01-article .tb01-reference-card__img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.tb01-article .tb01-reference-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 22px;
}
.tb01-article .tb01-reference-card__label {
  font-size: 12px;
  font-weight: bold;
  color: #144399;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.tb01-article .tb01-reference-card__title {
  font-size: 15px;
  font-weight: bold;
  color: #1a2a4a;
  line-height: 1.6;
  margin: 0;
}

/* === Flow timeline (Phase overview) === */
.tb01-article .tb01-flow-section {
  margin: 24px 0;
  padding: 0;
}
.tb01-article .tb01-flow-item {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  position: relative;
}
.tb01-article .tb01-flow-item + .tb01-flow-item {
  margin-top: 0;
}
.tb01-article .tb01-flow-badge {
  flex: 0 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tb01-article .tb01-flow-badge__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 36px;
  background: linear-gradient(90deg, #144399 0%, #2b6cb0 100%);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  border-radius: 18px;
  white-space: nowrap;
}
.tb01-article .tb01-flow-badge__line {
  width: 3px;
  flex: 1;
  background: #c0d4f0;
  min-height: 20px;
}
.tb01-article .tb01-flow-item:last-child .tb01-flow-badge__line {
  display: none;
}
.tb01-article .tb01-flow-body {
  flex: 1;
  padding: 6px 0 24px;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
.tb01-article .tb01-flow-body strong {
  color: #1a2a4a;
}

/* === Support header logo fix === */
.tb01-article .support-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  background: #004EA2;
  color: #fff;
}
.tb01-article .support-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.tb01-article .support-header__logo img {
  height: 32px;
  width: auto;
  border-radius: 2px;
}

/* === Responsive === */
@media screen and (max-width: 575.98px) {
  .tb01-article .simple-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tb01-article .step-section {
    padding: 14px 16px;
  }
  .tb01-toc {
    padding: 14px 16px;
  }
  .tb01-article .result-block {
    font-size: 11px;
  }
  .tb01-article .phase-header {
    font-size: 14px;
    padding: 12px 16px;
  }
  .tb01-article .tb01-reference-card {
    flex-direction: column;
  }
  .tb01-article .tb01-reference-card__img {
    flex: 0 0 auto;
    height: 160px;
  }
  .tb01-article .tb01-flow-badge {
    flex: 0 0 70px;
  }
  .tb01-article .tb01-flow-badge__label {
    width: 70px;
    font-size: 12px;
  }
}



