/* ============================================
   Technicalblog01 - 技術検証ブログ共通スタイル
   汎用的に再利用可能な技術記事デザイン
   ============================================ */

/* === Base === */
.tb01-article {
  color: #223;
  font-size: 15px;
  line-height: 1.9;
}


/* === Scroll offset for anchor links === */
.tb01-article h2[id],
.tb01-article h3[id],
.tb01-article div[id] {
  scroll-margin-top: 80px;
}


/* === outer links === */
.social-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
}

.social-link:hover {
    transform: translateX(10px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
}

.social-link.facebook { background-color: #1876f200; }
.social-link.twitter { background-color: #00000000; }
.social-link.linkedin { background-color: #0a66c200; }


/* スマートフォン時は下部に移動 */
@media (max-width: 768px) {
    .social-sidebar {
        position: fixed;
        right: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
    }
    
    .social-list {
        flex-direction: row;
    }
}


/* === 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: #f5f8ff;
  border: 1px solid #157db1;
  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;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #2591c7;
}
.tb01-author__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.4);
  transform-origin: center 140%; 
}

.tb01-author__info {
  flex: 1;
  min-width: 0;
}
.tb01-author__name-jp {
  font-size: 16px;
  font-weight: bold;
  color: #178cc5;
  line-height: 1.4;
}
.tb01-author__name-en {
  font-size: 12px;
  color: #111314;
  margin-top: 2px;
  line-height: 1.3;
}
.tb01-author__dept {
  font-size: 12px;
  color: #031264;
  margin-top: 8px;
  line-height: 1.6;
}
.tb01-author__arrow {
  flex-shrink: 0;
  font-size: 14px;
  color: #157bad;
  margin-left: auto;
}
@media screen and (max-width: 575.98px) {
  .tb01-author {
    gap: 14px;
    padding: 16px 16px;
  }
  .tb01-author__img img {
    width: 90px;
    height: 90px;
    transform-origin: center 120%;
  }
  .tb01-author__name-jp {
    font-size: 15px;
  }
  .tb01-author__dept {
    font-size: 11px;
  }
}

/* === TOC (目次) === */
.tb01-toc {
  margin: 24px 0 36px;
  padding: 22px 26px;
  background: #f4f4f4;
  border: 1px solid #157db1;
  border-radius: 10px;
}
.tb01-toc:hover {
  box-shadow: 0 4px 16px rgba(20,67,153,0.13);
  transform: translateY(-2px);
}
.tb01-toc__title {
  font-size: 16px;
  font-weight: bold;
  color: #04151d;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1777c5;
}
.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: #1777c5;
  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: #ff6200;
  text-decoration: underline;
}
.tb01-toc__list li a::before {
  content: counter(toc-counter) ". ";
  font-weight: bold;
  color: #04151d;
}

/* === 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: #01275a;
  background: linear-gradient(135deg, #f4f8ff 0%, #f4f8ff 100%);
  border-left: 5px solid #004399;
  border-bottom: 2px solid #6e829c;
  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, #004399 0%, #004399 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;
}

/* === 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: #e3f0fc;
  color: #154686;
  font-weight: bold;
}
.tb01-article .simple-table caption {
  caption-side: top;
  text-align: left;
  font-weight: bold;
  color: #154686;
  font-size: 15px;
  padding: 8px 0;
}
.tb01-article .simple-table td.eval-mark {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  width: 50px;
}

/* === 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: #d0efff;
  border-radius: 8px;
  border-left: 4px solid #0094e8;
  font-size: 17px;
  font-weight: bold;
  color: #026dac;
}

.tb01-article .context-header2 {
  display: flex;
  align-items: center;
  margin: 20px 0 10px;
  padding: 12px 18px;
  background: rgb(255, 223, 179);
  border-radius: 8px;
  border-left: 4px solid #ff6200;
  font-size: 17px;
  font-weight: bold;
  color: #c53a03;
}

.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: #ff6200;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}

.tb01-article .cta-link2 {
  display: inline-block;
  margin: 16px 0;
  padding: 12px 28px;
  background: #0d3070;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}

.tb01-article .cta-link:hover {
  background: #0d3070;
  color: #fff;
}

.tb01-article .cta-link2:hover {
  background: #ff6200;
  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;
}
.tb01-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 170px 40px 20px;
  background: linear-gradient(180deg, rgba(10,30,80,0.45) 0%, rgba(10,30,80,0.60) 100%);
}
.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;
  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;
}
@media (max-width: 1250px) {
  .tb01-hero__title {
    font-size: 22px;
    padding: 0 16px;
  }
}
@media (max-width: 767px) {
  .tb01-hero__overlay {
    /* padding: 60px 16px 16px; */
    padding: 110px 16px 16px;
  }
  .tb01-hero__title {
    font-size: 16px;
    line-height: 1.6;
  }
  .tb01-hero__label {
    font-size: 11px;
    padding: 3px 14px;
    margin-bottom: 8px;
  }
}

/* === 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;
  }
}



