/* --- Base Styles --- */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	list-style: none;
}

body {
    margin: 0;
    padding-top: 80px;
    font-family: "Noto Serif JP", serif;
    color: #333;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 30px 0;
}

.bg-light {
    background-color: #f9f7f2;
}

/* --- Header 固定設定 --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    height: 70px;
}

.logo img {
    height: 40px;
}

.nav-tel {
    font-weight: bold;
    color: #a48e4d; /* 落ち着いたゴールド系 */
    text-decoration: none;
    font-size: 1.2rem;
}

/* --- Main Visual --- */
.main-visual {
    position: relative;
    width: 100%;
    height: 70vh; /* 画面の高さの60%分を表示（お好みで調整可能） */
    min-height: 400px;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/toritsu_zoshigaya.JPG');
    background-size: cover; /* 画像を隙間なく広げる */
    background-position: center; /* 画像の中央を表示 */
    display: flex;
    align-items: center; /* 文字を上下中央に */
    justify-content: center; /* 文字を左右中央に */
    color: #fff;
    text-align: center;
}

.mv-sub {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.mv-copy {
    font-size: 2.5rem;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* 文字を読みやすくするための影 */
}

/* --- PC/SP 表示切り替え用クラス --- */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block !important;
    }

    /* ヘッダー内のロゴを中央に */
    .header-inner {
        justify-content: center;
    }

    /* 下部固定電話ボタンのスタイル */
    .sp-fixed-tel {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #a48e4d; /* サイトのアクセントカラー */
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }

    .sp-fixed-tel a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 0;
        color: #fff;
        text-decoration: none;
        font-family: sans-serif;
    }

    .sp-fixed-tel span {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }

    .sp-fixed-tel strong {
        font-size: 1.4rem;
        font-weight: bold;
    }

    /* フッターボタンとコンテンツが重ならないよう、最下部に余白を追加 */
    body {
        padding-bottom: 80px;
    }

    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 20px 5px;
    }
}

/* デスクトップ時のヘッダー内電話番号スタイル */
.nav-tel {
    font-size: 1.5rem;
    font-weight: bold;
    color: #a48e4d;
    text-decoration: none;
}

@media (max-width: 768px) {
    .main-visual {
        height: 50vh;
    }

    .mv-copy {
        font-size: 1.8rem;
    }

}

/* --- Page Title & Breadcrumb --- */
.page-header {
    background-color: #5d6255; /* 深みのあるグリーン */
    color: #fff;
    padding: 30px 0;
}

.breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.page-title {
    font-size: 2rem;
    margin: 0;
    letter-spacing: 0.05em;
}

/* --- Typography --- */
.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

/*
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #a48e4d;
}
*/

.lead-text {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1rem;
}

/* --- Merits & Demerits Cards --- */
.flex-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.card-label {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 4px 15px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
}

.card-merit .card-label {
    background-color: #8da082;
} /* 優位性のグリーン */

.card-demerit .card-label {
    background-color: #b58b8b;
} /* 注意のレッド系 */

/*
.card-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}
    */

.list-dot {
    font-size: 0.8rem;
    list-style: none;
    padding: 0;
    text-align: justify;
    text-justify: inter-character;
    line-height: 1.8;
}

.list-dot li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0; /* ここの数値を小さく（例: 10px → 5px）すると間隔が狭まります */
    padding-bottom: 0;
}

/* 最後の項目の下の余白は不要なことが多いので0にします */
.list-dot li:last-child {
    margin-bottom: 0;
}

.list-dot li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #a48e4d;
    font-weight: bold;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .page-header {
        background-color: #5d6255; /* 深みのあるグリーン */
        color: #fff;
        padding: 10px 0;
    }

    .page-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .flex-grid {
        flex-direction: column;
    }

    .section-padding {
        padding: 0;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .section-title h2 {
        padding-bottom: 0;
    }

    .lead-text {
        text-align: left;
        margin: 0 auto;
        font-size: 0.8rem;
    }

    .card {
        padding: 20px 10px;
    }
}

/* --- Cemetery Grid --- */
.cemetery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cemetery-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cemetery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.cemetery-img img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 画像の比率を保ったまま切り抜き */
}

.cemetery-info {
    padding: 0 10px 10px 10px;
}

.cemetery-head {
    display: flex;
    justify-content: space-between; /* これで両端に配置されます ↔️ */
    align-items: center; /* 文字の下端を揃える */
    margin-bottom: 10px;   /* 下（説明文）との余白 */
}

.cemetery-name {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0;
    color: #5d6255;
}

.cemetery-desc {
    font-size: 0.7rem;
    margin-bottom: 15px;
    height: 10rem; /* 高さを揃えてガタつきを防止 */
    overflow: hidden;
    text-align: justify;
    text-justify: inter-character;
    line-height: 1.8;
}

.cemetery-loc {
    font-size: 0.7rem;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 4px;
    white-space: nowrap;    /* 途中で改行されないようにする */
}

.cemetery-action {
    text-align: right; /* 右寄せに配置 ➡️ */
    margin-top: 15px;
}

.btn-detail {
    display: inline-block;
    padding: 8px 20px;
    background-color: #fff;
    color: #a48e4d;
    border: 1px solid #a48e4d;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* ホバー（マウスを乗せた時）の動き */
.btn-detail:hover {
    background-color: #a48e4d;
    color: #fff;
}

/* --- Facility Section --- */
.facility-list {
    display: flex;
    flex-direction: column;
    gap: 60px; /* アイテム同士の間隔 */
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 偶数番目（2番目、4番目...）のアイテムだけ左右反転させる */
.facility-item:nth-child(even) {
    flex-direction: row-reverse;
}

.facility-img {
    flex: 1;
}

.facility-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.facility-text {
    flex: 1;
}

.facility-name {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #5d6255;
    border-left: 5px solid #a48e4d;
    padding-left: 20px;
}

.facility-text p {
    font-size: 0.8rem;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-character;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .facility-item,
    .facility-item:nth-child(even) {
        display: flex;
        flex-direction: column-reverse; /* スマホでは縦並びに統一 */
        gap: 20px;
    }

    .facility-text p {
        text-align: justify;
        text-justify: inter-character;
    }

    .cemetery-desc {
        font-size: 0.8rem;
        text-align: justify; /* 先ほどのご要望に合わせてここも追加 */
        text-justify: inter-character;
    }
}

/* --- Fee Section Improvements --- */
.fee-group {
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.fee-group-header {
    background-color: #f4f1e9;
    padding: 20px;
    border-bottom: 2px solid #5d6255;
}

.fee-badge {
    display: inline-block;
    background: #5d6255;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.fee-group-title {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.fee-condition {
    font-size: 0.7rem;
    margin: 0;
    color: #666;
}

/* テーブルのレイアウトを固定し、幅を統一する */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed; /* 列幅を固定する設定 */
}

/* 各列の幅を指定（合計100%になるように調整） */
.fee-table th:nth-child(1),
.fee-table td:nth-child(1) {
    width: 15%;
    padding: 10px;
} /* 霊園名 */

.fee-table th:nth-child(2),
.fee-table td:nth-child(2) {
    width: 40%;
    padding: 10px;
} /* 施設名 */

.fee-table th:nth-child(3),
.fee-table td:nth-child(3) {
    width: 10%;
    padding: 10px;
} /* 募集数 */

.fee-table th:nth-child(4),
.fee-table td:nth-child(4) {
    width: 25%;
    padding: 10px;
} /* 使用料 */

.fee-table th:nth-child(5),
.fee-table td:nth-child(5) {
    width: 10%;
    padding: 10px;
} /* 管理料 */

.fee-table td:nth-child(3) {
    text-align: right;
}

.fee-table td:nth-child(4),
.fee-table td:nth-child(5) {
    text-align: center;
}

/* セル内のテキストが長すぎる場合の処理 */
.fee-table td {
    word-break: break-all; /* 必要に応じて改行させる */
    vertical-align: middle;
}

/* モバイル対応：画面が狭い場合は固定を解除して横スクロールさせる */
@media (max-width: 768px) {
    .fee-group-header {
        background-color: #f4f1e9;
        padding: 20px 10px;
        border-bottom: 2px solid #5d6255;
    }

    .fee-table {
        table-layout: auto; /* スマホではコンテンツに合わせて伸縮 */
        min-width: 600px;   /* 潰れすぎないように最低幅を確保 */
    }

    .fee-condition {
        margin: 0;
        color: #666;
    }
}

/* 既存の .fee-table を拡張・調整 */
.fee-table th {
    white-space: nowrap; /* ヘッダーの改行を防ぐ */
}

.fee-table td {
    font-size: 0.8rem;
}

/* レスポンス対応：表のコンテナ */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .fee-table td, .fee-table th {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* --- Timeline --- */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

/* 縦の線 */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #a48e4d;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* ステップの点 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #a48e4d;
    border-radius: 50%;
    border: 3px solid #f4f1e9;
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: bold;
    color: #a48e4d;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #5d6255;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.timeline-content p {
    font-size: 0.8rem;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-character;
}


@media (max-width: 768px) {
    .timeline {
        padding-left: 0;
    }

    /* 縦の線 */
    .timeline::before {
        display: none;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-content {
        padding: 10px;
    }
}

.bownow-container {
    max-width: 1000px; /* フォームが広がりすぎないよう調整 */
    margin: 60px auto;
    padding: 40px;
    background-color: #f9f9f9; /* ほんのり背景色をつけてエリアを分ける */
    /* border-top: 3px solid #a48e4d; */ /* 上部にアクセントカラーのライン */
    border-radius: 4px;
}

.form-title {
    text-align: center;
    font-size: 1.8rem;
    color: #5d6255;
    margin-bottom: 10px;
    font-family: "Noto Serif JP", serif;
}

.form-intro {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 30px;
}

.form-main {
    margin: 0 auto;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .bownow-container {
        margin: 30px auto;
        max-width: 100%;
        padding: 0 5px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .form-intro {
        text-align: justify;
        text-justify: inter-character;
        font-size: 0.8rem;
        color: #666;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .form-main {
        max-width: 95%;
        margin: 0 auto;
    }
}

/* --- Footer --- */
.site-footer {
    background-color: #333; /* 濃いグレー */
    color: #fff;
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.footer-upper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    flex: 1 1 100%;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 35px;
    filter: brightness(0) invert(1); /* ロゴを白抜きにする場合 */
}

.footer-nav-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.footer-nav-column {
    flex: 1;
    min-width: 160px;
}

.footer-nav-title {
    font-weight: bold;
    color: #a48e4d; /* アクセントのゴールド */
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 8px;
}

.footer-nav-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav-list a:hover {
    color: #fff;
}

.mt-20 { margin-top: 25px; }

/* フッター最下部 */
.footer-bottom {
    background-color: #222;
    padding: 20px 0;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-nav-column {
        flex: 1 1 45%; /* スマホでは2列にする */
    }

    .footer-logo {
        text-align: center;
    }
}