
.top-news-area {
  margin-bottom: 30px;
}
.top-news-area a:link, .top-news-area a:visited, .top-news-area a:active {
  color: #4472c4;
  text-decoration: none;
  cursor: pointer;
}
.top-news-area__content * {
  font-size: 16px;
}

.top-note {
  color: #D32626;
  margin-top: 45px;
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
}
@media screen and (max-width: 767px) {
  .top-note {
    left: auto;
    right: 25px;
  }
}

.top-card-list {
  margin-top: 45px;
  margin-bottom: 50px;
}
@media screen and (max-width: 767px) {
  .top-card-list {
    left: auto;
    right: 25px;
    margin-bottom: 100px;
  }
}
.top-card-list__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 15px;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}
@media screen and (max-width: 767px) {
  .top-card-list__inner {
    grid-template-columns: repeat(1, 1fr);
    padding-left: 20px;
    padding-right: 20px;
  }
}
.top-card-list__card {
  width: 100%;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  position: relative;
}
.top-card-list__card__limited {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 4px;
  background: #b60000;
  color: #f1f1f1;
  font-weight: 700;
  font-size: 12px;
  z-index: 1;
}
@media screen and (max-width: 767px) {
  .top-card-list__card {
    width: 100%;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (max-width: 767px) {
  .top-card-list__card:nth-of-type(1) {
    margin-top: 0;
  }
}

.top-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* 背景を暗くする */
  display: none; /* 初期状態は非表示 */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 1000; /* モーダルを前面に表示 */
  opacity: 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.top-modal.is-show {
  opacity: 1;
}

.top-modal__content {
  background: #E5F2F5;
  padding: 10px;
  border-radius: 8px; /* 角を丸くする */
  -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* 影をつける */
  text-align: center; /* テキストを中央揃え */
  width: 560px;
}
@media screen and (max-width: 767px) {
  .top-modal__content {
    width: calc(100% - 40px);
    max-width: 400px;
  }
}

.top-modal__head {
  background-color: #ffffff;
  width: 100%;
  padding: 25px;
}
@media screen and (max-width: 767px) {
  .top-modal__head {
    padding: 25px 20px;
  }
}
.top-modal__head > i {
  width: 55px;
  height: 55px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.top-modal__title {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
  color: #fff;
  background-color: #26B3D5;
  padding: 8px 20px;
  width: 240px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  text-align: center;
}

.top-modal__text {
  margin-top: 25px;
  font-size: 15px;
}

.top-modal__btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 15px;
  padding: 25px;
}
@media screen and (max-width: 767px) {
  .top-modal__btns {
    display: block;
  }
}

.top-modal__close,
.top-modal__toCart {
  width: calc(50% - 7.5px);
  max-width: 220px;
  color: #2B69A8;
}
@media screen and (max-width: 767px) {
  .top-modal__close,
  .top-modal__toCart {
    width: 240px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 767px) {
  .top-modal__toCart {
    margin-top: 10px;
  }
}

/* 自然数エラー */
[data-error-block] {
  margin-top: 8px;
  color: #D32626;
}

/* モーダル */
[data-modal] {
  display: none;
}

[data-modal=error] .top-modal__text {
  margin-top: 0;
}

@media (hover: hover) {
  .c-button--tag:where(:-moz-any-link, :enabled, summary):hover {
    text-decoration: none;
    color: white;
    background-color: #2B69A8;
  }
  .c-button--tag:where(:any-link, :enabled, summary):hover {
    text-decoration: none;
    color: white;
    background-color: #2B69A8;
  }
}
.c-button--tag.is-active {
  text-decoration: none;
  color: white;
  background-color: #2B69A8;
}
