/* Scoped to the second-level pages; styles.css remains the shared top design. */

.subpage {
    line-height: 1.95;
    font-weight: 700
}

.subpage .header,
.subpage .footer,
.subpage .floating-phone {
    font-weight: 700
}

.subpage .header {
    background: #fff
}

.subpage #navigation a[aria-current=page] {
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 8px
}

.sub-main {
    padding-top: max(110px, calc(145 * var(--u)))
}

.sub-main .breadcrumbs {
    display: block;
    position: static;
    box-shadow: none;
    background: none;
    width: min(1200px, 88%);
    margin: 0 auto;
    padding: 0px 0 10px;
    font-size: 12px;
    color: #75657d;
    letter-spacing: .06em
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    list-style: none;
    padding: 0;
    margin: 0
}

.breadcrumbs li+li::before {
    content: '›';
    margin-right: 14px;
    color: #ad94b6
}

/* パンくずを右寄せ */
.sub-main .breadcrumbs ol {
    display: flex;
    /*justify-content: flex-end;*/
    flex-wrap: wrap;
}

.breadcrumbs a {
    padding: 0;
    border: 0;
    text-decoration: none
}

.breadcrumbs [aria-current=page] {
    color: var(--purple)
}

.page-masthead {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background: var(--pale);
    padding: 68px max(6%, 24px);
    isolation: isolate;
    overflow: hidden
}

.page-masthead h1 {
    font-family: var(--serif);
    font-weight: 600;
    color: #292929;
    font-size: clamp(27px, 2.3vw, 42px);
    line-height: 1.8;
    letter-spacing: .12em;
    text-align: center;
    max-width: 1000px;
    position: relative;
    z-index: 1;
    text-wrap: balance
}

.page-flowers {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    opacity: .8;
    z-index: -1
}

.sub-content {
    width: min(1200px, 88%);
    margin: 0 auto;
    padding: 20px 0 100px !important;
    font-size: 16px;
    letter-spacing: .04em;
    overflow-wrap: break-word
}

.sub-content .sub-lead {
    max-width: 700px;
    margin: 50px auto 26px;
    font-size: 18px;
    line-height: 2.2;
    letter-spacing: .08em;
	text-align: justify;
}

.sub-content>.sub-lead+p {
    text-align: center;
    margin-bottom: 65px
}

.sub-content p {
    margin: 0 0 24px
}

.sub-content a:not(.phone) {
    color: var(--purple);
    text-decoration: underline;
    text-decoration-color: #bfa8ca;
    text-underline-offset: .35em;
    transition: color .25s, text-decoration-color .25s
}

.sub-content a:hover {
    color: var(--accent);
    text-decoration-color: var(--purple)
}

.sub-content>section {
    margin: 25px 0;
    padding: 40px 45px;
    background: #fff;
    /*border-top: 1px solid #d8c8df;*/
    position: relative
}

.sub-content>section:nth-of-type(even) {
    background: var(--pale);
    border: 0;
    border-radius: 12px
}

.sub-content h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 27px;
    line-height: 1.8;
    letter-spacing: .08em;
    color: #292929;
    margin: 0 0 30px;
    position: relative;
    z-index: 0
}

.sub-content h2::before {
    content: '';
    position: absolute;
    left: -17px;
    top: -5px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f1e5f4;
    z-index: -1
}

#urgent h2::before {
    content: '';
    position: absolute;
    left: 275px;
    top: -10px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f1e5f4;
    z-index: -1;
}

.sub-content h3 {
    color: var(--purple);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .05em;
    margin: 32px 0 14px
}
/* 事前相談：小見出し */
.subpage-contact #advance h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.8;
  letter-spacing: .08em;
  color: #292929;
  margin: 0;
  position: relative;
  z-index: 0;
}

/* マーカー風アンダーライン */
.subpage-contact #advance h3 span {
  background: linear-gradient(
    transparent 50%,
    #dac5e8 50%,
    #dac5e8 85%,
    transparent 85%
  );
  padding: 0 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sub-content strong {
    font-weight: 700;
    color: var(--deep)
}

.sub-content ul,
.sub-content ol {
    padding-left: 1.5em;
    margin: 20px 0 28px
}

.sub-content li {
    margin-bottom: 12px;
    padding-left: 6px
}

.sub-content li::marker {
    color: var(--accent)
}

.sub-photo {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden
}

.sub-photo img {
    width: 100%;
    max-height: 510px;
    object-fit: cover
}

.subpage-family #hall .sub-photo:first-of-type img {
    aspect-ratio: 16/9;
    object-position: center 57%
}

.subpage-general .sub-photo img {
    aspect-ratio: 16/8;
    object-position: center 50%
}

.sub-content>section#faq {
    background: #e7dce9;
    border: 0;
    border-radius: 12px;
    margin: 50px 0 0;
}

.service-page-contant>section#faq {
    margin: 0 0 0;
}

.sub-content .faq-item {
    background: white;
    padding: 26px 30px;
    margin: 18px 0;
    border-radius: 5px
}

.sub-content .faq-item h3 {
    margin: 0 0 12px;
    font-size: 17px;
    padding-left: 30px;
    position: relative
}

.sub-content .faq-item h3::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 19px
}

.sub-content .faq-item p {
    margin: 0;
    font-size: 15px;
    line-height: 2
}

.sub-content .cta {
    background: var(--pale)!important;
    border: 0;
    border-radius: 12px;
    text-align: center;
    padding: 50px 45px
}

.sub-content .cta h2::before {
    left: calc(50% - 210px)
}

.sub-content .phone {
    font-size: 34px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: .08em;
    display: inline-block;
    text-decoration: none
}

.sub-content .phone:hover {
    color: var(--accent)
}

.sub-content .cta p:last-child {
    margin-bottom: 0
}

.sub-content .related {
    display: block;
    position: static;
    padding: 40px 0 0 !important;
    background: none;
    box-shadow: none;
    font-size: 15px;
    margin-top: 65px
}

.sub-content .related h2 {
    font-size: 23px
}

.sub-content .related ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0
}

.sub-content .related li {
    margin: 0;
    padding: 0
}

.sub-content .related a {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: var(--pale);
    border: 1px solid #e1d3e7;
    border-radius: 6px;
    text-decoration: none
}

.sub-content .related a::after {
    content: '→';
    transition: transform .25s
}

.sub-content .related a:hover {
    background: #ece4f0
}

.sub-content .related a:hover::after {
    transform: translateX(4px)
}

.sub-content section nav {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    font-size: 15px;
    padding: 0;
    margin: 28px 0 0
}

.sub-content section nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0
}

.sub-content section nav li {
    padding: 0;
    margin: 0
}

.sub-content section nav a {
    display: block;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #d8c8df;
    border-radius: 5px;
    text-decoration: none!important
}

.sub-content .plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 32px
}

.sub-content .plan {
    border: 1px solid #d8c8df;
    border-radius: 12px;
    background: #fff;
    padding: 30px;
    min-width: 0;
    position: relative
}

.sub-content .plan h3 {
    margin: 0 0 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ded0e4;
    font-size: 23px;
    font-family: var(--serif);
    font-weight: 600
}

.sub-content .price-label,
.sub-content .tax {
    font-size: 13px;
    margin-bottom: 4px
}

.sub-content .amount {
    color: var(--purple);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
    margin-bottom: 3px;
    white-space: nowrap
}

.sub-content .amount span {
    font-size: 14px;
    letter-spacing: 0
}

.sub-content .tax {
    margin-bottom: 22px
}

.sub-content .price-note {
    font-size: 13px;
    line-height: 1.9;
    color: #66596d;
    background: var(--pale);
    padding: 14px 16px;
    margin: 20px 0 0;
    border-radius: 5px
}

.sub-content .set-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    padding: 0;
    gap: 18px 10px;
    margin: 28px 0
}

.sub-content .set-icons li {
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere
}

.sub-content .set-icons svg {
    width: 52px;
    height: 52px;
    display: block;
    margin: 0 auto 9px;
    background: var(--pale);
    border-radius: 12px;
    padding: 7px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round
}

.sub-content .set-icons span {
    display: block
}

.sub-content .table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid #d9cce0;
    border-radius: 8px;
    background: white;
    scrollbar-color: #b294c1 #f4f3f9;
    scrollbar-width: thin
}

.sub-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    letter-spacing: .02em;
    line-height: 1.9
}

.sub-content caption {
    text-align: left;
    padding: 16px 20px;
    background: #fff;
    color: var(--deep);
    font-weight: 700;
    font-size: 14px
}

.sub-content th,
.sub-content td {
    border-top: 1px solid #e2d8e7;
    border-right: 1px solid #e2d8e7;
    text-align: left;
    vertical-align: top;
    padding: 17px 20px;
    min-width: 135px
}

.sub-content th:last-child,
.sub-content td:last-child {
    border-right: 0
}

.sub-content thead th {
    background: var(--purple);
    color: #fff;
    font-weight: 700
}

.sub-content tbody th {
    /*background: var(--pale);*/
    color: var(--deep);
    font-weight: 700
}

.sub-content tbody tr:last-child td {
    border-bottom: 0
}

.subpage-price .table-scroll table {
    min-width: 600px
}

.subpage-price #courses>.table-scroll table {
    min-width: 750px
}

.subpage-company .table-scroll th {
    width: 24%;
    min-width: 100px
}

.subpage-company .table-scroll td {
    min-width: 0
}

.sub-content details {
    margin: 30px 0 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d8c8df;
    border-radius: 8px;
    overflow: hidden
}

.sub-content summary {
    padding: 19px 55px 19px 24px;
    font-size: 16px;
    color: var(--purple);
    font-weight: 700;
    cursor: pointer;
    position: relative;
    list-style: none;
    background: #faf8fc
}

.sub-content summary::-webkit-details-marker {
    display: none
}

.sub-content summary::after {
    content: '＋';
    position: absolute;
    right: 23px;
    top: 18px
}

.sub-content details[open] summary::after {
    content: '−'
}

.sub-content details[open] summary {
    border-bottom: 1px solid #e2d8e7;
    margin-bottom: 24px
}

.sub-content details>p {
    padding: 0 24px
}

.sub-content details>.table-scroll {
    width: calc(100% - 48px);
    margin-inline: 24px
}

.sub-content .steps {
    list-style: none;
    padding: 0;
    margin: 35px 0 0;
    counter-reset: funeral-step
}

.sub-content .steps>li {
    counter-increment: funeral-step;
    position: relative;
    padding: 0 0 30px 88px;
    margin: 0;
    min-height: 170px
}

.sub-content .steps>li::before {
    content: counter(funeral-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -3px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e9ddec;
    color: var(--purple);
    font-size: 23px;
    z-index: 1
}

.sub-content .steps>li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 55px;
    bottom: 0;
    border-left: 1px solid #c7b2d1
}

.sub-content .steps h3 {
    margin: 0 0 12px;
    padding-top: 8px
}

.sub-content .steps p {
    margin: 0 0 15px;
	text-align: justify;
}

.sub-content .steps>li:last-child {
    padding-bottom: 0
}

.subpage-contact #urgent {
    /*background: var(--pale);
    border: 1px solid #decee7;
    border-radius: 12px*/
	text-align: center;
	margin: 0 0 25px;
}

.subpage-contact #form {
    border: 1px dashed #c0a7cb;
    background: #faf8fc
}

@media(max-width:1000px) {
    .sub-main {
        padding-top: 90px
    }
    .sub-main .breadcrumbs {
        font-size: 11px;
        padding: 15px 0 20px
    }
    .page-masthead {
        min-height: 225px;
        padding: 55px 8%
    }
    .page-masthead h1 {
        font-size: 28px
    }
    .page-flowers {
        width: 150%;
        max-width: none;
        left: -25%;
        opacity: .65
    }
    .sub-content {
        font-size: 15px;
        padding: 45px 0 90px;
        width: min(90%, 720px)
    }
    .sub-content .sub-lead {
        font-size: 16px;
        line-height: 2.1
    }
    .sub-content>.sub-lead+p {
        margin-bottom: 45px
    }
    .sub-content>section {
        padding: 32px 28px;
        margin-bottom: 45px
    }
    .sub-content h2 {
        font-size: 24px;
        line-height: 1.8;
        margin-bottom: 24px
    }
    .sub-content h3 {
        font-size: 18px
    }
    .sub-content .faq-item {
        padding: 22px
    }
    .sub-content .faq-item h3 {
        font-size: 16px
    }
    .sub-content .plan {
        padding: 24px
    }
    .sub-content .amount {
        font-size: 31px
    }
    .sub-content .set-icons {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
    .sub-content .cta {
        padding: 40px 26px
    }
    .sub-content .cta h2::before {
        left: -10px
    }
    .sub-content .related {
        padding: 0
    }
    .sub-content .related ul {
        gap: 12px
    }
    .sub-content .related a {
        padding: 17px 20px;
        border: 1px solid #e1d3e7
    }
}

@media(max-width:650px) {
    .page-masthead {
        min-height: 210px;
        padding: 45px 8%
    }
    .page-masthead h1 {
        font-size: 25px;
        letter-spacing: .07em
    }
    .sub-content {
        font-size: 16px;
        letter-spacing: .03em
    }
    .sub-content .sub-lead {
        font-size: 16px;
        line-height: 1.8;
		margin-top: 50px;
    }
    .sub-content>section {
        padding: 28px 20px 10px;
        margin-bottom: 35px
    }
    .sub-content h2 {
        font-size: 24px;
        letter-spacing: .05em
    }
    .sub-content h2::before {
        width: 42px;
        height: 42px;
        left: -10px;
        top: 0
    }
    .sub-content h3 {
        font-size: 20px
    }
    .sub-content .plans {
        grid-template-columns: 1fr;
        gap: 22px
    }
    .sub-content .plan {
        padding: 24px 20px
    }
    .sub-content .plan h3 {
        font-size: 22px
    }
    .sub-content .amount {
        font-size: 33px
    }
    .sub-content .amount span {
        font-size: 13px
    }
    .sub-content .set-icons {
        gap: 18px 10px
    }
    .sub-content .set-icons svg {
        width: 46px;
        height: 46px
    }
    .sub-content .related ul {
        grid-template-columns: 1fr
    }
    .sub-content .related h2 {
        font-size: 21px
    }
    .sub-content .phone {
        font-size: 28px;
        letter-spacing: .04em
    }
    .sub-content .cta {
        padding: 35px 20px
    }
    .sub-content .faq-item {
        padding: 20px 16px
    }
    .sub-content .faq-item p {
        font-size: 14px
    }
    .sub-content .steps>li {
        padding: 0 0 30px 59px;
        min-height: 180px
    }
    .sub-content .steps>li::before {
        width: 42px;
        height: 42px;
        font-size: 18px;
        top: 3px
    }
    .sub-content .steps>li:not(:last-child)::after {
        left: 20px;
        top: 43px
    }
    .sub-content .steps h3 {
        padding-top: 5px
    }
    .sub-content th,
    .sub-content td {
        font-size: 15px;
        padding: 14px;
        min-width: 130px
    }
    .sub-content caption {
        font-size: 13px;
        padding: 14px
    }
    .subpage-company .table-scroll th {
        width: 30%;
        min-width: 80px
    }
    .subpage-company .table-scroll td {
        overflow-wrap: anywhere
    }
    .sub-content summary {
        font-size: 14px;
        padding: 18px 44px 18px 17px
    }
    .sub-content summary::after {
        right: 16px
    }
    .sub-content details>p {
        padding: 0 17px
    }
    .sub-content details>.table-scroll {
        width: calc(100% - 34px);
        margin-inline: 17px
    }
    .sub-photo {
        margin: 25px 0
    }
    .sub-photo img {
        max-height: 350px
    }
}

@media(max-width:360px) {
    .sub-content .amount {
        font-size: 29px
    }
    .sub-content .plan {
        padding-inline: 16px
    }
    .sub-content .phone {
        font-size: 24px
    }
    .page-masthead h1 {
        font-size: 23px
    }
}

@media print {
    .subpage .header,
    .subpage .footer,
    .subpage .floating-phone,
    .subpage .breadcrumbs,
    .subpage .related,
    .page-flowers {
        display: none
    }
    .sub-main {
        padding: 0
    }
    .sub-content {
        width: 100%;
        padding: 20px 0
    }
    .page-masthead {
        min-height: 0;
        padding: 20px;
        background: none
    }
    .sub-content>section {
        padding: 20px 0;
        break-inside: auto
    }
    .sub-content h2,
    .sub-content h3 {
        break-after: avoid
    }
    .sub-content tr,
    .sub-content .plan {
        break-inside: avoid
    }
    .sub-content .table-scroll {
        overflow: visible
    }
    .sub-content .table-scroll table {
        min-width: 0!important
    }
    .sub-content th,
    .sub-content td {
        min-width: 0;
        padding: 8px
    }
}

/* 会社概要：葬儀の案内を画像＋文章の2カラムに */
.subpage-company .company-service-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 32px;
    margin: 36px 0 48px;
}

.subpage-company .company-service-photo {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f3f8;
}

.subpage-company .company-service-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subpage-company .company-service-copy {
    min-width: 0;
}

.subpage-company .company-service-copy > h3 {
    margin-top: 0;
}

.subpage-company .company-service-copy > p:last-child {
    margin-bottom: 0;
}

/* スマホでは画像→文章の縦並び */
@media (max-width: 767px) {
    .subpage-company .company-service-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 28px 0 40px;
    }
}

/* 所在地・アクセス：左に文章、右にマップ */
.subpage-company .company-access-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    margin-top: 28px;
}

.subpage-company .company-access-copy {
    min-width: 0;
}

.subpage-company .company-access-copy > p:first-child {
    margin-top: 0;
}

.subpage-company .company-access-map {
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f3f8;
}

.subpage-company .company-access-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* スマホでは文章→マップの縦並び */
@media (max-width: 767px) {
    .subpage-company .company-access-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 葬儀の流れ：番号 → 画像 → 文章 */
.sub-content .steps.steps-with-photo > li {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 28px;
    padding: 0 0 30px 90px;
    min-height: 0;
}

.sub-content .steps.steps-with-photo > li:last-child {
    padding-bottom: 0;
}

.sub-content .steps-with-photo .step-photo {
    min-width: 0;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f3f8;
}

.sub-content .steps-with-photo .step-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-content .steps-with-photo .step-copy {
    min-width: 0;
}

.sub-content .steps-with-photo .step-copy h3 {
    margin: 0 0 12px;
    padding-top: 0;
}

/* タブレット・スマホ：番号の右に画像と文章を縦並び */
@media (max-width: 767px) {
    .sub-content .steps.steps-with-photo > li {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* 小さい画面では既存の小さな番号に合わせる */
@media (max-width: 650px) {
    .sub-content .steps.steps-with-photo > li {
        padding-left: 59px;
    }
}

/* お打ち合わせ前のリスト：3列×2行 */
.subpage-flow #prepare > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.subpage-flow #prepare > ul > li {
    margin: 0;
    padding: 20px;
    border: 1px solid #e2d8e7;
    border-radius: 10px;
    background: #f7f5fa;
}

/* タブレット：2列 */
@media (max-width: 1000px) {
    .subpage-flow #prepare > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* スマホ：1列 */
@media (max-width: 600px) {
    .subpage-flow #prepare > ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 水蝶館の特徴：写真付き3列カード */
.subpage-family .family-benefit-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.subpage-family .family-benefit-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2d8e7;
    border-radius: 12px;
    background: #fff;
}

.subpage-family .family-benefit-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f3f8;
}

.subpage-family .family-benefit-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subpage-family .family-benefit-body {
    padding: 24px;
}

.subpage-family .family-benefit-body > h3 {
    margin: 0 0 16px;
    padding: 0;
    font-size: 19px;
    line-height: 1.7;
}

.subpage-family .family-benefit-body > p {
    margin: 0;
	text-align: justify;
}

.subpage-family .family-benefit-note {
    margin-top: 28px;
}

/* スマホでは縦1列 */
@media (max-width: 767px) {
    .subpage-family .family-benefit-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .subpage-family .family-benefit-body {
        padding: 22px;
    }
}

/* 家族葬の相談項目：横2列 */
.subpage-family #preparation > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.subpage-family #preparation > ul > li {
    margin: 0;
    padding: 20px;
    border: 1px solid #e2d8e7;
    border-radius: 10px;
    background: #f7f5fa;
}

/* スマホでは1列 */
@media (max-width: 600px) {
    .subpage-family #preparation > ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* 家族葬ページ：料金ページの抜粋 */
.subpage-family .family-price-preview {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid #d9cbe2;
    border-radius: 14px;
    background: #fff;
}

.subpage-family .family-price-heading {
    padding: 22px 28px;
    background: #f3eef7;
}

.subpage-family .family-price-heading > h3 {
    margin: 0 0 6px;
    padding: 0;
    color: var(--accent, #633a78);
    font-size: 24px;
}

.subpage-family .family-price-heading > p {
    margin: 0;
}

.subpage-family .family-price-body {
    padding: 28px;
}

.subpage-family .family-price-label {
    margin: 0 0 8px;
    text-align: center;
}

.subpage-family .family-price-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    color: var(--accent, #633a78);
    line-height: 1.3;
}

.subpage-family .family-price-amount strong {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: 0;
}

.subpage-family .family-price-amount span {
    font-size: 17px;
}

.subpage-family .family-price-tax {
    margin: 8px 0 28px;
    text-align: center;
    font-size: 14px;
}

.subpage-family .family-price-body > h4 {
    margin: 0 0 16px;
    font-size: 17px;
}

.subpage-family .family-price-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.subpage-family .family-price-items > li {
    display: grid;
    place-items: center;
    min-width: 0;
    margin: 0;
    padding: 16px 10px;
    border-radius: 8px;
    background: #f7f5fa;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

.subpage-family .family-price-notice {
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.9;
}

.subpage-family .family-price-guide {
    margin-top: 28px;
    text-align: center;
}

.subpage-family .family-price-guide > p {
    margin: 0 0 20px;
}

.subpage-family .sub-content a.family-price-link,
.subpage-general .sub-content a.general-price-link{
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 20px 24px;
    border: 1px solid var(--accent, #633a78);
    border-radius: 8px;
    background: var(--accent, #633a78);
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
}

.subpage-family .sub-content a.family-price-link:hover,
.subpage-general .sub-content a.general-price-link:hover{
    background: #fff;
    color: var(--accent, #633a78);
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .subpage-family .sub-content a.family-price-link,
.subpage-general .sub-content a.general-price-link {
        transition: none;
    }
}

.subpage-family .family-price-link:focus-visible {
    outline: 2px solid var(--accent, #633a78);
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .subpage-family .family-price-heading,
    .subpage-family .family-price-body {
        padding: 22px 18px;
    }

    .subpage-family .family-price-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subpage-family .family-price-link {
        transition: none;
    }
}

/* 斎場葬儀：基本3コースの料金抜粋 */
.subpage-general .general-price-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.subpage-general .general-price-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9cbe2;
    border-radius: 12px;
    background: #fff;
}

.subpage-general .general-price-card > h3 {
    margin: 0;
    padding: 20px 16px;
    background: #f3eef7;
    color: var(--accent, #633a78);
    text-align: center;
    font-size: 20px;
    line-height: 1.7;
}

.subpage-general .general-price-card > h3 > span {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.subpage-general .general-price-body {
    padding: 24px 18px;
}

.subpage-general .general-price-label {
    margin: 0 0 10px;
    text-align: center;
    font-size: 13px;
}

.subpage-general .general-price-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    color: var(--accent, #633a78);
    line-height: 1.4;
}

.subpage-general .general-price-amount strong {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.subpage-general .general-price-amount span {
    font-size: 13px;
}

.subpage-general .general-price-tax {
    margin: 6px 0 20px;
    text-align: center;
    font-size: 13px;
}

.subpage-general .general-price-body > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e2d8e7;
}

.subpage-general .general-price-body > ul > li {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #e2d8e7;
    text-align: center;
    font-size: 14px;
}

.subpage-general .general-price-caption,
.subpage-general .general-price-notice {
    margin: 20px 0 0;
    font-size: 13px;
    line-height: 1.9;
}

.subpage-general .general-price-example {
    margin-top: 28px;
    padding: 24px;
    border-radius: 10px;
    background: #f7f5fa;
}

.subpage-general .general-price-example > h3 {
    margin: 0 0 12px;
    padding: 0;
    font-size: 19px;
}

.subpage-general .general-price-example > p {
    margin: 0 0 10px;
}

.subpage-general .general-price-example > p:last-child {
    margin-bottom: 0;
}

.subpage-general .general-price-example strong {
    color: var(--accent, #633a78);
}

.subpage-general .general-price-guide {
    margin-top: 28px;
    text-align: center;
}

.subpage-general .general-price-guide > p {
    margin: 0 0 20px;
}

.subpage-general .general-price-link {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 20px 24px;
    border: 1px solid var(--accent, #633a78);
    border-radius: 8px;
    background: var(--accent, #633a78);
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: background-color .25s, color .25s;
}

.subpage-general .general-price-link:hover {
    background: #fff;
    color: var(--accent, #633a78);
}

.subpage-general .general-price-link:focus-visible {
    outline: 2px solid var(--accent, #633a78);
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .subpage-general .general-price-cards {
        grid-template-columns: 1fr;
    }

    .subpage-general .general-price-example {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subpage-general .general-price-link {
        transition: none;
    }
}

.subpage-general .general-price-example {
    background: #fff;
    border: 1px solid #d9cbe2;
}

/* 自宅葬：左に画像、右に文章 */
.subpage-general .general-home-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 32px;
    margin-top: 28px;
}

.subpage-general .general-home-photo {
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f3f8;
}

.subpage-general .general-home-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subpage-general .general-home-copy {
    min-width: 0;
}

.subpage-general .general-home-copy > p:first-child {
    margin-top: 0;
}

.subpage-general .general-home-copy > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .subpage-general .general-home-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 水蝶館の写真を2枚横並び */
.subpage-family .family-hall-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.subpage-family .family-hall-photos > .sub-photo {
    min-width: 0;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
}

.subpage-family .family-hall-photos > .sub-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* スマホでは縦並び */
@media (max-width: 600px) {
    .subpage-family .family-hall-photos {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 石岡地方斎場：写真2枚を横並び */
.subpage-general .general-venue-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.subpage-general .general-venue-photos > .sub-photo {
    min-width: 0;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f3f8;
}

.subpage-general .general-venue-photos > .sub-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* スマホでは縦並び */
@media (max-width: 600px) {
    .subpage-general .general-venue-photos {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 一般葬の準備：写真付きカードを横3列 */
.subpage-general .general-preparation-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.subpage-general .general-preparation-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2d8e7;
    border-radius: 12px;
    background: #fff;
}

.subpage-general .general-preparation-photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f3f8;
}

.subpage-general .general-preparation-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subpage-general .general-preparation-body {
    padding: 24px;
}

.subpage-general .general-preparation-body > h3 {
    margin: 0 0 16px;
    padding: 0;
    font-size: 19px;
    line-height: 1.7;
}

.subpage-general .general-preparation-body > p {
    margin: 0;
}

/* スマホでは縦1列 */
@media (max-width: 767px) {
    .subpage-general .general-preparation-cards {
        grid-template-columns: 1fr;
    }

    .subpage-general .general-preparation-body {
        padding: 22px;
    }
}

/* お問い合わせページ：セクション間の花 */
.subpage-contact .contact-flower-divider {
    /* 位置・サイズの調整はここ */
    --flower-width: 300px;
    --flower-right: -230px;
    --flower-top: -130px;

    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.subpage-contact .contact-flower-divider > img {
    position: absolute;
    top: var(--flower-top);
    right: var(--flower-right);
    width: var(--flower-width);
    max-width: none;
    height: auto;
    display: block;
}

/* スマホ用の位置・サイズ */
@media (max-width: 767px) {
    .subpage-contact .contact-flower-divider {
        --flower-width: 240px;
        --flower-right: -20px;
        --flower-top: -70px;
    }
}

/* 会社概要：写真と紹介文の間の花 */
.subpage-company .company-flower-divider,
.subpage-family .company-flower-divider,
.subpage-general .company-flower-divider{
    /* 位置・サイズの調整 */
    --flower-width: 320px;
    --flower-right: -120px;
    --flower-top: -150px;

    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.subpage-company .company-flower-divider > img,
.subpage-family .company-flower-divider > img,
.subpage-general .company-flower-divider > img {
    position: absolute;
    top: var(--flower-top);
    right: var(--flower-right);
    width: var(--flower-width);
    max-width: none;
    height: auto;
    display: block;
}

/* スマホ用 */
@media (max-width: 767px) {
    .subpage-company .company-flower-divider,
	.subpage-family .company-flower-divider,
.subpage-general .company-flower-divider{
        --flower-width: 240px;
        --flower-right: -20px;
        --flower-top: -70px;
    }
}
/* 会社情報とサービス案内の間：左側の花 */
.subpage-company .company-profile-flower {
    --flower-width: 290px;
    --flower-left: -210px;
    --flower-top: -160px;

    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.subpage-company .company-profile-flower > img {
    position: absolute;
    top: var(--flower-top);
    left: var(--flower-left);
    width: var(--flower-width);
    max-width: none;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .subpage-company .company-profile-flower {
        --flower-width: 240px;
        --flower-left: -20px;
        --flower-top: -70px;
    }
}

/* 葬儀の流れ：右側の花 */
.subpage-flow .flow-first-flower {
    --flower-width: 440px;
    --flower-right: -180px;
    --flower-top: -230px;

    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.subpage-flow .flow-first-flower > img {
    position: absolute;
    top: var(--flower-top);
    right: var(--flower-right);
    width: var(--flower-width);
    max-width: none;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .subpage-flow .flow-first-flower {
        --flower-width: 240px;
        --flower-right: -20px;
        --flower-top: -70px;
    }
}

/* お打ち合わせの前：左側の花 */
.subpage-flow .flow-prepare-flower {
    --flower-width: 350px;
    --flower-left: -290px;
    --flower-top: -240px;

    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.subpage-flow .flow-prepare-flower > img {
    position: absolute;
    top: var(--flower-top);
    left: var(--flower-left);
    width: var(--flower-width);
    max-width: none;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .subpage-flow .flow-prepare-flower {
        --flower-width: 240px;
        --flower-left: -20px;
        --flower-top: -70px;
    }
}
/* 事前相談の前：右側の花 */
.subpage-flow .flow-advance-flower {
    --flower-width: 370px;
    --flower-right: -110px;
    --flower-top: -160px;

    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.subpage-flow .flow-advance-flower > img {
    position: absolute;
    top: var(--flower-top);
    right: var(--flower-right);
    width: var(--flower-width);
    max-width: none;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .subpage-flow .flow-advance-flower {
        --flower-width: 240px;
        --flower-right: -20px;
        --flower-top: -70px;
    }
}

/* 人数に合わせた会場選びの前：右側の花 */
.subpage-family .family-people-flower,
.subpage-general .family-people-flower{
    --flower-width: 270px;
    --flower-right: -120px;
    --flower-top: -90px;

    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}

.subpage-family .family-people-flower > img,
.subpage-general .family-people-flower > img {
    position: absolute;
    top: var(--flower-top);
    right: var(--flower-right);
    width: var(--flower-width);
    max-width: none;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .subpage-family .family-people-flower,
.subpage-general .family-people-flower {
        --flower-width: 240px;
        --flower-right: -20px;
        --flower-top: -70px;
    }
}

/* 関連ページ画像リンク */
ul.related-image-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

ul.related-image-cards > li {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

ul.related-image-cards > li > a {
  display: block;
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  overflow: visible;
  transform: none;
}

/* 上部画像 */
.related-image-cards .related-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
}

.related-image-cards .related-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* 下部テキスト */
.related-image-cards .related-card-title {
  display: block;
  padding: 16px 0 0;
  color: #654184;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-align: left;
}

/* ホバー */
ul.related-image-cards > li > a:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.related-image-cards a:hover img {
  transform: scale(1.04);
}

.related-image-cards a:hover .related-card-title {
  opacity: 0.7;
}

/* スマホ */
@media screen and (max-width: 767px) {
  ul.related-image-cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .related-image-cards .related-card-title {
    font-size: 16px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-image-cards img {
    transition: none;
  }

  .related-image-cards a:hover img {
    transform: none;
  }
}

/* =========================================
   関連ページ：画像上・テキスト下
   既存CSSの競合を解消
========================================= */

/* PC：横3列 */
.sub-content .related ul.related-image-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

/* リスト */
.sub-content .related ul.related-image-cards > li {
  margin: 0;
  padding: 0;
  min-width: 0;
  list-style: none;
}

/* リンク全体 */
.sub-content .related ul.related-image-cards > li > a {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;

  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;

  color: var(--purple, #633a78);
  text-decoration: none;
  transform: none;
}

/* 既存の矢印を削除 */
.sub-content .related ul.related-image-cards > li > a::after {
  content: none;
  display: none;
}

/* 画像エリア */
.sub-content .related .related-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f3f8;
}

/* 画像 */
.sub-content .related .related-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* 画像下のテキスト */
.sub-content .related .related-card-title {
  display: block;
  width: 100%;
  padding: 15px 0 0;
  margin: 0;

  color: var(--purple, #633a78);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-align: left;
}

/* ホバー */
.sub-content .related ul.related-image-cards > li > a:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

.sub-content .related a:hover .related-card-image img {
  transform: scale(1.04);
}

.sub-content .related a:hover .related-card-title {
  opacity: 0.7;
}

/* スマホ */
@media screen and (max-width: 767px) {
  .sub-content .related ul.related-image-cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sub-content .related .related-card-title {
    font-size: 16px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sub-content .related .related-card-image img {
    transition: none;
  }

  .sub-content .related a:hover .related-card-image img {
    transform: none;
  }
}

/* ========================================
   お急ぎの方へ・電話お問い合わせ
======================================== */

/* 小見出し */
.subpage-contact #urgent .urgent-subtitle {
  margin: 0 0 8px;
  color: var(--purple, #633a78);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.subpage-contact #urgent .urgent-text-area {
    color: var(--purple);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .05em;
    margin: 32px 0 14px;
}

/* タイトル */
.subpage-contact #urgent h2 {
  margin-bottom: 24px;
}

/* 電話ボタンエリア */
.subpage-contact #urgent .urgent-phone-area {
  display: flex;
  justify-content: center;
  margin: 25px 0;
}

/* 電話ボタン */
.subpage-contact #urgent a.urgent-phone-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  max-width: 520px;
  padding: 22px 30px;

  background: var(--purple, #633a78);
  color: #fff;
  border: 1px solid var(--purple, #633a78);
  border-radius: 10px;

  text-decoration: none;
  box-sizing: border-box;

  box-shadow: 0 5px 15px rgba(65, 35, 85, 0.15);

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* ボタン上の小さい文字 */
.subpage-contact #urgent .urgent-phone-label {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* 電話番号 */
.subpage-contact #urgent .urgent-phone-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.subpage-contact #urgent .urgent-phone-number svg {
  display: block;
  width: 36px;
  height: auto;
  flex-shrink: 0;
  fill: currentColor;
}

/* スマホ */
@media screen and (max-width: 767px) {
  .subpage-contact #urgent .urgent-phone-number svg {
    width: 28px;
    height: auto;
  }
}

/* ホバー */
.subpage-contact #urgent a.urgent-phone-button:hover {
  background: #fff;
  color: var(--purple, #633a78);
  box-shadow: 0 8px 20px rgba(65, 35, 85, 0.2);
}

.subpage-contact #urgent a.urgent-phone-button:hover
.urgent-phone-label,
.subpage-contact #urgent a.urgent-phone-button:hover
.urgent-phone-number {
  color: var(--purple, #633a78);
}

/* スマホ */
@media screen and (max-width: 767px) {

  .subpage-contact #urgent .urgent-subtitle {
    font-size: 14px;
  }

  .subpage-contact #urgent .urgent-phone-area {
    margin: 28px 0;
  }

  .subpage-contact #urgent a.urgent-phone-button {
    padding: 20px 12px;
  }

  .subpage-contact #urgent .urgent-phone-label {
    font-size: 12px;
  }

  .subpage-contact #urgent .urgent-phone-number {
    font-size: clamp(21px, 6vw, 28px);
    gap: 8px;
    letter-spacing: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .subpage-contact #urgent a.urgent-phone-button {
    transition: none;
  }

  .subpage-contact #urgent a.urgent-phone-button:hover {
    transform: none;
  }
}

/* 事前相談セクション：背景を画面幅いっぱいに */
.subpage-contact .sub-content > section#advance {
  position: relative;
  z-index: 0;
  background: transparent;
  border-radius: 0;
}

/* 背景だけを画面いっぱいに広げる */
.subpage-contact #advance::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #f3eef7;
  z-index: -1;
}

/* ========================================
   CTA 2カラムレイアウト
======================================== */

/* 全体 */
.shared-cta .cta-inner.cta-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;

  width: min(1200px, 88%);
  max-width: 1200px;
  margin: 0 auto;

  text-align: left;
  position: relative;
  z-index: 2;
}

/* 左：文章 */
.shared-cta .cta-text {
  min-width: 0;
  text-align: left;
}

.shared-cta .cta-text h2 {
  text-align: left;
  margin: 0 0 24px;
}

.shared-cta .cta-text p {
  text-align: left;
  margin: 0;
  line-height: 2;
}

/* 右：電話エリア */
.shared-cta .cta-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

/* 電話ボタン */
.shared-cta .cta-phone-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  width: 100%;
  padding: 22px 18px;
  box-sizing: border-box;

  background: var(--purple, #633a78);
  border: 1px solid var(--purple, #633a78);
  border-radius: 10px;

  color: #fff;
  text-decoration: none;

  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;

  box-shadow: 0 5px 18px rgba(65, 35, 85, 0.15);

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 電話アイコン */
.shared-cta .cta-phone-button svg {
  display: block;
  width: 35px;
  height: auto;
  flex-shrink: 0;
}

/* ホバー */
.shared-cta .cta-phone-button:hover {
  background: #fff;
  color: var(--purple, #633a78);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(65, 35, 85, 0.2);
}

/* ボタン下の対応時間 */
.shared-cta .cta-contact .cta-phone-note {
  margin: 0;
  color: var(--purple, #633a78);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

/* ========================================
   スマートフォン
======================================== */

@media screen and (max-width: 767px) {

  .shared-cta .cta-inner.cta-two-column {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 88%;
  }

  .shared-cta .cta-text h2 {
    margin-bottom: 18px;
  }

  .shared-cta .cta-text p {
    line-height: 1.9;
  }

  .shared-cta .cta-contact {
    width: 100%;
    gap: 12px;
  }

  .shared-cta .cta-phone-button {
    padding: 20px 12px;
    font-size: clamp(22px, 6vw, 30px);
    gap: 10px;
  }

  .shared-cta .cta-phone-button svg {
    width: 28px;
  }

  .shared-cta .cta-contact .cta-phone-note {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-cta .cta-phone-button {
    transition: none;
  }

  .shared-cta .cta-phone-button:hover {
    transform: none;
  }
}

/* 大きな写真＋紹介文 */
section.general-intro-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 80px);
    width: 100%;
    margin: 120px 0 120px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

/* 写真と花の基準位置 */
.general-intro-feature .general-intro-visual {
    /* 花の大きさ・位置 */
    --flower-width: 300px;
    --flower-left: -50px;
    --flower-bottom: -70px;

    position: relative;
    min-width: 0;
}

.general-intro-feature .general-intro-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0 14px 14px 0;
}

/* 写真の左下に花を重ねる */
.general-intro-feature .general-intro-flower {
    position: absolute;
    left: var(--flower-left);
    bottom: var(--flower-bottom);
    z-index: 1;
    display: block;
    width: var(--flower-width);
    max-width: none;
    height: auto;
    pointer-events: none;
}

/* 文章 */
.general-intro-feature .general-intro-copy {
    min-width: 0;
    padding: 20px 32px 20px 0;
}

.general-intro-feature .general-intro-copy > h2 {
    margin: 0 0 28px;
    padding: 0;
    font-family: var(--serif, serif);
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.9;
    letter-spacing: .08em;
}

/* 共通見出しの装飾を、この見出しだけ解除 */
.general-intro-feature .general-intro-copy > h2::before,
.general-intro-feature .general-intro-copy > h2::after {
    content: none;
}

.general-intro-feature .general-intro-copy > p {
    margin: 0 0 30px;
    line-height: 2.2;
	font-size: 18px;
}

/* 共通リンク指定より優先するボタン */
.general-intro-feature .general-intro-copy > a.general-intro-button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 340px;
    padding: 18px 24px;
    border: 1px solid var(--accent, #633a78);
    border-radius: 8px;
    background: var(--accent, #633a78);
    color: #fff;
    text-decoration: none;
    transition: background-color .35s ease, color .35s ease;
}

.general-intro-feature .general-intro-copy > a.general-intro-button:hover {
    background: #fff;
    color: var(--accent, #633a78);
    text-decoration: none;
}

.general-intro-feature .general-intro-copy > a.general-intro-button:focus-visible {
    outline: 2px solid var(--accent, #633a78);
    outline-offset: 4px;
}

/* スマホ：写真→文章 */
@media (max-width: 767px) {
    section.general-intro-feature {
        grid-template-columns: 1fr;
        gap: 56px;
        margin: 48px 0 64px;
    }

    .general-intro-feature .general-intro-visual {
        --flower-width: 180px;
        --flower-left: -15px;
        --flower-bottom: -40px;
    }

    .general-intro-feature .general-intro-photo {
        border-radius: 0;
    }

    .general-intro-feature .general-intro-copy {
        padding: 0 20px;
    }

    .general-intro-feature .general-intro-copy > h2 {
        font-size: 23px;
        letter-spacing: .04em;
    }
	.general-intro-feature .general-intro-flower {
    left: 250px;
    bottom: -50px;
}
	
}

@media (prefers-reduced-motion: reduce) {
    .general-intro-feature .general-intro-copy > a.general-intro-button {
        transition: none;
    }
}

/* 左に縦書き、右に写真 */
section.general-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 56px;
    box-sizing: border-box;
    width: min(1200px, 90%);
    margin: 100px auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* 見出しを文章の右側に配置 */
.general-story .general-story-copy {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    min-width: 0;
}

.general-story .general-story-copy > h2 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0;
    padding: 0;
    font-family: var(--serif, serif);
    font-size: 26px;
    line-height: 1.8;
    letter-spacing: .12em;
}

/* 共通見出しの装飾を解除 */
.general-story .general-story-copy > h2::before,
.general-story .general-story-copy > h2::after {
    content: none;
}

.general-story .general-story-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 520px;
    font-size: 15px;
    line-height: 2.1;
    letter-spacing: .06em;
}

.general-story .general-story-text > p {
    margin: 0;
}

.general-story .general-story-text > p + p {
    margin-right: 20px;
}

/* 写真 */
.general-story .general-story-visual {
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
}

.general-story .general-story-visual > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* 縦書き見出しの背景に丸を追加 */
.general-story .general-story-copy > h2 {
    position: relative;
    isolation: isolate;
}

.general-story .general-story-copy > h2::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -18px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f4e8f6;
    z-index: -1;
    pointer-events: none;
}

/* 写真の右下に花を重ねる */
.general-story .general-story-visual {
    --flower-width: 300px;
    --flower-right: -40px;
    --flower-bottom: -60px;

    position: relative;
    overflow: visible;
}

/* 写真の角丸を維持 */
.general-story .general-story-visual > img:not(.general-story-flower) {
    border-radius: 6px;
}

/* 花画像は、写真用の指定を上書き */
.general-story .general-story-visual > img.general-story-flower {
    position: absolute;
    right: -150px;
    bottom: -100px;
    z-index: 1;
    display: block;
    width: 250px;
    max-width: none;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: contain;
    pointer-events: none;
}

@media (max-width: 1000px) {
    .general-story .general-story-visual {
        --flower-width: 180px;
        --flower-right: -10px;
        --flower-bottom: -35px;
    }
}

/* 横書きに切り替わる画面幅 */
@media (max-width: 1000px) {
    .general-story .general-story-copy > h2::before {
        top: -16px;
        right: auto;
        left: -16px;
        width: 60px;
        height: 60px;
    }
}

/* タブレット・スマホでは横書き、縦並び */
@media (max-width: 1000px) {
    section.general-story {
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 60px auto;
    }

    .general-story .general-story-copy {
        display: block;
    }

    .general-story .general-story-copy > h2 {
        writing-mode: horizontal-tb;
        margin-bottom: 24px;
        font-size: 24px;
        line-height: 1.8;
        letter-spacing: .06em;
    }

    .general-story .general-story-text {
        writing-mode: horizontal-tb;
        height: auto;
        font-size: 15px;
        line-height: 2;
    }

    .general-story .general-story-text > p + p {
        margin: 18px 0 0;
    }
}

/* 紹介文を縦書きから横書きへ */
.general-story .general-story-copy {
    display: block;
}

.general-story .general-story-copy > h2 {
    writing-mode: horizontal-tb;
    margin: 0 0 24px;
    line-height: 1.8;
}

.general-story .general-story-text {
    writing-mode: horizontal-tb;
    height: auto;
    line-height: 2.2;
}

.general-story .general-story-text > p {
    margin: 0;
}

.general-story .general-story-text > p + p {
    margin: 20px 0 0;
}

/* 見出しの丸も横書きに合わせて移動 */
.general-story .general-story-copy > h2::before {
    top: -16px;
    right: auto;
    left: -16px;
}

/* 全幅背景・中央揃え・右下の花 */
section.general-venue-message {
    --flower-width: 320px;
    --flower-right: -30px;
    --flower-bottom: -40px;

    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    margin: 80px 0;
    padding: 80px 6% 80px;
    border: 0;
    border-radius: 0;
    background: var(--pale);
    text-align: center;
    overflow: hidden;
}

.general-venue-message .general-venue-message-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.general-venue-message .general-venue-message-inner > h2 {
    margin: 0 0 28px;
    padding: 0;
    font-family: var(--serif, serif);
    font-size: clamp(23px, 2vw, 26px);
    line-height: 1.8;
}

/* 共通の見出し装飾を解除 */
.general-venue-message .general-venue-message-inner > h2::before,
.general-venue-message .general-venue-message-inner > h2::after {
    content: none;
}

.general-venue-message .general-venue-message-inner > p {
    margin: 0;
    line-height: 2.2;
}

.general-venue-message .general-venue-message-inner > p + p {
    margin-top: 12px;
}

/* 右下の花 */
.general-venue-message > .general-venue-message-flower {
    position: absolute;
    left: -10px;
    bottom: -100px;
    z-index: 0;
    display: block;
    width: 330px;
    max-width: none;
    height: auto;
    pointer-events: none;
}

@media (max-width: 767px) {
    section.general-venue-message {
        --flower-width: 190px;
        --flower-right: -25px;
        --flower-bottom: -30px;

        margin: 48px 0;
        padding: 50px 6% 50px;
    }

    .general-venue-message .general-venue-message-inner > p {
        font-size: 14px;
        line-height: 2;
    }
}
/* 花をセクションの外まで表示 */
section.general-venue-message {
    overflow: visible;
    z-index: 2;
}

/* 花を文章より前面へ */
.general-venue-message > .general-venue-message-flower {
    z-index: 3;
    transform: scaleX(-1);
}

/* 左に縦書きタイトル、右に3項目 */
section.general-support {
    margin: 90px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.general-support .general-support-inner {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* 縦書きタイトル */
.general-support .general-support-inner > h2 {
    position: relative;
    isolation: isolate;
    justify-self: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0;
    padding: 0;
    font-family: var(--serif, serif);
    font-size: calc(34 * var(--u));
    letter-spacing: .18em;
    line-height: 1.7;
    letter-spacing: .12em;
}

/* タイトルの薄紫の丸 */
.general-support .general-support-inner > h2::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -14px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #f4e8f6;
    z-index: -1;
    pointer-events: none;
}

.general-support .general-support-inner > h2::after {
    content: none;
}

/* 右側の項目 */
.general-support .general-support-list {
    min-width: 0;
    border-top: 1px solid #ded0e6;
}

.general-support .general-support-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #ded0e6;
}

.general-support .general-support-item > h3 {
    margin: 0;
    padding: 0;
    font-size: calc(24 * var(--u));
    line-height: 1.75;
    letter-spacing: .05em;
    color: var(--deep);
    font-weight: 700;
}

.general-support .general-support-item > p {
    margin: 0;
    font-size: 15px;
    line-height: 2;
}

/* タブレット */
@media (max-width: 1000px) {
    .general-support .general-support-inner {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 32px;
    }

    .general-support .general-support-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .general-support .general-support-item > h3 br {
        display: none;
    }
}

/* スマホではタイトルも横書き */
@media (max-width: 600px) {
    section.general-support {
        margin: 60px 0;
    }

    .general-support .general-support-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .general-support .general-support-inner > h2 {
        justify-self: start;
        writing-mode: horizontal-tb;
        font-size: 24px;
        letter-spacing: .06em;
    }

    .general-support .general-support-inner > h2::before {
        right: auto;
        left: -14px;
        width: 60px;
        height: 60px;
    }

    .general-support .general-support-item {
        padding: 24px 0;
    }

    .general-support .general-support-item > h3 {
        font-size: 18px;
		letter-spacing: 0;
    }

    .general-support .general-support-item > p {
        font-size: 14px;
    }
}

/* ご料金：全幅の薄紫背景 */
section.general-plan-section {
    box-sizing: border-box;
    width: 100%;
    margin: 80px 0;
    padding: 80px 0;
    border: 0;
    border-radius: 0;
    background: var(--pale);
    box-shadow: none;
}

.general-plan-section .general-plan-inner {
    width: min(1200px, 88%);
    margin: 0 auto;
}

.general-plan-section .general-plan-inner > h2 {
    margin: 0 0 36px;
    padding: 0;
    text-align: center;
    font-family: var(--serif, serif);
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.8;
}

.general-plan-section .general-plan-inner > h2::before,
.general-plan-section .general-plan-inner > h2::after {
    content: none;
}

.general-plan-section .general-plan-inner > h2 {
    position: relative;
    isolation: isolate;
    width: fit-content;
    margin: 0 auto 36px;
}

.general-plan-section .general-plan-inner > h2::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -26px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #f4e8f6;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 767px) {
    .general-plan-section .general-plan-inner > h2::before {
        top: -12px;
        left: -20px;
        width: 60px;
        height: 60px;
    }
}

/* 左：価格／右：内容 */
.general-plan-section .general-plan-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
    overflow: hidden;
    /*border: 1px solid #d9cbe2;*/
    border-radius: 14px;
    background: #fff;
}

.general-plan-section .general-plan-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 40px 28px;
    border-right: 1px solid #e2d8e7;
    text-align: center;
}

.general-plan-section .general-plan-summary > h3 {
    margin: 0 0 10px;
    padding: 0;
    color: var(--purple);
    font-family: var(--serif, serif);
    font-size: 30px;
    line-height: 1.6;
}

.general-plan-section .general-plan-type {
    align-self: center;
    margin: 0 0 20px;
    padding: 5px 25px;
	background-color: var(--accent);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
}

.general-plan-section .general-plan-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 15px;
    color: var(--purple);
    line-height: 1.2;
}

.general-plan-section .general-plan-price strong {
    font-size: clamp(52px, 5vw, 76px);
    font-weight: 700;
    letter-spacing: 0;
}

.general-plan-section .general-plan-price span {
    font-size: 24px;
}

.general-plan-section .general-plan-note {
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.9;
}

/* プラン内容 */
.general-plan-section .general-plan-details {
    min-width: 0;
    padding: 32px;
}

.general-plan-section .general-plan-details > h3 {
    margin: 0 0 24px;
    padding: 0;
    text-align: center;
    font-size: 20px;
    line-height: 1.7;
}

.general-plan-section .general-plan-items {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.general-plan-section .general-plan-items > li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 18px 8px;
    border: 1px solid #e2d8e7;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.general-plan-section .general-plan-items img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.general-plan-section .general-plan-items span {
    font-size: 14px;
    line-height: 1.5;
}

/* 料金ページへのボタン */
.general-plan-section .general-plan-action {
    margin-top: 32px;
    text-align: center;
}

.general-plan-section .general-plan-action > a.general-plan-button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 20px 24px;
    border: 1px solid var(--accent, #633a78);
    border-radius: 8px;
    background: var(--accent, #633a78);
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: background-color .35s ease, color .35s ease;
}

.general-plan-section .general-plan-action > a.general-plan-button:hover {
    background: #fff;
    color: var(--accent, #633a78);
    text-decoration: none;
}

.general-plan-section .general-plan-action > a.general-plan-button:focus-visible {
    outline: 2px solid var(--accent, #633a78);
    outline-offset: 4px;
}

/* タブレット */
@media (max-width: 1000px) {
    .general-plan-section .general-plan-box {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .general-plan-section .general-plan-summary {
        padding: 32px 20px;
    }

    .general-plan-section .general-plan-details {
        padding: 24px;
    }

    .general-plan-section .general-plan-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* スマホ */
@media (max-width: 767px) {
    section.general-plan-section {
        margin: 48px 0;
        padding: 56px 0;
    }

    .general-plan-section .general-plan-box {
        grid-template-columns: 1fr;
    }

    .general-plan-section .general-plan-summary {
        border-right: 0;
        border-bottom: 1px solid #e2d8e7;
    }

    .general-plan-section .general-plan-inner > h2 {
        font-size: 26px;
    }

    .general-plan-section .general-plan-details {
        padding: 24px 16px;
    }

    .general-plan-section .general-plan-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .general-plan-section .general-plan-action > a.general-plan-button {
        transition: none;
    }
}

/* 自宅葬の紹介：左に写真、右に文章 */
section.general-home-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    box-sizing: border-box;
    width: min(1200px, 90%);
    margin: 100px auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

/* 写真と花 */
.general-home-feature .general-home-feature-visual {
    --flower-width: 250px;
    --flower-left: -130px;
    --flower-bottom: -80px;

    position: relative;
    min-width: 0;
}

.general-home-feature .general-home-feature-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
}

.general-home-feature .general-home-feature-flower {
    position: absolute;
    left: var(--flower-left);
    bottom: var(--flower-bottom);
    z-index: 1;
    display: block;
    width: var(--flower-width);
    max-width: none;
    height: auto;
    pointer-events: none;
}

/* 文章 */
.general-home-feature .general-home-feature-copy {
    min-width: 0;
}

.general-home-feature .general-home-feature-copy > h2 {
    position: relative;
    isolation: isolate;
    margin: 0 0 30px;
    padding: 0;
    font-family: var(--serif, serif);
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.9;
    letter-spacing: .08em;
}

/* 見出し左上の丸 */
.general-home-feature .general-home-feature-copy > h2::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -26px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #f4e8f6;
    z-index: -1;
    pointer-events: none;
}

.general-home-feature .general-home-feature-copy > h2::after {
    content: none;
}

.general-home-feature .general-home-feature-copy > p {
    margin: 0;
    line-height: 2.2;
}

.general-home-feature .general-home-feature-copy > p + p {
    margin-top: 18px;
}

/* お問い合わせボタン */
.general-home-feature .general-home-feature-copy > a.general-home-feature-button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 340px;
    margin-top: 30px;
    padding: 18px 24px;
    border: 1px solid var(--accent, #633a78);
    border-radius: 8px;
    background: var(--accent, #633a78);
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: background-color .35s ease, color .35s ease;
}

.general-home-feature .general-home-feature-copy > a.general-home-feature-button:hover {
    background: #fff;
    color: var(--accent, #633a78);
    text-decoration: none;
}

.general-home-feature .general-home-feature-copy > a.general-home-feature-button:focus-visible {
    outline: 2px solid var(--accent, #633a78);
    outline-offset: 4px;
}

/* スマホ：写真→文章 */
@media (max-width: 767px) {
    section.general-home-feature {
        grid-template-columns: 1fr;
        gap: 64px;
        margin: 60px auto;
    }

    .general-home-feature .general-home-feature-visual {
        --flower-width: 180px;
        --flower-left: -15px;
        --flower-bottom: -35px;
    }

    .general-home-feature .general-home-feature-copy > h2 {
        font-size: 24px;
        letter-spacing: .04em;
    }

    .general-home-feature .general-home-feature-copy > h2::before {
        top: -12px;
        left: -16px;
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .general-home-feature .general-home-feature-copy > a.general-home-feature-button {
        transition: none;
    }
}

/* 写真の右上に追加する花 */
.general-home-feature .general-home-feature-visual {
    --flower-top-width: 260px;
    --flower-top-right: -670px;
    --flower-top-offset: -150px;
}

.general-home-feature .general-home-feature-flower-top {
    position: absolute;
    top: var(--flower-top-offset);
    right: var(--flower-top-right);
    z-index: 2;
    display: block;
    width: var(--flower-top-width);
    max-width: none;
    height: auto;
    pointer-events: none;
}

@media (max-width: 767px) {
    .general-home-feature .general-home-feature-visual {
        --flower-top-width: 160px;
        --flower-top-right: -15px;
        --flower-top-offset: -35px;
    }
}
.small-text{
	font-size: 13px;
}

/* 料金詳細ページ */
.subpage-price .price-detail-container {
    box-sizing: border-box;
    width: min(1200px, 88%);
    margin: 0 auto;
}

.subpage-price section.price-detail-intro,
.subpage-price section.price-detail-overview {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 80px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.subpage-price section.price-detail-options {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 80px 0 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.subpage-price section.price-detail-consultation {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding:0 0 80px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.subpage-price section.price-detail-overview {
    background: var(--pale);
}

.subpage-price .price-detail-container p {
    line-height: 2.1;
}

.subpage-price .price-detail-container > p {
    margin: 0 0 0px;
}

/* 導入文 */
.subpage-price .price-detail-intro {
    text-align: center;
}

.subpage-price .price-detail-intro h2 {
    margin: 0 0 28px;
    font-family: var(--serif, serif);
    font-size: clamp(26px, 2.3vw, 34px);
    line-height: 1.8;
    letter-spacing: .06em;
}

.subpage-price .price-detail-intro h2::before,
.subpage-price .price-detail-intro h2::after {
    content: none;
}

/* 丸付きの見出し */
.subpage-price h2.price-detail-heading {
    position: relative;
    isolation: isolate;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 36px;
    padding: 0;
    text-align: center;
    font-family: var(--serif, serif);
    font-size: clamp(23px, 2vw, 30px);
    line-height: 1.8;
}

.subpage-price h2.price-detail-heading::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -26px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: #f4e8f6;
    z-index: -1;
    pointer-events: none;
}

.subpage-price h2.price-detail-heading::after {
    content: none;
}

.subpage-price .price-detail-overview > .price-detail-container > p {
    text-align: center;
}

.subpage-price .price-detail-subheading {
    margin: 36px 0 20px;
    font-size: 20px;
    text-align: center;
}

/* 基本費用の3列カード */
.subpage-price .price-basic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.subpage-price .price-basic-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid #d9cbe2;
    border-radius: 12px;
    background: #fff;
}

.subpage-price .price-basic-card > h4 {
    margin: 0 0 16px;
    color: var(--accent, #633a78);
    font-family: var(--serif, serif);
    font-size: 23px;
    text-align: center;
}

.subpage-price .price-basic-card > p {
    margin: 0;
}

.subpage-price .price-basic-card > p + p {
    margin-top: 14px;
}

.subpage-price .price-detail-note {
    font-size: 13px;
}

/* 追加費用の導入 */
.subpage-price .price-additional-guide {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid #d9cbe2;
    border-radius: 12px;
    background: #fff;
}

.subpage-price .price-additional-guide > h3 {
    margin: 0 0 16px;
    font-size: 21px;
	color: var(--accent, #633a78);
    font-family: var(--serif, serif);
    line-height: 1.6;
}

.subpage-price .price-additional-guide > p {
    margin: 0;
}

/* オプションの2列カード */
.subpage-price .price-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.subpage-price .price-option-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid #e2d8e7;
    border-radius: 12px;
    background: #fff;
}

.subpage-price .price-option-card > h3 {
    margin: 0 0 16px;
    color: var(--accent, #633a78);
    font-family: var(--serif, serif);
    font-size: 21px;
    line-height: 1.7;
}

.subpage-price .price-option-card > p {
    margin: 0;
}

.subpage-price .price-option-card > p + p {
    margin-top: 16px;
}

.subpage-price .price-religious-note {
    margin-top: 28px;
    padding: 24px 28px;
    border-radius: 12px;
    background: var(--pale);
}

.subpage-price .price-religious-note > h3 {
    margin: 0 0 12px;
    font-size: 19px;
}

.subpage-price .price-religious-note > p {
    margin: 0;
}

/* 共通の料金枠を利用 */
.subpage-price .price-detail-plans .general-plan-box + .general-plan-box {
    margin-top: 36px;
}

.subpage-price .price-detail-plans .general-plan-summary {
    justify-content: flex-start;
}

.subpage-price .price-plan-description {
    margin: 0 0 24px;
    text-align: center;
    font-size: 18px;
    line-height: 2;
}

.subpage-price .price-plan-label {
    margin: 0 0 0;
    font-size: 14px;
    color: var(--accent, #633a78);
}

.subpage-price .price-cremation-amount strong {
    font-size: clamp(38px, 4vw, 56px);
}

.subpage-price .price-cremation-amount span {
    font-size: 17px;
}

.subpage-price .price-plan-notice {
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.9;
}

/* 予算の相談 */
.subpage-price .price-detail-consultation {
    text-align: center;
}

.subpage-price .price-detail-container > a.price-detail-contact-button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 380px;
    margin-top: 25px;
    padding: 20px 24px;
    border: 1px solid var(--accent, #633a78);
    border-radius: 8px;
    background: var(--accent, #633a78);
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: background-color .35s ease, color .35s ease;
}

.subpage-price .price-detail-container > a.price-detail-contact-button:hover {
    background: #fff;
    color: var(--accent, #633a78);
    text-decoration: none;
}

.subpage-price .price-detail-container > a.price-detail-contact-button:focus-visible {
    outline: 2px solid var(--accent, #633a78);
    outline-offset: 4px;
}

/* スマホ */
@media (max-width: 767px) {
    .subpage-price section.price-detail-intro,
    .subpage-price section.price-detail-overview,
    .subpage-price section.price-detail-options,
    .subpage-price section.price-detail-consultation {
        padding: 56px 0;
    }

    .subpage-price .price-basic-grid,
    .subpage-price .price-option-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .subpage-price .price-basic-card,
    .subpage-price .price-option-card,
    .subpage-price .price-additional-guide,
    .subpage-price .price-religious-note {
        padding: 24px 20px;
    }

    .subpage-price h2.price-detail-heading::before {
        top: -12px;
        left: -16px;
        width: 60px;
        height: 60px;
    }

    .subpage-price .price-detail-container p {
        font-size: 14px;
    }

    .subpage-price .price-detail-plans .general-plan-box + .general-plan-box {
        margin-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .subpage-price .price-detail-container > a.price-detail-contact-button {
        transition: none;
    }
}

/* 基本費用：プラン料金＋火葬料金＋式場代 */
.subpage-price .price-basic-grid.price-cost-formula {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 65px;
    margin-top: 28px;
}

.subpage-price .price-cost-formula > .price-basic-card {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 30px 20px;
    border: 1px solid #e2d8e7;
    border-radius: 0;
    background: #fff;
    text-align: center;
	border-radius: 15px;
}

/* タイトル上のアイコン */
.subpage-price .price-cost-formula .price-basic-icon {
    display: block;
    width: 75px;
    height: 75px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.subpage-price .price-cost-formula .price-basic-card > h4 {
    margin: 0 0 15px;
    padding: 0;
    color: var(--accent, #633a78);
    font-family: var(--serif, serif);
    font-size: 24px;
    line-height: 1.6;
}

.subpage-price .price-cost-formula .price-basic-card > p {
    margin: 0;
    line-height: 1.6;
	font-weight: 700;
    font-size: 16px;
}

.subpage-price .price-cost-formula .price-basic-card > p + p {
    margin-top: 10px;
    font-size: 12px;
	text-align: center;
}

/* 左のカードを紫背景に */
.subpage-price .price-cost-formula > .price-basic-card-main {
    border-color: var(--accent, #633a78);
    background: var(--accent, #633a78);
    color: #fff;
}

.subpage-price .price-cost-formula .price-basic-card-main > h4 {
    color: #fff;
}

/* 左のカードのアイコンを白に */
.subpage-price .price-cost-formula .price-basic-card-main > .price-basic-icon {
    filter: brightness(0) invert(1);
}

/* カードの間の＋ */
.subpage-price .price-cost-formula .price-cost-plus {
    position: absolute;
    top: 50%;
    left: -33px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 65px;
    height: 65px;
    /*border: 1px solid #e2d8e7;
    border-radius: 50%;
    background: #fff;*/
    color: var(--accent, #633a78);
    font-family: sans-serif;
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.subpage-price .price-cost-formula .price-detail-note {
    font-size: 13px;
}

/* スマホでは縦並び、＋はカードの間へ */
@media (max-width: 767px) {
    .subpage-price .price-basic-grid.price-cost-formula {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .subpage-price .price-cost-formula > .price-basic-card {
        padding: 32px 24px;
    }

    .subpage-price .price-cost-formula .price-cost-plus {
        top: -18px;
        left: 50%;
        width: 42px;
        height: 42px;
        font-size: 26px;
    }
}

/* 追加費用の枠：右下の花 */
.subpage-price .price-additional-guide {
    --flower-width: 240px;
    --flower-right: -60px;
    --flower-bottom: -40px;

    position: relative;
    overflow: visible;
}

.subpage-price .price-additional-guide > .price-additional-flower {
    position: absolute;
    right: var(--flower-right);
    bottom: var(--flower-bottom);
    z-index: 2;
    display: block;
    width: var(--flower-width);
    max-width: none;
    height: auto;
    pointer-events: none;
}

@media (max-width: 767px) {
    .subpage-price .price-additional-guide {
        --flower-width: 150px;
        --flower-right: -15px;
        --flower-bottom: -40px;
    }
}

/* 左に縦書きタイトル、右にオプション一覧 */
.subpage-price .price-detail-options .price-options-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
}

.subpage-price .price-options-layout > h2.price-detail-heading {
    justify-self: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    width: auto;
    max-width: none;
    margin: 0;
    text-align: left;
    line-height: 1.8;
    letter-spacing: .1em;
}

/* 縦書きに合わせて丸を移動 */
.subpage-price .price-options-layout > h2.price-detail-heading::before {
    top: -16px;
    left: auto;
    right: -14px;
}

.subpage-price .price-options-content {
    min-width: 0;
}

/* 右側は4項目を縦に並べる */
.subpage-price .price-options-layout .price-option-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid #ded0e6;
}

/* 各項目：左にアイコン、右に見出しと文章 */
.subpage-price .price-options-layout .price-option-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    padding: 32px 0;
    border: 0;
    border-bottom: 1px solid #ded0e6;
    border-radius: 0;
    background: transparent;
}

.subpage-price .price-options-layout .price-option-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
}

.subpage-price .price-options-layout .price-option-icon img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.subpage-price .price-options-layout .price-option-copy {
    min-width: 0;
}

.subpage-price .price-options-layout .price-option-copy > h3 {
    margin: 0 0 10px;
    padding: 0;
    color: var(--accent, #633a78);
    font-family: var(--serif, serif);
    font-size: 21px;
    line-height: 1.7;
}

.subpage-price .price-plan-description-sub {
    margin: 0 0 24px;
    text-align: center;
    font-size: 15px;
    line-height: 2;
}
.subpage-price .price-options-layout .price-option-copy > p {
    margin: 0;
    line-height: 1.5;
}

.subpage-price .price-options-layout .price-option-copy > p + p {
    margin-top: 16px;
}

/* タブレット */
@media (max-width: 1000px) {
    .subpage-price .price-detail-options .price-options-layout {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 32px;
    }
}

/* スマホでは大見出しを横書きに */
@media (max-width: 767px) {
    .subpage-price .price-detail-options .price-options-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .subpage-price .price-options-layout > h2.price-detail-heading {
        justify-self: start;
        writing-mode: horizontal-tb;
        max-width: 100%;
        letter-spacing: .06em;
    }

    .subpage-price .price-options-layout > h2.price-detail-heading br {
        display: none;
    }

    .subpage-price .price-options-layout > h2.price-detail-heading::before {
        right: auto;
        left: -16px;
    }

    .subpage-price .price-options-layout .price-option-card {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 16px;
        padding: 24px 0;
    }

    .subpage-price .price-options-layout .price-option-icon {
        width: 52px;
        height: 60px;
    }

    .subpage-price .price-options-layout .price-option-icon img {
        width: 48px;
        height: 48px;
    }

    .subpage-price .price-options-layout .price-option-copy > h3 {
        font-size: 18px;
    }
}
/* プラン内容：横5列、端数は中央寄せ */
.general-plan-section .general-plan-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.general-plan-section .general-plan-items > li {
    box-sizing: border-box;
    flex: 0 0 calc((100% - 48px) / 5);
}

/* タブレット：横3列 */
@media (max-width: 1000px) {
    .general-plan-section .general-plan-items > li {
        flex-basis: calc((100% - 24px) / 3);
    }
}

/* スマホ：横2列 */
@media (max-width: 767px) {
    .general-plan-section .general-plan-items > li {
        flex-basis: calc((100% - 12px) / 2);
    }
}
/* 追加費用・オプション：左下の花 */
.subpage-price .price-detail-options {
    position: relative;
    overflow: visible;
    isolation: isolate;

    /* 花の大きさ・位置はこちらで調整 */
    --options-flower-width: 500px;
    --options-flower-left: -100px;
    --options-flower-bottom: -150px;
}

.subpage-price .price-detail-options > .price-options-flower {
    position: absolute;
    left: var(--options-flower-left);
    bottom: var(--options-flower-bottom);
    z-index: 2;
    display: block;
    width: var(--options-flower-width);
    max-width: none;
    height: auto;
    pointer-events: none;
}

/* スマートフォン */
@media (max-width: 767px) {
    .subpage-price .price-detail-options {
        --options-flower-width: 180px;
        --options-flower-left: -20px;
        --options-flower-bottom: -35px;
    }
}
/* プラン：右下の花 */
.subpage-price .price-detail-plans {
    position: relative;
    overflow: visible;
    isolation: isolate;

    /* 大きさ・位置の調整 */
    --plans-flower-width: 500px;
    --plans-flower-right: -100px;
    --plans-flower-bottom: -50px;
}

.subpage-price .price-detail-plans > .price-plans-flower {
    position: absolute;
    right: var(--plans-flower-right);
    bottom: var(--plans-flower-bottom);
    z-index: 2;
    display: block;
    width: var(--plans-flower-width);
    max-width: none;
    height: auto;
    transform: scaleX(-1);
    pointer-events: none;
}

/* スマートフォン */
@media (max-width: 767px) {
    .subpage-price .price-detail-plans {
        --plans-flower-width: 180px;
        --plans-flower-right: -15px;
        --plans-flower-bottom: -35px;
    }
}

/* オプションの花を、次のセクションより手前に表示 */
.subpage-price .price-detail-options {
    position: relative;
    overflow: visible;
    z-index: 2;
}

.subpage-price .price-detail-plans {
    position: relative;
    z-index: 1;
}
/* 料金ページ：プラン概要を上下中央に */
.subpage-price .price-detail-plans .general-plan-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Responsive repair: keep decorative flowers anchored to their photographs. */
@media (max-width: 1100px) {
    .general-story .general-story-visual > img.general-story-flower {
        width: var(--flower-width);
        right: var(--flower-right);
        bottom: var(--flower-bottom);
    }
    .general-home-feature .general-home-feature-visual {
        --flower-top-width: 160px;
        --flower-top-right: -15px;
        --flower-top-offset: -35px;
    }
}
@media (max-width: 1000px) {
    .subpage-contact #urgent h2::before {
        left: -12px;
        top: -5px;
    }
    /* Do not squeeze the phone number into a narrow tablet column. */
    .shared-cta .cta-inner.cta-two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .shared-cta .cta-contact {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }
}
@media (max-width: 767px) {
    .general-story .general-story-visual {
        --flower-width: 150px;
        --flower-right: -10px;
        --flower-bottom: -35px;
    }
    .subpage-contact #urgent .urgent-text-area {
        font-size: 16px;
        text-align: left;
    }
    .general-plan-section .general-plan-summary,
    .general-plan-section .general-plan-details {
        min-width: 0;
    }
}
@media (max-width: 1000px) {
    /* Reserve space for section ornaments so they cannot cover headings/copy. */
    .subpage .sub-content > :is(.contact-flower-divider, .company-flower-divider,
        .company-profile-flower, .flow-first-flower, .flow-prepare-flower,
        .flow-advance-flower, .family-people-flower) {
        /*height: 130px;*/
        --flower-width: 130px;
        --flower-top: 0px;
        --flower-right: 0px;
        --flower-left: 0px;
    }
    .subpage .sub-content > :is(.contact-flower-divider, .company-flower-divider,
        .company-profile-flower, .flow-first-flower, .flow-prepare-flower,
        .flow-advance-flower, .family-people-flower) > img {
        max-height: 130px;
        object-fit: contain;
    }
}
@media (min-width: 768px) and (max-width: 1100px) {
    .general-home-feature .general-home-feature-visual {
        --flower-top-width: 100px;
        --flower-top-offset: -60px;
    }
}
@media (max-width: 767px) {
      .general-venue-message > .general-venue-message-flower {
        left: 250px;
        bottom: -125px;
        width: 200px;
    }
	.general-home-feature .general-home-feature-flower-top {
    top: -70px;
    right: 270px;
}
	.general-home-feature .general-home-feature-flower {
    left: 230px;
    bottom: -110px;
    width: 165px;
}
	.general-plan-section .general-plan-items > li {
    padding: 10px 8px 12px;
}
	.sub-content {
    padding: 0px 0 50px !important;
}
	    .general-story .general-story-visual > img.general-story-flower {
        right: -20px;
        bottom: -65px;
    }

  .sub-content-after-cta .related ul.related-image-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sub-content-after-cta .related ul.related-image-cards > li > a {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: 16px;
    min-height: 0;
    padding: 0;
  }

  .sub-content-after-cta .related .related-card-title {
    min-width: 0;
    padding: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
  }
	.flow-first-flower{
		display: none;
	}
	.subpage-flow .flow-prepare-flower > img {
    top: -50px;
        left: 230px;
}
	.subpage-company .company-flower-divider > img {
    top: -90px;
    right: -40px;
}
	.subpage-company .company-profile-flower > img {
    top: -60px;
    left: 250px;
}
	.subpage-company .company-access-row {
    margin-top: 0px;
}
	.subpage-contact .contact-flower-divider > img {
    top: -90px;
    right: -24px;
}

	
}

/* Inheritance consultation: scoped additions to the shared page design. */

.subpage-inheritance .inheritance-content {
    padding-top: 35px!important;
}

.subpage-inheritance .inheritance-intro {
    text-align: center;
    padding: 20px 0 55px;
}

.subpage-inheritance .inheritance-intro h2 {
    font-size: clamp(25px, 2.3vw, 34px);
    line-height: 1.9;
}

.subpage-inheritance .inheritance-intro h2::before,
.subpage-inheritance .inheritance-free h2::before {
    content: none;
}

.subpage-inheritance .inheritance-intro p {
    max-width: 780px;
    margin: 0 auto 24px;
    line-height: 2.2;
}

.subpage-inheritance .inheritance-lead {
    color: var(--purple);
    font-size: 18px;
}

.subpage-inheritance .inheritance-intro .consultation-button {
    margin-top: 12px;
}

.subpage-inheritance .inheritance-free {
    text-align: center;
    border: 1px solid #e1d3e7;
    border-radius: 12px;
    padding: 40px;
}

.subpage-inheritance .inheritance-eyebrow {
    font-size: 14px;
    color: var(--accent);
    letter-spacing: .12em;
}

.subpage-inheritance .inheritance-note {
    font-size: 12px;
    text-align: left;
    max-width: 850px;
    margin: 22px auto 0;
    line-height: 1.9;
}

.subpage-inheritance .inheritance-section-lead {
    font-family: var(--serif);
    font-size: 21px;
    color: var(--purple);
    line-height: 1.9;
}

.subpage-inheritance .inheritance-worries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 30px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.subpage-inheritance .inheritance-worries li {
    position: relative;
    padding: 0 0 16px 26px;
    margin: 0;
    border-bottom: 1px solid #e1d3e7;
}

.subpage-inheritance .inheritance-worries li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.subpage-inheritance .inheritance-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.subpage-inheritance .inheritance-topic {
    background: white;
    border: 1px solid #e1d3e7;
    border-radius: 10px;
    padding: 28px;
    min-width: 0;
}

.subpage-inheritance .inheritance-number {
    display: block;
    color: var(--accent);
    font-size: 28px;
    font-family: var(--serif);
    line-height: 1.4;
}

.subpage-inheritance .inheritance-topic h3 {
    margin: 12px 0 16px;
}

.subpage-inheritance .inheritance-topic p {
    margin: 0;
}

.subpage-inheritance .inheritance-steps {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.subpage-inheritance .inheritance-steps li {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 20px;
    padding: 26px 0;
    margin: 0;
    border-top: 1px solid #d8c8df;
}

.subpage-inheritance .inheritance-steps h3 {
    margin: 0 0 12px;
}

.subpage-inheritance .inheritance-steps p {
    margin: 0;
}

@media(max-width:767px) {
    .subpage-inheritance .inheritance-intro {
        padding: 0px 0 40px;
    }
    .subpage-inheritance .inheritance-intro p {
        text-align: left;
        font-size: 18px;
    }
    .subpage-inheritance .inheritance-topic-grid,
    .subpage-inheritance .inheritance-worries {
        grid-template-columns: 1fr;
    }
    .subpage-inheritance .inheritance-topic {
        padding: 22px;
    }
    .subpage-inheritance .inheritance-free {
        padding: 30px 20px;
    }
    .subpage-inheritance .inheritance-free h2 {
        font-size: 24px;
    }
    .subpage-inheritance .inheritance-section-lead {
        font-size: 20px;
    }
    .subpage-inheritance .inheritance-steps li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 14px;
    }
    .subpage-inheritance .floating-phone {
        gap: 8px;
    }
    .subpage-inheritance .floating-phone span {
        font-size: 11px;
    }
    .subpage-inheritance .floating-phone strong {
        font-size: 19px;
    }
}


/* Full-width background for the free consultation notice. */

.subpage-inheritance .inheritance-free {
    background: var(--pale, #f4f3f9);
    border: none;
    border-radius: 0;
    box-shadow: 0 0 0 100vmax var(--pale, #f4f3f9);
    clip-path: inset(0 -100vmax);
}


/* Topic headings: icon left, title right. */

.subpage-inheritance .inheritance-topic-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.subpage-inheritance .inheritance-topic-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}

.subpage-inheritance .inheritance-topic-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.subpage-inheritance .inheritance-topic-heading h3 {
    min-width: 0;
    margin: 0;
}

@media (max-width: 767px) {
    .subpage-inheritance .inheritance-topic-heading {
        gap: 12px;
    }
    .subpage-inheritance .inheritance-topic-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }
}

.subpage-inheritance .inheritance-free {
  position: relative;

  /* 花のサイズ・位置 */
  --free-flower-width: 180px;
  --free-flower-top: -50px;
  --free-flower-right: -40px;
}

.subpage-inheritance .inheritance-free > .inheritance-free-flower {
  position: absolute;
  top: var(--free-flower-top);
  right: var(--free-flower-right);
  width: var(--free-flower-width);
  max-width: none;
  height: auto;
  pointer-events: none;
}

/* スマホ */
@media (max-width: 767px) {
  .subpage-inheritance .inheritance-free {
    --free-flower-width: 90px;
    --free-flower-top: -25px;
    --free-flower-right: -10px;
  }
}
.subpage-inheritance .inheritance-free {
  position: relative;
  isolation: isolate;
  overflow: visible;
  clip-path: none;
  box-shadow: none;
  background: transparent;

  --free-flower-width: 300px;
  --free-flower-left: -40px;
}

/* 背景だけを横いっぱいに広げる */
.subpage-inheritance .inheritance-free::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pale, #f4f3f9);
  box-shadow: 0 0 0 100vmax var(--pale, #f4f3f9);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}

/* 花の中央をセクション上端に合わせる */
.subpage-inheritance .inheritance-free > .inheritance-free-flower {
  position: absolute;
  top: 0;
  left: var(--free-flower-left);
  width: var(--free-flower-width);
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 767px) {
  .subpage-inheritance .inheritance-free {
    --free-flower-width: 170px;
    --free-flower-left: -45px;
  }
}

.subpage-inheritance .inheritance-topics {
  position: relative;
  overflow: visible;

  --topics-flower-width: 350px;
  --topics-flower-right: -40px;
}

.subpage-inheritance .inheritance-topics > .inheritance-topics-flower {
  position: absolute;
  top: 0;
  right: var(--topics-flower-right);
  width: var(--topics-flower-width);
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 767px) {
  .subpage-inheritance .inheritance-topics {
    --topics-flower-width: 200px;
    --topics-flower-right: -60px;
  }
}
.price-basic-card .price-basic-note {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
  color: #777;
}