#access {
  /* overflow-x: hidden; */
}


/* TRAIN */
#access #train {
  padding-top: 60px;
  overflow-x: hidden;
}
#access #train .route {
  margin: 30px auto;
}
#access #train .route figure {
  position: relative;
  margin: auto;
  max-width: 740px;
}
#access #train .route figure figcaption {
  margin-top: 1em;
  text-align: right;
  font-size: 80%;
}

#access #train .bg {
  padding: 60px 0;
}

#access #train .bg .headcopy {
  margin: auto;
  padding: .5em 2em;
  width: 740px;
  color: var(--bodycolor);
  font-weight: 400;
  background-color: #852018;
  border-radius: 24px;
}

#access #train .bg .times {
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 20px 0 10px;
  width: fit-content;
}
#access #train .bg .times > p:not(.annotation) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: .5em;
  padding-bottom: .5em;
  font-size: 160%;
  letter-spacing: .1em;
  border-bottom: var(--maincolor) solid 1px;
}
#access #train .bg .times > p:not(.annotation) span {
  font-size: 60%;
}
#access #train .bg .times p.annotation {
  font-size: 90%;
  text-align: right;
}

#access #train figure.times,
#access #train figure.station {
  margin: auto;
  padding: 20px 0;
  max-width: 740px;
}
#access #train figure.times figure,
#access #train figure.station figure {
  position: relative;
}
#access #train figure.times figcaption,
#access #train figure.station figcaption {
  font-size: 90%;
  text-align: right;
}

#access #train .distance {
  margin: auto;
  max-width: 740px;
}

#access #train .distance > div {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: var(--maincolor) solid 1px;
}
#access #train .distance > div img {
  width: 45%;
}
#access #train .distance > h3 {
  font-size: 100%;
  font-weight: 400;
}
#access #train .distance ol {
  display: flex;
  gap: 50px;
}
#access #train .distance ol li {
  list-style: none;
}
#access #train .distance ol li:nth-child(1) {
  width: 31.77%;
}
#access #train .distance ol li:nth-child(2) {
  width: 26.92% ;
}
#access #train .distance ol li:nth-child(3) {
  width: 27.99%;
}
#access #train .distance ol li > div {
  margin-top: 5px;
}
#access #train .distance ol li > div img {
  display: block;
  width: 100%;
}
#access #train .distance ol li > div span {
  display: block;
  padding-top: .2em;
  font-size: 80%;
  text-align: right;
}
#access #train .distance ol li > p {
  margin-top: 1em;
  font-size: 75%;
  letter-spacing: 0;
}

#access #train .inogashira {
  margin: 100px auto;
  padding: 60px 80px;
  border: var(--subcolor) solid 1px;
}
#access #train .inogashira .title {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}
#access #train .inogashira .title img {
  padding: 1em;
  border-left: var(--subcolor) solid 1px;
  border-right: var(--subcolor) solid 1px;
}
#access #train .inogashira .title p {
  font-size: 160%;
  letter-spacing: .1em;
  line-height: 1.4em;
  text-align: left;
}
#access #train .inogashira .title p span.r {
  display: block;
  color: #852018;
  font-size: 130%;
}

#access #train .inogashira .c {
  padding: 40px 0 0;
}
#access #train .inogashira .c h2 {
  font-size: 180%;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4em;
  text-align: left;
}
#access #train .inogashira .c h2 span {
  font-size: 80%;
}
#access #train .inogashira .c figure {
  position: relative;
}
#access #train .inogashira .c figure img.badge {
  position: absolute;
  top: 56%;
  left: 85%;
  z-index: 2;
  width: 14%;
  transform: translateY(-50%);
}
#access #train .inogashira .c1 figure img.badge {
  
}
#access #train .inogashira .c2 figure img.badge {
  left: 60%;
  transform: unset;
}

#access #train .inogashira .c2 figure figure.image {
  position: absolute;
  right: 0;
  top: -30px;
  width: 28%;
}
#access #train .inogashira .c2 figure figure.image img {
  display: block;
}
#access #train .inogashira .c2 figure figure.image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: .2em;
  width: 100%;
  font-size: .65rem;
  letter-spacing: 0;
  line-height: 1em;
  text-align: right;
  color: var(--bodycolor);
  background-color: rgba(0,0,0,.5);
}

#access #train .inogashira .c1 figure + .annotation {
  font-size: 80%;
}
#access #train .inogashira .c2 figure + .annotation {
  width: 58%;
  font-size: 80%;
}

#access #train .inogashira > p.annotation {
  margin-top: 2em;
  font-size: 80%;
  text-align: right;
}

#access #train .hounan {
  position: relative;
  margin: 100px auto 200px;
}
#access #train .hounan .bg1 {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url(../../access/img/train_bg1.png);
  background-position: center left;
  background-size: contain;
  background-repeat: no-repeat;
}
#access #train .hounan .bg1::before {
  content: "image";
  position: absolute;
  left: 5px;
  bottom: 5px;
  font-size: 80%;
  color: var(--bodycolor);
}
#access #train .hounan .bg2 {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: url(../../access/img/train_bg2.png);
  background-position: center right;
  background-size: contain;
  background-repeat: no-repeat;
}
#access #train .hounan .bg2::before {
  content: "image";
  position: absolute;
  right: 5px;
  bottom: 5px;
  font-size: 80%;
  color: var(--bodycolor);
}

#access #train .hounan figure.times {
  position: relative;
  margin: 40px auto;
  max-width: 640px;
}
#access #train .hounan figure.times figcaption {
  margin-top: -2em;
  font-size: .6rem;
  text-align: right;
}
#access #train .hounan figure.times p.annotation {
  margin-top: 1em;
  font-size: 80%;
  text-align: right;

}



/* CAR */
#access #car {
  overflow-x: hidden;
}
#access #car ol.distance {
  display: flex;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 15px;
  margin: auto;
  padding: 100px 0;
}
#access #car ol.distance li {
  list-style: none;
}
#access #car ol.distance li.title {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding-left: 3rem;
  width: 100%;
}
#access #car ol.distance li.title img {
  width: 38%;
}
#access #car ol.distance li.title span {

}
#access #car ol.distance li:not(.title) {
  width: calc(50% - 20px);
}
#access #car ol.distance li.image figure {
  position: relative;
}
#access #car ol.distance li.image figure img {
  display: block;
  width: 120%;
  margin-left: -20%;
}
#access #car ol.distance li.image figure figcaption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 1;
  font-size: 80%;
  color: var(--bodycolor);
}
#access #car ol.distance li.map {
  margin-top: -100px;
}
#access #car ol.distance li.map figure figcaption {
  padding-top: 1em;
  text-align: right;
  font-size: 80%;
}


@media all and (max-width: 999px) {

  #access #train {
    padding-top: 0;
  }

  #access #train .bg {
    padding: 5% 0;
  }
  #access #train .bg .headcopy {
    padding: 1em 0;
    width: 100%;
  }
  #access #train .bg .headcopy span {
    display: block;
    line-height: .6em;
  }

  #access #train .bg .times {
    padding: 5% 0;
  }
  #access #train .bg .times > p:not(.annotation) {
    gap: 5px;
    margin-bottom: .2em;
    padding-bottom: .2em;
    font-size: 150%;
  }
  #access #train .bg .times > p:not(.annotation) span {
    font-size: 50%;
  }

  #access #train .bg .times p.annotation {
    font-size: 80%;
  }

  #access #train figure.times figcaption,
  #access #train figure.station figcaption {
    font-size: 80%;
  }

  #access #train figure.times,
  #access #train figure.station {
    padding: 3% 0;
    max-width: 90vw;
  }

  #access #train .distance {
    padding: 5% 5% 10%;
  }
  #access #train .distance > div img {
    width: 75%;
  }
  #access #train .distance ol {
    flex-direction: column;
    gap: 10px;
  }
  #access #train .distance ol li {
    width: 100% !important;
  }
  #access #train .distance ol li img {
    display: inline-block !important;
  }
  #access #train .distance ol li:nth-child(1) img {
    width: 63.54%;
  }
  #access #train .distance ol li:nth-child(2) img {
    width: 53.84%;
  }
  #access #train .distance ol li:nth-child(3) img {
    width: 55.98%;
  }
  #access #train .distance ol li > div span {
    display: inline-block;
  }
  #access #train .distance ol li > p {
    margin-top: .5em;
  }

  #access #train .inogashira {
    margin: 10% 5%;
    padding: 10% 5%;
    width: 90%;
  }
  #access #train .inogashira .title {
    flex-direction: column;
  }
  #access #train .inogashira .title img {
    margin: auto;
    padding: 0 1em;
    width: 30%;
  }
  #access #train .inogashira .title p {
    font-size: 100%;
    text-align: center;
  }

  #access #train .inogashira .c {
    padding: 20px 0 0;
  }
  #access #train .inogashira .c h2 {
    font-size: 120%;
  }
  #access #train .inogashira .c1 figure img.badge {
    position: relative;
    top: unset;
    left: 70%;
    right: 0;
    bottom: 0;
    width: 30%;
    transform: unset;
  }
  #access #train .inogashira .c1 figure + .annotation {
    margin-top: -30%;
    width: 65%;
  }
  #access #train .inogashira .c2 figure img.badge {
    position: absolute;
    top: unset;
    left: unset;
    right: 0;
    bottom: 0;
    width: 30%;
    transform: unset;
  }
  #access #train .inogashira .c2 figure figure.image {
    position: relative;
    top: unset;
    right: unset;
    width: 65%;
  }
  #access #train .inogashira .c2 figure figure.image figcaption {
    font-size: 2.5vw;
  }
  #access #train .inogashira .c2 figure + .annotation {
    margin-top: 1em;
    width: 100%;
  }

  #access #train .inogashira > p.annotation {
    text-align: justify;
  }


  #access #train .hounan {
    margin: 10% auto;
  }


  #access #train .hounan .bg1,
  #access #train .hounan .bg2 {
    display: none;
  }

  #access #train .hounan .copy {
    padding: 0 0 5%;
    background-image: url(../../access/img/train_bg1.png);
    background-position: center left;
    background-size: contain;
    background-repeat: no-repeat;
  }
  #access #train .hounan .copy::before {
    content: "image";
    position: absolute;
    left: 5px;
    bottom: 5px;
    font-size: 80%;
    color: var(--bodycolor);
  }
  #access #train .hounan figure.times {
    margin: 0 auto 40px;
    padding: 10% 5% 5%;
    max-width: 100%;
    background-image: url(../../access/img/train_bg2.png);
    background-position: center right;
    background-size: contain;
    background-repeat: no-repeat;
  }
  #access #train .hounan figure.times figcaption {
    margin-top: unset;
  }
  #access #train .hounan figure::before {
    content: "image";
    position: absolute;
    right: 5px;
    bottom: 5px;
    font-size: 80%;
    color: var(--bodycolor);
  }

  /* CAR */
  #access #car ol.distance {
    flex-direction: column;
    gap: 0;
    padding: 10% 0;
  }
  #access #car ol.distance li {
    width: 100% !important;
  }
  #access #car ol.distance li.title {
    text-align: center;
  }
  #access #car ol.distance li.title img {
    width: 80%;
  }
  #access #car ol.distance li.image {
    order: 3;
  }
  #access #car ol.distance li.map {
    order: 2;
    margin: unset;
  }
  #access #car ol.distance li.image figure img {
    width: 104%;
    margin-left: -2%;
  }
  #access #car ol.distance li.map figure figcaption {
    padding-top: unset;
    padding-bottom: 1em;
  }


}

