/* ============================================================
   Column（コラム）一覧・記事ページ
   トンマナ：白地の読み物面／紺 #244268 アクセント
   ============================================================ */

main.column-archive,
main.column-single {
  background: #fff;
}

/* ============================================================
   共通：Hero ラベル
   ============================================================ */
.column-archive__label,
.column-hero__label {
  font-family: "Roboto", "Zen Kaku Gothic New", sans-serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #aaa;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   一覧ページ（archive-column.php）
   ============================================================ */
.column-archive__hero {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-bottom: 1px solid #e5e5e5;
}

.column-archive__label {
  margin-bottom: 1.5rem;
}

.column-archive__title {
  font-family: "Roboto", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(28px, calc(2.2vw + 12px), 42px);
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-align: center;
}

.column-archive__sub {
  font-size: clamp(13px, calc(0.7vw + 6px), 15px);
  color: #888;
  letter-spacing: 0.06em;
  font-weight: 400;
  text-align: center;
}

.column-archive__body {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 1rem 120px;
}

.column-hero__thumb {
  position: relative;
  z-index: 1;
}

/* ===== カードグリッド ===== */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.column-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.column-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10), 0 18px 40px rgba(0, 0, 0, 0.20);
  border-color: rgba(36, 66, 104, 0.4);
}

.column-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f8f8f8;
  overflow: hidden;
}

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

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

.column-card__noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #ccc;
  background: linear-gradient(135deg, #f0f2f5 0%, #e6ebf1 100%);
}

.column-card__info {
  padding: 20px 22px 26px;
}

.column-card__date {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 10px;
}

.column-card__title {
  font-size: clamp(15px, calc(0.6vw + 10px), 17px);
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 12px;
}

.column-card__excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.9;
  letter-spacing: 0.03em;
  font-weight: 400;
}

.column-empty {
  text-align: center;
  color: #888;
  font-size: 15px;
  padding: 40px 0;
}

/* ===== ページネーション ===== */
.column-pagination {
  margin-top: 72px;
}

.column-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.column-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.column-pagination .page-numbers:hover,
.column-pagination .page-numbers.current {
  background: #244268;
  border-color: #244268;
  color: #fff;
}

/* ============================================================
   記事ページ（single-column.php）
   ============================================================ */
.column-hero {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.column-hero__label {
  margin-bottom: 1.2rem;
}

.column-hero__cat {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #244268;
  background: rgba(36, 66, 104, 0.08);
  border: 1px solid rgba(36, 66, 104, 0.2);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.column-hero__title {
  font-size: clamp(24px, calc(1.8vw + 12px), 36px);
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.column-hero__meta time {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #aaa;
}

.column-hero__thumb {
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 1rem;
}

.column-hero__thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ===== 本文（Gutenbergブロック出力）===== */
.column-body {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 56px auto 0;
  padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 60px) clamp(48px, 5vw, 72px);
  background: #f3f3f3;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.10), 0 14px 34px rgba(0, 0, 0, 0.18);
}

.entry-content {
  color: #444;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* 段落 */
.entry-content p {
  font-size: clamp(14px, calc(0.6vw + 10px), 16px);
  font-weight: 400;
  color: #444;
  line-height: 2.2;
  letter-spacing: 0.04em;
  margin: 1.6em 0;
}

/* 見出し */
.entry-content h2 {
  font-size: clamp(20px, calc(1vw + 12px), 26px);
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: left;
  margin: 2.8em 0 1em;
  padding-bottom: 0.6em;
  border-bottom: 2px solid #244268;
}

.entry-content h3 {
  font-size: clamp(17px, calc(0.8vw + 10px), 20px);
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin: 2.2em 0 0.8em;
  padding-left: 0.7em;
  border-left: 4px solid #244268;
}

.entry-content h4 {
  font-size: clamp(15px, calc(0.6vw + 10px), 17px);
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.04em;
  line-height: 1.7;
  margin: 2em 0 0.6em;
}

/* リンク */
.entry-content a {
  color: #244268;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.entry-content a:hover {
  opacity: 0.6;
}

/* 強調 */
.entry-content strong {
  font-weight: 600;
  color: #1a1a1a;
}

/* リスト */
.entry-content ul,
.entry-content ol {
  margin: 1.6em 0;
  padding-left: 0;
}

.entry-content ul {
  list-style: none;
}

.entry-content ul li {
  position: relative;
  padding-left: 1.5em;
  font-size: clamp(14px, calc(0.6vw + 10px), 16px);
  color: #444;
  line-height: 2.1;
  letter-spacing: 0.04em;
  margin-bottom: 0.4em;
}

.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.9em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #244268;
}

.entry-content ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.entry-content ol li {
  font-size: clamp(14px, calc(0.6vw + 10px), 16px);
  color: #444;
  line-height: 2.1;
  letter-spacing: 0.04em;
  margin-bottom: 0.4em;
  padding-left: 0.3em;
}

/* 画像・図版 */
.entry-content figure,
.entry-content .wp-block-image {
  margin: 2.4em 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.entry-content figcaption {
  margin-top: 0.8em;
  font-size: 13px;
  color: #999;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

/* 引用 */
.entry-content blockquote {
  margin: 2em 0;
  padding: 1.2em 1.6em;
  background: #f8f8f8;
  border-left: 4px solid #244268;
  border-radius: 0 6px 6px 0;
}

.entry-content blockquote p {
  margin: 0.4em 0;
  color: #555;
  font-size: 15px;
}

/* 区切り線 */
.entry-content hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 3em 0;
}

/* テーブル */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 14px;
  color: #555;
}

.entry-content table th,
.entry-content table td {
  padding: 14px 18px;
  border: 1px solid #e5e5e5;
  text-align: left;
  line-height: 1.9;
  vertical-align: top;
}

.entry-content table th {
  background: #f8f8f8;
  font-weight: 600;
  color: #1a1a1a;
}

/* コード */
.entry-content code {
  background: #f2f4f7;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #244268;
}

.entry-content pre {
  background: #1a2333;
  color: #e6ebf1;
  padding: 1.2em 1.4em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2em 0;
  line-height: 1.7;
  font-size: 13px;
}

.entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ============================================================
   お問い合わせボタン（ブロックパターン）
   ============================================================ */
.column-cta-btn .wp-block-button__link,
.wp-block-button.column-cta-btn .wp-block-button__link {
  display: inline-block;
  background: #244268;
  border: 1px solid #244268;
  color: #fff;
  border-radius: 8px;
  padding: 1rem 3.5rem;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.4s ease;
}

.column-cta-btn .wp-block-button__link:hover {
  opacity: 0.7;
  color: #fff;
}

.wp-block-buttons {
  margin: 3em 0;
}

/* ===== 戻る導線 ===== */
.column-back-wrap {
  max-width: 1000px;
  margin: 72px auto 0;
  padding: 48px 1rem 120px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.column-back {
  display: inline-block;
  font-family: "Roboto", "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #244268;
  text-decoration: none;
  padding: 12px 32px;
  border: 1px solid rgba(36, 66, 104, 0.4);
  border-radius: 8px;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.column-back:hover {
  background: #244268;
  color: #fff;
  border-color: #244268;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media screen and (max-width: 900px) {
  .column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

@media screen and (max-width: 600px) {
  .column-archive__hero {
    padding-top: 60px;
    min-height: 240px;
  }

  .column-archive__body {
    padding: 48px 1rem 80px;
  }

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

  .column-hero {
    padding-top: 100px;
  }

  .column-body {
    padding-top: 48px;
  }

  .entry-content h2 {
    margin: 2.2em 0 0.8em;
  }

  .column-cta-btn .wp-block-button__link {
    padding: 0.9rem 2.4rem;
  }
}
