@charset "utf-8";

@import "../components/circle_btn.css";
@import "../components/title.css";
@import "../components/pagination.css";

:root {
  --color-red: #e31a24;
  --margin: 2.1rem;
}
.color-red {
  color: var(--color-red);
}
.article {
  margin-bottom: 3rem;
  border-radius: 0.5rem;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  padding: 3.5rem 1.6rem;
  .top-text {
    margin-bottom: 1.3rem;
  }
  .grid::after,
  .grid::before {
    content: "";
    border-bottom: 1px dashed #000000;
    width: 33rem;
    display: block;
    margin: var(--margin) auto;
  }
  .img-main {
    max-width: 360px;
    margin: 0 auto var(--margin);
    display: block;
    width: 100%;
  }
  .buttons {
	white-space: nowrap;
  }
  .buttons .btn-outline-red {
    border: 1.5px solid var(--color-red);
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    width: 12rem;
    &::after {
      border-color: var(--color-red);
    }
  }
  .more-btn-wrapper button {
    margin:  0 auto;
  }
}
.article.column-article .grid {
    font-size: 16px;
    line-height: 1.6;
}
.article.column-article .grid img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}
.article.column-article .grid h2 {
    font-size: 1.3em;
    border-bottom: solid 1px #333;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}
.article.column-article .grid h3 {
    font-size: 1.2em;
    font-weight: bold;
}

@media screen and (max-width:750px) {
    .article.column-article .grid {
        font-size: 13px;
    }
}

@media screen and (min-width: 1024px) {
  .article {
    .grid {
      position: relative;
      display: grid;
      place-content: center;
      padding: calc(var(--margin) * 2) 0;
      &::before {
        width: 100%;
        position: absolute;
        top: 0;
      }
      &::after {
        width: 100%;
        position: absolute;
        bottom: 0;
      }
    }
    .buttons {
      width: 42rem;
      margin: 0 auto;
    }
  }
}
