/**
 * Bridge styles between renewal chrome and legacy motorcycle content.
 * Loaded after motorcycle-scoped.css.
 */

body.is-motorcycle-section .global-menu__list--motorcycle{
  display:none;
}

@media(max-width:1300px){
  body.is-motorcycle-section .global-menu__list--site{
    display:none;
  }
  body.is-motorcycle-section .global-menu__list--motorcycle{
    display:grid;
  }
}

@media(min-width:1301px){
  body.is-motorcycle-section .global-menu__list--motorcycle{
    display:none;
  }
}

.motorcycle-legacy {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 60px;
  text-align: left;
}

.motorcycle-legacy #contents {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto 80px;
  padding: 0;
}

.motorcycle-legacy #contents .wrapper {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

@media screen and (min-width: 768px) {
  /* DOM順は本文→サイドメニュー。旧サイト同様にサイドを左へ。 */
  .motorcycle-legacy #contents > .wrapper {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    column-gap: 30px;
  }

  .motorcycle-legacy .twocol-contents,
  .motorcycle-legacy .motorcycle-contents {
    float: none;
    width: 820px;
    max-width: calc(100% - 280px);
    flex: 0 1 820px;
  }

  .motorcycle-legacy .side-block {
    float: none;
    width: 250px;
    flex: 0 0 250px;
  }

  .motorcycle-legacy .motorcycle-contents,
  .motorcycle-legacy .twocol-contents {
    padding: 30px 30px 60px;
    box-sizing: border-box;
  }
}

.motorcycle-legacy .side-block {
  display: block;
}

/**
 * Cancel renewal theme component styles that share legacy class names.
 * common.css `.button` adds pill-shaped borders not present on the old site.
 */
.motorcycle-legacy a {
  border-radius: 0;
}

.motorcycle-legacy .button {
  background-color: transparent;
  background-image: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  display: inline-block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  max-width: none;
  min-height: 0;
  padding: 0;
  text-decoration: none;
  transition: none;
  width: auto;
}

.motorcycle-legacy .button:hover,
.motorcycle-legacy .button:focus,
.motorcycle-legacy .button:focus-visible {
  background-color: transparent;
  background-image: none;
  border: none;
  box-shadow: none;
  color: inherit;
  opacity: 1;
}

.motorcycle-legacy .more-button {
  border-radius: 0;
  box-shadow: none;
  background-image: none;
}

@media screen and (max-width: 1300px) {
  .motorcycle-legacy #contents > .wrapper {
    display: block;
  }

  .motorcycle-legacy .twocol-contents,
  .motorcycle-legacy .motorcycle-contents {
    float: none;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .motorcycle-legacy .side-block {
    display: none;
  }
}

@media screen and (min-width: 768px) and (max-width: 1300px) {
  .motorcycle-legacy #contents .wrapper {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 767px) {
  .motorcycle-legacy #contents,
  .motorcycle-legacy #contents .wrapper {
    width: 100%;
    margin-bottom: 40px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .motorcycle-legacy .motorcycle-contents,
  .motorcycle-legacy .twocol-contents {
    padding: 10px 10px 30px;
    box-sizing: border-box;
  }
}
