html[lang="ja"] {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #231815;
    background: #f0f5f5;
    overflow-x: hidden;
}

@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }
}

@media screen and (max-width: 576px) {
    body {
        font-size: 14px;
    }
}

a {
    color: #3ab0b4;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    margin-bottom: 20px;
}

/* ======================
   Header
====================== */

header {
    position: relative;
    border-bottom: 1px solid #bddfe0;}

#head_wrap {
    padding-top: 2.1em;
}

.logo_inner {
    max-width: 980px;
    margin: 0 auto;
    height: 60px;
}

.logo_inner .ttl {
    font-size: 0.56rem;
    color: #2c2c2c;
    font-weight: 600;
    letter-spacing: .1rem;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    #head_wrap {
        padding: 1.2em 0;
    }

    .logo_inner {
        width: 94%;
        margin: 0 3%;
        height: auto;
    }

    .logo_inner .logo img {
        width: 120px;
    }
    .logo_inner .ttl {
        letter-spacing: 0;
    }
}

/* ======================
   Common
====================== */

.contents_wrap {
    width: 100%;
}

.contents_wrap.bg_white {
    background: #fff;
}

.section_inner {
    max-width: 978px;
    margin: auto;
    padding: 50px 50px 20px;
}

.contents_wrap.summary h2 {
    color: #3ab0b4;
    text-align: center;
    margin: 0 auto 2.4rem;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.8;
}

.section_inner a {
    text-decoration: underline;
}
.section_inner a:hover {
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .section_inner {
        padding: 2rem 4% 1rem;
    }

    .contents_wrap.summary h2 {
        font-size: 1.26rem;
        line-height: 1.6;
        margin: 0 auto 0.4rem;
    }
}

/* ======================
   FV
====================== */

#fv .section_inner {
    position: relative;
    padding: 0;
}

#fv .section_inner.key {
    padding: 30px 0 0;
}

#fv h1 {
    max-width: 878px;
    margin: 0 auto 1rem;
}

#fv h1 img {
    width: 100%;
}

@media screen and (max-width: 768px) {
    #fv .section_inner {
        padding: 0 0 1rem;
    }

    #fv .section_inner.key {
        padding: 0;
    }

    #fv h1 {
        margin: 12px 4% 0;
    }
}

/* ======================
   PRICE TABLE
====================== */

.section_title{
    position:relative;
    margin-top: 0;
    margin-bottom:30px;
    padding-left:18px;
    font-size:1.5rem;
    font-weight:600;
}

.section_title::before{
    content:"";
    position:absolute;
    left:0;
    top:1px;
    width:8px;
    height:40px;
    border-radius:6px;
    background:#3ab0b4;
}

.price_table_wrap{
    overflow-x:auto;
}

.price_table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.price_table th,
.price_table td{
    border:1px solid #d8d8d8;
    padding:22px 18px;
    text-align:center;
    vertical-align:middle;
}

.price_table tr:first-child th{
    background:#edf8f8;
    font-weight:600;
}
.empty_cell{
    border: none !important;
    background: transparent;
}
.side_title{
    width:130px;
    background:#f6f6f6;
    font-weight:500;
}

.center_cell{
    padding:32px 20px;
}

.price_main{
    margin:0;
    font-weight:600;
    font-size:1.02rem;
    line-height:1.4;
}

.price_main span{
    color:#3ab0b4;
    font-size:1.6rem;
    line-height:1;
}

.price_note{
    margin: 5px 0 0;
    font-size:.9rem;
    line-height:1.7;
}

.price_attention{
    margin: 18px 0 0;
    font-size:.9rem;
    line-height:1.7;
    color: #666;
}
.price_attention span{
    display: block;
}

@media screen and (max-width:768px){
    .section_title{
        font-size:1.16rem;
        padding-left:14px;
    }

    .section_title::before{
        top: 0;
        bottom: 0;
        height: auto;
    }

    .price_table th,
    .price_table td{
        padding:16px 2px;
        font-size: 0.8rem;
        line-height: 1rem;
    }
    .price_table tr:first-child th{
        padding: 8px 2px;
    }
    .side_title{
        width:60px;
        font-size:12px;
    }

    .monthly_fee{
        writing-mode: vertical-rl;
        text-orientation: upright;
        width: 26px;
        min-width: 26px;
    }
    .price_main{
        font-size:0.88rem;
    }

    .price_main span{
        font-size:1.2rem;
    }

    .price_note{
        font-size:.88rem;
        padding: 0 10px;
        margin: 8px 0 0;
    }

    .price_attention{
        font-size:0.88rem;
        margin: 12px 0 -10px;
    }
    .price_attention span{
        display:inline;
    }
}

/* ======================
   Merit
====================== */

.merit_title {
    color: #3ab0b4;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 40px;
}

.merit_list {
    display: flex;
    gap: 16px;
    margin: 0 0 20px;
    padding: 0;
}

.merit_item {
    flex: 1;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    min-width: 242px;
}

.merit_item dt {
    background: #3ab0b4;
    color: #fff;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 22px 10px;
}

.merit_item dd {
    margin: 0;
    padding: 16px;
    text-align: center;
    background: #fff;
    border: 2px solid #d9d9d9;
    border-top: none;
    border-radius: 0 0 18px 18px;
    font-size: 1.54rem;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    min-height: 156px;
}

.merit_item dd span {
    display: block;
    margin-top: 12px;
    color: #666;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.5;
}
.merit_item dd span.merit2 {
    padding-top: 0.9rem;
}
.pc_br {
    display: inline;
}
.sp_br {
    display: none;
}
.merit_note {
    margin: 5px 0 0;
    font-size: .9rem;
    line-height: 1.7;
    color: #666;
}
@media screen and (max-width:768px){

    .merit_title {
        font-size: 1.1rem;
        margin: 0 0 20px;
    }

    .merit_list {
        flex-direction: column;
        gap: 8px;
    }

    .merit_item{
        display:flex;
        flex-direction:row;
        border-radius:12px;
    }

    .merit_item dt{
        width:100px;
        font-size: 0.9rem;
        border-radius:12px 0 0 12px;
        padding: 10px 8px;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .merit_item dd{
        flex:1;
        border:1px solid #d9d9d9;
        border-left:none;
        border-radius:0 12px 12px 0;
        text-align:left;
        font-size: 1.1rem;
        min-height: auto;
    }
    .merit_item dd span {
        font-size: .88rem;
        margin-top: 4px;
    }
    .merit_item dd span.merit2 {
        padding-top: 0;
    }
    .merit_note {
        font-size: .88rem;
    }
    .pc_br {
        display: none;
    }
    .sp_br {
        display: inline;
    }
}


/* ==========================
   GALLERY
========================== */

.gallery_wrap {
    margin-top: 30px;
    overflow: hidden;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.houseSwiper {
    overflow: visible;
    padding: 0 80px;
}

.houseSwiper .swiper-slide {
    width: 640px;
    aspect-ratio: 16 / 11;

    overflow: hidden;
    border-radius: 20px;

    opacity: .5;
    transform: scale(.92);
    transition: .3s;
}

.houseSwiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}
.houseSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    cursor: pointer;
}

.houseSwiper .swiper-slide:hover img {
    transform: scale(1.05);
}
.gallery_note {
    margin-top: 12px;
    font-size: .9rem;
    color: #666;
}

/* ==========================
   MODAL
========================== */

#galleryModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#galleryModal.active {
    display: flex;
}

.modal_content {
    width: 90%;
    max-width: 760px;
}

.modal_content img {
    display: block;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
}

.modal_close {
    width: 70px;
    height: 70px;
    margin-top: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(40,40,40,.95);
    color: #fff;
    font-size: 34px;
    font-weight: 300;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

/* ==========================
   SP
========================== */

@media screen and (max-width:768px){
    .houseSwiper {
        padding: 0 20px;
    }
    .houseSwiper .swiper-slide {
        width: 280px;
    }
    .houseSwiper img {
        height: 220px;
        border-radius: 15px;
    }

    .modal_content {
        width: 92%;
    }

 .modal_close{
        width: 44px;
        height: 44px;
        margin-top: 10px;
        font-size: 22px;
        background: rgba(40,40,40,.95);
    }

    .gallery_note {
        font-size: .88rem;
        margin-bottom: 0;
    }
}


/* ======================
   FLOW
====================== */
#condition .section_inner {
    padding-bottom: 50px;
}
.flow_img{
    display: block;
    margin: 0 auto;
    text-align: center;
}
.flow_img img{
    width: 90%;
    max-width: 480px;
}

.flow_list{
    margin:40px 6% 3rem;
    padding:0;
    list-style:none;
}

.flow_item{
    display:flex;
    align-items:center;
    border:3px solid #d8ebed;
    border-radius:18px;
    padding:20px 22px;
    min-height:70px;
}

.flow_step,
.flow_check{
    width:62px;
    height:62px;
    border-radius:50%;
    flex-shrink:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#fff;
}

.flow_step{
    background:#3ab0b4;
}

.flow_step span{
    font-size:1.3rem;
    line-height:1;
    font-weight: 600;
    margin-top: -3px;
}

.flow_check{
    background:#23a6e8;
}

.flow_check img{
    display:block;
    width:100%;
    height:100%;
}

.flow_content{
    margin-left:22px;
}

.flow_title{
    margin:0;
    font-size:1.42rem;
    font-weight:600;
    line-height:1.4;
}

.flow_title span{
    color:#3ab0b4;
    font-size:1rem;
}

.flow_note{
    margin:8px 0 0;
    font-size:.9rem;
    line-height:1.7;
    color: #666;
}

.flow_arrow{
    width:0;
    height:0;
    margin:12px auto;
    border-left:12px solid transparent;
    border-right:12px solid transparent;
    border-top:10px solid #3ab0b4;
}
@media screen and (max-width:768px){
    
    .flow_list{
        margin:12px 0 2rem;
    }
    .flow_item{
        padding:16px;
        min-height:76px;
    }

    .flow_step,
    .flow_check{
        width:54px;
        height:54px;
    }

    .flow_step{
        font-size:.85rem;
    }

    .flow_step span{
        font-size:1.2rem;
    }

    .flow_content{
        margin-left:14px;
    }

    .flow_title{
        font-size:1.1rem;
    }
    .flow_title.mgb-8sp{
        margin-bottom: 8px;
    }
    .flow_title span{
        display:block;
        font-size:.88rem;
    }

    .flow_note{
        font-size:.88rem;
        line-height:1.6;
    }

    .flow_arrow{
        border-left:10px solid transparent;
        border-right:10px solid transparent;
        border-top:8px solid #3ab0b4;
        margin:8px auto;
    }
}

/* ======================
   Footer
====================== */

footer {
    text-align: center;
    padding: 1rem 0 5rem;
    background: #3ab0b4;
    position: relative;
}

footer .contents {
    padding: 1rem 50px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 1px;
}
footer .contents a {
    color: #fff;
    margin-top: 1rem;
    margin-right: 1.5rem;
    display: inline-block;
    border-bottom: 0.1rem solid rgb(255, 255, 255);
    transition: 0.2s;
}
footer .contents a:hover {
    opacity: 0.7;
}
footer p {
    margin: 0;
    color: #fff;
    font-size: 0.8rem;
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    footer {
        padding: .5rem 0 4rem;
    }
    footer .contents {
        padding: 1rem 1rem 3rem;
        font-size: 0.8rem;
    }    

    footer p {
        font-size: 3vw;
    }
}

/* ======================
   PAGE TOP
====================== */

.footer-pagetop {
    position: absolute;
    right: 80px;
    top: -4.6rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    text-decoration: none;
}

.footer-pagetop.show {
    opacity: 1;
    visibility: visible;
}

.footer-pagetop-button {
    width: 4.2rem;
    height: 4.2rem;
    border: 1px solid #3ab0b4;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.footer-pagetop-icon {
    width: 18px;
    height: 12px;
    fill: #3ab0b4;
    margin-bottom: 8px;
}

.footer-pagetop-text {
    color: #3ab0b4;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
}

.footer-pagetop:hover .footer-pagetop-button {
    background: #eaf6f7;
}

@media screen and (max-width:768px){
    .footer-pagetop {
        right: 3%;
        top: -4.4rem;
    }

    .footer-pagetop-button {
        width: 4rem;
        height: 4rem;
    }

    .footer-pagetop-icon {
        width: 14px;
        height: 10px;
        margin-bottom: 4px;
    }

    .footer-pagetop-text {
        font-size: 0.86rem;
    }
}