main {
    margin: 0 auto;
    text-align: center;
    overflow-x: hidden;
    width: 100%;
}
section {
    margin-bottom: 70px;
    width: 100%;
    box-sizing: border-box;
}
section img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

section.access-main {
    position: relative;
    margin-bottom: 0px;
}
section.access-main img{
    width: 100%;
    aspect-ratio: 2.1428;
    object-fit: cover;
}
section.access-main p{
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Garamond Premier Pro', 'EB Garamond', serif;
    font-size: 42px;
    letter-spacing: 3rem;
    width: 100%;
    text-align: center;
}
section.access-main .line{
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    height: 18vw;
    width: 1px;
    background: #fff;
    z-index: 2;
}
section.access-main .caption{
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2;
}
section h1 {
    font-size: 3rem;
    line-height: 1.5;
    padding: 20px 0;
}

section h1.title {
    font-size: 2.1rem;
    text-align: center;
    line-height: 230%;
    letter-spacing: 6px;
    width: 90%;
    margin: 0 auto 50px;
    font-weight: 500;
    padding: 0;
}
section.routes {
    margin-bottom: 0px;
    background :#dbe0db url(../../assets/images/intro_line.svg) center top / auto 55px no-repeat;
    padding-top: 100px;
}
.routes-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 50px;
    width: 100%;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}
.routes-area .routes-left img {
    width: 100%;
    max-width: 100%;
}
.routes-area .routes-right {
    margin: auto;
}
.routes-area .routes-right img {
    width: 100%;
    max-width: 365px;
    display: block;
}
.routes-area .routes-right p {
    font-size: 14px;
    line-height: 180%;
    letter-spacing: 1px;
    padding-top: 50px;
    text-align: left;
}
.route-line {
    position: relative;
    padding-bottom: 50px;
}
.route-line img{
    position: relative;
    z-index: 1;
}
.route-line .caption{
    position: absolute;
    z-index: 2;
    bottom: 8%;
    right: 5%;
    font-size: 10px;
}
.route-line .bg{
    position: absolute;
    z-index: 0;
    top: -15vw;
    bottom: -5vw;
    left: 0;
    right: 0;
    background: url(../../assets/images/access/access_img03.png) center / cover no-repeat;
}
/*
.route-line .back {
    position: absolute;
}
*/
.routes .route-imgbox {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.routes .route-imgbox > *{
    width: calc( ( 100% - 20px ) / 3);
}
.routes .route-imgbox img{
    width: 100%;
    aspect-ratio: 1.24712;
    object-fit: cover;
}
.access-wrap {
    background: #f5f4f0;
}
.access-contents {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 70px 15px 0;
    box-sizing: border-box;
}
.railway-title {
    display: flex;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.railway-title h3{
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #8b7355;
    margin-right: 50px;
}
.railway-title div{
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-align: left;
    flex: 1;
}
.railway-title div p:first-child {
    margin-bottom: 20px;
}
.railway-info {
    margin-bottom: 30px;
}
.railway-info .txt {
    text-align:right;
    margin-bottom: 80px;
}
.railway-info .notes {
    text-align: left;
    font-size: 2rem;
    padding: 0 10px;
}

.railway-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: auto;
  width: 100%;
}
.railway-detail-box {
  border-left: 4px solid black;
  padding-left: 20px;
  text-align: left;
}
.railway-detail-box h4 {
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1.5;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.railway-detail-box h4 .time {
  font-size: 3.5rem;
  color: #b43e38;
  font-weight: bold;
}
.railway-detail-box p {
  font-size: 1.3rem;
  letter-spacing: 0px;
  line-height: 1.2;
}
.railway-detail-box .daytime {
  font-weight: bold;
  margin-top: 1rem;
}
.railway-detail-box .station-name {
    display: inline-block;
    max-width: 180px;
}
.routemap h2,
.routesimulation h2 {
  display: flex;
  align-items: flex-end;
  font-size: 3rem;
  color: #8c6b5c;
  margin-bottom: 50px;
}

.routemap h2::after,
.routesimulation h2::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-color: #bfa54b;
  margin-left: 10px;
}

.routemap h2 span {
    font-size: 6rem;
}
.routesimulation .routesimulation-imgBox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.routesimulation p{
    font-size: 12px;
    text-align: left;
    line-height: 160%;
}
.columns {
    background-color: #fff;
}
.columns .columns-wrap {
    display: flex;
}
.columns-wrap-left {
    text-align: left;
    padding: 50px 30px;
    width: 100%;
    box-sizing: border-box;
}
.columns-wrap-left h3 {
    font-size: 3rem;
    color: #b49775;
    letter-spacing: 0.15em;
    font-weight: bold;
    margin-bottom: 20px;
}
p.columns-wrap-text {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.8;
    letter-spacing: 8px;
    margin-bottom: 50px;
}
p.columns-wrap-note {
    text-align:left;
    font-size: 12px !important;
    line-height: 160%;
    padding-right: 12rem;
}
.columns img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}
.highway .highway-wrap {
    display: flex;
    margin-bottom: 50px;
}
.highway  > p{
    font-size: 12px;
    line-height: 160%;
    margin-top: 5px;
    text-align: left;
    width: 100%;
}
.highway-wrap div{
    width: 100%;
    box-sizing: border-box;
}
.highway-left {
    text-align: left;
}
.highway-left h3 {
    font-size: 3rem;
    color: #b49775;
    letter-spacing: 0.15em;
    font-weight: bold;
    margin-bottom: 20px;
}
p.highway-wrap-text {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.8;
    margin-bottom: 30px;
}
p.highway-wrap-note {
    font-size: 1.4rem;
    line-height: 1.6;
    font-weight: 400;
}

.car-access-title {
    display: flex;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.car-access-title h3{
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #8b7355;
    margin-right: 50px;
}
.car-access-title div{
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: .5rem;
    text-align: left;
}
.car-access-title div p:first-child {
    margin-bottom: 20px;
}
.car-access-area-wrap{
    display: flex;
    gap: 30px;
}
.car-access-area-directions {
}
.car-access-area-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 1200px;
    margin: auto;
    box-sizing: border-box;
}
.area-image {
    position: relative;
}
.area-image p{
    position: absolute;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    line-height: 1.5;
    width: 100%;
    text-align: center;
}
.area-image p span{
    font-size: 1.5rem;
}

.car-access {
    padding-bottom: 100px;
}

/* スマホ向けのメディアクエリ */
@media screen and (max-width: 768px) {
    section.access-main p {
        font-size: 4rem;
        letter-spacing: 1rem;
    }
    
    section h1 {
        font-size: 2.5rem;
        padding: 20px 10px;
    }
    .route-line{
    }
    .route-line img{
        scale: 114%;
    }
    
    .routes-area {
        grid-template-columns: 1fr;
    }
    .routes-area .routes-right img {
        max-width: 280px;
        margin: 50px auto 20px;
    }
    .routes-area .routes-right p {
        font-size: 2rem;
        text-align: center;
        padding: 20px
    }
    
    .routes .route-imgbox {
        align-items: center;
    }
    
    .routes .route-imgbox img {
    }
    .routemap-image{
        width: 100%;
        overflow-x: scroll;
        position: relative;
        z-index: 1;
    }
    .routemap-image:after{
        content: "";
        z-index: 2;
        position: absolute;
        bottom: 15px;
        left: 15px;
        width: 75px;
        height: 75px;
        background: url(../images/icon_swipe.svg) center / contain no-repeat;
       animation: blinking 1s ease-in-out infinite alternate;
    }
    @keyframes blinking {
       0% {
       opacity: 0;
       }
       100% {
       opacity: .6;
       }
    }
    .routemap-image img{
        width: 220vw;
        max-width: unset;
    }
    
    .railway-title {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 50px;
    }
    
    .railway-title h3 {
        margin-right: 0;
        margin-bottom: 20px;
        font-size: 3rem;
    }
    .railway-title div {
        font-size: 2.4rem;
        text-align: center;
    } 
    .railway-detail-box h4 .time {
        font-size: 3rem;
    }
    .railway-detail-box p {
        font-size: 1.8rem;
        line-height: 1.5;
    }

    .routemap h2, .routesimulation h2 {
        display: block;
    }
    
    .routesimulation .routesimulation-imgBox {
        display: flex;
        flex-wrap: wrap;
    }
    .routemap h2 span {
        font-size: 4rem;
    }
    
    .routemap h2::after, .routesimulation h2::after {
        display: none;
    }
    .columns .columns-wrap {
        flex-wrap: wrap;
    }
    .columns-wrap-left {
        padding: 30px 20px;
        text-align: center;
    }
    .columns-wrap-left h3 {
        font-size: 3rem;
    }
    p.columns-wrap-text {
        font-size: 2.4rem;
        letter-spacing: 4px;
        margin-bottom: 30px;
    }
    p.columns-wrap-note {
        padding: 0;
    }
    .highway .highway-wrap {
        flex-wrap: wrap;
    }

    .highway-wrap div {
        text-align: center;
        margin-bottom: 30px;
    }
    .highway-left h3 {
        margin: 20px 0;
    }
    p.highway-wrap-text {
        font-size: 2.4rem;
    }
    p.highway-wrap-note {
        font-size: 2rem;
    }
    .car-access-area-wrap {
        flex-wrap: wrap;
    }
    .car-access-title {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .car-access-title h3 {
        margin-right: 0;
        margin-bottom: 20px;
        font-size: 3rem;
    }
    
    .car-access-title div {
        font-size: 2.4rem;
        text-align: center;
    }
    .car-access-area-directions {
        width: 100%;
    }
    .area-image p {
        font-size: 3rem;
    }
    .area-image p span {
        font-size: 1.2rem;
    }
}


@media screen and (max-width: 600px) {
    .railway-detail-box h4 {
        justify-content: flex-start;
    }
    .railway-detail-box .station-name {
        width: 150px;
    }
}
