/* 金山寺復興特別奉賛会 | page-id-6143 | 完成版 */
body.page-id-6143 {
  --kh-width: 1300px;
  --kh-header-width: 1300px;
  --kh-sidebar-width: 240px;
  --kh-gap: 30px;
  --kh-gold: #b39450;
  --kh-line: #d8c69d;
  --kh-cream: #faf6ed;
  --kh-purple: #593244;
  --kh-text: #40382f;
  --kh-mincho: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "MS PMincho", serif;
  background-color: #e9e7e2;
}

/* 現テーマの1カラム化・タイトルの重複防止 */
body.page-id-6143 :is(.single-head.page-head, .posted-on, #sidebar) { display: none !important; }
body.page-id-6143 :is(#site-content.container, .container.main-container, .post-6143, .main-content-page, .single-content, .single-entry-summary) {
  width: 100% !important;
  max-width: var(--kh-width) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}
body.page-id-6143 :is(#site-content, .page-area) { background-color: #e9e7e2; padding-block: 0 !important; }
body.page-id-6143 .page-area .row { display: block !important; margin: 0 !important; }
body.page-id-6143 article.col-md-9 { width: 100% !important; max-width: none !important; flex: none !important; float: none !important; margin: 0 !important; padding: 0 16px !important; box-sizing: border-box; }
body.page-id-6143 :is(.main-content-page, .single-content, .single-entry-summary) { margin-block: 0 !important; padding-block: 0 !important; }
body.page-id-6143 .single-entry-summary { padding-inline: 0 !important; }

/* ヘッダー・フッターは現在の幅と全幅背景を維持 */
body.page-id-6143 :is(header .container, #masthead .container, .site-header .container, .main-header .container, .navbar .container, .navbar-header, .main-navigation .container) {
  width: calc(100% - 48px) !important; max-width: var(--kh-header-width) !important; margin-inline: auto !important; box-sizing: border-box !important;
}
body.page-id-6143 :is(.elementor-element-4b1249a3, .elementor-element-4882694) {
  width: 100vw !important; max-width: none !important; left: auto !important; right: auto !important; margin-inline: calc(50% - 50vw) !important; box-sizing: border-box !important; overflow: visible !important;
}
body.page-id-6143 .elementor-element-4b1249a3 { background: #eee !important; }
body.page-id-6143 .elementor-element-4882694 { background: #4f555b !important; }
body.page-id-6143 :is(.elementor-element-4b1249a3, .elementor-element-4882694) > .elementor-container { width: calc(100% - 48px) !important; max-width: var(--kh-header-width) !important; margin-inline: auto !important; box-sizing: border-box; }
body.page-id-6143 .elementor-element-4882694 :is(p, a) { color: #fff !important; }

/* 和紙の台紙。装飾は相対URLなのでCSSと同じ階層のimagesへ */
body.page-id-6143 .kh-page {
  --kh-display-width: min(var(--kh-width), calc(100vw - 48px));
  position: relative;
  width: var(--kh-display-width) !important;
  max-width: none !important;
  margin: 0 calc((100% - var(--kh-display-width))/2) !important;
  padding: clamp(20px, 3vw, 42px);
  box-sizing: border-box;
  color: var(--kh-text);
  font-size: 16.5px;
  line-height: 1.9;
  background: var(--kh-cream);
  background-image: url("images/kasumi.webp"), url("images/momiji-top.webp"), url("images/washi.webp");
  background-position: left top, right top, center;
  background-size: clamp(180px, 24%, 310px) auto, clamp(180px, 24%, 310px) auto, 400px 400px;
  background-repeat: no-repeat, no-repeat, repeat;
  border: 1px solid #e5dcc8;
  box-shadow: 0 0 22px rgba(65,48,25,.13);
}
body.page-id-6143 .kh-page * { box-sizing: border-box; }
body.page-id-6143 .kh-page > * { max-width: none !important; }
body.page-id-6143 .kh-page p { margin: 0 0 1em; }
body.page-id-6143 .kh-page figure { margin: 0; }
body.page-id-6143 .kh-page img { display: block; max-width: 100%; height: auto; }
body.page-id-6143 .kh-page :is(h1,h2,h3) { font-family: var(--kh-mincho); color: #3b251d; font-weight: 700; line-height: 1.5; scroll-margin-top: 120px; }
body.page-id-6143 .kh-page h3 { font-size: 19px; margin: 0 0 10px; }
body.page-id-6143 .kh-page a:focus-visible { outline: 2px solid var(--kh-gold); outline-offset: 3px; }
body.page-id-6143 .kh-placeholder { padding: 18px; border: 1px dashed var(--kh-line); text-align: center; }

/* 寺紋とタイトル。丸枠なし。上線は家紋の左右で分割 */
body.page-id-6143 .kh-title { text-align: center; margin: 0 0 28px; padding-top: 0; }
body.page-id-6143 .kh-title .kh-crest { position: relative; z-index: 2; margin: 0 0 -23px; }
body.page-id-6143 .kh-title .kh-crest img { width: 76px; height: auto; margin: 0 auto; padding: 0; background: transparent; border: none; border-radius: 0; box-shadow: none; }
body.page-id-6143 .kh-title h1 { display: inline-block; font-size: clamp(27px, 3.2vw, 46px); letter-spacing: .075em; margin: 0 0 10px; padding: 26px 18px 5px; border: 0; border-bottom: 1px solid var(--kh-gold); background: linear-gradient(var(--kh-gold),var(--kh-gold)) left top / calc(50% - 46px) 1px no-repeat, linear-gradient(var(--kh-gold),var(--kh-gold)) right top / calc(50% - 46px) 1px no-repeat; }
body.page-id-6143 .kh-title p { font-family: var(--kh-mincho); font-size: 15px; color: #705832; font-weight: 600; letter-spacing: .05em; margin: 0; }

/* メイン＋右サイド */
body.page-id-6143 .kh-layout { display: grid !important; grid-template-columns: minmax(0,1fr) var(--kh-sidebar-width); gap: var(--kh-gap) !important; align-items: start; margin: 0 !important; }
body.page-id-6143 .kh-layout .wp-block-column { min-width: 0; }

/* ヒーロー：写真の位置を上書きしない。直接figureでもgroup内でも動作 */
body.page-id-6143 .kh-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(330px,32vw,440px); background: #15232c; border: 1px solid #c5b88e; overflow: hidden; box-shadow: 0 4px 12px #30200e1a; }
body.page-id-6143 .kh-hero-photo { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 76%; height: 100%; margin: 0 !important; }
body.page-id-6143 .kh-hero-photo figure { width: 100%; height: 100%; }
body.page-id-6143 .kh-hero-photo img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 45%; }
body.page-id-6143 .kh-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,#15232c 0%,#15232c 17%,rgba(21,35,44,.95) 24%,rgba(21,35,44,.72) 36%,rgba(21,35,44,.26) 57%,transparent 79%); pointer-events: none; }
body.page-id-6143 .kh-hero::before { content: ""; position: absolute; z-index: 2; top: 0; right: 0; width: 130px; height: 90px; background: url("images/kasumi.webp") left center / contain no-repeat; transform: scaleX(-1); opacity: .66; pointer-events: none; }
body.page-id-6143 .kh-hero-copy { position: relative; z-index: 3; width: 54%; padding: 30px 26px; color: #fff; font-size: 15px; line-height: 1.85; }
body.page-id-6143 .kh-hero-copy p { color: #fff; }
body.page-id-6143 .kh-hero-copy .kh-hero-heading { font-family: var(--kh-mincho); font-size: clamp(22px,2.25vw,33px); font-weight: 700; line-height: 1.6; letter-spacing: .025em; color: #fff; text-shadow: 0 2px 5px #0008; }
body.page-id-6143 .kh-hero-heading::after { content: ""; display: block; width: 76px; height: 2px; background: #d1b574; margin: 16px 0; }

/* セクション見出し・写真 */
body.page-id-6143 .kh-section { margin-top: 32px; }
body.page-id-6143 .kh-section > h2 { font-size: clamp(22px,2.05vw,28px); margin: 0 0 16px; padding: 1px 12px; border: 0; border-left: 5px solid var(--kh-gold); background: none; letter-spacing: .035em; }
body.page-id-6143 .kh-feature { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px !important; align-items: center; margin: 0; }
body.page-id-6143 .kh-feature img { width: 100% !important; aspect-ratio: 3/2; object-fit: cover; border: 1px solid #e1d7be; border-radius: 3px; box-shadow: 0 3px 10px #3e2f1910; }

/* 会員特典・復興対象の3カラム */
body.page-id-6143 :is(.kh-benefits,.kh-projects) { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px !important; align-items: stretch; margin: 20px 0; }
body.page-id-6143 .kh-benefit { padding: 20px 16px; background: linear-gradient(145deg,#fffef9c9,#efe3c884),url("images/washi.webp") center/400px; border: 1px solid #cfb77d; border-radius: 6px; text-align: center; box-shadow: 0 3px 8px #64502516; }
body.page-id-6143 .kh-benefit h3 { font-size: clamp(17px,1.4vw,20px); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #e3d5b5; }
body.page-id-6143 .kh-benefit p { font-size: 14.5px; text-align: left; line-height: 1.8; margin: 0; }
body.page-id-6143 .kh-benefit::before { content: ""; display: block; width: 76px; height: 76px; margin: 0 auto 10px; background: center/contain no-repeat; }

/* 護摩祈願アイコン */
body.page-id-6143 .kh-flame::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ead496%22%2F%3E%3Cstop%20offset%3D%22.52%22%20stop-color%3D%22%23bd963f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23896324%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M49%206C59%2024%2037%2031%2051%2042C65%2035%2067%2023%2065%2018C89%2044%2075%2068%2052%2070C24%2071%2012%2048%2029%2029C25%2045%2040%2043%2040%2032C40%2022%2048%2016%2049%206Z%22%20fill%3D%22url%28%23g%29%22%2F%3E%3Cpath%20d%3D%22M50%2035C54%2049%2066%2051%2061%2061C56%2071%2039%2067%2039%2057C39%2050%2046%2046%2050%2035Z%22%20fill%3D%22%23fff3d0%22%2F%3E%3Cpath%20d%3D%22M19%2072H81L72%2085H28Z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%23a68138%22%2F%3E%3Cpath%20d%3D%22M34%2086H66L73%2093H27Z%22%20fill%3D%22%23a68138%22%2F%3E%3Cpath%20d%3D%22M25%2076H75M35%2081H65%22%20stroke%3D%22%23f2e1b0%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M12%2025v10m-5-5h10m71%2018v10m-5-5h10%22%20stroke%3D%22%23bd9a50%22%20stroke-width%3D%221.4%22%2F%3E%3C%2Fsvg%3E"); }

/* お茶会アイコン */
body.page-id-6143 .kh-tea::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ead496%22%2F%3E%3Cstop%20offset%3D%22.52%22%20stop-color%3D%22%23bd963f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23896324%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23bd9a50%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M37%2034C26%2023%2047%2020%2036%208M53%2030C65%2020%2046%2017%2056%205M68%2036C79%2025%2063%2022%2071%2013%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M12%2045C14%2073%2030%2083%2050%2083S86%2073%2088%2045Z%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%2398732d%22%20stroke-width%3D%221.5%22%2F%3E%3Cellipse%20cx%3D%2250%22%20cy%3D%2245%22%20rx%3D%2238%22%20ry%3D%2210%22%20fill%3D%22%23f7e8bd%22%20stroke%3D%22%23b08b3f%22%20stroke-width%3D%222%22%2F%3E%3Cellipse%20cx%3D%2250%22%20cy%3D%2246%22%20rx%3D%2230%22%20ry%3D%225.5%22%20fill%3D%22%23b29b58%22%2F%3E%3Cpath%20d%3D%22M20%2057Q50%2072%2080%2057M27%2070Q50%2083%2073%2070%22%20stroke%3D%22%23f7e8bd%22%20fill%3D%22none%22%20stroke-width%3D%221.6%22%2F%3E%3Cpath%20d%3D%22M38%2082H62L66%2090H34Z%22%20fill%3D%22%23a68138%22%2F%3E%3Cpath%20d%3D%22M16%2094H84%22%20stroke%3D%22%23bd9a50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }

/* 年間拝観パスポートアイコン */
body.page-id-6143 .kh-passport::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%23ead496%22%2F%3E%3Cstop%20offset%3D%22.52%22%20stop-color%3D%22%23bd963f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23896324%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Crect%20x%3D%2218%22%20y%3D%2215%22%20width%3D%2258%22%20height%3D%2277%22%20rx%3D%225%22%20fill%3D%22%23d5bd7d%22%20transform%3D%22rotate%28-12%2047%2053%29%22%2F%3E%3Crect%20x%3D%2229%22%20y%3D%226%22%20width%3D%2255%22%20height%3D%2282%22%20rx%3D%225%22%20fill%3D%22url%28%23g%29%22%20stroke%3D%22%239b7631%22%2F%3E%3Crect%20x%3D%2236%22%20y%3D%2213%22%20width%3D%2241%22%20height%3D%2268%22%20rx%3D%222%22%20stroke%3D%22%23fff0c7%22%20fill%3D%22none%22%20stroke-width%3D%221.5%22%2F%3E%3Cg%20fill%3D%22%23fff0c7%22%20transform%3D%22translate%2856.5%2036%29%22%3E%3Cellipse%20cy%3D%22-7%22%20rx%3D%224.8%22%20ry%3D%227.5%22%20transform%3D%22rotate%280%29%22%2F%3E%3Cellipse%20cy%3D%22-7%22%20rx%3D%224.8%22%20ry%3D%227.5%22%20transform%3D%22rotate%2860%29%22%2F%3E%3Cellipse%20cy%3D%22-7%22%20rx%3D%224.8%22%20ry%3D%227.5%22%20transform%3D%22rotate%28120%29%22%2F%3E%3Cellipse%20cy%3D%22-7%22%20rx%3D%224.8%22%20ry%3D%227.5%22%20transform%3D%22rotate%28180%29%22%2F%3E%3Cellipse%20cy%3D%22-7%22%20rx%3D%224.8%22%20ry%3D%227.5%22%20transform%3D%22rotate%28240%29%22%2F%3E%3Cellipse%20cy%3D%22-7%22%20rx%3D%224.8%22%20ry%3D%227.5%22%20transform%3D%22rotate%28300%29%22%2F%3E%3Ccircle%20r%3D%224%22%20fill%3D%22%23b18b40%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M43%2055H70M45%2061H68M48%2072H65M36%2021l8-8m25%2068%208-8%22%20stroke%3D%22%23fff0c7%22%20stroke-width%3D%221.8%22%2F%3E%3C%2Fsvg%3E"); }

/* 復興対象の写真 */
body.page-id-6143 .kh-project { background: #e7d6ad; border-radius: 3px; overflow: hidden; box-shadow: 0 3px 10px #3e2f1915; }
body.page-id-6143 .kh-project img { width: 100% !important; aspect-ratio: 3/2; object-fit: cover; }
body.page-id-6143 .kh-project h3 { font-size: 16px; color: #493421; margin: 0; padding: 9px 5px; text-align: center; border-top: 1px solid #d6bf88; background: linear-gradient(110deg,#eadcba,#f4e8cb); }

/* サイドメニュー・遠景・支援ボックス */
body.page-id-6143 :is(.kh-navigation,.kh-support-box) { border: 1px solid #d0b77d; border-radius: 5px; background: #fffdf6; overflow: hidden; margin-bottom: 24px; box-shadow: 0 3px 10px #49351512; }
body.page-id-6143 .kh-navigation h3 { margin: 0; padding: 15px 8px; background: linear-gradient(120deg,#e5d6af,#f1e7cf); font-size: 17px; text-align: center; border-bottom: 1px solid #d8c397; }
body.page-id-6143 .kh-navigation ul { list-style: none; margin: 0; padding: 7px 14px; }
body.page-id-6143 .kh-navigation li { margin: 0; padding: 0; border-bottom: 1px solid #e8dfcc; }
body.page-id-6143 .kh-navigation li:last-child { border: 0; }
body.page-id-6143 .kh-navigation a { display: block; padding: 11px 0; color: #51412d; text-decoration: none; font-size: 14px; line-height: 1.6; }
body.page-id-6143 .kh-navigation a::before { content: "◆"; font-size: 10px; color: var(--kh-gold); margin-right: 7px; }
body.page-id-6143 .kh-navigation a:hover { color: #98702d; background: #f3ebd7; }
body.page-id-6143 .kh-aerial-photo img { width: 100% !important; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; border: 1px solid var(--kh-line); }
body.page-id-6143 .kh-page :is(.kh-photo-caption,.kh-note) { font-size: 12px; color: #756c5c; line-height: 1.7; }
body.page-id-6143 .kh-page .kh-photo-caption { text-align: center; margin: 8px 0 24px; }
body.page-id-6143 .kh-support-box { padding: 22px 17px; background: linear-gradient(145deg,#f9f4e7,#f0e6cf); }
body.page-id-6143 .kh-support-box h3 { font-size: 23px; border-bottom: 1px solid var(--kh-line); padding-bottom: 14px; margin-bottom: 15px; }
body.page-id-6143 .kh-support-box h3::before { content: "❖"; display: block; color: var(--kh-gold); font-size: 25px; margin-bottom: 6px; }
body.page-id-6143 .kh-support-box p { font-size: 14px; line-height: 1.9; }
body.page-id-6143 .kh-support-box .kh-side-button { margin: 18px 0 0; }
body.page-id-6143 .kh-side-button a { display: block; background: #8c713b; color: #fff; text-decoration: none; text-align: center; padding: 12px 6px; border-radius: 3px; }
body.page-id-6143 .kh-side-button a:hover { background: #72582d; }

/* 枠外にモミジ：サイドカラムの最後に装飾を配置 */
body.page-id-6143 .kh-sidebar::after { content: ""; display: block; width: calc(100% + 20px); height: 300px; margin: -12px -20px 0 0; background: url("images/momiji-side.webp") right top / contain no-repeat; opacity: .82; pointer-events: none; }

/* ご奉賛方法：銀行振込・郵便振替・カード決済 */
body.page-id-6143 .kh-payment-layout {
  display: grid !important;
  grid-template-columns: minmax(0,1fr);
  gap: 24px !important;
  margin: 0;
}
body.page-id-6143 .kh-payment { padding: 18px; border: 1px solid var(--kh-line); background: #fffdf7b8; border-radius: 4px; }
body.page-id-6143 .kh-payment :is(.kh-bank,.kh-postal,.kh-credit) { position: relative; margin: 12px 0; padding: 13px 14px 13px 47px; border: 1px solid #dcc99d; border-radius: 4px; background: #fffdf7c9; }
body.page-id-6143 .kh-payment :is(.kh-bank,.kh-postal,.kh-credit)::before { content: ""; position: absolute; left: 12px; top: 14px; width: 24px; height: 24px; background: center/contain no-repeat; }

/* 銀行振込アイコン */
body.page-id-6143 .kh-payment .kh-bank::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a78035%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%209L12%203L21%209V11H3ZM5%2013V19M10%2013V19M14%2013V19M19%2013V19M3%2021H21%22%2F%3E%3C%2Fsvg%3E"); }

/* 郵便振替アイコン */
body.page-id-6143 .kh-payment .kh-postal::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a78035%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205H20M4%2010H20M12%2010V21%22%2F%3E%3C%2Fsvg%3E"); }

/* クレジットカードアイコン */
body.page-id-6143 .kh-payment .kh-credit::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23a78035%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M2%2010H22M5%2015H10%22%2F%3E%3C%2Fsvg%3E"); }

body.page-id-6143 .kh-payment .kh-credit { background: #efe3c6; }
body.page-id-6143 .kh-payment :is(.kh-bank,.kh-postal,.kh-credit) h3 { font-size: 18px; margin: 0 0 6px; }
body.page-id-6143 .kh-payment :is(.kh-bank,.kh-postal,.kh-credit) p { font-size: 14px; line-height: 1.75; margin: 0 0 .6em; overflow-wrap: anywhere; }
body.page-id-6143 .kh-payment :is(.kh-bank,.kh-postal,.kh-credit) p:last-child { margin-bottom: 0; }
body.page-id-6143 .kh-page .kh-status { color: #935a2a; font-weight: bold; }
body.page-id-6143 .kh-conditions h3 { font-size: 19px; padding: 3px 0 3px 12px; margin: 0 0 10px; border-left: 4px solid var(--kh-gold); }
body.page-id-6143 .kh-conditions p { font-size: 14.5px; line-height: 1.85; margin-bottom: 24px; }



/* ご奉賛方法：PC用3カラムレイアウト */
@media (min-width: 1100px) {

  /* 支払い方法を横3列に配置 */
  body.page-id-6143 .kh-payment {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    align-items: stretch;
  }

  /* 見出し・説明文・注記は全幅 */
  body.page-id-6143 .kh-payment > :is(h3,p) {
    grid-column: 1 / -1;
    margin: 0;
  }

  /* 各支払い方法のカード */
  body.page-id-6143 .kh-payment > :is(
    .kh-bank,
    .kh-postal,
    .kh-credit
  ) {
    margin: 0;
    padding: 52px 14px 16px;
  }

  /* 金色のアイコンを中央上部に配置 */
  body.page-id-6143 .kh-payment :is(
    .kh-bank,
    .kh-postal,
    .kh-credit
  )::before {
    width: 28px;
    height: 28px;
    top: 15px;
    left: calc(50% - 14px);
  }

  /* 支払い方法の見出し */
  body.page-id-6143 .kh-payment :is(
    .kh-bank,
    .kh-postal,
    .kh-credit
  ) h3 {
    font-size: 17px;
    text-align: center;
    margin-bottom: 12px;
  }

  /* 準備中の文字 */
  body.page-id-6143 .kh-credit .kh-status {
    text-align: center;
  }

  /* 受領証・返金・税制上の取扱い */
  body.page-id-6143 .kh-conditions {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    column-gap: 20px;
    row-gap: 8px;
    align-items: start;
  }

  body.page-id-6143 .kh-conditions > h3 {
    grid-row: 1;
    margin: 0;
    font-size: 17px;
  }

  body.page-id-6143 .kh-conditions > p {
    grid-row: 2;
    margin: 0;
  }

  body.page-id-6143 .kh-conditions > :nth-child(1),
  body.page-id-6143 .kh-conditions > :nth-child(2) {
    grid-column: 1;
  }

  body.page-id-6143 .kh-conditions > :nth-child(3),
  body.page-id-6143 .kh-conditions > :nth-child(4) {
    grid-column: 2;
  }

  body.page-id-6143 .kh-conditions > :nth-child(5),
  body.page-id-6143 .kh-conditions > :nth-child(6) {
    grid-column: 3;
  }
}



/* 護摩供養横：桐の葉と青海波を文字の背景に */
body.page-id-6143 .kh-closing { display: grid !important; grid-template-columns: 46% minmax(0,1fr); gap: 26px !important; align-items: center; margin: 36px 0 0; padding: 18px; border: 1px solid var(--kh-line); background: linear-gradient(110deg,#f0e5cda0,#fffdf6b0),url("images/washi.webp") center/400px; border-radius: 4px; }
body.page-id-6143 .kh-closing > .wp-block-column:last-child { position: relative; isolation: isolate; min-width: 0; padding: 8px 10px; }
body.page-id-6143 .kh-closing > .wp-block-column:last-child::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("images/kiri-wave.webp") right bottom / auto 100% no-repeat; opacity: .52; pointer-events: none; }
body.page-id-6143 .kh-closing img { width: 100% !important; aspect-ratio: 8/5; object-fit: cover; border-radius: 3px; }
body.page-id-6143 .kh-closing h2 { font-size: clamp(22px,2vw,28px); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--kh-line); }

/* お問い合わせ：金色の青海波は左下、文字より後ろ */
body.page-id-6143 .kh-contact { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 25px 25px 25px 30px; background: linear-gradient(120deg,#492b38,#654452); color: #fff; border: 1px solid #8a6a55; border-radius: 5px; overflow: hidden; }
body.page-id-6143 .kh-contact::before { content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 145px; height: 70px; background: url("images/contact-wave.webp") left bottom / contain no-repeat; opacity: .85; pointer-events: none; }
body.page-id-6143 .kh-contact h2 { color: #fff; font-size: 24px; white-space: nowrap; margin: 0; }
body.page-id-6143 .kh-contact p { color: #fff; font-size: 14px; margin: 0; }
body.page-id-6143 .kh-contact a { color: #fff; }
body.page-id-6143 .kh-contact-button a { display: block; padding: 14px 22px; border: 1px solid #d7c194; border-radius: 4px; background: #ffffff08; white-space: nowrap; text-decoration: none; }
body.page-id-6143 .kh-contact-button a:hover { background: #ffffff18; }

/* レスポンシブ：サイドは本文下へ、装飾を控えめに */
@media (max-width: 900px) {
  body.page-id-6143 .kh-layout { grid-template-columns: minmax(0,1fr); }
  body.page-id-6143 .kh-sidebar { margin-top: 15px; }
  body.page-id-6143 .kh-sidebar::after { display: none; }
  body.page-id-6143 .kh-aerial-photo img { max-width: 600px; margin-inline: auto; }
  body.page-id-6143 .kh-contact { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  body.page-id-6143 :is(.kh-feature,.kh-benefits,.kh-projects,.kh-payment-layout,.kh-closing) { grid-template-columns: minmax(0,1fr); }
  body.page-id-6143 .kh-hero { display: block; min-height: 0; }
  body.page-id-6143 .kh-hero-photo { position: relative; width: 100%; height: auto; }
  body.page-id-6143 .kh-hero-photo img { height: auto !important; aspect-ratio: 3/2; object-fit: cover; }
  body.page-id-6143 .kh-hero::after { display: none; }
  body.page-id-6143 .kh-hero::before { width: 90px; height: 60px; }
  body.page-id-6143 .kh-hero-copy { width: 100%; padding: 24px 20px; }
  body.page-id-6143 .kh-hero-copy .kh-hero-heading { font-size: 24px; }
}

@media (max-width: 600px) {
  body.page-id-6143 article.col-md-9 { padding-inline: 8px !important; }
  body.page-id-6143 .kh-page { --kh-display-width: calc(100vw - 28px); padding: 20px 15px; font-size: 15.5px; background-size: 112px auto,112px auto,400px 400px; }
  body.page-id-6143 .kh-title { margin-bottom: 24px; }
  body.page-id-6143 .kh-title .kh-crest { margin-bottom: -16px; }
  body.page-id-6143 .kh-title .kh-crest img { width: 56px; }
  body.page-id-6143 .kh-title h1 { font-size: 25px; letter-spacing: 0; padding: 19px 6px 5px; background-size: calc(50% - 34px) 1px,calc(50% - 34px) 1px; }
  body.page-id-6143 .kh-title p { font-size: 13px; letter-spacing: 0; }
  body.page-id-6143 .kh-section { margin-top: 28px; }
  body.page-id-6143 .kh-section > h2 { font-size: 22px; }
  body.page-id-6143 .kh-contact { display: block; text-align: center; padding: 24px 15px; }
  body.page-id-6143 .kh-contact-info { margin: 18px 0; }
  body.page-id-6143 .kh-contact-button a { white-space: normal; }
  body.page-id-6143 :is(header .container,#masthead .container,.site-header .container,.main-header .container,.navbar .container,.navbar-header,.main-navigation .container) { width: calc(100% - 28px) !important; }
  body.page-id-6143 :is(.elementor-element-4b1249a3,.elementor-element-4882694) > .elementor-container { width: calc(100% - 28px) !important; }
}

/* ==================================================
   住職のご挨拶・趣意書
   金山寺復興特別奉賛会専用
   ================================================== */

/* セクション全体 */
body.page-id-6143 .kh-purpose {
  position: relative;
  margin-top: 32px;
  margin-bottom: 34px;
}

/* 本文と写真の2カラム */
body.page-id-6143 .kh-purpose-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px !important;
  align-items: center;
  margin: 0 !important;
}

body.page-id-6143 .kh-purpose-layout > .wp-block-column {
  min-width: 0;
}

/* 趣意書本文 */
body.page-id-6143 .kh-purpose-text {
  font-size: 16.5px;
  line-height: 1.95;
}

body.page-id-6143 .kh-purpose-text p {
  margin: 0 0 1em;
}

body.page-id-6143 .kh-purpose-text p:last-child {
  margin-bottom: 0;
}

/* 寺院写真 */
body.page-id-6143 .kh-purpose-photo {
  position: relative;
  margin: 0 !important;
}

body.page-id-6143 .kh-purpose-photo figure {
  margin: 0;
}

body.page-id-6143 .kh-purpose-photo img {
  display: block;
  width: 100% !important;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid #dfd0ac;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(62, 47, 25, .10);
}

/* 復興への願い・住職名のメッセージ枠 */
body.page-id-6143 .kh-purpose-message {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 24px 0 0 !important;
  padding: 18px 22px;
  border: 1px solid #d8c69d;
  border-radius: 5px;
  background: linear-gradient(
    115deg,
    #f2e5c5,
    #faf5e7 55%,
    #f0e5ce
  );
  box-shadow: 0 3px 8px rgba(73, 53, 21, .07);
  overflow: hidden;
}

/* メッセージ枠左下の青海波 */
body.page-id-6143 .kh-purpose-message::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 160px;
  height: 80px;
  background: url("images/contact-wave.webp") left bottom / contain no-repeat;
  opacity: .35;
  pointer-events: none;
}

/* 復興への願い */
body.page-id-6143 .kh-purpose-message .kh-purpose-statement {
  font-family: var(--kh-mincho);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .03em;
  text-align: center;
  color: #654924;
  margin: 0;
  padding: 0;
}

/* 住職名 */
body.page-id-6143 .kh-purpose-message .kh-purpose-signature {
  font-family: var(--kh-mincho);
  font-size: 15px;
  line-height: 1.8;
  color: #493421;
  text-align: center;
  white-space: nowrap;
  border-left: 1px solid #cbb17a;
  margin: 0;
  padding: 12px 0 12px 22px;
}

body.page-id-6143 .kh-purpose-signature strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .07em;
}

/* 趣意書の出典・注記 */
body.page-id-6143 .kh-page .kh-purpose-note {
  font-size: 12px;
  color: #756c5c;
  line-height: 1.7;
  margin: 10px 0 0;
}

/* スマートフォン対応 */
@media (max-width: 700px) {

  body.page-id-6143 .kh-purpose {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  body.page-id-6143 .kh-purpose-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px !important;
  }

  body.page-id-6143 .kh-purpose-text {
    font-size: 15.5px;
    line-height: 1.95;
  }

  body.page-id-6143 .kh-purpose-photo img {
    aspect-ratio: 3 / 2;
  }

  body.page-id-6143 .kh-purpose-message {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 14px;
    margin-top: 20px !important;
  }

  body.page-id-6143 .kh-purpose-message .kh-purpose-statement {
    font-size: 18px;
    letter-spacing: 0;
  }

  body.page-id-6143 .kh-purpose-message .kh-purpose-signature {
    border-left: none;
    border-top: 1px solid #d8c69d;
    padding: 12px 0 0;
    font-size: 14px;
  }

  body.page-id-6143 .kh-purpose-signature strong {
    font-size: 16px;
  }

  body.page-id-6143 .kh-purpose-message::before {
    width: 110px;
    height: 55px;
    opacity: .25;
  }

  body.page-id-6143 .kh-page .kh-purpose-note {
    font-size: 11px;
  }
}

/* 奉賛会ページの本文中のリンク色 */
body.page-id-6143 .kh-main p a {
  color: #806022;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-id-6143 .kh-main p a:hover {
  color: #593244;
}