@charset "utf-8";

/* ============================================================
   column.css — コラム一覧／記事ページ専用スタイル
   Shared header/footer/sitemap/page-heroスタイルは components.css にあります
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; overflow-x: hidden; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  overflow-x: clip;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #06617f; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #30a1af; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: #646464;
}
.breadcrumb a { color: #30a1af; }
.breadcrumb a:hover { color: #06617f; }
.breadcrumb__sep {
  margin: 0 0.5rem;
  color: #d0d0d0;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-pad { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background: var(--c-teal);
  margin: 0.75rem auto 0;
  border-radius: 0.125rem;
}

/* ============================================================
   コラム一覧：検索ツールバー
   ============================================================ */
.column-toolbar {
  margin-bottom: 2.5rem;
}

.column-search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 30rem;
  background: #fff;
  border: 1px solid #d6dde2;
  border-radius: 3.125rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
  transition: border-color .2s, box-shadow .2s;
}

.column-search:focus-within {
  border-color: var(--c-teal);
  box-shadow: 0 0 0 0.1875rem rgba(48, 161, 175, 0.15);
}

.column-search .material-symbols-outlined {
  color: var(--c-teal);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.column-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #1a1a1a;
}

.column-search__input::placeholder { color: #646464; }

.column-empty {
  display: none;
  text-align: center;
  color: #646464;
  font-size: 0.9375rem;
  padding: 3rem 0;
}

.column-empty.is-visible { display: block; }

/* ============================================================
   コラム一覧カード
   ============================================================ */
.column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.column-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border-top: 0.25rem solid var(--c-teal);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.column-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.75rem rgba(6, 97, 127, 0.14);
}

.column-card__thumb {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--c-light-bg);
}

.column-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.column-card:hover .column-card__thumb img { transform: scale(1.06); }

.column-card__thumb--multi {
  display: flex;
}

.column-card__thumb--multi img {
  flex: 1;
  width: 0;
  height: 100%;
  object-fit: cover;
}

.column-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.column-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

.column-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-dark-blue);
  background: #fff;
  border: 1px solid var(--c-teal);
  border-radius: 0.25rem;
  padding: 0.25rem 0.625rem;
}

.column-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  min-height: 3rem; /* 1rem × 1.5 × 2行分 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-card__desc {
  font-size: 0.8125rem;
  color: #646464;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #646464;
}

.column-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--c-teal);
}

.column-card:hover .column-card__link { color: var(--c-dark-blue); }

/* ============================================================
   本文＋右サイドバー レイアウト
   ============================================================ */
.article-layout {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.article-main { flex: 1 1 auto; min-width: 0; }

/* 記事ページ：本文セクションの背景を薄いグレーにし、記事本体は白カードにして際立たせる */
.section-pad:has(.article-layout) {
  background: var(--c-light-bg);
}

.article-main {
  background: #fff;
  border-radius: 1rem;
  padding: 2.75rem 3rem 3.25rem;
  box-shadow: 0 0.25rem 1.5rem rgba(6, 97, 127, 0.08);
}

.article-sidebar {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  flex: 0 0 22.4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-sidebar__box {
  flex-shrink: 0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 0.25rem 1.5rem rgba(6, 97, 127, 0.1);
  overflow: hidden;
}

.article-sidebar__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--c-teal);
  margin: -1.75rem -1.5rem 1.25rem;
  padding: 1rem 1.5rem;
}

.article-sidebar__heading .material-symbols-outlined { font-size: 1.25rem; }

.article-related-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-related-list__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-dark-blue);
  background: var(--c-light-bg);
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background .2s, color .2s;
}

.article-related-list__link .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--c-teal);
  flex-shrink: 0;
}

.article-related-list__link:hover { background: var(--c-teal); color: #fff; }
.article-related-list__link:hover .material-symbols-outlined { color: #fff; }

/* ============================================================
   記事ヘッダー（アイキャッチ画像・メタ情報）
   ============================================================ */
.article-featured-image {
  display: flex;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 2rem rgba(6, 97, 127, 0.14);
  margin-bottom: 2.5rem;
}

.article-featured-image img {
  flex: 1;
  width: 0;
  height: 26rem;
  object-fit: cover;
}

/* イラスト画像は切り取らず全体を表示する（写真のトリミング表示とは分ける） */
.article-featured-image--illustration {
  aspect-ratio: 8 / 5;
  background: var(--c-light-bg);
}

.article-featured-image--illustration img {
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(208, 208, 208, 0.5);
}

.article-meta-bar__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-dark-blue);
  background: #fff;
  border: 1px solid var(--c-teal);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
}

.article-meta-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: #646464;
}

.article-meta-bar__item .material-symbols-outlined {
  font-size: 1.0625rem;
  color: var(--c-teal);
}

/* ============================================================
   記事本文
   ============================================================ */
.article-lead {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.9;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(208, 208, 208, 0.5);
}

.article-section { margin-bottom: 4.5rem; }
.article-section:last-child { margin-bottom: 0; }

.article-section__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-dark-blue);
  background: #fff;
  border: 1px solid var(--c-teal);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
}

.article-section__title {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  line-height: 1.55;
  color: #1a1a1a;
  margin: 0 0 1.75rem;
  text-align: left;
  text-decoration: none;
}

.article-section__title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background: var(--c-teal);
  margin: 0.75rem 0 0;
  border-radius: 0.125rem;
}

.article-section__image-block {
  margin: 0 auto 2rem;
}
.article-section__image {
  width: 100%;
  max-height: 30rem;
  object-fit: contain;
  object-position: center;
  /* box-shadow: 0 0.375rem 1.5rem rgba(6, 97, 127, 0.12); */
}
.article-section__caption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #646464;
  text-align: right;
}

.article-section h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.7;
  margin: 2.5rem 0 1rem;
}

.article-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.25rem 1.75rem 1.25rem 3rem;
  background: var(--c-light-bg);
  border: 1px solid var(--c-teal);
  border-left-width: 0.3125rem;
  border-radius: 0.75rem;
  font-size: 1.0625rem;
  font-style: italic;
  color: #1a1a1a;
  line-height: 1.9;
}

.article-quote::before {
  content: '\201C';
  position: absolute;
  left: 0.875rem;
  top: 0.125rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--c-teal);
}

.article-link {
  color: #007bff ;
}

.article-quote p { margin-bottom: 0.5rem; }
.article-quote p:last-child { margin-bottom: 0; }
.article-quote strong { font-style: normal; color: var(--c-dark-blue); }

/* ---- 記事内検索（サイドバー） ---- */
.article-sidebar__box .column-search { max-width: none; }

.article-section h3:first-of-type { margin-top: 0.5rem; }

.article-note {
  background: var(--c-light-bg);
  border-radius: 0.5rem;
  padding: 1.75rem 2rem;
  margin: 2.25rem 0;
}

.article-note p {
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.85;
  margin-bottom: 0.75rem;
}
.article-note p:last-child { margin-bottom: 0; }

.article-note ul {
  margin: 0.75rem 0 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.article-note li {
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.8;
  padding-left: 1.25rem;
  position: relative;
}

.article-note li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--c-teal);
}

/* ---- 比較表 ---- */
.article-table-wrap {
  overflow-x: auto;
  margin: 2rem 0 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
}

.article-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article-table th,
.article-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #d0d0d0;
  text-align: left;
  line-height: 1.7;
  vertical-align: top;
}

.article-table thead th {
  background: var(--c-dark-blue);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.article-table tbody th {
  background: var(--c-light-bg);
  font-weight: 700;
  color: var(--c-dark-blue);
  white-space: nowrap;
}

/* テーブル内のリスト用スタイルの調整（追記） */
.article-table td ul {
  margin: 0;            /* ブラウザデフォルトの上下余白を消す */
}

.article-table td li {
  margin-bottom: 0.35rem; /* リスト同士の間隔を微調整 */
}

.article-table td li:last-child {
  margin-bottom: 0;       /* 最後の要素の余白は消す */
}

.article-table tbody tr:nth-child(even) { background: var(--c-light-bg); }

.article-table strong { color: var(--c-dark-blue); }

/* ---- 表直下のアンカーリンクスタイル ---- */
.table-source {
  padding: 0.35rem 0.75rem;
  background: var(--c-light-bg);
  border-top: 1px solid #d0d0d0;
  text-align: right; /* 右端に小さく配置 */
  min-width: max-content; /* テーブルの幅が広がっても背景を右端までカバー */
  position: sticky;       /* スクロールしても常に画面の右側に固定 */
  right: 0;
  left: 0;
}

.source-anchor-link {
  font-size: 0.6875rem;
  color: #646464;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ほんの少し矢印をつけてクリックできる感を演出 */
.source-anchor-link::after {
  content: " ↓";
  font-size: 0.65rem;
}

.source-anchor-link:hover {
  color: var(--c-dark-blue);
  text-decoration: underline;
}

/* アンカーリンクの着地位置調整 */
#references {
  scroll-margin-top: 4rem;
}

/* ---- 記事末尾の参考文献エリア ---- */
.article-references {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--c-light-bg);
  border-radius: 0.5rem;
  border: 1px solid #d0d0d0;
  font-size: 0.8125rem;
  color: #646464;
  /* ヘッダーなどが固定されている場合のスクロール位置ずれ防止 */
  scroll-margin-top: 2rem; 
}

.references-title {
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--c-dark-blue);
  font-size: 0.875rem;
}

.references-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.references-list li {
  margin-bottom: 0.35rem;
}

.references-list a {
  color: var(--c-dark-blue);
  text-decoration: underline;
  text-underline-offset: 0.125rem;
}

.references-list a:hover {
  color: var(--c-teal);
}

/* 区切り線のスラッシュ */
.source-sep {
  color: #d0d0d0;
  font-size: 0.65rem;
}

.table-source-date {
  color: #646464;
  font-size: 0.7rem;
}

/* ---- 意思決定フローチャート ---- */
.decision-flow {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}

.decision-flow__step {
  background: #fff;
  border: 1px solid rgba(208, 208, 208, 0.5);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.05);
}

.decision-flow__question {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--c-dark-blue);
  font-size: 1rem;
  margin-bottom: 1.125rem;
}

.decision-flow__question .material-symbols-outlined { color: var(--c-teal); }

.decision-flow__branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.decision-flow__branch {
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  border-left: 0.25rem solid;
}

/* YES＝ティール（メインカラー）／NO＝テラコッタ（素敵な社員食堂の配色, home.css と共通） */
.decision-flow__branch--yes { background: #e9f8fa; border-left-color: var(--c-teal); }
.decision-flow__branch--no { background: #fdf3ef; border-left-color: #c45c2e; }

.decision-flow__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  color: #fff;
}

.decision-flow__branch--yes .decision-flow__label { background: var(--c-teal); }
.decision-flow__branch--no .decision-flow__label { background: #c45c2e; }

.decision-flow__result {
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1.75;
}

.decision-flow__result strong { color: var(--c-dark-blue); }

.decision-flow__arrow {
  display: flex;
  justify-content: center;
  color: var(--c-teal);
  margin: 0.375rem 0;
}

/* ---- サービス紹介・製品リンク ---- */
.article-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-light-bg);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border-top: 0.25rem solid var(--c-teal);
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-product-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.75rem rgba(6, 97, 127, 0.14);
}

.article-product-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-dark-blue);
  margin-bottom: 0.625rem;
}

.article-product-card__desc {
  font-size: 0.875rem;
  color: #646464;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1rem;
}

.article-product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-dark-blue);
  align-self: flex-start;
}

.article-product-card:hover .article-product-card__link { color: var(--c-teal); }

/* ============================================================
   CTA
   ============================================================ */
.article-cta {
  text-align: center;
  margin: 4.5rem 0 4.5rem 0;
}

.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #e87d1e;
  color: #fff;
  border-radius: 3.125rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background .25s, color .25s, transform .15s;
}
.article-cta__btn:hover {
    background: #1a1a1a;
    color: var(--c-white);
}

/* ============================================================
   レスポンシブ（≤768px）
   ============================================================ */
@media (max-width: 48rem) {
  .section-pad { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }

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

  .article-layout {
    flex-direction: column;
    gap: 2.5rem;
  }
  .article-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }
  /* 表など幅の広い子要素があっても親をはみ出させない（table-wrap側で横スクロールさせる） */
  .article-main { width: 100%; padding: 1.75rem 1.25rem 2.25rem; border-radius: 0.75rem; }

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

  .article-featured-image img { max-height: 14rem; }
  .article-featured-image--illustration img { max-height: none; }
  .article-meta-bar { gap: 0.75rem 1rem; margin-bottom: 2rem; padding-bottom: 1.25rem; }

  .decision-flow__branches { grid-template-columns: 1fr; }

  .column-search { max-width: none; }
}
