.message-box {
  border: 1px solid #aaaaaa;
  padding: 10px 15px;
  margin-top: 25px;
}

.message-box h3 {
  font-size: 2rem;
}

@media screen and (max-width:767px) {
  .message-box h3 {
    margin-bottom: 10px;
  }
}

.fa-external-link,
.link-blank {
  color: #2578a0;
  text-decoration: underline;
  cursor: pointer;
}

.link-blank:after {
  white-space: pre-wrap;
  content: " ";
}

.map-button-wrapper {
  margin-bottom: 30px;
  display: inline-block;
  width: 100%;
  margin-top: 30px;
}

.map-button-wrapper a {
  padding-top: 20px;
  padding-bottom: 20px;
}

.bottom-button a {
  max-width: 440px;
  width: 90%;
  margin: 60px auto 90px auto;
  display: table;
  padding-top: 20px;
  padding-bottom: 20px;
}

.table1 table th,
.table1 table td {
  padding: 15px;
  vertical-align: top;
}

.map-cord-box p {
  display: block;
}

.service-box {
  overflow: hidden;
  position: relative;
}

.service-box span {
  display: block;
  float: left;
  margin-right: 10px;
}

.image-box-content h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media print,
screen and (min-width:768px) {

  .map-cord-box p img {
    width: 26px;
    height: 26px;
  }
}

@media screen and (min-width:769px) and (max-width:999px) {

  .map-cord-box p img {
    height: 21px;
  }

  .service-box span:first-child {
    line-height: 26px;
  }

  .image-box {
    margin-bottom: 50px;
  }

}

@media screen and (min-width: 768px) {

  .d-row {
    margin-left: -15px;
    margin-right: -15px;
  }

  #map iframe {
    height: 530px;
    width: 100%;
  }

}

@media screen and (min-width: 768px) {

  .map-button-wrapper .print {
    padding: 0 20px;
  }

  .map-button-wrapper .print .other-button {
    padding: 20px 15px 20px 15px;
    text-align: center;
  }

  .map-button-wrapper .print .other-button:after {
    content: "";
  }

}


@media screen and (max-width: 999px) {

  .table1 table th,
  .table1 table td {
    padding: 10px 15px;
  }

  #notes-image-wrapper {
    margin-top: 30px;
				position: relative;
				overflow: hidden;
	  } 

  #notes-image-wrapper img {
    width: calc((100% / 3) - 20px);
    max-width: 220px;
    margin-bottom: 0;
    float: left;
    margin-left: 20px;
    margin-bottom: 20px;
  }

  #notes-image-wrapper img:first-child,
  #notes-image-wrapper img:nth-child(4n){
    margin-left: 0px;
  }

.message-box {
    margin-top: 10px;
}

  #map iframe {
    height: 350px;
    width: 100%;
  }

  .m-row {
    margin-left: -15px;
    margin-right: -15px;
  }

  .plan-icon {
    font-size: 1.6rem;
  }

  .map-button-wrapper a,
  .bottom-button a {
    max-width: 400px;
    margin: 30px auto 30px auto;
    display: table;
    width: 100%;
    padding: 12px 15px;
  }

  .map-button-wrapper {
    margin: 0;
  }

  .map-button-wrapper .print .other-button {
    padding: 12px 15px;
  }

  .map-button-wrapper .m-hide {
    display: block !important;
  }

}

@media screen and (max-width: 767px) {

  body #map {
    padding-left: -0px !important;
    padding-right: -0px !important;
  }

  .image-box-content {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .map-cord-box p img {
    height: 21px;
  }

  .service-box span:first-child {
    line-height: 26px;
  }

  .image-box-shadow .image-box {
    margin-bottom: 30px;
  }

  .map-button-wrapper .m-hide {
    display: none !important;
  }

  #notes-image-wrapper img {
    display: block;
  }

  #notes-image-wrapper img:first-child {
    margin-left: inherit;
 /*   margin-top: 30px;*/
  }

  #notes-image-wrapper img:last-child {
    margin-bottom: 0;
  }

  .sp_link {
    text-decoration-skip-ink: none
  }
}

@media screen and (max-width: 479px) {
#notes-image-wrapper img {
  width: 100%;
	max-width:100%;
	margin-left:0; 
}
}


@media screen and (min-width: 768px) and (max-width: 999px) {

  #notes-image-mian-wrapper {
    margin-left: 0px;
    margin-right: 0px;
  }

}

@media screen and (min-width: 1000px) {

  #notes-image-wrapper {
    max-width: 250px;
    margin: 0 auto;
  }

}

@media print {

  header,
  aside,
  #breadcrumbs,
  #scrollup,
  footer div:not(.ft_Copyright) {
    display: none;
  }

  footer,
  footer div.ft_Copyright {
    background-color: transparent;
  }

  footer {
    margin-top: 50px;
  }

  footer div.ft_Copyright {
    color: #141414;
  }

  .ttl-lv1 {
    margin: 0;
    padding: 0;
    font-size: 3rem;
  }

  #breadcrumbs+.ttl-lv1 {
    padding: 50px 0;
  }

  .ttl-lv2 {
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 6px 15px;
    border-left: 2px solid #fed700;
    font-size: 2rem;
  }

  .ttl-lv3 {
    margin-top: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 1.8rem;
  }

  .ttl-lv4 {
    margin-top: 15px;
    line-height: 1.5;
    border-left: 2px solid #fed700;
    font-size: 1.8rem;
  }

  .ttl-lv5 {
    line-height: 1;
    font-size: 1.8rem;
  }

  #map {
    display: block;
    float: none;
    width: 100%;
    position: static;
  }

  .map-button-wrapper,
  .bottom-button {
    display: none;
  }

  .primary-button {
    border: 1px solid #aaa;
  }

  .grid-lg-3,
  .grid-md-3,
  .grid-sm-12,
  .grid-12 {
    float: none;
  }

  .grid-lg-3.grid-md-3.grid-sm-12.grid-12 {
    background-color: #ccc;
    width: 96%;
    margin: 30px auto;
  }

  #notes-image-wrapper {
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    -ms-align-items: flex-start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .grid-lg-3.grid-md-3.grid-sm-12.grid-12 #notes-image-wrapper img {
    max-width: 150px;
    margin-right: 20px;
  }

  .grid-lg-3.grid-md-3.grid-sm-12.grid-12 #notes-image-wrapper img:last-of-type {
    margin-right: 0;
  }

  .table1 {
    margin-top: 20px;
    width: 100%;
  }

  .table1 table th {
    width: 25%;
  }

}
