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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* フォントインクルード */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@700&display=swap');


/* 目次カスタマイズ */
.toc {
  display: block !important;
  width: 95%;
  padding: 20px 32px 7px !important;
  margin-bottom: 5% !important;
  background: #f9f9f9 !important;
  border: 0 !important;
  border-top: 5px solid !important;
  border-top-color: #f8c678 !important; /* 任意の色に */
  border-radius: 10px;
  box-shadow: 0 2px 2px rgb(0 0 0 / 20%) !important;
}
@media screen and (min-width: 600px) {
  .toc {
    width: 70%;
    padding: 20px 35px 15px !important;
  }
}

.toc-title {
  margin: 0 20px 20px -10px !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  color: #f8c678 !important; /* 任意の色に */
  background-color: initial;
}

.toc-title::before {
  padding: 14px;
  font-family: "Font Awesome 5 Free";
  font-size: 20px;
  font-weight: 900 !important;
  color: #fff;
  content: "\f03a";
  background-color: #f8c678; /* 任意の色に */
  border-radius: 50%;
}

.toc a {
  display: block;
  padding-top: 0 !important;
  padding-bottom: 0.5em;
  color: #333;
  border-bottom: dashed 1px silver;
}

.toc ul li {
  position: relative;
  padding: 0 0 0.4em 1.4em;
  font-weight: 700;
  line-height: 1.5;
}

.toc ul li::before {
  position: absolute !important;
  left: -0.3em !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900;
  color: #f8c678; /* 任意の色に */
  content: "\f138";
}

.toc li li {
  padding-top: 0.5em;
  margin-top: 0 !important;
  font-weight: 400;
}

.toc_list li {
  margin-top: -5% !important;
}

.sidebar .toc {
  width: initial !important;
  padding-top: initial !important;
  margin-bottom: initial !important;
  background: transparent !important;
  border: initial !important;
  border-radius: initial !important;
  box-shadow: initial !important;
}

.sidebar .toc li li::before {
  color: #fad9a7; /* 任意の色に */
}

/* 引用をスッキリ */
blockquote{
    position:relative;
    border-top:1px solid #7A87B0;
    border-bottom:1px solid #7A87B0;
    padding:10px;
}
blockquote:before{
    position:absolute;
    background-color:#FFFFFF;
    color:#7A87B0;
    font-family:'Font Awesome 5 Free';
    content:'\f10d';
    line-height:1;
    text-align:center;
    top:-20px;
    left:-10px;
    padding:10px;
    font-size:20px;
}
blockquote:after{
    position:absolute;
    right:-10px;
    bottom:-20px;
    background-color:#FFFFFF;
    padding:10px;
    color:#7A87B0;
    font-family:'Font Awesome 5 Free';
    content:'\f10e';
    line-height:1;
    text-align:center;
    font-size:20px;
}
blockquote cite {
    display: block;
    padding-right:30px;
    font-size: 0.8rem;
    text-align: right;
    color: #808080;
}

/*********************************
* タイムライン
*********************************/
.ptimeline-wrap{
    margin:0 auto 2rem;
}
.ptimeline-wrap .ptimeline{
    padding:0 !important;
    list-style:none !important;
}
.ptimeline-wrap .ptimeline-label {
    padding: 3px 0 0 2px;
    color: #aaa;
    font-size: 12px;
    font-weight: 500;
}
.ptimeline-wrap .ptimeline-title {
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.5;
    color:#00bfff;
}
.ptimeline-wrap .ptimeline-main {
    margin-top: 0.5em;
    padding: 0 0 1.5em;
    font-size: 0.9em;
    line-height: 1.8;
    border-bottom: dashed 1px #ddd;
    color:#555;
}
.ptimeline-wrap .ptimeline-main img{
  display:block;
  margin:1em auto;
}
.ptimeline-wrap .ptimeline-item {
    position: relative;
    padding: 0 0 1em 1.5em !important;
    margin-bottom:0 !important;
    border:none;
}
.ptimeline-wrap .ptimeline .ptimeline-item:before {
    content: "";
    width: 3px;
    background: #eee !important;
    display: block;
    position: absolute;
    top: 25px;
    bottom: -3px;
    left: 5px;
}
.ptimeline-wrap .ptimeline-item:last-child:before{
    content:none;
}

/* タイムライン マーカー */
.ptimeline-wrap .ptimeline-marker{
    display: block;
    position: absolute;
    content: "";
    top: 6px;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: solid 3px #00bfff;
}
.ptimeline-wrap .ptimeline-item:first-child .ptimeline-marker,.ptimeline-wrap .ptimeline-item:last-child .ptimeline-marker{
    background:#00bfff;
}
/* 四角 */
.ptimeline-wrap .square .ptimeline-marker{
    border-radius: 0;
}
/* アイコン */
.ptimeline-wrap .icon .ptimeline-item .ptimeline-marker{
    content:unset;
    border:none !important;
    background:none !important;
}
.ptimeline-wrap .icon .ptimeline-item .ptimeline-marker:before{
    font-family: "Font Awesome 5 Free";
    top: -1px;
    left: 0;
    position:absolute;
    font-weight:bold;
    font-size:16px;
    line-height:1;
    color:#00bfff;
}
.ptimeline-wrap .icon .ptimeline-item:first-child .ptimeline-marker,.ptimeline-wrap .icon .ptimeline-item:last-child .ptimeline-marker{
    background:none !important;
}
/* 画像 */
.ptimeline-wrap .tl-img .ptimeline-item .ptimeline-marker{
    content:unset;
    border:none !important;
    background:none !important;
}
.ptimeline-wrap .tl-img .ptimeline-item .ptimeline-marker:before {
    content:"";
    display:inline-block;
    background-image:url(ここに画像URL); /* 画像1番目*/
    background-size:contain;
    background-repeat:no-repeat;
    width:40px;
    height:40px;
    position: relative;
    top: -4px;
    left: -2px;
}
.ptimeline-wrap .tl-img li:nth-of-type(2) > .ptimeline-marker:before{
    background-image:url(ここに画像URL) !important;
}
.ptimeline-wrap .tl-img li:nth-of-type(3) > .ptimeline-marker:before{
    background-image:url(ここに画像URL) !important;
}
.ptimeline-wrap .tl-img li:nth-of-type(4) > .ptimeline-marker:before{
    background-image:url(ここに画像URL) !important;
}
.ptimeline-wrap .tl-img li:nth-of-type(5) > .ptimeline-marker:before{
    background-image:url(ここに画像URL) !important;
}
.ptimeline-wrap .tl-img .ptimeline-item {
    padding: 0 0 1em 3em !important;
}
.ptimeline-wrap .tl-img .ptimeline-item:before {
    top: 30px;
    left: 15px;
}

/* タイムライン カラーバリエーション */
.ptimeline-wrap .pink .ptimeline-title{ color:#f7bcbc !important; }
.ptimeline-wrap .pink .ptimeline-marker{ border: solid 3px #f7bcbc !important; color:#f7bcbc; }
.ptimeline-wrap .pink .ptimeline-item:first-child .ptimeline-marker,.ptimeline-wrap .pink .ptimeline-item:last-child .ptimeline-marker{ background:#f7bcbc; }
.ptimeline-wrap .pink .ptimeline-item .ptimeline-marker:before{ color:#f7bcbc !important; }

.ptimeline-wrap .yellow .ptimeline-title{ color:#fdc44f !important; }
.ptimeline-wrap .yellow .ptimeline-marker{ border: solid 3px #fdc44f !important; color:#fdc44f; }
.ptimeline-wrap .yellow .ptimeline-item:first-child .ptimeline-marker,.ptimeline-wrap .yellow .ptimeline-item:last-child .ptimeline-marker{ background:#fdc44f; }
.ptimeline-wrap .yellow .ptimeline-item .ptimeline-marker:before{ color:#fdc44f !important; }

.ptimeline-wrap .green .ptimeline-title{ color:#2fcdb4 !important; }
.ptimeline-wrap .green .ptimeline-marker{ border: solid 3px #2fcdb4 !important; color:#2fcdb4; }
.ptimeline-wrap .green .ptimeline-item:first-child .ptimeline-marker,.ptimeline-wrap .green .ptimeline-item:last-child .ptimeline-marker{ background:#2fcdb4; }
.ptimeline-wrap .green .ptimeline-item .ptimeline-marker:before{ color:#2fcdb4 !important; }

/*ブラック*/
.ptimeline-wrap .black .ptimeline-title{
    color:#333333 !important; /* タイトル色 */
    font-family: 'Dancing Script', cursive;
    font-size: 1.1em !important;
}
.ptimeline-wrap .black .ptimeline-main{
    color:#555 !important; /* コンテンツ色 */
}
.ptimeline-wrap .black .ptimeline-marker{
    border: solid 3px #333333 !important; /* マーカー色 */
    color:#333333; /* アイコン色 */
}
.ptimeline-wrap .black .ptimeline-item:first-child .ptimeline-marker,
.ptimeline-wrap .black .ptimeline-item:last-child .ptimeline-marker{
    background:#333333; /* マーカー色(最初と最後)*/
}
.ptimeline-wrap .black .ptimeline-item .ptimeline-marker:before{
    color:#333333 !important; /* アイコン色 */
}

/* セクション全体の幅調整（2つ並べる場合） */
.category-panel {
    flex: 1;
    margin-bottom: 30px;
}

/* バナー部分 */
.category-banner {
    display: block;
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2); /* 画像を少し暗くして文字を見やすくする */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.1em;
}

.banner-sub {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    margin-top: 5px;
}

/* 子カテゴリーのリスト（2列配置） */
.child-category-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    gap: 5px; /* ボタン同士の隙間 */
}

.child-category-list li {
    width: 100%;
    margin-bottom: 5px;
}

.child-category-list a {
    display: block;
    background: #f4f4f4; /* 薄いグレー */
    color: #333;
    text-align: center;
    padding: 10px 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.child-category-list a:hover {
    background: #e8e8e8;
}


/** 固定ページの更新日時削除 **/
.page .date-tags,
.page .author-info {
    display: none;
}

/* 書体 = 明朝体 */
.page-id-400 .entry-title {
    font-family: 'Dancing+Script', serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
}

/* プロフィール */
@media screen and (min-width: 835px) {
    .page .article-footer {
        display: flex !important;
        gap: 30px !important;
        padding: 40px 0 !important;
        border-top: 1px solid #f0f0f0 !important;
    }

    .page .article-footer .widget {
        flex: 1 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    .page .article-footer .widget-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        border-bottom: 2px solid #d4dcd6 !important;
        position: relative;
    }
}

.author-box {
    background-color: #f9f9f9 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    border: 1px solid #eee !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.author-content .author-name {
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
}

.author-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.page .article-footer .widget_entry_cards .entry-card {
    border: none !important;
    background: transparent !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed #eee !important;
}

.search-edit {
    border-radius: 25px !important;
    border: 1px solid #ddd !important;
    padding: 10px 20px !important;
    background-color: #fff !important;
}

@media screen and (min-width: 835px) {
    .page .article-footer .author-box {
        margin: 0 !important;
        width: 100% !important;
        border: none !important;
        background-color: #f9f9f9 !important;
        padding: 30px 20px !important;
        border-radius: 15px !important;
    }
    .author-content {
        width: 100% !important;
        margin: 0 !important;
        text-align: left !important;
    }
    .author-box .author-widget-label {
        display: none !important;
    }
}

.author-thumb {
    float: none !important;
    margin: 0 auto 15px !important;
    text-align: center !important;
}

.author-content .author-name {
    text-align: center !important;
    font-size: 1.2em !important;
    margin-bottom: 15px !important;
}

.author-box, 
.widget_author_box .author-box.nwa,
.page .article-footer .author-box {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.author-thumb,
.author-thumb img {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 auto 15px !important;
    float: none !important;
    display: block !important;
}

/* サイドバーの目次ウィジェット全体の背景を変更 */
.toc-widget-box {
    background-color: #f7f7f7 !important;
    border: 1px solid #e2e2e2 !important;
    padding: 15px !important;
    border-radius: 8px !important;
}

.toc-widget-box .toc-title {
    background-color: transparent !important;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.toc-widget-box .toc-content {
    background-color: transparent !important;
}

/* サイドバー目次のカスタマイズ */
.sidebar .toc-content {
    padding: 10px 0; /* 上下の余白調整 */
}

.sidebar .toc-list {
    padding-left: 0 !important; /* 左の余白をゼロにする */
    list-style: none; /* デフォルトのポッチを消す */
}

.sidebar .toc-list li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px dashed #eee; /* 項目間に薄い破線を入れる */
    line-height: 1.4;
    font-size: 0.95em;
}

.sidebar .toc-list li:last-child {
    border-bottom: none; /* 最後の項目の線は消す */
}

/* サイドバー見栄え */
.sidebar .toc-list li a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.sidebar .toc-list li a:hover {
    color: #f39800; /* ホバー時にロゴのオレンジに合わせる */
}

.sidebar .toc-list li a::before {
    content: "\f105"; /* FontAwesomeのシェブロン(>) */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #f39800;
}

.sidebar .toc-list li li {
    padding-left: 1.2em;
    font-size: 0.9em;
    border-bottom: none;
}

.toc-title {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 18px;
    padding: 5px 10px;
}

.toc-title::before {
    content: "\f0ca";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    color: #fff;
    font-size: 14px !important;
    margin-right: 8px !important;
    line-height: 1 !important;
}

.toc-checkbox:checked + .toc-title::after,
.toc-title .toc-checkbox-label {
    font-size: 18px;
    margin-left: 5px;
    opacity: 0.8;
}

/* ===================================================
 * 記事本文下のプロフィールのみ横並び（サイドバーは除外）
 * =================================================== */

/* 1. ターゲットを「メインカラム内の投稿者ボックス」に限定 */
#main .author-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 25px !important;
    border: 1px solid #aec4b9 !important;
    border-radius: 12px !important;
    gap: 25px !important;
    text-align: left !important;
    background-color: #fff !important;
}

/* 2. アイコン部分（左固定） */
#main .author-box .author-thumb {
    flex: 0 0 120px !important;
    margin: 0 !important;
    float: none !important;
}

#main .author-box .author-thumb img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    margin: 0 !important;
}

/* 3. テキストコンテンツ部分（右固定） */
#main .author-box .author-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 !important;
}

/* 4. 名前（物理エンジニアの柴犬）を左寄せ */
#main .author-box .author-name,
#main .author-box .author-name a {
    text-align: left !important;
    margin: 0 0 10px 0 !important;
    width: 100% !important;
    display: block !important;
    font-weight: bold !important;
    color: #4b6a71 !important;
    text-decoration: none !important;
}

/* 5. 説明文とSNSリンク */
#main .author-box .author-description {
    text-align: left !important;
    margin: 0 0 15px 0 !important;
}

#main .author-box .author-follows {
    margin: 0 !important;
    justify-content: flex-start !important;
}

/* 6. モバイル対応（スマホでは縦並びに戻す） */
@media screen and (max-width: 599px) {
    #main .author-box {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    #main .author-box .author-thumb {
        margin-bottom: 15px !important;
    }
    #main .author-box .author-content,
    #main .author-box .author-name {
        align-items: center !important;
        text-align: center !important;
    }
    #main .author-box .author-follows {
        justify-content: center !important;
    }
}

/* トップページ　新着記事と読まれている記事部分　の見栄え */
@media screen and (min-width: 600px) {
    .page-id-400 .wp-block-columns {
        display: flex !important;
        align-items: flex-start !important; /* 上端を揃える */
        justify-content: center !important;  /* 中身を中央寄せ */
        max-width: 1000px !important;       /* ←ここを追加：全体の幅を絞って離れすぎを防止 */
        margin-left: auto !important;        /* 左右autoで中央配置 */
        margin-right: auto !important;
        gap: 0px !important;
    }
	.page-id-400 .tab-content .card-large-image .card-thumb img {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    .page-id-400 .wp-block-column:first-child {
        flex: 0 1 45% !important;
        margin: 0 !important;
    }
    .page-id-400 .wp-block-column:last-child {
        flex: 0 1 50% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .page-id-400 .wp-block-column:last-child > * {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}


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

/*834px以下*/
@media screen and (max-width: 834px){
  .toc_list li {
    margin-top: -1.8% !important;
  }
}

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