@charset "UTF-8";

/*****************************
  事業所情報
*****************************/
.page-access .hcontent{
  width: 270%;
}

.pagesec1 .pscontent2{
  background: url(../../images/page/access/access_bg.webp) no-repeat center / cover;
}

/* accessエリア */
#popsection{
  position: relative;
}

.pagesec2 .fbox{
  max-width: 300px;
  width: 100%;
}

.pagesec2 .fbox1{
  margin-left: auto;
}

.pagesec2 .fbox2{
  margin-right: auto;
}

.pagesec2 .fmap{
  margin: 0 auto;
  width: calc(100% - 1000px);
}

@media only screen and (max-width: 1500px) {
  .pagesec2 .fmap{
    width: calc(100% - 750px);
  }
}

/*****************************
  地域リスト
*****************************/
.office_area_list{
  display: flex;
  margin-top: 2rem;
}

.office_area_list > dt{
  border-right: 1px solid #fff;
  padding-right: 1rem;
  margin-right: .5rem;
}

.office_area_list .popopen,
.office_area_list .office-modal-open{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: #E85400;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1.6;
  opacity: 1 !important;
  padding: 0 0 0 2rem;
  position: relative;
  text-align: left;
}

.office_area_list10 .popopen,
.office_area_list10 .office-modal-open{
  color: #8CB808;
}

.office_area_list .popopen:hover::before,
.office_area_list .office-modal-open:hover::before{
  content: "\f124";
  color: #fff;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0px;
  left: 0;
  transform: rotate(45deg);
}

/*****************************
  Accessモーダル
  #popsection 中央表示
*****************************/
#officeModal{
  display: none;
  position: absolute;
  inset: 0;
  z-index: 9999;
}

#officeModal.open{
  display: block;
}

#officeModal .popbg{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,.65);
  cursor: pointer;
}

#officeModal .officebox{
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%,-50%);
  z-index: 2;

  width: min(1000px, 90vw);
  max-width: 1000px;
  height: auto;
  max-height: calc(100vh - 120px);
}

#officeModal .officebox .inbox{
  background: #fff;
  color: #000;
  width: 100%;
  height: auto;
  max-height: calc(80vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
@media screen and (max-width: 1024px) {
#officeModal .officebox .inbox{
  width: 80%;
  margin: 0 auto;
}
}

@media screen and (max-width: 767px) {
#officeModal .officebox .inbox{
  width: 95%;
  margin: 0 auto;
}
}


#officeModal .officebox .popclose{
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: -45px;
  right: 0;
  z-index: 99999;

  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 3rem;
  line-height: 1;
}

/*****************************
  モーダル内コンテンツ
*****************************/
#officeModal .content{
  margin-bottom: 2rem;
}

#officeModal .content .fttl{
  border-top: 1px solid #526D82;
  border-bottom: 1px solid #526D82;
  color: #526D82;
  font-weight: bold;
  margin-bottom: 2rem;
  padding: 1rem 0;
  order: 1;
  text-align: center;
  width: 100%;
}

#officeModal .content .fimgbox{
  order: 2;
  width: 40%;
}

#officeModal .content .fimgbox img{
  display: block;
  width: 100%;
  height: auto;
}

#officeModal .content .ftxtbox{
  color: #000;
  order: 3;
  width: 55%;
}

#officeModal .content .ftxtbox p{
  color: #000;
  font-size: 1.6rem;
  line-height: 1.8;
}

/* 表 */
#officeModal .tblbox1{
  color: #000;
}

#officeModal .tblbox1 .tbl{
  border-bottom: 1px solid #ddd;
}

#officeModal .tblttl{
  color: #526D82;
  font-weight: bold;
}

#officeModal .tblcontent{
  color: #000;
}

/*****************************
  Responsive
*****************************/
@media only screen and (max-width: 1080px) {
  .pagesec2 .fmap{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 40%;
  }

  .pagesec2 .fbox{
    max-width: 400px;
  }

  .pagesec2 .fbox1{
    margin-left: 5rem;
  }

  .pagesec2 .fbox2{
    margin: 0 0 0 auto;
    max-width: 300px;
  }

  #officeModal .officebox{
    width: min(900px, 90vw);
  }
}

@media only screen and (max-height: 720px) and (min-width: 1024px){
  .pagesec2 .fbox{
    margin-top: 5rem;
  }
}

@media only screen and (max-width: 1023px) {
  .pagesec2{
    height: auto;
    padding: 8rem 0;
  }
}

@media only screen and (max-width: 767px) {
  .pagesec2{
    padding: 8rem 3rem;
  }

  .pagesec2 .fmap{
    order: 1;
    position: static;
    transform: none;
    width: 100%;
  }

  .pagesec2 .fbox{
    margin: 0 auto;
    max-width: 400px;
  }

  .pagesec2 .fbox1{
    order: 2;
  }

  .pagesec2 .fbox2{
    order: 3;
  }

  .office_area_list .popopen,
  .office_area_list .office-modal-open{
    font-size: 1.6rem;
  }

  #officeModal .officebox{
    width: calc(100% - 24px);
    max-height: calc(100vh - 80px);
  }

  #officeModal .officebox .inbox{
    max-height: calc(100vh - 80px);
    padding: 1.5rem;
  }

  #officeModal .officebox .popclose{
    top: -42px;
    width: 40px;
    height: 40px;
    font-size: 2.8rem;
  }

  #officeModal .content{
    display: block !important;
  }

  #officeModal .content .fttl{
    font-size: 1.6rem;
  }

  #officeModal .content .fimgbox,
  #officeModal .content .ftxtbox{
    width: 100%;
  }

  #officeModal .content .fimgbox{
    margin-bottom: 1rem;
  }

  #officeModal .content .ftxtbox p{
    font-size: 1.5rem;
  }

  #officeModal .tbl{
    display: block !important;
  }

  #officeModal .tblttl,
  #officeModal .tblcontent{
    display: block;
    width: 100%;
  }
}


/*****************************
  SP時 Accessモーダル修正
*****************************/
@media screen and (max-width: 1024px){

  #officeModal{
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
  }

  #officeModal .popbg{
    position: fixed !important;
    inset: 0 !important;
  }

  #officeModal .officebox{
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: calc(100vw - 24px) !important;
    max-width: none !important;
    max-height: calc(100vh - 80px) !important;
  }

  #officeModal .officebox .inbox{
    max-height: calc(80vh - 80px) !important;
    overflow-y: auto !important;
    padding: 1.5rem !important;
  }

  #officeModal .officebox .popclose{
    top: -42px !important;
    right: 0 !important;
    z-index: 999999 !important;
  }

  #officeModal .content{
    display: block !important;
  }

  #officeModal .content .fimgbox,
  #officeModal .content .ftxtbox{
    width: 100% !important;
  }

  #officeModal .content .fimgbox{
    margin-bottom: 1.5rem;
  }

}