@charset "utf-8";
/*■■■■■■■■■■■■■■■■■■■■■■
　　共通設定
■■■■■■■■■■■■■■■■■■■■■■*/

/*------------------------------------------
■ CSS初期設定
------------------------------------------*/
html {
    text-align: justify;
}

html.pp {
    color: #000;
    background: #fff;
}

/* 基本リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

caption, th {
    text-align: left;
}

th, td {
    padding: 5px;
}

ol, ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}

address, caption, cite, code, dfn, em, strong, th, var {
    font-style: normal;
    font-weight: normal;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    max-width: 100%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/* 共通ユーティリティクラス */
.txt_pad_t_10{padding-top:10px;}
.txt_pad_t_20{padding-top:20px;}
.txt_pad_t_30{padding-top:30px;}
.txt_pad_b_10{padding-bottom:10px;}
.txt_pad_b_20{padding-bottom:20px;}
.txt_pad_b_30{padding-bottom:30px;}

.txt_bold{font-weight:bold;}
.txt_small{font-size:80%; line-height: 180%;}
.txt_big{font-size:120%;}
.txt_big2{font-size:140%;}
.txt_right{text-align:right;}
.txt_red{color:#ff0000;}
.txt_blue{color:#0066cc;}
.txt_keycolor{color:#ba2636;}
.txt_marker{background-color:#FFFF00;}
.txt_underline{border-bottom:#cccccc 1px dotted;margin-bottom:2px;}
.txt_center{text-align:center; margin-top:-2%; margin-bottom:5%;}
.txt_serif{font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN",HGS明朝E,メイリオ,Meiryo,serif;}

/* 共通レイアウト */
body, #wrap, #frame {
    width: 100%;
    margin: 0;
    padding: 0;
}

#wrap {
    position: relative;
    overflow: hidden;
    margin-top: 30px !important; /* ヘッダーの高さに応じて調整 */
}

#wrap2 {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.wrap {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.top_bg{
    margin-top: 100px !important;
}
#q_a01,#memorial{
    margin-top: 70px !important;
}
#q_a02{
    margin-top: 90px !important;
}
#frame {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.main {
    width: 90%;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.main02 {
    width: 90%;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main_w {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* 共通コンポーネント */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ba2636;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #8a1c28;
}

.btn a {
    color: #fff;
    text-decoration: none;
}

.btn a:hover {
    color: #A79414;
}

/* 共通テーブルスタイル */
.table01 {
    width: 100%;
    border-collapse: collapse;
}

.table01 th {
    background: #f5f5f5;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.table01 td {
    padding: 10px;
    border: 1px solid #ddd;
}

/* 共通フォームスタイル */
input, textarea, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type=text]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ba2636;
}

/* 共通フッター */
#footer {
    background-color: #fff;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.footer-tel {
    color: #ba2636;
    text-decoration: none;
    font-weight: 700;
}

.footer-tel:hover {
    color: #8a1c28;
    text-decoration: underline;
}

/* 共通ナビゲーション */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --bs-navbar-padding-y: 0 !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ba2636;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ba2636;
}

/* 共通モーダル */
.cp_modal02 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.cp_modal02:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.cp_modal02 .cp_modal_cont {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
}

/* 共通タブ */
.resp-tabs-list li {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 5px;
}

.resp-tab-active {
    background: #fff;
    border-bottom: 2px solid #ba2636;
}

.resp-tab-content {
    padding: 20px;
    border: 1px solid #ddd;
    display: none;
}

.resp-content-active {
    display: block;
}

@media screen and (max-width: 600px) {
  .sp_none { display: none !important; }
  .pad_none { display: none !important; }
  .pc_none { display: block !important; }
}

@media screen and (min-width: 1025px) {
  .sp_none { display: block !important; }
  .pad_none { display: none !important; }
  .pc_none { display: none !important; }
}

.logo-mini{
    height: 40px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: .1em;
    background: url("../img/bg02.jpg") repeat scroll center 0 transparent;
    padding-top: 0 !important;
}

.header-top {
    background-color: rgba(248, 249, 250, 0.5);
    padding: 0.15rem 0;  /* さらに小さく調整 */
    line-height: 1.2;    /* 行の高さを調整 */
}

.header-tel {
    display: flex;
    align-items: center;
}

.header-tel-number {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ba2636;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0.1rem 0;    /* 上下のパディングを最小限に */
}

.header-tel-number i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-btn .btn {
    padding: 0.15rem 1rem;  /* ボタンのパディングをさらに小さく */
    font-size: 1rem;
    line-height: 1.2;       /* ボタンの行の高さも調整 */
}

.title-container {
    position: relative;
    margin-bottom: 2rem;
    padding: 0  ;
    overflow: hidden;
    
}

.title_l {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS P明朝', serif;
    text-align: center;
    margin: 0;
    padding: 0 0 10px 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100;
    letter-spacing: 0.15em;
}

.box {
    margin: 0;
    padding: 0 0 30px 0 !important;
}

/* 画像アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.img_center {
    display: block;
    margin: 0 auto;
    clear: both;
    width: 100%;
    animation: fadeIn 1s ease-in;
}

.max_w {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    animation: fadeIn 1s ease-in;
}

/* 既存のh1の非表示設定を維持 */
h1 {
    clip: rect(1px,1px,1px,1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

/* title_lクラスを持つh1は表示する */
h1.title_l {
    clip: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    width: auto !important;
}

@media (max-width: 768px) {
  .header-btn .btn {
    width: auto;
    min-width: 160px;
    max-width: 90%;
    display: inline-block;
    /* margin: 0 auto; */
    box-sizing: border-box;
  }
  .header-btn {
    text-align: right;
  }
}

/* サービス案内アイテム */
.service_item {
    padding: 0;
    margin: 0;
    width: 100%;
}

.service_item a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.service_item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.service_item h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    text-align: center;
}

.service_item p {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 90%;
}

/* Bootstrapのグリッドシステム対応 */
.row-cols-1 .service_item,
.row-cols-sm-2 .service_item,
.row-cols-md-3 .service_item {
    width: 100%;
}

.temple-table th, .temple-table td {
  font-size: 1.0rem;
  padding-left: 12px !important;
  padding-right: 12px !important;
  vertical-align: middle;
}
.temple-table th {
  width: 120px;
  background: rgba(255,255,255,0.5) !important;
  color: #ba2636;
  font-weight: bold;
  text-align: left;
}
.temple-table td {
  background: rgba(255,255,255,0.3) !important;
}
@media (max-width: 600px) {
  .temple-table th, .temple-table td {
    font-size: 0.75rem;
    padding: 0.7rem 0.5rem;
  }
}

.temple-table-wrap {
  background-color: rgba(248,247,243,0.7);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 18px 10px;
}

#contact-btn {
    margin: 0 !important;
}

#header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    height: 80px !important;
}

/* 共通ボタンスタイル */
.btn-custom {
    border-radius: 20px !important;
    padding: 0.3em 1.2em !important;
    font-weight: bold !important;
    background: #fff !important;
    color: inherit !important;
    width: 80% !important;
}

.btn-custom i {
    margin-right: 0.5em;
}

.btn-custom:hover,
.btn-custom:focus {
    background: #6c757d !important; /* Bootstrapのbtn-outline-secondaryの枠線色 */
    color: #fff !important;
    border-color: #6c757d !important;
    transition: background 0.2s, color 0.2s;
}

.about_btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullwidth-fadein-img {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: auto;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50vw);
    animation: fadeIn 3s ease-in;
    object-fit: cover;
    z-index: 1;
}

.menu-img {
    width: 320px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.top-menu {
    padding: 0 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.8;
    display: flex;
    align-items: center;
}
.top-menu .nav-link {
    color: #333;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    padding: 0.3rem 0.8rem;
}
.top-menu .nav-link:hover, .top-menu .nav-link:focus {
    background: #f0f0f0;
    color: #007bff;
    text-decoration: underline;
}
.h100{
    height: 100px;
}

.postal_code_wrapper {
  display: inline-block;
  white-space: nowrap;
  margin-bottom: 10px;
}

.postal_code_wrapper input {
  display: inline-block;
  vertical-align: middle;
}

/* 404ページ用スタイル */
.display-1 {
  color: #ba2636;
  font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN",HGS明朝E,メイリオ,Meiryo,serif;
  font-size: 8rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .display-1 {
    font-size: 6rem;
  }
}