@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
*/

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

.entry-content table.ranking,
.entry-content table.ranking8,
.entry-content table.two_col,
.entry-content .ranking {
  width: max-content;
  max-width: none;
  min-width: 100%;
  border-collapse: collapse;
}

.entry-content table {
  max-width: 100%;
}

.entry-content table.ranking,
.entry-content table.ranking8,
.entry-content table.two_col {
  max-width: none;
}

.scrollable-table {
  overflow-x: auto;
}

.ncolumn-scroll-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1em 0;
  padding-bottom: 6px;
  scrollbar-gutter: stable;
}

.ncolumn-scroll-table::-webkit-scrollbar {
  height: 8px;
}

.ncolumn-scroll-table::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.ncolumn-scroll-table::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 4px;
}

.ncolumn-scroll-table table.ranking,
.ncolumn-scroll-table table.ranking8,
.ncolumn-scroll-table table.two_col {
  border-collapse: separate;
  border-spacing: 0;
}

.ncolumn-scroll-table table tr > *:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background-color: #fde8dc;
  background-clip: padding-box;
  box-shadow: 6px 0 8px -2px rgba(0, 0, 0, 0.12);
}

.ranking th,
.overview {
  font-family: ABeeZee, sans-serif;
  padding: 8px 20px;
  white-space: nowrap;
  text-align: center;
}

.ranking tbody th {
  border: 1px #fff solid;
  font-style: normal;
  font-weight: 400;
}

.ranking .title {
  font-size: 14px;
  letter-spacing: 2px;
  background-color: #d9e6f2;
}

.ranking td {
  border-top: 1px #d3d3d3 solid;
  border-bottom: 1px #d3d3d3 solid;
  border-right: none;
  border-left: none;
}

.ranking tr:nth-child(odd) .overview {
  background-color: #f3f6f9;
}

.ncolumn-hospital-checkpoint h2 {
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  margin-top: 12px;
}

.ranking_item_block h3,
.ncolumn-hospital-checkpoint .ranking_item_block h3 {
  width: 100%;
  display: block;
  background-color: #e8eef4;
  padding: 3px 10px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
}

.ranking_item_block .ranking_item {
  padding-left: 12px;
}

.ranking_item_block .ranking_item p,
.ranking_item_block .ranking_item ul {
  padding-left: 17px;
  font-size: 16px;
  line-height: 28px;
}

.ranking_item_block .ranking_item ul {
  list-style: none;
}

.ranking_item_block .ranking_item h4 {
  font-size: 16px;
  line-height: 28px;
  font-weight: 700;
}

.ranking_item_block .ranking_item h4::before {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  background-color: #e8eef4;
  margin-right: 5px;
}

.recommended_btn {
  margin: 2rem auto 3rem;
  text-align: center;
  max-width: 350px;
}

.recommended_btn p {
  margin-bottom: 0.3rem;
  color: #3a6ea5;
  font-weight: bold;
}

.recommended_btn a {
  display: block;
  background: #3a6ea5;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.ncolumn-rank-section {
  padding: 16px 0 16px 10px;
  overflow: visible;
}

.ncolumn-rank-section p {
  margin-bottom: 0;
}

.ncolumn-rank-section .rank_container {
  border-radius: 10px;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.23);
  height: 46px;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 34px;
  position: relative;
  background: #fff;
}

.ncolumn-rank-section .rank_container p {
  font-size: 16px;
  line-height: 26px;
  color: #333333;
}

.ncolumn-rank-section .rank_title {
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  color: #333333;
  margin-bottom: 20px;
  font-weight: 700;
}

.ncolumn-rank-section .rank_group_title {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  margin: 15px;
}

.ncolumn-rank-section .rank_group_title p {
  color: #3a6ea5;
  font-size: 18px;
  line-height: 30px;
  font-weight: 700;
  margin-bottom: 0;
  text-align: center;
}

.ncolumn-rank-section .rank-icon {
  position: absolute;
  left: -8px;
  top: -10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 30px;
  height: 40px;
  padding: 5px;
  background-repeat: no-repeat;
  background-size: contain;
}

.ncolumn-rank-section .rank-icon.rank_1 {
  background-image: url('assets/img/rank_1.png');
}

.ncolumn-rank-section .rank-icon.rank_2 {
  background-image: url('assets/img/rank_2.png');
}

.ncolumn-rank-section .rank-icon.rank_3 {
  background-image: url('assets/img/rank_3.png');
}

.ncolumn-rank-section .rank-icon p {
  margin-bottom: 0;
  font-size: 18px;
  color: #FFFFFF;
  font-weight: 500;
}

.ncolumn-pref-widget h2,
.ncolumn-pref-widget h3 {
  font-size: 20px;
  text-align: center;
  color: #333333;
  font-weight: 700;
}

.ncolumn-pref-widget ul.btns {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-left: 0;
  margin-bottom: 20px;
}

.ncolumn-pref-widget ul.btns li a.btns_logo {
  text-decoration: none;
  background: #3a6ea5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

.ncolumn-pref-widget ul.btns li a.btns_logo:hover {
  background: #2f5a87;
  color: #fff;
}

.ncolumn-pref-widget .accordion-btn {
  background: #fff;
  color: #333333;
  cursor: pointer;
  width: calc(100% - 8px);
  text-align: left;
  font-size: 14px;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.19);
  margin: auto auto 12px;
  border-radius: 10px;
  padding: 10px 12px;
}

.ncolumn-pref-widget .accordion-btn a,
.ncolumn-pref-widget .accordion-btn p {
  color: inherit;
  text-decoration: none;
  margin: 0;
}

.ncolumn-pref-widget .accordion-btn.is-open,
.ncolumn-pref-widget .accordion-btn:hover {
  background: #3a6ea5;
  color: #fff;
}

.ncolumn-pref-widget .accordion-btn.is-open a,
.ncolumn-pref-widget .accordion-btn.is-open p,
.ncolumn-pref-widget .accordion-btn:hover a,
.ncolumn-pref-widget .accordion-btn:hover p {
  color: #fff;
}

.ncolumn-pref-widget .accordion-btn + .panel {
  display: none;
}

.ncolumn-pref-widget .accordion-btn.is-open + .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

.ncolumn-pref-widget .panel a {
  background: #fff;
  width: 95%;
  box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.19);
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #333333;
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

.ncolumn-pref-widget .panel a.is-open,
.ncolumn-pref-widget .panel a:hover {
  background: #3a6ea5;
  color: #fff;
  font-weight: 700;
}

.ncolumn-pref-filter {
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: #f3f6f9;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6em, 1fr));
  gap: 8px;
}

.ncolumn-pref-filter p {
  grid-column: 1 / -1;
}

.ncolumn-pref-filter a {
  display: block;
  margin: 0;
  padding: 4px 10px;
  background: #fff;
  border-radius: 4px;
  text-decoration: none;
  color: #333333;
  text-align: center;
  white-space: nowrap;
}

.ncolumn-pref-filter a.is-current {
  background: #3a6ea5;
  color: #fff;
}

/* 記事内に残る旧テーマ色をCocoon側の色で上書きする */
.entry-content .ranking .title,
.entry-content table.ranking .title {
  background-color: #d9e6f2 !important;
}

.entry-content .ranking tr:nth-child(odd) .overview {
  background-color: #f3f6f9 !important;
}

.entry-content .gradient-yellow {
  background: linear-gradient(transparent 60%, #d9e6f2 0%) !important;
}

.go-to-top {
  bottom: 76px;
}

.sns-share,
.sns-follow,
.share-menu-button,
.share-menu-content {
  display: none;
}

body.home .date-tags,
body.home .footer-meta {
  display: none;
}

body.home .sidebar .ncolumn-rank-section {
  display: none;
}

.tagline {
  display: none;
}

img.no-image {
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  padding: 12px;
  box-sizing: border-box;
}

.related-entry-card-thumb img {
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
}

.related-entry-card .cat-label {
  display: none;
}

.eye-catch {
  width: 100%;
}

.eye-catch img,
.entry-content img.ncolumn-content-eyecatch {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.entry-content figure:has(img.ncolumn-content-eyecatch) {
  width: 100%;
  max-width: 100%;
}

.entry-content:has(.accordion-cont) .toc.border-element {
  display: none;
}

.accordion-cont {
  margin: 1.5em 0;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.accordion-cont .accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #f7f7f7;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.accordion-cont .accordion p {
  margin: 0;
}

.accordion-cont .accordion::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  margin-left: 8px;
}

.accordion-cont .accordion.is-open::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}

.accordion-cont .accordion-content,
.accordion-cont .accordion-content.toc {
  display: block;
  max-height: 0;
  overflow: hidden;
  height: auto;
  padding: 0 16px;
  border: none;
  font-size: 1em;
  transition: max-height 0.2s ease-out;
}

.accordion-cont .accordion-content p {
  margin: 0.35em 0;
}

.accordion-cont .accordion-content .sub-item {
  padding-left: 1.2em;
}

.header-container {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #fff;
  border-bottom: 1px solid #eeeeee;
}

.admin-bar .header-container {
  top: 32px;
}

.header-container-in.hlt-center-logo-top-menu,
.header-container-in.hlt-center-logo,
.header-container-in.hlt-top-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 1256px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  min-height: 64px;
}

.header-container-in .header-in,
.header-container-in .navi-in {
  width: auto;
  margin: 0;
}

.header-container-in .logo-image {
  padding: 0;
}

.header-container-in .site-name-text-link {
  padding: 0;
  margin: 0;
}

.header-container-in .logo-header img,
.header-container-in .header-site-logo-image {
  max-height: 36px;
  width: auto;
  height: auto;
  vertical-align: middle;
}

.header-container-in .navi {
  width: auto;
  flex: 1 1 auto;
  background-color: transparent;
}

.header-container-in .navi-in > ul.menu-pc {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.header-container-in .navi-in > ul.menu-pc > li {
  width: auto;
  height: 64px;
}

.header-container-in .navi-in > ul.menu-pc > li > a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0 14px;
  color: #444444;
  transition: color 0.2s ease;
}

.header-container-in .navi-in > ul.menu-pc > li > a:hover {
  background-color: transparent;
  color: #3a6ea5;
}

.header-container-in .navi-in > ul.menu-pc > li.current-menu-item > a,
.header-container-in .navi-in > ul.menu-pc > li.current_page_item > a {
  color: #3a6ea5;
}

.header-container-in .navi-in > ul.menu-pc > li > a .item-label {
  position: relative;
}

.header-container-in .navi-in > ul.menu-pc > li > a .item-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background-color: #3a6ea5;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.header-container-in .navi-in > ul.menu-pc > li > a:hover .item-label::after,
.header-container-in .navi-in > ul.menu-pc > li.current-menu-item > a .item-label::after,
.header-container-in .navi-in > ul.menu-pc > li.current_page_item > a .item-label::after {
  transform: scaleX(1);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  .header-container-in.hlt-center-logo-top-menu,
  .header-container-in.hlt-center-logo,
  .header-container-in.hlt-top-menu {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    min-height: 56px;
    justify-content: center;
  }

  .header-container-in .navi {
    display: none;
  }

  .header-container-in .logo-header img,
  .header-container-in .header-site-logo-image {
    max-height: 32px;
  }
}

@media screen and (max-width: 782px){
  .admin-bar .header-container {
    top: 46px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .footer-bottom {
    padding-bottom: 24px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
  .ncolumn-rank-section .rank_container p {
    font-size: 14px;
  }
}
