/*============================
facility
============================*/

.sp-only {
    display: none;
}

.p-pageheader__facility{
    background: url(/facility/img/pageheader_bg.jpg) no-repeat center left/cover;
}

/* p-modal */
.p-modal {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    display: grid;
    place-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    padding: 1.6rem;
    overflow-y: auto;
}

.p-modal.show {
    visibility: visible;
    opacity: 1;
}

.p-modal__content {
    background-color: rgba(0, 0, 0, 0.5);
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    max-width: 140rem;
}

.p-modal__content img {
    width: 100%;
}

.p-modal__close {
    width: 4rem;
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    font-size: 2.4rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}

.p-modal-trigger {
    position: relative;
    cursor: pointer;
    display: block;
}

.p-modal-zoom {
    text-align: center;
    width: 3rem;
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
}

.p-modal-zoom__text {
    font-size: 1rem;
    text-align: center;
}


.p-facility {}


/* 遷移ボタン */
.p-button__list {
    background: url(../img/button_list_bg.png) no-repeat center center / cover;

}



/* 施設マップ */
.p-map {
    margin-top: 14rem;
    position: relative;
    border-top: 1px solid #0d63b2;
    border-bottom: 1px solid #0d63b2;
    padding-bottom: 6.4rem;
}

.p-map:after {
    content: "";
    position: absolute;
    top: -2px;
    right: -1px;
    content: "";
    display: block;
    width: 5rem;
    height: 5rem;
    background-color: #0d63b2;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.p-map__container {
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    width: 80%;
}

.p-map__img {
    margin-top: 6.4rem;

}

.p-map__button {
    margin-top: 3.4rem;
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
    width: 80%;

}

.p-map__btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2em, 6vw, 5em);
    border: 1px solid #646464;
    padding: 1.6rem 2rem;
    transition: all 0.3s ease 0s;
}

.p-map__btn img {
    width: clamp(7.5rem, 3vw, 12.5rem);
}

.p-btn-map__flex {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2em, 6vw, 5em);
}

.p-btn-map__text {
    display: inline-block;
    font-size: 1.8rem;
    position: relative;
    padding-right: 44px;
}

.p-btn-map__text:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 24px;
    height: 29px;
    background: url(../img/pdf_icon.png) no-repeat center center / contain;
}

.p-btn-map__arrow {
    display: inline-block;
    font-size: 1.4rem;
    font-family: var(--font-mincho);
    font-weight: 600;
    position: relative;
    padding-right: 9rem;
}

.p-btn-map__arrow:after {
    content: "";
    display: block;
    width: 6rem;
    height: 2rem;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: url(../../common/img/ico_next_blk.svg) no-repeat center / contain;
}



/* 施設紹介モーダル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6);
}

/* モーダルがactiveの時 */
.modal.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* モーダル背景のオーバーレイ部分 */
.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* モーダルのコンテンツ */
.modal__content {
    position: relative;
    width: 68%;
    max-width: 1200px;
    padding: 20px 0 20px;
}

.modal__slide {
    background: #fff;
}

.modal__slide p {
    background: #fff;
    padding: 1.6rem 2rem;
    font-size: 1.6rem;
    ;
}


.swiper {
    padding: 0 9rem 2.2rem;
}

/* Swiperの矢印部分 */
.swiper-button-next,
.swiper-button-prev {
    font-size: 0;
    color: transparent;
}

.swiper-button-next{
    right: -2rem;
    width: 8rem;
    height: 8rem;
}

.swiper-button-next::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(../img/slider-next.png) no-repeat center center / contain;
}

.swiper-button-prev{
    left: -2rem;
    width: 8rem;
    height: 8rem;
}

.swiper-button-prev::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(../img/slider-prev.png) no-repeat center center / contain;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 0;
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: -3px var(--swiper-pagination-bullet-horizontal-gap, 20px);
}

.swiper-pagination-bullet {
    width: 1.2rem;
    height: 1.2rem;
    opacity: 1;
    background: #cccccc;
}

.swiper-pagination-bullet-active {
    background: #03599a;
}

/* 施設紹介 */
.p-billding {
    margin-top: 13.8rem;
    background: #f3f3f3;
}

.p-billding--b {
    background: #fff;
}

.p-billding--c {
    margin-top: 0;
}

.p-billding-container {
    max-width: 1408px;
    width: 95%;
    margin-right: auto;
    margin-left: auto;
    padding: 8.2rem 0 14rem;
}


.p-title-leftline {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 3.2rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
    font-family: var(--font-mincho);
    font-weight: 700;
}

.p-title-leftline:before {
    content: "";
    width: 1.5em;
    height: 1px;
    background-color: #000;
}

.p-billding__lead {
    margin-top: 5rem;
    color: #d90000;
}

.p-billding__content {
    width: 100%;
    margin-top: 5rem;
}

.p-billding__item {
    background: #fff;
    border-radius: 1rem;
    padding: 3.4rem 3.4rem 5.2rem;
}

.p-billding__item--b {
    background: #f3f3f3;
}

.p-billding__item:not(:first-child) {
    margin-top: 8.4rem;
}

.p-billding__item h3 {
    font-size: 2rem;
    font-weight: 500;
}

.p-billding__flex {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1em;
}

.p-billding__left {
    width: 54.5%;

}

.p-billding__leftitem--text {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.p-billding__right {
    width: 50%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1em;
    row-gap: 2rem;
    flex-wrap: wrap;
}

.p-billding__rightitem--text {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.custom-modal-img {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.p-billding__modal {
    max-width: 710px;
    margin-right: auto;
    margin-left: auto;
}

.p-billding__modal p {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.p-modal-zoom {
    text-align: center;
    width: 3rem;
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
}

.p-modal-zoom__text {
    color: #fff;
}


.custom-modal-img img {
    transition: all 0.3s ease 0s;
}

table {
    margin-top: 3.1rem;
    width: 100%;
    border-collapse: separate;
}

thead th {
    background: #0d63b2;
    color: #fff;
    vertical-align: middle;
    text-align: center;
    font-size: 1.8rem;
    height: 8rem;
}

thead th:last-child {
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 2%, rgba(13, 99, 178, 1) 2%, rgba(13, 99, 178, 1) 100%);

}


tbody th,
td {
    background: #fff;
    vertical-align: middle;
    font-size: 1.8rem;
    min-height: 8.8rem;
    border-bottom: 1px solid #cccccc;
}

tbody th {
    text-align: center;
    color: #0d63b2;
    font-size: 1.8rem;
    padding-top: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 10%, rgba(237, 246, 255, 1) 10%, rgba(237, 246, 255, 1) 100%);
}

tbody td {
    padding: 1.5rem 2rem 1rem 2rem;
    font-size: 1.6rem;
}


tbody .-ev {
    padding: 2rem 0.5rem 2rem 1rem;
    border-left: 1px solid #ccc;
    text-align: center;
}

tbody .-ev__in {
    display: flex;
    justify-content: center;
    align-items: center;
}

tbody .-ev .-ev__text {
    height: 6.4rem;
    width: 6.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ccc;
}

tbody .-atou {
    padding-left: 2rem;
    position: relative;
}

tbody .-atou:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    background: #ccc;
    width: 1px;
    height: 100%;
}

.td__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.td__flexUl {
    display: flex;
    align-items: start;
}

.td__flexUl ul:last-child {
    margin-left: clamp(1rem, 2vw, 3rem);
}


.td__img {
    width: 3rem;
}




/* 設備概要 */
.p-faclity__content dt,
dd {
    font-size: 1.6rem;
}

.p-dl01__item--img dd {
    width: 100%;
}


.dd-inner__head {
    background: #f3f3f3;
    border-radius: 1.4rem;
    padding-left: 2rem;
    font-size: 1.6rem;
    font-weight: 500;
    width: 100%;
}

.dd-inner__body {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-top: 2.7rem;
}

.dd-inner__head--k{
    margin-top: 3.3rem;
}

.dd-inner__body--b{
    margin-top: 0;
}

.dd-inner__item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin-right: 1.5rem;
}

.dd-inner__item--b{
   margin-left: auto;
}



.dd-inner__item--pdf::after {
    display: none;

}

.dd-inner__img img{
    border: 1px solid #cccccc;
    flex: 1;
    position: relative;
    height: clamp(20rem, 19vw, 30rem);
}

.dd-inner__img--after img {
    position: relative;
}

.dd-inner__img--after:after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 98%;
    height: clamp(23rem, 18.5vw, 30rem);
    top: -1rem;
    right: -1rem;
    background: #fff;
    border: 1px solid #ccc;
}



.dd-inner__item:last-child .dd-inner__img{
    border: none;
}

.dd__button {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.dd__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2.5rem;
    height: 40px;
    border-radius: 0.4rem;
    border: 1px solid #c1c1c1;
    background: #fff;
    line-height: 4rem;
    min-height: 4rem;
    font-size: 1.4rem;
    transition: all 0.3s ease 0s;
}

.dd__btn .-img {
    line-height: 1.2;
    width: 1.6rem;
}

.dd__btn .-pdf {
    line-height: 1.2;
    width: 1.8rem;
    margin-left: 1.1rem;
}




@media (max-width: 1400px) {

    .td__flexUl {
        display: block;
    }

    .td__flexUl ul:last-child {
        margin-left: 0;
    }

}

@media (max-width: 1200px) {

    .dd-inner__body {
        flex-direction: column;
        gap: clamp(1em, 5vw, 5em);
        margin-top: 2.7rem;
    }

    .dd-inner__item {
        width: 100%;
        height: auto;
    }


    .dd-inner__img--b{
        width: 26vw;
        margin-left: auto;
    }

    .dd-inner__img img {
        height: auto;
     }

     .dd-inner__img:after {
        height: 81%;
    }

}

@media (min-width: 769px) and (max-width: 1000px){
    .p-pageheader__facility {
      background-position: center left 30%;
    }
  }




@media (max-width: 768px) {

    .sp-none {
        display: none;
    }

    .p-pageheader__facility{
        background: url(/facility/img/pageheader_bg_sp.jpg) no-repeat center left/cover;
    }

    .p-modal__content {
        width: 100%;
    }

    .sp-only {
        display: block;
    }

    .p-map__container {
        width: 90%;
    }

    .p-map__button {
        width: 90%;
    }

    .p-map__btn {
        gap: 1em;
        padding: 1.6rem 2rem;
        align-items: start;
    }

    .p-btn-map__flex {
        flex-direction: column;
        align-items: start;
        gap: 1.3em;
    }

    .p-btn-map__text {
        padding-right: 0;
        font-size: 1.6rem;
    }

    .p-btn-map__text:after {
        top: 75%;
        right: 15%;
        width: 2.2rem;
        height: 2.2rem;
    }

    .p-billding {
        margin-top: 10.8rem;
        ;
    }
    .p-billding--c{
        margin-top: 0;
    }

    .p-billding-container {
        width: 90%;
        padding: 7.2rem 0 10rem;
    }

    .p-billding__lead {
        font-size: 1.5rem;
        letter-spacing: 0.05rem;
    }

    .p-billding__item {
        padding: 3rem 2.5rem 3rem;
    }

    .p-billding__item:not(:first-child) {
        margin-top: 4.4rem;
    }

    .p-billding__flex {
        margin-top: 3rem;
        flex-direction: column;
    }

    .p-billding__left {
        width: 100%;
    }

    .p-billding__leftitem--text {
        margin-top: 0.8rem;
        font-size: 1.4rem;
    }

    .p-modal-zoom__text {
        margin-top: -0.2rem!important;
        font-size: 1rem!important;
    }

    .p-modal-zoom__maptext {
        color: #000;
    }

    .p-billding__right {
        width: 100%;
        column-gap: 0.5em;
    }

    .p-billding__rightitem--text {
        margin-top: 0.8rem;
        font-size: 1.4rem;
    }

    .p-modal-zoom {
        width: 2.3rem;
        top: 0.8rem;
        right: 0.8rem;
    }

    .p-modal-zoom-button {
        justify-content: center;
        margin-top: 2.2rem;
        text-align: center;
    }

    .p-modal-zoom-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 85%;
        border-radius: 0.4rem;
        border: 1px solid #c1c1c1;
        line-height: 4rem;
        min-height: 4rem;
        font-size: 1.4rem;
    }

    .p-modal-zoom-btn span {
        display: inline-block;
        line-height: 1;
        width: 2.2rem;
        margin-right: 1rem;
    }

    .p-map {
        margin-top: 11rem;
        padding-bottom: 5.4rem;

    }

    .modal {
        padding: 20px;
    }

    .modal__content {
        width: 100%;
    }

    .swiper {
        padding: 0 1rem 3rem;
    }

    .swiper-button-next {
        right: 0;
        width: 0;
        height: 0;
    }

    .swiper-button-prev {
        left: 0;
        width: 0;
        height: 0;
    }


    .swiper-button-next::after {
        right: -1rem;
        top: 0%;
        width: 5rem;
        height: 5rem;
    }

    .swiper-button-prev::after {
        left: -1rem;
        top: 0;
        width: 5rem;
        height: 5rem;
    }

    .swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
    .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
        margin: -3px var(--swiper-pagination-bullet-horizontal-gap, 15px);
    }


    thead th {
        font-size: 1.2rem;
        height: 5rem;
    }

    thead th:last-child {
        background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 7%, rgba(13, 99, 178, 1) 7%, rgba(13, 99, 178, 1) 100%);
    }

    tbody th {
        font-size: 1rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 7%, rgba(237, 246, 255, 1) 7%, rgba(237, 246, 255, 1) 100%);
    }

    tbody td {
        padding: 1.5rem 0.5rem 1rem 1rem;
        font-size: 0.8rem;
    }

    tbody .-ev {
        padding: 1rem 0.1rem 0.5rem 0.4rem;
        font-size: 1rem;
    }

    tbody .-ev .-ev__text {
        height: 4rem;
        width: 3.4rem;
    }

    tbody .-atou:before {
        left: 0.4rem;
    }

    .td__flex {
        flex-direction: column;
        align-items: start;
    }

    .td__img {
        width: 2rem;
        margin-top: 0.5rem;
    }


    .dd__btn {
        text-align: center;
        line-height: 1.6;
        width: 100%;
        padding: 0.7rem 2.5rem;
    }

    .p-dl01__item {
        padding: 1em 1rem;
    }

    .p-dl01__item dd {
      padding-left: 0;
    }

    .dd-inner__body {
        gap: 5rem;
    }

    .dd-inner__item--b{
        width: 100%;
    }

    .dd-inner__item:last-child:after {
        width: 99%;
        height: 72%;
        top: -0.8rem;
        right: -0.8rem;
    }

    .dd-inner__img:after {
        height: 70%;
        right: -1rem;
    }

}



@media (any-hover: hover) {
    .p-map__btn:hover {
        background: #edf6ff;
    }

    .custom-modal-img img:hover {
        transform: scale(1.1);
        opacity: 0.6;
    }

    .dd__btn:hover {
        border-color: #e6e6e6;
        color: #646464;

    }
}

