/*
Theme Name: インフォグラフィック
Version: 100
*/

/* Reset ----- */
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{
  margin:0;
  padding:0
}
article,aside,footer,header,nav,section,figcaption,figure,main {
  display: block;
}
h1,h2,h3,h4,h5,h6 {
  font-size:100%;
  font-weight:normal;
}
ul {
  list-style:none;
}
button,input,select,textarea {
  margin:0;
  background-color: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
button,input {
  overflow: visible;
  vertical-align:middle;
}
button,select {
  text-transform: none;
}
input,button,select {
  font-family: inherit;
  font-weight: inherit;
}
input[type="submit"],input[type="button"],button[type="submit"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}
input[type="submit"]:-webkit-search-decoration,input[type="button"]:-webkit-search-decoration,button[type="submit"]:-webkit-search-decoration {
  display: none;
}
input[type="submit"]:focus,input[type="button"]:focus,button[type="submit"]:focus {
  outline: none;
}
/* IE 10+ ----- */
:-ms-input-placeholder {
    color: #999;
}
html {
  box-sizing:border-box;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-text-size-adjust: 100%;
}
*,*:before,*:after {
  background-repeat: no-repeat;
  box-sizing:inherit;
}
:before,:after {
  text-decoration: inherit;
  vertical-align: inherit;
}
img,embed,object,audio,video {
  height:auto;
  max-width:100%;
}
img,iframe {
  border:0
}
img {
  vertical-align: bottom;
}
svg {
  fill: currentColor;
}
table {
  border-collapse:collapse;
  border-spacing:0;
}
td,th {
  padding:0;
  text-align:left;
  font-weight: normal;
}
a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}

/*++++++++++++++++++*/
body {
  font:400 16px/1.6 "Noto Sans JP", "游ゴシック", "Yu Gothic", YuGothic, sans-serif;
  background: #fff;
}
a:hover {
  opacity: .7;
}

.wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0 50px;
  margin: 80px auto 0;
}
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 24px;
  li {
    position: relative;
    width: calc((100% - 20px * 3) / 4 );
    text-align: center;
    &::after {
      position: absolute;
      content: "";
      display: block;
      width: 20px;
      height: 0;
      border: 1px solid #000;
      top: 50%;
      right: 0;
    }
  }
  a {
    display: block;
    padding: 11px 0;
    color: #000;
    text-decoration: none;
    border: 2px solid #000;
  }
}

.hero {
  width: 100%;
  background: url(img/hero.jpg) center center / cover no-repeat;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 70px 50px;
  color: #fff;
  p {
    font-size: 24px;
    font-weight: bold;
  }
  h1 {
    font-size: 40px;
    font-weight: bold;
  }
}

.bg-gray {
  overflow: hidden;
  background: #F8F8F8;
  padding-bottom: 1px;
}

.archive {
  header {
    text-align: center;
    margin-bottom: 40px;
    h1 {
      margin-bottom: 30px;
      font-size: 32px;
      font-weight: bold;
      &::after {
        content: "";
        display: block;
        width: 100px;
        height: 2px;
        background: #000;
        margin: 10px auto 0;
      }
    }
  }
}
.archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 50px 15px;
  .box {
    width: calc((100% - 15px * 2) / 3);
    color: #000;
    text-decoration: none;
    .img {
      img {
        width: 100%;
        aspect-ratio: 350 / 240;
        object-fit: cover;
        margin-bottom: 15px;
      }
    }
    .txt {
      .logo {
        height: 50px;
        margin-bottom: 15px;
      }
      h1 {
        margin-bottom: .5em;
      }
      p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 3;
        max-height: calc(1.6em * 3);
      }
    }
  }
}

.pagination {
  margin-top: 80px;
  line-height: 2;
}
.nav-links {}
.screen-reader-text {
  font-size: 0;
}
.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  a {
    text-decoration: none;
    width: 2.2em;
    height: 2.2em;
    border: 1px solid #000;
    color: #000;
    border-radius: 2em;
  }
}
.current {
  width: 2.2em;
  height: 2.2em;
  border: 1px solid #000;
  color: #fff;
  background: #000;
  border-radius: 2em;
}

.title-sub {
  width: 100%;
  max-width: 1100px;
  padding: 0 50px;
  margin: 20px auto 0;
  .inner {
    padding: 5px 10px;
    border-left: 9px solid #4E8D9C;
    border-bottom: 1px solid #000;
    h1 {
      font-size: 18px;
      font-weight: bold;
      &::first-letter {
        color: #4E8D9C;
      }
    }
  }
}

.single-page {
  background: #fff;
  padding: 50px;
  font-size: 18px;
  header {
    h1 {
      margin-bottom: 30px;
      font-size: 36px;
      font-weight: bold;
      line-height: 1.3;
    }
    .company-name {
      display: flex;
      align-items: center;
      margin-top: 20px;
      margin-bottom: 50px;
    }
    .header-img {
      background: #F6F6F6;
      img {
        width: 100%;
      }
      p {
        padding: 10px 20px;
      }
    }
  }
  section {
    h2 {
      margin-top: 50px;
      margin-bottom: 20px;
      font-size: 25px;
      font-weight: bold;
    }
    h3 {
      margin-top: 30px;
      margin-bottom: 20px;
      font-size: 20px;
      font-weight: bold;
      color: #4E8D9C;
      border-top: 1px solid #4E8D9C;
      border-bottom: 1px solid #4E8D9C;
    }
    p {
      span {
        margin-right: 1em;
        font-weight: bold;
      }
      &+p {
        margin-top: 1em;
      }
      &+img {
        margin-top: 1em;
      }
    }
  }
}

.single-center {
  margin-top: 50px;
  a {
    width: 100%;
    max-width: 500px;
    display: block;
    padding: 15px;
    margin: auto;
    background: #fff;
    box-shadow: 0 5px 5px rgba(0,0,0,.1);
    font-size: 20px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    text-align: center;
  }
}


@media (max-width: 1200px) {
  .wrapper {
    padding: 0 5vw;
    margin-top: 10vw;
  }

  .hero-inner {
    padding: 70px 20px;
    p {
      font-size: 16px;
    }
    h1 {
      font-size: 24px;
    }
  }

  .page-nav {
      font-size: 3vw;
      gap: 10px;

    li {
      width: calc((100% - 10px * 1) / 2 );
      &::after {
        width: 3vw;
        border: none;
        border-top: 1px solid #000;
      }
      a {
        border: 1px solid #000;
      }
    }
  }

  .archive-list {
    gap: 50px 15px;
    .box {
      width: calc((100% - 15px * 2) / 2);
    }
  }

}

@media (max-width: 800px) {
  .title-sub {
    padding: 0 5vw;
  }
  .single-page {
    padding: 5vw;
    header {
      h1 {
        margin-bottom: 20px;
        font-size: 20px;
      }
      .company-name {
        flex-flow: column;
        align-items: baseline;
        margin-bottom: 30px;
      }
    }
  }


}

@media (max-width: 600px) {
  .archive-list {
    gap: 50px 15px;
    .box {
      width: 100%;
    }
  }
}