@charset "UTF-8";

/*
Theme Name: onelove
*/

/* ==========================================
   歯科医院コラム 専用スタイル
========================================== */

/* レイアウトベース */
/* 「背景を画面幅いっぱいに」の背景画像（幅 100vw）で、スクロールバーの分だけ横にはみ出さないようにする */
body {
  overflow-x: clip;
}

/* サイドバーは右側に置かず、本文の下に横並びで表示する */
.col-container {
  max-width: 1080px;
  margin: 40px auto;
  padding: 0 64px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #444;
  box-sizing: border-box;
}

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

/* 注目タグ・月別アーカイブ：本文の下に横に並べる（スマホは縦。カテゴリーはいったん非表示） */
.col-sidebar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  align-items: start;
}

@media (max-width: 767px) {
  .col-sidebar {
    grid-template-columns: 1fr;
  }
}

.col-sidebar .col-widget {
  margin-bottom: 0;
}

/* サイドバーの下のバナー（/invisalign/ へ）。影はサイトのトップのバナーと同じ */
.col-banner {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  max-width: 780px;
  margin: 40px auto;
}

.col-banner img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

/* パンくず（見た目は styles.css の .breadcrumbs。ここでは位置と、長いタイトルの折り返しだけ指定） */
.col-breadcrumbs {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* パンくずの上の余白（styles.css では上下 12px） */
.col-breadcrumbs .breadcrumbs {
  padding-top: 32px;
}

.col-breadcrumbs .breadcrumbs ol {
  flex-wrap: wrap;
}

/* 一覧（アーカイブ・検索結果） */
.col-archive-header {
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.col-archive-title {
  font-family: "Shippori Mincho", serif;
  font-size: 1.8rem;
  color: #004030; /* ディープグリーン */
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0 0 40px;
}

.col-archive-sub {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 8px;
  margin-bottom: 0;
}

.col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1000px) {
  .col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.col-card {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.col-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(28, 61, 90, 0.06);
}

.col-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.col-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* アイキャッチがないときの汎用画像（images/noimage.webp）は、切り取らずに全体を表示する */
.col-card-thumb img.is-noimage {
  object-fit: contain;
  background-color: #fafafa;
}

.col-card-noimg {
  width: 100%;
  height: 200px;
  background-color: #f0f4f8;
  color: #a0aec0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.col-card-body {
  padding: 20px;
}

.col-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.col-date {
  font-size: 0.85rem;
  color: #718096;
}

.col-cat {
  font-size: 0.75rem;
  background: #f0f4f8;
  color: #2b547e;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.col-card-title {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #444;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.col-card-excerpt {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* ページネーション */
.col-pagination {
  margin-top: 40px;
  text-align: center;
}

.col-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #2b547e;
  text-decoration: none;
}

.col-pagination .page-numbers.current {
  background: #009c9a;
  color: #fff;
  border-color: #009c9a;
}

/* 記事詳細 */
.col-single-header {
  margin-bottom: 25px;
}

.col-single-title {
  font-size: 1.9rem;
  color: #444;
  line-height: 1.4;
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 600;
}

.col-single-eyecatch {
  margin-bottom: 35px;
}

.col-single-eyecatch img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
}

.col-single-body {
  line-height: 1.9;
  font-size: 1.02rem;
  color: #2b303a;
}

/* 本文の要素は :where() で詳細度を下げ、column-blocks.css のブロックのスタイルで上書きできるようにする */
.col-single-body :where(h2) {
  font-size: 1.6rem;
  color: #444;
  /* サイト本体と同じ明朝体（Shippori Mincho。読み込んでいる太さは 400〜600） */
  font-family: var(--serif, "Shippori Mincho", serif);
  line-height: 1.6;
  padding: 24px 24px 24px 48px;
  /* 薄いゴールドから白へのグラデーション */
  background: linear-gradient(90deg, #f1e6d2 0%, #fff 100%);
  margin: 64px 0 32px;
  font-weight: 400;
  position: relative;
}

/* 深い緑の横線：見出しの枠の左外 40px から、枠の内側 32px まで。文字は線の右端から 16px あける */
.col-single-body :where(h2)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -40px;
  width: 72px;
  height: 2px;
  transform: translateY(-50%);
  background: var(--olc-teal, #007b79);
}

.col-single-body :where(h3) {
  font-size: 1.3rem;
  color: #007b79;
  line-height: 1.6;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.4em;
  margin: 2.2em 0 1em;
  font-weight: 600;
}

.col-single-body :where(p) {
  margin-bottom: 1.8em;
}

.col-single-body :where(ul, ol) {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5em 1.5em 1.5em 2.5em;
  margin-bottom: 2em;
}

.col-single-body :where(li) {
  margin-bottom: 0.8em;
}

/* 記事タグ */
.col-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.col-tag-label {
  font-size: 0.8rem;
  font-weight: bold;
  color: #7a9c8c;
}

.col-tag-link {
  font-size: 0.85rem;
  color: #2b547e;
  text-decoration: none;
  background: #f0f4f8;
  padding: 4px 12px;
  border-radius: 15px;
}

.col-tag-link:hover {
  background: #2b547e;
  color: #fff;
}

/* 予約CTAエリア */
.col-cta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 35px 25px;
  text-align: center;
  margin-top: 50px;
}

.col-cta-title {
  font-size: 1.3rem;
  color: #009c9a;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.col-cta-text {
  font-size: 0.92rem;
  color: #4a5568;
  margin: 0 0 25px 0;
  line-height: 1.7;
}

.col-cta-btn {
  display: inline-block;
  background: rgba(0, 64, 48, 1);
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(43, 84, 126, 0.2);
  transition: all 0.3s ease;
}

.col-cta-btn:hover {
  background: #009c9a;
  box-shadow: 0 6px 16px rgba(28, 61, 90, 0.3);
}

/* サイドバー */
.col-widget {
  background: #fff;
  border: 1px solid #edf2f7;
  padding: 22px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.col-widget-title {
  font-size: 1rem;
  color: rgba(0, 64, 48, 1);
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 10px;
  margin: 0 0 18px 0;
  font-weight: 600;
}

.col-search-form {
  display: flex;
}

.col-search-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px 0 0 4px;
  font-size: 0.88rem;
  outline: none;
}

.col-search-input:focus {
  border-color: #009c9a;
}

.col-search-btn {
  background: rgba(0, 156, 154, 1);
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.col-search-btn:hover {
  background: rgba(0, 156, 154, 0.494);
}

.col-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.col-widget-list li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.col-widget-list li a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s;
}

.col-widget-list li a:hover {
  color: #009c9a;
}

.col-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.col-tag-item {
  font-size: 0.82rem;
  background: #f7fafc;
  color: #4a5568;
  padding: 5px 12px;
  border-radius: 15px;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.col-tag-item:hover {
  background: #009c9a;
  color: #fff;
  border-color: #009c9a;
}

/* レスポンシブ (スマホ・タブレット表示) */
@media (max-width: 1000px) {
  .col-container {
    padding: 0 40px;
  }
  .col-breadcrumbs {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .col-container,
  .col-breadcrumbs {
    padding: 0 20px;
  }
  /* サイト本体の見出し（.section_title）と同じく、スマホでは小さくする */
  .col-single-body :where(h2) {
    font-size: 1.4rem;
  }
  /* スマホは左の余白が狭いので、線を短くする */
  .col-single-body :where(h2) {
    padding-left: 36px;
  }
  .col-single-body :where(h2)::before {
    left: -14px;
    width: 38px;
  }
}

@media (max-width: 850px) {
  .col-container {
    flex-direction: column;
    margin: 20px auto;
    gap: 40px;
  }
  .col-grid {
    grid-template-columns: 1fr;
  }
  .col-single-title {
    font-size: 1.5rem;
  }
}
