/* =============================================================================
   K-Attraction コラム共通スタイル (column.css)
   -----------------------------------------------------------------------------
   ・全コラム記事 / コラム一覧で読み込む共通CSSです。
   ・ページの外枠（ヘッダー・フッター・ヒーロー）は既存サイトと同じ Tailwind
     ユーティリティで組みます。このCSSは「記事本文」と「コラム専用パーツ」
     （目次・結論ボックス・FAQ・CTA・タグ・一覧カード等）を担当します。
   ・サイト全体の配色変更などはこのファイル1か所を直せば全記事に反映されます。
   ============================================================================= */

:root {
  --primary: #0066FF;
  --primary-dark: #1D4ED8;
  --secondary: #FF6B00;
  --navy: #0F172A;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 20px 45px -20px rgba(15, 23, 42, 0.18);

  --font-sans: "Noto Sans JP", sans-serif;
  --font-heading: "Montserrat", "Noto Sans JP", sans-serif;

  --header-h: 5rem; /* 既存ヘッダー h-20 = 80px ぶんのスクロール余白 */
}

html {
  scroll-behavior: smooth;
}

/* Material Symbols（アイコン）の表示を保証する */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* =============================================================================
   パンくず / 記事メタ / カテゴリ / タグ（ヒーロー内で使用）
   ============================================================================= */
.column-breadcrumb {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}
.column-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.column-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.column-breadcrumb li:not(:last-child)::after {
  content: "›";
  color: var(--slate-300);
  font-weight: 700;
}
.column-breadcrumb a {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.2s ease;
}
.column-breadcrumb a:hover {
  color: var(--primary);
}
.column-breadcrumb [aria-current="page"] {
  color: var(--slate-500);
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.column-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.column-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-400);
}
.column-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.column-meta .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--slate-300);
}

.column-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.column-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 0.75rem;
  font-weight: 600;
}
.column-tag::before {
  content: "#";
  color: var(--slate-300);
  margin-right: 0.15rem;
}

/* =============================================================================
   結論（要点）ボックス … 記事冒頭のサマリー
   ============================================================================= */
.column-summary {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--slate-50) 100%);
  border: 1px solid var(--slate-100);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.85rem;
  margin: 0 0 3rem;
  box-shadow: var(--shadow-soft);
}
.column-summary__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.column-summary__label .material-symbols-outlined {
  font-size: 1rem;
}
.column-summary p {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.95;
}

/* =============================================================================
   目次（column.js で自動生成）
   ============================================================================= */
.column-toc {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 0 3rem;
}
.column-toc__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--slate-200);
}
.column-toc__title .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--primary);
}
.column-toc ol {
  counter-reset: toc;
  list-style: none;
  margin: 0;
  padding: 0;
}
.column-toc > ol > li {
  counter-increment: toc;
  margin: 0.55rem 0;
}
.column-toc > ol > li > a {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.column-toc > ol > li > a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
}
.column-toc a {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.2s ease;
}
.column-toc a:hover {
  color: var(--primary);
}
.column-toc__sub {
  list-style: none;
  margin: 0.4rem 0 0;
  padding-left: 1.6rem;
}
.column-toc__sub li {
  margin: 0.35rem 0;
}
.column-toc__sub a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
  position: relative;
  padding-left: 0.9rem;
}
.column-toc__sub a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.35rem;
  height: 1px;
  background: var(--slate-300);
}

/* =============================================================================
   記事本文（プロ―ズ）… h2/h3/p/ul/ol/strong/a/blockquote/img/table 等
   ============================================================================= */
.column-body {
  color: var(--slate-700);
  font-size: 1.0625rem;
  line-height: 1.95;
}
.column-body > *:first-child {
  margin-top: 0;
}
.column-body > *:last-child {
  margin-bottom: 0;
}

/* h2 見出し：本文(.column-body 内)でも、単体(.column-h2 / 例:FAQ見出し)でも使える */
.column-body h2,
.column-h2 {
  position: relative;
  font-weight: 900;
  color: var(--navy);
  font-size: clamp(1.45rem, 4vw, 1.875rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 3.5rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--slate-100);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.column-body h2::after,
.column-h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 3.5rem;
  height: 2px;
  background: var(--primary);
}

.column-body h3 {
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.15rem, 3vw, 1.3rem);
  line-height: 1.6;
  margin: 2.5rem 0 1rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--primary);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.column-body h4 {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 2rem 0 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.column-body p {
  margin: 0 0 1.5rem;
  color: var(--slate-600);
}

.column-body a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 255, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.column-body a:hover {
  color: var(--primary-dark);
}

.column-body strong {
  color: var(--navy);
  font-weight: 700;
}

.column-body ul,
.column-body ol {
  margin: 0 0 1.75rem;
  padding-left: 1.5rem;
  color: var(--slate-600);
}
.column-body li {
  margin-bottom: 0.65rem;
  line-height: 1.9;
}
.column-body ul {
  list-style: disc;
}
.column-body ol {
  list-style: decimal;
}
.column-body li::marker {
  color: var(--primary);
}
.column-body ul ul,
.column-body ol ol,
.column-body ul ol,
.column-body ol ul {
  margin: 0.6rem 0 0.6rem;
}

.column-body blockquote {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--primary);
  background: var(--slate-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--slate-600);
}
.column-body blockquote p:last-child {
  margin-bottom: 0;
}

.column-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2.25rem 0;
}
.column-body figure {
  margin: 2.25rem 0;
}
.column-body figure img {
  margin: 0;
}
.column-body figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.column-body hr {
  border: 0;
  border-top: 1px solid var(--slate-100);
  margin: 2.5rem 0;
}

.column-body code {
  background: var(--slate-100);
  border-radius: 6px;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--navy);
}
.column-body pre {
  background: var(--navy);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  margin: 0 0 1.75rem;
}
.column-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* 表（料金表など） */
.column-body .column-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.75rem;
}
.column-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.column-body th,
.column-body td {
  border: 1px solid var(--slate-200);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}
.column-body thead th {
  background: var(--slate-50);
  color: var(--navy);
  font-weight: 700;
}
.column-body tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.6);
}

/* =============================================================================
   FAQ（<details>/<summary> によるアコーディオン。JS不要）
   ============================================================================= */
.column-faq {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.column-faq__item {
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.column-faq__item summary {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.7;
}
.column-faq__item summary::-webkit-details-marker {
  display: none;
}
.column-faq__item summary::after {
  content: "add";
  font-family: "Material Symbols Outlined";
  margin-left: auto;
  flex: none;
  color: var(--primary);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}
.column-faq__item[open] summary::after {
  content: "remove";
}
.column-faq__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
}
.column-faq__answer {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0 1.4rem 1.4rem;
  color: var(--slate-600);
  line-height: 1.9;
}
.column-faq__answer .column-faq__badge {
  background: var(--slate-100);
  color: var(--secondary);
}
.column-faq__answer p {
  margin: 0;
}

/* =============================================================================
   CTA（記事末の問い合わせ誘導）
   ============================================================================= */
.column-cta {
  margin: 3.5rem 0 0;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% -20%, rgba(0, 102, 255, 0.45), transparent 55%),
    radial-gradient(circle at 0% 120%, rgba(255, 107, 0, 0.25), transparent 50%),
    var(--navy);
  color: #fff;
  padding: 2.75rem 2.25rem;
  text-align: center;
}
.column-cta__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.column-cta__title {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 900;
  line-height: 1.5;
  margin: 0.85rem 0 0.85rem;
}
.column-cta__text {
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.9;
  margin: 0 auto 1.85rem;
  max-width: 36rem;
}
.column-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.column-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.column-cta__btn .material-symbols-outlined {
  font-size: 1.2rem;
}
.column-cta__btn--primary {
  background: #fff;
  color: var(--navy);
}
.column-cta__btn--primary:hover {
  transform: translateY(-2px);
  background: var(--primary);
  color: #fff;
}
.column-cta__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.column-cta__btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

/* 一覧へ戻る */
.column-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 3rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.column-back:hover {
  color: var(--primary-dark);
}
.column-back .material-symbols-outlined {
  font-size: 1.2rem;
}

/* =============================================================================
   コラム一覧（index.html）
   ============================================================================= */
.column-list {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .column-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .column-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.column-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.column-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--slate-200);
}
.column-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.column-card__date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
}
.column-card__date .material-symbols-outlined {
  font-size: 1rem;
  color: var(--slate-300);
}
.column-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.6;
  margin: 0 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.column-card__excerpt {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.85;
  margin: 0 0 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.column-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.column-card:hover .column-card__more {
  gap: 0.7rem;
}
.column-card__more .material-symbols-outlined {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

/* =============================================================================
   レスポンシブ微調整
   ============================================================================= */
@media (max-width: 640px) {
  .column-summary,
  .column-toc {
    padding: 1.35rem 1.25rem;
  }
  .column-cta {
    padding: 2.25rem 1.5rem;
  }
  .column-cta__btn {
    width: 100%;
    justify-content: center;
  }
}
