/* ***************************** */
/* post-media.php */
/* ***************************** */
.reading_post {
  background: #F6F5F1;
}

.reading_post .sectionWrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

.reading_post .section__ttl .section_title_en {
  color: #252424;
  font-family: 'Bitstream Iowan Old Style Black BT';
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.reading_post .section__ttl .section_subtitle {
  color: #252424;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.reading_cate_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding-left: 0;
  margin: 40px 0;
}

.reading_cate_tag {
  background: #fff;
  border: solid 1px #3F3B3B;
  border-radius: 50px;
  display: inline-block;
  padding: 5px 10px;
  color: #3F3B3B;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.reading .post_link{
  text-align: left;
}

.reading_post__img {
  margin-bottom: 10px!important;
}

.reading_post__img img{
  width: 100%;
}

.reading_category_title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 6px 0 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.reading_post_date {
  position: relative;
}

.reading_post_date::before {
  content: "";
  display: block;
  background-image: url(https://interiorfudousan.com/wp/wp-content/themes/interia/assets/img/seminar/clock.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.reading_date_txt {
  color: #535353;
  margin-left: 1.5em;
}

/* ***************************** */
/* single-reading.php */
/* ***************************** */
.single-seminar_container {
  padding: 50px 0 100px;
}

.single-seminar__img {
  margin-bottom: 2rem;
}

.single-reading_title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin: 6px 0 15px;
}

.single-reading_h2 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  position: relative;
  padding: .8rem 0;
  border-top: 6px solid #866351;
  border-bottom: 6px solid #866351;
}

.single-reading_h2:before {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 20%;
  height: 6px;
  content: '';
  background: #E9B800;
}

.single-reading_h2:after {
  position: absolute;
  top: -6px;
  left: 0;
  width: 20%;
  height: 6px;
  content: '';
  background: #E9B800;
}

.single-reading_h3 {
  background: transparent;
  border-left: solid 8px #5F8799;
  color: #252424;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.25em 0.5em;
  margin: 10px 0;
}

.single-reading_share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 24px 0 30px;
}

.single-reading_share .sns_share {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.single-reading_share .sns_share p {
  font-weight: 700;
  line-height: 1;
}

.single-reading_credit {
  max-width: 150px;
}

.single-reading_credit .credit_logo {
  text-decoration: none;
  cursor: pointer;
}

.single-reading_credit .credit_logo img {
  width: 100%;
}

.single-reading_excerpt {
  margin-bottom: 40px;
}

.related_post {
  padding-bottom: 3.75rem;
}

.related_post .single-reading_h3 {
  margin-bottom: 30px;
}

.related_post_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-post-title h3{
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.reading-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  margin:0 auto;
  padding: 1.5em 1em;
  border: none;
  border-radius: 5px;
  background-color: #e9b800;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.single-btn-wrapper {
  margin-bottom: 60px;
}
.single-btn .r-arrow {
  position: relative;
  display: block;
  width: 280px;
  padding: 25px 0;
  border: 1px solid #876351;
  border-radius: 8px;
  color: #876351;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  margin: auto;
}

.btn-circle-right .r-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #876351;
}

.btn-circle-right .r-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 30px;
  width: 12px;
  height: 2px;
  background-color: #fff;
  transform: translateY(-50%);
}

.btn-circle-right .r-arrow span::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 30px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

@media screen and (max-width:768px) {
  .reading_post .sectionWrapper {
    padding: 50px 20px 60px;
  }

  .single-reading_share {
    flex-direction: column;
    align-items: inherit;
  }

  .related_post_list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}


.single-reading_toc {
  background: #f8f9fa;
  border: 1px solid #DFDEDE;
  padding: 20px;
  margin: 40px 0 60px;
}

.toc-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
  padding-bottom: 8px;
}

.toc-title {
  font-size: 18px;
  font-weight: bold;
  color: #252424;
  margin: 0;
}

.toc-toggle {
  background: transparent;
  color: #252424;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  text-decoration: underline;
}

.toc-content {
  transition: all 0.3s ease;
  overflow: hidden;
}

.toc-content.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li.toc-h2 {
  margin-left: 0;
  font-weight: 600;
}

.toc-list li.toc-h3 {
  margin-left: 20px;
  font-size: 14px;
}

.toc-list a {
  text-decoration: none;
  color: #E9B800;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.toc-list a:hover {
  color: #E9B800;
  text-decoration: underline;
}

/* 目次のアンカーリンク用のスクロール動作調整 */
.toc-list a {
  scroll-margin-top: 60px; /* ヘッダーの高さ120pxの半分 */
}

/* 見出しクラスに応じたスクロールマージン調整 */
.single-reading_h2 {
  scroll-margin-top: 140px; /* ヘッダー高さ + ボーダー・パディング分 */
}

.single-reading_h3 {
  scroll-margin-top: 130px; /* ヘッダー高さ + パディング分 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .single-reading_toc {
      padding: 15px;
  }
  
  .toc-title {
      font-size: 16px;
  }
  
  .toc-toggle {
      font-size: 13px;
  }
  
  .toc-list li.toc-h3 {
      margin-left: 15px;
      font-size: 13px;
  }
}