@charset "utf-8";

.single-top-info {
  max-width: 500px;
  margin: 0 auto 100px;
}

.single-top-info__header {
  border-bottom: 1px solid #ccc;
  padding-bottom: 16px;
}

.single-top-info__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  grid-area: categories;
  margin-top: 16px;
}

.single-top-info__category {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  color: white;
  background-color: #e7222d;
  text-align: center;
}

.single-top-info__img {
  margin-top: 32px;
}

.single-top-info__img img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.single-top-info__store {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  color: white;
  background-color: #00a0e9;
  text-align: center;
}

.single-top-info__title {
  font-size: 18px;
  font-weight: bold;
}

@media print,
screen and (min-width: 768px) {
  .single-top-info__title {
    font-size: 24px;
  }
}

.single-top-info__body {
  margin-top: 32px;
}

.single-top-info__attention {
  margin: 80px auto;
  text-align: center;
  font-weight: bold;
}

@media print,
screen and (min-width: 768px) {
  .single-top-info__attention {
    font-size: 24px;
  }
}

.top-latest-info-type1 {
  margin: 48px auto;
}

.top-latest-info-type1__inner {
  display: grid;
  margin: 0 auto;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "categories" "img" "text";
  gap: 16px 30px;
}

@media print,
screen and (min-width: 768px) {
  .top-latest-info-type1__inner {
    grid-template-areas: "img title" "img categories" "img text";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: max-content max-content 1fr;
  }
}

.top-latest-info-type1__title {
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  grid-area: title;
}

@media print,
screen and (min-width: 768px) {
  .top-latest-info-type1__title {
    font-size: 24px;
    text-align: left;
  }
}

.top-latest-info-type1__img {
  width: 100%;
  grid-area: img;
}

.top-latest-info-type1__img img {
  width: 100%;
  aspect-ratio: auto;
  height: auto;
}

.top-latest-info-type1__text {
  grid-area: text;
}

.top-latest-info-type1__text p:not(:last-child) {
  margin-bottom: 16px;
}

.top-latest-info-type1__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  grid-area: categories;
}

.top-latest-info-type1__category {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  color: white;
  background-color: #e7222d;
  text-align: center;
}

.top-latest-info-type1__store {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  color: white;
  background-color: #00a0e9;
  text-align: center;
}

.top-latest-info-type2 {
  margin: 48px auto;
}

.top-latest-info-type2__list {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 32px;
}

@media print,
screen and (min-width: 768px) {
  .top-latest-info-type2__list {
    gap: 48px 24px;
  }
}

.top-latest-info-type2__item {
  width: 100%;
}

@media print,
screen and (min-width: 768px) {
  .top-latest-info-type2__item {
    width: calc((100% - 48px) / 3);
  }
}

.top-latest-info-type2__inner {
  display: grid;
  margin: 0 auto;
  grid-template-columns: 1fr;
  grid-template-areas: "img" "categories" "title" "text";
  gap: 16px 30px;
}

.top-latest-info-type2__title {
  font-size: 18px;
  font-weight: bold;
  grid-area: title;
}

.top-latest-info-type2__img {
  width: 100%;
  grid-area: img;
}

.top-latest-info-type2__img img {
  display: block;
  width: 90%;
  margin: 0 auto;
  aspect-ratio: 4/3;
  height: auto;
}

@media print,
screen and (min-width: 768px) {
  .top-latest-info-type2__img img {
    width: 100%;
  }
}

.top-latest-info-type2__text {
  grid-area: text;
}

.top-latest-info-type2__text p:not(:last-child) {
  margin-bottom: 16px;
}

.top-latest-info-type2__more {
  color: #00a0e9;
  text-decoration: underline;
}

.top-latest-info-type2__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  grid-area: categories;
}

.top-latest-info-type2__category {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  color: white;
  background-color: #e7222d;
  text-align: center;
}

.top-latest-info-type2__store {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 24px;
  color: white;
  background-color: #00a0e9;
  text-align: center;
}

/**
 * 目次プラグインの制御
 */
#ez-toc-container nav {
  display: block !important;
}

/** 
 *ポップアップ 
 */
.modal-content {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  z-index: 1001;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#modal-info {
  text-align: right;
}

#modal-info .att-bloc {
  margin: 0 auto 15px;
  padding: 15px;
  text-align: left;
}

#modal-info .modal-close {
  padding: 0.5%;
}

@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    max-width: 90%;
    top: 30%;
    transform: translate(-50%, 0);
    padding: 10px;
  }

  #modal-info .att-bloc {
    padding: 8px;
  }
}


/* 2024_1116追加 */

a.top-latest-info-type1__more {
  color: #00a0e9;
  text-decoration: underline;
}

.top-latest-info-type2__more:link {
  color: #00a0e9;
  text-decoration: underline;
}

.top-latest-info-type2__more:visited {
  color: #00a0e9;
  text-decoration: underline;
}

.top-latest-info-type2__img img {
  display: block;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 4;
  height: 220px;
  object-fit: contain;
}

.top-latest-info-type2__inner {
  gap: 8px;
}

@media screen and (max-width: 600px) {

  .top-latest-info-type1__text {
    font-size: 0.9rem;
  }

  .top-latest-info-type2__text {
    font-size: 0.9rem;
  }

  .top-latest-info-type1__inner {
    gap: 8px;
  }

  .top-latest-info-type1__img img {
    width: 100%;
    aspect-ratio: 4 / 4;
    height: 200px;
    object-fit: contain;
  }

  .top-latest-info-type1__title {
    font-size: 1.1rem;
    margin-top: 1rem;

  }

  .top-latest-info-type1 {
    margin: 25px auto;
  }

  .top-info-ttl {
    font-size: 1.4rem !important;
  }

  .top-latest-info-type1__img {
    margin-bottom: 5px;
  }

  top-latest-info-type1__category {
    font-size: 11px;
  }

  .top-info-ttl {
    margin: 0;
  }

  .top-latest-info-type2 {
    margin: 24px auto;
  }

  .top-latest-info-type2__inner {
    gap: 4px;
  }

  .top-latest-info-type2__store {
    font-size: 11px;

  }

  .top-latest-info-type2__img img {
    width: 100%;
    aspect-ratio: 4 / 4;
    height: 200px;
    object-fit: contain;
  }

  .top-latest-info-type2__img {
    margin-bottom: 10px;
  }

  .top-latest-info-type2__list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 1px;
  }

  .top-latest-info-type2__categories {
    margin-bottom: 5px;
  }
}