@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.page .entry-title,
.home.page .date-tags,
.home.page .author-info{
  display: none;
}
/* 目次
-------------------------------------------------- */
#main .entry-content .toc {
  /* 目次全体デザイン */
  background: #F9F9F9;
  /* 目次全体の背景色を変える場合はここを変更 */
  border: none;
  display: block;
  border-top: 5px solid;
  border-top-color: #40BA8D;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
  padding: 20px 25px;
}

#main .entry-content .toc .toc-title {
  /* 目次の文字指定 */
  text-align: left;
  margin: 0 20px 20px -10px;
  padding-left: -20px;
  font-size: 23px;
  font-weight: 700;
  color: #40BA8D;
  /* 目次の文字色を変える場合はここを変更 */
}

#main .entry-content .toc .toc-title:before {
  /* 目次のアイコン設定 */
  top: 0;
  left: -45px;
  width: 50px;
  height: 50px;
  font-family: "Font Awesome 5 Free";
  content: "\f03a";
  /* アイコンを変える場合はここを変更 */
  font-size: 20px;
  margin-right: 5px;
  color: #FFF;
  /* アイコンの色を変える場合はここを変更 */
  background-color: #40BA8D;
  /* アイコンの背景色を変える場合はここを変更 */
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  padding: 14px;
}

#main .entry-content .toc .toc-content ol {
  /* 目次のデザインカスタマイズ */
  padding: 0 0.5em;
  position: relative;
}

#main .entry-content .toc .toc-content ol li {
  line-height: 1.5;
  padding: 0.7em 0 0.5em 1.4em;
  border-bottom: dashed 1px silver;
  list-style-type: none !important;
}

#main .entry-content .toc .toc-content ol li:before {
  /* 目次の各節の先頭にあるアイコンを設定 */
  font-family: "Font Awesome 5 Free";
  content: "\f138";
  /* アイコンを変える場合はここを変更 */
  position: absolute;
  left: 0.5em;
  color: #40BA8D;
  /* 色を変える場合はここを変更 */
  font-weight: bold;
}

#main .entry-content .toc .toc-content ol li:last-of-type {
  border-bottom: none;
}

#main .entry-content .toc .toc-content .toc-list li {
  font-weight: 700;
  /* h2のみ太文字に */
}

#main .entry-content .toc .toc-content .toc-list li li {
  font-weight: normal;
  /* h3以降の文字サイズを普通に */
}

/* トップページを除外して投稿本文内のすべての H2 を黒文字＋緑下線スタイルに */
body:not(.home):not(.front-page) .entry-content h2 {
  position: relative;
  display: inline-block;
  color: #000000;       /* 見出し文字色を黒に */
  font-weight: 600;
  font-size: 2em;       /* 文字サイズを2emに拡大 */
  padding-bottom: 0.2em; /* 下線と文字の隙間 */
  margin: 1em 0;
}

body:not(.home):not(.front-page) .entry-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;          /* 下線の太さ */
  background: linear-gradient(135deg, #66BB6A 0%, #84FAB0 100%); /* 緑系グラデ */
  border-radius: 2px;   /* 下線端の丸み */
}

/* トップページを除外して投稿本文内のすべての H3 の前に縦線を追加 */
body:not(.home):not(.front-page) .entry-content h3 {
  position: relative;
  padding-left: 1em; /* 縦線分だけ余白を確保 */
  margin: 1em 0;
}

body:not(.home):not(.front-page) .entry-content h3::before {
  content: '';
  position: absolute;
  left: 0;          /* h3 の左端 */
  top: 0;           /* 見出しの先頭に合わせる */
  bottom: 0;        /* 見出し全体の高さに合わせる */
  width: 4px;       /* 縦線の太さ */
  background: #43A047; /* 緑系の単色 */
  border-radius: 2px;  /* 端を丸く */
}




/* メインのエントリー記事をフワッと浮かせる
-------------------------------------------------- */
/* 全ての投稿に影を適用 */
.entry-card-wrap, .popular-entry-card, .carousel-entry-card, .widget-entry-card, .archive-post, .wp-block-latest-posts__post-title {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;                   /* ホバー前は白 */
  transition:
    background-color .3s ease,             /* 背景色変化 */
    transform .3s ease,
    box-shadow .3s ease;
}

/* ホバー時に浮き上がるアニメーション */
.entry-card-wrap:hover, .popular-entry-card:hover, .carousel-entry-card:hover, .widget-entry-card:hover, .archive-post:hover, .wp-block-latest-posts__post-title:hover {
  background-color: #cefddf;                /* お好みの色に */
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* 画像ズームはお好みで */
.entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.05);
}	

/* ページネーション
-------------------------------------------------- */
#main .pagination .page-numbers {
  display: inline-block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  font-size: 17.5px;
  font-weight: bold;
  text-decoration: none;
  line-height: 46px;
  border: unset;
}

#main .pagination .current {
  color: #fff;
  background-color: #40BA8D; /* 背景色 */
}

#main .pagination a:hover {
  background-color: #efefef; /* ホバー時の背景色 */
}
/************************************
** プロフィール-サイドバー
************************************/
.sidebar .widget_author_box {
  background: #fff;
  padding-top: 1.2em;
  border-radius: 3px 3px 0 0;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.sidebar .author-box {
  padding: 120px 0 0;
  border: none;
  position: relative;
  margin: 0 0 3em;
  max-width: 100%;
  overflow:hidden;
}
.sidebar .author-content {
  background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
  border-radius: 200px 200px 0px 0px / 100px 100px 0px 0px;
  color: #fff;
  padding: 20px;
  width:110%;
  margin-left:-5% !important;
}
.sidebar .author-box .author-name a {
  color: #68d619;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 18px;
}
.sidebar .author-box .author-description {
  padding: 45px 25px 0px;
  text-align: justify;
  text-justify: inter-ideograph;
}
.sidebar .author-box p {
  line-height: 1.8;
  font-size: 14px;
}
.sidebar .author-box .author-thumb {
  width: 120px;
  margin: 0 auto;
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  bottom: 0;
}
.sidebar .author-box .author-name {
  font-size: 1.1em;
  font-weight: bold;
  position: absolute;
  margin-bottom: 0.4em;
  top: 23px;
  bottom: 0;
  right: 0;
  left: 0;
}
.sidebar .author-box .author-widget-name {
  position: absolute;
  top: 3px;
  bottom: 0;
  right: 0;
  left: 0;
  font-size: 0.7em;
  color: #bbb;
}
.sidebar .author-box .sns-follow {
  padding: 15px 10px;
}
.sidebar .author-box .sns-follow-buttons {
  display: flex;
  justify-content: space-evenly;
}
.sidebar .author-box .sns-follow-buttons a {
  border-radius: 50%;
  border: none;
  width: 45px;
  height: 45px;
  line-height: 45px;
  font-size: 30px;
  box-shadow: 0 0 10px rgba(41, 84, 10, .5), 0 0 5px -5px rgba(41, 84, 10);
  background:#fff;
}
.sidebar .author-box .sns-follow-buttons a:hover {
  box-shadow: 0 10px 20px -2px rgba(0, 0, 0, .2);
  opacity: 1;
}
.sidebar .author-box .sns-follow-buttons .follow-button span:before {
  color: #68d619;
}
.sidebar .icon-instagram-new:before {
  content: "\ea92";
  font-size: 24px;
}
.sidebar .author-box .to-profile {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  color: #68d619;
  box-shadow: 0 0 10px rgba(41, 84, 10, .5), 0 0 5px -5px rgba(41, 84, 10);
  top: 105px;
  right: 45px;
  font-size: 0.9em;
  font-weight: bold;
}
.sidebar .author-box .to-profile:hover {
  box-shadow: 0 10px 20px -2px rgba(0, 0, 0, .2);
  opacity: 1;
}
.sidebar .author-box .to-profile span:before {
  color: #68d619;
}

.sidebar .author-box .sns-follow-message {
  margin-bottom: 10px;
  font-size: 13px;
}
.sidebar .author-box .sns-follow-message:before {
  content: "＼";
  margin-right: 5px;
}
.sidebar .author-box .sns-follow-message:after {
  content: "／";
  margin-left: 5px;
}
.sidebar .icon-twitter-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}
.sidebar .icon-facebook-logo:before {
  position: absolute;
  top: 6px;
  bottom: 0;
  right: 8px;
  left: 0;
}
.sidebar .icon-hatebu-logo:before {
  position: absolute;
  top: 8px;
  bottom: 0;
  right: 0;
  left: 0;
}
.sidebar .icon-feedly-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}
.sidebar .icon-rss-logo:before {
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 0;
  left: 0;
}
#sidebar .author-box .sns-follow-message {
  display:block;
}

.notice-area {
  background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}

/* コンテナ */
.lifewheel-container {
  position: relative;
  max-width: 800px;       /* SVG の元サイズに合わせる */
  width: 100%;
  margin: 0 auto;
}

/* SVG をレスポンシブ化 */
.lifewheel-container svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ライフホイールボタン共通スタイル */
.lifewheel-btn {
  position: absolute;
  display: flex;                     /* flexbox で中央揃え */
  align-items: center;
  justify-content: center;
  width: 140px;                      /* 固定幅 */
  height: 50px;                      /* 固定高さ */
  font-size: 0.5rem;
  margin: 4px 2px;
  font-weight: bold;    /* 太字 */
  background-color: #40BA8D;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%); /* ボタンを少し浮かせる */
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.lifewheel-btn:hover {
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* 影を小さくして沈んだように見せる */
    transform: translate(-50%, -50%) translateY(4px);; /* ボタンを下方向に沈める */
}

/* 半径35%で8等分した各点（方位角22.5°刻み） */
.pos1 { top: 17.7%;  left: 63.4%; }
.pos2 { top: 36.6%;  left: 82.3%; }
.pos3 { top: 63.4%;  left: 82.3%; }
.pos4 { top: 82.3%;  left: 63.4%; }
.pos5 { top: 82.3%;  left: 36.6%; }
.pos6 { top: 63.4%;  left: 17.7%; }
.pos7 { top: 36.6%;  left: 17.7%; }
.pos8 { top: 17.7%;  left: 36.6%; }


/************************************
** グローバルメニュー PC
************************************/
/*------------------------
  ヘッダー全体
------------------------*/
/* メニューを横並びに */
#navi-in .menu-header {
  display: flex;
  margin: 0 auto;
  padding: 0;
  max-width: 80%;
}

/* li を均等割り＆擬似要素用に位置指定 */
#navi-in .menu-header > li {
  flex: 1;
  position: relative;
  list-style: none;
}

/* li の間に縦線 */
#navi-in .menu-header > li:not(:last-child)::after {
  content: "";
  position: absolute;  /* ← ここは必ず半角 */
  top: 25%;            /* 上から25% */
  height: 50%;         /* 高さ50% */
  right: 0;
  width: 1px;
  background: #ccc;
}

/* ── メインナビ リセット＆縦中央揃え ── */
#navi-in .menu-header > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;   /* 下線用 */
  padding: 0 1rem;
  height: 4rem;
  background: transparent;
  color: #333;
  text-decoration: none;
}

/* ── 下線アニメーションのベース ── */
#navi-in .menu-header > li > a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #84fab0;
  transform-origin: center;
  transition: width .3s ease, left .3s ease;
}

/* ── ホバー時だけ下線を伸ばす ── */
#navi-in .menu-header > li:hover > a::after {
  left: 10%;
  width: 80%;
}

/* ── テキスト色だけホバーで変えたい場合 ── */
#navi-in .menu-header > li:hover > a {
  color: #84fab0;
}

/* ── サブメニューは下線常時＆枠線ナシ ── */
#navi-in .menu-header .sub-menu li > a {
  border: none;
  padding: 0.5rem 1rem;
  position: relative;
}
#navi-in .menu-header .sub-menu li > a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ccc;
  transition: background .3s;
}
#navi-in .menu-header .sub-menu li:hover > a::after {
  background: #84fab0;  /* サブ項目ホバー色 */
}

/* サブメニューの浮き出し */
.sub-menu {box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
	}
.sub-menu li {
  padding: 10px 15px;
  position: relative;
}
.sub-menu li::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ccc; /* 区切り線の色 */
  position: absolute;
  bottom: 0;
  left: 0;
  transition: background-color 0.3s ease; /* 色の変化をスムーズに */
}

/* ── ２）アピール画像（ヒーロー）より少し下に移動 ── */
/* 画像下に余白を作ってナビを下げます */
#navi {
  margin-top: 1rem;     /* お好みで数値を調整してください */
}

/* カテゴリカード共通 */
.category-card{
  border-radius:12px;
  overflow:hidden;
  transition:transform .2s;
}
.category-card:hover{
  transform:translateY(-4px);
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

/* トップページではヘッダー全体を非表示 */
.home .header-container {
  display: none !important;
}

/* ボタンサイズ調整 */
.btn-primary {
  font-size: clamp(.9rem, 2vw, 1rem);
  padding: .75rem 2rem;
}

/* ── テキスト ── */
p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin-bottom: 1em;
}

/*------------------------
  ボックスメニュー
------------------------*/
/* --- サイドの下線色変更 --- */
.box-menu {
    display: block;
    border: 2px solid transparent; /* 初期状態で透明な枠線 */
    border-style: solid; /* 明示的に solid を指定 */
    transition: border-color 0.3s ease, color 0.3s ease, border-width 0.3s ease;
}

/* ホバー時のスタイル */
.box-menu:hover {
    border-color: #84fab0; /* ホバー時の枠線の色 */
	border-width: 4px; /* ホバー時に枠線を太く */
}
/*------------------------
  ページ背景全幅
------------------------*/
.wp-block-cover.alignfull {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/*------------------------
  ボタンエフェクト
------------------------*/
.wp-block-button__link {
    position: relative;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
    
    /* 初期状態: 影をつけてボタンを浮かせる */
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px); /* ボタンを少し浮かせる */
    
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.wp-block-button__link:hover {
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* 影を小さくして沈んだように見せる */
    transform: translateY(2px); /* ボタンを下方向に沈める */
}
/*------------------------
  タブ実装
------------------------*/
/* タブメニューのスタイル */
.tab-label-group {
    display: flex; /* タブを横並びにする */
    justify-content: center; /* 中央揃え */
	border: none !important;
}

/* 各タブの大きさを調整 */
.tab-label {
    font-size: 18px; /* フォントサイズを大きくする */
    padding: 12px 20px; /* 内側の余白を増やす */
	min-width: 120px; /* タブの最小幅を設定 */
    text-align: center; /* テキストを中央寄せ */
    border: none !important;
    background-color: #f9f9f9; /* 背景色 */
    cursor: pointer;
    transition: all 0.3s ease-in-out; /* なめらかに変化 */
}

/* 選択されているタブ（.is-active）の強調 */
.tab-label.is-active {
    font-size: 20px; /* アクティブなタブのフォントを大きく */
    background-color: #ffcc00; /* 強調色 */
    color: #333; /* テキスト色 */
    font-weight: bold;
}

img {
  max-width: 100%;
  height: auto; /* 画像比率を保ったまま縮小 */
  display: block; /* inline要素の空白等を避けたい場合 */
}

/* 全幅表示（背景用） */
.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}

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

/*768px以下*//* モバイル向け調整 */
@media screen and (max-width: 768px){
  .tab-label {
    font-size: 14px;
    padding: 8px 12px;
    min-width: 90px;
  }
  .popular-entry-wrapper {
    grid-template-columns: 1fr;
  }
  .global-menu {
    gap: 1rem;
    padding: 0.5rem;
  }
  .global-menu a {
    font-size: 1rem;
  }
  /* ルート（基準）フォントサイズを少し小さく */
  html {
    font-size: 14px; /* 通常は16px前後なので、14pxに */
  }
  /* 本文の段落 */
  #main .entry-content p,
  #main .entry-content li {
    font-size: 0.95rem;  /* html の 14px を基準に約13px に */
    line-height: 1.6;    /* 行間は読みやすさを維持 */
  }
  /* 見出しは相対サイズで調整 */
  #main .entry-content h1 {
    font-size: 1.6rem;   /* 約22px → 約 22px * (14/16) ≒ 19px */
  }
  #main .entry-content h2 {
    font-size: 1.4rem;   /* 約18px → ≒ 16px */
  }
  #main .entry-content h3 {
    font-size: 1.2rem;   /* 約16px → ≒ 14px */
  }
  /* 通常ヘッダーの nav */
  #navi,  #navi.is-fixed,
  /* Cocoon が出力するモバイル UL */
  #navi-in .menu-mobile{
    display:none !important;
  }
  .lifewheel-btn{
    width:90px;      /* 幅 -30px */
    height:40px;      /* 高さ -10px */
    font-size:0.75rem;/* 文字も縮小 */
    padding:.4em .8em;
    box-shadow:0 4px 8px rgba(0,0,0,.18);  /* 影も少し小さく */
    border-radius:16px;                    /* 角丸も控えめに */
    transform:translate(-50%,-50%);        /* 位置合わせはそのまま */
  }
	
    .wp-block-button__link{
    font-size:14px;         /* 文字 16 → 14px */
    padding:10px 22px;      /* 上下 15 → 10px, 左右 32 → 22px */
    border-radius:6px;      /* 角丸を少しだけ縮小 */
    box-shadow:0 4px 8px rgba(0,0,0,.18);   /* 影も控えめに */
    transform:translateY(-2px);             /* 浮き量も縮小 */
  }
  .wp-block-button__link:hover{
    box-shadow:0 2px 4px rgba(0,0,0,.12);
    transform:translateY(1px);
  }
}
}
	
/* 画面幅425px以下（スマホ縦向きなど） */
@media screen and (max-width: 425px) {
  /* さらに小さめに */
  html {
    font-size: 13px;
  }
  #main .entry-content p,
  #main .entry-content li {
    font-size: 0.9rem;   /* 約12px */
  }
  #main .entry-content h1 {
    font-size: 1.5rem;
  }
  #main .entry-content h2 {
    font-size: 1.3rem;
  }
  #main .entry-content h3 {
    font-size: 1.1rem;
  }
	
  #navi-in .menu-mobile {
  display: none !important;
}
}