/*******************
シングルページ本体
*******************/
.s-container {
  padding-block: 30px;
}

/***********************
シングルページヘッダー
***********************/
.s-header {
  display: grid;
  align-content: start;
  row-gap: 20px;
}
.s-cattag-type {
  display: flex;
}
.s-category {
  margin-right: 10px;
}
.s-category a {
  background-color: #fbfdff;
  color: #333;
  border: solid 1px #333;
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 20px;
}
.s-tag a {
  background-color: #fbfdff;
  color: #333;
  border: solid 1px #333;
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 20px;
}
.s-header-title h1 {
  font-size: 22px;
  font-weight: 500;
}
.s-header-date {
  font-size: 14px;
}
.s-header-image {
  width: 100%;
  margin-top: 15px;
}
.s-header-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.s-cattag-type,
.s-header-title,
.s-header-date {
  padding-inline: 15px;
}
/*************************
シングルーページメイン
*************************/
.s-contents-main-body {
  margin-top: 40px;
  padding-inline: 15px;
}
.s-contents-main-title {
  color: #fff;
  padding: 5px 0;
  text-align: center;
  border-bottom: solid 1px #ddd;
}
.s-contents-main-title h2 {
  font-size: 20px;
  font-weight: 500;
  padding-bottom: 10px;
}
.s-contents-main-box {
  margin-top: 30px;
}
.s-contents-main {
  margin-bottom: 30px;
}
.s-contents-main:last-child {
  margin-bottom: 0;
}
.s-contents-main li {
  list-style-type: initial;
}
.s-contents-main-box p {
  font-size: 14px;
}
/* ブログ作成者 */
.blog-author {
  margin-top: 30px;
  border: solid 1px #ddd;
  padding: 20px;
}
.blog-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
}
.blog-author-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}
.blog-author-text {
  flex: 1;
}
.blog-author-name {
  font-size: 16px;
  font-weight: 500;
}
.blog-author-text-main {
  margin-top: 5px;
  font-size: 14px;
}
/* 関連記事 */
.s-connection {
  margin-top: 40px;
}
.s-connection-main {
  border: solid 1px #ddd;
  position: relative;
  border-bottom: none;
}
.s-connection-main:last-child {
  border-bottom: solid 1px #ddd;
}
.s-connection-title {
  text-align: center;
  margin-bottom: 20px;
}
.s-connection-title h2 {
  font-size: 20px;
  font-weight: 500;
}
.s-connection-main a {
  display: flex;
  gap: 20px;
  padding: 20px;
  font-size: 14px;
}
.s-connection-image {
  width: 100px;
  height: 100px;
  overflow: hidden;
}
.s-connection-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  transition: 0.5s ease-in-out;
}
.s-connection-main a:hover .s-connection-image img {
  transform: scale(1.1);
}
.s-connection-text-box {
  padding-top: 40px;
  flex: 1;
}
.s-connection-category {
  position: absolute;
  top: 20px;
  left: 140px;
  background-color: aqua;
  border-radius: 20px;
  border: solid 1px #333;
}
.s-connection-category a {
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 20px;
  color: #333;
}
.s-connection-text-box p {
  font-size: 14px;
}
/*************************
シングルーページサブ
*************************/
/* 本体 */
.s-contents-sub {
  margin-top: 40px;
  padding-inline: 15px;
}
/* 最新記事 */
.s-contents-sub-new {
  border: solid 1px #ddd;
  background-color: #fff;
  margin-bottom: 40px;
}
.s-contents-sub-new h3 {
  font-size: 18px;
  padding: 20px;
  border-bottom: solid 1px #ddd;
  background-color: #fff;
  font-weight: 500;
}
.s-contents-sub-new-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  padding: 20px;
}
.s-contents-sub-new-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.s-contents-sub-new-list li {
  border-bottom: solid 1px #ddd;
}
.s-contents-sub-new-list li:last-child {
  border-bottom: none;
}
/* カテゴリー */
.s-contents-sub-category {
  border: solid 1px #ddd;
  margin-bottom: 40px;
}
.s-contents-sub-category h3 {
  font-size: 18px;
  padding: 20px;
  background-color: #fff;
  border-bottom: solid 1px #ddd;
  font-weight: 500;
}
.s-contents-sub-category li {
  border-top: solid 1px #ddd;
}
.s-contents-sub-category li:first-child {
  border-top: none;
}
.s-contents-sub-category .children {
  border-top: solid 1px #ddd;
} 
.s-contents-sub-category a {
  display: block;
  padding: 20px;
  font-size: 14px;
}
/* 月別 */
.s-contents-sub-month select {
  width: 100%;
  height: 60px;
  padding: 0 20px;
  font-size: 16px;
  border: solid 1px red;
  background-color: #fff;
  color: aqua;
  line-height: 1.6;
}

/****************************
メディアスクリーン601以上
****************************/
@media screen and (min-width:601px){
  /* ブログ作成者 */
  .blog-author{
    margin-top: 50px;
  }

  .blog-author-box {
    gap: 40px;
  }
  /* シングルページサブ */
  .s-contents-sub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    align-items: flex-start;
    gap: 5%;
  }
}

/****************************
メディアスクリーン834以上
****************************/
@media screen and (min-width:834px){
  /* シングルページ本体 */
  .s-container {
  padding-block: 50px;
}
  .s-main {
    width: 100%;
  }
  /* シングルページヘッダー */
  .s-header-title h1 {
    font-size: 26px;
  }
  .s-header-image {
    padding-inline: 15px;
  }

  /* シングルページメイン */
  .s-contents-main-title h2 {
    font-size: 26px;
  }
  .s-contents-main {
    margin-bottom: 50px;
  }
}

/****************************
メディアスクリーン991px以上
****************************/
@media screen and (min-width:991px){
  /* シングルページ本体 */
  .s-container {
    display: flex;
    justify-content: center;
    gap: 40px;
  }
  /* 関連記事 */
  .s-connection-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50%,1fr));
  }
  .s-connection-main {
    border: solid 1px #ddd;
    margin-right: -1px;
    margin-bottom: -1px;
  }
  /* シングルページサブ */
  .s-contents-sub {
    flex: 0 0 300px;
    margin-top: 0;
    padding-left: 0;
    display: inline;
  }
}

/****************************
メディアスクリーン1115px以上
****************************/
@media screen and (min-width:1115px){
  .s-cattag-type,
  .s-header-title,
  .s-header-date,
  .s-header-image,
  .s-contents-main-body,
  .s-contents-sub {
    padding-inline: 0;
  }
}