/* ==========================================================

title : 「○○の基礎知識」共通テンプレート用
scope : 「○○の基礎知識」共通テンプレート用

memo：

last modify :2022/10/27 WEB2TCI-31313_igarashi 徳川御三家のレイアウト変更対応

2020/06/10 TCI福岡_Yoneshima／WEB2TCI-11957_トップバナー修正
2020/05/26 TCI福岡／WEB2TCI-11364
2020/03/26 TCI福岡／WEB2TCI-10127 名古屋刀剣博物館用
2020/02/06 茶谷／charm→knowledge　差分移行
2020/01/27 茶谷／セレクタ名変更 charm→knowledge 不要記述削除
2019/10/15 TCI福岡／既存ファイル h3.ttl_article部分修正 SPファイルをマージ
名古屋／新規作成

========================================================== */
/* ------------------------------------ */
/* ▼ 共通CSS上書き */
/* ------------------------------------ */

/* 続きを読む ボタン*/
.knowledge_item_row .cmn_link_btn {
  width: 170px;
  display: inline-block;
}

.knowledge_item_row .cmn_link_btn .cmn_link_btn_text {
  padding: 4px 20px;
  margin: 0;
  font-size: 15px;
}

@media (max-width:767px) {
   .knowledge_item_row .cmn_link_btn .cmn_link_btn_text {
    padding: 3px 10px;
  }
}

.knowledge_item_row .cmn_link_btn.link_btn_flower02::before {
  width: 30%;
}

/* ------------------------------------ */
/* ▼ General */
/* ------------------------------------ */
@media (min-width: 768px) {
  .hidepc {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) {
  .hidesp {
    display: none !important;
  }
}

.box_knowledge__archive .box_txt,
.box_knowledge__detail .box_txt,
.knowledge_categories__part .slider_item p {
  letter-spacing: .06em;
}

/* ------------------------------------ */
/* ▼ archive */
/* ------------------------------------ */
.box_knowledge__archive .box_txt {
  color: #000;
  text-align: center;
}

.box_knowledge__archive .box_txt_1 {
  font-feature-settings: "palt";
  margin: 0 auto;
  text-align: left;
  max-width: 770px;
  padding: 0 10px;
  width: 100%;
}

@media (max-width: 767px) {
  .box_knowledge__archive .box_txt_1 {
    font-size: 17px;
    text-align: left;
  }
}

/* ------------------------------------ */
/* ▼ knowledge banner_h1 */
/* ------------------------------------ */
.banner_h1.bnr_knowledge .txth1 {
  background-color: inherit;
}

/* ------------------------------------ */
/* ▼ knowledge bg wrap */
/* ------------------------------------ */
.knowledge_bg_wrap {
  background-image: url(../image/bg-tips-knowledge.jpg);
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 150px auto;
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
}

/* 日本の城の動画背景調整 */
.japanese-castle .knowledge_bg_wrap aside {
  background: #fff;
  padding-top: 30px;
}
.japanese-castle .knowledge_categories {
  margin-top: 0;
  padding-top: 30px;
}

@media (min-width: 768px) {
  .knowledge_bg_wrap {
    padding: 30px 0 0;
  }
  /* 刀剣関連の記事は刀剣のあしらいを表示 */
  .sword-basic .knowledge_bg_wrap,
  .ginga-sword .knowledge_bg_wrap {
    background-image:
      url(../image/bg-tips-knowledge-sword.png),
      url(../image/bg-tips-knowledge.jpg);
    background-position: right top, 0 0;
    background-repeat: no-repeat, repeat;
    background-size: 26% auto, 150px auto;
  }
}

@media (max-width: 767px) {
  .knowledge_bg_wrap {
    padding: 20px 0;
  }
}

/* ------------------------------------ */
/* ▼ categories */
/* ------------------------------------ */
.knowledge_categories {
  margin: 30px auto 0;
  background: #fff;
}

.knowledge_categories__inner {
  width: 100%;
}

.knowledge_categories__inner .cmn_h2_01 {
  max-width: 850px;
}

@media only screen and (max-width: 767px) {
  .knowledge_categories {
    margin: 30px auto 0;
    overflow: hidden;
  }
}

/* ------------------------------------ */
/* ▼ categories part */
/* ------------------------------------ */
.knowledge_categories__part {
  padding: 20px 35px 40px;
}

.knowledge_categories__part:not(:first-of-type) {
  margin-top: 40px;
}

.knowledge_categories__part .slider {
  margin-top: 40px;
}

.knowledge_categories__part .slider_item {
  display: block;
  float: left;
  max-height: 156px;
  width: calc(50% - 10px);
}

.knowledge_categories__part .slider_item .content {
  background: #fff;
  display: block;
}

.knowledge_categories__part .knowledge_item_row {
  display: flex;
  flex-wrap: wrap;
}

.title_h4 {
  padding: 15px 10px 7px;
  letter-spacing: .05em;
}

.title_h4 span {
  color: #0d53de;
  display: block;
  font-size: 20px;
  font-weight: 600;
  height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge_categories__part .slider_item .thumb {
  background-size: cover;
  height: 100%;
}

/* 有名な戦国武将の愛刀（位置調整） */
.sengoku-sword .knowledge_categories__part .slider_item .thumb {
  background-position: -25px 0;
}

/* サムネイル デザイン切り替え */
.thumb_round .knowledge_categories__part .slider_item .thumb {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.thumb_squre .knowledge_categories__part .slider_item .thumb {
  border: solid 1px #94897c;
  aspect-ratio: 4 / 3;
}

.knowledge_categories__part .slider_item .thumb img {
  border: solid 1px #94897c;
  vertical-align: bottom;
  width: 100%;
}

.knowledge_categories__part .slider_item h3.ttl_article {
  color: #000;
  font-size: 18px;
  font-weight: 600;
}

.knowledge_categories__part .slider_item.item_coming_soon h3.ttl_article {
  background-size: 0 0, auto auto;
}

.knowledge_categories__part .slider_item h3.ttl_article span {
  display: block;
  max-height: 20px;
  width: 100%;
}

.knowledge_categories__part .slider_item p {
  color: #000;
  font-size: 15px;
  height: 100px;
  margin-top: 8px;
  padding-right: .5em;
  text-align: justify;
}

.knowledge_categories__part .slider_item p.adj_height {
  height: 90px;
}

.knowledge_categories__part .slider_item.item_coming_soon p {
  color: #9E7943;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

.knowledge_item_btn {
  background-color: #fff;
  border: solid 1px #1c40b5;
  color: #1c40b5;
  display: inline-block;
  font-size: 15px;
  letter-spacing: .03em;
  line-height: 1;
  padding: .3em 1.6em .3em .4em;
  position: relative;
}

.knowledge_item_btn::before,
.knowledge_item_btn::after {
  content: "";
  display: block;
  position: absolute;
}

.knowledge_item_btn::before {
  background-color: #1c40b5;
  height: 14px;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
}

.knowledge_item_btn::after {
  border-color: transparent transparent transparent #fff;
  border-style: solid;
  border-width: 3px 0 3px 6px;
  height: 0;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
}

@media (min-width: 768px) {
  .knowledge_categories__part .slider_item:nth-of-type(even) {
    margin-left: 20px;
  }

  .knowledge_categories__part .slider_item:nth-of-type(n+3) {
    margin-top: 60px;
  }

  /* サムネイル デザイン切り替え */
  .thumb_round .knowledge_categories__part .slider_item .thumb {
    width: 35.1670%;
    padding-top: 35.1670%; /* aspect-ratio not support */
  }

  .thumb_squre .knowledge_categories__part .slider_item .thumb {
    width: 43.958%;
    padding-top: 32.9685%; /* aspect-ratio not support */
  }

  .knowledge_categories__part .knowledge_item_row .text_col {
    padding-left: 14px;
    width: 56.042%;
  }

  .knowledge_item_btn_wrap {
    line-height: 1;
    margin-right: .5em;
    text-align: right;
  }
}

@media (max-width: 767px) {
  .knowledge_categories__part {
    padding: 20px 10px;
  }

  .knowledge_categories__part:not(:first-of-type) {
    margin-top: 20px;
  }

  .knowledge_categories__part .slider_item h3.ttl_article {
    background-size: 22px auto, auto auto;
    font-size: 16px;
    padding: .5em .3em;
  }
  .knowledge_categories__part .slider_item h3.ttl_article span {
    text-align: center;
  }

  .title_h4 span {
    font-size: 18px;
  }

  .title_h4 span {
    height: 60px;
    white-space: normal;
  }

  .knowledge_categories__part .slider_item:nth-child(2n+1) {
    clear: left;
  }

  .knowledge_categories__part .slider {
    margin-top: 20px;
    padding: 0 42px;
  }

  .knowledge_categories__part .slider_item {
    max-height: none;
    margin-bottom: 15px;
    padding: 0 5px;
    width: 100%;
  }

  .knowledge_categories__part .slider.slick-initialized .slider_item {
    margin-bottom: 0;
    padding-bottom: 1px;
  }

  .knowledge_categories__part .slider_item .thumb {
    margin: 0 auto 1rem;
  }

  /* サムネイル デザイン切り替え */
  .thumb_round .knowledge_categories__part .slider_item .thumb {
    min-width: 160px;
  }

  .thumb_squre .knowledge_categories__part .slider_item .thumb {
    min-width: 200px;
  }

  .thumb_round .knowledge_categories__part .slider_item .thumb .thumb_inner {
    padding-top: 100%; /* aspect-ratio not support */
  }

  .thumb_squre .knowledge_categories__part .slider_item .thumb .thumb_inner {
    padding-top: 75%; /* aspect-ratio not support */
  }

  .knowledge_categories__part .slider_item .thumb img {
    height: auto;
  }

  .knowledge_categories__part .slider_item p {
    font-size: 14px;
    margin-bottom: 0;
    max-height: 50px;
    margin-top: 0;
    padding: 0 10px;
    text-align: left;
  }

  .knowledge_categories__part .knowledge_item_row .text_col {
    width: 100%;
  }

  .knowledge_categories__part .knowledge_item_row .text_col {
    width: 100%;
  }

  .knowledge_categories__part .slider_item.item_coming_soon p {
    font-size: 16px;
    padding: 0;
  }

  .knowledge_item_btn_wrap {
    line-height: 1;
    padding: 0;
    text-align: center;
  }

  .knowledge_item_btn {
    font-size: 13px;
    padding: .5em 2em .5em .4em;
  }
}

@media (max-width: 360px) {
  .knowledge_item_btn {
    font-size: 3.4vw;
  }
}


/* ------------------------------------ */
/* ▼ spacer */
/* ------------------------------------ */
.item.no_data img {
  width: 30%;
}

/* ------------------------------------ */
/* ▼ slider */
/* ------------------------------------ */
.knowledge_categories__part .slick-arrow {
  top: 162px;
}

.knowledge_categories__part .prev {
  left: -30px;
}

.knowledge_categories__part .next {
  right: -30px;
}

@media (max-width: 767px) {
  .knowledge_categories__part .slick-slider .slider_item:nth-child(2n+1) {
    clear: none;
  }

  .knowledge_categories__part .slick-arrow {
    top: 50%;
  }

  .knowledge_categories__part .prev {
    left: 4%;
    z-index: 1;
  }

  .knowledge_categories__part .next {
    right: 4%;
  }
}

/* ------------------------------------ */
/* ▼ more button */
/* ------------------------------------ */
@media (max-width: 767px) {
  .knowledge_categories__part .btn_more {
    margin: 15px auto 0;
    width: 160px;
  }

  .knowledge_categories__part .btn_more.active .is_close {
    display: none;
  }

  .knowledge_categories__part .btn_more:not(.active) .is_open {
    display: none;
  }
}

/* ------------------------------------ */
/* ▼ title */
/* ------------------------------------ */
.title_h3 {
  background-size: 100% auto;
  display: table;
  height: 40px;
  margin: 0 auto;
  position: relative;
  table-layout: fixed;
}

.title_h3.h3_bg_green {
  background: url(../image/bg-ttl01-top.png) no-repeat top center, url(../image/bg-ttl01-bottom.png) no-repeat bottom center;
  background-size: 100% auto;
}

.title_h3.h3_bg_purple {
  background: url(../image/bg-ttl02-top.png) no-repeat top center, url(../image/bg-ttl02-bottom.png) no-repeat bottom center;
  background-size: 100% auto;
}

.title_h3.h3_bg_blue {
  background: url(../image/bg-ttl03-top.png) no-repeat top center, url(../image/bg-ttl03-bottom.png) no-repeat bottom center;
  background-size: 100% auto;
}

.title_h3.h3_bg_yellow {
  background: url(../image/bg-ttl04-top.png) no-repeat top center, url(../image/bg-ttl04-bottom.png) no-repeat bottom center;
  background-size: 100% auto;
}

.title_h3.h3_bg_red_purple {
  background: url(../image/bg-ttl05-top.png) no-repeat top center, url(../image/bg-ttl05-bottom.png) no-repeat bottom center;
  background-size: 100% auto;
}

.title_h3.h3_bg_brown {
  background: url(../image/bg-ttl06-top.png) no-repeat top center, url(../image/bg-ttl06-bottom.png) no-repeat bottom center;
  background-size: 100% auto;
}

.title_h3:before,
.title_h3:after {
  content: '';
  display: block;
  height: 2px;
  margin-top: -1px;
  position: absolute;
  top: 50%;
  width: 170px;
  z-index: 1;
}

.title_h3.h3_bg_green>span,
.title_h3.h3_bg_green:before,
.title_h3.h3_bg_green:after {
  background-color: #05713f;
}

.title_h3.h3_bg_purple>span,
.title_h3.h3_bg_purple:before,
.title_h3.h3_bg_purple:after {
  background-color: #5e2868;
}

.title_h3.h3_bg_blue>span,
.title_h3.h3_bg_blue:before,
.title_h3.h3_bg_blue:after {
  background-color: #668ab9;
}

.title_h3.h3_bg_yellow>span,
.title_h3.h3_bg_yellow:before,
.title_h3.h3_bg_yellow:after {
  background-color: #928915;
}

.title_h3.h3_bg_red_purple>span,
.title_h3.h3_bg_red_purple:before,
.title_h3.h3_bg_red_purple:after {
  background-color: #9a185e;
}

.title_h3.h3_bg_brown>span,
.title_h3.h3_bg_brown:before,
.title_h3.h3_bg_brown:after {
  background-color: #8a2c23;
}

.title_h3::before {
  right: 104.7%;
}

.title_h3::after {
  left: 104.7%;
}

.title_h3>span {
  background-image: url(../image/bg-ttl-center.png);
  background-repeat: repeat-y;
  background-position: top center;
  color: #fff;
  display: table-cell;
  font-size: 0;
  font-weight: 600;
  padding: 0 10px;
  position: relative;
  text-align: center;
  vertical-align: middle;
  width: 100%;
  z-index: 1;
}

.title_h3>span>span {
  display: inline-block;
  font-feature-settings: "pkna";
  font-weight: 600;
  line-height: 1.3;
  padding: 0 35px;
  position: relative;
  vertical-align: middle;
}

.title_h3>span>span::before,
.title_h3>span>span::after {
  background: url(../image/ico-ttl-deco01.png) no-repeat center;
  content: '';
  display: block;
  height: 19px;
  margin-top: -10px;
  position: absolute;
  top: 50%;
  width: 27px;
}

.title_h3>span>span::before {
  left: 0;
}

.title_h3>span>span::after {
  right: 0;
}

@media (min-width: 768px) {
  .title_h3 {
    margin-bottom: 30px;
    padding: 13px 0;
    width: 420px;
  }

  .title_h3::before,
  .title_h3::after {
    width: 230px;
  }

  .title_h3>span>span {
    font-size: 18px;
  }

  .title_h3>span>span::before,
  .title_h3>span>span::after {
    height: 19px;
    width: 27px;
  }
}

@media (max-width: 767px) {
  .title_h3 {
    background-size: 100%;
    padding: 8px 0;
    margin-bottom: 4%;
    width: 258px;
  }

  .title_h3::before,
  .title_h3::after {
    width: 30px;
  }

  .title_h3>span {
    background-size: 100%;
    font-feature-settings: "pkna";
    padding: 2px 0;
  }

  .title_h3>span>span {
    font-size: 17px;
  }

  .title_h3>span>span::before,
  .title_h3>span>span::after {
    background-size: 100%;
    width: 22px;
  }

  .title_h3>span>span::before {
    left: 6px;
  }

  .title_h3>span>span::after {
    right: 6px;
  }
}

/* 200127_chaya_フリースペースバナーレイアウト */
.box_knowledge__archive .bnr_up {
  margin: 46px auto 0;
  max-width: 500px;
}

.box_knowledge__archive .bnr_up figcaption {
  font-size: 16px;
  margin-top: .4em;
  letter-spacing: .09em;
}

@media only screen and (max-width: 767px) {
  .box_knowledge__archive .bnr_up {
    margin: 1.5em auto 0;
    width: 80%;
  }
}
/* 200206_chaya_charmスタイル差分追加 */

/* ------------------------------------ */
/* ▼ banner */
/* ------------------------------------ */
.knowledge_bnr_area_wrap {
  padding: 0 10px;
}

@media (min-width: 768px) {
  .knowledge_bnr_area_wrap {
    margin-top: 50px;
  }
}

@media screen and (max-width: 767px) {
  .knowledge_bnr_area_wrap {
    margin-top: 40px;
  }
}


/* 徳川御三家のレイアウト変更対応 */
.tokugawagosanke-gosankyo .knowledge_item_row {
  flex-direction: column;
  padding: 0 20px;
}
.tokugawagosanke-gosankyo .knowledge_categories__part .slider_item {
  max-height: initial;
  width: calc(100% / 3);
}
.tokugawagosanke-gosankyo .knowledge_categories__part .slider_item.no_data {
  display: none;
}
.tokugawagosanke-gosankyo .knowledge_categories__part .slider_item p {
  margin-bottom: 15px;
}
.tokugawagosanke-gosankyo .knowledge_item_btn {
  padding: 0.4em 2.2em 0.4em 1.6em;
}
.tokugawagosanke-gosankyo .thumb_round .knowledge_categories__part .slider_item .thumb {
  aspect-ratio: initial;
  padding-top: 100%;
}

@media (min-width: 768px) {
  .tokugawagosanke-gosankyo .knowledge_item_btn_wrap {
    text-align: center;
  }
  .tokugawagosanke-gosankyo .thumb_round .knowledge_categories__part .slider_item .thumb {
    height: 200px;
    margin: 0 auto 15px;
    padding-top: initial;
    width: 200px;
  }

  .tokugawagosanke-gosankyo .knowledge_categories__part .knowledge_item_row .text_col {
    width: 100%;
  }
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider_item:nth-of-type(n+3) {
    margin-top: initial;
  }
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider_item:nth-of-type(n+4) {
    margin-top: 20px;
  }
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider_item:nth-of-type(even) {
    margin-left: initial;
  }
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider {
    display: flex;
    justify-content: space-between;
    max-width: 840px;
    margin: 50px auto 0;
  }
}

@media screen and (max-width: 767px) {
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider {
    flex-direction: column;
    padding: initial;
  }
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider_item {
    width: 100%;
    margin-bottom: initial;
  }
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider_item + .slider_item {
    margin-top: 40px;
  }
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider_item:last-child {
    margin-bottom: 30px;
  }
  .tokugawagosanke-gosankyo .thumb_round .knowledge_categories__part .slider_item .thumb {
    padding-top: initial;
    width: 80%;
  }
  .tokugawagosanke-gosankyo .knowledge_categories__part .slider {
    margin: 35px auto 0;
  }
}