/* ========= 基本 ========= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Hiragino Sans","Yu Gothic",sans-serif;
    color:#333;
    background:#fcfbf8;
    line-height:1.9;
    font-size:16px;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}


/* ========= ヘッダー ========= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:72px;
    background:rgba(247,243,236,.96);
    backdrop-filter:blur(8px);
    z-index:1000;
    border-bottom:1px solid #ddd3c5;
}

.header-inner{
    max-width:1200px;
    height:80px;
    margin:auto;
    padding:0 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}



/* ========= ロゴ ========= */

.logo{
    display:block;
    text-decoration:none;
    color:#4b326d;
    font-family:"Yu Mincho","Hiragino Mincho ProN",serif;
}


.logo-text{
    display:flex;
    flex-direction:column;
    align-items:center;
    line-height:1.2;
}


.logo-text span:first-child{
    font-size:14px;
    letter-spacing:.3em;
}


.logo-text span:last-child{
    font-size:32px;
    letter-spacing:.12em;
}



/* ========= ナビ ========= */

nav{
    display:flex;
    gap:32px;
}


nav a{

    color:#4b326d;
    text-decoration:none;
    font-size:15px;
    position:relative;
    padding-bottom:6px;
    transition:.3s;

}


nav a::after{

    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:#8b6bb5;
    transition:.3s;

}


nav a:hover{

    color:#8b6bb5;

}


nav a:hover::after{

    width:100%;

}


/* ========= ハンバーガー ========= */

.menu-button{
    display:none;
    background:none;
    border:none;
    color:#4b326d;
    font-size:32px;
    cursor:pointer;
}



/* ========= メイン画像 ========= */

.hero{
    margin-top:80px;
    height:75vh;
    position:relative;
    overflow:hidden;
}


.hero img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center center;
}


.hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.15);
}



/* ========= トップ文字 ========= */

.hero-text{
    position:absolute;
    left:260px;
    bottom:90px;
    top:auto;
    z-index:2;
    text-align:left;
}

.hero-text .san{
    font-size:20px;
    letter-spacing:.25em;
    color:#fff8e7;
    line-height:1.2;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
}


.hero-text h1{
    font-size:56px;
    font-weight:500;
    letter-spacing:.18em;
    color:#fff8e7;
    text-shadow:0 2px 12px rgba(0,0,0,.35);
}


.hero-text p:last-child{
    margin-top:20px;
    font-size:18px;
    letter-spacing:.15em;
    color:#fff8e7;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
}


/* ========= コンテンツ共通 ========= */

section{
    max-width:1100px;
    margin:120px auto;
    padding:0 30px;
}


h2{
    font-size:32px;
    color:#4b326d;
    margin-bottom:35px;
    font-weight:400;
    letter-spacing:.15em;
}


h2::after{
    content:"";
    width:50px;
    height:2px;
    background:#5b3d8b;
    display:block;
    margin-top:16px;
}


h3{
    color:#4b326d;
    font-size:22px;
    font-weight:400;
    letter-spacing:.1em;
    margin-bottom:25px;
}


p{
    font-size:18px;
    color:#555;
    letter-spacing:.08em;
}



/* ========= カード ========= */

.card{
    background:#faf8f5;
    border-radius:4px;
    padding:40px;
    margin-top:30px;
    border:1px solid #e8e2d8;
    transition:.3s;
}


@media screen and (min-width:769px){

.card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,.06);
}

}



/* ========= カード内文章 ========= */

.card p{
    line-height:2;
    margin-bottom:18px;
}


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



/* ========= 写真 ========= */

.card img:not(.event-photo){

    width:70%;
    max-width:500px;
    height:auto;
    margin:0 auto 25px;

    border-radius:4px;

}



/* ========= ボタン ========= */

.button{

    display:inline-block;

    margin-top:30px;

    padding:12px 38px;

    border:1px solid #5b3d8b;

    color:#5b3d8b;

    text-decoration:none;

    letter-spacing:.1em;

    transition:.3s;

}


.button:hover{

    background:#5b3d8b;

    color:#fff;

}



/* ========= フッター ========= */

footer{

    margin-top:120px;

    padding:60px 30px;

    background:#f7f5f1;

    text-align:center;

    color:#666;

    border-top:1px solid #e8e2d8;

}



/* ========= 下層ページタイトル ========= */

.page-title{

    margin-top:80px;

    padding:80px 30px;

    text-align:center;

    background:#f7f5f1;

}


.page-title-sub{

    font-size:18px;

    letter-spacing:.3em;

    color:#5b3d8b;

    margin-bottom:10px;

}


.page-title h1{

    font-size:42px;

    font-weight:400;

    letter-spacing:.18em;

    color:#4b326d;

}

/* ========= 行事案内 ========= */

.event-list p{
    display:flex;
    margin-bottom:15px;
    align-items:flex-start;
}

.event-list span{
    display:inline-block;
    width:170px;
    flex-shrink:0;
    margin-right:20px;
    white-space:nowrap;
}



/* ========= お知らせ ========= */

.news-list h3{

    margin-bottom:30px;

}


.news-item p{

    display:flex;

    margin-bottom:15px;

}


.news-date{

    width:80px;

    flex-shrink:0;

}


.news-content{

    line-height:2;

}



/* ========= アクセス ========= */

.access-box{

    display:flex;
    gap:40px;
    align-items:flex-start;

}


.access-info{

    flex:1;

}


/* 住所・電話 */

.access-info p{

    margin-bottom:20px;

}



/* ========= 地図 ========= */

.access-map{

    flex:1;

}


.access-map iframe{

    width:100%;
    height:350px;
    border-radius:4px;

}



/* ========= 関連寺院 ========= */

.related-area{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:30px;

}


.related-item{

    display:block;

    padding:35px;

    text-decoration:none;

    background:linear-gradient(135deg,#f8f4fc,#eee7f7);

    border:1px solid #d6c7e8;

    border-radius:10px;

    color:#444;

    transition:.35s;

    box-shadow:0 6px 20px rgba(75,50,109,.08);

}


.related-item:hover{

    transform:translateY(-6px);

    background:linear-gradient(135deg,#f2ebfb,#e6dbf5);

    border-color:#8b6bb5;

    box-shadow:0 15px 35px rgba(75,50,109,.18);

}


.related-item h3{

    color:#4b326d;

    font-size:24px;

    margin-bottom:15px;

    font-family:"Yu Mincho","Hiragino Mincho ProN",serif;

    letter-spacing:.08em;

}


.related-item p{

    color:#666;

    line-height:1.9;

    margin-bottom:25px;

}


.related-item span{

    display:inline-block;

    color:#6b4a9a;

    font-weight:600;

    border-bottom:1px solid #b8a2d8;

    padding-bottom:3px;

    transition:.3s;

}


.related-item:hover span{

    color:#4b326d;

    border-color:#4b326d;

}

/* ========= お盆写真 ========= */

.obon-area{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:30px;

}


.obon-area > div{

    flex:1;

}


.event-photo{

    width:300px;

    height:auto;

    margin-top:-10px;

}



/* ========= 行事写真調整 ========= */

.event-photo{

    border-radius:4px;

}



/* ========= 光眞寺について写真 ========= */

.card img:not(.event-photo){

    width:70%;

    max-width:500px;

}



/* ========= 注意書き ========= */

.note{

    font-size:14px;

    color:#666;

    line-height:1.8;

}

/* ========= スマホ対応 ========= */

@media screen and (max-width:768px){


/* ========= ヘッダー ========= */

header{

    position:relative;

    height:auto;

}


.header-inner{

    height:auto;

    padding:12px 18px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}



.logo-text span:first-child{

    font-size:12px;

}


.logo-text span:last-child{

    font-size:26px;

    letter-spacing:.1em;

}



/* ========= ハンバーガー ========= */

.menu-button{

    display:block;

    background:none;

    border:none;

    font-size:32px;

    color:#4b326d;

    cursor:pointer;

    padding:4px 8px;

}



/* ========= メニュー ========= */

nav{
    display:none;
    position:absolute;
    top:80px;
    right:0;
    left:auto;
    width:190px;
    flex-direction:column;
    background:#f7f3ec;
    border:1px solid #e5e5e5;
    z-index:9999;
}


nav.open{
    display:flex;
}


nav a{
    display:block;
    padding:4px 16px;
    text-align:left;
    color:#444;
    font-size:18px;
    border-bottom:1px solid #eee;
}


/* ========= トップ画像 ========= */

.hero{

    margin-top:0;

    height:45vh;

}


.hero-text{

    left:20px;

    top:42%;

}


.hero-text .san{

    font-size:13px;

}


.hero-text h1{

    font-size:32px;

}


.hero-text p:last-child{

    font-size:12px;

}


}

/* ========= スマホ本文 ========= */

@media screen and (max-width:768px){


/* ========= コンテンツ ========= */

section{

    margin:50px auto;

    padding:0 16px;

}


h2{

    font-size:24px;

    margin-bottom:20px;

}


h2::after{

    width:40px;

    margin-top:12px;

}


h3{

    font-size:19px;

}


p{

    font-size:15px;

    line-height:1.9;

}


header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

}

/* ========= カード ========= */

.card{

    padding:20px 16px;

    margin-top:20px;

}



/* ========= 写真 ========= */

.card img:not(.event-photo){

    width:100%;

    max-width:100%;

    margin-bottom:20px;

}



/* ========= ボタン ========= */

.button{

    width:100%;

    text-align:center;

    padding:12px;

}



/* ========= 下層ページタイトル ========= */

.page-title{

    margin-top:0;

    padding:45px 18px;

}


.page-title-sub{

    font-size:13px;

}


.page-title h1{

    font-size:28px;

}

body{

    padding-top:60px;

}

/* ========= 行事案内 ========= */

.event-list p{

    display:flex;

    font-size:15px;

}


.event-list span{

    width:140px;

    flex-shrink:0;

    margin-right:12px;

    white-space:nowrap;

}



/* ========= お知らせ ========= */

.news-item p{

    display:flex;

}


.news-date{

    width:65px;

}


.news-content{

    line-height:1.9;

}



/* ========= アクセス ========= */

.access-box{

    display:block;

}


.access-info{

    width:100%;

}


.access-info p{

    margin-bottom:18px;

}


.access-map{

    margin-top:25px;

}


.access-map iframe{

    width:100%;

    height:280px;

    border-radius:4px;

}



/* ========= お盆写真 ========= */

.obon-area{

    display:block;

}


.event-photo{

    width:180px;

    margin-top:20px;

}



/* ========= 関連寺院 ========= */

.related-area{

    display:block;

}


.related-item{

    margin-bottom:20px;

    padding:25px 20px;

}


.related-item h3{

    font-size:20px;

}



/* ========= ハンバーガーメニュー ========= */

.menu-button{

    display:block;

    background:none;

    border:none;

    font-size:30px;

    color:#4b326d;

    cursor:pointer;

    z-index:1100;

}


nav{

    position:fixed;

    top:80px;

    right:0;

    width:220px;

    background:#fcfbf8;

    display:flex;

    flex-direction:column;

    padding:15px 0;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

    transform:translateX(100%);

    transition:.3s;

    z-index:1050;

}


nav.open{

    transform:translateX(0);

}


nav a{

    padding:10px 20px;

    font-size:16px;

    text-align:left;

    color:#444;

    border-bottom:1px solid #eee;

}



/* ========= フッター ========= */

footer{

    margin-top:80px;

    padding:40px 20px;

}


}