.pc_only {
  display: block;
}

.sp_only {
  display: none;
}

main{
  overflow: hidden;
}
.flex {
  display: flex;
}

.mainvisual {
  width: 100%;
  height: 49.9rem;
  display: block;
}

.news_single_container {
  max-width: 128rem;
  width: 100%;
  position: relative;
  top: -14.5rem;
  left: 0rem;
  margin: 0 auto;
}

.single_back_color {
  background-color: #FFF7E2;
}

.cat_wrapper {
  padding-left: 2rem;
}

.news_single_wrapper {
  width: 94.7rem;
  margin-top: 14.5rem;
  margin-bottom: -14.5rem;
  margin-left:19.8rem;
}

.news_single_box {
  width: 100%;
  background-color: #FFFFFF;
  margin-left: 3.5rem;
  margin-right: 3.5rem;
  padding: 3rem 3.5rem 6rem;
  border-radius: 2rem;
  margin-left: 3.5rem;
  overflow-wrap: anywhere;
}

.new_article {
  font-size: 3rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  background-color: #F4A805;
  width: 59rem;
  height: 7rem;
  line-height: 7rem;
  border-radius: 0 9rem 9rem 0;
  padding-left: 3.5rem;
  margin-bottom: 4rem;
  margin-top: 3.1rem;
}



/* サイドバー周辺 */
.category_latest {
  color: #5B2A08;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  margin-bottom: 1rem;
}

.category_latest::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-color: #F4A805;
  border-radius: 50%;
  display: inline-block;
  margin-right: 1rem
}

.cat-nav {
  width: 19.8rem;
  height: fit-content;
  list-style: none;
  padding: 2.5rem 1rem 3rem 2.5rem;
  flex-shrink: 0;
  background-color: #F5C868;
  border-radius: 2rem;
  position: sticky;
  top: 10rem;
  left: 0rem;
}

.cat-nav a {
  font-size: 1.6rem;
  font-weight: 300;
  font-family: "Noto Sans JP", sans-serif;
  width: 14.3rem;
  height: 2.5rem;
  letter-spacing: calc(0.24em / 16);
  line-height: 2.5rem;
  display: inline-block;
  padding: 0 0 0 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: 2.5rem;
  color: #5B2A08;
  background-color: #FFF7E2;
  border-radius: 1rem;
  white-space: nowrap;
}

.cat-nav a::before {
  content: "-";
  color: #5B2A08;

}

.cat-nav a:hover {
  background-color: #5B2A08;

  color: #FFEEDB;
  transition: background-color 0.3s ease;
}

.cat-nav .current-cat a {
  background-color: #5B2A08;

  color: #FFEEDB;
  transition: background-color 0.3s ease;
}

.cat-nav .current-cat a::before {
  content: "-";
  color: #FFEEDB;
}

.cat-nav:focus {
  background-color: #5B2A08;

  color: #FFEEDB;
  transition: background-color 0.3s ease;
}

/* 記事カテゴリ */
.category_deco a {
  font-size: 1.6rem;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  width: fit-content;
  letter-spacing: calc(0.24em / 16);
  display: inline-block;
  padding: 0 0.7rem;
  color: #F4A805;
  text-decoration: none;
  pointer-events: none;
  border-left: #F4A805 0.1rem solid;

}

.news_single_date {
  font-size: 1.6rem;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  color: #000000;
  flex-shrink: 0;
}

.news_single_title {
  font-size: 2.5rem;
  font-weight: bold;
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  margin-bottom: 1.4rem;
  line-height: calc(40 / 25);
  letter-spacing: calc(0.5em / 25);
}

.news_single_content {
  font-size: 2rem;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  color: #000000;
  line-height: calc(29 / 20);
}

.news_single_flex {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.thumb-img {
  width: 100%;
  height: 56rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 1rem 1rem 1rem #00000029;
  margin-bottom: 5.4rem;
}


/* 一覧に戻る */
.to_news_deco {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  width: 42rem;
  height: 5rem;
  line-height: 5rem;
  margin: 4rem auto 5rem;
  color: #FFFFFF;
  background-color: #F4A805;
  border-radius: 6rem;
  position: relative;
  transform: translateX(3.5rem);
}

.to_news_deco_a {
  display: block;
  padding: 0 3rem;
  border-radius: 6rem;
}

.to_news_deco_a:hover {
  background-color: #5B2A08;
  transition: background-color 0.3s ease;
}

.to_news_deco_a::before {
  content: "→";
  color: #F4A805;
  display: inline-block;
  position: absolute;
  top: 0rem;
  right: 4rem;
  z-index: 3;
  font-size: 2rem;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
}

.to_news_deco_a:hover::before {
  color: #5B2A08;
  transition: background-color 0.3s ease;
}

.to_news_deco_a::after {
  content: "";
  display: inline-block;
  width: 8rem;
  height: 4rem;
  background-color: #FFFFFF;
  border-radius: 2.5rem;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
}




@media screen and (max-width:699.98px) {
  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

  .mainvisual {
    width: 100%;
    height: 40rem;
    border-radius: 0 0 8rem 0;
  }

  .news_single_container {
    max-width: 37.5rem;
    width: 100%;
    position: relative;

  }

  .single_back_color {
    background-color: #FFF7E2;
  }

  .cat_wrapper {
    padding-left: 0rem;
    flex-direction: column;
    margin-top: 12.5rem;
    margin-bottom: -15.5rem;
  }

  .news_single_wrapper {
    width: 100%;
    margin-top: 0rem;
    margin-bottom: 0rem;
    margin-left: 0;
  }

  .news_single_box {
    width: 34.5rem;
    background-color: #FFFFFF;
    margin: 0 auto;
    padding: 0.8rem 1rem 3.5rem;
    border-radius: 2rem;
  }

  .new_article {
    font-size: 2rem;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    color: #FFFCF5;
    background-color: #F4A805;
    width: 36rem;
    height: 5rem;
    line-height: 5rem;
    border-radius: 0 2.5rem 2.5rem 0;
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
    position: relative;
    top: -6rem;
    left: 0rem;
  }

  /* サイドバー周辺 */

  .cat-nav {
    width: 34.5rem;
    height: fit-content;
    list-style: none;
    padding: 0;
    flex-shrink: 0;
    background-color: transparent;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
    margin: 0rem auto 2rem;
  }

  .cat-nav a {
    font-size: 1.6rem;
    font-weight: 300;
    font-family: "Noto Sans JP", sans-serif;
    width: 17rem;
    height: 2.5rem;
    letter-spacing: calc(0.24em / 16);
    line-height: 2.5rem;
    display: inline-block;
    padding: 0 0 0 0rem;
    margin-bottom: 0;
    margin-left: 0rem;
    color: #5B2A08;
    background-color: #F5C868;
    border-radius: 1rem;
    white-space: nowrap;
    text-align: center;
  }

  .cat-nav a::before {
    display: none;

  }

  .cat-nav .current-cat a {
    background-color: #5B2A08;

    color: #FFEEDB;
    transition: background-color 0.3s ease;
  }

  .cat-nav .current-cat a::before {
    display: none;
  }

  .cat-nav:focus {
    background-color: #5B2A08;

    color: #FFEEDB;
    transition: background-color 0.3s ease;
  }

  .cat-item {
    width: 17rem;
  }


  /* 記事カテゴリ */
  .category_deco a {
    font-size: 1.6rem;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    width: fit-content;
    letter-spacing: calc(0.24em / 16);
    display: inline-block;
    padding: 0 0.7rem;
    color: #F4A805;
    text-decoration: none;
    pointer-events: none;
    border-left: #F4A805 0.1rem solid;

  }

  .news_single_date {
    font-size: 1.6rem;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    color: #000000;
    flex-shrink: 0;
  }

  .news_single_title {
    font-size: 2rem;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    color: #000000;
    margin-bottom: 1.4rem;
    line-height: calc(40 / 25);
    letter-spacing: calc(0.5em / 25);
  }

  .news_single_content {
    font-size: 1.7rem;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    color: #000000;
    line-height: calc(25 / 17);
    margin-bottom: 0;
  }

  .news_single_flex {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
  }

  .thumb-img {
    width: 100%;
    height: 56rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 1rem 1rem 1rem #00000029;
    margin-bottom: 5.4rem;
  }


  /* 一覧に戻る */
  .to_news_deco {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: "Noto Sans JP", sans-serif;
    width: 32.5rem;
    height: 5rem;
    line-height: 5rem;
    margin: 3rem auto 5rem;
    color: #FFFFFF;
    background-color: #F4A805;
    border-radius: 2.5rem;
    position: relative;
    transform: none;
  }

  .to_news_deco_a {
    display: block;
    padding: 0 1rem;
  }

  .to_news_deco_a::before {
    content: "→";
    color: #F4A805;
    display: inline-block;
    position: absolute;
    top: 0rem;
    right: 3rem;
    z-index: 3;
    font-size: 2rem;
    font-weight: 700;
    font-family: "Noto Sans JP", sans-serif;
  }

  .to_news_deco_a::after {
    content: "";
    display: inline-block;
    width: 6rem;
    height: 3rem;
    background-color: #FFFFFF;
    border-radius: 1.7rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
}