@media screen and (max-width: 768px) {
  section.top {
    padding-top: 50px;
    margin-bottom: 50px;
  }
  section.top .title-container {
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 50px
  }
  section.top .title-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: normal;
  }
  section.top .title-container span {
    font-size: 12px;
  }
  section.top .title-container span:before, section.top .title-container span:after {
    display: inline-block;
    content: "";
    width: 30px;
    height: 1px;
    background-color: #333333;
    position: relative;
    bottom: 4px;
  }
  section.top .title-container span:before {
    right: 10px;
  }
  section.top .title-container span:after {
    left: 10px;
  }
  section.top .blog-description{
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 100px;
  }
  section.top .blog-description .type{
    width: 100%;
    background-color: #ffffff;
    box-shadow:3px 3px 5px 0 rgba(0,0,0,0.1);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: 30px;
  }
  section.top .blog-description .type p.title{
    padding: 5px;
    display: inline-block;
    font-size: 12px;
    margin-bottom: 10px;
  }
  section.top .blog-description .type.pink p.title{background-color: pink;}
  section.top .blog-description .type.orange p.title{background-color: orange;}
  section.top .blog-description .type.lightblue p.title{background-color: lightblue;}
  section.top .blog-description .type p.info{
    font-size: 12px;
    line-height: 18px;
  }
  .archive {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  .archive a {
    display: block;
    width: 100%;
    color: #333333;
    margin-bottom: 50px;
    background-color: #ffffff;
    -webkit-box-shadow: 4px 4px 11px -6px rgba(56, 56, 56, 0.46);
    box-shadow: 4px 4px 11px -6px rgba(56, 56, 56, 0.46);
  }
  .archive a figure {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
    overflow: hidden;
  }
  .archive a figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .archive a .title {
    width: 100%;
    min-height: 120px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
  }
  .archive a .title small{
    font-size: 10px;
    display: inline-block;
    color: #333;
    padding: 4px;
    margin-bottom: 5px;
  }
  .archive a .title small.type1{
    background-color: lightblue;
  }
  .archive a .title small.type2{
    background-color: pink;
  }
  .archive a .title small.type3{
    background-color: orange;
  }
  .archive a .title p {
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .archive a .title p:nth-of-type(1) {
    font-size: 15px;
    margin-bottom: 5px;
  }
  .archive a .title p:last-child {
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .archive a .title .date {
    display: block;
    font-size: 12px;
    color: #767676;
    margin-bottom: 5px;
  }
  .wp-pagenavi {
    text-align: center;
    margin-bottom: 30px;
  }
  .wp-pagenavi span, .wp-pagenavi a {
    font-size: 10px;
    border: 1px solid #dddddd;
    padding: 5px 5px;
    margin-right: 3px;
    margin-left: 3px;
    color: #666666;
    border-radius: 3px;
    background-color: #ffffff;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-property: background-color, color;
    transition-property: background-color, color;
  }
  .wp-pagenavi span.pages {
    display: none;
  }
  .wp-pagenavi span.current {
    color: #ffffff;
    background-color: #dddddd;
  }
  article {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
  }
  article .blog-head {
    margin-bottom: 30px;
  }
  article .blog-head h2 {
    font-size: 24px;
    padding-left: 30px;
    margin-bottom: 10px;
  }
  article .blog-head h2:before {
    display: inline-block;
    content: "";
    width: 3px;
    height: 24px;
    background-color: #666666;
    position: relative;
    left: -15px;
    top: 3px;
  }
  article .blog-head p {
    font-size: 14px;
    padding-left: 20px;
    color: #767676;
    margin-bottom: 10px;
  }
  article .blog-head span.tags {
    padding-left: 20px;
    font-size: 14px;
  }
  article .blog-head span.tags a {
    display: inline-block;
    color: #ffffff;
    background-color: #666666;
    padding: 5px;
    margin-right: 10px;
  }
  article figure {
    width: 100%;
    height: calc(100vw * 1 / 2);
    margin-bottom: 50px;
  }
  article figure img {
    display: block;
    width: 100%;
    height: 100%;
  }
  article .main-text {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  article .main-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
  }
}

@media screen and (min-width: 769px) {
  section.top {
    padding-top: 100px;
    margin-bottom: 100px;
  }
  section.top .title-container {
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-bottom: 60px;
  }
  section.top .title-container h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: normal;
  }
  section.top .title-container span {
    font-size: 14px;
  }
  section.top .title-container span:before, section.top .title-container span:after {
    display: inline-block;
    content: "";
    width: 50px;
    height: 1px;
    background-color: #333333;
    position: relative;
    bottom: 4px;
  }
  section.top .title-container span:before {
    right: 10px;
  }
  section.top .title-container span:after {
    left: 10px;
  }
  section.top .blog-description{
    width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  section.top .blog-description .type{
    width: 100%;
    height: 100px;
    background-color: #ffffff;
    box-shadow:3px 3px 5px 0 rgba(0,0,0,0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 20px;
    margin-bottom: 30px;
  }
  section.top .blog-description .type p.title{
    width: 200px;
    height: 35px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: 50px;
    font-size: 14px;
  }
  section.top .blog-description .type.pink p.title{background-color: pink;}
  section.top .blog-description .type.orange p.title{background-color: orange;}
  section.top .blog-description .type.lightblue p.title{background-color: lightblue;}
  section.top .blog-description .type p.info{
    font-size: 12px;
    line-height: 22px;
  }

  /* カードは3列のグリッドで並べる。
     以前は inline-block と :nth-of-type(2) の余白指定で3列に見せていたため、
     2行目以降のカード間に余白が入らなかった。 */
  .archive {
    width: 1000px;
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 50px;
    margin-bottom: 80px;
  }
  .archive a {
    display: flex;
    flex-direction: column;
    color: #333333;
    background-color: #ffffff;
    -webkit-box-shadow: 4px 4px 11px -6px rgba(56, 56, 56, 0.46);
    box-shadow: 4px 4px 11px -6px rgba(56, 56, 56, 0.46);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  .archive a:hover {
    -webkit-box-shadow: 6px 6px 18px -6px rgba(56, 56, 56, 0.5);
    box-shadow: 6px 6px 18px -6px rgba(56, 56, 56, 0.5);
    transform: translateY(-3px);
  }
  .archive a figure {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left top;
    overflow: hidden;
  }
  .archive a figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .archive a .title {
    width: 100%;
    flex: 1;
    min-height: 160px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
  }
  .archive a .title p {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .archive a .title small{
    font-size: 12px;
    display: inline-block;
    color: #333;
    padding: 5px;
  }
  .archive a .title small.type1{
    background-color: lightblue;
  }
  .archive a .title small.type2{
    background-color: pink;
  }
  .archive a .title small.type3{
    background-color: orange;
  }
  .archive a .title p:nth-of-type(1) {
    font-size: 18px;
  }
  .archive a .title p:last-child {
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .archive a .title .date {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #767676;
  }
  article {
    width: 600px;
    max-width: calc(100% - 40px);
    padding-top: 100px;
    padding-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
  }
  article .blog-head {
    margin-bottom: 30px;
  }
  article .blog-head h2 {
    font-size: 24px;
    padding-left: 15px;
    margin-bottom: 10px;
  }
  article .blog-head h2 a.title-link {
    color: #333333;
  }
  article .blog-head h2 a.title-link:hover {
    text-decoration: underline;
  }
  article .blog-head h2:before {
    display: inline-block;
    content: "";
    width: 3px;
    height: 24px;
    background-color: #666666;
    position: relative;
    left: -15px;
    top: 3px;
  }
  article .blog-head p {
    font-size: 14px;
    padding-left: 20px;
    color: #767676;
    margin-bottom: 10px;
  }
  article .blog-head span.tags {
    padding-left: 20px;
    font-size: 14px;
  }
  article .blog-head span.tags a {
    display: inline-block;
    color: #ffffff;
    background-color: #666666;
    padding: 5px;
    margin-right: 10px;
  }
  article figure {
    width: 600px;
    height: 300px;
    margin-bottom: 50px;
  }
  article figure img {
    display: block;
    width: 100%;
    height: 100%;
  }
  article .main-text {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  article .main-text p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  .wp-pagenavi {
    text-align: center;
    margin-bottom: 30px;
  }
  .wp-pagenavi span, .wp-pagenavi a {
    font-size: 14px;
    border: 1px solid #dddddd;
    padding: 5px 5px;
    margin-right: 3px;
    margin-left: 3px;
    color: #666666;
    border-radius: 3px;
    background-color: #ffffff;
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-property: background-color, color;
    transition-property: background-color, color;
  }
  .wp-pagenavi a:hover, .wp-pagenavi span.current {
    color: #ffffff;
    background-color: #dddddd;
  }
}

/* タブレット幅では2列にする(3列だとカードが狭くなりすぎるため) */
@media screen and (min-width: 769px) and (max-width: 1059px) {
  .archive {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
  }
}
