@charset "UTF-8";

/* -------------------------------------------------------------------------------
|  Created:     20xx-xx-xx
|  Updated:     N/A
|------------------------------------------------------------------------------- */

.meswp-history__items {
  font-size: 16px;
  margin-top: 60px;
}

.meswp-history__item {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--grey400);
  padding-bottom: 20px;
  padding-top: 20px;
}

.meswp-history__text {
  width: calc(100% - 330px);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  > * {
    align-self: stretch;
    &:nth-child(n + 3) {
      padding-top: 10px;
      margin-top: 10px;
      border-top: 1px dotted var(--grey400);
    }
  }
}

.meswp-history__year {
  width: 130px;
  font-size: 24px;
  font-weight: bold;
  padding-top: 10px;
  > * {
    display: inline-block;
    text-align: right;
  }
  &:nth-of-type(n + 2) {
    padding-top: 20px;
  }
}

.meswp-history__desc {
  width: calc(100% - 130px);
  font-size: 1em;
}

.meswp-history__lists {
  width: calc(100% - 330px);
  width: 100%;
}

.meswp-history__list {
  display: block;
}

.meswp-history__image {
  margin-left: 30px;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #fffcf7;
  align-self: flex-start;
  border: 1px solid var(--grey200);
  width: 300px;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.meswp-history__img {
  vertical-align: bottom;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.meswp-history__caption {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

/*! Medium and Small（Medium以下） */
@media only screen and (max-width: 980px) {
  .meswp-history__year,
  .meswp-history__desc {
    width: 100%;
  }
  .meswp-history__year {
    padding-top: 0;
    margin-top: 0;
    br {
      display: none;
    }
  }
  .meswp-history__text {
    display: block;
    > * {
      &:nth-child(n + 3) {
        padding-top: 0;
        margin-top: 0;
        border-top: none;
      }
      &:nth-child(2n + 3) {
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px dotted var(--grey400);
      }

    }
  }
  .meswp-history__item {
    margin-top: 15px;
    padding-bottom: 15px;
  }
}

/*! Small only (Smallのみ) */
@media only screen and (max-width: 767px) {
  .meswp-history__desc {
    margin-top: 0;
    flex-wrap: wrap;
    > * { 
      width: 100%;
    }
  }
  .meswp-history__text {
    width: 100%;
  }
  .meswp-history__image {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
  } 
}