@charset "UTF-8";
/*
Theme Name: 正圓寺 オリジナルテーマ
Author: Web Coder
Version: 1.14
Description: 真宗大谷派功徳山 正圓寺（shouenji）様仕様の5ページ構成オリジナルテーマ（上下固定ヘッダー・フッター、1080px以下完全レスポンス、バナー＆CTAをスマホでも横並び固定、CSSフェードMV、全6項目フッター画像リンク、Contact Form 7対応版）
*/

/* ==========================================================================
   1. 共通リセット＆ベーススタイル
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    background-color: #f9f6f0; /* 薄いベージュ */
    line-height: 1.8;
    padding-top: 70px;    /* 上部固定ヘッダー分の余白 */
    padding-bottom: 150px; /* ★下部追従フッターが裏のコンテンツと被らないための適切な余白 */
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   2. ヘッダー（上部固定・追従型）
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #f1ebd9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.header-logo img {
    height: 40px;
}
.header-nav ul {
    display: flex;
    list-style: none;
}
.header-nav a {
    font-weight: bold;
    color: #4a3c31;
    font-size: 15px;
    border: 1px solid #4a3c31;
    padding: 6px 15px;
    background-color: #fff;
    transition: background-color 0.2s;
}
.header-nav a:hover {
    background-color: #f9f6f0;
}

/* ==========================================================================
   3. メインビジュアル（CSS 3枚画像ふわっとフェードループ）
   ========================================================================== */
.main-visual {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f9f6f0;
}
.mv-slider {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-areas: "stack";
}
.mv-slide {
    grid-area: stack;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlider 15s infinite ease-in-out;
}
.mv-slide:nth-child(1) { animation-delay: 0s; }
.mv-slide:nth-child(2) { animation-delay: 5s; }
.mv-slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeSlider {
    0% { opacity: 0; }
    6.6% { opacity: 1; }
    33.3% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

/* ==========================================================================
   4. 基本レイアウト＆共通コンポーネント
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}
.section-title {
    text-align: center;
    font-size: 22px;
    color: #a88e54;
    margin-bottom: 30px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: #a88e54;
    margin: 10px auto 0;
}

/* 3カラムグリッド（お知らせ・交通アクセス共通） */
.grid-3 {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.grid-item {
    flex: 1;
    background: #fff;
    padding: 15px;
    border: 1px solid #e1d7c1;
    text-align: center;
}
.grid-img-dummy {
    width: 100%;
    height: 150px;
    background: #eee;
    margin-bottom: 10px;
    overflow: hidden;
}
.grid-img-dummy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ご挨拶（住職）セクション */
.greeting-box {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border: 1px solid #e1d7c1;
    align-items: flex-start;
}
.greeting-text { 
    flex: 2; 
    font-size: 14px;
    line-height: 2.0;
}
.greeting-img { 
    flex: 1; 
    background: #fff;
    padding: 10px;
    border: 1px solid #e1d7c1;
    text-align: center; 
}
.greeting-profile-text {
    font-size: 13px;
    margin-top: 10px;
    line-height: 1.6;
    color: #4a3c31;
}

/* 全画面マップ枠 */
.map-section {
    width: 100%;
    height: 350px;
    background-color: #eee;
    border-top: 1px solid #e1d7c1;
    border-bottom: 1px solid #e1d7c1;
}
.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   5. お問い合わせフォーム（Contact Form 7 最適化）
   ========================================================================== */
.contact-form {
    background: #fff;
    padding: 30px;
    max-width: 700px;
    margin: 0 auto;
}
.contact-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}
.contact-form br {
    display: none;
}
.form-group {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}
.form-label {
    width: 150px;
    font-weight: bold;
    padding-top: 8px;
    display: flex;
    align-items: center;
}
.form-label span {
    background: #a88e54;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 3px;
    font-weight: normal;
}
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}
textarea.form-control { height: 120px; }
.form-submit {
    text-align: center;
    margin-top: 20px;
}
.submit-btn {
    background: #a88e54;
    color: #fff;
    border: none;
    padding: 10px 40px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background: #8e7543;
}

.wpcf7-not-valid-tip {
    color: #df4b4b;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    border: 2px solid #a88e54 !important;
    background: #fffdf8;
    text-align: center;
    border-radius: 4px;
}

/* ==========================================================================
   6. 下層（固定）ページ共通レイアウト
   ========================================================================== */
.page-section {
    background: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #e1d7c1;
}
.page-section h3 {
    color: #a88e54;
    margin-bottom: 15px;
    font-size: 18px;
    border-left: 4px solid #a88e54;
    padding-left: 10px;
}
.page-img-full {
    margin: 20px 0;
    text-align: center;
}

/* ==========================================================================
   7. バナーナビゲーション（フッター内配置用）
   ========================================================================== */
.footer-banner-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 20px 5px 20px;
    background-color: #fff;
}
.banner-nav {
    display: flex;       /* 横並びを有効化 */
    gap: 10px;          /* バナー間の隙間 */
    margin-top: 0;
}
.banner-item {
    flex: 1;
    display: block;
    padding: 0;
    border: none;
    line-height: 0;
    transition: opacity 0.3s, transform 0.2s;
}
.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}
.banner-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ==========================================================================
   8. フッター＆固定追従CTA
   ========================================================================== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.08);
}
.footer-cta {
    display: flex;
    width: 100%;
}
.cta-btn {
    flex: 1;
    display: block;
    padding: 0;
    margin: 0;
    overflow: hidden;
    line-height: 0;
    transition: opacity 0.3s;
}
.cta-btn img {
    width: 100%;
    height: auto;
    display: block;
}
.cta-btn:hover {
    opacity: 0.85;
}
.copyright {
    background-color: #fff;
    text-align: center;
    font-size: 11px;
    padding: 5px 0;
    color: #666;
    border-top: 1px solid #eee;
    line-height: 1.5;
}

/* ==========================================================================
   9. 💻 レスポンシブ設計 (1080px以下ですべて縦並び。ただしフッター群は横並びを死守)
   ========================================================================== */
@media (max-width: 1080px) {
    body {
        padding-top: 60px;
        padding-bottom: 120px; /* 横並びでコンパクトになるため、スマホ時の最下部余白を最適化 */
    }
    .site-header {
        height: 60px;
    }
    .header-nav a {
        font-size: 13px;
        padding: 4px 10px;
    } 
    
    /* ページのメインコンテンツ群のみを縦並び（1カラム）に変換 */
    .grid-3, 
    .greeting-box, 
    .form-group {
        flex-direction: column;
    }
    
    /* 🔄 4連バナー：スマホ画面でもPC同様の美しい「横並び」を完全維持 */
    .footer-banner-container {
        padding: 6px 10px 4px 10px; /* スマホ用に余白を少しタイトに調整 */
    }
    .banner-nav {
        flex-direction: row !important; /* 絶対に縦並びにさせない */
        gap: 5px; /* バナー同士の隙間をスマートに調整 */
    }
    
    /* 🔄 2連固定CTA（お電話・メール）：スマホ画面でも絶対縦並びにせず「横並び」を維持 */
    .footer-cta {
        flex-direction: row !important; /* スマホでもお電話・メールボタンを横並び1行に固定 */
    }
    
    .greeting-img {
        width: 100%;
        margin-top: 20px;
    }
    .form-label { 
        width: 100%; 
        margin-bottom: 5px; 
        padding-top: 0; 
    }
    .page-section { 
        padding: 20px; 
    }
}