@charset "utf-8";
/* =========================================================
   静的化の調整 ＋ スマホ表示（観音寺 rintakuzan.org）
   旧テーマの style.css はほぼそのまま。ここで上書きする
   ========================================================= */

/* ---------- 共通（静的化の調整） ---------- */
html{scroll-behavior:smooth}
h3,h4,.event-t th,.agano-name,.kanbara-name{
  font-family:"Times New Roman","游明朝",YuMincho,"ヒラギノ明朝 ProN W3","Hiragino Mincho ProN","Noto Serif JP","Noto Serif CJK JP","メイリオ",Meiryo,serif;
}
#sp-header,#sp-nav,#sp-tel{display:none}
/* 旧サイトは XHTML Transitional（画像だけの行は画像の高さになる）。同じ詰まり方にする */
.footer-navi a,.footer-navi img,#news-more a,#news-more img,.access-link a,.access-link img{display:block}
#news-more img{margin-left:auto}
.access-link a{float:right}
.access-link:after{content:"";display:block;clear:both}

/* TOPのスライド（旧Flash） */
#topflash{position:relative}
#tophead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0;padding:0;background:none}
#topslide{position:relative;width:732px;height:540px;margin:0 auto;padding:0;list-style:none;overflow:hidden}
#topslide li{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transition:opacity 1.6s ease}
#topslide li.on{opacity:1}
#topslide img{display:block;width:100%;height:100%;object-fit:cover}

/* お知らせ */
.blog-title a{color:inherit;text-decoration:none}
.blog-title a:hover{color:#CF6F6F}
.news-single .blog-title{margin-bottom:18px}
.news-photos{display:flex;flex-wrap:wrap;gap:12px 11px;margin:0 0 18px}
.news-photos figure{margin:0;width:236px}
.news-photos.one figure{width:auto;max-width:640px}
.news-photos img{display:block;width:100%;height:177px;object-fit:cover}
.news-photos.one img{height:auto;max-height:520px;width:auto;max-width:100%}
.news-photos figcaption{font-size:12px;line-height:18px;margin-top:4px;text-align:center}
.news-files{list-style:none;margin:0 0 18px}
.news-files li{margin-bottom:8px}
.news-files a{display:inline-block;padding:6px 14px;border:solid 1px #ccc;background:#FBFAFA;text-decoration:none;line-height:20px}
.news-files a:hover{border-color:#CF6F6F}
.news-files .ext{display:inline-block;font-size:10px;line-height:14px;color:#fff;background:#CF6F6F;padding:0 5px;margin-left:8px;vertical-align:1px}
.news-back{margin-top:10px}
.postmeta span{margin:0 8px}
.news-error{padding:10px 0}
.wp-pagenavi{margin:20px 0 10px}
.wp-pagenavi span,.wp-pagenavi a{display:inline-block;border:solid 1px #BFBFBF;padding:0 6px;margin:0 4px 4px 0;line-height:20px;text-decoration:none}
.wp-pagenavi .pages{color:#333}
.wp-pagenavi .current{border-color:#000;font-weight:bold}
.wp-pagenavi a:hover{border-color:#CF6F6F}

/* アクセス：地図 */
#googleMapsArea iframe{display:block;width:100%;height:100%;border:0}
.map-link{text-align:right;font-size:12px;margin:-4px 0 14px}

/* お問い合わせ */
.contact-name{font-size:16px;font-weight:bold;margin-bottom:12px}
.contact-info{width:100%;margin-bottom:0}
.contact-info th{width:110px;text-align:left}
.contact-tel{font-size:22px;font-weight:bold;letter-spacing:.04em;text-decoration:none}

/* 拡大表示 */
#lightbox{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.85);z-index:1000;align-items:center;justify-content:center}
#lightbox.on{display:flex}
#lightbox figure{margin:0;text-align:center}
#lightbox img{display:block;margin:0 auto;max-width:92vw;max-height:82vh;background:#fff}
#lightbox figcaption{color:#fff;font-size:13px;margin-top:8px}
#lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:44px;line-height:1;cursor:pointer;padding:10px 14px;font-family:Arial,sans-serif}
#lightbox .lb-prev{left:6px;top:50%;margin-top:-32px}
#lightbox .lb-next{right:6px;top:50%;margin-top:-32px}
#lightbox .lb-close{right:6px;top:6px;font-size:36px}
#lightbox.single .lb-prev,#lightbox.single .lb-next{display:none}

.tbl-scroll{margin-bottom:18px}
.tbl-scroll table{margin-bottom:0}

/* ---------- スマホ（767px以下） ---------- */
@media screen and (max-width:767px){
  body,h1,h2,h3,h4,h5,h6,p,th,td,ol,ul,li,dl,dt,dd{font-size:14px}
  body{padding:56px 0 56px;line-height:1.75}
  img{max-width:100%;height:auto}

  /* ヘッダー・メニュー */
  #sp-header{display:flex;align-items:center;justify-content:space-between;position:fixed;top:0;left:0;right:0;height:56px;padding:0 4px 0 12px;background:#FBFAF7;border-bottom:solid 1px #E2DDD3;z-index:60;box-sizing:border-box}
  #sp-header .sp-logo{display:block;line-height:0}
  #sp-header .sp-logo img{height:36px;width:auto}
  #sp-menu-btn{width:52px;height:52px;border:0;background:none;padding:14px 13px;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between}
  #sp-menu-btn span{display:block;height:2px;background:#6B5A5E;transition:.25s}
  .menu-open #sp-menu-btn span:nth-child(1){transform:translateY(10px) rotate(45deg)}
  .menu-open #sp-menu-btn span:nth-child(2){opacity:0}
  .menu-open #sp-menu-btn span:nth-child(3){transform:translateY(-10px) rotate(-45deg)}
  #sp-nav{display:block;position:fixed;top:56px;left:0;right:0;bottom:0;background:rgba(251,250,247,.98);z-index:59;overflow-y:auto;visibility:hidden;opacity:0;transition:.25s}
  .menu-open #sp-nav{visibility:visible;opacity:1}
  .menu-open{overflow:hidden}
  #sp-nav ul{list-style:none;margin:0;padding:8px 20px 90px}
  #sp-nav li{border-bottom:dotted 1px #BBB}
  #sp-nav li a{display:block;padding:14px 4px;color:#333;text-decoration:none;font-size:16px;font-family:"游明朝",YuMincho,"Hiragino Mincho ProN","Noto Serif JP","Noto Serif CJK JP",serif}
  #sp-nav li.sub a{padding:10px 4px 10px 22px;font-size:14px}
  #sp-nav li a:after{content:"›";float:right;color:#CF6F6F}
  #sp-tel{display:flex;align-items:center;justify-content:center;gap:8px;position:fixed;left:0;right:0;bottom:0;height:56px;background:#6B5A5E;color:#fff !important;text-decoration:none;font-size:17px;font-weight:bold;letter-spacing:.05em;z-index:58}
  #sp-tel small{font-size:12px;font-weight:normal}

  /* 枠 */
  #main{width:auto;padding:16px 14px 24px;background:#fff}
  #contents{width:auto;float:none;margin:0}
  #side_right{width:auto;float:none;background:none;margin-top:30px}
  #side_right #logo,#globalNavi{display:none}
  #side-banner ul{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
  #side-banner ul li{margin:0}
  .access-link{text-align:center;margin-top:12px}
  #catchArea{width:auto;height:auto;margin-bottom:10px}
  #catchArea img{width:100%;height:auto}
  #breadNavi{font-size:11px;line-height:1.6}

  h3{width:auto;padding:0;margin-bottom:16px;background:none;display:flex;align-items:center;gap:12px;font-size:19px;text-align:left}
  h3:before,h3:after{content:"";height:15px;background:url(/assets/img/h3-bg.png) no-repeat}
  h3:before{flex:0 0 20px;background-position:left center}
  h3:after{flex:1;background-position:right center}
  h4{font-size:17px;line-height:1.5}

  .blog-title{width:auto;font-size:15px;padding:10px 0 10px 15px;line-height:1.6;background-position:left 1.05em}
  .blog-more{margin:-8px 0 16px;font-size:13px}

  /* TOP */
  #topflash{height:auto;margin-bottom:24px}
  #topslide{width:100%;height:auto;aspect-ratio:732/540}
  #news-title{width:auto;margin:0 0 10px;height:auto;background-size:auto 22px;background-position:left center;min-height:24px}
  #news-more{width:auto;padding-top:5px;margin:0}
  #news{width:auto;margin:0}
  #news li{padding:10px 0;line-height:1.6}
  #news li a{display:block;margin:2px 0 0}

  /* 曹洞宗とは */
  .soutousyu-box{padding:16px 14px 6px}

  /* 寺院の紹介 */
  .tbl-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .history-t th,.history-t td{padding:6px 8px}
  .history-t .gengou{white-space:nowrap}
  .jyusyoku-t{min-width:600px}
  .jyusyoku-t th,.jyusyoku-t td{padding:8px 6px;font-size:12px}

  /* 年間行事 */
  .event-box{width:auto;padding-left:58px;background-size:48px 48px !important;background-position:0 12px !important}
  .event-t,.event-t tbody{display:block;width:100%}
  .event-t tr{display:grid;grid-template-columns:8.5em 1fr;border-bottom:dotted 1px #999}
  .event-t tr:first-child,.event-t tr:has(th){border-bottom:0}
  .event-t th{grid-column:1/-1;display:block;font-size:18px;padding:14px 0 6px}
  .event-t td{display:block;width:auto !important;border:0;padding:10px 0 2px;line-height:1.6}
  .event-t td:nth-child(3){grid-column:1/-1;padding:0 0 10px;font-size:13px}
  .kyoka-t th,.kyoka-t td{padding:8px 6px;font-size:13px}
  .kyoka-t td:last-child{text-align:left}

  /* 境内のご案内 */
  #garden-area{width:auto;margin-right:0;display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
  .garden-box{width:auto;float:none;margin:0 0 12px}
  .garden-img{width:auto;height:auto}
  .garden-img img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
  .garden2-t,.garden2-t tbody,.garden2-t tr,.garden2-t td{display:block;width:auto !important}
  .garden2-t tr{margin-bottom:12px;border:solid 1px #CCC;background:#FBFAFA}
  .garden2-t td{border:0;padding:12px}
  .garden2-t td:first-child{padding-bottom:0;text-align:center}

  /* 霊園 */
  #cemetery-l,#cemetery-r{float:none;width:auto}
  #cemetery-r{text-align:center}
  #cemetery-main-text{text-align:center}
  #cemetery2-area{width:auto;margin-right:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .cemetery2-box{width:auto;float:none;margin:0}
  .cemetery2-img img{width:100%}

  /* アクセス */
  #googleMapsArea{height:300px}
  .hosoku-box{padding:16px 14px 6px}
  .access-howto-title{float:none;margin-bottom:6px}
  .access-howto-text{float:none;width:auto;padding-top:0}

  /* 阿賀野市の寺院 */
  .agano-t,.agano-t tbody,.agano-t tr,.agano-t td{display:block;width:auto !important}
  .agano-t tr{margin-bottom:12px}
  .agano-t td{padding:14px}
  .agano-t td:first-child{padding-bottom:0;text-align:center}

  /* 蒲原観音札所 */
  #kanbara-area{width:auto;margin-right:0;display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
  .kanbara-box{width:auto;float:none;margin:0 0 12px}
  .kanbara-img{width:auto;height:auto}
  .kanbara-img img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
  .kanbara-info{padding:8px 6px}
  .kanbara-name{font-size:13px}
  .kanbara-info-t th,.kanbara-info-t td{font-size:11px;line-height:1.5;vertical-align:top}
  .kanbara-info-t th{white-space:nowrap}

  /* リンク集 */
  .link-t,.link-t tbody,.link-t tr,.link-t th,.link-t td{display:block;width:auto !important}
  .link-t th{border-bottom:0;padding:12px 0 2px 16px;background-position:2px 19px}
  .link-t td{padding:2px 0 12px 16px;font-size:13px}

  /* お問い合わせ */
  #contact-area{padding:16px;border-width:5px}
  .contact-info th{width:5em}

  /* お知らせ */
  .news-photos{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .news-photos figure{width:auto}
  .news-photos img{height:auto;aspect-ratio:4/3}
  .news-photos.one{display:block}
  .news-photos.one img{aspect-ratio:auto}
  .news-files a{display:block}

  /* ページトップ・フッター */
  .pagetop-area{width:auto;padding:0 14px;margin:0 0 16px}
  #footer-area{height:auto;background-size:10px 100%;background-color:#F4F4F4}
  #footer{width:auto;height:auto;padding:24px 16px 16px}
  #footer #logo,#footer-info,#footer-r,address{position:static}
  #footer-l{width:auto;height:auto;background-size:80px 80px;background-position:right 4px top 0}
  #footer #logo{width:auto;height:auto;margin-bottom:12px}
  #footer #logo a{width:230px;height:38px;background-size:contain}
  #footer-info{font-size:13px;line-height:1.7}
  #footer-r{width:auto;margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}
  .footer-navi-box,.footer-navi-box2{width:auto;float:none}
  .footer-navi img{max-width:100%}
  #footer-r ul li{padding-left:24px;font-size:13px;line-height:24px}
  address{width:auto;margin-top:16px;font-size:10px;line-height:1.6}
}
