@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
.jn-article-meta {
  font-size: 12px;
  line-height: 1.6;
  color: #555;
  background: #f7f7f7;
  border-left: 4px solid #999;
  padding: 10px 14px;
  margin: 14px 0 22px;
}

.jn-article-meta span {
  display: inline-block;
}

/* トップページ：主役記事 */
.jn-home-hero {
  box-sizing: border-box;
  margin-block: clamp(24px, 4vw, 48px);
  padding-block: clamp(20px, 3vw, 32px);
  border-top: 3px solid #1f2a44;
  border-bottom: 1px solid #e2e5e9;
  background-color: #fff;
}

.jn-home-hero .wp-block-query,
.jn-home-hero .wp-block-post-template {
  margin: 0;
}

.jn-home-hero .wp-block-post-template {
  padding: 0;
  list-style: none;
}

.jn-home-hero .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  overflow: hidden;
  background-color: #f5f6f7;
}

.jn-home-hero .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.jn-home-hero .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
}

.jn-home-hero .wp-block-post-title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1f2a44;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.35;
}

.jn-home-hero .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

.jn-home-hero .wp-block-post-title a:hover {
  color: #8a2735;
}

.jn-home-hero .wp-block-post-title a:focus-visible,
.jn-home-hero .wp-block-post-featured-image a:focus-visible {
  outline: 3px solid #8a2735;
  outline-offset: 4px;
}

.jn-home-hero .wp-block-post-date {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.jn-home-hero .wp-block-post-date a {
  color: inherit;
  text-decoration: none;
}

.jn-home-hero .wp-block-post-date a:hover {
  color: #1f2a44;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.jn-home-hero .wp-block-post-date a:focus-visible {
  outline: 2px solid #8a2735;
  outline-offset: 3px;
}

@media screen and (max-width: 834px) {
  .jn-home-hero .wp-block-post-title {
    font-size: 26px;
  }
}

@media screen and (max-width: 480px) {
  .jn-home-hero {
    margin-block: 24px;
    padding-block: 18px;
  }

  .jn-home-hero .wp-block-post-title {
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 1.4;
  }

  .jn-home-hero .wp-block-post-date {
    font-size: 12px;
  }
}

/* トップページ：カテゴリー案内 */
.home-category-guide.box-menus,
.home-category-guide .box-menus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  width: 100%;
  align-items: stretch;
}

.home-category-guide.box-menus > .box-menu,
.home-category-guide .box-menus > .box-menu {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 100%;
}

@media screen and (max-width: 834px) {
  .home-category-guide.box-menus,
  .home-category-guide .box-menus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 480px) {
  .home-category-guide.box-menus,
  .home-category-guide .box-menus {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* トップページ：セクション見出し */
h2.jn-section-heading,
.article .entry-content h2.jn-section-heading {
  box-sizing: border-box;
  margin: clamp(36px, 5vw, 56px) 0 clamp(20px, 3vw, 28px);
  padding: 10px 0 10px 16px;
  border: 0;
  border-left: 5px solid #1f2a44;
  border-bottom: 1px solid #d8dce2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #1f2a44;
  font-size: clamp(24px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

h2.jn-section-heading::before,
h2.jn-section-heading::after {
  display: none;
  content: none;
}

@media screen and (max-width: 480px) {
  h2.jn-section-heading,
  .article .entry-content h2.jn-section-heading {
    margin-top: 32px;
    margin-bottom: 18px;
    padding: 8px 0 8px 16px;
    font-size: 21px;
  }
}

/* トップページ：新着記事一覧 */
.jn-home-latest .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(20px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.jn-home-latest .wp-block-post-template > .wp-block-post {
  display: flex;
  min-width: 0;
  height: 100%;
  margin: 0;
}

.jn-home-latest .wp-block-columns {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  margin: 0;
  gap: 0;
}

.jn-home-latest .wp-block-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d8dce2;
  border-radius: 2px;
  background-color: #fff;
  transition: border-color 0.15s ease;
}

.jn-home-latest .wp-block-column:hover,
.jn-home-latest .wp-block-column:focus-within {
  border-color: #9aa4b5;
}

.jn-home-latest .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background-color: #f5f6f7;
}

.jn-home-latest .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.jn-home-latest .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  border: 0;
  border-radius: 0;
}

.jn-home-latest .wp-block-post-title {
  flex: 1;
  margin: 0 !important;
  padding: 16px 16px 18px !important;
  border: 0;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none;
  color: #1f2a44;
  font-size: clamp(16px, 1.5vw, 18px) !important;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.jn-home-latest .wp-block-post-title::before,
.jn-home-latest .wp-block-post-title::after {
  display: none;
  content: none;
}

.jn-home-latest .wp-block-post-title a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color 0.15s ease;
}

.jn-home-latest .wp-block-post-title a:hover {
  color: #8a2735;
}

.jn-home-latest .wp-block-post-title a:focus-visible {
  outline: 3px solid #8a2735;
  outline-offset: 3px;
}

.jn-home-latest .wp-block-post-featured-image a:focus-visible {
  outline: 3px solid #8a2735;
  outline-offset: -3px;
}

@media screen and (max-width: 834px) {
  .jn-home-latest .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media screen and (max-width: 480px) {
  .jn-home-latest .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .jn-home-latest .wp-block-post-title {
    padding: 14px 14px 16px !important;
    font-size: 16px !important;
  }
}

/* トップページ：注目・特集 */
.jn-home-featured .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(22px, 2.2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.jn-home-featured .wp-block-post-template > .wp-block-post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8dce2;
  border-top: 4px solid #8a2735;
  border-radius: 2px;
  background-color: #fff;
}

.jn-home-featured .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background-color: #f2f3f5;
}

.jn-home-featured .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.jn-home-featured .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.jn-home-featured .wp-block-post-date {
  margin: 0;
  padding: 14px 16px 0;
  color: #68707c;
  font-size: 13px;
  line-height: 1.5;
}

.jn-home-featured .wp-block-post-date a {
  color: inherit;
  text-decoration: none;
}

.jn-home-featured .wp-block-post-title {
  flex: 1;
  margin: 0;
  padding: 8px 16px 18px !important;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #1f2a44;
  font-size: clamp(17px, 1.6vw, 19px) !important;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.jn-home-featured .wp-block-post-title::before,
.jn-home-featured .wp-block-post-title::after {
  display: none;
  content: none;
}

.jn-home-featured .wp-block-post-title a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  transition: color 0.15s ease;
}

.jn-home-featured .wp-block-post-title a:hover {
  color: #8a2735;
}

.jn-home-featured .wp-block-post-title a:focus-visible,
.jn-home-featured .wp-block-post-date a:focus-visible {
  outline: 3px solid #8a2735;
  outline-offset: 3px;
}

.jn-home-featured .wp-block-post-featured-image a:focus-visible {
  outline: 3px solid #8a2735;
  outline-offset: -3px;
}

@media screen and (max-width: 834px) {
  .jn-home-featured .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media screen and (max-width: 480px) {
  .jn-home-featured .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .jn-home-featured .wp-block-post-date {
    padding: 12px 14px 0;
    font-size: 12px;
  }

  .jn-home-featured .wp-block-post-title {
    padding: 7px 14px 16px !important;
    font-size: 17px !important;
  }
}

/* トップページ：人権用語集案内 */
.jn-home-glossary {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: clamp(24px, 4vw, 40px) auto;
  padding: clamp(28px, 3.5vw, 36px);
  border: 1px solid #d8dce2;
  border-top: 4px solid #1f2a44;
  border-radius: 2px;
  background-color: #f5f6f7;
  box-shadow: none;
}

.jn-home-glossary > p {
  max-width: 760px;
  margin: 0 auto;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.jn-home-glossary .wp-block-cocoon-blocks-button-1,
.jn-home-glossary .button-block {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 24px 0 0;
}

.jn-home-glossary .button-block .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(100%, 360px);
  max-width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #8a2735;
  border-radius: 2px;
  background-color: #8a2735;
  box-shadow: none;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.jn-home-glossary .button-block .btn:visited {
  color: #fff;
}

.jn-home-glossary .button-block .btn:hover {
  border-color: #6f1f2b;
  background-color: #6f1f2b;
  color: #fff;
  text-decoration: none;
}

.jn-home-glossary .button-block .btn:focus-visible {
  outline: 3px solid #1f2a44;
  outline-offset: 3px;
}

@media screen and (max-width: 480px) {
  .jn-home-glossary {
    margin-block: 24px;
    padding: 20px;
  }

  .jn-home-glossary > p {
    font-size: 15px;
    text-align: left;
  }

  .jn-home-glossary .wp-block-cocoon-blocks-button-1,
  .jn-home-glossary .button-block {
    margin-top: 20px;
  }

  .jn-home-glossary .button-block .btn {
    width: 100%;
    min-height: 50px;
    padding-inline: 18px;
  }
}

/* トップページ：人権相談窓口案内 */
.jn-home-consultation {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: clamp(24px, 4vw, 40px) auto;
  padding: clamp(28px, 3.5vw, 36px);
  border: 1px solid #d8dce2;
  border-left: 5px solid #8a2735;
  border-radius: 2px;
  background-color: #faf7f2;
  box-shadow: none;
}

.jn-home-consultation > p {
  max-width: 760px;
  margin: 0 auto;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.jn-home-consultation .wp-block-cocoon-blocks-button-1,
.jn-home-consultation .button-block {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 24px 0 0;
}

.jn-home-consultation .button-block .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(100%, 360px);
  max-width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #1f2a44;
  border-radius: 2px;
  background-color: #1f2a44;
  box-shadow: none;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.jn-home-consultation .button-block .btn:visited {
  color: #fff;
}

.jn-home-consultation .button-block .btn:hover {
  border-color: #2d3e63;
  background-color: #2d3e63;
  color: #fff;
  text-decoration: none;
}

.jn-home-consultation .button-block .btn:focus-visible {
  outline: 3px solid #8a2735;
  outline-offset: 3px;
}

@media screen and (max-width: 480px) {
  .jn-home-consultation {
    margin-block: 24px;
    padding: 20px;
  }

  .jn-home-consultation > p {
    font-size: 15px;
  }

  .jn-home-consultation .wp-block-cocoon-blocks-button-1,
  .jn-home-consultation .button-block {
    margin-top: 20px;
  }

  .jn-home-consultation .button-block .btn {
    width: 100%;
    min-height: 50px;
    padding-inline: 18px;
  }
}

/* 固定ページ「トップページ改修案」：SNS・パンくず非表示 */
.page-id-4843 .sns-share,
.page-id-4843 .sns-follow,
.page-id-4843 .breadcrumb {
  display: none;
}

/* トップページ：人権研修・啓発教材案内 */
.jn-home-training {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: clamp(24px, 4vw, 40px) auto;
  padding: clamp(28px, 3.5vw, 36px);
  gap: clamp(28px, 4vw, 40px);
  border: 1px solid #d8dce2;
  border-top: 4px solid #1f2a44;
  border-radius: 2px;
  background-color: #f3f6f9;
  box-shadow: none;
}

.jn-home-training > p {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.jn-home-training > .wp-block-cocoon-blocks-button-1,
.jn-home-training > .button-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0 !important;
}

.jn-home-training .button-block .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid #8a2735;
  border-radius: 2px;
  background-color: #8a2735;
  box-shadow: none;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.jn-home-training .button-block .btn:visited {
  color: #fff;
}

.jn-home-training .button-block .btn:hover {
  border-color: #6f1f2b;
  background-color: #6f1f2b;
  color: #fff;
  text-decoration: none;
}

.jn-home-training .button-block .btn:focus-visible {
  outline: 3px solid #1f2a44;
  outline-offset: 3px;
}

@media screen and (max-width: 834px) {
  .jn-home-training {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .jn-home-training .button-block .btn {
    width: min(100%, 320px);
  }
}

@media screen and (max-width: 480px) {
  .jn-home-training {
    margin-block: 24px;
    padding: 20px;
    gap: 20px;
  }

  .jn-home-training > p {
    font-size: 15px;
  }

  .jn-home-training .button-block .btn {
    width: 100%;
    max-width: none;
    min-height: 50px;
    padding-inline: 18px;
  }
}

/* 新トップページのページタイトルを非表示 */
.page-id-4843 .article-header {
  display: none;
}
/* トップページのアイキャッチ画像を切らずに表示する最終上書き */
.page-id-4843 .jn-home-hero .wp-block-post-featured-image,
.page-id-4843 .jn-home-featured .wp-block-post-featured-image,
.page-id-4843 .jn-home-latest .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #F5F6F7;
}

.page-id-4843 .jn-home-hero .wp-block-post-featured-image > a,
.page-id-4843 .jn-home-featured .wp-block-post-featured-image > a,
.page-id-4843 .jn-home-latest .wp-block-post-featured-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.page-id-4843 .jn-home-hero .wp-block-post-featured-image img,
.page-id-4843 .jn-home-featured .wp-block-post-featured-image img,
.page-id-4843 .jn-home-latest .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}