@charset "utf-8";

/* =================================================
   1. 全体共通・PC版設定 (1441px以上〜)
   ================================================= */
/* --- 共通部分 --- */
body {
    font-family: "Yu Mincho", "Noto serif";
    background-color: rgb(59,55,54);
    background-repeat: repeat;
    color: #fff;
}
.wrapper {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden; /* 横揺れ防止 */
}
a {
    text-decoration: none
}
a:hover {
    color: rgb(128, 151, 166);
    transition : all 0.5s ease 0s;
    letter-spacing: 0.1em;
}

/*  ヘッダー領域  */
header {
    width: 100%;
    max-width: 1440px;
    height: 180px;
    background-image: url(../img/hd.jpg);
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: fixed;
}
.pc-menu {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin: 120px;
}
.header-title {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
}
h1 {
    font-size: 2rem;
}

/* ヘッダーの中のナビ */
.bc-container {
    display: flex;
}
.top-nav {
    display: flex;
    padding: 0.1rem;
    margin: 0 auto;
}
.top-nav ul {
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 0 15px;
  padding: 0;
  justify-content: flex-end;
}
.top-nav ul li a {
    font-size: 14px;
    color: #fff;
    margin-left: 30px;
}
.top-nav ul li a:hover {
    color: rgb(128, 151, 166);
}
.menu-open {
    display: none;
}



/* メイン */
main {
    padding-top: 200px;
    background-repeat: repeat;
    background-size: cover;
}
main .main-h1, .main-h1-2 {
     margin: 38px 0 38px 120px;
     border-left: 10px solid sandybrown;
     padding-left: 24px;
}
.main-h1-2 {
    margin-top: 100px;
}
.main-text {
    padding-left: 182px;
    padding-right: 50px;
}

/* メインの表 */
.table-container {
    margin-bottom: 120px;
}
table {
    width: 900px;
    margin: auto;
    border-collapse: collapse;
    margin-bottom: 120px;
}
th {
    font-size: 1.5rem;
    border-bottom: 1px solid #fff;
    text-align: right;
     padding-right: 80px;
}
td {
    font-size: 1.5rem;
    width:calc(100%/3);
    border-bottom: 1px solid #fff;
    padding: 20px 0;
}
.td1 {
    text-align: right;
    padding-right: 80px;
    }
.td2 {
    text-align: left;
    padding-left: 0px;
}
.noborder {
    border-bottom: none;
}

/* フッター */
footer{
    background-color: #0f0b00;
    background-size: cover;
    text-align: center;
    padding-bottom: 30px;
}
.contact {
    background-image: url(../img/back_cta.jpg);
    background-size: cover;
    background-position: center;
    min-height: 519px;
    padding: 70px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    color: #fff;
}
.banner {
    display: flex;
    align-items: center;
    gap: 50px;
}
h3 {
    font-size: 20px;
    padding: 0 0 50px 0;
}
.telcontainer {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 50%;
}
.telnumber {
    font-size: 40px;
    color: #fff;
    text-decoration: none;
}
.form {
    padding-left: 100px;
    width: 50%;
}
.telephon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.chuui {
    font-size: 12px;
}
.form {
    margin: 0 auto;
}
.footer-all {
    background-color: #0f0b00;
    background-size: cover;
    text-align: center;
    padding-bottom: 100px;
}
.footer-bottom {
    display: flex;
    justify-content: center;
    padding: 0 40px;
    gap: 40px;
}
.footer-logo {
    padding-top: 95px;
}
.footer-navigation {
    display: flex;
    text-align: left;
    padding-top: 178px;
}
.img-x {
    padding-top: 30px;
}
.footer-nav ul {
    list-style: none;
    margin-left: 40px;
}
.footer-link ul {
    list-style: none;
    margin-left: 60px;
}
.footer-nav a, .footer-link a {
    text-decoration: none;
    color: #fff;
    line-height: 2rem;
}
footer ul li a:hover {
    color: rgb(128, 151, 166);
}
.link {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.link-text {
    padding-left: 15px;
    width: 70%;
}
.copyright {
    padding-top: 100px;
    text-align: center;
    margin-bottom: 170px;
}
.footer-logo:hover, .img-x:hover, .access-button:hover, .tugi-img:hover {
    transition : all 0.5s ease 0s;
    transform: scale(1.1);
}
.form input[type="image"]:hover, .form-button input[type="image"]:hover{
    transition : all 0.5s ease 0s;
    transform: scale(1.1);
}

/* ハンバーガーメニュー */
.overlay-nav ul li a {
    color: #fff;
    text-decoration: none;
}
.overlay-open {
    margin-left: auto;
}
.overlay-logo .overlay-img {
    width: 50%;
    margin-right: auto;
    flex-shrink: 0;
}
.overlay-open #open .hide {
    display: none;
    margin-left: auto;
}
.overlay {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #020201;
    text-align: center; 
    padding: 64px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s;
}
.overlay.show {
    opacity: 1;
    pointer-events: auto;
} 
.overlay #close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    cursor: pointer;
}
.overlay ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.sp-menu #open.hide {
    display: none;
}

/* ヘッダーハンバーガーの中のナビ */
.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.header-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}
.overlay ul li a:hover {
    color: rgb(128, 151, 166);
}




/* －－－各種ご費用－－－ */
    .title-container {
        display: flex;
        align-items: baseline;
        padding:50px 0 20px 250px;
    }
    .table-container {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .title-text {
        padding-left: 50px;
        padding-right: 20px;
    }
    .tight-table {
        margin-bottom: 15px; 
        text-align: center;
    }
    td {
        font-size: 20px;
    }
    .small {
        font-size: 10px;
        text-align: center;
    }
    .chuui-text {
        text-align: left;
        padding-left: 300px;
    }
    .chuuizikou {
        padding-bottom: 120px;
    }




/* －－－永代供養について－－－ */

    /* (sectionについては共通) */
.section-1, .section-2 {
    width: 1200px;
    max-width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 100px auto;
}
.section-1 {
    flex-direction: row-reverse;
}
.section-1-img {
    margin-left: 80px;
}
.section-2-text {
    margin-left: 100px;
}
.section-1-text, .section-2-text{
    display: inline-block; 
    text-align: left;      
    line-height: 2;       
    margin: 0 auto;        
}
.section-2-text {
    margin-left: 100px;
}
.h2-title {
    text-align: center;
    font-size: 32px;
    padding: 80px 0 30px 0;
    color: #fff;
}
.kankyou-img {
    margin: 50px 20px 0 20px;
    text-align: center;
}
.section-tokuchou {
    width: 900px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
}
.h3-tokuchou {
    padding-bottom: 10px;
    font-size: 20px;
}
.tokuchou-text {
    padding-left: 80px;
}
.eidai-shurui {
    width: 300px;
    gap: 150px;
}
.h3-eidai-shurui {
    padding-top: 15px;
    padding-bottom: 0;
    text-align: center;
}
.eidai-shurui-p {
    text-align: right;
    padding-bottom: 50px;
}
.ul-eidai {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;         
    gap: 40px;                
    padding: 0;
    list-style: none;
    margin: 10px auto;
    max-width: 1200px;       
}
.eidai-shurui{
    width: 300px;              
    margin-left: 0;
    margin-left: 0 !important;  /*前の設定を打ち消し*/
}
.eidai-shurui img {
    width: 100%;           
    height: auto;
    display: block;
    margin: 0 auto 15px;
}
.eidai-text {
    display: inline-block; 
    text-align: left;      
    max-width: 800px;      
    line-height: 1.8;      
}
a {
    color: #fff;
}
.kochira {
    text-decoration:underline;
}
.h2-titles {
    padding-bottom: 100px;
}
.p-eidai {
    text-align: right;
    padding-right: 200px;
}




/* －－－大切な方を送るために－－－ */
span {
    font-size: 18px;
}
.h2-condolencestitle {
    text-align: left;
}
.button1 {
    text-align: right;
    padding-top: 15px;
}
.houyou  th {
    border-bottom: none;
    text-align: left;
    font-size: 18px;
}
.table-houyou  td {
    border-bottom: none;
    text-align: left;
    font-size: 18px;
}
.nenkaihouyou {
    max-width: 1100px;
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 100px;               /* 表と画像の間の隙間 */
    width: 95%;              /* 画面端に余裕を持たせる */
    margin: 0 auto;
    padding-left: 50px;
}

/* ★表の設定：文字を折り返さず、中身に合わせる */
.nenkaihouyou .table-houyou {
    width: auto;             /* 幅を自動（中身に合わせる）にする */
    white-space: nowrap;     /* 【重要】文字を絶対に折り返さない */
    flex-shrink: 0;          /* 画像に押されて表が縮むのを防ぐ */
    margin: 0;
}

/* ★画像コンテナの設定：残りのスペースをすべて使う */
.houyou-img-container {
    flex-grow: 1;            /* 表が占有した残りの幅をすべて画像に割り当てる */
    min-width: 0;            /* これがないと画像が縮まずに突き抜ける */
    padding-top: 180px;
}

/* 画像自体の設定 */
.houyou-img-container img {
    width: 100%;             /* コンテナの幅いっぱいに広がる */
    max-width: 100%;
    height: auto;            /* 比率を維持 */
    margin: 10px;    display: block;
}
.h3-tugi {
    padding: 0;
}
.tugi-all {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 50px 0 100px 0;
}




/* －－－所在地－－－ */
.map-container {
    text-align: center;
    margin: 10px 0;
}
.address-text {
    font-size: 20px;
    text-align: center;
    padding: 0 30px;
}
.access-text {
    text-align: center;
}



/* ---寺院葬について-- */
.ui-ziinsou{
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;         /* 画面が狭くなったら折り返す */
    gap: 40px;               
    padding: 0;
    list-style: none;
    margin: 50px auto;
    max-width: 1200px;       
}
.ziinsou {
    width: 387px;
    height: 400px;
    border: 1px solid rgb(184, 162, 114);
    margin: 0 auto; /* ボックス自体を画面中央に */
    
    /* 中身を中央に寄せる設定 */
    display: flex;
    flex-direction: column;   /* 中身を縦に並べる */
    justify-content: center;  /* 【上下】の中央揃え */
    align-items: center;      /* 【左右】の中央揃え */
    text-align: center;       /* テキスト自体の行揃え */
}
/* 箇条書きの「点」や余計な空白を消す */
.ziinsou li {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%; /* 横幅いっぱいに広げて中身を安定させる */
}

/* 画像がボックスを突き抜けないようにする */
.ziinsou img {
    max-width: 90%; /* 少し余裕を持たせる */
    height: auto;
    margin: 10px 0;
}
.ziinsou-text {
    width: 305px;
}
.ziinsou-shurui {
    margin: -10px 60px;
}
.h2-okigaru {
    text-align: center;
    padding-bottom: 70px;
}




/* ---お問い合わせ-- */
.text1 {
    font-size: 28px;
    padding-left: 120px;
}
.text2 {
    font-size: 18px;
    text-align: center;
    padding: 40px 15px 20px 15px;
}
.text3 {
    font-size: 40px;
    margin: 0;
}
.text4 {
    font-size: 12px;
    padding-bottom: 10px;
}
.text5 {
    font-size: 24px;
    padding-left: 120px;
}
.text6 {
    font-size: 30px;
    margin-top: 30px;
    margin-bottom: -50px;
} 
.text7 {
    font-size: 12px;
    color: rgb(59, 55, 54);
    padding-top: 70px;
}
.text8 {
    font-size: 28px;
    text-align: center;
    padding: 40px 0;
}
.telcontact-container {
    text-align: center;
}
.contact-container {
    width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #fff;
}
.form-all {
    width: 95%;            /* 幅を固定(940px)ではなく、最大幅(max-width)で指定 */
    max-width: 940px;      /* PCでの最大幅 */
    border: 1px solid #9C8960;
    border-radius: 10px;
    margin: 0 auto 100px;  /* 左右中央寄せ */
    padding: 20px;         /* スマホで見た時の内側の余白 */
    box-sizing: border-box; /* パディングを含めた幅計算にする */
}
.form-action {
    max-width: 590px;      
    margin: 0 auto;
    align-items: center;
}
input, textarea, label {
  font-size: 16px;
  margin: 20px;
  padding: 20px;
}
.form p {
  margin: 0 0 30px 0;
  line-height: 1.9;
  text-align: left;
  padding-left: 50px;
}
.required {
  margin-left: 10px;
  font-size: 12px;
  color: #b44646;
}
input[type="text"],
input[type="tel"], 
textarea {
    width: 590px;
    padding: 10px;
    background-color: #2A2A2A;
    height: 80px;
    border: 1px solid #9C8960;
    border-radius: 10px;
    color: #fff;
    
}
textarea {
    height: 203px;
}
.form-button {
    text-align: center;
}




/* －－－大城寺について－－－ */
.history-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.history-texts {
    max-width: 940px;
    margin-bottom: 20px;
    padding: 0 40px;
}
.history-text {
    margin: 30px 0 15px 0;
    font-size: 20px;
}
.th-overview {
    padding-left: 30px;
    text-align: left;
    font-size: 16px;
} 
.td-overview {
    width: calc(70%);
    text-align: left;
    font-size: 16px;
    justify-content: center;  
}
.td-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.th-priest {
    width: calc(25%);
    padding-right: 10px;
    text-align: right;
    font-size: 16px;
} 
.td-priest {
    width: calc(25%);
    text-align: left;
    font-size: 16px;
    padding-left: 100px;
}
.td-priestname {
    width: calc(50%);
    text-align: left;
    font-size: 16px;
    padding-left: 100px;
}  
.access-button {
    text-align: right;
}
.td-overview-tel {
    border-top: 1px solid #fff;
}
.td-address {
    border-bottom: none;
}
 .table-zyuushoku {
    margin-bottom: 50px;
 }




.img-zyuushoku {
  width: 260px;         /* 画像の幅は固定 */
    height: 550px;
    flex-shrink: 0;       /* 画面が狭くなっても画像は縮ませない */
    object-fit: cover;
    /* padding-top: -20px; */
    padding-bottom: 80px;
}



/* －－－個人情報保護－－－ */
.privacy-all {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 40px 100px 40px;
    flex-wrap: wrap;
}
.h2-privacy {
    text-align: left;
}
.privacy-text {
    margin-left: 100px;
}
.privacy-all {
    padding-bottom: 100px;
}





/* =================================================
   2. pc専用設定 (1200px以下)
================================================= */

/* －－－各種ご費用－－－ */
@media (max-width: 1200px) {
    .title-container, .chuui-text {
        display: flex;
        padding:20px 80px;
    }
    .title-container {
        display: block;
    }
    main .main-h1-2 {
     margin:  150px 0 38px 120px;
     border-left: 10px solid sandybrown;
     padding-left: 24px;
    }



/* －－－永代供養－－－ */
 img {
    max-width: 100%;
    height: auto;
    }
    .section-1, .section-2,.ul-eidai, .section-tokuchou {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    .section-1-text {
    margin-left: 100px;
    }

    /* 当山の永代供養の特徴を縦並び */
    .section-tokuchou {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 40px 20px; 
    }
    /* 画像コンテナの余白をリセットして中央寄せ */
    .tokuchou-img {
        margin: 0 auto 20px auto;
        width: fit-content;
    }
    .tokuchou-text {
        padding-left: 0; 
        margin: 0 auto;
        max-width: 80%; 
    }
    .h3-tokuchou {
        text-align: center;
        padding-bottom: 15px;
    }
    .tokuchou-p {
        text-align: left; 
    }
    .ul-eidai {
        display: flex;
        flex-direction: row;     /* 横並び */
        flex-wrap: wrap;         /* 入りきらなくなったら折り返す */
        justify-content: center; /* 横方向の中央寄せ */
        align-items: flex-start; /* 縦方向は上揃え */
        gap: 20px;              
        width: 100% ;
        max-width: 100% ;
        margin: 40px 0 ;
        padding: 0 ;
        list-style: none;
    }
    .eidai-shurui, .ziinsou-shurui {
        width: 300px;    /* 幅を固定（または30%など） */
        margin-left: 0;  /* ★PC版の150pxをここで完全に殺す */
        margin-right: 0; 
        margin-top: 0;
        margin-bottom: 30px;        /* 折り返した時の上下の間隔 */
        text-align: center;
       /* float: none ;      万が一 float が使われていたら解除 */
    }
    .eidai-shurui img .ziinsou-shurui img {
        width: 100%;
        max-width: 280px;
        height: auto;
        margin: 0 auto;
        display: block;
    }



/* ---所在地-- */
    .map-container {
        position: relative;
        width: 100%; /* 親要素の横幅いっぱいに広げる */
        padding-top: 56.25%; /* 16:9 の比率に固定する (9 ÷ 16 = 0.5625) */
        overflow: hidden;
    }
    .map-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; 
        height: 100%; 
        padding: 30px;
    }
    .parling-text {
        margin-left: -80px;
    }
    .parking-section {
        display: block;
        text-align: center;
        padding: 30px;
    }



    /* ---寺院葬について-- */
    .ziinsou {
        width: 90%;
        height: 90%;
    }
    .ul-ziinsou {
        margin-bottom: 0;
    }
    .h3-eidai-shurui {
        padding-top: 30px;
    }
    .eidai-text {
        width: 90%;
        padding-bottom: 30px;
    }
    .h2-okigaru {
       text-align: center;
    }




/* ---お問い合わせ-- */
    .contact-container {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        border-bottom: none;
    }
    .line {
        display: none;
    }
    .text1 {
        padding-left: 0;
    }
    .text5 {
        margin-top: 80px;
        padding-left: 0;
    }



    /* ---個人情報保護-- */
    .privacy-all, .privacy-text {
        margin: 0 15px;
    }
}




/* =================================================
   3.pc専用設定 (1000px以下)
================================================= */
@media (max-width: 1000px) {
    header {
        height: 120px;
    }
    main {
        padding-top: 130px;
    }
    .banner {
        flex-direction: column;
        gap: 20px;
    }
    .telcontainer {
        width: 100%;
    }
    .form {
        width: 100%;
        padding-left: 0;
        flex-shrink: 0;
    }
    .form input[type="image"] {
        width: 100%;
        width: 250px;
        padding: 0;
        height: auto;
        display: block;
        margin: auto;
    }
    .line {
        display: none;
    }




} 








/* =================================================
   4. スマホ専用設定 (960px以下)
================================================= */
@media (max-width: 960px) {
/* --共通-- */
    .bc-container {
        display: none
    }
    .menu-open {
        display: block;
        padding-right: 30px;
    }
}





 /* =================================================
   4. スマホ専用設定 (850px以下)
================================================= */
@media (max-width: 850px) {
/* --共通-- */
    /* 表 */
    table {
        width: 80%;
        border: 2px solid #fff;
    }
    .last td:last-child {
        border-bottom: solid 1px #fff;
        width: 100%;
    }
    table th, .td1 ,.td2 {
        display: block;
        text-align: center;
    }
    .td1 {
        width: 100%;
        padding-bottom: 0;
    }
     .td2 {
        width: 100%;
        padding-top: 0;
    }
    table th {
        background-color: #d5b04c;
        border: 1px solid #fff;
        color: #000;
        padding-right: 0;
        height: auto;
    }
    table td {
        border-bottom: none;
    }
    table .td1 {
        text-align: left;
        padding-left: 30px;
        padding-top: 20px;
        padding-right: 0;
    }
    table .td2 {
        border-bottom:.2px solid #fff;
    }
    .noborder {
        border-bottom: none;
    }
      /*  フッター */
   .footer-bottom {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    .footer-navigation {
        flex-direction: column;
        padding-top: 40px;
        gap: 30px;
    }
    .footer-nav ul {
        margin-left: 0;
        padding-left: 0;
        text-align: center;
    }
    .footer-link ul {
        margin: 0 15px;
        padding-left: 0;

        text-align: left;
    }






/* ---大城寺について-- */
    table  tr .th-overview, .td-overview {
        display: block;
        text-align: center;
        align-items: center;
        width: 100%;
        padding-left: 0;
    }
    table  tr .th-priest, .td-priest, .td-priestname {
        display: block;
        text-align: center;
        align-items: center;
    }
    .th-priest {
        width: 100%;
        padding: 0px;
    }
    .td-priestname {
        width: 100%;
        padding: 10px;
    }
    .td-priest {
        width: 100%;
        padding: 15px 15px 0 15px;
    }
    .container-zyuushoku {
        flex-direction: column;
        align-items: center;
    }

    .img-zyuushoku {
        order: -1;
        width: 100%;       /* スマホでは画像も横幅いっぱいに */
        max-width: 260px;  /* でも元のサイズよりは大きくしない */
        height: auto;
        margin-bottom: 20px;
    }



/* ---大切な方を送るために-- */
    .nenkaihouyou {
        flex-direction: column-reverse; /* 画像が上、表が下 */
        display: flex;
        align-items: center;    /* 画像と表を水平中央に */
        justify-content: center;
        width: 100%;
        margin: 0 auto;
        padding: 40px 0;        /* 上下にゆとりを持たせる */
    }

    /*  画像のサイズと中央寄せ */
    .houyou-img-container {
        width: 90%;             /* 画面端に少し余白を作る */
        max-width: 400px;      
        margin: 0 auto 30px;    /* 下の表との間隔をあける */
        padding-top: 50px;
    }

    /* 表を中央に配置し、線を消す */
    .table-houyou {
        display: table;
        width: 85% ;  /* 画面幅の85%にして中央に寄せる */
        margin: 0 auto ; /* 表自体を中央寄せ */
        border: none ;
        background: none ;
        border-collapse: separate; /* 間隔をあけるために必要 */
        border-spacing: 0 15px;    /* 【重要】上下の行(tr)の間の隙間をあける */
    }
    .table-houyou th, .table-houyou td {
        display: table-cell;
        border: none ;
        background: none ;
        padding: 10px 15px;      
        font-size: 1.1rem;
        color: #fff;
        vertical-align: middle;
    }
    .table-houyou th {
        width: 40%;
        text-align: center;       
        font-weight: bold;
        padding-right: 20px;    
    }
    .table-houyou td {
        width: 60%;
        text-align: left;      
    }
    .tugi-all {
        flex-direction: column; 
        gap: 30px;             
        align-items: center;    
        text-align: center;    
        width: 90%;
        margin: 50px auto;     
    }
    .tugi-img {
        width: 250px;          
        flex-shrink: 0;
    }
    .tugi-img img {
        width: 100%;
        height: auto;
        display: block;
    }
    .calender-img {
        width: 100px;
    }
    .tugi-text {
        width: 100%;
    }
    .h3-tugi {
        font-size: 1.3rem;    
        margin-bottom: 15px;
        padding: 0;            
    }
    .tugi-text p {
        font-size: 15px;
        line-height: 1.8;       /* 行間を広げる */
        text-align: left;       
        display: inline-block;  /* 中央揃えの中で左寄せを維持 */
        max-width: 100%;
    }
}





/* =================================================
   5. スマホ専用設定 (700px以下)
================================================= */
@media (max-width: 700px) {
/* --共通-- */
    header {
        display: flex;
   }
   .pc-menu {
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin: 30px 30px;
    }
    ul li a:hover {
        color: rgb(128, 151, 166);
    }
      /*  パンくず */
    .breadcrumb ul li {
        display: flex;
        align-items: center;
    }
      /*  メイン */
    main .bc-container {
        display: flex;
        margin: 10px 60px;
    }
    main .main-h1 {
        margin-left: 30px;
        padding-left: 10px;
    }
    main .main-h1-2{
        margin-left: 30px;
        padding-left: 10px;
    }
    .main-text {
        margin-left: 60px;
        padding: 0 50px 10px 0;
    }


    
/* －－－各種ご費用－－－ */
    .title-container {
        display: block;
    }
    .title-text {
        padding-left: 10px;
    }



  /* －－－永代供養－－－ */
    img {
        max-width: 100%;
        height: auto;
    }
    .ul-eidai {
        display: flex;
        flex-direction: column; /* 縦に並べる */
        align-items: center;    /* 子要素を水平方向の中央に寄せる */
        justify-content: center;
        gap: 40px;             
        padding: 0;            
        margin: 0 auto;         /* 親自体も中央に */
        list-style: none;
    }
    .eidai-shurui {
       width: 90%;            
        max-width: 350px;      
        margin-left: 0; 
    }
    .eidai-shurui img {
        width: 100%;           
        height: auto;
        margin: 0 auto 10px;    /* 画像を中央に配置 */
    }
    .section-1, .section-2,.ul-eidai, .section-tokuchou {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    .section-1-img, .section-2-img {
        width: 100%;   
        margin: 0 auto 20px;
    }
    .section-1-text, .section-2-text {
        display: block;    /* 幅いっぱいに広げる */
        width: 90%;        
        margin: 0 auto;    
        text-align: left;  
        font-size: 15px;   
    }
    .ul-eidai {
        flex-direction: column;  
        align-items: center;     
    }
    .eidai-shurui {
        width: 85%;             
        max-width: 350px;       
    }
    .p-eidai {
        text-align: center;
        padding-right: 0px;
    }
    .h2-titles {
        font-size: 1.5rem;
    }



/* ---寺院葬について-- */
    .ul-ziinsou {
        display: flex;
        flex-direction: column; 
        align-items: center;   
        justify-content: center; 
        width: 100%; 
        margin: 40px auto; /* 左右をautoにして中央配置 */
        padding: 0;            
        list-style: none;
    }
    .ziinsou-shurui {
        width: 100%;            /* liをulの幅に合わせる */
        display: flex;
        justify-content: center; /* 中の .ziinsou を中央に置く */
        margin-bottom: 30px;    
    }
    .ziinsou {
        margin: 0 auto;        /* 念のための左右中央 */
    }



/* ---お問い合わせ-- */
     .text1, .text5 {
        padding-left: 0;
    }
    .text8 {
        font-size: 23px;
    }
    input[type="text"],
    input[type="tel"], 
    textarea {
        width: 400px;
    }


    
/* ---所在地--- */
    .parling-text {
        margin-left: 0px;
        text-align: left;
    }
}




/* =================================================
   6. スマホ専用設定 (480px以下)
================================================= */
@media (max-width: 480px) {
    header {
        display: flex;
        background-image: url(../img/hd_sp.jpg);
        height: 60px;
    }
    .pc-menu {
        margin: 30px 20px;
    }
  h1 {
    font-size: 24px;
    }
   main {
    font-size: 80%;
    padding-top: 80px;
    }

/* ---お問い合わせ-- */
    input[type="text"],
    input[type="tel"] {
        width: 300px;
        background-color: #2A2A2A;
        height: 50px;
        border: 1px solid #9C8960;
        border-radius: 10px; 
        }
    textarea {
        width: 300px;
        background-color: #2A2A2A;
        height: 100px;
        border: 1px solid #9C8960;
        border-radius: 10px; 
        }
    .form p {
    margin: 0 0 30px 0;
    line-height: 1.9;
    text-align: center;
    padding-left: 0px;
    }
    .form-button input[type="image"] {
        width: 250px;
        padding: 0;
        height: auto;
        display: block;
        margin: auto;
    }

/* ---個人情報--- */
    .h2-privacy, .h2-title {
        font-size: 24px;
    }
}