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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.home #container {
  background-image: url("images/bg.png");
  background-size: 100%;
  /* background-repeat: no-repeat; */
  background-position: center;
}

.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;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 40px;
}




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

.single .content {
  margin: 4vh auto 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 30px 10px 30px;
  border: 2px solid #A7C7E7;
  background: #a7c7e729;
  border-radius: 8px;
}

.box_item:hover {
  background: #A7C7E7;
}

.box_item:nth-child(1)::before {
  content: "";
  background-image: url("images/box_item1.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  min-height: 125px;
  margin: 0 auto 10px;
  /* Center horizontally and add space below */
}

.box_item:nth-child(2)::before {
  content: "";
  background-image: url("images/box_item2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  min-height: 125px;
  margin: 0 auto 10px;
  /* Center horizontally and add space below */
}

.box_item:nth-child(3)::before {
  content: "";
  background-image: url("images/box_item3.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  min-height: 125px;
  margin: 0 auto 10px;
  /* Center horizontally and add space below */
}

.box_item:nth-child(4)::before {
  content: "";
  background-image: url("images/box_item4.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  min-height: 125px;
  margin: 0 auto 10px;
  /* Center horizontally and add space below */
}

.box_item:nth-child(5)::before {
  content: "";
  background-image: url("images/box_item5.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  min-height: 125px;
  margin: 0 auto 10px;
  /* Center horizontally and add space below */
}

.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 {
  width: 100%;
  background: white;
  box-shadow: 1px 0px 5px 2px #dae1e8;
}

.ect-entry-card .a-wrap:not(.ec-big-card-first) .card-thumb, .rect-entry-card .a-wrap:not(.ec-big-card-first) .card-thumb, .ect-big-card-first .a-wrap:not(.ec-big-card-first) .card-thumb {
  margin: 0px;
}

.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;
}

.single #content .main {
  width: 70%;
}

.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;
}

.new-entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 15px;
}

.new-entry-cards a.new-entry-card-link.widget-entry-card-link.a-wrap {
  width: 100%;
  max-width: unset;
  position: relative;
}

/* すべて表示ボタンのスタイル */
.widget-entries-show-all-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-right: 10px;
}

.widget-entries-show-all-btn {
  background-color: #A7C7E7;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'ヒラギノ角ゴシック', sans-serif;
}

.widget-entries-show-all-btn:hover {
  background-color: #001F4A;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.widget-entries-show-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget-entries-show-all-btn.active {
  background-color: #001F4A;
}

/* 隠された記事アイテムのスタイル */
.widget-entry-item {
  display: block;
}

.widget-entry-hidden {
  display: none;
}

.widget-entry-visible {
  display: block;
}

/* 画像ホバーエフェクト用の基本設定 */
.widget-entry-card-thumb.card-thumb {
  overflow: hidden;
}

.widget-entry-card-thumb.card-thumb img {
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* カスタム: タイトル上下のテキストスタイル */
.new-entry-card-content.widget-entry-card-content.card-content,
.related-entry-card-content.widget-entry-card-content.card-content,
.widget-entry-card-content.card-content {
  /* position: relative; */
  padding-bottom: 40px;
  /* levelのための余白を確保 */
}

.widget-entry-card-category {
  font-size: 13px;
  color: #001F4A;
  margin-bottom: 10px;
  font-weight: 300;
  letter-spacing: 0.5px;
  font-family: 'ヒラギノ角ゴ ProN W3', sans-serif;
}

.new-entry-card-title.widget-entry-card-title.card-title,
.related-entry-card-title.widget-entry-card-title.card-title,
.widget-entry-card-title.card-title {
  font-family: 'ヒラギノ角ゴ ProN W6', sans-serif;
  color: #001F4A !important;
  font-weight: 600;
}

.widget-entry-card-level {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 13px;
  color: #001F4A;
  font-weight: 300;
  letter-spacing: 0.3px;
  font-family: 'ヒラギノ角ゴ ProN W3', sans-serif;
  margin: 0;
}





.footer {
  min-height: 15vh;
}

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

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

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以上*/
@media screen and (min-width: 1023px) {

  /*必要ならばここにコードを書く*/
  #navi-in ul li:nth-child(1) .item-label::before {
    content: "";
    background-image: url("images/item1.png");
  }

  #navi-in ul li:nth-child(1) .item-label:hover::before {
    background-image: url("images/item-orange1.png");
  }

  #navi-in ul li:nth-child(2) .item-label::before {
    content: "";
    background-image: url("images/item2.png");
  }

  #navi-in ul li:nth-child(2) .item-label:hover::before {
    background-image: url("images/item-orange2.png");
  }

  #navi-in ul li:nth-child(3) .item-label::before {
    content: "";
    background-image: url("images/item3.png");
  }

  #navi-in ul li:nth-child(3) .item-label:hover::before {
    background-image: url("images/item-orange3.png");
  }

  #navi-in ul li:nth-child(4) .item-label::before {
    content: "";
    background-image: url("images/item4.png");
  }

  #navi-in ul li:nth-child(4) .item-label:hover::before {
    background-image: url("images/item-orange4.png");
  }

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

  .new-entry-cards a.new-entry-card-link.widget-entry-card-link.a-wrap {
    height: 410px;
  }

  /* ホバー時の画像拡大エフェクト */
  .widget-entry-item:hover .widget-entry-card-thumb.card-thumb img {
    transform: scale(1.1);
  }

  /* PC版では「すべて表示」ボタンを非表示 */
  .widget-entries-show-all-wrapper {
    display: none;
  }

  /* PC版 horizontal モード用のスタイル */
  .pc-horizontal-slider.is-list-horizontal {
    position: relative;
    padding: 0 50px;
  }

  /* PC版でhorizontal時の3列レイアウト */
  .pc-horizontal-slider.is-list-horizontal .swiper-wrapper {
    display: flex;
  }

  .pc-horizontal-slider.is-list-horizontal .swiper-slide {
    width: 30%;
    flex-shrink: 0;
  }

  .pc-horizontal-slider.is-list-horizontal .swiper-slide .new-entry-card-link,
  .pc-horizontal-slider.is-list-horizontal .swiper-slide .related-entry-card-link {
    height: 410px;
    display: flex;
    flex-direction: column;
  }

  .pc-horizontal-slider.is-list-horizontal .swiper-slide .e-card {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .pc-horizontal-slider.is-list-horizontal .swiper-slide .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  /* PC版のSwiper ナビゲーションボタン */
  .is-list-horizontal .swiper-button-prev.pc-only,
  .is-list-horizontal .swiper-button-next.pc-only {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(167, 199, 231, 0.9);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 10;
  }

  .is-list-horizontal .swiper-button-prev.pc-only {
    left: 10px;
  }

  .is-list-horizontal .swiper-button-next.pc-only {
    right: 10px;
    left: auto;
  }

  .is-list-horizontal .swiper-button-prev.pc-only::after,
  .is-list-horizontal .swiper-button-next.pc-only::after {
    font-size: 20px;
    font-weight: bold;
  }

  .is-list-horizontal .swiper-button-prev.pc-only:hover,
  .is-list-horizontal .swiper-button-next.pc-only:hover {
    background-color: #001F4A;
    transform: scale(1.1);
  }

  /* SP用要素を非表示 */
  .sp-only {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
  
  /* SP版では「すべて表示」ボタンを表示 */
  .widget-entries-show-all-wrapper {
    display: flex !important;
  }

  /* SP版: horizontal モードを無効化してgrid表示に戻す */
  .pc-horizontal-slider.is-list-horizontal {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr);
  }

  .pc-horizontal-slider.is-list-horizontal .swiper-wrapper {
    display: contents;
  }

  .pc-horizontal-slider.is-list-horizontal .swiper-slide {
    width: 100% !important;
  }

  .pc-horizontal-slider.is-list-horizontal .swiper-slide .new-entry-card-link,
  .pc-horizontal-slider.is-list-horizontal .swiper-slide .related-entry-card-link {
    height: auto;
  }

  /* SP版: Swiperナビゲーションボタンを非表示 */
  .pc-only {
    display: none !important;
  }

  /* SP版: SP用要素を表示 */
  .sp-only {
    display: flex !important;
  }

  /* SP版: hidden クラスの動作を維持 */
  .pc-horizontal-slider .widget-entry-hidden,
  .is-list-horizontal .widget-entry-hidden {
    display: none;
  }

  .pc-horizontal-slider .widget-entry-visible,
  .is-list-horizontal .widget-entry-visible {
    display: block;
  }
}

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

/*480px以下*/
@media screen and (max-width: 480px) {
  .tagline {
    margin: 0;
  }

  .single #content .main {
    width: 100%;
  }

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

  .header.cf {
    background: white;
  }

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

  .caption-wrap .item-label::before {
    height: 20px;
  }

  .navi-in>ul .caption-wrap>div {
    display: flex;
    font-weight: bold;
    flex-direction: column;
    align-items: center
  }

  #navi-in ul li:nth-child(1) .item-label::before {
    content: "";
    background-image: url("images/account_box_-1.png");
    width: 20px;
  }

  #navi-in ul li:nth-child(2) .item-label::before {
    content: "";
    background-image: url("images/login_-1.png");
    width: 20px;
  }

  #navi-in ul li:nth-child(3) .item-label::before {
    content: "";
    background-image: url("images/menu_-1.png");
    width: 20px;
  }

  .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;
  }

  .new-entry-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .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: flex;
  gap: 20px;
  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-in ul li:nth-child(1) .item-label::before {
    content: "";
    background-image: url(images/item-whit4.png);
  }

  body.drawer-active #navi-in ul li:nth-child(2) .item-label::before {
    content: "";
    background-image: url(images/item-whit3.png);
  }

  body.drawer-active #navi-in ul li:nth-child(3) .item-label::before {
    content: "";
    background-image: url(images/close.png);
  }

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

  body.drawer-active .caption-wrap .item-label:hover {
    color: white;
  }

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

  body.drawer-active .menu-item a::before {
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 25px;
    height: 25px;
  }

  body.drawer-active .drawer-menu .menu-item:nth-child(1) a::before {
    content: "";
    background-image: url(images/item-whit1.png);
  }

  body.drawer-active .drawer-menu .menu-item:nth-child(2) a::before {
    content: "";
    background-image: url(images/item-whit2.png);
  }

  body.drawer-active .drawer-menu .menu-item:nth-child(3) a::before {
    content: "";
    background-image: url(images/item-whit4.png);
  }

  body.drawer-active .drawer-menu .menu-item:nth-child(4) a::before {
    content: "";
    background-image: url(images/item-whit3.png);
  }

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