@charset "utf-8";
/*
Theme Name: ZEN child
Theme URI:https://tcd-theme.com/tcd113
Description:WordPressテーマ「ZEN」の子テーマ
Template:zen_tcd113
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0
*/

/*
  ここから下にCSSを追記してください。
*/


/* ==========================================================
   顕証寺 共通CSS（ZEN対応・最終統合版）
   方針：Flex統一 / UI最小構成 / 実運用安定優先
========================================================== */

/* ------------------------------------
   基本文書
------------------------------------ */
.post_content p,
.tcdce-body p {
  line-height: 1.6;
  margin-bottom: 0.5em;
}

/* ------------------------------------
   コンテナ
------------------------------------ */
.ks-event {
  max-width: 900px;
  margin: 0 auto;
}

/* ------------------------------------
   HERO
------------------------------------ */
.ks-hero {
  margin-bottom: 2.5rem;
}

.ks-hero img {
  width: 100%;
  display: block;
}

/* ------------------------------------
   キャッチ
------------------------------------ */
.ks-catch {
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.9;
  margin: 2.5rem auto;
}

/* ------------------------------------
   画像
------------------------------------ */
.ks-dummy-img {
  width: 100%;
  display: block;
}

.ks-img-1200x600 { aspect-ratio: 1200 / 600; object-fit: cover; }
.ks-img-1000x500 { aspect-ratio: 1000 / 500; object-fit: cover; }
.ks-img-900x450  { aspect-ratio: 900 / 450; object-fit: cover; }
.ks-img-600x400  { aspect-ratio: 600 / 400; object-fit: cover; }

/* ------------------------------------
   画像キャプション
------------------------------------ */
.ks-event figure {
  margin: 3rem 0;
}

.ks-event figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-top: 0.8rem;
}

/* ------------------------------------
   メッセージ
------------------------------------ */
.ks-message {
  background: #f7f7f7;
  padding: 2rem;
  text-align: center;
  margin: 4rem 0;
}

/* ------------------------------------
   関連ページ
------------------------------------ */
.ks-related {
  margin-top: 60px;
}

.ks-related h2 {
  text-align: center;
  margin-bottom: 28px;
}

.ks-related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.ks-related-links .ks-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  height: 100%;
  min-height: 150px;

  padding: 16px 22px 18px;
  gap: 12px;

  border: 1px solid #ddd;
  box-sizing: border-box;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .3s, background-color .3s;
}

.ks-related-links .ks-card:hover {
  border-color: #8c6b2a;
  background: #faf8f3;
}

.ks-related-links .ks-card-title {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.45;
  font-weight: bold;
  color: #000;
}

.ks-related-links .ks-card-text {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.65;
  font-size: .9rem;
  color: #666;
}

/* ------------------------------------
   補足テキスト
------------------------------------ */
.ks-note {
  font-size: 0.95rem;
  color: #666;
  margin-top: 1rem;
  line-height: 1.8;
}

/* ------------------------------------
   テーブル
------------------------------------ */
.s_table {
  overflow-x: visible !important;
}

.s_table table {
  width: 100% !important;
  table-layout: fixed;
}

.s_table th,
.s_table td {
  white-space: normal !important;
  word-break: break-word;
}

.s_table th {
  width: 20%;
}

/* ------------------------------------
   ヘッダー
------------------------------------ */
@media screen and (min-width: 1001px) {
  #header_logo,
  #header_logo a,
  #header_logo picture,
  #header_logo .image {
    flex-shrink: 0 !important;
  }
}

/* ------------------------------------
   CTA
------------------------------------ */
.ks-cta {
  text-align: center;
  padding: 3rem 1rem;
  background: #f7f7f7;
  margin-top: 4rem;
}

.ks-cta-text {
  margin: 1rem 0 1.5rem;
  line-height: 1.8;
  color: #333;
}

.ks-cta-info {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.ks-cta-info p {
  margin: 0.3rem 0;
}

.ks-cta-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------
   ボタン
------------------------------------ */
.ks-btn {
  display: inline-block;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: 0.2s;
}

.ks-btn-primary {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #1a1a1a;
}

.ks-btn-secondary {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

/* ------------------------------------
   レスポンシブ
------------------------------------ */
@media (max-width: 900px) {
  .ks-related-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ks-catch {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .ks-message {
    padding: 1.5rem;
  }

  .ks-related {
    margin-top: 45px;
  }

  .ks-related-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ks-related-links .ks-card {
    min-height: auto;
    padding: 14px 18px 16px;
    gap: 10px;
  }

  .s_table th {
    width: 30%;
  }
}
/* ------------------------------------
   テーブル
------------------------------------ */
.ks-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}

.ks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.ks-table th,
.ks-table td {
  border: 1px solid #ddd;
  padding: 0.8em 1em;
  vertical-align: top;
}

.ks-table th {
  background: #f7f7f5;
  font-weight: 600;
  white-space: nowrap;
}

.ks-table td:nth-child(2) {
  white-space: nowrap;
}


/* ------------------------------------
   リンクボックス
------------------------------------ */
.ks-linkbox {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.ks-linkbox a {
  flex: 1;
  display: block;
  padding: 18px 22px;
  border: 1px solid #ddd;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .3s, background-color .3s;
  box-sizing: border-box;
}

.ks-linkbox a:hover {
  border-color: #8c6b2a;
  background: #faf8f3;
}

.ks-linkbox strong {
  display: block;
  margin-bottom: .4em;
  color: #000;
  font-weight: bold;
}

.ks-linkbox span {
  display: block;
  color: #666;
  font-size: .9rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .ks-linkbox {
    display: block;
  }

  .ks-linkbox a + a {
    margin-top: 12px;
  }
}

/* ------------------------------------
------------------------------------ */
.ks-visit-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin: 32px 0 0;
}

.ks-visit-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 180px;
  padding: 26px 20px;
  border: 1px solid #ddd;
  background: #fff;
  color: inherit !important;
  text-align: center;
  text-decoration: none !important;
}

.ks-visit-link-title {
  display: block;
  margin-bottom: 16px;
  color: #111;
  font-size: 17px;
  font-weight: 600;
}

.ks-visit-link-text {
  display: block;
  color: #777;
  line-height: 1.8;
}

.ks-visit-link:hover {
  border-color: #aaa;
  opacity: 0.8;
}

@media screen and (max-width: 767px) {
  .ks-visit-links {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ks-visit-link {
    min-height: 140px;
  }
}

/* ------------------------------------
   トップページ 小型バナー
------------------------------------ */
.ks-top-pickup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  column-gap: 5px;
  row-gap: 24px;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.ks-top-pickup a {
  display: block;
  min-width: 0;
  line-height: 0;
}

.ks-top-pickup img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

/* お知らせ → 小型バナー間の余白調整 */
#cb_content_860 {
  padding-bottom: 30px;
}

#cb_content_839 {
  padding-top: 20px;
  padding-bottom: 5px;
}

/* スマホ */
@media screen and (max-width: 600px) {
  .ks-top-pickup {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(100% - 30px);
    column-gap: 0;
    row-gap: 8px;
  }

  #cb_content_860 {
    padding-bottom: 15px;
  }

  #cb_content_839 {
    padding-top: 15px;
  }
}

/* お知らせ「もっと見る」ボタンの上余白 */
#cb_content_860 .link_button {
  margin-top: 12px;
}