/*---------------------- 斎場ページ（試作デザイン） ----------------------*/
/* ヘッダー・フッター・アクセス欄は plan.css / style.css をそのまま使い、
   ここでは新しいセクションだけを指定する（html の font-size が 62.5% のため px で指定） */

.h_main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ---------- セクション見出し ---------- */
.h_sec {
    margin: 80px 0;
}
.h_sec_head {
    text-align: center;
    margin-bottom: 36px;
}
.h_sec_ttl {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.08em;
    color: #2b2b2b;
    text-align: center;
}
.h_sec_ttl::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent, #A40033);
    margin: 14px auto 0;
}
/* 複数行になる文章は、かたまりを中央に置き、行頭は左にそろえる */
.h_sec_lead {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto 0;
    text-align: left;
}

/* ---------- バナー ---------- */
.h_banners {
    display: grid;
    gap: 20px;
    max-width: 820px;
    margin: 60px auto 0;
}
.h_banners img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- コース ---------- */
.h_courses {
    display: grid;
    gap: 32px;
}
.h_course {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: start;
    background-color: #fff;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(var(--accent-rgb, 164, 0, 51), 0.10);
    scroll-margin-top: 70px;
}
.h_course_photo img {
    display: block;
    width: 100%;
    height: auto;
}
.h_course_body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.h_course_head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line, #f0dde2);
}
.h_tag {
    display: inline-block;
    padding: 3px 14px;
    border: 1px solid var(--accent, #A40033);
    border-radius: 40px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--accent, #A40033);
    white-space: nowrap;
}
.h_tag_family {
    background-color: var(--accent, #A40033);
    color: #fff;
}
.h_price {
    font-size: 16px;
    line-height: 1.2;
    color: #2b2b2b;
    white-space: nowrap;
}
.h_price b {
    font-size: 40px;
    font-weight: bold;
    color: var(--accent, #A40033);
    letter-spacing: 0.02em;
    margin-right: 2px;
}
.h_price small {
    font-size: 13px;
    color: #666;
    margin-left: 4px;
}
/* 棺の写真と内容リストをひとかたまりにして、中央に置く */
.h_course_detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.h_coffin {
    flex: none;
    width: 42%;
    height: auto;
}
.h_spec {
    flex: 0 1 auto;
    display: grid;
    gap: 8px;
    margin: 0;
}
.h_spec div {
    display: grid;
    grid-template-columns: 3.2em 1fr;
    gap: 8px;
    font-size: 15px;
    line-height: 1.6;
}
.h_spec dt {
    color: var(--accent, #A40033);
    font-weight: bold;
}
.h_spec dd {
    margin: 0;
    color: #333;
}
.h_course_note {
    font-size: 13px;
    color: #666;
}
.h_course_link {
    align-self: center;
    font-size: 14px;
    color: var(--accent, #A40033);
    text-decoration: none;
    border-bottom: 1px solid rgba(var(--accent-rgb, 164, 0, 51), 0.35);
    padding-bottom: 2px;
}
.h_course_link::after {
    content: " ›";
}
.h_course_link:hover {
    border-bottom-color: var(--accent, #A40033);
}

/* ---------- 全コース共通のサービス ---------- */
.h_service {
    background: linear-gradient(160deg, var(--tint-1, #f9e6ea) 0%, var(--tint-2, #FCF4F1) 50%, #ffffff 100%);
    padding: 56px 40px 44px;
    scroll-margin-top: 70px;
}
.h_service_list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
}
.h_service_list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 118px;
    padding: 14px 8px;
    background-color: #fff;
    text-align: center;
}
.h_service_list img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.h_service_list span {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    text-align: center;
}
.h_service_note {
    font-size: 13px;
    color: #666;
    width: fit-content;
    max-width: 100%;
    margin: 20px auto 0;
    text-align: left;
}

@media (max-width: 800px) {
    .h_main {
        padding: 0 16px;
    }
    .h_sec {
        margin: 56px 0;
    }
    .h_sec_head {
        margin-bottom: 24px;
    }
    .h_sec_ttl {
        font-size: 22px;
    }
    .h_sec_lead {
        font-size: 14px;
        text-align: left;
    }
    .h_banners {
        gap: 14px;
        margin-top: 40px;
    }
    .h_courses {
        gap: 24px;
    }
    /* スマホではコース1つが1画面に収まるように：見出し → 祭壇 → 棺＋内容 → リンク */
    .h_course {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .h_course_body {
        display: contents;
    }
    .h_course_head {
        order: -1;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    .h_price b {
        font-size: 30px;
    }
    .h_course_detail {
        gap: 12px;
    }
    .h_spec div {
        font-size: 14px;
        grid-template-columns: 2.8em 1fr;
        gap: 6px;
    }
    .h_service {
        padding: 36px 16px 28px;
    }
    .h_service_list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .h_service_list li {
        min-height: 96px;
        padding: 10px 4px;
    }
    .h_service_list img {
        width: 38px;
        height: 38px;
    }
    .h_service_list span {
        font-size: 12px;
    }
    .h_service_note {
        font-size: 12px;
        text-align: left;
    }
}
