/* ==========================================================================
   曹洞宗 永全寺 公式サイト 最終統合CSS（完全版・全量出力）
   ========================================================================== */

/* --- 1. 全体設定と背景（龍の全画面固定パララックス） --- */
body {
    margin: 0; padding: 0;
    font-family: 'Noto Serif JP', serif;
    color: #333; line-height: 2;
    background-color: #1a1a1a;
}

.site-wrapper {
    width: 100%; min-height: 100vh;
    background-image: url("images/dragon.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

/* --- 2. 中央レイアウト枠（1000px） --- */
.central-content {
    max-width: 1000px; margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.93);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column;
    position: relative; z-index: 10;
}

/* --- 3. ヘッダーエリア --- */
.header { padding: 25px 0 0 0; background-color: #fff; }
.header-top-wrapper { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 40px 10px; }
.logo { margin: 0; }
.logo a { display: flex; align-items: center; text-decoration: none; color: inherit; width: fit-content; }
.logo-image-wrapper { display: flex; gap: 4px; margin-right: 15px; }
.logo-image-wrapper img { height: 45px; width: auto; }
.logo-text-wrapper { display: flex; flex-direction: column; justify-content: center; }
.temple-subname { font-size: 0.7rem; letter-spacing: 0.3em; color: #888; }
.temple-name { font-family: 'Shippori Mincho', serif; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.25em; color: #111; line-height: 1.2; }

/* 右下サブナビゲーション（SNSアイコン含む） */
.header-sub-nav { margin-bottom: -2px; }
.header-sub-nav ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    align-items: center;
    gap: 20px; 
}
.header-sub-nav ul li a { 
    text-decoration: none; 
    color: #888; 
    font-size: 0.75rem; 
    letter-spacing: 0.05em; 
    transition: color 0.3s; 
}
.header-sub-nav ul li a:hover { color: #000; }
.header-sub-nav ul li.social-icon a { font-size: 1.1rem; }

/* --- 4. メインナビゲーション --- */
.main-nav { width: 100%; background-color: #f2f2f2; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; position: relative; z-index: 100; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; }
.nav-list > li { position: relative; }
.nav-list > li > a { text-decoration: none; color: #444; padding: 15px 25px; display: block; font-size: 0.9rem; letter-spacing: 0.05em; transition: all 0.3s ease; }
.nav-list > li:hover > a { color: #000; background-color: #e9e9e9; }

/* ドロップダウン */
.dropdown-menu { list-style: none; padding: 0; margin: 0; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: #f2f2f2; box-shadow: 0 4px 12px rgba(0,0,0,0.12); min-width: 160px; border: 1px solid #ddd; opacity: 0; visibility: hidden; transition: all 0.2s ease-in-out; }
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu li { border-bottom: 1px solid #e5e5e5; }
.dropdown-menu li a { text-decoration: none; color: #555; padding: 10px 15px; display: block; font-size: 0.8rem; text-align: center; }
.dropdown-menu li a:hover { background-color: #e0e0e0; color: #000; }

/* ハンバーガーメニュー切り替えボタン（PC幅では非表示、モバイル幅は下の@mediaでdisplay:flexに切り替え） */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 5. ヒーローセクション ---
   縦書きタイトルは「文字数が多いときに自動で列を折り返す」実装にしたところ、
   折返し位置の計算がPC版ブラウザ（Chrome/Edge）とiPhone版Safariとで異なり、
   同じページでも端末によって1列になったり3列になったりする状態になっていた。
   自動折返しに頼っている限り機種依存を避けられないため、方針を変更し、
   常に1列（white-space: nowrap）で表示することに統一する。
   その上で、文字数が多いタイトルでも収まりやすいよう、
   ①画像の高さに少し余裕を持たせる ②文字サイズ・文字間隔・余白を少し抑える
   ことで、白い枠が画像からはみ出す幅そのものを小さくする。
   さらに、white-space: nowrap だけではSafari(iPhone)とChromeで挙動が
   食い違う場合があった（nowrapが効かず2〜3列になるケースが確認された）ため、
   「文字が何列になっても、枠(.hero-text-overlay)の外には物理的に出られない」
   よう left/right で幅に上限を設けたうえで overflow: hidden を指定する。
   これにより、縦書きテキストの列数計算がブラウザによってどう変わっても、
   画面端からのはみ出しは構造上発生しなくなる。 */
.hero-section { position: relative; width: 100%; height: 560px; }
.hero-image-container { width: 100%; height: 100%; overflow: hidden; }
.hero-image-container img { width: 100%; height: 100%; object-fit: cover; }
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 20;
    max-height: 92%;      /* 縦方向も枠の外に出さないための上限 */
    overflow: hidden;      /* ブラウザ間の描画差異に対する最終防波堤：これがある限り画面端へのはみ出しは起きない */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero-title {
    white-space: nowrap; /* 基本は常に1列で表示（折返し位置が端末ごとに変わらないようにする） */
    max-width: 100%;
    font-family: 'Shippori Mincho', serif;
    font-size: 2.2rem;
    writing-mode: vertical-rl;
    letter-spacing: 0.35em;
    color: #111;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    line-height: 1.4;
}

/* --- 6. メインコンテンツエリア --- */
.main { flex: 1; padding: 80px 100px; }
.greeting-article-text-container p { margin-bottom: 3.5em; font-size: 1.1rem; text-align: justify; line-height: 2.4; }
.signature-wrapper { width: 100%; margin-top: 4em; display: flex; justify-content: flex-end; }
.greeting-signature { text-align: right !important; font-size: 1.5rem; font-family: 'Shippori Mincho', serif; margin: 0; display: block; }

/* --- 7. フッター設定 --- */
.footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 60px 40px;
}

.footer-inner {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 920px;
    margin: 0 auto 40px;
}

.footer-info {
    flex: 0 0 50%;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-info p {
    margin: 0;
}

.footer-links {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #999;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* --- 8. レスポンシブ --- */
@media (max-width: 1000px) {
    .central-content { width: 100%; box-shadow: none; }
    .header { position: relative; }
    .header-top-wrapper { padding: 20px; flex-direction: column; align-items: center; gap: 15px; }
    .header-sub-nav { margin-bottom: 0; }

    /* ハンバーガーメニューのボタンを表示 */
    .nav-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 150;
    }

    /* メインナビゲーションをタップ操作向けのアコーディオン形式に変更
       （hoverで開くドロップダウンは、タップ操作だと開閉位置がズレて
       　隣接する項目を誤って押してしまうため、タップで開閉する形式に切り替える） */
    .main-nav { position: static; }
    .nav-list {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }
    .nav-list.is-open { display: flex; }
    .nav-list > li { width: 100%; }
    .nav-list > li > a { text-align: center; border-bottom: 1px solid #e5e5e5; }

    .dropdown-menu {
        display: none;
        position: static;
        left: auto;
        transform: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: #e9e9e9;
    }
    .has-dropdown.is-open > .dropdown-menu { display: block; }

    .hero-section { height: 380px; }
    .hero-text-overlay { max-height: 90%; }
    .hero-title { font-size: 1.5rem; letter-spacing: 0.28em; padding: 14px 8px; }
    .main { padding: 50px 20px; }
    .footer { padding: 40px 20px; }
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
    .footer-info { flex: none; text-align: center; }
    .footer-links { justify-content: center; }
}

/* --- 9. トップページ（index.php）専用 --- */
.hero-slider-section { position: relative; width: 100%; height: 600px; overflow: hidden; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slider .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slider .slide:first-child { opacity: 1; }

.home-body { background-color: #fff; }
.home-body .site-wrapper { background-image: none; background-color: #fff; }
.home-body .central-content { max-width: 100%; box-shadow: none; background-color: #fff; }
.home-body .header-top-wrapper, .home-body .footer-inner { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* --- 10. 歴史ページ用タイムライン (history.html用) --- */
.history-section { padding: 0; }
.history-timeline { position: relative; max-width: 760px; margin: 0 auto; padding: 20px 20px 40px; }
.history-timeline::before { content: ''; position: absolute; top: 0; left: 20px; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent 0%, #bbb 5%, #bbb 95%, transparent 100%); }
.timeline-item { display: flex; flex-direction: column; margin-bottom: 50px; padding-left: 50px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: 15px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background-color: #888; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccc; z-index: 2; }
.timeline-date { font-family: 'Shippori Mincho', serif; font-size: 1.1rem; font-weight: 700; color: #555; letter-spacing: 0.12em; margin-bottom: 10px; text-align: left; }
.timeline-content { font-size: 1rem; color: #444; line-height: 1.9; text-align: justify; }

/* 昭和九年の画像表示用のスタイル（HTMLから移行） */
.timeline-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.timeline-images img {
    width: 45%;
    max-width: 300px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    /* 年間行事ページ（.event-gallery）と同じホバー拡大モーションを付与 */
    position: relative;
    z-index: 1;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s 0.4s;
}

.timeline-images img:hover {
    transform: scale(2.0);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s;
}

@media (max-width: 768px) {
    .timeline-images img:hover {
        /* スマホ画面で2倍にすると画面からはみ出るため、拡大率を抑える */
        transform: scale(1.05);
    }
}

/* 歴代住職テーブル用のスタイル（HTMLから移行） */
.priests-section {
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 30px 20px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.priests-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    color: #333;
}
.priests-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
}
.priests-table th, .priests-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
    font-family: "Noto Serif JP", serif;
}
.priests-table th {
    background-color: #f0eadd;
    font-weight: bold;
    color: #4a4a4a;
    width: 30%;
}
.priests-table td {
    background-color: #fff;
    color: #333;
}

@media (max-width: 600px) {
    .timeline-images img {
        width: 100%;
        max-width: 100%;
    }
}

/* --- 11. お知らせ一覧ページ（page-news.php）用スタイル --- */
.news-section { padding: 20px 0; }
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #ddd; }
.news-item { display: flex; align-items: baseline; padding: 25px 0; border-bottom: 1px solid #ddd; transition: background-color 0.3s ease; }
.news-item:hover { background-color: #fcfcfc; }
.news-meta { display: flex; align-items: center; gap: 15px; width: 220px; flex-shrink: 0; }
.news-date { font-family: 'Noto Serif JP', serif; color: #666; font-size: 0.95rem; letter-spacing: 0.05em; }
.news-category { font-size: 0.75rem; border: 1px solid #555; color: #555; padding: 2px 12px; letter-spacing: 0.1em; }
.news-title { flex: 1; }
.news-title a { text-decoration: none; color: #333; font-size: 1.05rem; line-height: 1.6; display: block; transition: color 0.3s; }
.news-title a:hover { color: #888; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 60px; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #ddd; text-decoration: none; color: #555; font-family: 'Shippori Mincho', serif; transition: all 0.3s; }
.pagination .current { background-color: #333; color: #fff; border-color: #333; }
.pagination a.page-numbers:hover { background-color: #f2f2f2; }

@media (max-width: 768px) {
    .news-item { flex-direction: column; gap: 10px; padding: 20px 0; }
    .news-meta { width: 100%; }
}

/* ==========================================================================
   12. 【新規】お知らせ詳細ページ（single.php）用スタイル
   ========================================================================== */
.single-news-section {
    padding: 0 40px 70px;
}

.single-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.single-date {
    font-family: 'Noto Serif JP', serif;
    color: #666;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.single-category {
    font-size: 0.8rem;
    border: 1px solid #555;
    color: #555;
    padding: 3px 15px;
    letter-spacing: 0.1em;
}

.single-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.8rem;
    color: #111;
    line-height: 1.5;
    margin: 0;
}

.single-content {
    font-size: 1.05rem;
    line-height: 2.2;
    color: #333;
    text-align: justify;
    margin-bottom: 30px;
}

/* 管理画面から挿入された画像がはみ出さないようにする */
.single-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* 一覧に戻るボタン */
.back-to-news {
    text-align: center;
    margin-top: 10px;
}

.back-to-news a {
    display: inline-block;
    border: 1px solid #999;
    padding: 10px 30px;
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: #555;
    transition: background-color 0.3s;
}

.back-to-news a:hover {
    background-color: #f2f2f2;
}

/* 前後の記事へのナビゲーション */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 40px;
    margin-top: 60px;
}

.post-navigation a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.post-navigation a:hover {
    color: #000;
}

.nav-previous, .nav-next {
    width: 30%;
}

.nav-previous { text-align: left; }
.nav-next { text-align: right; }

.nav-list-link {
    width: 40%;
    text-align: center;
}

.nav-list-link a {
    display: inline-block;
    border: 1px solid #999;
    padding: 10px 30px;
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.1em;
}

.nav-list-link a:hover {
    background-color: #f2f2f2;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .single-news-section { padding: 0 20px 60px; }
    .single-title { font-size: 1.4rem; }
    .post-navigation { flex-direction: column; gap: 20px; }
    .nav-previous, .nav-next, .nav-list-link { width: 100%; text-align: center; }
}

/* ==========================================================================
   13. 年間行事ページ（events.html）用スタイル
   ========================================================================== */
.events-section {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* 導入文 */
.events-intro {
    font-size: 1.05rem;
    line-height: 2.2;
    color: #444;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
}

/* リスト全体のコンテナ */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 行事カード：背景の龍の顔が少しだけ透き通るシックな仕様 */
.event-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.65);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

/* マウスオーバー時にスッと静かに浮かび上がる演出 */
.event-card:hover {
    border-color: #111;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* 左側の「月」を表示する深い墨色の帯エリア */
.event-month {
    width: 100px;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.month-num {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.month-label {
    font-size: 0.75rem;
    margin-top: 6px;
    color: #aaa;
    letter-spacing: 0.1em;
}

/* 右側の詳細文エリア */
.event-details {
    padding: 35px 40px;
    flex: 1;
}

/* 開催日（薄いグレーの小さな文字で上品に） */
.event-date {
    font-size: 0.85rem;
    color: #777;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* 行事名 */
.event-name {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px 0;
    letter-spacing: 0.05em;
}

/* 行事の説明文 */
.event-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.9;
    margin: 0;
    text-align: justify;
}

/* --- スマートフォン対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column;
    }
    
    /* スマホ画面では左の黒帯を上部の横帯に自動変形 */
    .event-month {
        width: 100%;
        padding: 12px 0;
        flex-direction: row;
        gap: 4px;
        justify-content: center;
        align-items: baseline;
    }
    
    .month-num {
        font-size: 1.8rem;
    }
    
    .month-label {
        margin-top: 0;
    }
    
    .event-details {
        padding: 25px 20px;
    }
    
    .event-name {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   14. 【劇的刷新】大切な人を亡くしたら（condolences.html）専用スタイル
   ========================================================================== */
.condolences-section {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* 寄り添うメッセージ：半透明の白幕に極細の二重枠をあしらった和モダン額縁 */
.condolences-intro-box {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 70px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.intro-box-inner {
    border: 1px dashed #aaa;
    padding: 45px 40px;
}

.intro-heading {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 0.05em;
}

.intro-box-inner p {
    font-size: 1.05rem;
    line-height: 2.3;
    color: #444;
    margin-bottom: 1.5em;
    text-align: justify;
}

.intro-box-inner p:last-child {
    margin-bottom: 0;
}

/* フローコンテナとカード展開 */
.flow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 90px;
}

.flow-step-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 各ステップのカード：エッジを効かせたソリッドな四角形 */
.step-card {
    display: flex;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* マウスホバー時に静かに漆黒の枠線へと変化する */
.step-card:hover {
    border-color: #111;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

/* 優先度別の左端アクセントライン（本朱と濃墨） */
.card-high { border-left: 5px solid #b32424; }      /* 最優先：本朱（ビビットな朱赤） */
.card-medium { border-left: 5px solid #555555; }    /* 優先：消炭色（落ち着いたグレー） */

/* 左側：バッジ＆ナンバリングエリア */
.step-side-badge {
    width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
    background-color: rgba(0, 0, 0, 0.01);
    flex-shrink: 0;
    padding: 20px 0;
}

/* 優先度ラベル（ここがビビットになります） */
.badge-priority {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 8px;
}

.priority-veryserious { background-color: #b32424; } /* ビビットな本朱 */
.priority-normal { background-color: #555555; }       /* シックな濃墨 */

/* 巨大な明朝体のステップ番号 */
.badge-number {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

/* 右側：コンテンツメインエリア */
.step-main-content {
    padding: 35px 40px;
    flex: 1;
}

.step-meta-row {
    margin-bottom: 10px;
}

/* タイミングタグ：小さな座布団 */
.step-time-tag {
    font-size: 0.75rem;
    color: #666;
    background-color: #f0f0f0;
    padding: 3px 12px;
    letter-spacing: 0.05em;
}

/* タイトル：下線ではなく、文字自体を大きく美しく */
.step-title-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #111;
    margin: 12px 0 15px 0;
    letter-spacing: 0.03em;
}

.step-description-text {
    font-size: 0.98rem;
    line-height: 2;
    color: #444;
    margin: 0;
    text-align: justify;
}

/* 電話番号の強調表示 */
.highlight-phone {
    display: block;
    margin-top: 10px;
    font-weight: 700;
    color: #b32424; /* 朱赤で視線を誘導 */
}

/* 各ステップを繋ぐ流れるような矢印デザイン */
.flow-arrow {
    font-size: 1.2rem;
    color: #bbb;
    padding: 25px 0;
    animation: pulseArrow 3s infinite;
}

@keyframes pulseArrow {
    0% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.4; }
}

/* 相談誘導：最下部をガツンと締める、お寺の庵をイメージした漆黒の重厚ボックス */
.cta-monotone-box {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.cta-inner-border {
    border: 1px solid #444;
    padding: 50px 40px;
    text-align: center;
}

.cta-box-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: 0.08em;
}

.cta-box-text {
    font-size: 1rem;
    line-height: 2;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 35px;
    text-align: justify;
}

/* 電話番号：落款（はんこ）を意識した朱色の枠組み */
.cta-phone-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #b32424; /* 本朱の枠線 */
    padding: 12px 35px;
    background-color: rgba(179, 36, 36, 0.05);
    margin-bottom: 12px;
}

.phone-icon-wrap {
    color: #b32424;
    font-size: 1.6rem;
    margin-right: 15px;
}

.phone-number-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    line-height: 1;
}

.cta-sub-text {
    display: block;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.1em;
}

/* --- スマートフォン対応（完璧なレスポンシブ化） --- */
@media (max-width: 768px) {
    .condolences-intro-box { padding: 8px; margin-bottom: 40px; }
    .intro-box-inner { padding: 30px 20px; }
    .intro-heading { font-size: 1.4rem; }
    .intro-box-inner p { font-size: 0.95rem; line-height: 2; }
    
    /* スマホでもPCと同じ配置（左の帯にラベル→番号を縦に並べ、右にコンテンツ）を保つ。
       以前は幅が狭い時だけ「帯を上部に横並び」というPCと異なるレイアウトに
       切り替えていたが、それが「PCと表示位置が違う」原因だったため、
       レイアウトの組み方自体は変えず、幅・余白・文字サイズだけを縮小する。 */
    .step-side-badge {
        width: 78px;
        padding: 16px 0;
    }
    .badge-priority { font-size: 0.58rem; padding: 3px 7px; }
    .badge-number { font-size: 2rem; }

    .step-main-content { padding: 22px 16px; }
    .step-title-text { font-size: 1.25rem; margin: 10px 0; }
    .step-description-text { font-size: 0.92rem; line-height: 1.8; }
    
    .cta-monotone-box { padding: 8px; }
    .cta-inner-border { padding: 35px 20px; }
    .cta-box-title { font-size: 1.3rem; }
    .cta-box-text { font-size: 0.9rem; margin-bottom: 25px; }
    .cta-phone-display { padding: 10px 20px; width: 100%; box-sizing: border-box; }
    .phone-number-text { font-size: 1.8rem; }
}

/* ==========================================================================
   15. ご供養（memorial.html）専用スタイル
   ========================================================================== */
.memorial-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* 導入文 */
.memorial-lead {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 40px;
}

.memorial-lead p {
    font-size: 1.05rem;
    line-height: 2.3;
    color: #444;
    margin-bottom: 1.2em;
}

/* 月参り・法事のメインブロック（二段組レイアウト） */
.memorial-block {
    display: flex;
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid #e0e0e0;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    gap: 50px;
}

/* 縦書きのタイトルカラム */
.memorial-title-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
    width: 80px;
    border-right: 1px solid #eaeaea;
    padding-right: 20px;
}

/* 法事セクションでは右側に縦書きが来るためのボーダー差し替え（PC用初期値） */
.font-reverse-order .memorial-title-col {
    border-right: none;
    border-left: 1px solid #eaeaea;
    padding-right: 0;
    padding-left: 20px;
}

/* 美しい日本の縦書き見出し */
.vertical-title {
    writing-mode: vertical-rl;
    text-combining-upright: digits 2;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.15em;
    line-height: 1.3;
    margin: 0;
}

/* 縦書き内の小さなルビ（ヨミガナ）表現 */
.vertical-title span {
    font-size: 0.85rem;
    color: #777;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-right: 8px; /* 縦書き時の「右側」＝上からの並びの横隙間 */
}

/* 本文コンテンツカラム */
.memorial-content-col {
    flex: 1;
}

.memorial-content-col p {
    font-size: 1.02rem;
    line-height: 2.2;
    color: #333;
    margin-bottom: 1.5em;
    text-align: justify;
}

.memorial-content-col p:last-of-type {
    margin-bottom: 0;
}

/* 補足・ご案内用の薄墨枠ボックス */
.memorial-note-box {
    background-color: #fafafa;
    border: 1px solid #eaeaea;
    padding: 25px 30px;
    margin-top: 35px;
}

.note-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
    border-bottom: 1px solid #111;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.note-text {
    font-size: 0.92rem !important;
    line-height: 1.9 !important;
    color: #555 !important;
    margin: 0 !important;
}

/* 下部お問い合わせ誘導エリア */
.memorial-cta-box {
    border: 1px solid #111;
    padding: 50px;
    text-align: center;
    background-color: #ffffff;
    margin-top: 80px;
}

.cta-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px 0;
    letter-spacing: 0.05em;
}

.cta-desc {
    font-size: 0.98rem;
    line-height: 2;
    color: #555;
    max-width: 650px;
    margin: 0 auto 35px;
}

/* 二並びのシックな墨色ボタン */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-memorial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 15px 25px;
    font-size: 0.95rem;
    color: #111;
    background-color: #ffffff;
    border: 1px solid #111;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn-memorial i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-memorial:hover {
    background-color: #111;
    color: #ffffff;
}

/* 電話ボタンは少し太めにして存在感を出す */
.btn-phone {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.btn-phone:hover {
    background-color: #444;
    border-color: #444;
}

/* --- スマートフォン対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .memorial-lead { padding: 0; margin-bottom: 50px; }
    .memorial-lead p { font-size: 0.95rem; line-height: 2; }
    
    .memorial-block {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
    }
    
    /* スマホ時は縦書きを解除して、通常の横書き見出しにする */
    .memorial-title-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        padding-right: 0;
        padding-bottom: 15px;
        justify-content: flex-start;
    }
    
    .font-reverse-order {
        display: flex;
        flex-direction: column-reverse; /* スマホでもタイトルが上に来るように並び替え */
    }
    
    .font-reverse-order .memorial-title-col {
        border-left: none;
        border-bottom: 1px solid #eaeaea;
        padding-left: 0;
        padding-bottom: 15px;
    }
    
    .vertical-title {
        writing-mode: horizontal-tb;
        font-size: 1.4rem;
    }
    
    .vertical-title span {
        display: block;
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    .memorial-content-col p {
        font-size: 0.95rem;
        line-height: 1.9;
    }
    
    .memorial-note-box { padding: 20px; }
    
    .memorial-cta-box { padding: 35px 20px; margin-top: 50px; }
    .cta-title { font-size: 1.25rem; }
    .cta-desc { font-size: 0.9rem; margin-bottom: 25px; }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-memorial {
        width: 100%;
        min-width: 0;
        /* width:100%に加えてpadding/borderがあるため、box-sizing指定が無いと
           枠の右側が外枠(.memorial-cta-box)からはみ出してしまうのを防ぐ */
        box-sizing: border-box;
    }
}

/* ==========================================================================
   16. お問い合わせ（contact.html）専用スタイル
   ========================================================================== */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* 導入文 */
.contact-lead {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.contact-lead p {
    font-size: 1.05rem;
    line-height: 2.2;
    color: #444;
}

.contact-urgent-phone {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem !important;
    font-weight: 700;
    color: #111 !important;
    margin-top: 20px;
    letter-spacing: 0.05em;
}

/* フォーム全体を包む和紙のような半透明の白幕 */
.contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px 70px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.form-group {
    margin-bottom: 40px;
}

/* ラベル（見出し） */
.form-group label {
    display: flex;
    align-items: center;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.label-note {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

/* 必須・任意のバッジ */
.badge-required {
    background-color: #b32424; /* 朱赤で統一 */
    color: #fff;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 3px 10px;
    margin-left: 15px;
    letter-spacing: 0.1em;
}

.badge-optional {
    background-color: #888;
    color: #fff;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 3px 10px;
    margin-left: 15px;
    letter-spacing: 0.1em;
}

/* 入力枠：四角い箱ではなく、モダンな「下線（アンダーライン）」のみ */
.zen-form input[type="text"],
.zen-form input[type="email"],
.zen-form input[type="tel"] {
    width: 100%;
    padding: 10px 5px;
    font-size: 1rem;
    font-family: 'Noto Serif JP', serif;
    color: #111;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* テキストエリアだけは四角い枠にする（文字を入力しやすくするため） */
.zen-form textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-family: 'Noto Serif JP', serif;
    color: #111;
    background-color: transparent;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    resize: vertical;
}

/* 入力中のフォーカス状態：線が墨色（黒）にパキッと変わる */
.zen-form input:focus,
.zen-form textarea:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 1px 0 #111; /* 下線を少し太く見せる演出 */
}
.zen-form textarea:focus {
    box-shadow: inset 0 0 0 1px #111;
}

/* プレースホルダー（例：〜）の色 */
.zen-form ::placeholder {
    color: #bbb;
}

/* 送信ボタン */
.form-submit-area {
    text-align: center;
    margin-top: 50px;
}

.btn-submit-zen {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background-color: #111;
    border: 1px solid #111;
    padding: 18px 60px;
    cursor: pointer;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.btn-submit-zen:hover {
    background-color: #fff;
    color: #111;
}

/* --- スマートフォン対応 --- */
@media (max-width: 768px) {
    .contact-form-wrapper { padding: 40px 25px; }
    .form-group label { font-size: 1rem; flex-wrap: wrap; }
    .badge-required, .badge-optional { margin-left: 10px; }
    .btn-submit-zen { width: 100%; box-sizing: border-box; }
}

/* ==========================================================================
   18. 子供坐禅塾（kids-zazen.html）専用スタイル
   ========================================================================== */
.zazen-kids-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* 導入文 */
.zazen-intro {
    text-align: center;
    margin-bottom: 70px;
}

.zazen-sub-catch {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #b32424; /* 朱赤のキャッチ */
    margin-bottom: 25px;
    letter-spacing: 0.1em;
}

.zazen-main-lead {
    font-size: 1.05rem;
    line-height: 2.3;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
}

/* 写真と文章を交互に並べるフローエリア */
.zazen-features-flow {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-bottom: 90px;
}

.zazen-row {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid #e0e0e0;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}

/* クラス「row-reverse」がついた行は、写真と文章が左右反転（PC表示時） */
.zazen-row.row-reverse {
    flex-direction: row-reverse;
}

/* テキストパネル側 */
.zazen-text-pane {
    flex: 1;
}

.pane-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #777;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.pane-heading {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px 0;
    letter-spacing: 0.05em;
}

.zazen-text-pane p {
    font-size: 0.98rem;
    line-height: 2.1;
    color: #444;
    text-align: justify;
    margin: 0;
}

/* 画像パネル側（写真を美しく魅せる設計） */
.zazen-image-pane {
    width: 45%;
    flex-shrink: 0;
}

/* ▼ 【大修正】events.html方式の「ポップアウト」仕様 ▼ */
.zazen-img-wrap {
    width: 100%;
    height: 260px; /* 枠の高さ */
    border: 1px solid #ddd;
    padding: 8px;
    background-color: #ffffff;
    box-sizing: border-box;
    /* overflow: hidden; は削除（画像が枠外に飛び出せるようにする） */
    position: relative;
}

.zazen-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠のサイズに合わせて自動トリミング */
    display: block;
    cursor: zoom-in; /* マウスカーソルを虫眼鏡に変更 */
    position: relative;
    z-index: 1; /* 通常時の重なり順 */
    /* 戻る時のアニメーション。z-indexは少し遅らせて戻す */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s 0.4s;
}

/* 写真にマウスを乗せると、枠を飛び出して画像全体が大きく手前に迫る */
.zazen-img-wrap img:hover {
    transform: scale(1.8); /* 1.8倍に拡大（events.htmlに近い迫力） */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 100; /* 他の要素より前面（手前）に表示させる */
    /* 拡大時のアニメーション。z-indexは即座に上げる */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s;
}

/* 開催概要（テーブルスタイル） */
.zazen-overview-block {
    margin-bottom: 90px;
}

.overview-heading {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    color: #111;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 0.05em;
}

.zen-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
}

.zen-table th {
    font-family: 'Shippori Mincho', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    width: 25%;
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.01);
}

.zen-table td {
    font-size: 0.95rem;
    color: #333;
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
    line-height: 1.8;
}

.zen-table tr:last-child th,
.zen-table tr:last-child td {
    border-bottom: none; /* 一番下の線は、外枠の太線と被るので消す */
}

/* 下部CTA */
.zazen-cta-box {
    border: 1px solid #111;
    background-color: #ffffff;
    padding: 50px;
    text-align: center;
}

.zazen-cta-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px 0;
    letter-spacing: 0.05em;
}

.zazen-cta-desc {
    font-size: 0.98rem;
    line-height: 2;
    color: #555;
    max-width: 650px;
    margin: 0 auto 35px;
}

.zazen-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-zazen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 16px 25px;
    font-size: 0.95rem;
    color: #111;
    background-color: #ffffff;
    border: 1px solid #111;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn-zazen i {
    margin-right: 10px;
}

.btn-zazen:hover {
    background-color: #111;
    color: #ffffff;
}

.btn-phone-zazen {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.btn-phone-zazen:hover {
    background-color: #444;
    border-color: #444;
}

/* --- スマートフォン対応（完璧なレスポンシブ） --- */
@media (max-width: 768px) {
    .zazen-sub-catch { font-size: 1.2rem; }
    .zazen-main-lead { font-size: 0.95rem; line-height: 2; }
    
    .zazen-features-flow { gap: 40px; }
    .zazen-row { flex-direction: column !important; padding: 25px 20px; gap: 20px; }
    .zazen-image-pane { width: 100%; }
    .zazen-img-wrap { height: 200px; padding: 5px; }
    
    /* スマホ画面で大きくしすぎると画面から見切れるため拡大率を調整 */
    .zazen-img-wrap img:hover {
        transform: scale(1.1); 
    }
    
    .pane-heading { font-size: 1.2rem; margin-bottom: 12px; }
    .zazen-text-pane p { font-size: 0.92rem; line-height: 1.9; }
    
    .zen-table { display: block; border-top: 1px solid #111; }
    .zen-table tbody, .zen-table tr, .zen-table th, .zen-table td { display: block; width: 100%; box-sizing: border-box; }
    .zen-table th { padding: 15px 10px 5px; border-bottom: none; font-size: 0.9rem; }
    .zen-table td { padding: 0 10px 15px; border-bottom: 1px solid #eee; font-size: 0.92rem; }
    
    .zazen-cta-box { padding: 35px 20px; }
    .zazen-cta-title { font-size: 1.3rem; }
    .zazen-cta-desc { font-size: 0.9rem; margin-bottom: 25px; }
    .zazen-cta-buttons { flex-direction: column; gap: 15px; }
    .btn-zazen { width: 100%; min-width: 0; box-sizing: border-box; }
}

/* ==========================================================================
   19. 大人坐禅会「CLUB ZAZEN」（adult-zazen.html）専用スタイル
   ========================================================================== */
.zazen-adult-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* 導入メッセージ */
.adult-intro {
    text-align: center;
    padding: 30px 0 60px;
    margin-bottom: 70px;
    border-bottom: 1px solid #e5e5e5;
}

.adult-catch {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    line-height: 1.5;
}

.adult-lead-text {
    font-size: 1.02rem;
    line-height: 2.3;
    color: #444;
    max-width: 720px;
    margin: 0 auto;
    text-align: justify;
}

/* CLUB ZAZEN タイムライン構造 */
.club-timeline {
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-bottom: 90px;
}

.club-time-block {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* 反転用の行指定 */
.club-time-block.block-reverse {
    flex-direction: row-reverse;
}

/* 左側：ギャラリー写真枠（エッジを極限まで効かせたシャープなデザイン） */
.club-photo-col {
    width: 45%;
    flex-shrink: 0;
}

.club-img-box {
    width: 100%;
    height: 280px;
    border: 1px solid #dcdcdc;
    background-color: #ffffff;
    box-sizing: border-box;
    /* overflow: hidden; は削除（子供坐禅会と同様に、ホバー時に画像が枠外へ飛び出せるようにする） */
    position: relative;
}

/* 写真自体を映画のワンシーンのように静かに見せるエフェクト */
.club-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(102%) brightness(98%);
    cursor: zoom-in; /* マウスカーソルを虫眼鏡に変更 */
    position: relative;
    z-index: 1; /* 通常時の重なり順 */
    /* 戻る時のアニメーション。z-indexは少し遅らせて戻す */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s 0.4s;
}

/* 写真にマウスを乗せると、枠を飛び出して画像全体が大きく手前に迫る（子供坐禅会と同じ仕様） */
.club-img-box img:hover {
    transform: scale(1.8);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 100; /* 他の要素より前面（手前）に表示させる */
    /* 拡大時のアニメーション。z-indexは即座に上げる */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s;
}

/* 右側：テキストカラム */
.club-text-col {
    flex: 1;
}

/* 時間を表す繊細な墨色のバッジ */
.time-badge {
    display: inline-block;
    font-family: 'Shippori Mincho', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    border: 1px solid #111;
    padding: 3px 15px;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.club-block-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 15px 0;
    letter-spacing: 0.05em;
}

.club-block-title span {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
    letter-spacing: 0.02em;
}

.club-text-col p {
    font-size: 0.95rem;
    line-height: 2;
    color: #444;
    text-align: justify;
    margin: 0;
}

/* 開催概要：お寺の夜の静けさを表現する漆黒の庵風プレート */
.adult-overview-box {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px;
    margin-bottom: 90px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.overview-inner-border {
    border: 1px solid #444;
    padding: 45px 40px;
}

.adult-overview-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 40px 0;
    letter-spacing: 0.08em;
}

/* 2×2のシックな情報グリッド */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
}

.overview-item {
    display: flex;
    flex-direction: column;
    border-left: 3px solid #555; /* 消炭色のアクセント */
    padding-left: 15px;
}

.item-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.item-value {
    font-size: 0.95rem;
    color: #eee;
    line-height: 1.6;
}

/* 下部CTA（引き算を極めたミニマルな着地） */
.adult-cta {
    border: 1px solid #111;
    background-color: #ffffff;
    padding: 55px 40px;
    text-align: center;
}

.adult-cta-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px 0;
    letter-spacing: 0.05em;
}

.adult-cta-desc {
    font-size: 0.98rem;
    line-height: 2;
    color: #444;
    max-width: 650px;
    margin: 0 auto 35px;
}

.adult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #1a1a1a;
    padding: 18px 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.adult-btn i {
    margin-right: 12px;
}

.adult-btn:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* --- スマートフォン対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .adult-catch { font-size: 1.4rem; }
    .adult-lead-text { font-size: 0.95rem; line-height: 2; }
    
    .club-timeline { gap: 40px; }
    .club-time-block { flex-direction: column !important; gap: 20px; }
    .club-photo-col { width: 100%; }
    .club-img-box { height: 220px; }

    /* スマホ画面で大きくしすぎると画面から見切れるため拡大率を調整 */
    .club-img-box img:hover {
        transform: scale(1.1);
    }
    
    .time-badge { font-size: 0.8rem; padding: 2px 12px; }
    .club-block-title { font-size: 1.2rem; }
    .club-text-col p { font-size: 0.92rem; line-height: 1.9; }
    
    .overview-inner-border { padding: 30px 20px; }
    .adult-overview-title { font-size: 1.25rem; margin-bottom: 30px; }
    .overview-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .adult-cta { padding: 40px 20px; }
    .adult-cta-title { font-size: 1.25rem; }
    .adult-cta-desc { font-size: 0.9rem; margin-bottom: 25px; }
    .adult-btn { width: 100%; box-sizing: border-box; }
}

/* ==========================================================================
   CLUB ZAZEN タイトル見切れ防止用のフォントサイズ調整
   ========================================================================== */
.adult-hero-title {
    font-size: 28px !important; /* 既存のサイズから少しだけ小さくして枠内に収める */
}

/* スマホ画面用の微調整 */
@media (max-width: 768px) {
    .adult-hero-title {
        font-size: 20px !important;
    }
}

/* ==========================================================================
   20. お問い合わせ（contact.html） - 禅・モダンFAQ（Q&A装飾復活アコーディオン）
   ========================================================================== */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

.contact-lead {
    font-size: 1rem;
    line-height: 2;
    color: #444;
    text-align: center;
    margin-bottom: 70px;
}

.contact-sub-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin: 0 0 50px 0;
    letter-spacing: 0.12em;
}

/* FAQアコーディオンエリア */
.faq-container {
    margin-bottom: 90px;
    background-color: transparent;
}

.faq-list {
    border-top: 1px solid #111; /* 襖の合わせ目のような、極細の黒い直線 */
    border-bottom: 1px solid #111;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0; /* Q同士を区切る、淡いグレーの直線 */
}
.faq-item:last-child {
    border-bottom: none;
}

/* 質問エリア：左側に高貴な朱赤の「Q」を配置 */
.faq-q {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    padding: 30px 20px 30px 60px; /* 左側にQが入るための美しい余白（60px）を確保 */
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.4s ease;
    letter-spacing: 0.05em;
    line-height: 1.5;
    position: relative; /* 擬似要素の基準位置 */
}

/* 【装飾復活】美しい明朝体の「Q」を左側に浮かび上がらせる */
.faq-q::before {
    content: "Q";
    position: absolute;
    left: 20px;
    top: 31px;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #b32424; /* 永全寺のキーカラーである和の朱赤 */
    line-height: 1;
}

.faq-q:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

/* 展開を示す「＋」アイコン */
.faq-icon-acc {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 30px;
}

.faq-icon-acc::before,
.faq-icon-acc::after {
    content: '';
    position: absolute;
    background-color: #b32424;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-icon-acc::before { top: 9px; left: 0; width: 20px; height: 1.5px; }
.faq-icon-acc::after { top: 0; left: 9px; width: 1.5px; height: 20px; }

.faq-item.active .faq-icon-acc::after { transform: rotate(90deg); }
.faq-item.active .faq-icon-acc::before { transform: rotate(180deg); }

/* 回答エリア：初期状態は非表示、左側に静謐なグレーの「A」を配置 */
.faq-a {
    font-size: 1rem;
    line-height: 2.1;
    color: #333;
    margin: 0;
    padding: 0 60px 0 60px; /* 質問側のQのラインと美しく揃えるため、左余白を60pxに設定 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), padding 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: justify;
    position: relative;
}

/* 【装飾復活】襖が開いた瞬間に、静かに現れる消炭色の「A」 */
.faq-a::before {
    content: "A";
    position: absolute;
    left: 20px;
    top: 12px; /* 開いた時のpadding-topと位置をミリ単位で同期 */
    font-family: 'Shippori Mincho', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #777; /* 主張しすぎない、洗練されたグレー */
    line-height: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* 開いた（active）状態の時だけ「A」をくっきりと表示 */
.faq-item.active .faq-a::before {
    opacity: 1;
}

.faq-item.active .faq-a {
    padding: 12px 60px 40px 60px; /* 上下にゆったりとした回答用の空間（余白）を作る */
    max-height: 500px;
}

/* 区切り線（FAQと電話の間の線） */
.contact-divider {
    height: 1px;
    background-color: #dcdcdc;
    margin: 70px auto;
    width: 60%;
}

/* 電話・メールブロック以降 */
.contact-phone-block { text-align: center; margin-bottom: 70px; }
.phone-desc { font-size: 0.95rem; color: #555; margin-bottom: 20px; }
.contact-phone-number { display: inline-block; font-family: 'Shippori Mincho', serif; font-size: 2.5rem; font-weight: 700; color: #111; text-decoration: none; margin-bottom: 15px; letter-spacing: 0.05em; transition: color 0.3s ease; }
.contact-phone-number:hover { color: #b32424; }
.phone-time { font-size: 0.9rem; color: #777; font-weight: 700; }

.contact-mail-block { background-color: #f9f9f9; border: 1px solid #eee; padding: 50px; }
.mail-desc { text-align: center; font-size: 0.95rem; line-height: 1.8; color: #555; margin-bottom: 40px; }
.contact-form-wrapper { background-color: #ffffff; border: 1px solid #e5e5e5; padding: 50px; }
.zen-form { display: flex; flex-direction: column; gap: 30px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-family: 'Shippori Mincho', serif; font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 10px; }
.badge-required { background-color: #b32424; color: #fff; font-size: 0.75rem; padding: 2px 8px; margin-left: 10px; vertical-align: middle; }
.label-note { font-size: 0.8rem; color: #666; font-weight: 400; }
.zen-form input[type="text"], .zen-form input[type="email"], .zen-form textarea { width: 100%; padding: 15px; border: 1px solid #ccc; background-color: #fcfcfc; font-size: 1rem; color: #333; box-sizing: border-box; transition: all 0.3s ease; }
.zen-form input:focus, .zen-form textarea:focus { outline: none; border-color: #111; background-color: #fff; }
.form-submit-area { text-align: center; margin-top: 20px; }
.btn-submit-zen { background-color: #1a1a1a; color: #ffffff; border: 1px solid #1a1a1a; padding: 18px 60px; font-size: 1.1rem; font-weight: 700; cursor: pointer; letter-spacing: 0.1em; transition: all 0.3s ease; }
.btn-submit-zen:hover { background-color: #ffffff; color: #1a1a1a; }

/* --- お問い合わせ用 スマートフォン対応 --- */
@media (max-width: 768px) {
    .contact-sub-title { font-size: 1.4rem; }
    .faq-q { padding: 22px 15px 22px 45px; font-size: 1rem; }
    .faq-q::before { left: 15px; top: 24px; font-size: 1.15rem; }
    .faq-icon-acc { margin-left: 20px; width: 16px; height: 16px; }
    .faq-icon-acc::before { top: 7px; width: 16px; height: 1px; }
    .faq-icon-acc::after { left: 7px; width: 1px; height: 16px; }
    
    .faq-a { font-size: 0.9rem; padding: 0 15px 0 45px; }
    .faq-a::before { left: 15px; top: 0; font-size: 1.15rem; }
    .faq-item.active .faq-a { padding: 0 15px 30px 45px; }
    
    .contact-phone-number { font-size: 1.8rem; }
    .contact-mail-block { padding: 30px 15px; }
    .contact-form-wrapper { padding: 30px 20px; }
    .btn-submit-zen { width: 100%; padding: 15px; font-size: 1rem; box-sizing: border-box; }
}

/* ==========================================================================
   21. アクセス（access.html）専用スタイル
   ========================================================================== */
.access-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.access-page-container {
    display: flex;
    flex-direction: column;
    gap: 60px; 
    margin-top: 10px; 
}

/* ▼ マップを画面幅に広げつつ、高さをしっかり確保するCSS ▼ */
.map-wrapper {
    width: 100%;
    height: 450px; 
    border: 1px solid #dcdcdc; 
    background-color: #f9f9f9;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* スマホ画面の時は、少しだけ高さを調整して見やすくする */
@media (max-width: 768px) {
    .map-wrapper {
        height: 350px; 
    }
}

/* ▼ 交通案内のテキストエリア ▼ */
.access-description {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    padding: 45px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}

.access-subtitle {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 30px 0;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #111;
    padding-bottom: 12px;
    display: inline-block;
}

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

.access-list li {
    font-size: 1rem;
    line-height: 2.2;
    color: #333;
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
}

.access-list li:last-child {
    margin-bottom: 0;
}

/* 先頭の「・」の代わりに、朱赤の小さな四角をアクセントであしらう */
.access-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 4px;
    height: 4px;
    background-color: #b32424;
}

/* --- アクセス用 スマートフォン対応 --- */
@media (max-width: 768px) {
    .access-page-container { gap: 40px; margin-top: 0; }
    .access-description { padding: 30px 20px; }
    .access-subtitle { font-size: 1.2rem; margin-bottom: 25px; }
    .access-list li { font-size: 0.95rem; line-height: 1.9; }
    .access-list li::before { top: 11px; }
}

/* 昭和九年の画像表示用のスタイル（HTMLから移行） */
.timeline-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.timeline-images img {
    width: 45%;
    max-width: 300px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    /* 年間行事ページ（.event-gallery）と同じホバー拡大モーションを付与 */
    position: relative;
    z-index: 1;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s 0.4s;
}

.timeline-images img:hover {
    transform: scale(2.0);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s;
}

@media (max-width: 768px) {
    .timeline-images img:hover {
        /* スマホ画面で2倍にすると画面からはみ出るため、拡大率を抑える */
        transform: scale(1.05);
    }
}

/* 歴代住職テーブル用のスタイル（HTMLから移行） */
.priests-section {
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 30px 20px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.priests-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    color: #333;
}
.priests-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-collapse: collapse;
}
.priests-table th, .priests-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
    font-family: "Noto Serif JP", serif;
}
.priests-table th {
    background-color: #f0eadd;
    font-weight: bold;
    color: #4a4a4a;
    width: 30%;
}
.priests-table td {
    background-color: #fff;
    color: #333;
}

@media (max-width: 600px) {
    .timeline-images img {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   追加: 年間行事ページ 画像ギャラリー用スタイル（画面崩れを防止しつつ拡大表示）
   ========================================================================== */
.event-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}

.event-gallery figure {
    margin: 0;
    flex: 1 1 calc(33.333% - 15px);
    min-width: 0; /* ★巨大な画像が親要素を突き破るのを防ぐ必須設定 */
    position: relative; /* 拡大時のz-index制御用 */
}

.event-gallery img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    /* 戻る時のアニメーション。z-indexは少し遅らせて戻す */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s 0.4s;
    position: relative;
    z-index: 1;
    cursor: zoom-in; /* マウスカーソルを虫眼鏡に変更 */
}

.event-gallery img:hover {
    transform: scale(2.0); /* 2倍に大きく拡大 */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 100; /* 他の要素より前面に表示させる */
    /* 拡大時のアニメーション。z-indexは即座に上げる */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s;
}

@media (max-width: 768px) {
    .event-gallery figure {
        flex: 1 1 100%;
    }
    .event-gallery img {
        height: auto;
        aspect-ratio: 3 / 2;
    }
    .event-gallery img:hover {
        /* スマホ画面で2倍にすると画面からはみ出るため、拡大率を抑える */
        transform: scale(1.05); 
    }
}

/* ==========================================================================
   13. 【新規】サイトマップページ（sitemap.html）用スタイル
   ========================================================================== */
.sitemap-section {
    padding: 20px 0;
}

.sitemap-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px 60px;
}

.sitemap-block {
    margin-bottom: 10px;
}

/* 見出し部分 */
.sitemap-category-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.3rem;
    color: #111;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sitemap-category-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.sitemap-category-title a:hover {
    color: #666;
}

/* リスト部分 */
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

/* リストアイコン（FontAwesomeの矢印） */
.sitemap-list li::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: #888;
    font-size: 0.8rem;
}

.sitemap-list li a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.sitemap-list li a:hover {
    color: #000;
}

@media (max-width: 768px) {
    .sitemap-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   22. 永代供養（eternal.html）専用スタイル
   ========================================================================== */
.eternal-section {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* 冒頭のキャッチコピー＋導入文 */
.eternal-statement-block {
    text-align: center;
    margin-bottom: 90px;
}

.statement-catch {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #111;
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin: 0 0 35px 0;
}

.statement-text {
    max-width: 680px;
    margin: 0 auto;
}

.statement-text p {
    font-size: 1.02rem;
    line-height: 2.3;
    color: #444;
    text-align: justify;
    margin: 0 0 1.5em 0;
}

.statement-text p:last-child {
    margin-bottom: 0;
}

/* コンセプト紹介：写真＋テキストの2カラム（CLUB ZAZENの構成を踏襲） */
.eternal-concept-box {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 90px;
}

.concept-image-placeholder {
    width: 42%;
    flex-shrink: 0;
    height: 280px;
    border: 1px solid #dcdcdc;
    background-color: #f5f5f5;
    position: relative; /* ホバー拡大時に画像を最前面へ出すため */
}

.concept-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(102%) brightness(98%);
    cursor: zoom-in;
    position: relative;
    z-index: 1;
    /* 他ページ（年間行事・永全寺の歴史・世界平和祈念塔とは）と同じホバー拡大モーション */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s 0.4s;
}

.concept-image-placeholder img:hover {
    transform: scale(1.8);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s;
}

.concept-content {
    flex: 1;
}

.concept-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    line-height: 1.7;
    letter-spacing: 0.03em;
    margin: 0 0 20px 0;
}

.concept-content p {
    font-size: 0.98rem;
    line-height: 2.1;
    color: #444;
    text-align: justify;
    margin: 0 0 1.4em 0;
}

.concept-content p:last-child {
    margin-bottom: 0;
}

/* 3つの特徴パネル */
.eternal-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 90px;
}

.feature-pane {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-pane:hover {
    border-color: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.pane-number {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ccc;
    line-height: 1;
    margin-bottom: 15px;
}

.pane-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.03em;
    margin: 0 0 15px 0;
}

.pane-desc {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #444;
    text-align: justify;
    margin: 0;
}

/* 下部CTA導入文（この下に既存の .memorial-cta-box が続く） */
.eternal-cta {
    text-align: center;
    margin: 0 0 50px 0;
}

.eternal-cta-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.05em;
    margin: 0 0 20px 0;
}

.eternal-cta-desc {
    font-size: 0.98rem;
    line-height: 2;
    color: #555;
    max-width: 650px;
    margin: 0 auto;
}

/* --- スマートフォン対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .statement-catch { font-size: 1.4rem; }
    .statement-text p { font-size: 0.95rem; line-height: 2; }

    .eternal-concept-box { flex-direction: column; gap: 25px; margin-bottom: 60px; }
    .concept-image-placeholder { width: 100%; height: 220px; }
    .concept-image-placeholder img:hover {
        /* スマホ画面で1.8倍にすると画面からはみ出るため、拡大率を抑える */
        transform: scale(1.08);
    }
    .concept-title { font-size: 1.15rem; }

    .eternal-features-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 60px; }
    .feature-pane { padding: 30px 20px; }

    .eternal-cta { margin-bottom: 35px; }
    .eternal-cta-title { font-size: 1.25rem; }
    .eternal-cta-desc { font-size: 0.9rem; }
}

/* ==========================================================================
   23. 世界平和祈念塔とは（peace-tower）記事末尾の関連画像ギャラリー
   ========================================================================== */
.world-peace-image-column-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.world-peace-article-image-container {
    position: relative;
}

.world-peace-article-image-container img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    cursor: zoom-in;
    position: relative;
    z-index: 1;
    /* 年間行事・永全寺の歴史ページと同じホバー拡大モーションを付与 */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s 0.4s;
}

.world-peace-article-image-container img:hover {
    transform: scale(1.8);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0s;
}

@media (max-width: 768px) {
    .world-peace-image-column-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }
    .world-peace-article-image-container img {
        height: 150px;
    }
    .world-peace-article-image-container img:hover {
        /* スマホ画面で1.8倍にすると画面からはみ出るため、拡大率を抑える */
        transform: scale(1.08);
    }
}