@charset "UTF-8";

#railway {
  background-color: #C5F1F4;
  background-image: url(../img/bg.png);
  background-repeat: repeat;
  background-size: 16px;
  overflow: hidden;
}

#railway>.inner {
  margin: auto;
  width: 1180px;
  padding: 70px 0 160px;
  text-align: center;
  position: relative;
  z-index: 1;
}

#railway>.inner::before, #railway>.inner::after {
  content: "";
  position: absolute;
  width: 998px;
  height: 1018px;
  display: block;
  background-image: url(../img/bg_railway.png);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: -1;
}

#railway>.inner::before {
  background-position: left top;
  top: -255px;
  left: -830px;
}

#railway>.inner::after {
  background-position: right top;
  top: -130px;
  right: -745px;
}

.contentHeader {
  margin-bottom: 45px;
}

#railway .contentHeader h2 {
  width: 762px;
  display: block;
  margin: 0 auto 45px;
  font-size: 50px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.1em;
}

#railway .contentHeader h2 img {
  width: 100%;
  display: block;
  margin-bottom: 40px;
}

#railway .contentHeader span {
  display: inline-block;
  background: linear-gradient(transparent 70%, #ffff26 70%);
  padding-left: 0.05em;
}

#railway .contentHeader p {
  font-size: 16px;
  line-height: 2.5;
}

#railway .search {
  z-index: 1;
  position: relative;
  border-radius: 8px;
}

#railway .search h3 {
  font-size: 40px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.1em;
  padding-bottom: 25px;
  margin-bottom: 40px;
  position: relative;
}

#railway .search h3::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 164px;
  height: 6px;
  display: block;
  background: url(../img/line.png) no-repeat;
  background-size: contain;
}

#railway .search ul {
  font-size: 0;
  padding: 0;
  margin: 0;
}

#railway .search ul li {
  margin-right: 19px;
  display: inline-block;
}

#railway .search ul li:nth-of-type(4n) {
  margin-right: 0;
}

#railway .search ul li::before {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  margin: auto;
  width: 100%;
  height: 100%;
  display: block;
  background-color: #fff;
  background-image: url(../img/bg_btn.png);
  background-repeat: repeat;
  background-size: 4px;
  border-radius: 8px;
}

#railway .search ul li a {
  display: table-cell;
  vertical-align: middle;
  width: calc((980px - 20px * 3) / 4);
  height: 100px;
  padding-right: 14px;
  padding-top: 0.1em;
  position: relative;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.18;
  color: #fff;
  background-color: #00c4d0;
  border: 5px solid #00c4d0;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
  cursor: pointer;
}

#railway .search ul li a::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  vertical-align: middle;
  margin: auto;
  display: block;
  width: 14px;
  height: 14px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

#railway .search ul li a:hover {
  background-color: #fff;
  color: #00c4d0;
}

#railway .search ul li a:hover::after {
  border-top-color: #00c4d0;
  border-right-color: #00c4d0;
}

#railway .search {
  background: #fff;
  padding: 60px 100px 50px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* IE */
@media all and (-ms-high-contrast: none) {
  #railway .search#byLine ul li a::after {
    margin-top: calc(50px - 14px + 2px);
  }
}

#railway .search#byArea {
  margin-bottom: 100px;
  padding-bottom: 40px;
  z-index: 2;
}

#railway .search#byArea ul {
  margin-bottom: 30px;
}

#railway .search#byArea ul li {
  margin: 0 20px 20px 0;
}

#railway .search#byArea ul li:nth-of-type(2n) {
  margin-right: 0;
}

#railway .search#byArea ul li a {
  width: calc((980px - 20px) / 2);
  height: 160px;
  background-color: #fff;
  padding-top: 0;
}

#railway .search#byArea ul li a::after {
  display: none;
}

#railway .search#byArea ul li a h4 {
  color: #00c4d0;
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 15px;
  display: inline-block;
  background: linear-gradient(rgba(255, 255, 38, 0) 70%, rgba(255, 255, 38, 1) 70%);
  padding-left: 0.05em;
}

#railway .search#byArea ul li a p {
  font-size: 16px;
  line-height: 1;
  color: #000;
  margin-bottom: 15px;
}

#railway .search#byArea ul li a p.bold {
  font-weight: bold;
  margin-bottom: 0;
}

#railway .search#byArea ul li a:hover {
  background-color: #00c4d0;
}

#railway .search#byArea ul li a:hover h4 {
  color: #fff;
  background: none;
}

#railway .search#byArea ul li a:hover p {
  color: #fff;
}

#railway .search#byArea hr {
  margin-bottom: 40px;
  border: none;
  border-bottom: 2px dotted #c6c6c6;
  height: 0;
  background-color: transparent;
}

#railway .search#byArea .link-ranking {
  text-align: left;
}

#railway .search#byArea .link-ranking a {
  color: #000;
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
  position: relative;
  padding-left: 22px;
  padding-top: 0.1em;
}

#railway .search#byArea .link-ranking a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  vertical-align: middle;
  margin: auto;
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(45deg);
}

#railway .search#byArea .link-ranking a:hover {
  text-decoration: underline;
}

#railway .search#byOther {
  background: transparent;
  margin-bottom: 0;
  padding: 0;
}

#railway .search#byOther::after {
  content: "";
  position: absolute;
  width: 998px;
  height: 1018px;
  display: block;
  z-index: -1;
  background-image: url(../img/bg_railway.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  transform: rotate(90deg);
  bottom: -630px;
  right: -710px;
}

#railway .search#byOther ul li {
  display: block;
  width: 540px;
  margin: 0 auto 20px;
}

#railway .search#byOther ul li:last-of-type {
  margin-bottom: 0;
}

#railway .search#byOther ul li a {
  width: 540px;
  font-size: 18px;
  height: 60px;
  line-height: 60px;
  background-color: #fff;
  color: #000;
}

#railway .search#byOther ul li a::after {
  width: 12px;
  height: 12px;
  border-top: 2px solid #00c4d0;
  border-right: 2px solid #00c4d0;
}

#railway .search#byOther ul li a:hover {
  background-color: #00c4d0;
  color: #fff;
}

#railway .search#byOther ul li a:hover::after {
  border-top-color: #fff;
  border-right-color: #fff;
}

.contentFooter {
  width: 950px;
  margin: 40px auto 30px;
}

.contentFooter p {
  font-size: 10px;
  line-height: 1.6;
  color: #666;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* モーダル */
.modalArea {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modalBg {
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.9);
}

.modalWrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 950px;
  max-width: 950px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 12px;
}

.modalWrapper::before, .modalWrapper::after {
  content: "";
  position: absolute;
  width: calc(998px * 0.41);
  height: calc(1018px * 0.41);
  display: block;
  background-image: url(../img/bg_railway.png);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}

.modalWrapper::before {
  background-position: left top;
  top: -235px;
  left: -220px;
}

.modalWrapper::after {
  background-position: right top;
  bottom: -92px;
  right: -117px;
}

.modalContents {
  border: 10px solid #00c4d0;
  border-radius: 12px;
  padding: 60px 40px 35px;
  display: block;
  text-align: center;
  position: relative;
  z-index: 1;
}

.modalContents h3 {
  font-size: 34px;
  /**/
  font-weight: bold;
  line-height: 1;
  margin-bottom: 70px;
}

.modalContents ul {
  font-size: 0;
  padding: 0;
  margin: 0 0 25px;
  text-align: left;
}

.modalContents ul li {
  margin-right: 20px;
  margin-bottom: 15px;
  display: inline-block;
  width: calc((100% - 20px * 2) / 3);
  height: 55px;
}

.modalContents ul li:nth-of-type(3n) {
  margin-right: 0;
}

.modalContents ul li::before {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  margin: auto;
  width: 100%;
  height: 100%;
  display: block;
  background-color: #fff;
  background-image: url(../img/bg_btn.png);
  background-repeat: repeat;
  background-size: 4px;
  border-radius: 5px;
}

.modalContents ul li a {
  display: block;
  width: 100%;
  height: 100%;
  padding-left: 14px;
  position: relative;
  font-size: 14px;
  font-weight: bold;
  line-height: 55px;
  color: #000;
  background: #fff;
  border: 2px solid #00c4d0;
  text-align: left;
  border-radius: 5px;
  transition: all 0.2s;
}

.modalContents ul li a em {
  font-style: normal;
  font-weight: bold;
}

.modalContents ul li a .small {
  font-size: 11px;
}

.modalContents ul li a::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  vertical-align: middle;
  margin: auto;
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #00c4d0;
  border-right: 2px solid #00c4d0;
  transform: rotate(45deg);
}

.modalContents ul li a:hover {
  background: #00c4d0;
  color: #fff;
}

.modalContents ul li a:hover::after {
  border-top-color: #fff;
  border-right-color: #fff;
}

.modalContents .close {}

.modalContents .closeModal a {
  width: 150px;
  height: 50px;
  line-height: 50px;
  padding-left: 10px;
  padding-top: 0.1em;
  display: block;
  background: rgba(216, 216, 216, 1.0);
  color: #000;
  font-size: 14px;
  font-weight: bold;
  margin: auto;
  border-radius: 5px;
  position: relative;
  transition: all 0.2s;
}

.modalContents .closeModal a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: url(../img/icon_cross.svg) no-repeat;
  background-position: left 17px center;
  background-size: 12px auto;
}

.modalContents .closeModal a:hover {
  background: rgba(216, 216, 216, 0.7);
}
