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

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

.header-container-in {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
}

.site-logo-image.header-site-logo-image {
  width: 80%;
}

.wrap {
  width: 100%;
  max-width: 1460px;
}

.navi-in>ul .caption-wrap>div {
  font-weight: bold;
}

.caption-wrap .item-label::before {
  display: block;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 4px;
}

.caption-wrap .item-label:nth-child(1)::before {
  font-family: "Font Awesome 5 Free";
  content: "\f02e";
}

.caption-wrap .item-label:nth-child(2)::before {
  font-family: "Font Awesome 5 Free";
  content: "\f02e";
}

.caption-wrap .item-label:nth-child(3)::before {
  font-family: "Font Awesome 5 Free";
  content: "\f02e";
}

.caption-wrap .item-label:nth-child(4)::before {
  font-family: "Font Awesome 5 Free";
  content: "\f02e";
}

.caption-wrap .item-label:hover {
  color: #F39801;
}



.content {
  max-width: 1460px;
  margin: 0 auto;
}

.no-sidebar .content .main {
  background-color: #ffffff00;
}

.entry-content.cf .box3 {
  background: none;
  border: 2px solid #001F4A;
}

.main_manu_box {
  display: flex;
  gap: 2%;
  justify-content: center;
  margin: 10% auto;
}

.box_item {
  text-align: center;
  min-width: 19%;
  padding: 30px;
  border: 2px solid #A7C7E7;
  background: #a7c7e729;
  border-radius: 8px;
}

.box_item:hover {
  background: #A7C7E7;
}

.box_title {
  font-family: 'ヒラギノ角ゴシック';
  font-weight: bold;
  color: #001F4A;
}

.article h2, .sidebar .wp-block-heading {
  font-family: 'ヒラギノ角ゴシック';
  position: relative;
  background: #A7C7E7;
  text-align: center;
  padding: 0.5em 0;
  margin: 2em 0;
  color: white;
}

.article h2::before,
.article h2::after,
.sidebar .wp-block-heading::before,
.sidebar .wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #A7C7E7;
}

.article h2::before, .sidebar .wp-block-heading::before {
  top: -10px;
}

.article h2::after, .sidebar .wp-block-heading::after {
  bottom: -10px;
}

.article h3, .related-entry-heading {
  font-family: 'ヒラギノ角ゴシック';
  position: relative;
  border: none;
  padding: 12px 0;
}

.related-entry-heading {
  padding: 12px 0 0 10px;
}

.article h3::after, .related-entry-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #002F59 0%,
      #002F59 15%,
      #D3D9E3 10%,
      #D3D9E3 100%);
}

.widget-entry-cards.card-large-image .e-card {
  box-shadow: 1px 0px 5px 2px #dae1e8;
}

.carousel-entry-card-thumb, .related-entry-card-thumb, .widget-entry-card-thumb, .entry-card-thumb {
  margin: 0px;
}

.widget-entry-cards.card-large-image .card-content {
  padding: 20px;
}

.content-in {
  gap: 2vw;
  justify-content: center;
}

.wp-block-search__button {
  background-color: #001F4A;
}

.widget_search .wp-block-search__input {
  border: 2px solid #001F4A;
}

.progress-course-list.single-category {
  margin: 0 10px;
}

.progress-course-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 1.5em;
}

.progress-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.progress-card:hover {
  transform: translateY(-4px);
}

.progress-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.progress-info {
  padding: 20px;
  text-align: center;
}

.progress-cat-name {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

.progress-bar {
  width: 50%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 6px auto;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #001F4A, #001F4A);
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: #666;
}

.course-list {
  margin: 0 10px;
}

.course-item {
  margin-bottom: 15px;
}

img.course-thumb {
  width: 100%;
}

.course-category-name {
  padding: 20px 5px 10px 0px;
}

.under-entry-content .a-wrap {
  border: 2px solid #001F4A;
  padding: 2.5%;
}

.related-entry-card-content, .entry-card-content {
  padding-bottom: unset;
}




.footer {
  min-height: 15vh;
}

.footer-bottom {
  margin-top: 0px;
  padding: 50px 0;
}

.footer-bottom-logo {
  bottom: unset;
}

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

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

/*480px以下*/
@media screen and (max-width: 480px) {
  #header-container, #header-container .navi, #navi .navi-in>.menu-header .sub-menu {
    background-color: #ede22900;
  }

  .header.cf {
    background: white;
  }

  .header-container-in {
    padding: unset;
  }

  .logo-image span, .logo-image a {
    display: unset;
  }

  /*必要ならばここにコードを書く*/
  .header-container-in {
    display: block;
  }

  .site-logo-image.header-site-logo-image {
    max-width: 35%;
    float: left;
    margin-left: 10px;
  }

  #header-container, #header-container .navi, #navi .navi-in>.menu-header .sub-menu {
    background-color: #ede229;
  }

  #navi .navi-in>.menu-mobile {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    padding: 6px 0;
  }

  #navi .navi-in>.menu-mobile li:nth-child(2) {
    border-right: 1px solid black;
    border-left: 1px solid black;
  }

  #navi .navi-in>.menu-mobile li:nth-child(1) {
    border-left: 1px solid black;
  }

  #navi .navi-in>.menu-mobile li {
    min-width: 60px;
    width: unset;
    height: unset;
    line-height: 20px;
  }

  #navi .navi-in>.menu-mobile li a {
    font-size: 13px;
    padding: 0 0.4em;
  }

  .main_manu_box {
    display: none;
  }

  .footer {
    min-height: 0vh;
  }

  .footer-bottom {
    padding: 8px;
  }

  .footer-bottom-logo img {
    height: auto;
    width: 43%;
  }
}

/************************************
** ドロワーメニュースタイル
************************************/

/* オーバーレイ */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9998;
}

body.drawer-active .drawer-overlay {
  opacity: 1;
  visibility: visible;
}

/* ドロワーメニューコンテナ */
.drawer-menu {
  position: fixed;
  top: 108px;
  left: -100%;
  width: 100%;
  height: calc(100% - 110px);
  background-color: #002D59;
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.drawer-active .drawer-menu {
  left: 0;
}

/* ドロワーメニューヘッダー */
.drawer-header {
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #002D59;
}

/* 閉じるボタン */
.drawer-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 5px 10px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.drawer-close:hover {
  transform: rotate(90deg);
}

/* ドロワーメニューコンテンツ */
.drawer-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* メニューパネルコンテンツスタイル */
.drawer-content .menu-panel-content {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-content .menu-panel-content li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-content .menu-panel-content a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px 10px;
  font-size: 16px;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.drawer-content .menu-panel-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}

/* ドロワーが開いているとき、ヘッダーの背景色を変更 */
@media screen and (max-width: 480px) {

  body.drawer-active #header-container,
  body.drawer-active #header-container .navi,
  body.drawer-active #navi .navi-in>.menu-header .sub-menu {
    background-color: #002D59;
  }

  body.drawer-active #navi .navi-in>.menu-mobile li a {
    color: white;
  }

  /* ドロワーがヘッダーの下に配置されるようにする */
  body.drawer-active .drawer-menu {
    padding-top: var(--header-height, 0px);
  }

  /* スクロールの貫通を防ぐ */
  body.drawer-active {
    overflow: hidden;
  }
}