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

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

/* リブート：停止地点カードのボタン位置をそろえる */
body.home.page .reboot-blog-stops .reboot-blog-stop {
  display: flex;
  flex-direction: column;
}

body.home.page .reboot-blog-stops .reboot-blog-stop .reboot-blog-stop-action {
  margin-top: auto !important;
  padding-top: 16px;
}

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

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

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

/* スマホ・タブレットでは従来どおり1カラム。サブナビは表示しない。 */
.reboot-secondary-nav {
  display: none;
}

/* 一般的なPC幅から、本文＋右サブナビの2カラムにする。 */
@media screen and (min-width: 900px) {
  body.reboot-has-secondary-nav #content-in {
    width: 1200px;
    max-width: 100%;
  }

  body.reboot-has-secondary-nav #main {
    width: 1120px;
    max-width: calc(100% - 32px);
  }

  body.reboot-has-secondary-nav #main .article-header,
  body.reboot-has-secondary-nav #main .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .reboot-secondary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
  }

  .reboot-secondary-main {
    min-width: 0;
  }

  .reboot-secondary-main .reboot-anchor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reboot-secondary-nav {
    display: block;
    position: sticky;
    top: 24px;
  }

  .reboot-secondary-nav-inner {
    padding: 24px;
    border: 1px solid #e9e3ef;
    border-top: 4px solid #ffb000;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(47, 20, 93, 0.08);
  }

  .reboot-secondary-nav-group + .reboot-secondary-nav-group {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9e3ef;
  }

  .reboot-secondary-nav-title {
    margin: 0 0 8px;
    color: #2f145d;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
  }

  .reboot-secondary-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .reboot-secondary-nav-item {
    margin: 0;
    padding: 0;
  }

  .reboot-secondary-nav-link {
    display: flex;
    min-height: 48px;
    padding: 12px 8px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #e9e3ef;
    color: #3f3747 !important;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
  }

  .reboot-secondary-nav-item:last-child .reboot-secondary-nav-link {
    border-bottom: 0;
  }

  .reboot-secondary-nav-link:hover,
  .reboot-secondary-nav-link:focus-visible {
    background: #fff7df;
    color: #2f145d !important;
  }

  .reboot-secondary-nav-link.is-current {
    background: #f5f0fb;
    color: #4f2787 !important;
    font-weight: 800;
  }

  .reboot-secondary-nav-arrow {
    flex: 0 0 24px;
    color: #d89300;
    font-size: 1.1rem;
    text-align: center;
  }
}

/* REBOOT SECONDARY LAYOUT END */

/* REBOOT MOBILE NAVIGATION START */

@media screen and (max-width: 899px) {
  #navi-menu-content .reboot-mobile-navigation > a {
    min-height: 48px;
    padding: 12px 16px;
    border-left: 4px solid #ffb000;
    background: #fff7df;
    color: #2f145d;
    font-weight: 800;
  }

  #navi-menu-content .reboot-mobile-navigation .sub-menu {
    margin: 0;
    padding-left: 16px;
  }

  #navi-menu-content .reboot-mobile-navigation .sub-menu a {
    display: flex;
    min-height: 48px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid #e9e3ef;
    line-height: 1.5;
  }

  #navi-menu-content .reboot-mobile-navigation .sub-menu .sub-menu a {
    padding-left: 24px;
    color: #514858;
    font-size: 0.94rem;
  }

  #navi-menu-content .reboot-mobile-navigation .current-menu-item > a,
  #navi-menu-content .reboot-mobile-navigation .current-menu-ancestor > a {
    background: #f5f0fb;
    color: #4f2787;
    font-weight: 800;
  }
}

/* REBOOT MOBILE NAVIGATION END */
