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

/************************************
** 子テーマ用のスタイルを書く
************************************/
.toc ol { list-style-type: none; }
.toc ol ol { list-style-type: none; }

/* Footer logo duplicate fix (goodlight-hz等) */
.footer-bottom-logo {
    display: none !important;
}

/************************************
** SNS dropdown menu
************************************/
.menu-item-has-children > .sub-menu.sns-open {
  display: block !important;
  position: static !important;
  background: #fff;
  padding: 4px 0 4px 16px;
  box-shadow: none;
  z-index: 9999;
}

/* Desktop header */
@media screen and (min-width: 1024px) {
  #navi .menu-item-has-children { position: relative; }
  #navi .menu-item-has-children > .sub-menu.sns-open {
    position: absolute !important;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 4px 0;
  }
  #navi .menu-item-has-children > .sub-menu.sns-open li a {
    padding: 8px 16px;
  }
  #navi .menu-item-has-children > .sub-menu.sns-open li a:hover {
    background: #f5f5f5;
  }
}

/* Mobile header grid menu */
@media screen and (max-width: 1023px) {
  #navi .navi-in > .menu-mobile .menu-item-has-children {
    position: relative;
    overflow: visible !important;
  }
  #navi .navi-in > .menu-mobile .menu-item-has-children > .sub-menu {
    display: none !important;
  }
  #navi .navi-in > .menu-mobile .menu-item-has-children > .sub-menu.sns-open {
    display: block !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 4px 0;
    z-index: 99999;
  }
  #navi .navi-in > .menu-mobile .sub-menu.sns-open li {
    width: 100% !important;
    height: auto !important;
    line-height: normal !important;
  }
  #navi .navi-in > .menu-mobile .sub-menu.sns-open li a {
    padding: 8px 16px;
    font-size: 14px;
  }
  .navi-in {
    overflow: visible !important;
  }
}

/* Mobile drawer */
.menu-drawer .menu-item-has-children > .sub-menu {
  display: none !important;
}
.menu-drawer .menu-item-has-children > .sub-menu.sns-open {
  display: block !important;
  padding-left: 20px;
}

/* netscape.cloud テーブル・全体の視認性改善 */
body {
  color: #1e293b;
}

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

.entry-content table th {
  background-color: #1e3a5f;
  color: #ffffff;
  padding: 10px 12px;
  border: 1px solid #334155;
  font-weight: 700;
}

.entry-content table td {
  background-color: #f8fafc;
  color: #1e293b;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
}

.entry-content table tr:nth-child(even) td {
  background-color: #f1f5f9;
}

.entry-content table tr:hover td {
  background-color: #e2e8f0;
}

/* サマリーカードの文字色確保 */
.entry-content p {
  color: #374151;
}

.entry-content h2 {
  color: #1e293b;
}

.entry-content h3 {
  color: #1e293b;
}

/* リンク色 */
.entry-content a {
  color: #2563eb;
}
