@charset "UTF-8";
main {
  padding: 0 20px;
}

.online_wrapper {
  margin: 0 0 40px 0;
}

.online_wrapper .online_container {
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 1016px) {
  .online_wrapper .online_container {
    flex-direction: column;
    align-items: center;
  }
}

.swimming_wrapper {
  margin: 0 0 40px 0;
}

.swimming_wrapper .swimming_container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

@media screen and (max-width: 1016px) {
  .swimming_wrapper .swimming_container {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
}

.books_wrapper {
  margin: 0 0 40px 0;
}

.books_wrapper .books_container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

@media screen and (max-width: 1016px) {
  .books_wrapper .books_container {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
}

h2.title {
  font-size: 40px;
  font-weight: bold;
  margin: 35px 0 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

h2.title .ruby {
  color: #707070;
  font-size: 18px;
}

@media screen and (max-width: 1016px) {
  h2.title {
    flex-direction: column;
  }
  h2.title .ruby {
    display: block;
  }
}

.intro {
  text-align: center;
  font-weight: bold;
}

h3.category_title {
  font-size: 26px;
  margin: 0 0 20px 0;
  border: solid 2px #049DBF;
  border-width: 0 0 2px 0;
}

h3.category_title .ruby {
  color: #707070;
  font-size: 18px;
  margin: 0 0 0 16px;
}

@media screen and (max-width: 1016px) {
  h3.category_title {
    font-size: 24px;
    text-align: center;
  }
  h3.category_title .ruby {
    display: block;
    font-size: 14px;
    margin: 0;
  }
}

/*
 ==============
 ルビのスタイル
 ==============
*/
.ruby_sp {
  font-size: 12px;
  font-weight: normal;
  display: none;
  color: #707070;
  margin: 0 0 0 14px;
}

@media screen and (max-width: 1016px) {
  .ruby_sp {
    display: block;
  }
}

.ruby_pc {
  font-size: 14px;
  line-height: 1.4;
  color: #707070;
  display: block;
  word-break: break-all;
}

@media screen and (max-width: 1016px) {
  .ruby_pc {
    display: none;
  }
}

/*
 ==============
 各アイテムのスタイル
 主にflex設定
 ==============
*/
.item_container {
  width: 380px;
  max-width: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
  border: solid 1px #dddddd;
}

.item_container.display_none {
  border: 0;
}

.item_container h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  border: solid #dddddd;
  border-width: 0 0 1px 0;
}

.item_container h4.small_title {
  font-size: 16px;
}

.item_container a {
  display: block;
}

.item_container:nth-of-type(2n) {
  margin: 0 0 0 40px;
}

@media screen and (max-width: 1016px) {
  .item_container h4 {
    display: flex;
    align-items: center;
    font-size: 16px;
    border: none;
  }
  .item_container:nth-of-type(2n) {
    margin: 20px 0 0 0;
  }
}

.item_flex {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.item_flex img {
  width: 160px;
}

.item_flex__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item_flex__right {
  width: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: inherit;
}

@media screen and (max-width: 1016px) {
  .item_flex img {
    width: 120px;
  }
  .item_flex__right {
    justify-content: flex-end;
  }
}

.links a {
  font-size: 18px;
  font-weight: bold;
  text-decoration: underline;
}

@media screen and (max-width: 1016px) {
  .links a {
    font-size: 14px;
  }
}

.amazon {
  width: 100px;
  height: 58px;
  color: transparent;
  background: url("../../img/item/amazon.jpg") no-repeat left/100px 58px;
}

.base {
  width: 100px;
  height: 40px;
  color: transparent;
  background: url("../../img/item/base.jpg") no-repeat left/100px 40px;
}

.item_container.online_swimming .ruby_sp {
  margin: 0;
}

@media screen and (max-width: 1016px) {
  .item_container.online_swimming h4 {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
}

.item_container.float .ruby_pc {
  font-size: 18px;
}

@media screen and (max-width: 1016px) {
  .item_container.swimming_children .ruby_pc {
    display: block;
    font-size: 12px;
  }
}
