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

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



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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
	html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1;
}
#footer {
  margin-top: auto;
}
#admin-panel {
  display: none !important;
}

}

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

/* カード全体に角丸を適用 */
.box-menu {
  padding: 0;
  min-height: 0;
  border-radius: 18px;            /* ← 角丸を大きめに設定 */
  overflow: hidden;               /* はみ出し防止 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 軽めの影 */
  transition: all 0.3s ease;
}

/* ホバー時のアニメーション */
.box-menu:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);    /* 少し浮かせる */
  opacity: 0.95;
}

/* アイコン画像にも角丸を適用 */
.box-menu-icon img {
  border-radius: 12px;            /* カード内の画像も角丸に */
  transition: transform 0.3s ease;
}

/* ホバー時に画像をズームさせる */
.box-menu:hover .box-menu-icon img {
  transform: scale(1.05);
}




/* ====== Appear on load (stagger) ====== */
:root{ --stagger: .10s; } /* 1枚ごとの遅延 */

.wwa .box-menu{
  opacity: 0;
  transform: translate(-12px, 24px) scale(.98); /* 左＋下から */
  transform-origin: left bottom;
}

/* トリガークラスが付いたら発火 */
.wwa.is-ready .box-menu{
  animation: cardIn .65s cubic-bezier(.2,.7,.2,1) forwards;
}

/* ステップ遅延（必要数まで増やしてOK） */
.wwa.is-ready .box-menu:nth-child(1){ animation-delay: calc(var(--stagger)*0); }
.wwa.is-ready .box-menu:nth-child(2){ animation-delay: calc(var(--stagger)*1); }
.wwa.is-ready .box-menu:nth-child(3){ animation-delay: calc(var(--stagger)*2); }
.wwa.is-ready .box-menu:nth-child(4){ animation-delay: calc(var(--stagger)*3); }
.wwa.is-ready .box-menu:nth-child(5){ animation-delay: calc(var(--stagger)*4); }
.wwa.is-ready .box-menu:nth-child(6){ animation-delay: calc(var(--stagger)*5); }
.wwa.is-ready .box-menu:nth-child(7){ animation-delay: calc(var(--stagger)*6); }
.wwa.is-ready .box-menu:nth-child(8){ animation-delay: calc(var(--stagger)*7); }
.wwa.is-ready .box-menu:nth-child(9){ animation-delay: calc(var(--stagger)*8); }
.wwa.is-ready .box-menu:nth-child(10){ animation-delay: calc(var(--stagger)*9); }
.wwa.is-ready .box-menu:nth-child(11){ animation-delay: calc(var(--stagger)*10); }
.wwa.is-ready .box-menu:nth-child(12){ animation-delay: calc(var(--stagger)*11); }

@keyframes cardIn{
  0%   { opacity: 0; transform: translate(-12px, 24px) scale(.98); }
  60%  { opacity: 1; transform: translate(0, 0) scale(1.01); }  /* ふわっと */
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* 動きが苦手な環境では無効化 */
@media (prefers-reduced-motion: reduce){
  .wwa .box-menu{ opacity:1; transform:none; animation:none!important; }
}





/* ホームアイコンをおしゃれに装飾 */
a.home-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f6d365, #fda085); /* グラデ背景 */
  color: white !important;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* ホバー時の効果 */
a.home-icon-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}

/* ホームアイコンだけをカスタムしたい場合 */
a.home-icon-link i::before {
  font-size: 1.2em;
}

/* ホームアイコンを囲むリンク全体を装飾 */
.breadcrumb-home a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #89f7fe, #66a6ff); /* スカイブルー系グラデ */
  color: #fff !important;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* ホバー時の動き */
.breadcrumb-home a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}

/* アイコンのサイズ強調（必要に応じて） */
.breadcrumb-home .fa-home {
  font-size: 1.2em;
  margin-right: 4px;
}

.breadcrumb-home .fa-home {
  font-size: 1.1em;
  color: #fff !important;
  background-color: #60a8ff;
  padding: 6px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

/* ホバーで軽く浮かせる */
.breadcrumb-home a:hover .fa-home {
  transform: scale(1.1);
  background-color: #80bfff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#scroll-toc-button {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7ac0ff, #4e9fff);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
#scroll-toc-button.visible {
  opacity: 1;
  pointer-events: auto;
}
#scroll-toc-button::before {
  content: "目次";
}



#scroll-toc-button {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #7ac0ff, #4e9fff);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
#scroll-toc-button.visible {
  opacity: 1;
  pointer-events: auto;
}
#scroll-toc-button::before {
  content: "目次";
}


.toc-float-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: rgba(76, 175, 80, 0.8); /* 半透明グリーン */
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.3s ease;
}
.toc-float-button.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.toc-float-button a {
  color: #fff;
  text-decoration: none;
}

.toc-float-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: rgba(76, 175, 80, 0.85);
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.3s ease;
  z-index: 9999;
}
.toc-float-button.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.toc-float-button a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.toc-label {
  font-weight: bold;
  font-size: 16px;
}

.toc-float-button {
  flex-direction: column;
  padding: 10px;
  font-size: 20px;
  gap: 4px;
}

.toc-float-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: rgba(76, 175, 80, 0.85);
  color: #fff;
  padding: 14px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.3s ease;
  z-index: 9999;
}
.toc-float-button.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.toc-float-button a {
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
}



/* ヘッダーメニューのカスタマイズ */
.item-label {
 font-size: 18px;
 letter-spacing: 0.3px;
}
/* ヘッダーメニューのテキストにカーソルが当たった時のカスタマイズ */
.navi-in a:hover {
 background-color: transparent !important;
}
/* レスポンシブで見たときにヘッダーのロゴが上下中央に来るようにカスタマイズ */
@media screen and (max-width: 834px) {
 .header-container-in.hlt-top-menu #header .header-in {
  display: flex;
  align-items: center;
 }
}

#toc-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(0, 194, 138, 1.9); /* 半透明に変更 */
  color: #fff;
  border-radius: 50%;
  padding: 12px 16px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#toc-button.show {
  opacity: 0.8; /* 表示時も少し透けたままに */
  pointer-events: auto;
}

#toc-button a {
  color: white;
  text-decoration: none;
}




.box-menu{
padding: 0;
min-height: 0;
}

.box-menu:hover{
box-shadow:none;
opacity: 0.8;
}

.box-menu-label,
.box-menu-description{
display: none;
}

.box-menu-icon *{
margin: 0;
max-width: 100%;
max-height: 300px;}

@media screen and (min-width: 600px){
.wwa .box-menu{
width: calc(100%/4);
}
}

.box-menu:first-child{
margin-left: auto;
}

@media screen and (min-width: 600px){
.wwa .box-menu{
width: 20%;
}
}

@media screen and (min-width: 600px){
.wwa .box-menu{
margin-right: 3%;
}

.box-menu:hover{
box-shadow:none;
opacity: 0.8;
}

.box-menu-label,
.box-menu-description{
display: none;
}

.box-menu-icon *{
margin: 0;
max-width: 100%;
max-height: 300px;}

@media screen and (min-width: 600px){
.wwa .box-menu{
width: calc(100%/4);
}
}

.box-menu:first-child{
margin-left: auto;
}

@media screen and (min-width: 600px){
.wwa .box-menu{
width: 20%;
}
}

@media screen and (min-width: 600px){
.wwa .box-menu{
margin-right: 3%;
}

/* ===== ナビゲーションカードを中央寄せで均等に配置 ===== */
.wwa {
  display: flex !important;
  justify-content: center;      /* 常に中央寄せ */
  align-items: stretch;
  flex-wrap: wrap;              /* 画面幅が狭いときは折り返し */
  padding: 0 !important;
  margin: -12px auto !important; /* ← 親にマイナスマージンで補正 */
  max-width: 1100px;           /* コンテンツ幅を適度に制限 */
  box-sizing: border-box;
}

/* 各ボックスのサイズと外側マージンで間隔を作る */
.wwa .box-menu {
  flex: 0 0 240px;              /* 幅を固定気味にしてバランス揃え */
  max-width: 240px;
  margin: 12px;                 /* ← gapの代わりにマージンで溝を作る */
  padding: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

/* 内部の不要な余白を削除 */
.box-menu .box-menu-icon,
.box-menu .box-menu-label,
.box-menu .box-menu-description {
  margin: 0 !important;
  padding: 0 !important;
}

/* アイコンや画像がはみ出さないように */
.box-menu img,
.box-menu svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* スマホ：2列レイアウトに切り替え */
@media (max-width: 768px) {
  .wwa {
    max-width: 100%;
    margin: -8px auto !important;
  }
  .wwa .box-menu {
    flex: 0 1 calc(50% - 16px);
    max-width: calc(50% - 16px);
    margin: 8px;
  }
}

/* 超小型スマホ：1列表示 */
@media (max-width: 480px) {
  .wwa .box-menu {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 8px 0;
  }
}
	
	
.footer {
  padding-top: 12px;
  padding-bottom: 12px;
}
	
