@charset "UTF-8";
/*
* {
    outline: 1px solid red!important;
}
*/
/*googlefont*/
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap');
/*Font Awesome*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");
:root {
  /*  --main-width: max(50%, 1240px);*/
  --main-width: 980px;
  --text-color: hsla(0, 0%, 30%, 1);
  --hover-color: hsla(340, 100%, 60%, 1);
}
html {
  font-family: "Zen Maru Gothic", serif;
  font-size: 16px;
  /*  font-weight: 400;*/
  color: var(--text-color);
}
/*--------------------------------------------------------------------------------------
    基本レイアウト
--------------------------------------------------------------------------------------*/
/*--  -----------------------------------------*/
.contents-container {
  display: flex;
}
.layout {
  width: 90%;
  height: 5000px;
  margin: 5% auto;
  background: #fff;
}
.contents-footer {
  background: hsla(0, 0%, 20%, 1);
  padding-block: 1rem;
  p {
    width: 95%;
    margin-inline: auto;
    font-size: 0.8rem;
    color: hsla(0, 0%, 80%, 1);
  }
}
/*--------------------------------------------------------------------------------------
    PC用
--------------------------------------------------------------------------------------*/
@media (width > 1240px) {
  .contents-container {
    position: relative;
  }
  .side-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: calc(50% - (var(--main-width) / 2));
  }
  .header-container {
    left: 0;
    background: url("../images/sideback_1.avif");
    background-size: cover;
    background-position: top right;
  }
  .sitetitle {
    width: 80%;
    margin: 2rem auto auto;
    img {
      width: min(240px, 100%);
      margin-inline: auto;
    }
    p {
      width: min(200px, 95%);
      margin-inline: auto;
      padding: 0.5rem;
      background: hsla(0, 0%, 100%, 0.5);
      border-radius: 12px;
      font-size: 0.9rem;
      text-align: center;
    }
  }
  .main-container {
    width: var(--main-width);
  }
  .footer-container {
    right: 0;
    background: url("../images/sideback_2.avif");
    background-size: cover;
    background-position: top center;
    padding-top: 3em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .footer-contents p {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: white;
    text-align: right;
  }
}
/*--------------------------------------------------------------------------------------
    スマホ用
--------------------------------------------------------------------------------------*/
@media (width <=1240px) {
  .contents-container {
    flex-direction: column;
    position: static;
    background: #fff;
  }
  .side-container {
    position: static;
    top: auto;
    height: auto;
    width: 100%;
  }
  .header-container {
    left: auto;
    background: url("../images/sideback_1.avif");
    background-position: top center;
  }
  .sitetitle {
    width: 100%;
    margin: 1rem auto 1rem;
    img {
      width: 180px;
      margin-inline: auto;
    }
    p {
      width: 80%;
      margin-inline: auto;
      padding: 0.5rem;
      background: hsla(0, 0%, 100%, 0.5);
      border-radius: 12px;
      font-size: 0.9rem;
      text-align: center;
    }
  }
  .main-container {
    width: 100%;
  }
  .footer-container {
    right: auto;
    background: hsla(0, 0%, 20%, 1);
  }
  .footer-contents p {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: hsla(0, 0%, 80%, 1);
    text-align: right;
  }
}
/*--------------------------------------------------------------------------------------
    メインコンテンツ幅
--------------------------------------------------------------------------------------*/
.category-box, .article-title, .article {
  width: 100%;
  margin-inline: auto;
}
/*--------------------------------------------------------------------------------------
    記事リスト
--------------------------------------------------------------------------------------*/
.category-box {
  padding-block: 30px;
}
ul.article-list {
  width: 90%;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  li {
    width: calc(100% / 4 - 20px);
    .post-category a {
      display: inline-block;
      margin-left: 1rem;
      padding: 0.3rem 0.8rem;
      background: hsla(0, 0%, 90%, 1);
      border-radius: 3px 3px 0 0;
      font-size: 0.8rem;
      &:hover {
        background: hsla(340, 100%, 80%, 1);
        color: hsla(340, 0%, 100%, 1)
      }
    }
    a {
      display: block;
      color: inherit;
      text-decoration: none;
      img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
        padding: 5px;
        box-sizing: border-box;
        background: hsla(0, 0%, 100%, 1);
        border-radius: 1rem;
        box-shadow: 0 0 3px 3px hsla(0, 0%, 80%, 0.3);
        filter: grayscale(60%);
      }
      .a-date {
        margin: 0.3rem 0.5rem;
        border-bottom: 1px dotted hsla(0, 0%, 90%, 1);
        font-size: 0.8rem;
        text-align: right;
      }
      .a-title {
        margin: 0.3rem 0.5rem;
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1.3;
        text-shadow: 1px 1px 2px hsla(0, 0%, 50%, 0.5);
        text-align: left;
      }
      &:hover {
        color: var(--hover-color);
        img {
          filter: none;
        }
      }
    }
  }
}
@media (width <=820px) {
  ul.article-list {
    width: 80%;
    li {
      width: 100%;
      .a-title {
        font-size: 1rem;
      }
    }
  }
  ul.article-list {
    li {
      a {
        img {
          filter: none;
        }
      }
    }
  }
}
/*--------------------------------------------------------------------------------------
    jarallax用CSS
--------------------------------------------------------------------------------------*/
.jarallax {
  position: relative;
  z-index: 0;
}
.jarallax > .jarallax-img, picture.jarallax-img img {
  position: absolute;
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.jarallax {
  width: 100%;
}