/* アクセスページ（access.html）用のCSS */

/* ---------- 各セクション共通 ---------- */
.item_title {
  margin-bottom: 40px;
  font-size: 20px;
  line-height: 2;
  letter-spacing: 0.8em;
}
.item_text {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.3em;
}
.title_img {
  height: 80px;
  margin-bottom: 40px;
}

/* ---------- top_contents ---------- */
.top_contents {
  padding-bottom: 180px;
}
.top_text {
  text-align: center;
  padding: 100px;
}
.top_text .title {
  font-size: 30px;
  margin-bottom: 40px;
  letter-spacing: 0.8em;
}
.train_top_text  {
  margin-bottom: 180px;
}
.train_top_text + .title_img {
  margin: 0 auto 80px auto;
}
.train_img1_text1 {
  margin-bottom: 40px;
}
.train_img1_text2 {
  margin-bottom: 80px;
}

.train_top_map_img,
.train_img2 {
  margin-bottom: 60px;
}

.train_img2_text {
  margin-bottom: 180px;
}

.train_map {
  width: 90%;
  max-width: inherit;
  margin: 0 auto 60px;
}
.seaside {
  text-align: center;

  .scroll-scale,
  .item_text {
    margin-bottom: 80px;
  }
}
.top_contents .title_img {
  margin: 0 auto 80px;
}


/* ---------- bicycle 背景 ---------- */
.bg {
  background-color: #f8f8f9;
  position: relative;
}
.bg::before {
  content: " ";
  position: absolute;
  left: 0;
  top: -43px;
  background-image: url(../img/location/location_bg_top.png);
  background-repeat: no-repeat;
  background-position-y: top;
  width: 100%;
  height: 200px;
  z-index: 2;
}
.bg::after {
  content: " ";
  position: absolute;
  left: 0;
  bottom: -43px;
  background-image: url(../img/location/location_bg_bottom.png);
  background-repeat: no-repeat;
  background-position-y: top;
  width: 100%;
  height: 200px;
  z-index: 2;
}


/* ---------- bicycle ---------- */
.bicycle {
  position: relative;
  padding-bottom: 180px;
  z-index: 3;
  .title_wrap {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-bottom: 160px;
  }
  .title_wrap .text_block {
    flex: 0 0 auto;
  }

  .title_wrap img {
    flex: 1 1 0;
    min-width: 0;
  }

  .item {
    display: flex;
    gap: 40px;
  }
  .item .scroll-scale {
    width: 55%;
  }
  .item .text_block {
    width: calc(100% - (55% + 40px));
  }
  .item .text_block img {
    margin-bottom: 40px;
  }
  .item ul {
    font-size: 16px;
  }
  .item ul li {
    margin-bottom: 10px;
  }
  .item.item1 {
    padding-bottom: 80px;
    border-bottom: 1px var(--btn-color) dotted;
  }
  .item.item2 {
    padding-top: 80px;
  }
}


/* ---------- wing ---------- */
.wing {
  position: relative;
  z-index: 3;
  .title_img {
    margin: 0 auto 80px auto;
  }
  .title_img + .item_text {
    text-align: center;
    margin-bottom: 80px;
  }
  .item {
    background-color: #fff;
    padding: 60px;
  }
  .item1 > img {
    margin-bottom: 60px;
  }
  .item .img_wrap {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
  }
  .item .item_text {
    margin-bottom: 60px;
  }
  .item .item_text span {
    font-size: 80%;
  }
  .item.item1 .img_wrap {
    position: relative;
  }
  .item.item1 .img_wrap > .scroll-scale:first-child {
    flex: 0 0 calc(50% - 10px);
  }
  .item.item1 .img_wrap > .scroll-scale:nth-child(2) {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(50% - 10px);
    height: 100%;
  }
  .item.item1 .img_wrap > .scroll-scale:nth-child(2) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .item.item1 {
    margin-bottom: 40px;
  }
  .item2 img + img {
    width: 80%;
    margin: 60px auto 0 auto;
  }
}

/* ---------- car ---------- */
.car {
  position: relative;
  text-align: center;
  z-index: 3;
  padding: 180px 0;
  .title_img {
    margin: 0 auto 40px auto;
  }
  .item_text  {
    margin-bottom: 80px;
  }
  .img_wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 100px;
  }
  .car_bg_text {
    background-color: #262425;
    color: #fff;
    font-size: 18px;
    padding: 5px 10px;
    margin-bottom: 20px;
    text-align: left;
  }
}

/* =========================
  768px以下
========================= */
@media (max-width: 768px) {
  .top_text {
    padding: 40px 20px;
  }
  .train_top_text {
    margin-bottom: 80px;
  }
  .train_top_text + .title_img {
    margin: 0 auto 40px auto;
  }
    .top_text .title {
    font-size: 22px;
    letter-spacing: 0.4em;
  }
    .item_title {
    letter-spacing: 0.4em;
    font-size: 18px;
  }
    .item_text {
    letter-spacing: 0.1em;
    font-size: 14px;
  }
    .title_img {
    height: 40px;
  }
  .train_img1_text1 {
    margin-top: 40px;
  }
  .train_img2_text {
    margin-top: 40px;
    margin-bottom: 80px;
  }
  .train_top_map_img,
  .train_img2,
  .seaside_line_figure,
  .wing_item1_img3,
  .train_map {
    width: 1000px;
    max-width: inherit;
  }
  .train_map {
    padding: 0 20px;
  }
  .train_img1_text2 {
    display: none;
  }
  .seaside .scroll-scale, .item_text,
  .wing .item1 > img,
  .wing .title_img + .item_text {
    margin-bottom: 40px;
  }
  .top_contents,
  .bicycle {
    padding-bottom: 80px;
  }
  .bicycle .title_wrap {
    gap: 0;
  }
  .bicycle .title_wrap,
  .bicycle .item,
  .wing .item .img_wrap {
    flex-direction: column;
  }
  .bicycle .title_wrap .text_block,
  .bicycle .item.item1 .text_block,
  .bicycle .item.item1 .scroll-scale,
  .bicycle .item.item2 .text_block,
  .bicycle .item.item2 .scroll-scale,
  .wing .item2 img + img,
  .wing .item.item1 .img_wrap > .scroll-scale:first-child,
  .wing .item.item1 .img_wrap > .scroll-scale:nth-child(2) {
    width: 100%;
  }
  .bicycle .item.item1 .text_block{
    order: 1; 
  }
  .bicycle .item.item1 .scroll-scale {
    order: 2;
  }
  .wing .item {
    padding: 30px 20px;
  }
  .wing .item2 img + img {
    margin: 30px auto 0 auto;
  }
  .wing .title_img {
    margin: 0 auto 40px auto;
  }
  .car {
    padding: 80px 0;
  }
  .wing .item.item1 .img_wrap > .scroll-scale:nth-child(2) {
    position: relative;
  }
  .car .car_bg_text {
    font-size: 14px;
  }
  .car .img_wrap {
    gap: 15px;
    margin-bottom: 40px;
  }
  .car .item_text {
    margin-bottom: 40px;
  }
}