@charset "UTF-8";

/* タブ切り替え */

input[name="tab_item"] {
    display: none;
}

.switch {
    display: flex;
    justify-content: center;
}

.tab_item {
    line-height: 1em;
    font-size: 1.6rem;
    display: inline-block;
    padding: 0 22px 0 40px;
    background: url('/common/upload_data/tenreisyacojp/image/tab-arrow.png')no-repeat left 20px center;
    border-left: dotted 2px var(--i_txt_color);
    cursor: pointer;
    position: relative;
    font-family: "Zen Maru Gothic", serif !important;
    font-weight: 700 !important;
}

.switch>div:last-of-type .tab_item {
    border-right: dotted 2px var(--i_txt_color);
}

input[id^="hall"]:checked+.tab_item::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -10px;
    left: 5%;
    width: 90%;
    height: 2px;
    border-bottom: 2px solid var(--i_main_color);
    pointer-events: none;
}

#tab .content {
    display: none;
}

#tab:has(#hall1:checked) #hall1_ct,
#tab:has(#hall2:checked) #hall2_ct,
#tab:has(#hall3:checked) #hall3_ct,
#tab:has(#hall4:checked) #hall4_ct,
#tab:has(#hall5:checked) #hall5_ct {
    display: block;
}

main:has(input#hall1:checked) #ha2+section #hall1_ct_2,
main:has(input#hall2:checked) #ha2+section,
main:has(input#hall3:checked) #ha2+section,
main:has(input#hall4:checked) #ha2+section,
main:has(input#hall5:checked) #ha2+section {
    display: none;
}

@media screen and (max-width: 900px) {
    .switch {
        flex-direction: column;
        align-items: center;
    }

    .tab_item {
        border: none !important;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    input[id^="hall"]:checked+.tab_item::before {
        display: none;
    }

    .switch>div {
        width: 100%;
        text-align: center;
    }

    .switch>div:has(input[id^="hall"]:checked) {
        background: var(--i_main_color);
        color: #fff;
    }

    .switch>div:has(input[id^="hall"]:checked) .tab_item {
        filter: brightness(0) invert(1);
    }

    #tab .content {
        padding-top: 30px;
    }
}

/* コンテンツの中身 */
#ha+section>.content_wrapper,
#ha2+section>.content_wrapper {
    max-width: 1020px !important;
}

#tab .content,
#tab .content2 {
    padding-top: 70px;
    text-align: center;
}

#tab .content h1,
#tab .content2 h1 {
    font-family: "Zen Maru Gothic", serif !important;
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--i_main_color);
    padding-bottom: 30px;
}

#tab .content h2,
#tab .content2 h2 {
    padding: 10px 9px 12px;
    background: var(--i_sub2_color);
    border-top: 2px solid var(--i_main_color);
    font-size: 2rem;
    text-align: left;
    font-family: "Zen Maru Gothic", serif !important;
    font-weight: 700 !important;
    margin: 80px 0 10px;
}

#tab .content h3,
#tab .content2 h3 {
    font-family: "Zen Maru Gothic", serif !important;
    font-weight: 700 !important;
    font-size: 1.9rem;
    line-height: 1.5;
}

#tab .content figure+div h3,
#tab .content2 figure+div h3 {
    font-weight: 600;
}

#tab .content h2 span,
#tab .content2 h2 span {
    display: block;
    border-left: 8px solid var(--i_main_color);
    padding-left: 12px;
}

#tab .content p,
#tab .content2 p {
    font-size: 1.5rem;
}

#tab .content>p,
#tab .content2>p {
    padding-bottom: 20px;
}

#tab .content figure,
#tab .content2 figure {
    padding-top: 30px;
}

#tab .content .flex,
#tab .content2 .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 50px 4%;
}

#tab .content .flex dl,
#tab .content2 .flex dl {
    width: calc(92%/3);
    background: var(--i_sub2_color);
    border-top: 5px solid var(--i_main_color);
    border-bottom: 1px solid var(--i_main_color);
}

#tab .content .flex dt,
#tab .content2 .flex dt {
    position: relative;
    transition: 0.5s;
}

#tab .content .flex dt::before,
#tab .content2 .flex dt::before {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    background: url("/common/upload_data/tenreisyacojp/image/lightbox-popup.png") no-repeat bottom right;
    pointer-events: none;
}

#tab .content .flex dt:hover,
#tab .content2 .flex dt:hover {
    opacity: 0.8;
}

#tab .content .flex dt img,
#tab .content2 .flex dt img {
    height: 255px;
    object-fit: cover;
}

#tab .content .flex dd,
#tab .content2 .flex dd {
    padding: 10px 15px 12px;
}

#tab .content .flex dd p,
#tab .content2 .flex dd p {
    font-size: 1.4rem;
    border-top: dotted 1px #7c7c7c;
    padding-top: 2px;
    margin-top: 6px;
}

#tab .content .btn,
#tab .content2 .btn {
    font-family: "Zen Maru Gothic", serif !important;
    font-weight: 700 !important;
    border: solid 1px var(--i_main_color);
    position: relative;
    font-size: 1.55rem;
    letter-spacing: 0.1rem;
    margin-top: 50px;
}

#tab .content .btn::before,
#tab .content2 .btn::before {
    position: absolute;
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    bottom: -6px;
    left: 0;
    background: var(--i_main_color);
    pointer-events: none;
}

#tab .content .btn a:first-of-type,
#tab .content2 .btn a:first-of-type {
    display: block;
    padding: 18px 5px;
    position: relative;
}

#tab .content .btn a:first-of-type::before,
#tab .content2 .btn a:first-of-type::before {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    right: 20px;
    background: url("/common/upload_data/tenreisyacojp/image/mitorizu-icon.png") no-repeat center right;
    pointer-events: none;
}

#tab .content .btn a span,
#tab .content2 .btn a span {
    position: relative;
    padding-left: 25px;
}

#tab .content .btn a span::before,
#tab .content2 .btn a span::before {
    content: ">";
    display: block;
    position: absolute;
    left: 0;
    top: 35%;
    color: #bf9348;
    font-weight: 400;
    font-size: 2.5rem;
    transform: translateY(-50%);
    pointer-events: none;
}

#tab .content .btn a,
#tab .content2 .btn a {
    transition: 0.4s ease-in-out;
}

#tab .content .btn a:hover,
#tab .content2 .btn a:hover {
    opacity: 0.8;
}

#tab .gmap {
    margin-top: 50px;
}

#tab .gmap iframe {
    width: 100%;
    max-height: 360px;
}

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

    #tab .content h1,
    #tab .content2 h1 {
        font-size: 2.3rem;
        padding-bottom: 10px;
    }

    #tab .content h2,
    #tab .content2 h2 {
        padding: 8px 9px 10px;
        font-size: 1.9rem;
        margin: 50px 0 10px;
    }

    #tab .content .flex,
    #tab .content2 .flex {
        row-gap: 20px;
    }

    #tab .content .flex dd p,
    #tab .content2 .flex dd p {
        font-size: 1.45rem;
    }

    #tab .content>p,
    #tab .content2>p {
        text-align: left;
        line-height: 1.4;
    }

    #tab .content figure,
    #tab .content2 figure {
        padding-top: 0;
    }

    #tab .content .flex dl,
    #tab .content2 .flex dl {
        width: 100%;
        max-width: none;
    }

    #tab .content .flex dt img,
    #tab .content2 .flex dt img {
        height: 190px;
        width: 100%;
    }

    #tab .content .btn a:first-of-type,
    #tab .content2 .btn a:first-of-type {
        padding: 12px 5px;
    }

    #tab .gmap {
        margin-top: 10px;
    }
}

/* 高屋ホール */
#hall4_ct>div figure {
    padding-top: 0 !important;
}

#hall4_ct>div figure img {
    width: 100%;
    max-width: 980px;
}

@media screen and (max-width: 900px) {
    #hall4_ct>div figure {
        padding-bottom: 50px;
    }
}

/* プライベートハウス家族葬専用式場(一戸建て) */
.block_html ul li {
    list-style-type: none;
    padding-left: 0;
}

[id^="hall5_ct"] h1 span {
    font-size: 1.8rem;
    display: block;
    line-height: 1;
}

[id^="hall5_ct"] h2+ul {
    text-align: left;
}

[id^="hall5_ct"] h2+ul li:first-of-type {
    position: relative;
    padding-left: 15px;
}

[id^="hall5_ct"] h2+ul li:first-of-type:before,
[id^="hall5_ct"] h2+ul li:first-of-type:after {
    content: "";
    display: block;
    position: absolute;
    background: var(--i_sub_color);
    height: 15px;
    top: calc(50% - 7.5px);
}

[id^="hall5_ct"] h2+ul li:first-of-type:before {
    width: 5px;
    left: 0;
}

[id^="hall5_ct"] h2+ul li:first-of-type:after {
    width: 1px;
    left: 6px;
}

[id^="hall5_ct"] h2+ul li:last-of-type {
    text-align: left;
    border: dotted 1px #d1d1d1;
    padding: 18px;
    margin: 10px 0 45px;
    font-size: 1.4rem;
    line-height: 1.4;
}

[id^="hall5_ct"]>div:nth-of-type(2) .flex dl:last-of-type dt::before {
    display: none;
}

[id^="hall5_ct"]>div:nth-of-type(2) .flex dl:last-of-type dd ul {
    border: 1px solid var(--i_txt_color);
}

[id^="hall5_ct"]>div:nth-of-type(2) .flex dl:last-of-type dd ul li:not(:last-of-type) {
    border-bottom: 1px solid var(--i_txt_color);
}

[id^="hall5_ct"]>div:nth-of-type(2) .flex dl:last-of-type dt {
    font-family: "Zen Maru Gothic", serif !important;
    font-weight: 700 !important;
    margin-top: 10px;
}

[id^="hall5_ct"]>div:nth-of-type(2) .flex dl:last-of-type dt::before {
    display: none !important;
}

@media screen and (max-width: 900px) {
    [id^="hall5_ct"]>div:nth-of-type(2) .flex dl:last-of-type {
        margin-bottom: 20px;
    }
}

/* ポップアップ */
.popup {
    background: rgba(58, 57, 55, 0.8);
}

.popclose {
    display: none;
}

.popimgwrap {
    padding-bottom: 40px;
    cursor: pointer;
}

.popimgwrap::before {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    background: url("/common/upload_data/tenreisyacojp/image/close.png") no-repeat bottom right;
    opacity: 0.6;
    transition: 0.3s ease-in-out;
    pointer-events: none;
}

.popimgwrap:hover:before {
    opacity: 1;
}

.popimg img {
    border: 3px solid #fff;
    border-radius: 5px;
}

/* 画像角丸 */
figure img {
    border-radius: 20px;
}

.block_image_1 img {
    border-radius: 0 !important;
}