@charset "utf-8";

/* location */

/* 共通 */
.ttl {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}

.sub_ttl {
    font-size: 20px;
    margin-top: 30px;
    line-height: 2.4rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.box {
    margin-bottom: 100px;
}

.box.last {
    margin-bottom: 0;
}

@media only screen and (max-width: 640px) {
    .ttl {
        max-width: 260px;
        width: 100%;
        margin: 0 auto;
    }

    .sub_ttl {
        font-size: 16px;
        margin-top: 20px;
        line-height: 1.8rem;
    }

    .box {
        margin-bottom: 80px;
    }
}


/* main */

.main {
    background-image: url(../img/mv-pc.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 13% 0;
    position: relative;
}

.main_ttl {
    max-width: 330px;
    width: 100%;
    margin: 0 auto;
}

.midashi h2 {
    font-size: 23px;
    line-height: 2.6rem;
    letter-spacing: 0.1em;
    padding-top: 90px;
    text-align: center;
}

.midashi p {
    font-size: 16px;
    line-height: 2rem;
    letter-spacing: 0.1em;
    padding-top: 20px;
    padding-bottom: 80px;
    text-align: center;
}

@media only screen and (max-width: 640px) {
    .main {
        background-image: url(../img/mv-sp.jpg);
    }

    .main_ttl {
        max-width: 180px;
        width: 100%;
        margin: 0 auto;
    }

    .midashi h2 {
        font-size: 14px;
        line-height: 1.8rem;
        letter-spacing: 0.1em;
        padding-top: 50px;
    }

    .midashi p {
        font-size: 12px;
        line-height: 1.5rem;
        letter-spacing: 0.1em;
        padding-top: 12px;
        padding-bottom: 50px;
    }


}

/* positioning*/

.position_ttl {
    margin-bottom: 30px;
}

.position_ttl .ttl {
    margin: 0;
}

.position_ttl .sub_ttl {
    text-align: left;
}



.position_text {
    font-size: 16px;
    line-height: 2rem;
    letter-spacing: 0.05em;
}

.position_inner.inner {
    display: none;
}

.position_inner {
    width: 100%;
}

.position_box {
    width: clamp(61.563rem, 20.005rem + 65.12vw, 99.375rem);
    position: relative;
    display: flex;
    align-items: stretch;
    margin-bottom: 40px;

}

.right {
    position: absolute;
    right: 0;
    top: 338px;
}


.left_contents {
    width: 30%;
    padding-right: 20px;
}

.right_contents {
    width: 70%;
}


.flex_box {
    display: flex;
    width: 100%;
    object-fit: cover;
}

.left_img {
    width: 70%;
    margin-right: 9px;
}

.right_img {
    width: 30%;
}

.right_img img:first-child {
    margin-bottom: 9px;
}

.right_contents p {
    margin-top: 8px;
    text-align: right;
    font-size: 12px;
}



.map_img {
    width: 73%;
    margin: 0 auto;
    margin-top: 560px;
}

.position_area {
    background-image: url(../img/bk1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0 0 100px;
    position: relative;
    border-bottom: 2px solid #001b5b;

}

@media (max-width: 1020px) and (min-width:641px) {

    .position_inner {
        position: initial;
    }

    .right {
        position: initial;
    }

    .position_box {
        display: block;

    }

    .position_area {
        padding: 0 0 150px;
        border-bottom: 1px solid #001b5b;
    }

    .position_ttl {
        margin-bottom: 20px;
    }

    .position_ttl .sub_ttl {
        text-align: center;
    }

    .position_ttl .ttl {
        margin: 0 auto;
    }

    .position_text {
        text-align: center;
    }

    .position_box {
        display: block;
        max-width: 1200px;
        width: 94%;
        margin: 0 auto;
    }

    .left_contents {
        width: 100%;
        margin-bottom: 70px;
    }

    .right_contents {
        width: 100%;
    }

    .flex_box {
        display: block;
        width: 100%;
    }

    .left_img {
        width: 100%;
        margin-bottom: 4px;
    }


    .right_img {
        width: calc(50% - 2px);
        display: flex;
    }

    .right_img img {
        width: 100%;
    }

    .right_img img:first-child {
        margin-bottom: 0px;
        margin-right: 4px;
    }


    .right_contents p {
        margin-top: 8px;
        text-align: right;
        font-size: 15px;
    }

    .map_img {
        width: 100%;
        margin-top: 70px;
    }
}

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

    .position_area {
        padding: 0 0 80px;
        border-bottom: 1px solid #001b5b;
    }


    .position_inner {
        position: initial;
    }

    .right {
        position: initial;
    }

    .position_ttl {
        margin-bottom: 20px;
    }

    .position_ttl .sub_ttl {
        text-align: center;
    }

    .position_ttl .ttl {
        margin: 0 auto;
        width: 209px;
    }

    .position_text {
        font-size: 12px;
        line-height: 1.8rem;
        letter-spacing: 0.05em;
        text-align: center;
    }

    .position_box {
        display: block;
        max-width: 1200px;
        width: 94%;
        margin: 0 auto;
    }

    .left_contents {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
    }

    .right_contents {
        width: 100%;
    }

    .flex_box {
        display: block;
        width: 100%;
    }

    .left_img {
        width: 100%;
        margin-bottom: 4px;
    }


    .right_img {
        width: calc(50% - 2px);
        display: flex;
    }

    .right_img img {
        width: 100%;
    }

    .right_img img:first-child {
        margin-bottom: 0px;
        margin-right: 4px;
    }


    .right_contents p {
        margin-top: 8px;
        text-align: right;
        font-size: 12px;
    }

    .right_contents p {
        margin-top: 8px;
        text-align: right;
        font-size: 8px;
    }

    .map_img {
        width: 100%;
        margin-top: 30px;
    }
}

/* -----------------
アクセス
------------- */
.access_ttl {
    margin-bottom: 70px;
}

.access_ttl .ttl {
    max-width: 183px;
}

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

    .access_ttl .ttl {
        max-width: 122px;
    }

    .access_ttl {
        margin-bottom: 30px;
    }

}

/* ------------------
Life Information 
---------------------*/

.life_area {
    background-image: url(../img/bk2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 150px 0;
    position: relative;
    border-bottom: 2px solid #001b5b;
    border-top: 2px solid #001b5b;
}

.life_ttl .ttl {
    max-width: 466px;
}

.life_box {
    margin: 70px 0;
}

.life_box:last-child {
    margin-bottom: 0;
}

.img_box {
    display: flex;
}

.life_img {
    margin-right: 2%;
}

.life_img:last-child {
    margin-right: 0;
}

.life_img p {
    margin-top: 15px;
    line-height: 1.5rem;
    font-size: 15px;
}

.life_img span {
    font-size: 30px;
    padding: 0 0.08em;
}

.lifeimg_box h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    display: inline-block;
    background: linear-gradient(90deg, #385db4, #001b5b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.tablebox {
    width: 100%;
    margin: 40px auto 0 auto;
    padding: 30px 0;
    background-color: #fff;
    box-shadow: 6px 6px 10px 0px rgba(164, 171, 182, 0.4);
}

.two-col-table {
    width: 100%;
    border-collapse: collapse;
    display: flex;
}

.two-col-table tbody {
    flex: 1;
    /* ← 均等幅で割り当て */
    padding: 0 30px;
    /* ← 左右の余白調整 */
    box-sizing: border-box;
}

/* 左側のtbodyだけ右に線を入れる */
.two-col-table tbody:first-child {
    border-right: 1px solid #ccc;
}

.two-col-table tbody td,
.two-col-table tbody th {
    position: relative;
    padding-bottom: 3px;
    /* 線と文字が重ならないように少し余白 */
}

.two-col-table tbody td::after,
.two-col-table tbody th::after {
    content: "";
    position: absolute;
    left: 0;
    /* 文字のベースライン近くに配置 */
    width: 100%;
    border-bottom: 1px dotted #c3c3c3;
    bottom: 0.5em;
}

.two-col-table th,
.two-col-table td {
    text-align: left;
    padding: 4px 0;
    white-space: nowrap;
    font-weight: normal;
}


.two-col-table tbody tr {
    line-height: 2.2rem;
    letter-spacing: 0.03em;
    width: 600px;
}

.two-col-table tbody th {
    font-size: 15px;
    text-align: left;
    width: 350px;
}

.two-col-table tbody td {
    font-size: 15px;
    text-align: right;
    width: 35%;
}


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

    .life_ttl .ttl {
        max-width: 311px;
    }

    .life_box {
        margin: 30px 0;
    }

    .lifeimg_box h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .life_area {
        padding: 80px 0;
        border-bottom: 1px solid #001b5b;
        border-top: 1px solid #001b5b;
    }



    .img_box {
        display: block;
    }

    .life_img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .life_img p {
        margin-top: 8px;
        line-height: 1.4rem;
        font-size: 14px;
        text-align: center;
    }


    .tablebox {
        width: 100%;
        margin: 30px auto 0 auto;
        padding: 11px 0 20px 0;
    }

    .two-col-table {
        display: block;
        /* ← 2列を解除して縦並びに */
    }


    .two-col-table tbody:first-child {
        border-right: none;
    }

    .two-col-table tbody {
        display: block;
        padding: 0 15px;
        border-right: none;
        width: 100%;
    }

    .two-col-table tbody tr {
        display: flex;
        line-height: 1.3rem;
        justify-content: space-between;
        align-items: flex-start;
        /* 高さ揃え */
        width: 100%;
        padding-top: 5px;
        border-bottom: 1px dotted #c3c3c3;
        bottom: 0.5em;
    }

    /* .two-col-table tbody tr:first-child {
        padding-top: 0;
    } */

    .two-col-table tbody th,
    .two-col-table tbody td {
        box-sizing: border-box;
        word-break: break-word;
        /* 長い単語は改行 */
        white-space: normal;
        /* 折り返しを許可 */
    }

    .two-col-table tbody th {
        width: 61%;
        /* 施設名を広めに */
        text-align: left;
        font-weight: normal;
        font-size: 12px;
    }

    .two-col-table tbody td {
        width: 39%;
        /* 距離側は少し狭め */
        text-align: right;
        font-size: 12px;
    }

    .two-col-table tbody td::after,
    .two-col-table tbody th::after {
        border-bottom: none;

    }

}


.map_ttl {
    max-width: 123px;
    margin: 0 auto;
}

.map2_img {
    max-width: 1000px;
    margin: 70px auto 0 auto;
}

@media only screen and (max-width: 640px) {
    .map_ttl {
        max-width: 83px;
    }

    .map2_img {
        width: 100%;
        margin: 30px auto 0 auto;
    }
}