@charset 'utf-8';

/* common
------------------------------------------------ */
.post-type-archive #main,
.tax-cat-topics #main { padding-top: 0; }

@media screen and (max-width: 768px) {
  .page-hd { background-image: url(../../img/topics/title.jpg); }
  .nav-category { padding: 0 30px; }
  .nav-category-links--item { width: 33.3333%; }
}

@media screen and (min-width: 769px) {
  .page-hd { background-image: url(../../img/topics/title-pc.jpg); }
}

/* topics
------------------------------------------------ */
.topics { position: relative; }

/* content
------------------------------------------------ */
.topics-content { position: relative; }

/* archive
------------------------------------------------ */
.topics-archive { position: relative; margin-top: 20px; }

@media screen and (max-width: 768px) {
  .topics-archive { padding: 0 42.5px; }
}

@media screen and (min-width: 769px) {
  .topics-archive { margin: 80px auto 0; max-width: 1066px; }
}

/* lists
------------------------------------------------ */
.topics-lists { position: relative; }
.topics-lists-item { position: relative; }
.topics-lists-item > a { display: block; position: relative; width: 100%; }
.topics-lists-photo { position: relative; padding-bottom: 65.5172413793%; width: 100%; height: 0; overflow: hidden; }
.topics-lists-photo > img { position: absolute; top: 0; left: 0; }
.topics-lists-info { display: flex; flex-wrap: wrap; position: relative; margin-top: 15px; }
.topics-lists-date { padding-top: 5px; font-family: 'Overpass', sans-serif; font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.topics-lists-cat { display: flex; flex-wrap: wrap; margin: -6px 0 0 14px; }
.topics-lists-cat > span { display: inline-block; margin: 6px 0 0 6px; padding: 2px 10px; border: 1px solid #b0a69f; border-radius: 8px; font-size: 1rem; line-height: 1.2; }
.topics-lists-title { margin-top: 4px; width: 100%; font-size: 1.3rem; font-weight: 700; line-height: 1.75; }

@media screen and (max-width: 768px) {
  .topics-lists-item:not(:first-child) { margin-top: 24px; }
}

@media screen and (min-width: 769px) {
  .topics-lists { display: flex; flex-wrap: wrap; }
  .topics-lists-item { margin: 40px 4.97185741085% 0 0; width: 30.0187617261%; }
  .topics-lists-photo { padding-bottom: 65%; }
  .topics-lists-info { margin-top: 14px; }
  .topics-lists-date { padding-top: 6px; font-size: 1.4rem; }
  .topics-lists-cat > span { padding: 3px 12px; border-radius: 12px; font-size: 1.4rem; }
  .topics-lists-title { margin-top: 8px; font-size: 1.8rem; }

  .no-focus .topics-lists-item:nth-of-type(-n+3) { margin-top: 0; }
  .no-focus .topics-lists-item:nth-of-type(3n) { margin-right: 0; }
  .has-focus .topics-lists-item:nth-of-type(-n+2) { margin-top: 0; }
  .has-focus .topics-lists-item:nth-of-type(3n+2) { margin-right: 0; }
  .has-focus .topics-lists-item:nth-of-type(3),
  .has-focus .topics-lists-item:nth-of-type(4),
  .has-focus .topics-lists-item:nth-of-type(5) { margin-top: 60px; }
  .topics-lists-item.focus { margin: 0; width: 47.8424015009%; }
  .topics-lists-item.focus + .topics-lists-item.focus { margin-left: 4.3151969982%; }
  .topics-lists-item.focus .topics-lists-title { font-size: 2rem; }
}

/* single
------------------------------------------------ */
.topics-single { position: relative; margin-top: 35px; }

@media screen and (max-width: 768px) {
  .topics-single { padding: 0 30px; }
}

@media screen and (min-width: 769px) {
  .topics-single { margin-top: 55px; }
}

/* detail
------------------------------------------------ */
.topics-detail { position: relative; }
.topics-detail-hd,
.topics-detail-content { position: relative; padding: 0 25px; background-color: #ede8e2; }
.topics-detail-hd { display: flex; flex-wrap: wrap; padding-top: 35px; }
.topics-detail-date { padding-top: 5px; font-family: 'Overpass', sans-serif; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.topics-detail-cat { display: flex; flex-wrap: wrap; margin: -6px 0 0 14px; }
.topics-detail-cat > span { display: inline-block; margin: 6px 0 0 6px; padding: 2px 10px; border: 1px solid #b0a69f; border-radius: 8px; font-size: 1rem; line-height: 1.2; }
.topics-detail-title { margin-top: 6px; width: 100%; font-size: 1.5rem; font-weight: 700; line-height: 1.75; }
.topics-detail-content { padding-top: 18px; padding-bottom: 45px; text-align: justify; font-size: 1.1rem; line-height: 2; }
.topics-detail-content p + p { margin-top: 2em; }
.topics-detail-content h2 { margin: 40px 0 20px; font-size: 1.3rem; font-weight: 700; }
.topics-detail-content h2:first-child { margin-top: 0; }
.topics-detail-content h2:last-child { margin-bottom: 0; }
.topics-detail-ft { position: relative; }

@media screen and (max-width: 768px) {
}

@media screen and (min-width: 769px) {
  .topics-detail { margin: 0 auto; max-width: 1066px; }
  .topics-detail-hd,
  .topics-detail-content { padding: 0 90px; }
  .topics-detail-hd { padding-top: 80px; }
  .topics-detail-date { order: 2; margin-left: auto; padding-top: 5px; font-size: 1.6rem; }
  .topics-detail-cat { order: 1; margin-left: -6px; }
  .topics-detail-cat > span { padding: 2px 10px; border-radius: 16px; font-size: 1.6rem; }
  .topics-detail-title { order: 3; margin-top: 18px; font-size: 2.4rem; }
  .topics-detail-content { padding-top: 40px; padding-bottom: 75px; font-size: 1.4rem; line-height: 2.14285714286; }
  .topics-detail-content p + p { margin-top: 2.14285714286em; }
  .topics-detail-content h2 { margin: 80px 0 25px; font-size: 1.8rem;}

}