/*Site Wide*/
.swSectionSubTitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 1em;
  line-height: 1.3;
  text-align: center;

  @media (min-width:801px) {
    font-size: 26px;
  }
}

.swContentTitle {
  .swContentTitle__jpn {
    @media (min-width:801px) {
      span {
        font-size: 95%;
        display: block;
        line-height: 1.2;
      }
    }
  }
}

.swLead {
  text-align: justify;
  max-width: 700px;
  margin: 0 auto 2em;
}

.tableContainer {
  overflow: auto;

  >table {
    /* min-width: 900px; */
  }
}

.swTable {
  width: 100%;
  min-width: 900px;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  /* border-collapse: collapse; */
  border-collapse: separate;
  border-spacing: 0;

  th,
  td {
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    padding: .75em 1em;
    text-align: center;
    vertical-align: middle;

    &.top {
      vertical-align: top;
    }
  }

  th {
    background-color: #ededed;
  }

  .swButton {
    padding: 7px 15px;
    min-width: 120px;
    font-size: 11px;
    font-weight: normal;

    &::after {
      font-size: 6px;
    }
  }
}

.stFooterNavi {
  .footerNavi {
    @media (max-width:800px) {
      max-width: calc(55% - 30px);
    }
  }
}

.pageNaviContainer {
  margin-top: 80px;
  border-bottom: 1px solid #ccc;
  background-color: #fff;
  /* position: sticky; */
  height: 50px;
  /* top: 0; */
  /* z-index: 1000; */
  display: flex;
  align-items: flex-end;
  justify-content: center;

  @media (min-width: 801px) {
    z-index: 997;
    height: 65px;
  }
}

.pageNavi {
  width: 100%;
  max-width: 1000px;
  display: flex;

  .pageNavi__item {
    flex: 1;

    a {
      font-size: 15px;
      text-decoration: none;
      display: flex;
      height: 100%;
      align-items: center;
      text-align: center;
      justify-content: center;
      line-height: 1.3;
      padding-bottom: 10px;
      font-weight: bold;
      border-bottom: 3px solid transparent;
      transition: all .4s;

      &:hover {
        border-bottom: 3px solid #000;
        opacity: .8;
      }

      @media (min-width: 801px) {
        font-size: 20px;
      }
    }
  }
}


/*TOP*/
.pageHome {
  .newsList {
    max-height: 200px;
    overflow: auto;
    scrollbar-color: #666 #f1f1f1;
    scrollbar-width: thin;
  }

  .info {
    max-width: 900px;
    margin-inline: auto;
    padding: 0 35px;

    @media (min-width:801px) {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;

    }

    .twitterTL {
      margin: 0;
      /* iframe{
        height: 380px!important;
      } */
    }

    .bear {
      margin-top: 20px;
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 1.5em;

      @media (min-width:801px) {
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        /* height: 400px; */
      }

      .button {
        display: block;
        background-color: #f8f34f;
        border-radius: 7px;
        padding: 10px;
        overflow: hidden;
        text-decoration: none;

        @media (any-hover: hover) {
          transition: all .4s;

          &:hover {
            opacity: .7;
          }
        }

        /* @media (min-width:801px){ */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 25px 0;

        /* } */
        img {
          display: block;
          /* width: 100px; */
          /* margin: 10px auto; */
          width: 50px;
          margin-right: 15px;

          @media (min-width:801px) {
            width: 60px;
          }
        }

        .text {
          /* background-color: #000;
          color: #f7f12f; */
          font-size: 15px;
          font-weight: bold;
          text-align: center;

          @media (min-width:801px) {
            font-size: 20px;
            /* flex: 1; */
          }
        }
      }
    }
  }

  .route {
    position: relative;
    padding-inline: 15px;

    .route__visual {
      aspect-ratio: 1/1;
      overflow: hidden;

      @media (min-width:801px) {
        aspect-ratio: 16/9;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* @media (min-width:801px) { */
        transform: translateY(-7%);
        scale: 1.15;
        /* } */
      }
    }

    .route__catch {
      position: absolute;
      top: 46%;
      left: 50%;
      width: 80%;
      max-width: 700px;
      transform: translate(-52%, -60%);

      img {
        width: 100%;
      }
    }
  }

  .areaEvent {
    table {
      min-width: 900px;
    }
  }

  .eventSection__description {
    .viewmore {
      margin-top: 30px;
      text-align: center;
    }

    .swButton {
      min-width: 300px;
    }
  }

  .cycleSpot {
    .gourmetImages {
      flex: 1;
      display: grid;
      gap: 12px;
      grid-template-columns: 1fr 1.8fr;

      .gourmetImages__item {
        img {
          object-fit: cover;
          width: 100%;
          height: 100%;
        }
      }

      @media (max-width:800px) {
        .gourmetImages__item {
          &:first-child {
            grid-column: 2 / 3;
            grid-row: 1 / 4;
          }

          &:nth-child(2) {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
          }

          &:nth-child(3) {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
          }

          &:nth-child(4) {
            grid-column: 1 / 2;
            grid-row: 3 / 4;
          }

          &:nth-child(5) {
            grid-column: 1 / 3;
            grid-row: 4 / 5;
          }
        }
      }

      @media (min-width:801px) {
        grid-template-columns: 1fr 1fr 1fr 2.2fr;
        grid-template-rows: 1fr 1.8fr;
        gap: 15px;
        /* height: 440px; */

        .gourmetImages__item {
          overflow: hidden;

          &:first-child {
            grid-column: 4 / 5;
            grid-row: 1 / 3;
          }

          &:nth-child(2) {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
          }

          &:nth-child(3) {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
          }

          &:nth-child(4) {
            grid-column: 3 / 4;
            grid-row: 1 / 2;
          }

          &:nth-child(5) {
            grid-column: 1 / 4;
            grid-row: 2 / 3;
          }
        }
      }
    }
  }

  .cycleHotel {
    margin-top: 80px;

    @media (min-width:801px) {
      margin-top: 150px;
      display: flex;
    }

    .cycleHotel__lead {
      @media (min-width:801px) {
        width: 320px;
      }
    }

    .yadoImages {
      flex: 1;
      display: grid;
      gap: 12px;
      grid-template-columns: 1fr 1fr;

      .yadoImages__item {
        img {
          object-fit: cover;
          width: 100%;
          height: 100%;
        }
      }

      @media (max-width:800px) {
        .yadoImages__item {

          &:first-child,
          &:nth-child(4) {
            grid-column: 1 / 3;
          }

          &:nth-child(2) {
            grid-column: 1 / 2;
          }

          &:nth-child(3) {
            grid-column: 2 / 3;
          }
        }
      }

      @media (min-width:801px) {
        grid-template-columns: 1fr 1fr 1.75fr;
        grid-template-rows: 1fr 1.5fr;
        gap: 15px;
        /* height: 440px; */

        .yadoImages__item {
          overflow: hidden;

          &:first-child {
            grid-column: 3 / 4;
            grid-row: 1 / 3;
          }

          &:nth-child(2) {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
          }

          &:nth-child(2) {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
          }

          &:nth-child(4) {
            grid-column: 1 / 3;
            grid-row: 2 / 3;
          }
        }
      }
    }
  }

}

/*サイクリングルート*/
/*ツールドのサポート終了*/
.pageRoute {
  .eos {
    margin: 50px auto 30px;
    text-align: center;

    .eos__catch {
      font-weight: bold;
      font-size: 1.1rem;

      @media (min-width:801px) {
        font-size: 1.2rem;
      }
    }

    .eos__description {}

    .swButton {
      margin-top: 15px;
    }
  }

  .courseList {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 10px;
    line-height: 1.3;

    @media (min-width:801px) {
      grid-template-columns: 1fr 1fr 1fr;
      gap: 60px 40px;
    }

    .image {
      aspect-ratio: 800/470;
      overflow: hidden;
      margin-bottom: 10px;

      img {
        object-fit: cover;
        width: 100%;
        height: 100%;
      }
    }

    h3 {
      font-weight: bold;
      /* font-size: 1.05rem; */
      margin-bottom: .5em;

      @media (min-width:801px) {
        font-size: 1.2rem;
      }
    }

    table {
      @media (max-width:800px) {
        font-size: .9rem;
      }

      th {
        color: #666;
        padding-right: .5em;
        min-width: 5em;
      }
    }

    .button {
      margin-top: 10px;
      border: 1px solid #333;
      background-color: #fff;
      display: block;
      padding: .65em .5em;
      line-height: 1;
      text-align: center;
      /* font-weight: bold; */
      text-decoration: none;

      @media (any-hover: hover) {
        transition: all .4s;

        &:hover {
          background-color: #333;
          color: #fff;
        }
      }
    }
  }

  .rentaCycle {
    table {
      min-width: 1100px;

      @media (min-width:801px) {
        font-size: .9rem;
      }
    }
  }

  .rentaCycleCaption {
    font-size: .9rem;
    margin-top: 5px;
  }
}


/*サイクリストにやさしい宿*/
.pageYado {
  .swHero__catch--yado {
    top: 50%;
    width: 80%;
    max-width: 520px;
    transform: translate(-50%, -65%);
  }

  .yadoLead {
    font-size: 1.05rem;
    font-weight: bold;
    text-align: justify;
    margin-bottom: 40px;

    @media (min-width:801px) {
      margin-bottom: 80px;
      text-align: center;
    }
  }

  .condition {
    max-width: 800px;
    margin: 0 auto;

    .terms {
      border: 1px solid #ccc;
      padding: 1em;
      margin-bottom: 1em;

      @media (min-width:801px) {
        padding: 1.5em;
      }

      .terms__item {
        &:not(:last-child) {
          margin-bottom: 1em;
        }

        .title {
          font-size: 1.15rem;
          font-weight: bold;
          padding-left: 1.3em;
          position: relative;

          span {
            position: absolute;
            left: 0;
          }
        }
      }

      .supplement {
        padding-left: 1.2em;
        margin-top: .5em;

        .supplement__item {
          position: relative;
          padding-left: 1em;

          &::before {
            content: '-';
            position: absolute;
            left: 0;
          }
        }
      }
    }
  }

  .yadoList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;

    .yadoList__item {
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.075);
      display: flex;
      flex-direction: column;
    }

    .yadoList__text {
      padding: 1em;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .yadoList__name {
      font-size: 1.15rem;
      font-weight: bold;
    }

    .yadoList__info {
      font-size: .85rem;
      color: #666;
      line-height: 1.5;

      a {
        @media (any-hover: hover) {
          pointer-events: none;
          text-decoration: none;
        }
      }
    }

    .yadoList__description {
      margin: 1em 0;
      line-height: 1.5;
    }

    .swButton {
      margin-top: auto;
      padding: .7em;
      font-size: .9rem;
    }
  }
}


.guruttoCourse__widget {
  margin-top: 20px;
}

@media (min-width: 801px) {
  .guruttoCourse {
    /* flex-direction: row-reverse; */

    /* align-items: center; */
    .aid {
      padding-inline: 0 80px;
    }

    .guruttoCourse__widget {
      margin-top: 0;
    }
  }
}

.pageEvent {

  .download {
    margin-top: 30px;
    /* border: 2px solid #666; */
background-color: #f1f1f1;
    @media (min-width: 801px) {
      /* max-width: 1000px; */

    }

    .inner {
      max-width: 1000px;
      padding: 20px 20px 280px;
      margin-inline: auto;
      background-image: url('../img/rideevent/travelo.png');
      background-size: auto 240px;
      background-position: bottom center;
      background-repeat: no-repeat;

      @media (min-width: 801px) {
        min-height: 460px;
        padding: 30px 50px 30px;
        background-size: auto 440px;
        background-position: bottom right -30px;
      }
    }

    .download__title{
      text-align: center;
      font-size: 18px;
      font-weight: bold;
      @media (min-width: 801px) {
        font-size: 24px;
      }
    }
  }

  .travelo {
    .travelo__title {
      text-align: center;
      margin: 30px 0;

      img {
        width: 200px;
      }
    }

    .travelo__applink {
      max-width: 400px;
      margin-inline: auto;
    }

    .travelo__applinkTitle {
      font-weight: bold;
      text-align: center;
      margin-bottom: 10px;
    }

    .travelo__link {
      text-align: center;
      margin-top: 10px;

      a {
        background-color: #004E2A;
        border-radius: 20px;
        padding: 10px 15px;
        line-height: 1;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
        min-width: 200px;
        display: inline-block;
        @include hover();
      }
    }

    @media (min-width: 801px) {
      width: 50%;

      .travelo__title {
        margin-top: 50px;
        margin-bottom: 40px;

        img {
          width: 260px;
        }
      }

      .travelo__link {
        margin-top: 30px;
      }
    }
  }


  .applinkList {
    display: flex;
    justify-content: space-between;

    .applinkList__item {
      width: calc(50% - 10px);
    }

    .applinkList__itemButton {
      display: block;
      margin: 0 auto 10px;
      text-align: center;
    }

    .applinkList__itemQR {
      display: block;
      margin: 0 auto 10px;
      width: 80%;
      max-width: 100px;
    }

    @media (min-width: 801px) {
      .applinkList__itemQR {
        max-width: 140px;
      }
    }
  }
}