@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: 100%;
  padding: calc(35 / 320 * 100vw) calc(10 / 320 * 100vw) calc(100 / 320 * 100vw);
  text-align: center;
  position: relative;
  z-index: 1;
}

#railway>.inner::before, #railway>.inner::after {
  content: "";
  position: absolute;
  width: calc(998 / 320 * 100vw * 0.3);
  height: calc(1018 / 320 * 100vw * 0.3);
  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: -25vw;
  left: -62.5vw;
  transform: rotate(180deg);
}

#railway>.inner::after {
  background-position: right top;
  top: 46vw;
  right: -65vw;
}

.contentHeader {
  margin-bottom: calc(30 / 320 * 100vw);
}

#railway .contentHeader h2 {
  width: calc(225 / 320 * 100vw);
  display: block;
  margin: 0 auto calc(22 / 320 * 100vw);
  font-size: calc(30 / 320 * 100vw);
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.1em;
}

#railway .contentHeader h2 img {
  width: 100%;
  display: block;
  margin-bottom: calc(22 / 320 * 100vw);
}

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

#railway .contentHeader p {
  font-size: calc(10 / 320 * 100vw);
  line-height: 1.8;
}

#railway .search {
  position: relative;
  border-radius: calc(4 / 320 * 100vw);
  background: #fff;
  padding: calc(30 / 320 * 100vw) 0;
  margin-bottom: calc(10 / 320 * 100vw);
  position: relative;
  z-index: 1;
}

#railway .search h3 {
  font-size: calc(20 / 320 * 100vw);
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.1em;
  padding-bottom: calc(15 / 320 * 100vw);
  margin-bottom: calc(30 / 320 * 100vw);
  position: relative;
}

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

#railway .search ul {
  font-size: 0;
  padding: 0;
  margin: 0;
  margin-left: calc(-3 / 320 * 100vw);
}

#railway .search ul li {
  margin-bottom: calc(15 / 320 * 100vw);
  display: inline-block;
}

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

#railway .search ul li::before {
  content: "";
  position: absolute;
  right: calc(-3 / 320 * 100vw);
  bottom: calc(-3 / 320 * 100vw);
  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: calc(4 / 320 * 100vw);
}

#railway .search ul li a {
  display: block;
  width: calc(270 / 320 * 100vw);
  height: calc(50 / 320 * 100vw);
  line-height: calc(50 / 320 * 100vw - 6px);
  position: relative;
  font-size: calc(14 / 320 * 100vw);
  font-weight: bold;
  padding-right: calc(5 / 320 * 100vw);
  color: #fff;
  background-color: #00c4d0;
  border: 3px solid #00c4d0;
  border-radius: calc(4 / 320 * 100vw);
  margin: 0 auto;
  cursor: pointer;
}

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

#railway .search#byLine {}

#railway .search#byArea {
  padding-bottom: calc(20 / 320 * 100vw);
  margin-bottom: calc(35 / 320 * 100vw);
  z-index: 2;
}

#railway .search#byArea h3 {
  margin-bottom: calc(20 / 320 * 100vw);
}

#railway .search#byArea ul {
  margin-bottom: calc(20 / 320 * 100vw);
}

#railway .search#byArea ul li a {
  height: auto;
  line-height: 1.3;
  background-color: #fff;
  padding: calc(18 / 320 * 100vw) 0 calc(14 / 320 * 100vw);
}

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

#railway .search#byArea ul li a h4 {
  color: #00c4d0;
  font-size: calc(18 / 320 * 100vw);
  font-weight: bold;
  line-height: 1.4;
  display: inline;
  padding: 0 0 0 0.05em;
  background: linear-gradient(rgba(255, 255, 38, 0) 60%, rgba(255, 255, 38, 1) 60%, rgba(255, 255, 38, 0) 90%);
}

_::-webkit-full-page-media, _:future, :root #railway .search#byArea ul li a h4 {
  background: linear-gradient(rgba(255, 255, 38, 0) 70%, rgba(255, 255, 38, 1) 70%);
}

#railway .search#byArea ul li a p {
  font-size: calc(12 / 320 * 100vw);
  line-height: 1;
  color: #000;
  margin-bottom: calc(5 / 320 * 100vw)
}

#railway .search#byArea ul li a p.bold {
  font-weight: bold;
  margin-top: calc(5 / 320 * 100vw);
  margin-bottom: 0;
  line-height: 1.3;
}

#railway .search#byArea hr {
  margin-bottom: calc(20 / 320 * 100vw);
  border: none;
  border-bottom: 1px dotted #c6c6c6;
  height: 0;
  background-color: transparent;
  width: calc(273 / 320 * 100vw);
}

#railway .search#byArea .link-ranking {
  text-align: left;
  margin: 0 calc((100% - (273 / 320 * 100vw)) / 2);
}

#railway .search#byArea .link-ranking a {
  color: #000;
  display: inline-block;
  font-size: calc(12 / 320 * 100vw);
  font-weight: bold;
  line-height: 1;
  position: relative;
  padding-left: calc(12 / 320 * 100vw);
  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: calc(5 / 320 * 100vw);
  height: calc(5 / 320 * 100vw);
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  transform: rotate(45deg);
}

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

#railway .search#byOther::after {
  content: "";
  position: absolute;
  width: calc(998 / 320 * 100vw * 0.3);
  height: calc(1018 / 320 * 100vw * 0.3);
  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: -73vw;
  right: -50vw;
}

#railway .search#byOther h3 {
  margin-bottom: calc(20 / 320 * 100vw);
}

#railway .search#byOther ul li a {
  width: calc(280 / 320 * 100vw);
  font-size: calc(12 / 320 * 100vw);
  height: calc(50 / 320 * 100vw);
  line-height: calc(50 / 320 * 100vw - 6px);
  padding-right: calc(15 / 320 * 100vw);
  background-color: #fff;
  color: #000;
  display: block;
}

#railway .search#byOther ul li a::after {
  width: calc(8 / 320 * 100vw);
  height: calc(8 / 320 * 100vw);
  border-top: 2px solid #00c4d0;
  border-right: 2px solid #00c4d0;
}

.contentFooter {
  width: 100%;
  padding: calc(20 / 320 * 100vw);
}

.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: calc(300 / 320 * 100vw);
  max-width: calc(300 / 320 * 100vw);
  padding: 0;
  background: #fff;
  overflow: hidden;
  border-radius: 12px;
}

.modalWrapper::before, .modalWrapper::after {
  content: "";
  position: absolute;
  width: calc(998 / 320 * 100vw * 0.28);
  height: calc(1018 / 320 * 100vw * 0.28);
  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: calc(-193 / 320 * 100vw);
  left: calc(-195 / 320 * 100vw);
}

.modalWrapper::after {
  background-position: right top;
  bottom: calc(-63 / 320 * 100vw);
  right: calc(-160 / 320 * 100vw);
}

.modalContents {
  border: 3px solid #00c4d0;
  border-radius: 12px;
  padding: calc(25 / 320 * 100vw) calc(25 / 320 * 100vw) calc(25 / 320 * 100vw);
  display: block;
  text-align: center;
  position: relative;
  z-index: 1;
  max-height: 100vh;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.modalContents h3 {
  font-size: calc(18 / 320 * 100vw);
  font-weight: bold;
  line-height: 1em;
  padding-top: 0.1em;
  /*letter-spacing: 0.1em;*/
  margin-bottom: calc(25 / 320 * 100vw);
}

.modalContents ul {
  font-size: 0;
  padding: 0;
  margin: 0 0 calc(10 / 320 * 100vw);
  text-align: left;
}

.modalContents ul li {
  margin-right: calc(10 / 320 * 100vw);
  margin-bottom: calc(10 / 320 * 100vw);
  display: inline-block;
  width: calc((100% - 10 / 320 * 100vw) / 2);
  height: calc(55 / 320 * 100vw);
  vertical-align: top;
}

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

.modalContents ul li::before {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  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 {
  width: 100%;
  height: 100%;
  padding-left: calc(10 / 320 * 100vw);
  padding-right: calc(20 / 320 * 100vw);
  padding-top: 0.1em;
  position: relative;
  font-size: calc(12 / 320 * 100vw);
  font-weight: bold;
  color: #000;
  background: #fff;
  border: 2px solid #00c4d0;
  text-align: left;
  border-radius: 5px;
  transition: all 0.2s;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

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

.modalContents ul li a .small {
  font-size: calc(10 / 320 * 100vw);
}

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

.modalContents .close {}

.modalContents .closeModal a {
  width: calc(100 / 320 * 100vw);
  height: calc(30 / 320 * 100vw);
  line-height: calc(30 / 320 * 100vw);
  padding-left: calc(12 / 320 * 100vw);
  display: block;
  background: #d8d8d8;
  color: #000;
  font-size: calc(12 / 320 * 100vw);
  font-weight: bold;
  margin: auto;
  border-radius: 5px;
  position: relative;
}

.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 calc(12 / 320 * 100vw) center;
  background-size: calc(10 / 320 * 100vw) auto;
}
