/*
Theme Name: lightning-child
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/

body {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", serif;
}

/* =========================================
   GTranslate（言語切り替え）：ロゴ・アイコン・メニューとの重なり解消版
========================================= */
/* プルダウン本体：アイコンと文字が重ならないよう幅と余白を確保 */
select.gt_selector {
    display: inline-block !important;
    width: 170px !important;
    min-width: 170px !important;
    max-width: none !important;
    height: 36px !important;
    padding: 0 30px 0 36px !important;
    text-indent: 0 !important;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    background-color: #ffffff !important;
    border: 1px solid #bbbbbb !important;
    border-radius: 4px !important;
    line-height: 34px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: left 11px center, right 10px center !important;
    background-size: 15px 15px, 12px 12px !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

select.gt_selector::-ms-expand {
    display: none !important;
}

select.gt_selector:hover {
    border-color: #333333 !important;
    background-color: #f8f8f8 !important;
}

/* PC表示（992px以上）：スクロール時も含めロゴと絶対に被らない余白を確保 */
@media screen and (min-width: 992px) {
    #gt_float_wrapper,
    .gt_float_switcher {
        display: none !important;
    }

    #site-header-container,
    body.header_scrolled #site-header-container,
    .site-header--layout--nav-float #site-header-container {
        position: relative !important;
        padding-left: 205px !important; /* プルダウン幅(170px)＋余白分をしっかり確保 */
    }

    #global-nav,
    #menu-headernavigation {
        position: static !important;
        overflow: visible !important;
    }

    #menu-headernavigation > li.menu-item-gtranslate,
    #menu-headernavigation > li:has(select.gt_selector) {
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }
}

/* ノートPC幅（992px〜1250px）：メニュー項目がロゴに近づきすぎないよう間隔を微調整 */
@media screen and (min-width: 992px) and (max-width: 1250px) {
    #menu-headernavigation > li > a {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 13px !important;
    }
}

/* スマホ・タブレット表示（991px以下）：右上のハンバーガーメニュー（≡）の左隣に配置 */
@media screen and (max-width: 991px) {
    #gt_float_wrapper {
        position: fixed !important;
        top: 12px !important;
        right: 64px !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 9999 !important;
    }

    #gt_float_wrapper select.gt_selector {
        width: 124px !important;
        min-width: 124px !important;
        height: 32px !important;
        padding: 0 22px 0 28px !important;
        font-size: 12px !important;
        line-height: 30px !important;
        background-position: left 8px center, right 7px center !important;
        background-size: 13px 13px, 10px 10px !important;
    }

    .site-header-logo {
        padding-right: 185px !important;
    }
}

/* =========================================
   GTranslate：地球儀アイコンと「Japanese」の文字重なり解消
========================================= */
html body #site-header #menu-headernavigation select.gt_selector,
html body #site-header select.gt_selector,
html body #global-nav select.gt_selector,
html body .gtranslate_wrapper select.gt_selector,
select.gt_selector {
    padding-top: 0 !important;
    padding-right: 30px !important;
    padding-bottom: 0 !important;
    padding-left: 38px !important;
}

@media screen and (max-width: 991px) {
    html body #gt_float_wrapper select.gt_selector {
        padding-left: 30px !important;
        padding-right: 22px !important;
    }
}

/* =========================================
   スマホ表示（991px以下）：メニューボタン（≡）とロゴの重なり解消
========================================= */
@media screen and (max-width: 991px) {
    html body .site-header-logo {
        padding-left: 45px !important;
        padding-right: 15px !important;
        text-align: left !important;
    }

    html body .site-header-logo img {
        max-height: 38px !important;
        width: auto !important;
    }
}


/* ここからトップページ */

/* メインコンテンツ内のh2に見出し下の余白を設定 */
main h2,
.entry-body h2,
article h2 {
  position: relative;
  text-align: center;         /* 中央揃え */
  padding-bottom: 16px !important; /* 文字とラインの間の余白 */
  margin-bottom: 30px !important;  /* ラインと下のコンテンツの間の余白 */
}

/* h2の下に中央配置の短いラインを描画 */
main h2::after,
.entry-body h2::after,
article h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* 常に中央に配置 */
  width: 250px;                 /* ラインの長さ（お好みで30px〜60px程度） */
  height: 1px;                 /* ラインの太さ */
  background-color: #222222;   /* ラインの色 */
  border-radius: 2px;          /* 線の端を少し丸める */
}

/* カバーブロックの比率を固定し、余分な余白をリセット */
.custom-shrine-banner {
    aspect-ratio: 700 / 300 !important;
    min-height: unset !important;
    height: auto !important;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  
  /* スマートフォン表示時の文字サイズと枠線余白の自動縮小 */
  @media screen and (max-width: 768px) {
    .custom-shrine-banner::after {
      top: 8px;
      right: 8px;
      bottom: 8px;
      left: 8px;
    }
    .custom-shrine-banner .wp-block-cover__inner-container {
      padding: 15px !important;
    }
    .custom-shrine-banner h3 {
      font-size: 1rem !important;
      margin-bottom: 4px !important;
    }
    .custom-shrine-banner p {
      font-size: 0.7rem !important;
      line-height: 1.3 !important;
    }
  }

/* コピーライト削除 */
  .site-footer-copyright p:nth-child(2) {
    display: none;
}

/* フッター設定 */
/* --- フッター全体の背景色と文字色 --- */
footer.site-footer,
footer.siteFooter,
footer {
  background-color: #222222 ; /* ←フッターの背景色 */
  color: #ffffff ;            /* ←文字色 */
}

/* フッター内のリンク文字色 */
footer.site-footer a,
footer.siteFooter a,
footer a {
  color: #ffffff ;            /* ←リンクの色 */
}

/* --- コピーライト部分（最下部）の色 --- */
.site-footer__copy,
.siteFooter__copy,
.copySection {
  background-color: #111111 ; /* ←コピーライト背景色 */
  color: #aaaaaa ;            /* ←コピーライト文字色 */
}

/* ===================================================
   フッター全体の文字サイズ
=================================================== */
footer.site-footer,
footer.siteFooter,
footer {
  font-size: 15px ;
  line-height: 1.8 ;
}

/* フッター内の一般的なテキスト（コピーライト以外） */
footer.site-footer p,
footer.site-footer li,
footer.site-footer a {
  font-size: 15px ;
}

/* ===================================================
   コピーライト部分（あらゆるテーマ仕様を網羅して強制縮小）
=================================================== */
/* クラス名に "copy" が含まれる全エリア */
footer [class*="copy"],
footer [class*="copy"] p,
footer [class*="copy"] a,
footer [class*="copy"] span,
footer [class*="copy"] small,
/* クラス名に "copyright" が含まれる全エリア */
footer [class*="copyright"],
footer [class*="copyright"] p,
footer [class*="copyright"] a,
/* テーマ特有の主要クラス */
.copySection,
.copySection p,
.site-footer__copy,
.site-footer__copy p,
.site-footer__inner-copy,
.site-footer__inner-copy p,
/* フッター最下部のエリア */
footer > div:last-child,
footer > div:last-child p {
  font-size: 11px !important;  /* ←小さくしたいサイズ（11px〜12px推奨） */
  line-height: 1.4 !important;
}

/* ここから津島神社について */

/* ===================================================
   「津島神社について」専用のページヘッダー背景画像
   ※「page-id-123」の数字を実際のページIDに変更してください
=================================================== */
body.page-id-9 .page-header,
body.page-id-9 .pageHeader {
  background-image: url("https://tushima-jinja.jp/core/wp-content/uploads/2026/10/top1.jpg") ; /* ←コピーした画像URL */
  background-size: cover ;
  background-position: center center ;
  background-repeat: no-repeat ;
  position: relative ;
  padding: 100px 0 ; /* 上下の高さを出したい場合は数値を調整 */
}

/* 写真の上に黒の半透明オーバーレイを敷いて文字を読みやすくする */
body.page-id-9 .page-header::before,
body.page-id-9 .pageHeader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* 黒の半透明40% */
  z-index: 1;
}

/* タイトル文字とパンくずリストを白文字にして前面に配置 */
body.page-id-9 .page-header *,
body.page-id-9 .pageHeader * {
  position: relative;
  z-index: 2;
  color: #ffffff ;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 文字の影で可読性アップ */
}


/* --- 年間行事テーブルの和風デザイン --- */
.entry-body table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid #dcd8d0; /* 外枠：落ち着いた和風グレー */
}

/* 1行目（ヘッダー行）の装飾 */
.wp-block-table tr:first-child td,
.wp-block-table th {
  background-color: #333333 !important; /* 引き締まる墨色（濃いグレー） */
  color: #ffffff !important;            /* 白文字 */
  font-weight: 600;
  text-align: center;
  padding: 12px 16px;
  border: 1px solid #333333;
}

/* データ行の基本スタイル */
.wp-block-table td {
  padding: 14px 16px;
  border: 1px solid #e8e5df; /* 区切り線 */
  color: #333333;
  vertical-align: middle;
}

/* 「月」と「日程」は中央揃え */
.wp-block-table td:nth-child(1),
.wp-block-table td:nth-child(2) {
  text-align: center;
  white-space: nowrap; /* 日付の途中で不自然に改行されるのを防ぐ */
}

/* 偶数行にほんのり和風の背景色を入れて読みやすく */
.wp-block-table tr:nth-child(even) td {
  background-color: #faf9f7; /* 生成り（きなり）色 */
}

/* スマホ表示時の調整 */
@media screen and (max-width: 768px) {
  .wp-block-table table {
    font-size: 13px;
  }
  .wp-block-table td,
  .wp-block-table th {
    padding: 10px 8px;
  }
}

/* ここから御祈祷ページ */

/* ===================================================
   「御祈祷」専用のページヘッダー背景画像
   ※「page-id-123」の数字を実際のページIDに変更してください
=================================================== */
body.page-id-16 .page-header,
body.page-id-16 .pageHeader {
  background-image: url("https://tushima-jinja.jp/core/wp-content/uploads/2026/10/gokitou_2.jpg") ; /* ←コピーした画像URL */
  background-size: cover ;
  background-position: center center ;
  background-repeat: no-repeat ;
  position: relative ;
  padding: 100px 0 ; /* 上下の高さを出したい場合は数値を調整 */
}

/* 写真の上に黒の半透明オーバーレイを敷いて文字を読みやすくする */
body.page-id-16 .page-header::before,
body.page-id-16 .pageHeader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* 黒の半透明40% */
  z-index: 1;
}

/* タイトル文字とパンくずリストを白文字にして前面に配置 */
body.page-id-16 .page-header *,
body.page-id-16 .pageHeader * {
  position: relative;
  z-index: 2;
  color: #ffffff ;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 文字の影で可読性アップ */
}

/* カレンダーの残り枠の後ろに「枠」を表示 */
.numberInsteadOfSymbols::after {
    content: "枠" !important;
    font-size: 16px !important;
    margin-left: 2px !important;
    vertical-align: baseline !important;
}

/* 「explanation」の入力枠（テキストエリア）だけを非表示にする */
#booking_package_input_explanation {
    display: none !important;
}

/* =========================================
   ご祈祷予約：ボタンデザインの全端末統一
========================================= */
/* OS固有のボタンスタイルを解除し、共通の基本形を作る */
button.book_now_button,
button.return_form_button,
#returnToSchedules {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important; /* iPhone・Androidの独自装飾をリセット */
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif !important;
    font-size: 16px !important;
    letter-spacing: 0.1em !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: 420px !important;      /* 横に広がりすぎず上品な幅に調整 */
    margin: 12px auto !important;     /* 中央揃え */
    padding: 14px 24px !important;    /* スマホで指で押しやすい高さ */
    line-height: 1.4 !important;
    transition: all 0.25s ease !important;
}

/* 1. 「予約する」ボタン（主アクション：墨色・白文字） */
button.book_now_button {
    background-color: #333333 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}
button.book_now_button:hover {
    background-color: #555555 !important;
    border-color: #555555 !important;
    opacity: 0.9 !important;
}

/* 2. 「戻る」ボタン（副アクション：白地・グレー枠線） */
button.return_form_button,
#returnToSchedules {
    background-color: #ffffff !important;
    color: #555555 !important;
    border: 1px solid #d0d0d0 !important;
}
button.return_form_button:hover,
#returnToSchedules:hover {
    background-color: #f7f7f7 !important;
    border-color: #999999 !important;
    color: #222222 !important;
}

/* =========================================
   厄祓い・方位除け テーブル＆方位盤（年間行事一覧と同デザイン）
========================================= */
.tsj-protective-wrap {
    max-width: 1140px;
    margin: 40px auto;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
    color: #333333;
}

.tsj-table-block {
    margin-bottom: 100px !important;
}

/* スマホ表示時は余白が空きすぎないよう少し調整 */
@media screen and (max-width: 767px) {
    .tsj-table-block {
        margin-bottom: 64px !important;
    }
}

/* 年間行事一覧と同じ薄いグレーの角丸見出し帯 */
h3.tsj-table-heading {
    background-color: #f0f0f0 !important;
    border-radius: 6px !important;
    padding: 18px 20px !important;
    margin: 0 0 28px 0 !important;
    text-align: center !important;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: #333333 !important;
    border: none !important;
}

h3.tsj-table-heading::before,
h3.tsj-table-heading::after {
    display: none !important;
}

/* テーブル共通（#333333ヘッダー ＋ #FAF9F7 / #FFFFFF 交互行） */
.tsj-wa-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #333333 !important;
}

.tsj-wa-table thead th {
    background-color: #333333 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 13px 10px !important;
    border: 1px solid #4a4a4a !important;
    letter-spacing: 0.06em !important;
}

/* 方位除けの種別行（八方ふさがり・凶方位） */
.tsj-wa-table thead th.tsj-houi-category {
    background-color: #444444 !important;
    font-size: 13px !important;
    padding: 9px 10px !important;
}

.tsj-wa-table tbody tr:nth-child(odd) td {
    background-color: #faf9f7 !important;
}

.tsj-wa-table tbody tr:nth-child(even) td {
    background-color: #ffffff !important;
}

.tsj-wa-table tbody td {
    text-align: center !important;
    padding: 14px 8px !important;
    border: 1px solid #e8e5df !important;
    color: #333333 !important;
    vertical-align: middle !important;
}

/* 厄年一覧表の6列均等幅 */
.tsj-yakudoshi-table th,
.tsj-yakudoshi-table td {
    width: 16.66% !important;
}

/* 方位除け3表 ＋ 方位盤の4カラム配置（PC） */
.tsj-houiyoke-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) 1.25fr !important;
    gap: 18px !important;
    align-items: start !important;
}

.tsj-houi-table tbody td:first-child {
    width: 40% !important;
}

.tsj-houi-table tbody td:last-child {
    width: 60% !important;
}

.tsj-houi-table tbody td {
    padding: 10px 6px !important;
    font-size: 13.5px !important;
}

/* 方位盤枠 */
.tsj-houiban-box {
    background-color: #ffffff !important;
    border: 1px solid #e8e5df !important;
    padding: 12px !important;
    text-align: center !important;
}

.tsj-houiban-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* タブレット表示（991px以下）：2列グリッド */
@media screen and (max-width: 991px) {
    .tsj-houiyoke-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}


/* スマホ表示（767px以下）：見やすく調整 */
@media screen and (max-width: 767px) {
    h3.tsj-table-heading {
        font-size: 18px !important;
        padding: 14px 15px !important;
    }

    /* 横スクロールを解除し、6列すべてをスマホ画面幅に収める */
    .tsj-table-scroll {
        overflow-x: visible !important;
    }

    .tsj-yakudoshi-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .tsj-yakudoshi-table thead th {
        font-size: 12px !important;
        padding: 10px 2px !important;
        letter-spacing: 0 !important;
    }

    .tsj-yakudoshi-table tbody td {
        font-size: 10.5px !important;
        line-height: 1.5 !important;
        padding: 10px 2px !important;
        letter-spacing: 0 !important;
    }

    .tsj-houiyoke-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .tsj-houiban-img {
        max-width: 340px !important;
    }
}

/* =========================================
   御祈祷ページ：一覧表見出し下の説明文（p）を確実に中央揃え
========================================= */
html body .entry-body .tsj-protective-wrap p,
html body .entry-body .tsj-table-block p,
html body .entry-body h3.tsj-table-heading + p,
html body .main-section .tsj-protective-wrap p,
html body .main-section .tsj-table-block p,
html body .main-section h3.tsj-table-heading + p {
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    line-height: 1.9 !important;
}

/* =========================================
   1. 御祈祷予約フォーム：入力欄とプルダウンの高さを統一（46px）
========================================= */
#booking-package input.form_text,
#booking-package input[type="text"],
#booking-package input[type="email"],
#booking-package input[type="tel"],
#booking-package input[type="number"],
.page-id-16 input.form_text,
.page-id-16 input[type="text"],
.page-id-16 input[type="email"],
.page-id-16 input[type="tel"] {
    height: 46px !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

/* プルダウン（セレクトボックス）の統一 */
#booking-package select.form_select,
#booking-package select,
.page-id-16 select.form_select,
.page-id-16 select:not(.gt_selector) {
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 36px 0 16px !important; /* 右端の▼マークと重ならない余白 */
    font-size: 16px !important;
    line-height: 44px !important;
    box-sizing: border-box !important;
}

/* 備考欄などの複数行テキストエリアがある場合 */
#booking-package textarea.form_textarea,
#booking-package textarea,
.page-id-16 textarea {
    padding: 12px 16px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    box-sizing: border-box !important;
}

/* =========================================
   2. お問い合わせフォーム：ボタンの高さを統一（52px）
========================================= */
.mw_wp_form button.btn,
.mw_wp_form button.btn-primary,
.mw_wp_form input[type="submit"],
.mw_wp_form input[type="button"] {
    height: 52px !important;
    min-height: 52px !important;
    padding: 14px 36px !important;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.08em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* =========================================
   御祈祷予約フォーム：複数人追加ボタン＆入力カード
========================================= */
/* 裏側データ保存用のテキストエリア行を非表示にする */
#booking-package .row:has(#booking_package_input_extra_guests),
#booking_package_input_extra_guests {
    display: none !important;
}

#tsj-extra-guests-wrap {
    margin: 16px 0 24px !important;
    padding: 0 !important;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif !important;
}

#tsj-add-guest-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 11px 22px !important;
    background-color: #faf9f7 !important;
    color: #333333 !important;
    border: 1px solid #888888 !important;
    border-radius: 4px !important;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#tsj-add-guest-btn:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
}

.tsj-extra-note {
    margin: 8px 0 0 !important;
    font-size: 13px !important;
    color: #666666 !important;
    line-height: 1.6 !important;
}

.tsj-guest-card {
    margin-bottom: 18px !important;
    padding: 20px !important;
    background-color: #faf9f7 !important;
    border: 1px solid #dcd8d0 !important;
    border-radius: 6px !important;
}

.tsj-guest-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 10px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid #e5e2dc !important;
}

.tsj-guest-card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333333 !important;
}

.tsj-remove-guest-btn {
    padding: 4px 12px !important;
    background-color: #ffffff !important;
    color: #888888 !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
}

.tsj-remove-guest-btn:hover {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.tsj-guest-field {
    margin-bottom: 14px !important;
}

.tsj-guest-field:last-child {
    margin-bottom: 0 !important;
}

.tsj-guest-field label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333333 !important;
}

.tsj-guest-addr-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

.tsj-guest-addr-head label {
    margin-bottom: 0 !important;
}

.tsj-copy-addr-btn {
    padding: 4px 10px !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #bbbbbb !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
}

.tsj-copy-addr-btn:hover {
    background-color: #eeeeee !important;
}


/* ===================================================
   「授与品」専用のページヘッダー背景画像
   ※「page-id-123」の数字を実際のページIDに変更してください
=================================================== */
body.page-id-3071 .page-header,
body.page-id-3071 .pageHeader {
  background-image: url("https://tushima-jinja.jp/core/wp-content/uploads/2026/11/gifts_top1.jpg") ; /* ←コピーした画像URL */
  background-size: cover ;
  background-position: center center ;
  background-repeat: no-repeat ;
  position: relative ;
  padding: 100px 0 ; /* 上下の高さを出したい場合は数値を調整 */
}

/* 写真の上に黒の半透明オーバーレイを敷いて文字を読みやすくする */
body.page-id-3071 .page-header::before,
body.page-id-3071 .pageHeader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* 黒の半透明40% */
  z-index: 1;
}

/* タイトル文字とパンくずリストを白文字にして前面に配置 */
body.page-id-3071 .page-header *,
body.page-id-3071 .pageHeader * {
  position: relative;
  z-index: 2;
  color: #ffffff ;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 文字の影で可読性アップ */
}

/* =========================================
   授与品一覧：説明文・値段・購入ボタンを非表示
========================================= */
/* 1. 説明文を非表示 */
.tsj-gifts__excerpt {
    display: none !important;
}

/* 2. 金額（税込表示）を非表示 */
.tsj-gifts__price {
    display: none !important;
}

/* 3. 「購入する」ボタンを非表示 */
.tsj-gifts__action {
    display: none !important;
}


/* ===================================================
   「境内案内」専用のページヘッダー背景画像
   ※「page-id-123」の数字を実際のページIDに変更してください
=================================================== */
body.page-id-3073 .page-header,
body.page-id-3073 .pageHeader {
  background-image: url("https://tushima-jinja.jp/core/wp-content/uploads/2026/11/keidai.jpg") ; /* ←コピーした画像URL */
  background-size: cover ;
  background-position: center center ;
  background-repeat: no-repeat ;
  position: relative ;
  padding: 100px 0 ; /* 上下の高さを出したい場合は数値を調整 */
}

/* 写真の上に黒の半透明オーバーレイを敷いて文字を読みやすくする */
body.page-id-3073 .page-header::before,
body.page-id-3073 .pageHeader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* 黒の半透明40% */
  z-index: 1;
}

/* タイトル文字とパンくずリストを白文字にして前面に配置 */
body.page-id-3073 .page-header *,
body.page-id-3073 .pageHeader * {
  position: relative;
  z-index: 2;
  color: #ffffff ;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 文字の影で可読性アップ */
}

/* ===================================================
   「お問い合わせ」専用のページヘッダー背景画像
   ※「page-id-123」の数字を実際のページIDに変更してください
=================================================== */
body.page-id-19 .page-header,
body.page-id-19 .pageHeader {
  background-image: url("https://tushima-jinja.jp/core/wp-content/uploads/2026/11/contact.jpg") ; /* ←コピーした画像URL */
  background-size: cover ;
  background-position: center center ;
  background-repeat: no-repeat ;
  position: relative ;
  padding: 100px 0 ; /* 上下の高さを出したい場合は数値を調整 */
}

/* 写真の上に黒の半透明オーバーレイを敷いて文字を読みやすくする */
body.page-id-19 .page-header::before,
body.page-id-19 .pageHeader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* 黒の半透明40% */
  z-index: 1;
}

/* タイトル文字とパンくずリストを白文字にして前面に配置 */
body.page-id-19 .page-header *,
body.page-id-19 .pageHeader * {
  position: relative;
  z-index: 2;
  color: #ffffff ;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 文字の影で可読性アップ */
}

#booking_package_totalCost {
  display: none !important;
}

/* フッター直前のCTA（お問い合わせ）
   スマホでは background-attachment: fixed が効かず、神紋が止まって見える。
   背景は枠に対して少し大きく置き、スクロール位置は cta-parallax.js が動かす。
   神紋は枠の中央付近に残り、端では切れない。 */
@media screen and (max-width: 767px) {
  .wp-block-cover:has(.wp-image-3174) {
    background-color: #2a2a2a;
  }

  .wp-block-cover__image-background.wp-image-3174.has-parallax {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: auto 220% !important;
  }
}

/* =========================================
   Contact Form 7 お問い合わせフォーム（和モダン・スマホ対応）
========================================= */
.tsj-cf7-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
    font-size: 15px;
    color: #333333;
}

.tsj-cf7-table th,
.tsj-cf7-table td {
    padding: 16px 18px !important;
    border-bottom: 1px solid #e5e2dc;
    vertical-align: middle !important; /* 項目名と入力欄を上下中央揃え */
    text-align: left;
}

.tsj-cf7-table tr:first-child th,
.tsj-cf7-table tr:first-child td {
    border-top: 1px solid #e5e2dc;
}

.tsj-cf7-table th {
    width: 28%;
    background-color: #faf9f7;
    font-weight: 600;
}

.tsj-cf7-table td {
    width: 72%;
    background-color: #ffffff;
}

/* セル内の余分な上下余白をリセットして上下中央を揃える */
.tsj-cf7-table th p,
.tsj-cf7-table td p,
.tsj-cf7-table td .wpcf7-form-control-wrap,
.tsj-cf7-table input[type="text"],
.tsj-cf7-table input[type="email"],
.tsj-cf7-table input[type="tel"],
.tsj-cf7-table select,
.tsj-cf7-table textarea {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tsj-cf7-table td .wpcf7-form-control-wrap {
    display: block !important;
}

/* テキスト・メール・電話番号の入力欄：御祈祷予約フォームと同じ高さ（46px） */
.tsj-cf7-table input[type="text"],
.tsj-cf7-table input[type="email"],
.tsj-cf7-table input[type="tel"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
}

/* プルダウン（お問い合わせ項目）：同じ高さ（46px）に統一 */
.tsj-cf7-table select {
    width: 100% !important;
    max-width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 36px 0 16px !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    line-height: 44px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
}

/* お問い合わせ内容（複数行テキストエリア）：余白と文字サイズを統一 */
.tsj-cf7-table textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
}
/* 「送信する」ボタンをページの完全中央に配置 */
.tsj-cf7-submit-wrap,
.tsj-cf7-submit-wrap p {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tsj-cf7-submit-wrap {
    margin: 36px auto 20px !important;
}

.tsj-cf7-submit {
    display: inline-block !important;
    min-width: 240px !important;
    margin: 0 auto !important;
    padding: 14px 40px !important;
    background-color: #333333 !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 4px !important;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif !important;
    font-size: 16px !important;
    letter-spacing: 0.12em !important;
    cursor: pointer !important;
    transition: opacity 0.25s ease !important;
}

.tsj-cf7-submit:hover {
    opacity: 0.8 !important;
}

/* 送信中アイコンによるボタンの左ズレを防止 */
.tsj-cf7-submit-wrap .wpcf7-spinner {
    position: absolute !important;
    left: calc(50% + 135px) !important;
    margin: 0 !important;
}

/* スマホ表示（767px以下）：見出しと入力欄を縦並びに */
@media screen and (max-width: 767px) {
    .tsj-cf7-table th,
    .tsj-cf7-table td {
        display: block;
        width: 100%;
    }

    .tsj-cf7-table th {
        padding: 12px 14px 6px !important;
        border-bottom: none;
    }

    .tsj-cf7-table td {
        padding: 6px 14px 16px !important;
    }

    .tsj-cf7-submit {
        width: 100% !important;
    }

    .tsj-cf7-submit-wrap .wpcf7-spinner {
        left: auto !important;
        right: 16px !important;
    }
}

/* =========================================
   プライバシーポリシー（page-id-31）のみ：本文内 h2 の下線装飾を非表示
========================================= */
body.page-id-31 .entry-body h2,
body.page-id-31 .main-section h2,
body.post-name-privacy .entry-body h2,
body.post-name-privacy .main-section h2 {
    border-bottom: none !important;
    background-image: none !important;
}

body.page-id-31 .entry-body h2::before,
body.page-id-31 .entry-body h2::after,
body.page-id-31 .main-section h2::before,
body.page-id-31 .main-section h2::after,
body.post-name-privacy .entry-body h2::before,
body.post-name-privacy .entry-body h2::after,
body.post-name-privacy .main-section h2::before,
body.post-name-privacy .main-section h2::after {
    display: none !important;
    content: none !important;
}